/* ========================================
   SUBPAGE COMPONENTS - 下層ページ共通デザイン
   Editorial Typography + Cinematic Style
   ======================================== */
@layer base, layout, components, utilities, pages;

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

@layer components {

/* ========================================
   CSS VARIABLES - 共通変数
   ======================================== */
:root {
  --font-display-en: 'Bebas Neue', 'Impact', sans-serif;
  --font-body-en: 'DM Sans', 'Inter', sans-serif;
  --subpage-accent: #1e40af;
  --subpage-accent-light: #3b82f6;
  --subpage-warm: #b91c1c;
  --subpage-dark: #0f172a;
  --subpage-surface: #f8fafc;
}

/* ========================================
   PAGE HERO - シネマティックヒーロー
   ======================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0f1a 0%, #1a2744 100%);
  min-height: clamp(420px, 55vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 背景画像 - Ken Burns Effect */
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
  filter: contrast(1.05) saturate(1.1);
}

@keyframes heroKenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

/* シネマティックオーバーレイ */
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(10, 15, 26, 0.3) 0%,
      rgba(10, 15, 26, 0.5) 40%,
      rgba(10, 15, 26, 0.85) 100%
    ),
    linear-gradient(90deg,
      rgba(30, 64, 175, 0.15) 0%,
      transparent 50%,
      rgba(185, 28, 28, 0.1) 100%
    );
}

/* 幾何学的装飾 */
.page-hero__geometric {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.page-hero__geo-line {
  position: absolute;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
}

.page-hero__geo-line--1 {
  top: 30%;
  left: -10%;
  width: 60%;
  height: 1px;
  transform: rotate(-15deg);
  animation: geoLineSlide 8s ease-in-out infinite;
}

.page-hero__geo-line--2 {
  bottom: 25%;
  right: -10%;
  width: 50%;
  height: 1px;
  transform: rotate(12deg);
  animation: geoLineSlide 10s ease-in-out infinite reverse;
}

.page-hero__geo-circle {
  position: absolute;
  top: 15%;
  right: 10%;
  width: clamp(100px, 18vw, 240px);
  height: clamp(100px, 18vw, 240px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  animation: geoCirclePulse 6s ease-in-out infinite;
}

@keyframes geoLineSlide {
  0%, 100% { opacity: 0.3; transform: translateX(0) rotate(-15deg); }
  50% { opacity: 0.6; transform: translateX(20px) rotate(-15deg); }
}

@keyframes geoCirclePulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

/* コンテンツコンテナ */
.page-hero__container {
  position: relative;
  z-index: 10;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 120px) var(--gutter, 24px);
  width: 100%;
  box-sizing: border-box;
}

.page-hero__content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* カテゴリラベル */
.page-hero__category {
  display: inline-block;
  padding: 10px 28px;
  background: var(--subpage-warm);
  color: #ffffff;
  font-family: var(--font-display-en);
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 clamp(20px, 3vw, 32px);
  position: relative;
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.page-hero__category::before,
.page-hero__category::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%);
}

.page-hero__category::before { left: -40px; }
.page-hero__category::after { right: -40px; }

@media (max-width: 767px) {
  .page-hero__category::before,
  .page-hero__category::after { display: none; }
}

