/* 想い（/about）: 序・章の目次・文章だけの版・広がること・チーム・パートナー・一緒に・扉からの覆い。
   物語の舞台は about-story.css（壱・輪・結）と about-map.css（弐） */

/* 序（扉の写真）。--hp はスクロールの進み（0〜1） */
.ab-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--night); color: var(--on-dark); overflow: hidden; display: flex; align-items: flex-end; }
.ab-hero img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; transform: scale(calc(1.06 + var(--hp, 0) * .14)); filter: saturate(.7) contrast(1.08) brightness(calc(.6 - var(--hp, 0) * .3)); }
.ab-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--night) 45%, transparent), color-mix(in srgb, var(--night) 5%, transparent) 38%, color-mix(in srgb, var(--night) 80%, transparent)); }
.ab-hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(64px, 11svh, 128px); transform: translateY(calc(var(--hp, 0) * -70px)); opacity: calc(1 - var(--hp, 0) * 1.3); }
.ab-eb { display: block; font-size: var(--fs-xs); letter-spacing: .32em; color: var(--ink-2); }
.ab-hero .ab-eb { color: var(--on-dark); opacity: .8; }
.ab-hero h1:focus { outline: none; }
.ab-hero h1 { font-size: clamp(38px, 6vw, 92px); line-height: 1.4; letter-spacing: .14em; margin-top: 18px; }
.ab-hero .lead { margin-top: 26px; font-size: clamp(14px, 1.15vw, 16px); line-height: 2.15; color: var(--on-dark-2); letter-spacing: .08em; }
.ab-scroll { position: absolute; right: var(--gr); bottom: clamp(64px, 11svh, 128px); z-index: 1; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .34em; color: var(--on-dark-2); display: flex; align-items: center; gap: 14px; }
.ab-scroll i { display: block; width: 1px; height: 72px; background: linear-gradient(var(--on-dark) 50%, color-mix(in srgb, var(--on-dark) 15%, transparent) 50%) 0 0 / 1px 200%; animation: ab-drip 2.6s var(--ease) infinite; }
@keyframes ab-drip { from { background-position: 0 100%; } to { background-position: 0 0; } }
/* JS が一字ずつに分けるまで、題を出さない（分ける前の字が一瞬見えるのを防ぐ） */
.ab-js .ab-hero h1:not(.split) { opacity: 0; }

/* トップの「想いの扉」から来たとき、扉の写真で覆った状態から始めて薄れさせる（about.js）。
   覆いの見た目はトップの扉の最後の画（home.css の .iris）とそろえる */
.iris { position: fixed; inset: 0; z-index: calc(var(--z-toast) - 1); display: none; background: var(--night); pointer-events: none; overflow: hidden; }
.ab-iris .iris { display: block; }
.iris img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; transform: scale(1.06); filter: saturate(.7) contrast(1.08) brightness(.6); }

/* 章の目印 */

