/* ============================================================
   page-project.css — プロジェクトページ（2026-02統一改訂）
   RHYTHM: Header(暗) → Jinyong+Timeline(浅) → Strategy(cream)
           → Taylor(浅・白カード三層) → Footer(暗)
   全inner 1200px / 正文16px / 金線装飾
   ============================================================ */

/* ===== JINYONG PHOTO + BIO SECTION ===== */
.jinyong-photo-section {
  padding: var(--section-v) var(--page-pad) var(--space-xl);
  background: var(--color-offwhite);
}
.jinyong-photo-inner {
  max-width: var(--page-max);   /* 1200px */
  margin: 0 auto;
  width: 100%;
}

/* top: text left + portrait right */
.jinyong-top {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}

/* 左側テキスト */
.jinyong-text-col {
  flex: 1 1 0;
  min-width: 0;
}
.jinyong-text-col .section-label {
  color: #a08a5a;
  margin-bottom: 10px;
}
.jinyong-text-col .section-title {
  color: var(--color-text);
  margin-bottom: 6px;
  font-size: 30px;
}
.jinyong-text-col .section-divider {
  margin-bottom: 28px;
}
.jinyong-bio-text p {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  text-align: justify;
}

/* right portrait 420px */
.jinyong-portrait-col {
  flex: 0 0 420px;
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.2);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
}
.jinyong-portrait-col img {
  width: 100%;
  height: auto;
  display: block;
}

/* filmstrip: 4 landscape images */
.jinyong-filmstrip {
  display: flex;
  gap: 0;
  background: var(--color-cream);
  padding: 8px;
  justify-content: space-evenly;
  align-items: center;
}
.jinyong-film-item {
  flex: 0 0 auto;
  height: 220px;
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.38);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #f5f2eb;
  padding: 8px;
  border-radius: 6px;
}
.jinyong-film-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.jinyong-film-item img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
.jinyong-film-item:hover img {
  transform: scale(1.05);
}

/* ===== JINYONG TIMELINE ===== */
.jinyong-timeline-section {
  padding: calc(var(--section-v) * 1.15) var(--page-pad);
  background: var(--color-cream);
  position: relative;
}
.jinyong-timeline-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

/* ===== VERTICAL TIMELINE ===== */
.vtl-header {
  text-align: center;
  margin-bottom: 56px;
}
.vtl-header .section-divider { margin: 0 auto; }

/* vtl全体：左右のsideパディング分を打ち消して外側と揃える */
.vtl {
  display: flex;
  flex-direction: column;
  margin-left: -20px;
  margin-right: -20px;
}

/* timeline item - flex */
.vtl-item {
  display: flex;
  align-items: flex-start; /* top align */
  margin-bottom: 0; /* natural flow */
  min-height: auto; /* auto min-height */
  position: relative;
}

/* side columns */
.vtl-side {
  flex: 1;
  padding: 0 20px 16px; /* reduced padding */
}

/* left */
.vtl-side--left {
  text-align: right;
}

/* right */
.vtl-side--right {
  text-align: left;
}

/* left with image */
.vtl-side--left.vtl-side--img {
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
}

/* right with image */
.vtl-side--right.vtl-side--img {
  display: flex;
  justify-content: flex-start;
  padding-left: 20px;
}

/* center axis */
.vtl-axis-col {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  align-self: stretch; /* stretch to content */
}

/* axis line */
.vtl-axis-col::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(200,169,110,0.4);
  transform: translateX(-50%);
  z-index: 1;
}

/* hide original line */
.vtl-line {
  display: none;
}

/* year badge */
.vtl-badge {
  background: var(--color-cream); /* bg cover axis */
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 8px;
  white-space: nowrap;
  position: relative;
  z-index: 3;
  margin: 0 0 8px 0;
  line-height: 1.5;
  border-radius: 20px;
  text-align: center;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.vtl-badge--gold {
  color: #C8A96E;
  font-weight: 900;
  background: #f0ebe2; /* slightly darker than offwhite */
}

/* dot */
.vtl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-offwhite);
  box-shadow: 0 0 0 1px rgba(200,169,110,0.3);
  position: relative;
  z-index: 3;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}
.vtl-dot--gold {
  width: 14px;
  height: 14px;
  background: #a07810;
}
.vtl-item:hover .vtl-dot {
  transform: scale(1.4);
}

/* text content */
.vtl-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  letter-spacing: 0.3px;
  margin: 0;
  display: inline-block;
  background: var(--color-cream); /* cover axis */
  padding: 2px 0;
}