/* 英語サブタイトル - Bold Display */
.page-hero__sub-en {
  margin: 0 0 clamp(8px, 1.5vw, 16px);
  font-family: var(--font-display-en);
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

/* 日本語タイトル */
.page-hero__title {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(30, 64, 175, 0.3);
  animation: fadeSlideUp 0.8s ease-out 0.6s both;
}

/* リード文 */
.page-hero__lead {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  animation: fadeSlideUp 0.8s ease-out 0.8s both;
}

/* メタ情報（日付など） */
.page-hero__meta {
  margin-top: clamp(20px, 3vw, 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: rgba(255, 255, 255, 0.6);
  animation: fadeSlideUp 0.8s ease-out 1s both;
}

.page-hero__date {
  font-family: var(--font-body-en);
  letter-spacing: 0.05em;
}

.page-hero__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CONTENT SECTION - セクション共通
   ======================================== */

.content-section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  background: #ffffff;
  overflow: hidden;
}

.content-section--gray {
  background: var(--subpage-surface);
}

.content-section--gradient {
  background: linear-gradient(180deg, #ffffff 0%, var(--subpage-surface) 100%);
}

.content-section--dark {
  background: var(--subpage-dark);
  color: #ffffff;
}

/* ノイズテクスチャ背景 */
.content-section--textured {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  background-blend-mode: overlay;
}

.content-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.content-section__head {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 80px);
  position: relative;
}

/* 英語サブタイトル */
.content-section__sub-en {
  display: block;
  font-family: var(--font-display-en);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(30, 64, 175, 0.2);
  margin-bottom: clamp(8px, 1.5vw, 16px);
  position: relative;
}

.content-section__sub-en::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(60px, 10vw, 100px);
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--subpage-accent) 50%,
    transparent 100%
  );
}

/* ダークセクション用 */
.content-section--dark .content-section__sub-en {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
}

.content-section--dark .content-section__sub-en::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
}

/* 日本語タイトル */
.content-section__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--color-text-strong);
  position: relative;
}

.content-section--dark .content-section__title {
  color: #ffffff;
}

/* 旧アンダーライン無効化（英語サブがある場合） */
.content-section__head:has(.content-section__sub-en) .content-section__title::after {
  display: none;
}

/* 英語サブがない場合のフォールバック */
.content-section__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--subpage-accent);
}

.content-section__lead {
  margin: clamp(28px, 4vw, 40px) auto 0;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.9;
  color: var(--color-text-subtle);
  max-width: 800px;
  text-align: center;
}

.content-section--dark .content-section__lead {
  color: rgba(255, 255, 255, 0.75);
}

.content-section__note {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  line-height: 1.8;
  color: var(--color-text-muted);
  text-align: center;
}

.content-section--dark .content-section__note {
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   CONTENT TABLE - テーブル
   ======================================== */

.content-table {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
}

.content-table__table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.content-table__table thead {
  background: var(--subpage-dark);
  color: #ffffff;
}

.content-table__table thead th {
  font-family: var(--font-body-en);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-table__table th,
.content-table__table td {
  padding: clamp(16px, 2.5vw, 20px) clamp(18px, 3vw, 24px);
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.content-table__table tbody th {
  background: var(--subpage-surface);
  color: var(--color-text-strong);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.3vw, 0.98rem);
  width: 160px;
  border-right: 2px solid var(--subpage-accent);
}

.content-table__table td {
  font-size: clamp(0.9rem, 1.3vw, 0.98rem);
  line-height: 1.75;
  color: var(--color-text-subtle);
}

.content-table__table tbody tr {
  transition: background 0.3s ease;
}

.content-table__table tbody tr:hover {
  background: rgba(30, 64, 175, 0.02);
}

.content-table__table tbody tr:last-child th,
.content-table__table tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================
   CARD GRID - カードグリッド
   ======================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
  counter-reset: card-counter;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-grid--three {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .card-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   CONTENT CARD - カード
   ======================================== */

.content-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.02),
    0 12px 28px rgba(0, 0, 0, 0.06);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  counter-increment: card-counter;
  cursor: pointer;
}

/* 番号オーバーレイ */
.content-card::before {
  content: counter(card-counter, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-display-en);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(30, 64, 175, 0.08);
  z-index: 2;
  transition: all 0.5s ease;
}

.content-card:hover::before {
  color: rgba(30, 64, 175, 0.15);
  transform: translateX(4px);
}

.content-card:hover {
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.03),
    0 16px 32px rgba(30, 64, 175, 0.08);
  transform: translateY(-6px);
}

/* 画像エリア */
.content-card__media {
  position: relative;
  height: clamp(180px, 24vw, 240px);
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
}

.content-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(15, 23, 42, 0.3) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.content-card:hover .content-card__media::before {
  opacity: 1;
}

