/* inner.css — 内ページ共通スタイル */

.main-content {
  overflow: hidden;
}

.hero-num {
  font-family: var(--num-font);
  font-weight: 700;
}

.section-heading {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.num-section-note {
  margin-top: 32px;
  font-size: 1.2rem;
  color: var(--sub-color);
}

/* 注記内のリンクは下線を表示（参照先ページへの導線） */
.num-section-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity 0.2s;
}

.num-section-note a:hover {
  opacity: 0.7;
}

/* ===== Page Hero ===== */
.page-hero {
  padding: 56px 5% 40px;
  border-bottom: 1px solid var(--base-color);
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  color: var(--sub-color);
  margin-bottom: 16px;
}

.page-hero-breadcrumb a {
  color: var(--sub-color);
  transition: opacity 0.2s;
}

.page-hero-breadcrumb a:hover {
  opacity: 0.7;
}

.page-hero-en {
  font-family: var(--num-font);
  font-size: clamp(5.6rem, 10vw, 11rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.92;
  margin-bottom: 12px;
}

.page-hero-jp {
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  color: var(--base-color);
  letter-spacing: 0.1em;
}

/* ===== sections-group / sections-accent ===== */
.sections-group {
  position: relative;
}

.sections-accent {
  display: none;
  pointer-events: none;
}

@media (min-width: 1201px) {
  .sections-accent {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 130px;
    border-left: 1px solid #ccc;
    z-index: 1;
  }

  .sections-accent-text {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    left: -2px;
    right: 0;
    font-family: var(--num-font);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--base-color);
    background: #fff;
    padding: 12px 4px 12px 8px;
  }

  .sections-group .num-section {
    padding-right: 170px;
    position: relative;
    border-bottom: none;
  }

  .sections-group .num-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 170px;
    height: 1px;
    background-color: var(--base-color);
  }
}

/* ===== Num Section ===== */
.num-section {
  padding: 64px 5%;
  border-bottom: 1px solid var(--base-color);
}

.num-section-grid {
  display: flex;
  gap: 0;
}

