/* ==========================================================================
   Sub-page Shared Styles — サブページ共通スタイル
   ========================================================================== */

/* ===== Sub Hero ===== */
.subhero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  background: var(--paper);
}
@media (max-width: 640px) {
  .subhero { padding: 130px 0 70px; }
}
.subhero .hero-shape {
  /* トップページと同じ赤ブロック（サブページでは少し小さめに） */
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 280px;
  background: var(--brand);
  clip-path: polygon(0 0, 100% 0, 100% 25%, 24% 100%);
  z-index: 0;
  pointer-events: none;
}
.subhero .hero-shape::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(0,0,0,.06), transparent 55%);
  clip-path: inherit;
}
@media (max-width: 960px) {
  .subhero .hero-shape { height: 220px; clip-path: polygon(0 0, 100% 0, 100% 28%, 28% 100%); }
}
@media (max-width: 640px) {
  .subhero .hero-shape { height: 180px; clip-path: polygon(0 0, 100% 0, 100% 35%, 30% 100%); }
}

.subhero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 48px 40px 40px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 2px;
}
@media (max-width: 640px) {
  .subhero-inner { padding: 32px 22px 28px; }
}

.subhero-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.subhero-breadcrumb a {
  color: var(--ink-sub);
  text-decoration: none;
  transition: color .25s ease;
}
.subhero-breadcrumb a:hover { color: var(--brand); }
.subhero-breadcrumb .bc-sep {
  margin: 0 10px;
  opacity: .5;
}

.subhero-kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--brand);
  margin-bottom: 20px;
  letter-spacing: .02em;
}
@media (max-width: 640px) {
  .subhero-kicker { font-size: 15px; margin-bottom: 14px; }
}

.subhero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--ink);
}
.subhero-title .accent {
  color: var(--brand);
  position: relative;
  display: inline-block;
}
.subhero-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 10px;
  background: var(--brand-soft);
  z-index: -1;
  transform: skewX(-4deg);
}
@media (max-width: 640px) {
  .subhero-title { font-size: 28px; line-height: 1.45; margin-bottom: 20px; }
}

.subhero-sub {
  font-size: 16px;
  color: var(--ink-sub);
  line-height: 1.95;
  max-width: 560px;
}
@media (max-width: 640px) {
  .subhero-sub { font-size: 14px; line-height: 1.9; }
}

/* ===== Access Intro ===== */
.access-intro {
  padding: clamp(56px, 8vw, 96px) 0 0;
}
.access-intro-inner {
  max-width: 820px;
}

/* 事務所写真スペース */
.office-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-deep);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: clamp(36px, 5vw, 56px);
  box-shadow: 0 20px 48px -20px rgba(0,0,0,.2);
}
.office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.office-photo-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg,
      var(--paper-deep),
      var(--paper-deep) 8px,
      transparent 8px, transparent 16px),
    var(--paper);
  border: 1px dashed var(--line);
}

.access-intro-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 2;
  color: var(--ink);
  letter-spacing: 0;
  margin-top: 24px;
}

/* ===== Shared Section Head（サブページ内） ===== */
.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 680px;
}

/* ===== Access Steps ===== */
.access-steps {
  padding: clamp(72px, 10vw, 120px) 0;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
  counter-reset: none;
}
.step {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child {
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
}
.step-body h3.step-title {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  margin: 4px 0 14px;
  color: var(--ink);
}
.step-body p {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-sub);
  margin: 0;
}
.step-body p strong {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(transparent 60%, var(--brand-soft) 60%);
  padding: 0 2px;
}
.step-note {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--paper-deep);
  border-left: 3px solid var(--brand);
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-sub);
}
.step-note strong {
  display: block;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: .08em;
}
@media (max-width: 720px) {
  .step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }
  .step-num { font-size: 36px; }
  .step-body h3.step-title { font-size: 17px; margin: 0 0 10px; }
  .step-body p { font-size: 14px; line-height: 1.9; }
  .step-note { padding: 14px 16px; font-size: 12px; }
}

