/* ============================================
   Reset — 親テーマ(the-thor)の影響をコンテンツエリアのみ排除
   ヘッダー・フッター・固定ボタンは common.css で管理
   ============================================ */
body.top-page :where(.top-content),
body.top-page :where(.top-content) *,
body.top-page :where(.top-content) *::before,
body.top-page :where(.top-content) *::after {
  all: revert;
}

body.top-page :where(.top-content),
body.top-page :where(.top-content) *,
body.top-page :where(.top-content) *::before,
body.top-page :where(.top-content) *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* SP専用改行: revertで消えるため再定義 */
body.top-page .top-content .br-sp {
  display: none;
}

@media (max-width: 767px) {
  body.top-page .top-content .br-sp {
    display: block;
  }
}

body.top-page {
  /* Layout variables (top page only) */
  --section-gap: clamp(49px, calc(35px + 1.823vw), 70px);
  --heading-en-size: clamp(34px, calc(24px + 1.25vw), 48px);
  --heading-ja-size: clamp(15px, calc(11px + 0.573vw), 22px);

  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  padding-top: clamp(70px, calc(50px + 2.604vw), 100px);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}

body.top-page .top-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

body.top-page .top-content a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

body.top-page .top-content a:hover {
  opacity: 0.7;
}

body.top-page .top-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.top-page .top-content button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

body.top-page .top-content p,
body.top-page .top-content h1,
body.top-page .top-content h2,
body.top-page .top-content h3,
body.top-page .top-content h4 {
  margin: 0;
  padding: 0;
}

/* ============================================
   Common: Section Heading
   ============================================ */
body.top-page .section-heading {
  text-align: center;
  margin-bottom: clamp(35px, calc(25px + 1.302vw), 50px);
}

body.top-page .section-heading .section-heading__en {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--heading-en-size);
  line-height: var(--heading-en-size);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}

body.top-page .section-heading .section-heading__ja {
  display: block;
  font-size: var(--heading-ja-size);
  line-height: var(--heading-ja-size);
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-top: 15px;
}

body.top-page .main-content .section-heading {
  margin-bottom: var(--section-gap);
}

/* ============================================
   Common: Category Tag
   ============================================ */
body.top-page .category-tag {
  display: inline-block;
  min-width: clamp(86px, calc(62px + 3.203vw), 123px);
  height: clamp(28px, calc(20px + 1.042vw), 40px);
  padding: 0 clamp(14px, calc(10px + 0.521vw), 20px);
  border: 1.5px solid var(--color-primary);
  border-radius: 40px;
  font-weight: 900;
  font-size: clamp(10px, calc(7px + 0.365vw), 14px);
  line-height: clamp(26px, calc(19px + 0.964vw), 37px);
  letter-spacing: 0;
  color: var(--color-primary) !important;
  text-align: center;
}

/* ============================================
   Hero Slider
   ============================================ */
body.top-page .hero-slider {
  position: relative;
  overflow: hidden;
  padding: clamp(39px, calc(28px + 1.432vw), 55px) 0 clamp(42px, calc(30px + 1.563vw), 60px);
  cursor: grab;
  user-select: none;
}

body.top-page .hero-slider .slider-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.15);
  filter: blur(40px);
  transition: background-image 0.5s ease;
  z-index: 0;
  opacity: 0.2;
}

body.top-page .hero-slider .slider-track {
  position: relative;
  height: clamp(571px, calc(408px + 21.25vw), 816px);
  z-index: 1;
}

body.top-page .hero-slider .slide {
  position: absolute;
  top: clamp(25px, calc(18px + 0.911vw), 35px);
  width: clamp(536px, calc(383px + 19.922vw), 765px);
  height: clamp(522px, calc(373px + 19.427vw), 746px);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: left 0.5s ease, top 0.5s ease, width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

body.top-page .hero-slider .slide .slide__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  flex: none;
  object-fit: cover;
  display: block;
}