.content-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-card:hover .content-card__img {
  transform: scale(1.04);
}

/* カテゴリタグ */
.content-card__category {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: var(--subpage-warm);
  color: #ffffff;
  font-family: var(--font-display-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 3;
}

/* コンテンツエリア */
.content-card__content {
  padding: clamp(28px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 16px);
  flex: 1;
  position: relative;
  border-top: 2px solid var(--subpage-accent);
}

/* 英語ラベル */
.content-card__label-en {
  font-family: var(--font-display-en);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--subpage-accent-light);
  text-transform: uppercase;
}

/* タイトル */
.content-card__title {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  color: var(--color-text-strong);
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

/* リンク装飾 - カード全体をクリック可能に */
.content-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.content-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
}

.content-card__title a:hover {
  color: var(--subpage-accent);
}

/* リード文 */
.content-card__lead {
  font-weight: 500;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.75;
  color: var(--color-text-subtle);
  margin: 0;
}

/* 本文 */
.content-card__text {
  line-height: 1.85;
  color: var(--color-text-subtle);
  font-size: clamp(0.9rem, 1.4vw, 0.98rem);
  margin: 0;
}

/* メタ情報 */
.content-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: clamp(0.8rem, 1.1vw, 0.88rem);
  color: var(--color-text-muted);
}

.content-card__date {
  font-family: var(--font-body-en);
  letter-spacing: 0.03em;
}

/* ダウンロードボタン */
.content-card__download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 24px;
  background: var(--subpage-accent, #1e40af);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 11;
}

.content-card__download-btn:hover {
  background: var(--subpage-accent-light, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.content-card__download-btn svg {
  flex-shrink: 0;
}


/* ========================================
   HORIZONTAL CARD - 横長カード（マガジンスタイル）
   ======================================== */

.horizontal-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: hcard-counter;
}

.horizontal-card {
  position: relative;
  counter-increment: hcard-counter;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.horizontal-card:last-child {
  border-bottom: none;
}

.horizontal-card__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: clamp(360px, 45vw, 480px);
}

@media (min-width: 900px) {
  .horizontal-card__main {
    grid-template-columns: 1fr 1fr;
    min-height: clamp(400px, 38vw, 500px);
  }

  .horizontal-card--reverse .horizontal-card__main {
    direction: rtl;
  }

  .horizontal-card--reverse .horizontal-card__main > * {
    direction: ltr;
  }
}

/* 画像エリア */
.horizontal-card__media {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.horizontal-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 64, 175, 0.2) 0%,
    transparent 50%,
    rgba(185, 28, 28, 0.15) 100%
  );
  z-index: 2;
}

.horizontal-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 60%,
    rgba(15, 23, 42, 0.6) 100%
  );
  z-index: 2;
}

@media (min-width: 900px) {
  .horizontal-card__media::after {
    background: linear-gradient(
      90deg,
      transparent 0%,
      transparent 50%,
      rgba(15, 23, 42, 0.8) 100%
    );
  }

  .horizontal-card--reverse .horizontal-card__media::after {
    background: linear-gradient(
      270deg,
      transparent 0%,
      transparent 50%,
      rgba(15, 23, 42, 0.8) 100%
    );
  }
}

.horizontal-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: saturate(1.1) contrast(1.05);
}

.horizontal-card:hover .horizontal-card__img {
  transform: scale(1.06);
}

/* 大きな番号 */
.horizontal-card::before {
  content: counter(hcard-counter, decimal-leading-zero);
  position: absolute;
  bottom: clamp(24px, 4vw, 40px);
  left: clamp(24px, 4vw, 48px);
  font-family: var(--font-display-en);
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  z-index: 3;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 900px) {
  .horizontal-card::before {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .horizontal-card--reverse::before {
    left: auto;
    right: clamp(24px, 4vw, 48px);
  }
}

.horizontal-card:hover::before {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.03);
}

/* コンテンツ */
.horizontal-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(36px, 5vw, 64px);
  position: relative;
  z-index: 4;
}