/* ===== Office Info ===== */
.office-info {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}
.info-list {
  display: grid;
  gap: 0;
  max-width: 820px;
  margin: 0 0 40px;
}
.info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.info-row:first-child { border-top: 1px solid var(--line); }
.info-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-soft);
  padding-top: 4px;
}
.info-row dd {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  margin: 0;
}
.info-row dd a {
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
  text-decoration: none;
}
@media (max-width: 640px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .info-row dt { font-size: 10px; }
  .info-row dd { font-size: 14px; }
}

.office-note {
  max-width: 820px;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.office-note p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-sub);
  margin: 0;
}
.office-note strong {
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 640px) {
  .office-note { padding: 20px 22px; }
  .office-note p { font-size: 13px; }
}

/* ==========================================================================
   Profile Page — 運営者情報ページ用スタイル
   ========================================================================== */

/* ===== 共通：狭い読み幅のコンテナ ===== */
.profile-narrow {
  max-width: 780px;
}

/* ===== Introduction（導入文） ===== */
.profile-intro {
  padding: clamp(56px, 8vw, 96px) 0 0;
}
.profile-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 2.05;
  color: var(--ink);
  letter-spacing: 0;
  margin: 0;
}

/* ===== Chapter — 中見出し＋文章＋写真の繰り返しブロック ===== */
.profile-chapter {
  padding: clamp(72px, 10vw, 120px) 0;
}
.profile-chapter + .profile-chapter {
  padding-top: 0;  /* 連続するchapterは上余白を消して間隔を整える */
}
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.chapter-photo-left {
  grid-template-columns: .8fr 1fr;
}
.chapter-photo-left .chapter-photo { order: 1; }
.chapter-photo-left .chapter-body { order: 2; }

.chapter-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--brand);
  margin-bottom: 18px;
}
.chapter-title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: var(--ink);
}
.chapter-text p {
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-sub);
  margin: 0 0 1.2em;
}
.chapter-text p:last-child { margin-bottom: 0; }
.chapter-text strong {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(transparent 60%, var(--brand-soft) 60%);
  padding: 0 2px;
}
.chapter-text em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--brand);
}
.chapter-text code {
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.chapter-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  border-radius: 2px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 20px 48px -20px rgba(0,0,0,.2);
}
.chapter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chapter-photo-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg,
      var(--paper-deep),
      var(--paper-deep) 8px,
      transparent 8px, transparent 16px),
    var(--paper);
  border: 1px dashed var(--line);
}
.chapter-photo figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: 6px 12px;
  border-radius: 999px;
}

@media (max-width: 820px) {
  .chapter-grid,
  .chapter-photo-left {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .chapter-photo-left .chapter-photo { order: 0; }
  .chapter-photo-left .chapter-body { order: 1; }
  .chapter-photo { max-width: 420px; margin: 0 auto; }
  .chapter-title { font-size: 22px; margin-bottom: 20px; }
  .chapter-text p { font-size: 14px; line-height: 1.95; }
}

/* ===== Video（MP4動画） ===== */
.profile-video {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.video-frame {
  position: relative;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 24px 56px -22px rgba(0,0,0,.35);
}
.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.video-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}
.video-note code {
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--line);
}

/* ===== Timeline（個人年表） ===== */
.profile-timeline {
  padding: clamp(72px, 10vw, 120px) 0;
}
.p-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  max-width: 820px;
}
.p-timeline::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.p-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 40px;
  padding: 20px 0 28px;
}
.p-tl-item::before {
  content: "";
  position: absolute;
  left: 106px;
  top: 30px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-soft);
  z-index: 1;
}
.p-tl-item.is-current::before {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(240, 78, 75, .15);
}
.p-tl-year {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  padding-top: 20px;
  letter-spacing: -0.01em;
}
.p-tl-item.is-current .p-tl-year {
  color: var(--brand);
}
.p-tl-body h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
  color: var(--ink);
}
.p-tl-body p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-sub);
  margin: 0;
}
@media (max-width: 640px) {
  .p-timeline::before { left: 16px; }
  .p-tl-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0 24px 44px;
  }
  .p-tl-item::before { left: 12px; top: 22px; }
  .p-tl-year {
    font-size: 20px;
    padding-top: 0;
  }
  .p-tl-body h4 { font-size: 15px; }
  .p-tl-body p { font-size: 13px; }
}