/* 文章だけの版（読み上げ用。「動きを減らす」設定の人にはこちらを見せる） */
.ab-plain { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 広がること */
.ab-bn { padding-block: clamp(110px, 12vw, 180px) clamp(40px, 6vw, 90px); }
.bnf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.bnf article { border-top: 1px solid var(--ink); padding-top: 22px; }
.bnf b { font-family: var(--f-min); font-size: var(--fs-sm); letter-spacing: .2em; color: var(--moss); }
.bnf h3 { font-size: clamp(19px, 1.7vw, 24px); letter-spacing: .12em; margin-top: 10px; line-height: 1.6; }
.bnf p { font-size: 13.5px; line-height: 2.1; color: var(--ink-2); margin-top: 12px; }

/* チーム・パートナー */
.ab-tm { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-block: clamp(120px, 14vw, 200px) 0; }
.ab-hh { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ab-hh h2 { font-size: clamp(28px, 3.2vw, 46px); letter-spacing: .12em; line-height: 1.5; }
.ab-tm .ab-hh { grid-column: 1 / span 4; align-self: start; }
.ab-tm .ab-hh p { font-size: var(--fs-sm); color: var(--ink-2); letter-spacing: .08em; }
.tm { grid-column: 6 / span 7; border-top: 1px solid var(--rule); }
.tmb { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.tmb-ph { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.tmb-ph img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: saturate(.9); }
.tmb-ph--1 img { object-position: 50% 30%; }
.tmb-ph--2 img { object-position: 50% 18%; }
.tmb h3 { font-size: 22px; letter-spacing: .2em; }
.tmb .role { font-size: 12px; letter-spacing: .14em; color: var(--moss); margin-top: 4px; }
.tmb p:not(.role) { font-size: 14px; line-height: 2.05; color: var(--ink-2); margin-top: 12px; }
.ab-pt { grid-column: 6 / span 7; padding-top: 56px; font-size: 14px; line-height: 2.1; color: var(--ink-2); }
.ab-pt h3 { font-size: 18px; letter-spacing: .16em; color: var(--ink); margin-bottom: 10px; }
.ab-pt a { color: var(--ink); }

/* 一緒に */
.ab-cta { padding-block: clamp(130px, 15vw, 230px); text-align: center; }
.ab-cta h2 { font-size: clamp(24px, 3vw, 44px); letter-spacing: .12em; line-height: 1.7; margin-top: 18px; }
.ab-cta .btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

/* 章の目次（PC は左に縦、スマホは上の細い線） */
.abn { position: fixed; z-index: 60; left: max(18px, calc(var(--g) - 46px)); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 12px; color: var(--ink); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s var(--ease), color .6s var(--ease), visibility 0s linear .6s; }
.abn.vis { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .6s var(--ease), color .6s var(--ease), visibility 0s; }
.abn.dk { color: var(--on-dark); }
.abn a { display: flex; align-items: center; gap: 10px; height: 24px; text-decoration: none; font-size: var(--fs-xs); letter-spacing: .2em; }
.abn a i { display: block; width: 12px; height: 1px; background: currentColor; opacity: .45; transition: width .5s var(--ease), opacity .5s; }
.abn a b { font-family: var(--f-min); font-weight: 600; font-size: 14px; opacity: .45; transition: opacity .5s; }
.abn a span { opacity: 0; transform: translateX(-6px); white-space: nowrap; transition: opacity .5s, transform .5s var(--ease); }
.abn a.on i { width: 28px; opacity: 1; }
.abn a.on b { opacity: 1; }
.abn a.on span, .abn a:hover span, .abn a:focus-visible span { opacity: 1; transform: none; }
.abn-bar { display: none; }

@media (max-width: 899px) {
  .bnf { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ab-tm { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .ab-tm .ab-hh, .tm, .ab-pt { grid-column: 1; }
  .tmb { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; }
  .abn { display: none; }
  .abn-bar { display: block; position: fixed; z-index: calc(var(--z-header) - 1); left: 0; right: 0; top: calc(var(--hd) + env(safe-area-inset-top, 0px)); height: 2px; pointer-events: none; opacity: 0; transition: opacity .5s; }
  .abn-bar.vis { opacity: 1; }
  .abn-bar i { display: block; height: 100%; background: var(--moss); transform-origin: left; transform: scaleX(var(--ap, 0)); }
}

/* 動きを減らす設定: 物語を隠し、文章だけの版を見せる */
@media (prefers-reduced-motion: reduce) {
  .ab-story, .abn, .abn-bar, .iris { display: none !important; }
  .ab-js .ab-hero h1:not(.split) { opacity: 1; }
  .ab-plain { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; padding-block: 40px 80px; }
  .ab-plain h2 { font-size: 26px; letter-spacing: .1em; margin-top: 72px; line-height: 1.6; }
  .ab-plain h3 { font-size: 18px; margin-top: 28px; }
  .ab-plain p { margin-top: 14px; font-size: 15px; line-height: 2.1; max-width: 40em; }
  .ab-plain-eb { font-size: var(--fs-xs); letter-spacing: .32em; color: var(--ink-2); margin-top: 72px !important; }
  .ab-plain-eb + h2 { margin-top: 8px; }
}
