body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-family: 'Roboto',arial,sans-serif; 
}

a {
  text-decoration: none;
  color: inherit;
}

a img {
  border: none;
  outline: none;
}

/* 未訪問のリンク */
a:link {
  color: #454545;  /* 通常のリンクの色 */
}

/* 訪問済みのリンク */
a:visited {
  color: #454545;  /* 訪問済みのリンクも通常のリンクと同じ色にする */
}

/* マウスオーバー時のリンク */
a:hover {
  color: #454545;  /* マウスオーバー時の色 */
}

/* アクティブなリンク（クリック中） */
a:active {
  color: #454545;
}

.container {
  padding: 20px;
}

.article-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.article {
  width: 300px;
  height: 285px;
  background-color: #f7f7f7;
  text-decoration: none;
  color: #454545;
  margin: 10px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  border-radius: 3%;
  overflow: hidden;
  position: relative;
}

.rainbow-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right,#f59090,#fcd7a1,#fff9b1,#a5d4ad,#a3bce2,#a59aca,#cfa7cd) 0 / 200%;
  animation: 5s rainbow_line linear infinite;
  opacity: 0.5;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  font-size: 18px;
  background-color: #efeded;
}

.header, .header-bottom-line {
  flex: 1;
  margin: 0;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-icon {
  margin-right: 10px;
  width: 50px;
  height: 50px;
  border: 3px solid #dbdbdb;
  border-radius: 50%;
}

.header-bottom-line {
  width: 100%;
  height: 3px;
  background: linear-gradient(to right,#f59090,#fcd7a1,#fff9b1,#a5d4ad,#a3bce2,#a59aca,#cfa7cd) 0 / 200%;
  animation: 5s rainbow_line linear infinite;
}

@keyframes rainbow_line {
  100% { background-position: 200%; }
}

.footer {
  font-size: 12px;
  border: 1px solid #dbdbdb;
  background-color: #e5e5e5;
}

.header, .footer {
  color: #575757;
  text-align: center;
  padding: 10px;
}

.title {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 5px 5px;
  color: #0075b5;
  flex-shrink: 0;
}

.title-text {
  align-self: center;
}

.thumbnail {
  width: 100%;
  height: 50%;
  object-fit: cover;
  padding-top: 5px;
}

.info {
  display: flex;
  align-items: center;
  padding: 5px;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.link-icon,
.category-icon {
  width: 20px;
  height: 20px;
}

.link-icon {
  margin-left: 10px;
}

.date {
  margin-left: 10px;
}

.description {
  flex-grow: 1;
  margin-top: 0;
  padding: 0 5px 5px;
  font-size: 14px;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
}
.social-media > a {
  margin: 0 10px 0 0;
}

/* レスポンシブデザイン */
@media only screen and (max-width: 300px) {
  .article {
    flex: 0 1 calc(100% - 20px);  /* 300px以下では1行に1つ */
  }
}

@media only screen and (min-width: 301px) and (max-width: 639px) {
  .article {
    flex: 0 1 calc(100% - 20px);  /* その他のスマホでも1行に1つ */
  }
}

@media only screen and (min-width: 640px) and (max-width: 768px) {
  .article {
    flex: 0 1 calc(50% - 40px);  /* タブレットでは1行に2つ */
  }
}

@media only screen and (min-width: 769px) {
  .article {
    flex: 0 1 calc(33.333% - 40px);  /* デスクトップでは1行に3つ以上 */
  }
}