/* ===== Profile Notes — 1カラム「見出し＋文章のみ」独立ブロック =====
   動画メッセージと同じく、paper-deep 背景＋上下ボーダーで
   独立したセクションとして見せる。
*/
.profile-notes {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  /* 下ボーダーと下余白を削除：グレー→CTA（白）へスパッと直結 */
  margin-top: clamp(72px, 10vw, 120px);    /* 年表との間に余白 */
  margin-bottom: 0;
}
.profile-notes .profile-note {
  padding: clamp(32px, 5vw, 56px) 0;
}
.profile-notes .profile-note:first-child { padding-top: 0; }
.profile-notes .profile-note:last-child  { padding-bottom: 0; }
/* 連続する note-block の間に薄い区切り線 */
.profile-notes .profile-note + .profile-note .note-block {
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 5vw, 56px);
}

.note-block {
  /* 左に薄い縦線を入れて、章の"独立感"を保ちながら繋がりも演出 */
  border-left: 2px solid var(--brand-soft);
  padding-left: clamp(24px, 3vw, 40px);
}
.note-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--brand);
  margin-bottom: 16px;
}
.note-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
}
.note-text p {
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-sub);
  margin: 0 0 1.2em;
}
.note-text p:last-child { margin-bottom: 0; }
.note-text strong {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(transparent 60%, var(--brand-soft) 60%);
  padding: 0 2px;
}
.note-text em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--brand);
}
.note-text code {
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
}
@media (max-width: 640px) {
  .note-block {
    padding-left: 18px;
  }
  .note-title { font-size: 20px; margin-bottom: 18px; }
  .note-text p { font-size: 14px; line-height: 1.95; }
}

/* ==========================================================================
   Flash Stage — NOTE 03 Flashオープニング演出
   シーケンス:
   [1] LOADING (0.0s - 1.4s) プログレスバーが進行
   [2] PHOTO   (1.4s - 2.0s) 写真がふわっと登場
   [3] BAR 1   (2.0s - 2.8s) 写真と同サイズの長方形が右から重なる（透過30%）
   [4] BAR 2   (2.4s - 3.2s) 写真の半分サイズの長方形（透過30%）
   [5] BAR 3   (2.8s - 3.6s) 写真の1/4サイズの長方形（透過40%）
   [6] ENTER   (3.8s -    ) Enterボタンがふわっと右側に登場
   ========================================================================== */

.flash-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  /* 写真が16:9で全幅、上下に10%ずつの余白 = ステージ比率は 16 : (9 / 0.8) ≒ 16:11.25 */
  aspect-ratio: 16 / 11.25;
  margin: 8px 0 32px;
  background: #fafaf7;
  border: 1px solid var(--line);
  overflow: hidden;
}

/* ---- 内部レイアウト用の基準 ----
   写真は16:9で、ステージの左端〜右端まで伸ばす。
   長方形は写真の左寄りに配置、Enterボタンは写真右側の上に重ねる。 */
.flash-stage {
  --fs-photo-top: 10%;
  --fs-photo-left: 6%;
  --fs-photo-width: 88%;
  --fs-photo-height: 80%;
}