@media (min-width: 900px) {
  .horizontal-card__content {
    padding: clamp(48px, 5vw, 80px) clamp(48px, 6vw, 96px);
  }
}

/* 英語ラベル */
.horizontal-card__label-en {
  font-family: var(--font-display-en);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--subpage-accent-light);
  text-transform: uppercase;
}

.horizontal-card__title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.horizontal-card__lead {
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 3px solid var(--subpage-accent-light);
}

.horizontal-card__text {
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(0.92rem, 1.4vw, 1rem);
  margin: 0;
}

/* ========================================
   TIMELINE - タイムラインフロー
   ======================================== */

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  position: relative;
}

/* タイムラインライン */
.timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--subpage-accent) 0%,
    var(--subpage-accent-light) 50%,
    var(--subpage-warm) 100%
  );
}

@media (min-width: 640px) {
  .timeline::before {
    left: 40px;
  }
}

.timeline__item {
  position: relative;
  padding: clamp(28px, 4vw, 36px) clamp(28px, 4vw, 36px) clamp(28px, 4vw, 36px) clamp(80px, 12vw, 110px);
  background: transparent;
  transition: all 0.4s ease;
  border-radius: 12px;
}

@media (min-width: 640px) {
  .timeline__item {
    padding-left: clamp(100px, 14vw, 130px);
  }
}

.timeline__item:hover {
  background: rgba(30, 64, 175, 0.03);
}

/* 番号 */
.timeline__index {
  position: absolute;
  left: 8px;
  top: clamp(28px, 4vw, 36px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--subpage-accent);
  color: #ffffff;
  font-family: var(--font-display-en);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow:
    0 4px 12px rgba(30, 64, 175, 0.25),
    0 0 0 4px rgba(30, 64, 175, 0.1);
  z-index: 1;
  transition: all 0.4s ease;
}

@media (min-width: 640px) {
  .timeline__index {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}

.timeline__item:hover .timeline__index {
  background: var(--subpage-warm);
  box-shadow:
    0 6px 16px rgba(185, 28, 28, 0.3),
    0 0 0 4px rgba(185, 28, 28, 0.15);
  transform: scale(1.1);
}

.timeline__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-text-strong);
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.timeline__text {
  margin: 0;
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  line-height: 1.85;
  color: var(--color-text-subtle);
}

/* ========================================
   ARCHIVE FILTER - インラインフィルター (2025)
   Glass morphism + Compact inline layout
   ======================================== */