body.top-page .hero-slider .slide .slide__content {
  flex: 0 0 auto;
  padding: clamp(14px, calc(10px + 0.521vw), 25px) clamp(16px, calc(11px + 0.651vw), 30px) clamp(16px, calc(11px + 0.651vw), 30px);
}

body.top-page .hero-slider .slide .slide__title {
  font-size: clamp(14px, calc(8px + 0.833vw), 24px);
  line-height: 1.8;
  margin-bottom: clamp(14px, calc(10px + 0.521vw), 25px);
}

body.top-page .hero-slider .slide .slide__meta {
  display: flex;
  align-items: center;
  gap: clamp(8px, calc(4px + 0.833vw), 20px);
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

body.top-page .hero-slider .slide .slide__date {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(11px, calc(7px + 0.469vw), 18px);
  line-height: 1;
  color: var(--color-primary);
  flex-shrink: 0;
  white-space: nowrap;
}

body.top-page .hero-slider .slide .slide__category {
  display: flex;
  align-items: center;
  gap: clamp(8px, calc(4px + 0.521vw), 20px);
  font-size: clamp(10px, calc(6px + 0.521vw), 16px);
  line-height: 1;
  font-weight: 900;
  color: var(--color-primary);
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.top-page .hero-slider .slide .slide__category::before {
  content: '';
  width: 1px;
  height: clamp(18px, calc(13px + 0.651vw), 25px);
  background: var(--color-primary);
  flex-shrink: 0;
}

body.top-page .hero-slider .slide .category-tag {
  min-width: 0;
  flex-shrink: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(9px, calc(6px + 0.365vw), 14px);
  height: clamp(20px, calc(14px + 0.781vw), 34px);
  line-height: clamp(18px, calc(13px + 0.651vw), 31px);
  padding: 0 clamp(6px, calc(4px + 0.26vw), 14px);
}

/* Slider Controls */
body.top-page .hero-slider .slider-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, calc(8px + 1.667vw), 40px);
  margin-top: clamp(21px, calc(15px + 0.781vw), 30px);
}

body.top-page .hero-slider .slider-dots {
  display: flex;
  gap: 20px;
}

body.top-page .hero-slider .slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

body.top-page .hero-slider .slider-dot.is-active {
  background: var(--color-primary);
}

body.top-page .hero-slider .slider-arrow {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

body.top-page .hero-slider .slider-arrow img {
  width: clamp(35px, calc(25px + 1.302vw), 50px);
  height: auto;
}

/* ============================================
   Main Container (2-column layout)
   ============================================ */
body.top-page .main-container {
  display: flex;
  gap: min(5.208vw, 100px);
  width: min(76.042vw, 1460px);
  max-width: calc(100% - 60px);
  margin: min(6.25vw, 120px) auto 0;
}

body.top-page .main-container .main-content {
  flex: 1 1 0%;
  min-width: 0;
}

body.top-page .main-container .sidebar {
  flex: 0 0 min(18.75vw, 360px);
  width: min(18.75vw, 360px);
  min-width: 0;
}

/* ============================================
   Articles Section
   ============================================ */
body.top-page .articles-section .article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, calc(22px + 1.042vw), 42px) clamp(28px, calc(20px + 1.042vw), 40px);
}

body.top-page .articles-section .article-card {
  background: #fff;
  position: relative;
}

body.top-page .articles-section .article-card .article-card__image-link {
  display: block;
}

body.top-page .articles-section .article-card .article-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

body.top-page .articles-section .article-card .article-card__body {
  padding: clamp(31px, calc(22px + 1.172vw), 45px) clamp(21px, calc(15px + 0.781vw), 30px) clamp(35px, calc(25px + 1.302vw), 50px);
}

body.top-page .articles-section .article-card .article-card__date {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(11px, calc(8px + 0.417vw), 16px);
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--color-text-lighter);
  margin-bottom: clamp(22px, calc(16px + 0.781vw), 31px);
}

