/* ========== Content Section ========== */
.content-section {
  padding: 60px 20px 80px;
  background: #fff;
}

.chapter-heading__br-sp {
  display: none;
}

.content-section--alt {
  background: #d9e4ee;
}

.content-section--alt .chapter-heading span {
  padding-bottom: 0;
  background: linear-gradient(135deg, #0e3a73, #126cb5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.content-section--alt .chapter-heading span::after {
  display: none;
}

.content-section--line {
  background: #fff;
}

.content-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.content-section__heading {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 24px;
  font-weight: 600;
  background: #f0f1f5;
  color: #1f2c4d;
  padding: 10px;
  margin: 0 0 20px;
  text-align: center;
  letter-spacing: 0.05em;
  scroll-margin-top: 80px;
}

.content-section--alt .content-section__heading {
  background: #fff;
}

.content-section--line .content-section__heading {
  background: #fff;
}

.content-section__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: #2a2a2a;
  text-align: center;
  margin: 0 0 32px;
}

.content-section__more {
  text-align: center;
  margin-top: 40px;
}

.content-section__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 16px 32px;
  background: #1f2c4d;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.content-section__more-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ========== Chapter Heading ========== */
.chapter-heading {
  /* font-family: "Noto Serif JP", "Source Han Serif JP", serif; */
  font-size: 24px;
  font-weight: 600;
  color: #181818;
  text-align: center;
  margin: 0 0 45px;
  letter-spacing: 0.05em;
  scroll-margin-top: 80px;
}

.chapter-heading span {
  display: inline-block;
  padding-bottom: 14px;
  position: relative;
}

.chapter-heading span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 45px;
  height: 1px;
  background: #136db6;
}

/* ========== Chapter List (錬愛学ブログ) ========== */
.chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.chapter-card {
  background: #fdfdfd;
  border: 1px solid #d7dde3;
  display: flex;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.chapter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -22px rgba(15, 24, 48, 0.22);
}

/* カード全体クリック可：a タグがカード全面を覆う */
.chapter-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 22px 20px;
  color: inherit;
  text-decoration: none;
}
.chapter-card__link:hover,
.chapter-card__link:focus { color: inherit; text-decoration: none; }
.chapter-card__link:focus-visible {
  outline: 2px solid #1f2c4d;
  outline-offset: -3px;
}

.chapter-card__body {
  flex: 1;
}

.chapter-card__title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 1.6;
  margin: 0 0 14px;
  transition: color 0.35s ease;
}
.chapter-card:hover .chapter-card__title {
  color: #1f2c4d;
}

.chapter-card__desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #181818;
  margin: 0 0 20px;
}

.chapter-card__cta {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #181818;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.chapter-card:hover .chapter-card__cta {
  color: #1f2c4d;
}

.chapter-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1f2c4d;
  color: #fff;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    box-shadow 0.4s ease;
}
.chapter-card:hover .chapter-card__arrow {
  background: #2a3a66;
  transform: translateX(3px);
  box-shadow: 0 0 0 4px rgba(31, 44, 77, 0.08);
}

.chapter-card__arrow svg {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.chapter-card:hover .chapter-card__arrow svg {
  transform: translateX(1px);
}

/* ========== Pill Button (ブログを見る) ========== */
.content-section__pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  padding: 6px 28px;
  background: #fff;
  color: #136db6;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  border: 2px solid #69aad1;
  border-radius: 999px;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.content-section__pill-btn:hover {
  background: #136db6;
  color: #fff;
}

.content-section__pill-arrow {
  display: inline-flex;
}

/* ========== YouTube ========== */
#content-youtube {
  overflow: hidden;
}

/* 自動スクロール用ラッパ：手動スクロールも可能。JSが scrollLeft を動かして無限ループを実現 */
/* 親 .content-section__inner（max-width:1100px）を貫いて画面幅いっぱいに広げる */
.youtube-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge legacy */
  -webkit-overflow-scrolling: touch;
  /* 親 .content-section の 20px 横パディングも相殺するため、若干内側にカードを寄せる視覚調整 */
}
.youtube-marquee::-webkit-scrollbar { display: none; }

.youtube-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 28px;
}

.youtube-card {
  flex: 0 0 360px;
  transition: transform 0.2s;
}

.youtube-card:hover {
  transform: translateY(-4px);
}

.youtube-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.youtube-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
}

.youtube-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.youtube-card__link:hover .youtube-card__thumb img {
  transform: scale(1.05);
}

.youtube-card__play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.9);
  color: #fff;
  transition: transform 0.2s;
  z-index: 1;
}

.youtube-card__link:hover .youtube-card__play {
  transform: scale(1.1);
}

.youtube-card__duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 500;
  border-radius: 2px;
}

.youtube-card__title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #181818;
  margin: 0;
}

.youtube-card__sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: #181818;
  margin: 0;
}

