/* ========================================
  Single (Article Detail) Page
======================================== */

/* Article Section */
.article-section {
  padding: 0;
  margin-bottom: 14rem;
}

.article-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Article Header */
.article-header {
  padding-bottom: 3.3rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid #e8ebf1;
}

.article-header__date {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #0055b8;
  letter-spacing: 0.08rem;
  margin-bottom: 1.6rem;
}

.article-header__title {
  font-size: 3rem;
  font-weight: 500;
  color: #444;
  line-height: 1.2;
}

/* Article Body */
.article-body {
  margin-bottom: 4rem;
}

/* Article Content (WPコンテンツ用) */
.article-content {
  font-size: 1.6rem;
  font-weight: 400;
  color: #444;
  line-height: 2;
}

.article-content p {
  margin-bottom: 2.4rem;
}

.article-content p:last-child {
  margin-bottom: 0;
}

/* H2 - 青い左ボーダー + 背景 */
.article-content h2 {
  padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 4rem 0 2.4rem;
  background-color: #eff7ff;
  border-left: 5px solid #0055b8;
  font-size: 2.8rem;
  font-weight: 500;
  color: #0055b8;
  line-height: 1.4;
}

/* H3 - 下線 */
.article-content h3 {
  padding-bottom: 1.2rem;
  margin: 3.2rem 0 2.4rem;
  border-bottom: 1px solid #a7abb2;
  font-size: 2.4rem;
  font-weight: 500;
  color: #444;
  line-height: 1.4;
}

/* H4 */
.article-content h4 {
  margin: 2.8rem 0 2rem;
  font-size: 2rem;
  font-weight: 500;
  color: #444;
  line-height: 1.5;
}

/* H5 - 四角アイコン付き */
.article-content h5 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 2.4rem 0 1.6rem;
  font-size: 1.8rem;
  font-weight: 500;
  color: #444;
  line-height: 1.4;
}

.article-content h5::before {
  content: '';
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  background: linear-gradient(128deg, #0055b8 52%, #0099e1 109%);
  border-radius: 2px;
  flex-shrink: 0;
}

/* H6 - 青文字 */
.article-content h6 {
  margin: 2rem 0 1.2rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: #0055b8;
  line-height: 1.5;
}

/* リンク */
.article-content a {
  color: #0055b8;
  text-decoration: underline;
}

/* 画像 */
.article-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2.4rem 0;
}

.article-content figure {
  margin: 2.4rem 0;
}

.article-content figure img {
  margin: 0;
}

.article-content figcaption {
  margin-top: 1rem;
  font-size: 1.4rem;
  color: #6b7280;
  text-align: center;
}

/* リスト */
.article-content ul {
  margin: 2rem 0;
  padding-left: 0;
  list-style: none;
}

.article-content ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.4;
}

.article-content ul li::before {
  content: '';
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  background-color: #0055B8;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 番号リスト */
.article-content ol {
  margin: 2rem 0;
  padding-left: 0;
  list-style: none;
  counter-reset: list-counter;
}

.article-content ol li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  counter-increment: list-counter;
  line-height: 1.4;
}

.article-content ol li::before {
  content: counter(list-counter);
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  color: #231815;
  width: 1.2rem;
  flex-shrink: 0;
  position: relative;
  top: 0.23rem;
}

/* Article Footer (戻るボタン) */
.article-footer {
  padding-top: 4.1rem;
  border-top: 1px solid #e8ebf1;
  text-align: center;
}

.article-footer__back {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6.2rem;
  width: 26.5rem;
  padding: 1.6rem 1.7rem;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(112deg, #0055b8 45%, #0099e1 103%);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.08rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-footer__back:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 85, 184, 0.3);
}

.article-footer__back-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background-color: #fff;
  border-radius: 50%;
  transform: rotate(180deg);
}

.article-footer__back-arrow img {
  width: 0.7rem;
  height: auto;
}

/* ========================================
  SP Responsive (767px以下)
======================================== */
@media (max-width: 767px) {
  .article-section {
    padding: ;
  }

  .article-section__inner {
    padding: 0 2rem;
  }

  .article-header {
    padding-bottom: 2rem;
    margin-bottom: 3rem;
  }

  .article-header__date {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .article-header__title {
    font-size: 2.2rem;
  }

  .article-content {
    font-size: 1.4rem;
  }

  .article-content h2 {
    font-size: 2rem;
    margin: 3rem 0 2rem;
  }

  .article-content h3 {
    font-size: 1.8rem;
    margin: 2.4rem 0 1.6rem;
  }

  .article-content h4 {
    font-size: 1.6rem;
    margin: 2rem 0 1.4rem;
  }

  .article-content h5 {
    font-size: 1.5rem;
    margin: 1.6rem 0 1.2rem;
  }

  .article-content h6 {
    font-size: 1.4rem;
    margin: 1.4rem 0 1rem;
  }

  .article-content img {
    border-radius: 8px;
  }

  .article-footer {
    padding-top: 3rem;
  }

  .article-footer__back {
    width: 100%;
    max-width: 26.5rem;
    justify-content: center;
    gap: 2rem;
    padding: 1.6rem 2rem;
  }
}