body.top-page .articles-section .article-card .article-card__title {
  font-size: clamp(14px, calc(10px + 0.521vw), 20px);
  line-height: 2;
  letter-spacing: 0.03em;
  margin-bottom: clamp(14px, calc(10px + 0.521vw), 20px);
  height: 4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.top-page .articles-section .article-card .article-card__title a {
  color: inherit;
}

body.top-page .articles-section .article-card .article-card__excerpt {
  font-size: clamp(11px, calc(8px + 0.417vw), 16px);
  line-height: clamp(25px, calc(18px + 0.911vw), 35px);
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: clamp(21px, calc(15px + 0.781vw), 30px);
  height: calc(clamp(25px, calc(18px + 0.911vw), 35px) * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.top-page .articles-section .article-card .article-card__categories {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

body.top-page .articles-section .article-card .article-card__categories .category-tag {
  min-width: 90px;
  flex: 0 0 auto;
  padding: 0 10px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

body.top-page .articles-section .article-card_paid::before,
body.top-page .articles-section .article-card_pr::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -1px;
  width: 60px;
  height: 70px;
  background: no-repeat center / contain;
  z-index: 2;
  pointer-events: none;
}

body.top-page .articles-section .article-card_paid::before {
  background-image: url('../img/top/ico-lock.png');
}

body.top-page .articles-section .article-card_pr::before {
  background-image: url('../img/top/ico-pr.png');
}

body.top-page .articles-section .more-wrapper {
  text-align: center;
  margin-top: clamp(42px, calc(30px + 1.563vw), 60px);
}

/* CTA Buttons */
body.top-page .btn-more,
body.top-page .btn-membership {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, calc(8px + 0.391vw), 15px);
  width: clamp(266px, calc(190px + 9.896vw), 380px);
  height: clamp(74px, calc(53px + 2.734vw), 105px);
  background: var(--color-primary);
  color: #fff !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(15px, calc(11px + 0.573vw), 22px);
  line-height: 1;
  letter-spacing: 0;
  border-radius: clamp(49px, calc(35px + 1.823vw), 70px);
  position: relative;
}

body.top-page .btn-more img,
body.top-page .btn-membership img {
  width: clamp(18px, calc(13px + 0.651vw), 25px);
  height: 8px;
  position: absolute;
  top: 50%;
  right: clamp(32px, calc(23px + 1.172vw), 45px);
  transform: translateY(-50%);
}

/* ============================================
   Membership Section
   ============================================ */
body.top-page .membership-section {
  background: var(--color-membership-bg);
  padding: clamp(63px, calc(45px + 2.344vw), 90px) clamp(70px, calc(50px + 2.604vw), 100px) clamp(70px, calc(50px + 2.604vw), 100px);
  margin-top: var(--section-gap);
  text-align: center;
}

body.top-page .membership-section .membership-section__lead {
  font-size: clamp(13px, calc(9px + 0.469vw), 18px);
  line-height: 1.8;
  margin-bottom: clamp(35px, calc(25px + 1.302vw), 50px);
}

body.top-page .membership-section .benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, calc(20px + 1.042vw), 40px);
  margin-bottom: clamp(63px, calc(45px + 2.344vw), 90px);
}

body.top-page .membership-section .benefit-item {
  background: #fff;
  border-radius: clamp(14px, calc(10px + 0.521vw), 20px);
  height: clamp(102px, calc(73px + 3.776vw), 145px);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 clamp(25px, calc(18px + 0.911vw), 35px);
  gap: clamp(18px, calc(13px + 0.651vw), 25px);
}

body.top-page .membership-section .benefit-item .benefit-item__icon {
  width: clamp(56px, calc(40px + 2.083vw), 80px);
  height: clamp(56px, calc(40px + 2.083vw), 80px);
  object-fit: contain;
  flex-shrink: 0;
}

body.top-page .membership-section .benefit-item .benefit-item__text {
  font-size: clamp(14px, calc(10px + 0.521vw), 20px);
  line-height: clamp(25px, calc(18px + 0.911vw), 35px);
  letter-spacing: 1.6px;
  text-align: left;
}

/* ============================================
   Footer spacing (top page only)
   ============================================ */
body.top-page .site-footer {
  margin-top: var(--section-gap);
}

/* ============================================
   Responsive: Sub-Desktop (< 1460px)
   ============================================ */
@media (max-width: 1459px) {
  body.top-page .hero-slider .slide .slide__content {
    padding: 22px 25px 25px;
  }

  body.top-page .hero-slider .slide .slide__title {
    font-size: clamp(14px, calc(8px + 0.833vw), 20px);
    line-height: 1.8;
    margin-bottom: 15px;
  }

  body.top-page .hero-slider .slide .slide__date {
    font-size: 16px;
    line-height: 16px;
  }

  body.top-page .hero-slider .slide .slide__category {
    font-size: 14px;
    line-height: 14px;
    white-space: nowrap;
  }
}

/* ============================================
   Responsive: Tablet (< 1200px)
   ============================================ */
@media (max-width: 1199px) {
  body.top-page {
    --section-gap: 60px;
    --heading-en-size: 36px;
    --heading-ja-size: 18px;
    padding-top: 70px;
  }

  /* Slider */
  body.top-page .hero-slider {
    padding: 30px 0 40px;
  }

  body.top-page .hero-slider .slider-track {
    height: auto;
    min-height: 300px;
  }

  body.top-page .hero-slider .slide .slide__content {
    padding: 20px 25px 25px;
  }

  body.top-page .hero-slider .slide .slide__title {
    font-size: clamp(12px, calc(6px + 1vw), 18px);
    line-height: 1.7;
    margin-bottom: 12px;
  }

  body.top-page .hero-slider .slide .slide__date {
    font-size: 15px;
    line-height: 15px;
  }

  body.top-page .hero-slider .slide .slide__category {
    font-size: clamp(10px, 1vw, 14px);
    line-height: 14px;
    gap: 10px;
    white-space: nowrap;
  }

  body.top-page .hero-slider .slide .category-tag {
    font-size: clamp(9px, 0.9vw, 13px);
    padding: 0 8px;
  }

  body.top-page .hero-slider .slider-controls {
    gap: 16px;
    margin-top: 20px;
  }

  body.top-page .hero-slider .slider-controls .slider-arrow img {
    width: 30px;
  }

  /* Main Container: 1 column */
  body.top-page .main-container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0 30px;
    gap: var(--section-gap);
  }

  body.top-page .main-container .main-content {
    flex: none;
    width: 100%;
    overflow: visible;
  }

  body.top-page .main-container .sidebar {
    flex: none;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    overflow: visible;
  }

  /* Articles */
  body.top-page .articles-section .article-card .article-card__image {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  body.top-page .articles-section .article-card .article-card__body {
    padding: 30px 30px 40px;
  }

  /* CTA Buttons */
  body.top-page .btn-more,
  body.top-page .btn-membership {
    width: 320px;
    height: 85px;
    font-size: 20px;
  }

  /* Membership */
  body.top-page .membership-section {
    padding: 60px 40px 80px;
  }
}

/* ============================================
   Responsive: Mobile (< 768px)
   ============================================ */
@media (max-width: 767px) {
  body.top-page {
    --section-gap: 40px;
    --heading-en-size: 28px;
    --heading-ja-size: 16px;
    padding-top: 76px;
  }

  /* Slider */
  body.top-page .hero-slider {
    padding: 19px 0 0;
  }

  body.top-page .hero-slider .slide {
    overflow: visible;
    transition: opacity 0.3s ease;
  }

  body.top-page .hero-slider .slide a {
    transition: none;
  }

  body.top-page .hero-slider .slide a:hover {
    opacity: 1;
  }

  body.top-page .hero-slider .slide .slide__image {
    aspect-ratio: 375 / 355;
  }

  body.top-page .hero-slider .slide .slide__content {
    padding: 25px 25px 40px;
    transition: transform 0.3s ease;
  }

  body.top-page .hero-slider .slide .slide__title,
  body.top-page .hero-slider .slide .slide__meta {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  body.top-page .hero-slider .slide.is-active .slide__title,
  body.top-page .hero-slider .slide.is-active .slide__meta {
    opacity: 1;
  }

  body.top-page .hero-slider .slide .slide__title {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  body.top-page .hero-slider .slide .slide__meta {
    gap: 10px;
  }

  body.top-page .hero-slider .slide .slide__date {
    font-size: 11px;
    line-height: 11px;
  }

  body.top-page .hero-slider .slide .slide__category {
    font-size: 10px;
    line-height: 10px;
    gap: 8px;
  }

  body.top-page .hero-slider .slide .slide__category::before {
    height: 14px;
  }

  body.top-page .hero-slider .slider-controls {
    gap: 20px;
    margin-top: 23px;
    margin-bottom: 30px;
  }

  body.top-page .hero-slider .slider-dots {
    gap: 10px;
  }

  body.top-page .hero-slider .slider-dot {
    width: 4px;
    height: 4px;
  }

  body.top-page .hero-slider .slider-controls .slider-arrow img {
    width: 30px;
  }

  /* Main Container */
  body.top-page .main-container {
    padding: 0 25px;
    margin-top: 70px;
  }

  body.top-page .section-heading {
    display: flex;
    align-items: baseline;
    gap: 15px;
  }

  body.top-page .section-heading .section-heading__ja {
    margin-top: 0;
  }

  body.top-page .main-content .section-heading {
    margin-bottom: 50px;
    flex-direction: column;
    align-items: center;
  }

  /* Articles: 1 column */
  body.top-page .articles-section .article-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  body.top-page .articles-section .article-card .article-card__body {
    padding: 35px 25px 50px;
  }

  body.top-page .articles-section .article-card .article-card__date {
    font-size: 12px;
  }

  body.top-page .articles-section .article-card .article-card__title {
    font-size: 14px;
    line-height: 1.6;
    height: calc(14px * 1.6 * 2);
  }

  body.top-page .articles-section .article-card .article-card__excerpt {
    font-size: 14px;
    line-height: 1.8;
    height: calc(14px * 1.8 * 2);
  }

  body.top-page .articles-section .more-wrapper {
    margin-top: 50px;
  }

  body.top-page .category-tag {
    min-width: 100px;
    height: 34px;
    line-height: 34px;
    font-size: 12px;
    padding: 0 14px;
  }

  body.top-page .articles-section .article-card .article-card__categories .category-tag {
    min-width: 90px;
    height: 34px;
    line-height: 30px;
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 0 8px;
  }

  /* CTA Buttons */
  body.top-page .btn-more,
  body.top-page .btn-membership {
    width: 100%;
    max-width: 240px;
    height: 65px;
    font-size: 14px;
  }

  /* Membership */
  body.top-page .membership-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 70px 25px 90px;
    margin-top: var(--section-gap);
  }

  body.top-page .membership-section .section-heading {
    margin-bottom: 30px;
    flex-direction: column;
    align-items: center;
  }

  body.top-page .membership-section .membership-section__lead {
    font-size: 13px;
    margin-bottom: 50px;
  }

  body.top-page .membership-section .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
    margin-bottom: 30px;
  }

  body.top-page .membership-section .benefit-item {
    border-radius: 10px;
    height: auto;
    padding: 20px 10px 20px 32px;
    margin-left: 20px;
    overflow: visible;
    position: relative;
  }

  body.top-page .membership-section .benefit-item .benefit-item__icon {
    width: 40px;
    height: 40px;
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
  }

  body.top-page .membership-section .benefit-item .benefit-item__text {
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.6px;
  }

  body.top-page .membership-section .btn-membership {
    width: 80%;
    max-width: 260px;
    font-size: 15px;
  }

  /* Sidebar layout */
  body.top-page .main-container .sidebar {
    max-width: 100%;
  }
}