.archive-filter {
  max-width: 1000px;
  margin: 0 auto clamp(32px, 5vw, 48px);
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.archive-filter:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* インライン行レイアウト */
.archive-filter__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* セレクトグループ */
.archive-filter__selects {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* セレクトボックス */
.archive-filter__select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 10px 32px 10px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.archive-filter__select:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.archive-filter__select:focus {
  outline: none;
  background-color: rgba(30, 64, 175, 0.08);
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
}

/* 検索エリア */
.archive-filter__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding-left: 8px;
}

.archive-filter__search-icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.archive-filter__input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.archive-filter__input::placeholder {
  color: var(--color-text-muted);
}

.archive-filter__input:focus {
  outline: none;
}

/* アクションボタン */
.archive-filter__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.archive-filter__btn {
  padding: 10px 20px;
  background: var(--subpage-accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.archive-filter__btn:hover {
  background: var(--subpage-accent-light);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.archive-filter__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.2s ease;
}

.archive-filter__reset:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
  border-color: rgba(0, 0, 0, 0.15);
}

.archive-filter__reset svg {
  width: 16px;
  height: 16px;
}

/* レスポンシブ: タブレット */
@media (max-width: 900px) {
  .archive-filter__row {
    flex-wrap: wrap;
  }

  .archive-filter__selects {
    border-right: none;
    padding-right: 0;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .archive-filter__search {
    flex: 1;
    min-width: 0;
  }

  .archive-filter__actions {
    border-left: none;
    padding-left: 0;
  }
}

/* レスポンシブ: モバイル */
@media (max-width: 600px) {
  .archive-filter {
    padding: 16px;
  }

  .archive-filter__row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .archive-filter__selects {
    flex-wrap: wrap;
    gap: 8px;
  }

  .archive-filter__select {
    flex: 1;
    min-width: calc(50% - 4px);
  }

  .archive-filter__search {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
  }

  .archive-filter__actions {
    flex-direction: row;
    justify-content: stretch;
  }

  .archive-filter__btn {
    flex: 1;
  }
}

/* ========================================
   PAGINATION - ページネーション (2025)
   コンパクト・ピル型・静的ホバー
   ======================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(48px, 6vw, 72px);
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 20px;
  font-family: var(--font-display-en);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-text-subtle);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.pagination__item:hover {
  border-color: var(--subpage-accent);
  color: var(--subpage-accent);
  background: rgba(30, 64, 175, 0.04);
}

.pagination__item--current {
  background: var(--subpage-accent);
  color: #ffffff;
  border-color: var(--subpage-accent);
  min-width: 44px;
}

.pagination__item--current:hover {
  background: var(--subpage-accent);
  color: #ffffff;
  border-color: var(--subpage-accent);
}

.pagination__item--prev,
.pagination__item--next {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 14px;
}

/* ========================================
   SINGLE ARTICLE - 記事詳細
   ======================================== */

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
  margin: clamp(48px, 6vw, 64px) 0 clamp(20px, 3vw, 28px);
  color: var(--color-text-strong);
  padding-left: 20px;
  border-left: 4px solid var(--subpage-accent);
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  margin: clamp(36px, 5vw, 48px) 0 clamp(16px, 2.5vw, 20px);
  color: var(--color-text-strong);
}

.article-content p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 2;
  margin: 0 0 clamp(20px, 3vw, 28px);
  color: var(--color-text);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: clamp(32px, 4vw, 48px) 0;
}

.article-content ul,
.article-content ol {
  margin: 0 0 clamp(20px, 3vw, 28px);
  padding-left: 1.5em;
}

.article-content li {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.9;
  margin-bottom: 8px;
  color: var(--color-text);
}

/* ========================================
   RELATED SECTION - 関連コンテンツ
   ======================================== */

.related-section {
  margin-top: clamp(64px, 8vw, 100px);
  padding-top: clamp(64px, 8vw, 100px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.related-section__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.related-section__title-en {
  font-family: var(--font-display-en);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(30, 64, 175, 0.25);
}

.related-section__title-ja {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: var(--color-text-strong);
}

/* ========================================
   ANIMATIONS - スクロールリビール
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
  .content-section__head,
  .content-card,
  .horizontal-card,
  .timeline__item,
  .content-table {
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 0.8s ease-out forwards;
  }

  .content-section__head { animation-delay: 0.1s; }
  .content-card:nth-child(1) { animation-delay: 0.15s; }
  .content-card:nth-child(2) { animation-delay: 0.25s; }
  .content-card:nth-child(3) { animation-delay: 0.35s; }
  .content-card:nth-child(4) { animation-delay: 0.45s; }
  .content-card:nth-child(5) { animation-delay: 0.55s; }
  .content-card:nth-child(6) { animation-delay: 0.65s; }
  .horizontal-card:nth-child(1) { animation-delay: 0.1s; }
  .horizontal-card:nth-child(2) { animation-delay: 0.25s; }
  .horizontal-card:nth-child(3) { animation-delay: 0.4s; }
  .timeline__item:nth-child(1) { animation-delay: 0.1s; }
  .timeline__item:nth-child(2) { animation-delay: 0.2s; }
  .timeline__item:nth-child(3) { animation-delay: 0.3s; }
  .timeline__item:nth-child(4) { animation-delay: 0.4s; }
  .timeline__item:nth-child(5) { animation-delay: 0.5s; }
  .content-table { animation-delay: 0.2s; }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

}