/* image box */
.vtl-img-box {
  max-width: 180px;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}
.vtl-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.vtl-item:hover .vtl-img-box {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.vtl-item:hover .vtl-img-box img {
  transform: scale(1.05);
}

/* align items with/without images */
.vtl-side--img {
  padding-top: 0;
}
.vtl-img-box {
  margin-top: 0;
}

/* summary */
.vtl-summary {
  margin-top: 48px;
  padding: 30px 20px 0;
  border-top: 2px solid var(--color-accent);
  text-align: left;
  background: rgba(200,169,110,0.02);
}
.vtl-summary p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-light);
  font-weight: 400;
  max-width: 100%;
  margin: 0;
}

/* responsive */
@media (max-width: 768px) {
  .vtl-item {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
  }
  
  .vtl-axis-col {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: auto;
    align-self: auto;
  }
  
  .vtl-axis-col::before {
    left: 15px;
  }
  
  .vtl-side {
    width: 100%;
    flex: none;
    padding: 0 0 15px 0;
    text-align: left;
  }
  
  .vtl-side--left,
  .vtl-side--right {
    text-align: left;
  }
  
  .vtl-side--left.vtl-side--img,
  .vtl-side--right.vtl-side--img {
    justify-content: flex-start;
    padding: 0;
  }
  
  .vtl-badge {
    font-size: 11px;
    padding: 2px 6px;
    margin-left: 20px;
    white-space: nowrap;
  }
  
  .vtl-dot {
    margin-left: 8px;
  }
  
  .vtl-img-box {
    max-width: 100%;
    margin-bottom: 10px;
  }
}

/* (strategy section removed) */

/* ===== TAYLOR / WETA SECTION ===== */
.taylor {
  padding: var(--section-v-sm) var(--page-pad) var(--space-xl);
  background: var(--color-cream);
  position: relative; overflow: hidden;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}