/* ===== [1] LOADING ===== */
.fs-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--ink-sub);
  opacity: 0;
  z-index: 1;
}
.fs-loader-label {
  font-size: 10px;
  letter-spacing: .32em;
  margin-bottom: 10px;
}
.fs-loader-bar {
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.fs-loader-bar span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--brand);
}
.fs-loader-percent {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ===== [2] PHOTO ===== */
.fs-photo {
  position: absolute;
  top: var(--fs-photo-top);
  left: var(--fs-photo-left);
  width: var(--fs-photo-width);
  height: var(--fs-photo-height);
  margin: 0;
  background: var(--paper-deep);
  overflow: hidden;
  opacity: 0;
  z-index: 2;
}
.fs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fs-photo-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg,
      var(--paper-deep),
      var(--paper-deep) 8px,
      transparent 8px, transparent 16px),
    var(--paper);
}

/* ===== [3][4][5] 右から流れ込む3枚の長方形 ===== */
.fs-bar {
  position: absolute;
  top: var(--fs-photo-top);
  height: var(--fs-photo-height);
  background: var(--brand);
  opacity: 0;
  z-index: 3;
  will-change: transform, opacity;
  transform: translateX(150%);
  /* 最終到達位置：.is-playing で animation により left に着地 */
}
.fs-bar-1 {
  /* 長方形1：写真と同サイズ／透過30%（写真全体を赤フィルタで覆う） */
  width: var(--fs-photo-width);
  background: rgba(240, 78, 75, .30);
  z-index: 3;
}
.fs-bar-2 {
  /* 長方形2：写真の1/4サイズ／透過30% */
  width: calc(var(--fs-photo-width) / 4);
  background: rgba(240, 78, 75, .30);
  z-index: 4;
}
.fs-bar-3 {
  /* 長方形3：写真の1/6サイズ／透過40% */
  width: calc(var(--fs-photo-width) / 6);
  background: rgba(240, 78, 75, .40);
  z-index: 5;
}

/* ===== [6] Enter ボタン＋Welcome（長方形1の右側の余白に配置） =====
   写真エリア（fs-photo-left 〜 fs-photo-left + fs-photo-width）の右側に、
   残りの余白スペースを使って Welcome コピー＋Enterボタンを縦に積む。
*/
.fs-enter-wrap {
  position: absolute;
  top: 50%;
  /* 写真の右側エリアに重ねる。20px右にオフセット */
  left: calc(var(--fs-photo-left) + var(--fs-photo-width) / 2 + 3% + 20px);
  right: calc(var(--fs-photo-left) + 2%);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  z-index: 6;
}
.fs-enter-welcome {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-sub);
  white-space: nowrap;
}
.fs-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.fs-enter:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: scale(1.03);
}
.fs-enter svg { transition: transform .25s ease; }
.fs-enter:hover svg { transform: translateX(4px); }

/* ===== 小さな署名 ===== */
.fs-caption {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: .04em;
  opacity: 0;
  z-index: 7;
  pointer-events: none;
}

/* ==========================================================================
   演出の再生：.is-playing が付いたら各パーツが順番に動く
   ========================================================================== */

/* [1] LOADING：0.0s〜1.2s */
.flash-stage.is-playing .fs-loader {
  animation: fsLoaderFade 1.4s ease forwards;
}
.flash-stage.is-playing .fs-loader-bar span {
  animation: fsLoaderBar 1.2s cubic-bezier(.4, .1, .3, 1) 0.1s forwards;
}
.flash-stage.is-playing .fs-loader-percent {
  animation: fsLoaderPercent 1.2s steps(100) 0.1s forwards;
}
@keyframes fsLoaderFade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fsLoaderBar {
  0%   { width: 0%; }
  100% { width: 100%; }
}
/* カウンターのような percent 擬似演出：実際はCSSだけでカウントアップ不可なので
   ステップで0→100に見える近似。JSでも上書きします。 */
@keyframes fsLoaderPercent {
  0%   { content: "0%"; }
  100% { content: "100%"; }
}