.num-section-head {
  flex-shrink: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.num-section-body {
  flex: 1;
  min-width: 0;
}

.num-section-number {
  font-family: var(--num-font);
  font-size: clamp(7rem, 14vw, 13.4rem);
  font-weight: 700;
  line-height: 1;
}

.num-section-en {
  font-family: var(--num-font);
  font-size: clamp(1.7rem, 2.7vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.num-section-label {
  width: fit-content;
}

.num-section-divider {
  display: block;
  width: 65%;
  height: 1px;
  margin: 8px 0;
  background-color: var(--base-color);
}

.num-section-jp {
  font-size: 1.8rem;
  font-weight: 700;
}

.num-section-link {
  display: inline-flex;
  align-items: stretch;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.num-section-link:hover {
  opacity: 0.75;
}

.num-section-link-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background-color: var(--base-color);
  color: #fff;
  padding: 14px 28px;
  border-radius: 4px 0 0 4px;
}

.num-section-link-jp {
  font-size: 1.4rem;
  font-weight: 700;
}

.num-section-link-en {
  font-family: var(--num-font);
  font-weight: 500;
  font-size: 1rem;
  color: #aaa;
}

.num-section-link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  background-color: #a5a5a5;
  border-radius: 0 4px 4px 0;
  font-size: 1.2rem;
  color: var(--base-color);
}

.num-section-lead {
  font-size: clamp(1.4rem, 1.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 40px;
}

.num-section-body .section-heading {
  margin-bottom: 40px;
}

/* ===== Sub Section ===== */
.sub-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 40px;
  margin-top: 40px;
}

.sub-section-tag {
  font-family: var(--num-font);
  font-size: 1.1rem;
  color: var(--sub-color);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.sub-section-heading {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}

.sub-section-text {
  font-size: 1.4rem;
  line-height: 1.9;
}

.sub-section-text p + p {
  margin-top: 16px;
}

.sub-section-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.sub-section-layout--wide {
  grid-template-columns: 1.2fr 1fr;
}

.sub-section-layout--rev {
  grid-template-columns: 1fr 1.2fr;
}

.sub-section-figure {
  overflow: hidden;
  border-radius: 2px;
}

.sub-section-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.sub-section-figure--tall img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =========================================================================
   Inner content page — shared layout
   prologue / mission / journey / evidence / academic / guideline で共通の
   「全幅バナー＋番号ラベル＋本文（英文サブ・対訳リード）＋サブセクション」
   レイアウト。各ページ固有の要素のみ個別CSS（prologue.css 等）に残す。
   セクションに class="num-section inner" を付与して有効化する。
   ========================================================================= */
.inner {
  --p-indent: 72px;        /* 番号ラベルの左インデント＝サブセクションの左端 */
  border-bottom: none;
}

/* トップページ用の縦アクセント線（::after）は内ページでは使わない */
.inner::after {
  content: none;
}

/* 全幅バナー画像（番号ラベルが下端に重なる） */
.section-banner {
  position: relative;
  z-index: 0;
  width: 100%;
  height: clamp(220px, 26vw, 380px);
  overflow: hidden;
}

.section-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* 番号ラベル：右へインデントしてバナー下端に重ね、見出しとの間に縦線 */
.inner .num-section-head {
  width: auto;
  padding-left: var(--p-indent);
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.inner .num-section-label {
  border-right: 1px solid var(--base-color);
  padding-right: 40px;
}

.inner .num-section-en {
  margin-top: 6px;
}

.inner .num-section-divider {
  margin: 12px 0 16px;
}

.inner .num-section-body {
  position: relative;
  z-index: 1;
  padding-left: 48px;
}

/* 見出しを下げて英文サブに近づける */
.inner .num-section-body .section-heading {
  margin-top: 40px;
  margin-bottom: 8px;
}

/* 見出し下の英文サブ（Oswald・太字・黒） */
.section-en-sub {
  font-family: var(--num-font);
  font-size: clamp(1.3rem, 1.6vw, 1.6rem);
  font-weight: 700;
  color: var(--base-color);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0 0 28px;
}

/* リード文（日本語＋英訳） */
.section-lead-jp {
  font-size: 1.5rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.section-lead-jp strong {
  font-weight: 700;
}

.section-lead-en {
  font-family: var(--en-font);
  font-size: 1.2rem;
  color: var(--sub-color);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* サブセクション群：番号ラベルの左端に揃え、全幅で配置 */
.section-subsections {
  padding-left: var(--p-indent);
}

.inner .sub-section {
  border-top-color: var(--base-color);
}

/* サブセクションのタグ（黒・大きめ・縦棒セパレータ） */
.inner .sub-section-tag {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--base-color);
  margin-bottom: 16px;
}

.sub-section-tag .tag-bar {
  display: inline-block;
  width: 1px;
  height: 1.4em;
  margin: 0 16px;
  background-color: #888;
}

/* サブセクション画像は原寸比率（左右の見切れ防止） */
.inner .sub-section-figure img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* ===== Body text shared ===== */
.body-text {
  font-size: 1.4rem;
  line-height: 1.9;
}

.body-text p + p {
  margin-top: 16px;
}

/* ===== Internal link buttons ===== */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.internal-link-btn {
  display: inline-flex;
  align-items: stretch;
  transition: opacity 0.2s;
}

.internal-link-btn:hover {
  opacity: 0.75;
}

.internal-link-btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background-color: var(--base-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px 0 0 4px;
}

.internal-link-btn-jp {
  font-size: 1.3rem;
  font-weight: 700;
}

.internal-link-btn-en {
  font-family: var(--num-font);
  font-size: 0.9rem;
  color: #aaa;
}

.internal-link-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  background-color: #a5a5a5;
  border-radius: 0 4px 4px 0;
  font-size: 1.1rem;
  color: var(--base-color);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page-hero {
    padding: 40px 5% 32px;
  }

  .page-hero-en {
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 0.95;
  }

  .num-section {
    padding: 48px 6%;
  }

  .num-section-grid {
    flex-direction: column;
    gap: 24px;
  }

  .num-section-head {
    width: auto;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  .sub-section-layout,
  .sub-section-layout--wide,
  .sub-section-layout--rev {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Inner content page — モバイルでは重なり・インデントを解除 */
  .inner {
    --p-indent: 0px;
  }

  .section-banner {
    height: clamp(180px, 44vw, 300px);
  }

  .inner .num-section-head {
    width: auto;
    margin-top: 0;
    padding-left: 0;
  }

  .inner .num-section-label {
    border-right: none;
    padding-right: 0;
  }

  .inner .num-section-body {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .page-hero-en {
    font-size: clamp(3.2rem, 12vw, 6rem);
  }
}