.taylor::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 80% 20%, rgba(200,169,110,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.taylor-inner {
  max-width: var(--page-max); margin: 0 auto;
  position: relative; z-index: 1;
  width: 100%;
}

/* heading */
.taylor-heading {
  margin-bottom: 32px;
}
.taylor-heading .section-label {
  color: var(--color-accent);
  margin-bottom: 10px;
}
.taylor-heading .section-title {
  color: var(--color-text);
  font-size: 30px;
  margin-bottom: 6px;
}
.taylor-heading .section-divider {
  margin-bottom: 0;
}

/* content: image + text */
.taylor-hero {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* 左側画像 560px幅・比例16:10 */
.taylor-image {
  flex: 0 0 560px;
  height: 354px;
  position: relative;
  overflow: hidden;
}
.taylor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.taylor-image::before {
  content: ''; position: absolute; top: -10px; left: -10px;
  width: 40px; height: 40px;
  border-top: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
  z-index: 1;
}
.taylor-image::after {
  content: ''; position: absolute; bottom: -10px; right: -10px;
  width: 40px; height: 40px;
  border-bottom: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  z-index: 1;
}

/* 右側テキスト */
.taylor-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.taylor-subtitle {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.taylor-desc {
  font-size: 15px; line-height: 1.95;
  color: var(--color-text-light);
  letter-spacing: 0.3px; margin-bottom: 14px;
}

/* stats bar (compact) */
.taylor-stats {
  display: flex; gap: 32px; margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(200,169,110,0.2);
}
.taylor-stat-num {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 900;
  color: var(--color-accent); line-height: 1;
}
.stat-plus {
  font-size: 17px; font-weight: 700;
  vertical-align: super; margin-left: 2px;
}
.taylor-stat-label {
  font-size: 10px; color: var(--color-text-light);
  letter-spacing: 1px; margin-top: 6px;
}

/* ===== RESPONSIVE ===== */

/* ===== Tablet 820px~1024px ===== */
@media (max-width: 912px) {
  .jinyong-filmstrip {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }
  .jinyong-film-item {
    flex: 0 0 auto;
    height: 160px;
    width: calc(33.33% - 6px);
  }
  .jinyong-film-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .vtl-img-box {
    aspect-ratio: 4/3;
  }
}
@media (max-width: 1024px) {
  .jinyong-top {
    flex-direction: column;
    gap: 32px;
  }
  .jinyong-portrait-col {
    flex: 1 1 auto;
    width: 100%;
    max-width: 420px;
  }
  .jinyong-filmstrip {
    gap: 4px;
  }
  .taylor-hero {
    flex-direction: column;
    gap: 32px;
  }
  .taylor-image {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
  }
  .taylor { min-height: auto; }
}
@media (max-width: 768px) {
  .jinyong-photo-section { padding: 70px 20px 32px; }
  .jinyong-top {
    flex-direction: column;
    gap: 24px;
  }
  .jinyong-portrait-col {
    flex: 1 1 auto;
    width: 100%;
  }
  .jinyong-bio-text p { font-size: 13px; line-height: 1.8; }
  .jinyong-filmstrip {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }
  .jinyong-film-item {
    flex: 0 0 auto;
    height: 140px;
    width: calc(50% - 2px);
  }
  .jinyong-film-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .taylor { padding: 48px 20px; min-height: auto; }
  .taylor-image { height: auto; aspect-ratio: 4/3; }
  .taylor-stats { gap: 16px; flex-wrap: wrap; }
  .taylor-stat-num { font-size: 24px; }
  .taylor-subtitle { font-size: 14px; }
}

/* P1-1: 固定nav によるアンカー隠れ対策 */
[id="jinyong"],
[id="taylor"] {
  scroll-margin-top: 90px;
}

/* ===== v9 ADDITIONS ===== */

/* Timeline section heading */
.timeline-heading {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 3px; line-height: 1.6;
  margin-bottom: 12px;
}

/* Strategy section removed */

/* Taylor responsive additions */
@media (max-width: 768px) {
  .timeline-heading { font-size: 22px; }
}

@media (max-width: 390px) {
  .jinyong-photo-section { padding: 56px 16px 24px; }
  .jinyong-bio-text p { font-size: 13px; }
  .jinyong-filmstrip { padding: 6px; gap: 4px; }
  .jinyong-film-item { height: 120px; width: calc(50% - 2px); }
  .jinyong-timeline-section { padding: 36px 16px; }
  .timeline-heading { font-size: 20px; letter-spacing: 1px; }
  .vtl-text { font-size: 13px; }
  .vtl-badge { font-size: 10px; }
  .taylor { padding: 36px 16px; }
  .taylor-subtitle { font-size: 13px; }
  .taylor-desc { font-size: 13px; }
  .taylor-stat-num { font-size: 22px; }
  .taylor-stats { gap: 12px; }
}

/* ===== JINYONG HISTORICAL ENCOUNTERS ===== */
.jinyong-encounters {
  padding: var(--section-v) var(--page-pad);
}
.jinyong-encounters-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}
.jinyong-encounters-inner .section-label {
  color: #a08a5a;
  margin-bottom: 10px;
}
.jinyong-encounters-inner .section-title {
  color: var(--color-text);
  font-size: 30px;
  margin-bottom: 6px;
}
.jinyong-encounters-inner .section-divider {
  margin-bottom: 28px;
}
.jinyong-encounters-lead {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
  letter-spacing: 0.3px;
  margin-bottom: 44px;
}
.jinyong-encounters-grid {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
}
.jinyong-encounter-card {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 相框 — 比题字相框稍厚重，更有档案感 */
.jinyong-encounter-frame {
  position: relative;
  background: #111;
  border: 2px solid rgba(200,169,110,0.55);
  box-shadow:
    0 0 0 6px rgba(200,169,110,0.08),
    0 8px 32px rgba(0,0,0,0.18);
  transition: box-shadow 0.4s ease;
  line-height: 0;
}
.jinyong-encounter-card:hover .jinyong-encounter-frame {
  box-shadow:
    0 0 0 6px rgba(200,169,110,0.15),
    0 12px 40px rgba(0,0,0,0.24);
}
.jinyong-encounter-frame img {
  height: 360px;
  width: auto;
  display: block;
  transition: transform 0.5s ease;
}
.jinyong-encounter-card:hover .jinyong-encounter-frame img {
  transform: scale(1.03);
}

/* caption */
.jinyong-encounter-caption {
  padding: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.encounter-year {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 3px;
}
.encounter-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.75;
  letter-spacing: 0.3px;
}

/* responsive */
@media (max-width: 768px) {
  .jinyong-encounters-grid {
    flex-direction: column;
    gap: 28px;
  }
  .jinyong-encounter-frame img {
    height: 260px;
  }
  .jinyong-encounters {
    padding: 48px 20px;
  }
}
@media (max-width: 390px) {
  .jinyong-encounter-frame img {
    height: 210px;
  }
}