/* [2] PHOTO：1.4s〜 */
.flash-stage.is-playing .fs-photo {
  animation: fsFadeIn 0.9s ease 1.4s forwards;
}
@keyframes fsFadeIn {
  0%   { opacity: 0; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

/* [3] BAR 1：2.0s〜 写真と同サイズ／同位置に収まる */
.flash-stage.is-playing .fs-bar-1 {
  animation: fsBar1 0.9s cubic-bezier(.22, .61, .36, 1) 2.0s forwards;
}
@keyframes fsBar1 {
  0%   { transform: translateX(150%); opacity: 0; }
  15%  { opacity: 1; }
  100% {
    /* 写真エリアに完全にオーバーレイ：left = fs-photo-left, width = fs-photo-width */
    transform: translateX(0);
    left: var(--fs-photo-left);
    opacity: 1;
  }
}

/* [4] BAR 2：2.4s〜 写真の半分サイズで重なる（左側寄り） */
.flash-stage.is-playing .fs-bar-2 {
  animation: fsBar2 0.9s cubic-bezier(.22, .61, .36, 1) 2.4s forwards;
}
@keyframes fsBar2 {
  0%   { transform: translateX(250%); opacity: 0; }
  15%  { opacity: 1; }
  100% {
    transform: translateX(0);
    left: var(--fs-photo-left);
    opacity: 1;
  }
}

/* [5] BAR 3：2.8s〜 写真の1/4サイズで重なる（さらに左寄り） */
.flash-stage.is-playing .fs-bar-3 {
  animation: fsBar3 0.9s cubic-bezier(.22, .61, .36, 1) 2.8s forwards;
}
@keyframes fsBar3 {
  0%   { transform: translateX(400%); opacity: 0; }
  15%  { opacity: 1; }
  100% {
    transform: translateX(0);
    left: var(--fs-photo-left);
    opacity: 1;
  }
}

/* [6] ENTER：3.8s〜（Welcome＋Enter ラッパーをまとめてフェードイン） */
.flash-stage.is-playing .fs-enter-wrap {
  animation: fsEnterIn 0.8s ease 3.8s forwards;
}
@keyframes fsEnterIn {
  0%   { opacity: 0; transform: translateY(-50%) translateX(18px); }
  100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* 署名：4.2s〜 */
.flash-stage.is-playing .fs-caption {
  animation: fsCaptionIn 0.9s ease 4.2s forwards;
}
@keyframes fsCaptionIn {
  0%   { opacity: 0; }
  100% { opacity: .7; }
}

/* モーション過敏対応：最終状態をそのまま表示 */
@media (prefers-reduced-motion: reduce) {
  .flash-stage .fs-loader { opacity: 0; }
  .flash-stage .fs-photo { opacity: 1; }
  .flash-stage .fs-bar { opacity: 1; transform: translateX(0); left: var(--fs-photo-left); animation: none !important; }
  .flash-stage .fs-enter-wrap { opacity: 1; transform: translateY(-50%); animation: none !important; }
  .flash-stage .fs-caption { opacity: .7; animation: none !important; }
}

/* スマホ向け調整 */
@media (max-width: 640px) {
  .flash-stage {
    aspect-ratio: 5 / 3.4;
  }
  .fs-enter {
    font-size: 13px;
    padding: 11px 18px;
    gap: 8px;
  }
  .fs-loader-label { font-size: 9px; }
  .fs-loader-percent { font-size: 9px; }
  .fs-caption { font-size: 9px; }
}

/* ===== Subpage CTA ===== */
.subpage-cta {
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
/* NOTES セクション直後の CTA は、グレー→白を直結させるため上ボーダーを外す */
.profile-notes + .subpage-cta {
  border-top: none;
}
.subpage-cta-inner {
  max-width: 640px;
}
.subpage-cta-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
  color: var(--ink);
}
.subpage-cta-sub {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-sub);
  margin-bottom: 36px;
}
.subpage-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .subpage-cta-row { gap: 12px; }
  .subpage-cta-row .btn { padding: 13px 20px; font-size: 13px; }
}