/* ========== LINE Section ========== */
.line-section__heading {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 23px;
  font-weight: 600;
  color: #fff;
  background: #1f2c4d;
  padding: 8px 22px;
  margin: 0 0 24px;
  letter-spacing: 0.05em;
  scroll-margin-top: 80px;
}

.line-section__lead {
  margin: 0 0 28px;
  padding: 0 6px;
}

.line-section__lead-em {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #181818;
  line-height: 1.8;
}

.line-section__lead-em-strong {
  color: #d8424b;
}

.line-section__lead-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #181818;
  margin: 0;
}

.line-section__lead-text-em {
  color: #136db6;
  font-weight: 600;
}

.line-section__banner {
  text-align: center;
  margin: 0 0 20px;
}

.line-section__banner span {
  display: inline-block;
  position: relative;
  padding: 0 20px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #181818;
  line-height: 1.6;
  /* letter-spacing: 0.03em; */
}

.line-section__banner span::before,
.line-section__banner span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 1.5px;
  background: #181818;
  transform-origin: center;
}

.line-section__banner span::before {
  left: 0;
  transform: translateY(-50%) rotate(60deg);
}

.line-section__banner span::after {
  right: 0;
  transform: translateY(-50%) rotate(-60deg);
}

.line-section__promo {
  margin: 0 0 24px;
}

.line-section__promo img {
  display: block;
  width: 100%;
  height: auto;
}

.line-section__cta-wrap {
  text-align: center;
  margin: 0 0 40px;
  padding: 0 34px;
}

.line-section__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 580px;
  padding: 8px 22px;
  background: linear-gradient(to right, #48c614, #7ebd25);
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.05em;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.2s;
}

.line-section__btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.line-section__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.line-section__btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.line-section__btn-text {
  text-align: center;
}

.line-section__btn-br--sm {
  display: none;
}

@media screen and (max-width: 530px) {
  .line-section__btn-br--sm {
    display: inline;
  }
}

.line-section__btn-finger {
  position: absolute;
  right: -18px;
  bottom: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  pointer-events: none;
  transform: rotate(4deg);
  animation: line-finger-pulse 1.4s ease-in-out infinite;
  transform-origin: center;
}

.line-section__btn-finger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes line-finger-pulse {
  0%, 100% {
    transform: rotate(4deg) scale(1);
  }
  50% {
    transform: rotate(4deg) scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .line-section__btn-finger {
    animation: none;
  }
}

/* ========== LINE Voice (口コミ) ========== */
.line-voice {
  background: #faf6ec;
  padding: 28px 32px 32px;
  border-radius: 6px;
}

.line-voice__heading {
  text-align: center;
  margin: 0 0 18px;
}

.line-voice__heading span {
  display: inline-block;
  position: relative;
  padding: 0 20px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #181818;
}

.line-voice__heading span::before,
.line-voice__heading span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: #181818;
}

.line-voice__heading span::before {
  left: 0;
  transform: translateY(-50%) rotate(60deg);
}

.line-voice__heading span::after {
  right: 0;
  transform: translateY(-50%) rotate(-60deg);
}

.line-voice__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.line-voice__list li {
  position: relative;
  padding-left: 28px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #181818;
}

.line-voice__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 14px;
  height: 9px;
  border-left: 2px solid #136db6;
  border-bottom: 2px solid #136db6;
  transform: rotate(-45deg);
}

/* ========== Responsive ========== */
@media screen and (max-width: 768px) {
  .content-section {
    padding: 40px 16px 56px;
  }

  .content-section__heading {
    font-size: 16px;
    padding: 12px 16px;
  }

  .content-section__lead {
    font-size: 13px;
    text-align: left;
  }

  .chapter-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .youtube-list {
    gap: 16px;
    animation-duration: 40s;
  }

  .youtube-card {
    flex: 0 0 70vw;
    max-width: 280px;
  }

  .chapter-heading {
    font-size: 18px;
  }

  .chapter-heading__br-sp {
    display: inline;
  }

  .chapter-card {
    padding: 20px 18px 16px;
  }

  .line-section__heading {
    font-size: 15px;
    padding: 12px 16px;
  }

  .line-section__lead-em {
    font-size: 14px;
  }

  .line-section__lead-text {
    font-size: 13px;
  }

  .line-section__banner span {
    font-size: 14px;
    padding: 0 24px;
  }

  .line-section__btn {
    padding: 16px;
    font-size: 13px;
  }

  .line-voice {
    padding: 24px 18px;
  }

  .line-voice__heading span {
    font-size: 14px;
    padding: 0 22px;
  }

  .line-voice__list li {
    font-size: 13px;
    padding-left: 24px;
  }
}

@media screen and (max-width: 480px) {
  .chapter-list {
    grid-template-columns: 1fr;
  }
}
