/* =====================================================================
   SHIHO — ONE TAKE
   紙の白・ミント・レモン。カメラのファインダー＋編集タイムライン。
   ===================================================================== */

:root {
  --paper: #fdfcf9;
  --beige: #f6f3ec;
  --line: #e6dfd0;
  --ink: #2f2c26;
  --sub: #7a7468;
  --mint: #98d88f;
  --mint-d: #86cb7c;
  --mint-pale: #e6f5e2;
  --mint-ink: #24461f;
  --sage: #b5d6ce;
  --emerald: #5fbf9f;
  --lemon: #fff44f;
  --lemon-pale: #fffbd0;
  --screen: #18221c;

  --grad-mint: linear-gradient(#a6e09d, #98d88f 55%, #8acd80);
  /* 冒頭の空と同じ、夜明けの明るい空（お問い合わせ欄・お問い合わせフォームのページの背景） */
  --sky: linear-gradient(180deg, #a9cfc6 0%, #cfe9dd 32%, #e9f3dc 58%, #fff9d6 82%, #fffbd0 100%);

  --f-min: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --f-goth: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  /* 欧文の明朝（ロゴ・数字・英字の見出し） */
  --f-serif: 'Cormorant Garamond', 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  /* 小さな英字ラベル（横に広げない、ふつうの字幅のゴシック） */
  --f-en: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(20px, 4.6vw, 72px);
  --r: 28px;
  --ease: cubic-bezier(.4, .1, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* スクロールで現れる動き（下からゆっくり）。お手本サイトと同じ値 */
  --ease-reveal: cubic-bezier(.16, .8, .2, 1);
  --reveal-dur: 1s;      /* 動きの長さ（秒で書く） */
  --reveal-shift: 72px;  /* 下から上がる距離 */
  --reveal-step: 110ms;  /* となり合う物を遅らせる間隔（ミリ秒で書く） */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* ---------------------------------------------------------------- 土台 */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-locked, body.is-loading { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-goth);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: #d5ddd7; color: var(--ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink);
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75em;
  min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--f-goth); font-weight: 700; font-size: 14px; letter-spacing: .1em; line-height: 1.3;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), filter .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn--mint {
  background: var(--grad-mint);
  color: var(--mint-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 12px 26px -14px rgba(36, 70, 31, .55);
}
.btn--mint:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 18px 34px -16px rgba(36, 70, 31, .6);
}
.btn:active { transform: translateY(0) scale(.98); }

/* 「本編を再生」：内側の細い白線・右の丸いアイコン・ななめに走る光（自動でくり返す）。まわりに光のもやは置かない */
.btn--play {
  position: relative; overflow: hidden; isolation: isolate;
  gap: 14px; min-height: 52px; padding: 9px 9px 9px 24px; border-radius: 99px;
  background: linear-gradient(180deg, #a6e09d 0%, #98d88f 55%, #8acd80 100%);
  color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: .14em;
  box-shadow: 0 7px 12px -8px rgba(36, 70, 31, .5), inset 0 -2px 0 rgba(0, 0, 0, .06);
  transition: transform .25s var(--ease);
}
.btn--play:hover { transform: translateY(-2px); }
.btn--play::after {
  content: ''; position: absolute; inset: 4px; z-index: 1; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .8); border-radius: inherit;
  transition: inset .45s var(--ease), border-color .45s var(--ease);
}
.btn--play:hover::after { inset: 3px; border-color: #fff; }
.btn--play::before {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 36%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: play-shine 3.5s var(--ease) .6s infinite;
}
.btn--play:hover::before { animation: play-shine-h .9s var(--ease) both; }
.btn--play > * { position: relative; z-index: 2; }
.btn__ar {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .95);
  transition: transform .5s var(--ease), background-color .45s var(--ease);
}
.btn__ar .btn__tri { margin-left: 3px; border-left-color: var(--ink); }
.btn--play:hover .btn__ar { background: #fff; transform: translateX(3px); }
/* 最初の画面の「作品を観る」：同じデザインで、丸の中の三角だけ下向き（下へ進むボタンなので） */
.btn--down .btn__ar .btn__tri { margin-left: 0; margin-top: 3px; transform: rotate(90deg); }
.btn--down:hover .btn__ar { transform: translateY(3px); }
/* 3.5秒ごとに、約1.3秒かけて光が走る */
@keyframes play-shine {
  0% { transform: translateX(-120%) skewX(-18deg); }
  37%, 100% { transform: translateX(420%) skewX(-18deg); }
}
@keyframes play-shine-h {
  from { transform: translateX(-120%) skewX(-18deg); }
  to { transform: translateX(420%) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--play::before, .btn--play:hover::before, .linebar::after, .linebar__spark { animation: none !important; }
  .btn--play::before, .linebar::after, .linebar__spark { display: none; }
}

/* LINEのバナー：横長の長方形（丸いボタンや、浮き上がる厚みはやめた）。
   深いエメラルドの面・内側に細いレモン色の枠線・白い明朝の文字。ななめの光が、ゆっくり走る。
   幅は、すぐ上の見出しの2行目「伝わるかたちへ。」の幅が上限（--ch は見出しの文字の大きさ） */
.linebar {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 14px;
  width: min(100%, 440px, calc(var(--ch, 60px) * 8.4)); min-height: 78px; padding: 0 24px 0 22px;
  border-radius: 3px; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #2a9a6a 0%, #1d7f56 50%, #166a47 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .26),
    0 0 0 1px rgba(6, 22, 16, .55),
    0 28px 44px -28px rgba(0, 0, 0, .8);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), filter .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.linebar:hover {
  transform: translateY(-2px); filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(6, 22, 16, .55), 0 34px 50px -28px rgba(0, 0, 0, .85), 0 0 44px rgba(47, 143, 99, .35);
}
.linebar:active { transform: translateY(0); filter: brightness(.98); }
.linebar::before { /* 内側の、細いレモン色の枠線 */
  content: ''; position: absolute; inset: 5px; z-index: 1; pointer-events: none;
  border: 1px solid rgba(255, 250, 190, .58); border-radius: 1.5px;
}
.linebar::after { /* ななめの光（キラッ） */
  content: ''; position: absolute; top: -30%; bottom: -30%; left: -30%; width: 22%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
  transform: translateX(-140%) skewX(-18deg);
  animation: line-shine 4.2s var(--ease) 1s infinite;
}
.linebar > * { position: relative; z-index: 2; }
.linebar__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); }
.linebar__ic svg { width: 22px; height: 22px; }
.linebar__txt { flex: 1; text-align: center; white-space: nowrap; font-family: var(--f-min); font-weight: 600; font-size: clamp(16px, 1.3vw, 19px); line-height: 1; letter-spacing: .2em; padding-left: .2em; }
.linebar__go { flex: none; width: 40px; text-align: center; font-family: var(--f-en); font-weight: 400; font-size: 21px; line-height: 1; transition: transform .5s var(--ease-out); }
.linebar:hover .linebar__go { transform: translate(3px, -3px); }
.linebar__spark { /* 右上の小さな星 */
  position: absolute; z-index: 2; right: 13px; top: 11px; width: 11px; height: 11px; background: #fffbd0; pointer-events: none;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  transform: scale(0); opacity: 0;
  animation: line-twinkle 4.2s ease-out 1s infinite;
}
@keyframes line-shine {
  0% { transform: translateX(-140%) skewX(-18deg); }
  30%, 100% { transform: translateX(720%) skewX(-18deg); }
}
@keyframes line-twinkle {
  0%, 22% { transform: scale(0) rotate(0deg); opacity: 0; }
  30% { transform: scale(1.15) rotate(40deg); opacity: 1; }
  40% { transform: scale(.55) rotate(70deg); opacity: .9; }
  48%, 100% { transform: scale(0) rotate(90deg); opacity: 0; }
}
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 15px; }
.btn__arrow { display: inline-block; font-family: var(--f-en); font-weight: 600; transition: transform .45s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateY(2px); }
.btn__tri {
  width: 0; height: 0; flex: none;
  border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}

.textlink {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .45s var(--ease-out);
}
.textlink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------------------------------------------------------------- 読み込み画面 */
.loader { position: fixed; inset: 0; z-index: 120; }
.loader__half {
  position: absolute; left: -2%; right: -2%; height: 50.5%;
  background: var(--paper);
}
.loader__half--top { top: 0; transform-origin: 2% 100%; }
.loader__half--bottom { bottom: 0; }
.loader__stick {
  position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: repeating-linear-gradient(-58deg, var(--mint-ink) 0 16px, transparent 16px 32px);
  opacity: 0; transform: scaleX(0); transform-origin: left;
}
.loader__inner {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px;
  color: var(--mint-ink); transition: opacity .3s var(--ease);
}
.loader__logo {
  font-family: var(--f-serif); font-weight: 500; font-size: clamp(34px, 4vw, 50px);
  letter-spacing: .035em; line-height: 1;
}
.loader__bar { width: 168px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--mint-ink); transform-origin: left; transform: scaleX(0); }
.loader__text { font-family: var(--f-en); font-weight: 500; font-size: 10px; letter-spacing: .32em; color: var(--sub); font-variant-numeric: tabular-nums; }

.loader.is-open .loader__inner { opacity: 0; }
.loader.is-open .loader__stick { animation: stickIn .28s var(--ease-out) forwards; }
.loader.is-open .loader__half--top { animation: clapTop 1.1s cubic-bezier(.7, 0, .2, 1) .08s forwards; }
.loader.is-open .loader__half--bottom { animation: clapBottom 1.1s cubic-bezier(.7, 0, .2, 1) .08s forwards; }
@keyframes stickIn { to { opacity: 1; transform: scaleX(1); } }
@keyframes clapTop {
  0% { transform: none; }
  22% { transform: rotate(-3.2deg); }
  100% { transform: translateY(-112%) rotate(-3.2deg); }
}
@keyframes clapBottom {
  0%, 22% { transform: none; }
  100% { transform: translateY(108%); }
}

/* ---------------------------------------------------------------- 固定ヘッダー */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(var(--safe-t) + 20px) calc(var(--gutter) + 6px) 14px;
  color: var(--mint-ink);
  transition: background-color .5s var(--ease), color .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
.site-head.on-paper {
  color: var(--ink);
  background: rgba(253, 252, 249, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  padding-top: calc(var(--safe-t) + 10px); padding-bottom: 8px;
  box-shadow: 0 1px 0 rgba(230, 223, 208, .8);
}
/* ロゴ：欧文の明朝。下の言葉は、ロゴの横幅ぴったりに広げる（はみ出さない） */
.brand { display: inline-flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; min-height: 44px; min-width: 0; }
.brand__name {
  font-family: var(--f-serif); font-weight: 500; font-size: 31px; letter-spacing: .03em; line-height: .86; white-space: nowrap;
}
.brand__concept {
  font-family: var(--f-min); font-weight: 500; font-size: 10px; letter-spacing: 0; line-height: 1; opacity: .88; white-space: nowrap;
  text-align: justify; text-align-last: justify; text-justify: inter-character;
}
/* メニュー：日本語の明朝（ロゴとそろえる） */
.site-nav { display: flex; gap: 10px; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--f-min); font-weight: 600; font-size: 14px; letter-spacing: .14em; white-space: nowrap;
}
.site-nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 11px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------------------------------------------------------------- 3Dの旅 */
.reel {
  position: relative;
  height: calc((var(--scenes, 10) + 1) * 90vh + 100vh);
  background: var(--paper);
}
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, #a9cfc6 0%, #cfe9dd 38%, #fff9d6 64%, #e6f5e2 100%);
}
.world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.veil { position: absolute; inset: 0; z-index: 5; background: var(--paper); opacity: 0; pointer-events: none; }

/* ---- 離れた場所へ移る時の幕（js/main.js の travelTo） ----
   メニューなどで、3Dの旅を一気にまたぐ時に使う。
   行き先の色の幕が、下から静かに上がって画面をおおう → 幕の裏で場所を移す → 幕が、すっと消える。
   （途中の場面が早送りで流れて、せわしなく見えるのを防ぐ。2026-11-21）
   幕は画面より少し縦に長い。進む側の角を丸くしてあり、おおい終わった時は、その丸みが画面の外に出る */
.curtain {
  --c-r: clamp(28px, 4vw, 64px);
  position: fixed; left: 0; right: 0; top: -90px; bottom: 0; z-index: 60;
  pointer-events: none; visibility: hidden;
  background: var(--paper);
  border-radius: var(--c-r) var(--c-r) 0 0;
  box-shadow: 0 -40px 90px -30px rgba(36, 70, 31, .3);
  transform: translateY(calc(100% + 12px));
}
.curtain[data-tone='deep'] {
  background: linear-gradient(180deg, #0b2319 0%, #0e2b20 100%);
  box-shadow: 0 -40px 90px -30px rgba(4, 16, 11, .55);
}
.curtain[data-from='top'] {
  top: 0; bottom: -90px;
  border-radius: 0 0 var(--c-r) var(--c-r);
  transform: translateY(calc(-100% - 12px));
}
.curtain.is-cover {
  visibility: visible; pointer-events: auto; transform: none;
  transition: transform .78s cubic-bezier(.65, 0, .25, 1);
}
.curtain.is-cover.is-clear { opacity: 0; pointer-events: none; transition: opacity .72s var(--ease); }
/* メニューで移った先の区切り（section）には、目印の枠線を出さない */
main > [tabindex='-1']:focus, .deep > [tabindex='-1']:focus { outline: none; }

/* ---- 3Dなしの舞台（CSSの空・太陽・水面・スクリーン） ---- */
.fallback {
  position: absolute; inset: 0; overflow: hidden;
  --hz: 66%;
  --sky-top: #a9cfc6; --sky-mid: #cfe9dd; --sky-hz: #fff9d6;
  --sun-rise: 0; --end: 0; --side: -1; --d: 0; --vis: 0;
}
.fallback.is-intro { animation: crane 1.6s var(--ease-out) both; }
@keyframes crane { from { transform: translateY(5vh) scale(1.06); } to { transform: none; } }
.fb-sky {
  position: absolute; left: 0; right: 0; top: 0; height: var(--hz);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-hz) 100%);
}
.fb-sky::after { /* うすい横長の雲 */
  content: ''; position: absolute; left: -10%; right: -10%; bottom: 6%; height: 22%;
  background:
    radial-gradient(40% 30% at 22% 60%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(30% 22% at 70% 40%, rgba(255, 255, 255, .45), transparent 70%),
    radial-gradient(26% 18% at 48% 80%, rgba(255, 255, 255, .35), transparent 70%);
  filter: blur(6px);
  animation: clouds 60s linear infinite alternate;
}
@keyframes clouds { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
.fb-sun {
  position: absolute; left: 50%; top: var(--hz);
  width: calc(8vmin + var(--sun-rise) * 5vmin); aspect-ratio: 1;
  transform: translate(-50%, calc(-50% - 3vmin - var(--sun-rise) * 13vmin)) scale(calc(1 + var(--end) * 2.2));
}
.fb-sun__glow {
  position: absolute; inset: -260%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 79, .5) 0%, rgba(255, 244, 79, .2) 26%, rgba(255, 251, 208, 0) 62%);
  opacity: calc(.75 + var(--end) * .25);
}
.fb-sun__core {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #fffef4 0 42%, #fffbd0 64%, var(--lemon) 100%);
  box-shadow: 0 0 40px 12px rgba(255, 244, 79, .55);
}
.fb-horizon {
  position: absolute; left: 0; right: 0; top: var(--hz); height: 1px;
  background: rgba(255, 255, 255, .85); box-shadow: 0 0 30px 8px rgba(255, 251, 208, .85);
}
.fb-water {
  position: absolute; left: 0; right: 0; top: var(--hz); bottom: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-hz) 0%, var(--sky-mid) 34%, color-mix(in srgb, var(--sky-top) 70%, var(--mint-pale)) 100%);
}
.fb-water::before { /* さざ波 */
  content: ''; position: absolute; left: 0; right: 0; top: -40px; bottom: -40px;
  background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(255, 255, 255, .34) 9px 10px, transparent 10px 23px, rgba(255, 255, 255, .18) 23px 24px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 30%);
  mask: linear-gradient(180deg, transparent, #000 30%);
  animation: ripple 7s linear infinite;
}
@keyframes ripple { to { transform: translateY(24px); } }
.fb-water__path { /* 太陽の光の道 */
  position: absolute; left: 50%; top: 0; bottom: 0; width: 22vmin; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 254, 236, .95), rgba(255, 244, 79, .35) 45%, rgba(255, 244, 79, 0) 92%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 9px);
  mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 9px);
  filter: blur(1.2px);
  opacity: .85;
}
.fb-mark {
  position: absolute; left: 50%; top: calc(var(--hz) + 15vh);
  transform: translateX(calc(-50% - var(--d) * 46vw)) scaleY(.42);
  opacity: calc(var(--vis) * .9);
  display: flex; align-items: center; gap: 18px;
}
.fb-mark__t { position: relative; width: 74px; height: 56px; }
.fb-mark__t::before, .fb-mark__t::after { content: ''; position: absolute; background: var(--lemon); box-shadow: 0 0 0 1px rgba(36, 70, 31, .12); }
.fb-mark__t::before { left: 0; right: 0; top: 0; height: 9px; }
.fb-mark__t::after { left: 50%; width: 9px; margin-left: -4.5px; top: 0; bottom: 0; }
.fb-mark__no { font-family: var(--f-mono); font-size: 40px; font-weight: 500; color: rgba(36, 70, 31, .5); }

.fb-screen {
  position: absolute; left: 50%; top: calc(var(--hz) - 2.5vh); z-index: 1;
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px;
  transform:
    translate(calc(-50% + var(--side) * 22vw - var(--d) * 46vw), -100%)
    scale(calc(.9 + var(--vis) * .1));
  transform-origin: 50% 100%;
  opacity: var(--vis);
}
.fb-screen__face {
  position: relative; overflow: hidden;
  border-radius: 14px; border: 5px solid var(--screen); background: var(--screen);
  box-shadow: 0 34px 60px -34px rgba(36, 70, 31, .55);
  -webkit-box-reflect: below 2.6vh linear-gradient(transparent 52%, rgba(255, 255, 255, .26));
  animation: float 6s ease-in-out infinite;
}
.fb-screen[data-orient='h'] .fb-screen__face { width: min(40vw, 56vh * 16 / 9); aspect-ratio: 16 / 9; }
.fb-screen[data-orient='v'] .fb-screen__face { height: min(54vh, 52vw * 16 / 9); aspect-ratio: 9 / 16; }
.fb-screen__img, .fb-screen__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb-screen__video { opacity: 0; transition: opacity .6s var(--ease); }
.fb-screen__video.is-on { opacity: 1; }
.fb-screen:hover .fb-screen__face { box-shadow: 0 40px 70px -34px rgba(36, 70, 31, .6), 0 0 0 1px rgba(255, 244, 79, .8); }
.fb-screen-shadow {
  position: absolute; left: 50%; top: calc(var(--hz) + 1.5vh); width: 30vw; height: 3vh; border-radius: 50%;
  transform: translateX(calc(-50% + var(--side) * 22vw - var(--d) * 46vw));
  background: radial-gradient(closest-side, rgba(36, 70, 31, .16), transparent);
  opacity: var(--vis);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---- 冒頭の言葉 ---- */
.hero {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  color: var(--mint-ink);
  opacity: var(--o, 1);
  transform: translateY(calc((1 - var(--o, 1)) * -4vh));
}
.hero.is-gone { visibility: hidden; }
.hero__inner { position: absolute; inset: 0; }
/* 縦書きの見出し：画面の右（横62%より右） */
.hero__tagline {
  position: absolute; right: calc(var(--gutter) + 3vw); top: 16vh;
  writing-mode: vertical-rl;
  font-family: var(--f-min); font-weight: 500;
  font-size: clamp(44px, min(5.8vw, 9.4vh), 98px);
  --ls: .16em; /* 字間（落ち着いた時の値） */
  line-height: 1.62; letter-spacing: var(--ls);
  white-space: nowrap;
}
.hero__line { display: block; position: relative; inline-size: max-content; } /* 行の長さ＝中身の長さ */
/* 冒頭の2行の出かた：お手本サイト（yamaguchi-shoshi-preview.pages.dev）の左上「皆様の力になります」と同じ動き。
   1行ずつ、光が差すように静かに立ち現れる（縦書きなので、向きは上から下）。ぼかしが晴れ、少しだけ上へ浮いて落ち着く。
   速さの決まりも同じ：2.4秒・cubic-bezier(.33, 0, .15, 1)・2行目は0.9秒おくれ。

   ★なめらかさのための作り（2026-11-21）：
   うしろで3Dの世界がずっと描かれているので、文字の並び（letter-spacing）やマスクの位置を毎コマ動かすと、
   動きがかくかくする。そこで、動かすのは「位置・透明度・ぼかし」だけにした（この3つは、ブラウザが別の係で動かすので、
   3Dが重くても止まらない）。
   ・.hero__sweep ＝ 光が差す窓。下のふちが、やわらかく消えるマスク（マスクそのものは動かさない）。上から下へ下りてくる
   ・.hero__keep  ＝ 窓と逆向きに同じだけ動いて、文字を画面の同じ場所にとどめる
   ・.hero__line-in ＝ 文字。透明 → 見える、ぼかし → くっきり、少し下 → 元の位置
   窓が下りるにつれて、文字が上から順に、やわらかいふちで現れる。
   隠れた状態は、下のほうの「.is-loading .hero__sweep」など */
.hero__tagline {
  --rise: 2.4s; --rise-ease: cubic-bezier(.33, 0, .15, 1);
  --t0: 1s;          /* 読み込みの幕が開きはじめてから、1行目が動きだすまで */
  --feather: 2.4em;  /* 窓の下のふちの、やわらかく消える長さ */
}
.hero__sweep, .hero__keep, .hero__line-in { display: block; }
.hero__sweep {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - var(--feather)), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - var(--feather)), transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  will-change: transform;
  transition: transform var(--rise) var(--rise-ease) calc(var(--t0) + var(--i, 0) * .9s);
}
.hero__keep {
  padding-bottom: var(--feather); /* 窓のやわらかいふちの分だけ、下に余白（窓と同じ高さにそろえる） */
  will-change: transform;
  transition: transform var(--rise) var(--rise-ease) calc(var(--t0) + var(--i, 0) * .9s);
}
.hero__line-in {
  will-change: transform, opacity, filter;
  transition:
    opacity 1.6s var(--rise-ease) calc(var(--t0) + var(--i, 0) * .9s),
    filter 2s var(--rise-ease) calc(var(--t0) + var(--i, 0) * .9s),
    transform var(--rise) var(--rise-ease) calc(var(--t0) + var(--i, 0) * .9s);
}
/* 動きが終わったら、窓のマスクと、動きのための下準備を外す（文字をくっきり描き直させる）。js/ui/stage.js が .is-settled を付ける */
.hero__tagline.is-settled .hero__sweep { -webkit-mask-image: none; mask-image: none; }
.hero__tagline.is-settled .hero__sweep, .hero__tagline.is-settled .hero__keep, .hero__tagline.is-settled .hero__line-in { will-change: auto; }
/* （「心が動く」の横にあったレモン色の縦線は、2026-11-21 にやめた） */
/* 横書きの文章：左下（縦およそ50〜82%）。背景は置かない */
.hero__copy {
  position: absolute; left: clamp(24px, 5vw, 88px); bottom: 18%;
  max-width: 300px; pointer-events: auto;
}
.hero__label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; line-height: 1.6;
}
.hero__label::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; }
.hero__lead { font-size: 15px; font-weight: 500; line-height: 2.1; letter-spacing: .08em; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero__name { font-size: 11.5px; letter-spacing: .12em; opacity: .75; }

/* ---- 説明カード（すりガラスのカード） ---- */
.scene-card {
  --m: clamp(24px, 4vw, 72px);
  position: absolute; z-index: 3; top: 56%;
  width: min(30vw, 400px);
  transform: translateY(-50%);
  padding: clamp(22px, 2.2vw, 32px) clamp(22px, 2.2vw, 32px) clamp(20px, 2vw, 28px);
  border-radius: 28px;
  background: rgba(253, 252, 249, .66);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 30px 60px -36px rgba(36, 70, 31, .42), 0 2px 10px -6px rgba(36, 70, 31, .12);
  color: var(--mint-ink); pointer-events: none;
  opacity: 0; transition: opacity .35s var(--ease);
}
.scene-card.is-in { opacity: 1; }
.scene-card.is-out { opacity: 0; transition-duration: .3s; }
.scene-card[data-side='right'] { right: var(--m); }
.scene-card[data-side='left'] { left: var(--m); }
.ln { overflow: hidden; }
.ln__in { transform: translateY(110%); transition: transform .8s var(--ease-out) calc(var(--i) * 65ms + 40ms); }
.scene-card.is-in .ln__in { transform: none; }
.scene-card.is-out .ln__in { transform: translateY(-110%); transition: transform .26s cubic-bezier(.5, 0, .75, 0) calc(var(--i) * 18ms); }
.sc-card__eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; line-height: 1.6;
}
.sc-card__eyebrow i { width: 22px; height: 1px; background: currentColor; flex: none; }
.sc-card__title {
  font-family: var(--f-min); font-weight: 500; font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1.34; letter-spacing: .06em; margin-bottom: 8px; padding-top: .05em; white-space: pre-line;
}
.sc-card__title.is-mid { font-size: clamp(22px, 2vw, 28.5px); letter-spacing: .05em; }
.sc-card__title.is-long { font-size: clamp(21px, 1.95vw, 28px); letter-spacing: .04em; }
.sc-card__title.is-one { white-space: nowrap; }
/* ボタンの行は切り取らない（影が四角く切れて、貼り付けたように見えるのを防ぐ）。出入りは ふわっと */
.scene-card .ln:nth-child(5) { overflow: visible; }
.scene-card .ln:nth-child(5) .ln__in {
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease) calc(var(--i) * 65ms + 40ms), transform .8s var(--ease-out) calc(var(--i) * 65ms + 40ms);
}
.scene-card.is-in .ln:nth-child(5) .ln__in { opacity: 1; transform: none; }
.scene-card.is-out .ln:nth-child(5) .ln__in { opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .26s var(--ease); }
.sc-card__sub { font-size: 14.5px; font-weight: 500; letter-spacing: .06em; margin-bottom: 4px; }
.sc-card__meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; opacity: .78; }
.sc-card__actions { padding: 20px 0 2px; pointer-events: auto; }

/* ---- HUD（ファインダー＋タイムライン） ---- */
.hud {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  color: var(--mint-ink); font-family: var(--f-mono);
  opacity: calc(1 - var(--end, 0));
}
.hud.is-ended { visibility: hidden; }
.is-loading .hud > *, .is-loading .site-head { opacity: 0; }
.is-loaded .hud > * { animation: hudIn 1s var(--ease-out) .55s both; }
.is-loaded .site-head { animation: hudIn 1s var(--ease-out) .45s both; }
@keyframes hudIn { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

.hud__corners i {
  position: absolute; width: 26px; height: 26px; border: 0 solid currentColor; opacity: .62;
}
.hud__corners .c-tl { top: calc(var(--safe-t) + 14px); left: 14px; border-top-width: 1px; border-left-width: 1px; }
.hud__corners .c-tr { top: calc(var(--safe-t) + 14px); right: 14px; border-top-width: 1px; border-right-width: 1px; }
.hud__corners .c-bl { bottom: calc(var(--safe-b) + 14px); left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.hud__corners .c-br { bottom: calc(var(--safe-b) + 14px); right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

.hud__rec {
  position: absolute; top: calc(var(--safe-t) + 34px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .26em; line-height: 1;
}
.hud__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lemon);
  box-shadow: 0 0 0 1px var(--mint-ink); animation: blink 2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: .25; } }
.hud__sep { width: 18px; height: 1px; background: currentColor; opacity: .5; }

.hud__bl { position: absolute; left: calc(var(--gutter) + 6px); bottom: calc(var(--safe-b) + 40px); }
.hud__tc { display: block; font-size: 20px; font-weight: 500; letter-spacing: .06em; line-height: 1; font-variant-numeric: tabular-nums; }
.hud__meta { display: flex; gap: 18px; margin-top: 12px; font-size: 10px; letter-spacing: .2em; line-height: 1; opacity: .85; font-variant-numeric: tabular-nums; }

.hud__timeline {
  position: absolute; left: 50%; bottom: calc(var(--safe-b) + 26px); transform: translateX(-50%);
  width: min(42vw, 640px);
  display: flex; align-items: center; gap: 12px;
  pointer-events: auto;
}
.tl__btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(36, 70, 31, .3);
  background: rgba(253, 252, 249, .38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--f-en); font-size: 15px; line-height: 1;
  transition: background-color .3s, border-color .3s, opacity .3s;
}
.tl__btn:hover { background: rgba(253, 252, 249, .8); border-color: var(--mint-ink); }
.tl__btn:disabled { opacity: .3; cursor: default; }
.tl__track { position: relative; flex: 1; height: 52px; --p: 0; }
.tl__ruler { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(36, 70, 31, .3); }
.tl__ruler::after {
  content: ''; position: absolute; left: 0; right: 0; top: -6px; height: 5px;
  background: repeating-linear-gradient(90deg, rgba(36, 70, 31, .3) 0 1px, transparent 1px calc(100% / 44));
}
.tl__fill { position: absolute; left: 0; top: 50%; height: 1px; width: 100%; background: var(--mint-ink); transform-origin: left; transform: scaleX(var(--p)); }
.tl__head {
  position: absolute; top: 9px; bottom: 9px; left: calc(var(--p) * 100%); width: 1px; background: var(--mint-ink);
  pointer-events: none;
}
.tl__head::before {
  content: ''; position: absolute; top: -2px; left: -5px; width: 11px; height: 9px;
  background: var(--lemon); border: 1px solid var(--mint-ink);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}
.tl__tick {
  position: absolute; left: var(--x); top: 0; bottom: 0; width: 26px; margin-left: -13px;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.tl__mark {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  border: 1px solid var(--mint-ink); background: var(--paper);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: background-color .3s, transform .4s var(--ease-out);
}
.tl__tick:hover .tl__mark { transform: translate(-50%, -50%) rotate(45deg) scale(1.35); }
.tl__tick.is-passed .tl__mark { background: var(--mint-ink); }
.tl__tick.is-current .tl__mark { background: var(--lemon); transform: translate(-50%, -50%) rotate(45deg) scale(1.45); }
.tl__no {
  position: absolute; left: 50%; top: calc(50% + 9px); transform: translateX(-50%);
  font-size: 9px; letter-spacing: .06em; line-height: 1; opacity: .62;
}
.tl__tip {
  position: absolute; left: var(--x, 50%); bottom: calc(100% + 2px);
  transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-goth); font-size: 12px; font-weight: 500; letter-spacing: .06em; line-height: 1.4;
  box-shadow: 0 10px 24px -14px rgba(36, 70, 31, .5);
  transition: opacity .25s var(--ease), transform .35s var(--ease-out);
}
.tl__tip.is-on { opacity: 1; transform: translate(-50%, 0); }
.tl__tip-no { font-family: var(--f-mono); font-size: 10px; color: var(--sub); margin-right: 10px; letter-spacing: .12em; }

.hud__br {
  position: absolute; right: calc(var(--gutter) + 6px); bottom: calc(var(--safe-b) + 30px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.hud__scroll {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; line-height: 1;
  opacity: 0; transition: opacity .6s var(--ease);
}
.hud.is-start .hud__scroll { opacity: 1; }
.hud__scroll i { width: 1px; height: 40px; background: rgba(36, 70, 31, .25); position: relative; overflow: hidden; }
.hud__scroll i::after {
  content: ''; position: absolute; inset: 0; background: var(--mint-ink);
  transform: scaleY(0); transform-origin: top; animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hud__toindex {
  pointer-events: auto; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--f-goth); font-size: 13px; font-weight: 500; letter-spacing: .12em;
}
.hud__toindex::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
}
.hud__toindex { position: relative; }

/* 冒頭の文字の出かた */
.is-loaded .hero__copy > * { animation: copyIn 1.1s var(--ease-out) both; }
.is-loaded .hero__copy > :nth-child(1) { animation-delay: .9s; }
.is-loaded .hero__copy > :nth-child(2) { animation-delay: 1s; }
.is-loaded .hero__copy > :nth-child(3) { animation-delay: 1.1s; }
.is-loading .hero__copy > * { opacity: 0; }
/* 冒頭の2行の、隠れている時の形（読み込みが終わると、ふだんの形へ、ゆっくり変わる）
   窓は自分の高さの分だけ上に、文字の入れ物はその分だけ下に（差し引きゼロ。文字は同じ場所のまま、窓の外にある） */
.is-loading .hero__sweep { transform: translateY(-100%); }
.is-loading .hero__keep { transform: translateY(100%); }
.is-loading .hero__line-in { opacity: 0; filter: blur(6px); transform: translateY(.12em); }
@keyframes copyIn { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* ---------------------------------------------------------------- 紙の上のセクション共通 */
.sec { position: relative; background: var(--paper); padding-block: clamp(96px, 12vw, 190px); overflow-x: clip; }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-family: var(--f-en); font-weight: 500; font-size: 10.5px; letter-spacing: .3em; line-height: 1.4; color: var(--sub);
}
.eyebrow__no {
  display: inline-grid; place-items: center; min-width: 38px; height: 24px; padding: 0 10px 2px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--f-serif); font-weight: 500; font-size: 16px; letter-spacing: .06em; line-height: 1; color: var(--mint-ink);
  font-variant-numeric: lining-nums;
}
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(36px, 4.4vw, 64px); }
.sec__title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px;
  font-family: var(--f-min); font-weight: 500; font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.32; letter-spacing: .08em;
}
.sec__count { font-family: var(--f-serif); font-weight: 500; font-size: 20px; letter-spacing: .14em; color: var(--sub); font-variant-numeric: lining-nums; }
.sec__count-n { color: var(--mint-ink); font-weight: 600; }

/* スクロールで現れる動きは、下のほうの「出現の動き」にまとめてある */

/* ---------------------------------------------------------------- 全作品 */
/* コンセプト「光の収蔵庫」（2026-11-25）：朝の光が入る明るい収蔵庫。ガラスの棚に、作品が透明な結晶のブロックに入って立つ。
   しくみは js/ui/works.js。暗い背景・金・赤・茶色・額縁・白いマット・傾ける配置は使わない（他人のサイトと同じになるため） */
.sec--index {
  --gv: 10px;     /* ガラスの厚み（縦長） */
  --gh: 12px;     /* ガラスの厚み（横長） */
  --glass: var(--gv);
  --ledge: 58px;  /* 棚板の奥行き（見える高さ） */
  --face: 12px;   /* 棚板の手前の面の厚み */
  --refl: 66px;   /* 棚板に映る長さ */
  padding-top: clamp(64px, 8vw, 128px);
  isolation: isolate;
  /* 壁：上は紙の白 → ごくうすいミント → いちばん下は必ず紙の白（すぐ下の深緑エリアの角が紙の白で描かれているため） */
  background: linear-gradient(to bottom, var(--paper) 0, #f0f6ed 260px, #ebf4e8 50%, #f0f6ed calc(100% - 220px), var(--paper) 100%);
}
.sec--index > .wrap { position: relative; z-index: 1; }
.wrap--wide { max-width: 1520px; }

/* 背景の光（すべて中身のうしろ・押せない）
   ::before = 右上からの朝の光だまり／::after = 右上から左下へ走る、幅の広い白い光の帯（3本。下の棚の高さにも1本かかる）
   .vault__depth = 光の玉と光の粒。js（works.js の stepDepth）がスクロールより少し遅れて動かす
   いちばん下は、マスクで紙の白に戻す（すぐ下の深緑エリアの角が紙の白で描かれているため） */
.vault__air {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 320px), transparent calc(100% - 140px));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 320px), transparent calc(100% - 140px));
}
.vault__air::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(62vw 46vw at 88% 6%, rgba(255, 251, 208, .9), rgba(255, 251, 208, 0) 62%);
}
.vault__air::after {
  content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: -30%; width: 160%;
  background: linear-gradient(118deg,
    rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, .28) 16%, rgba(255, 255, 255, .55) 19%, rgba(255, 255, 255, .28) 22%, rgba(255, 255, 255, 0) 27%,
    rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .22) 44%, rgba(255, 255, 255, .45) 47%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, .2) 72%, rgba(255, 255, 255, .42) 75%, rgba(255, 255, 255, .2) 78%, rgba(255, 255, 255, 0) 83%);
  animation: vault-drift 84s var(--ease) infinite alternate;
}
@keyframes vault-drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.vault__depth { position: absolute; inset: 0; will-change: transform; }
/* 光のにじみ：大きなぼけた光の玉。1つずつ、ゆっくり ただよう（行って戻る） */
.vault__orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c) 0%, var(--c) 18%, rgba(255, 255, 255, 0) 100%);
  animation: vault-orb 70s ease-in-out infinite alternate;
}
@keyframes vault-orb { from { translate: 0 0; } to { translate: var(--dx) var(--dy); } }
/* 光の粒：ごくゆっくり上へのぼり、ときどき ふわっと明るくなる（広い画面だけ） */
.vault__mote {
  position: absolute; width: var(--sz); height: var(--sz);
  animation: vault-rise var(--rise) linear var(--rd) infinite;
}
.vault__mote::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #fff 0, #fffbd0 45%, rgba(255, 244, 79, .7) 70%, rgba(255, 244, 79, 0) 100%);
  box-shadow: 0 0 6px 1px rgba(255, 244, 79, .55);
  opacity: .35;
  animation: vault-twinkle var(--tw) ease-in-out var(--td) infinite;
}
@keyframes vault-rise {
  0% { translate: 0 0; opacity: 0; }
  14%, 84% { opacity: 1; }
  100% { translate: 0 -380px; opacity: 0; }
}
@keyframes vault-twinkle { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (max-width: 1099.98px) { .vault__mote { display: none; } }

/* しぼり込み：細い文字のタブ。選ばれているタブは、下に線が左から伸びる */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(18px, 2.4vw, 36px);
  margin-bottom: clamp(48px, 5.6vw, 84px); border-bottom: 1px solid rgba(36, 70, 31, .14);
}
.filters__k { font-family: var(--f-en); font-weight: 500; font-size: 10px; letter-spacing: .3em; color: var(--sub); margin-right: clamp(4px, 1vw, 14px); }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 48px; padding: 4px 1px 6px;
  border: 0; background: none; cursor: pointer;
  font-family: var(--f-serif); font-weight: 600; font-size: 18px; letter-spacing: .1em; line-height: 1; color: var(--sub);
  font-variant-numeric: lining-nums;
  transition: color .6s var(--ease);
}
.chip__n { align-self: flex-start; margin-top: 11px; font-family: var(--f-serif); font-weight: 500; font-size: 11.5px; letter-spacing: .04em; color: var(--sub); }
.chip::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--mint-ink);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out);
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed='true'] { color: var(--ink); }
.chip[aria-pressed='true']::after { transform: scaleX(1); }
.chip[aria-pressed='true'] .chip__n { color: var(--mint-ink); }

/* ---- 棚の並べ方：単位の幅 --us と、立つ場所の高さ --bh（棚ごとに js が --n と --units を入れる） ---- */
.shelves { position: relative; container-type: inline-size; transition: opacity .2s var(--ease); }
.shelves.is-fading { opacity: 0; }
.shelf {
  --gap: clamp(24px, 3.4cqw, 46px);
  --ucap: calc((100cqw - 3 * var(--gap)) / 5.6 * 1.15);
  --us: min(var(--ucap), calc((100cqw - (var(--n) - 1) * var(--gap)) / var(--units)));
  --wv: var(--us);
  --wh: calc(var(--us) * 2.6);
  --bh-v: calc((var(--wv) - 2 * var(--gv)) * 16 / 9 + 2 * var(--gv));
  --bh-h: calc((var(--wh) - 2 * var(--gh)) * 9 / 16 + 2 * var(--gh));
  --bh: var(--bh-v);
  position: relative;
  margin-bottom: clamp(64px, 7vw, 116px);
}
.shelf--honly { --bh: var(--bh-h); }
.shelf:last-child { margin-bottom: 0; }
/* 作品の列（作品と札）。js（works.js の stepZoom）が、画面のまん中に近い棚ほど 1倍に近づける。
   軸は棚板の上の線なので、作品は棚に立ったまま大きさが変わる */
.shelf__row {
  position: relative; z-index: 1; display: flex; flex-wrap: nowrap; align-items: flex-start; gap: var(--gap);
  transform-origin: 50% var(--bh);
}

/* 棚の灯り：棚が画面のまん中に来ると、作品のうしろの壁に光が当たる */
.shelf__glow {
  position: absolute; z-index: 0; left: -16%; right: -16%; top: calc(var(--bh) * -.5); height: calc(var(--bh) * 2);
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 52%, #fff 0%, rgba(255, 252, 222, .9) 30%, rgba(255, 255, 255, .45) 52%, rgba(255, 255, 255, 0) 74%);
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.shelf.is-lit .shelf__glow { opacity: 1; }

/* ガラスの棚板：画面の左右いっぱい。上の面（奥ゆき）＋手前の面（厚み） */
.shelf__ledge {
  position: absolute; z-index: 0; top: var(--bh); left: 50%; translate: -50% 0; width: 100vw; height: var(--ledge);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6) 45%, rgba(206, 234, 222, .6) 100%);
}
.shelf__ledge::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: var(--face);
  background: linear-gradient(to bottom, #fff 0, rgba(255, 255, 255, .95) 1.5px, rgba(206, 234, 222, .8) 2px, rgba(232, 246, 238, .7) 55%, rgba(152, 216, 143, .55) 100%);
  border-bottom: 1px solid rgba(36, 70, 31, .14);
  box-shadow: inset 0 1.5px 0 #fff, 0 -1px 0 0 rgba(255, 244, 79, 0), 0 38px 46px -24px rgba(36, 70, 31, .36);
  transition: box-shadow 1.4s var(--ease);
}
.shelf.is-lit .shelf__ledge::after {
  box-shadow: inset 0 1.5px 0 #fffde6, 0 -1px 7px 0 rgba(255, 244, 79, .55), 0 38px 46px -24px rgba(36, 70, 31, .36);
}
/* 棚の札（SHELF 01）：作品の列の上・右づめ。広い画面では、左の余白に縦書きで、下の端を棚板の上の線にそろえる */
.shelf__tag {
  position: absolute; bottom: calc(var(--bh) + var(--ledge) + 10px); right: calc(50% - 50cqw);
  display: flex; gap: 16px; white-space: nowrap;
  font-family: var(--f-en); font-weight: 500; font-size: 9.5px; letter-spacing: .3em; line-height: 1; color: var(--sub);
  font-variant-numeric: lining-nums;
}
.shelf__range { display: none; }
@media (min-width: 1100px) {
  .shelf__tag {
    bottom: 100%; right: auto; left: calc(50% - 50cqw - 32px);
    writing-mode: vertical-rl; gap: 14px;
  }
  .shelf__range { display: inline; }
}

/* ---- 作品1点 ---- */
.piece--h { --glass: var(--gh); }
.piece {
  position: relative; flex: none; min-width: 0;
  width: calc(var(--us) * var(--k));
  display: grid; grid-template-rows: var(--bh) var(--ledge) auto; grid-template-columns: minmax(0, 1fr);
}
.piece.is-focus { z-index: 3; }
.piece__stand {
  grid-row: 1; align-self: end; position: relative;
  transition: opacity 1s var(--ease), filter .7s var(--ease);
}
.shelf:not(.is-lit) .piece__stand { opacity: .94; }
.shelves.has-focus .piece:not(.is-focus) .piece__stand { filter: saturate(.55); opacity: .88; }
/* 接地の影（ブロックの真下。映りこみに写らないよう、ブロック自身には外の影を付けない） */
.piece__stand::after {
  content: ''; position: absolute; z-index: -1; left: 6%; right: 6%; bottom: -8px; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 70, 31, .28), rgba(36, 70, 31, 0));
  pointer-events: none;
}

/* 結晶のブロック：厚みのある透明なガラスのかたまりに、映像が封じこめられている */
.piece__block {
  position: relative; border-radius: 12px; padding: var(--glass);
  background: linear-gradient(135deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .5) 22%, rgba(206, 234, 222, .46) 50%, rgba(255, 255, 255, .6) 78%, rgba(255, 255, 255, .94) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .95),
    inset 0 1.5px 0 #fff,
    inset 0 -12px 18px -10px rgba(95, 191, 159, .30),
    inset 12px 0 18px -12px rgba(255, 255, 255, .9),
    0 0 0 1px rgba(36, 70, 31, .08),
    0 0 0 0 rgba(255, 244, 79, 0),
    0 0 0 0 rgba(152, 216, 143, 0);
  overflow: hidden; isolation: isolate;
  transform-origin: 50% 100%;
  transition: transform 1.1s var(--ease-out), box-shadow 1.2s var(--ease);
  -webkit-box-reflect: below 0 linear-gradient(to bottom, transparent calc(100% - var(--refl)), rgba(0, 0, 0, .26));
}
/* ガラスのふちに、その作品の色がにじむ（ぼかした表紙。重ね順：ガラスの地 → これ → 映像の板 → 光のすじ → きらめき・再生ボタン） */
.piece__aura {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  filter: blur(12px) saturate(1.7) brightness(1.1);
  opacity: .5; transition: opacity 1s var(--ease);
  pointer-events: none;
}
.piece.is-alive .piece__aura { opacity: .75; }
/* ふちの細い光の線：宝石のふちのような、白・ミント・レモン・エメラルド */
.piece__block::before {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from 210deg, #fff, rgba(152, 216, 143, .9), #fff, rgba(255, 244, 79, .85), #fff, rgba(95, 191, 159, .85), #fff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.piece__film {
  /* 表紙が届くまでの地の色は、うすいミント（黒い板に見えないように） */
  position: relative; z-index: 1; overflow: hidden; border-radius: 5px; background: #dcebe2;
  aspect-ratio: 9 / 16;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .75), 0 0 0 2px rgba(36, 70, 31, .2), 0 10px 20px -12px rgba(36, 70, 31, .55);
}
.piece--h .piece__film { aspect-ratio: 16 / 9; }
.piece__img, .piece__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.84) brightness(1.01);
  transition: filter 1.1s var(--ease), opacity .6s var(--ease);
}
.piece__video { z-index: 1; opacity: 0; }
.piece.has-video .piece__video { opacity: 1; }
/* 止まっている時の、うすい霜のベール */
.piece__frost {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(181, 214, 206, .10));
  transition: opacity 1.1s var(--ease);
}
/* スクロールで動く光のすじ（--g は js が決める） */
.piece__glare {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, .5) 49%, rgba(255, 255, 255, .1) 53%, transparent 60%);
  background-size: 260% 100%;
  background-position: calc(var(--g, .5) * 100%) 0;
  opacity: .45; transition: opacity 1.1s var(--ease);
}
/* 角の小さなきらめき（4つの角を持つ星形）。光のすじが角を通る時だけ光る */
.piece__glint {
  position: absolute; z-index: 4; width: 14px; height: 14px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0, rgba(255, 251, 208, .9) 14%, rgba(255, 244, 79, 0) 42%);
  opacity: var(--s1, 0);
}
.piece__glint::before, .piece__glint::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 50%, rgba(255, 255, 255, 0));
}
.piece__glint::after { transform: rotate(90deg); }
.piece__glint--a { left: calc(var(--glass) - 7px); top: calc(var(--glass) - 7px); }
.piece__glint--b { right: calc(var(--glass) - 7px); bottom: calc(var(--glass) - 7px); opacity: var(--s2, 0); }
/* 丸いガラスの再生ボタン */
.piece__play {
  position: absolute; z-index: 5; right: calc(var(--glass) + 12px); bottom: calc(var(--glass) + 12px);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .62) 60%, rgba(230, 245, 226, .7)); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px -10px rgba(36, 70, 31, .6);
  color: var(--mint-ink); pointer-events: none;
  opacity: 0; transition: opacity .7s var(--ease);
}
.piece__play .btn__tri { margin-left: 3px; }
/* 棚に落ちる光（動いている時だけ） */
.piece__caustic {
  position: absolute; left: -12%; right: -12%; top: 100%; height: calc(var(--ledge) * .95); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 28%, rgba(255, 244, 79, .62), rgba(255, 244, 79, .2) 46%, rgba(255, 244, 79, 0) 72%);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
/* 映りこみが効かないブラウザ：ブロックの真下に、うすい光の帯 */
@supports not (-webkit-box-reflect: below 0) {
  .piece__stand::before {
    content: ''; position: absolute; left: 4%; right: 4%; top: 100%; height: calc(var(--ledge) * .7); pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .75), rgba(206, 234, 222, .35) 45%, rgba(206, 234, 222, 0));
    border-radius: 0 0 40% 40% / 0 0 100% 100%;
  }
}

/* 動いている時：絵の色が戻り、ブロックが内側から光る */
.piece.is-alive .piece__img, .piece.is-alive .piece__video { filter: none; }
.piece.is-alive .piece__frost { opacity: 0; }
.piece.is-alive .piece__glare { opacity: .12; }
.piece.is-alive .piece__caustic { opacity: 1; }
.piece.is-alive .piece__block {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .95),
    inset 0 1.5px 0 #fff,
    inset 0 -12px 18px -10px rgba(95, 191, 159, .30),
    inset 12px 0 18px -12px rgba(255, 255, 255, .9),
    0 0 0 1px rgba(36, 70, 31, .08),
    0 0 44px 4px rgba(255, 244, 79, .46),
    0 0 96px 14px rgba(152, 216, 143, .34);
}
/* 動いている時：ほんの少し前に出る（下端が軸） */
.piece.is-alive .piece__block { transform: scale(1.018); }
/* マウスを乗せた／キーボードで選んだ時：下端を軸に少し大きく（傾けない） */
.piece.is-focus .piece__block { transform: scale(1.035); }
.piece.is-focus .piece__play { opacity: 1; }
@media (hover: none) {
  .piece__play { opacity: .7; }
}

/* ---- 札：標本の札・保管の札のように ---- */
.plate { grid-row: 3; position: relative; min-width: 0; padding-top: calc(var(--face) + 12px); }
.plate__row {
  display: flex; align-items: baseline; gap: 12px; min-width: 0;
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(36, 70, 31, .14); line-height: 1;
}
.plate__no {
  flex: none; font-family: var(--f-serif); font-weight: 500; font-size: 28px; line-height: .86; letter-spacing: .02em;
  color: var(--mint-ink); font-variant-numeric: lining-nums;
}
.piece--h .plate__no { font-size: 34px; }
.plate__cat {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--f-en); font-weight: 500; font-size: 10px; letter-spacing: .22em; color: var(--sub);
}
.plate__lamp {
  flex: none; align-self: center; margin-left: auto; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 244, 79, 0); box-shadow: inset 0 0 0 1px rgba(36, 70, 31, .3), 0 0 0 0 rgba(255, 244, 79, 0);
  transition: background-color 1.1s var(--ease), box-shadow 1.1s var(--ease);
}
.piece.is-alive .plate__lamp {
  background: var(--lemon);
  box-shadow: inset 0 0 0 1px rgba(36, 70, 31, .22), 0 0 10px 3px rgba(255, 244, 79, .7);
}
.plate__title { font-family: var(--f-min); font-weight: 500; font-size: 16px; line-height: 1.5; letter-spacing: .06em; white-space: pre-line; }
.piece--h .plate__title { font-size: 19px; }
/* 作品名の下線：レモン色のマーカーが左から伸びる（マウスを乗せた時と、キーボードで選んだ時だけ） */
.plate__mark {
  background: linear-gradient(transparent 64%, var(--lemon) 64%, var(--lemon) 94%, transparent 94%) 0 0 / 0% 100% no-repeat;
  transition: background-size .6s var(--ease-out);
}
.piece:hover .plate__mark, .piece.is-focus .plate__mark { background-size: 100% 100%; }
.plate__sub { margin-top: 6px; font-size: 12px; line-height: 1.7; letter-spacing: .04em; color: var(--sub); }
.plate__spec {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em; line-height: 1; color: var(--sub);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: color 1.1s var(--ease);
}
.piece.is-alive .plate__spec { color: var(--mint-ink); }
.plate__tc { flex: none; }
.plate__bar { position: relative; flex: 1; min-width: 16px; height: 1px; background: rgba(36, 70, 31, .14); }
.plate__bar i { position: absolute; inset: 0; background: rgba(36, 70, 31, .55); transform: scaleX(0); transform-origin: 0 50%; }
.plate__len { flex: none; }

/* 作品まるごとを覆う透明ボタン */
.piece__hit { position: absolute; inset: 0; z-index: 6; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; }

/* 取り出して開く時の「飛ぶ絵」（js/ui/works.js の openFrom） */
.vault-ghost {
  position: fixed; z-index: 90; overflow: hidden; border-radius: 5px; background: var(--screen);
  transform-origin: 0 0; pointer-events: none; will-change: transform;
  box-shadow: 0 30px 60px -30px rgba(36, 70, 31, .55);
}
.vault-ghost > img, .vault-ghost > canvas { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 中くらいの画面（761〜1099px） */
@media (max-width: 1099.98px) {
  .shelf {
    --gap: 24px;
    --ucap: calc((100cqw - var(--gap)) / 3.6 * 1.15);
  }
}

/* ---------------------------------------------------------------- 潜る一覧（.dive） */
/* コンセプト「水鏡の下」（2026-11-25）：冒頭の水鏡の、下へ潜る。スクロール＝沈む。
   #index が背の高いセクションになり、中に画面いっぱいの舞台（sticky）。3D は js/dive.js（canvas）、
   上に重ねるHTML（見出し・作品の札・水深計・しぼり込み・幕）は js/ui/divehud.js。
   使えない時（?noworld・WebGLなし・動きを減らす設定・?shelf=1・3Dの失敗）は、上の「全作品」（棚の一覧）のまま。
   js が舞台に --q（進み 0〜1）・--intro（見出しの濃さ）・--hud（水の中の物の濃さ）を入れる。
   色：水の中の文字はあわいクリーム。赤・金・茶は使わない。backdrop-filter・clip-path は使わない */
.sec--index.is-dive {
  height: calc((var(--dive-len, 7) + 1) * 100vh);
  padding: 0;
  background: var(--paper);
}
.dive {
  --cream: #f4fff6;
  --abyss: #06140e;
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  background: var(--paper);
}
.dive__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y;
  opacity: 0; transition: opacity .6s var(--ease);
}
.dive.is-ready .dive__canvas { opacity: 1; }

/* 着水の間だけ見える見出し（水の上＝紙の白にあるので、文字は今までと同じ濃い色） */
.dive__intro {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; pointer-events: none;
  color: var(--ink);
  opacity: var(--intro, 1);
  transform: translate3d(0, calc((1 - var(--intro, 1)) * -36px), 0);
}
.dive__intro.is-gone { visibility: hidden; }
.dive__intro .wrap { max-width: 1520px; }
.dive__intro .sec__title { font-size: clamp(40px, 5vw, 72px); }
.dive__beneath {
  margin-top: 20px;
  font-family: var(--f-serif); font-weight: 500; font-size: 14px; letter-spacing: .42em; line-height: 1.4; color: var(--sub);
}

/* 「SCROLL TO DIVE」：画面の下のまん中。下向きの細い線と小さな矢じり */
.dive__hint {
  position: absolute; z-index: 3; left: 50%; bottom: calc(var(--safe-b) + 26px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: translateX(-50%);
  font-family: var(--f-en); font-weight: 500; font-size: 10px; letter-spacing: .32em; line-height: 1; color: var(--sub);
  padding-left: .32em; white-space: nowrap;
  opacity: 0; transition: opacity .9s var(--ease); pointer-events: none;
}
.dive__hint.is-on { opacity: 1; }
.dive__hint i { position: relative; width: 1px; height: 34px; background: linear-gradient(rgba(122, 116, 104, 0), currentColor); animation: dive-hint 3.2s ease-in-out infinite; }
.dive__hint i::after {
  content: ''; position: absolute; left: -3px; bottom: 1px; width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg);
}
@keyframes dive-hint { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 4px; } }

/* 水の中で見える物（ラベル・しぼり込み・水深計）。キーボードで入った時は、すぐ見える */
.dive__hud {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  color: var(--cream); text-shadow: 0 1px 10px rgba(6, 20, 14, .42);
  opacity: var(--hud, 0); transition: opacity .5s var(--ease);
}
/* 文字を読みやすくする暗い帯（上から下へ うすく消える）。HUD と同じタイミングで出る。押せない */
.dive__shade {
  position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none;
  opacity: var(--hud, 0); transition: opacity .5s var(--ease);
}
.dive__shade--top { top: 0; height: calc(var(--safe-t) + 140px); background: linear-gradient(to bottom, rgba(6, 34, 25, .46), rgba(6, 34, 25, 0)); }
.dive__shade--bottom { display: none; bottom: 0; height: calc(var(--safe-b) + 110px); background: linear-gradient(to top, rgba(6, 34, 25, .46), rgba(6, 34, 25, 0)); }
.dive__hud:focus-within { opacity: 1; }
.dive__hud.is-on .dive__filters, .dive__hud.is-on .gauge,
.dive__hud:focus-within .dive__filters, .dive__hud:focus-within .gauge { pointer-events: auto; }
.dive__hud ::selection, .dive__plates ::selection { background: rgba(255, 244, 79, .45); color: var(--abyss); }
.dive :focus-visible { outline-color: var(--lemon); }

/* 横長の画面：小さな見出しと、しぼり込みのタブを、左上の1行にならべる（下は作品の札のために空ける） */
.dive__top {
  position: absolute; left: calc(var(--gutter) + 6px); right: 110px; top: calc(var(--safe-t) + 80px);
  display: flex; align-items: center; gap: 0 clamp(24px, 3vw, 44px); min-width: 0;
}
.dive__label {
  flex: none;
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  font-family: var(--f-en); font-weight: 500; font-size: 10.5px; letter-spacing: .28em; line-height: 1.4;
}
.dive__label i { width: 22px; height: 1px; background: currentColor; opacity: .6; }
.dive__label-ja { font-family: var(--f-min); font-size: 13px; letter-spacing: .16em; }
.dive__label-n { font-family: var(--f-serif); font-size: 13px; letter-spacing: .14em; opacity: .78; font-variant-numeric: lining-nums; }

/* しぼり込み：画面の左下。文字のタブ。選ばれたタブの下に、レモン色の線 */
.dive .dive__filters {
  flex: 0 1 auto; min-width: 0;
  flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  gap: 0 clamp(18px, 2.2vw, 32px); margin: 0;
  border-bottom: 1px solid rgba(244, 255, 246, .24);
}
.dive .dive__filters::-webkit-scrollbar { display: none; }
.dive .chip { flex: none; min-height: 46px; font-size: 16px; color: rgba(244, 255, 246, .7); }
.dive .chip:hover, .dive .chip[aria-pressed='true'] { color: var(--cream); }
.dive .chip::after { background: var(--lemon); bottom: 0; }
.dive .chip__n, .dive .chip[aria-pressed='true'] .chip__n { color: rgba(244, 255, 246, .66); }

/* 水深計：右端の縦の計器。目盛りは作品の数だけ（押すと、その作品の番へ移る） */
.gauge {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px;
  font-family: var(--f-mono);
}
.gauge { text-shadow: 0 1px 3px rgba(6, 20, 14, .7), 0 0 12px rgba(6, 20, 14, .55); }
.gauge__k { font-size: 9.5px; letter-spacing: .3em; padding-left: .3em; line-height: 1.4; opacity: .72; }
.gauge__num { margin-bottom: 12px; font-size: 12px; letter-spacing: .02em; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gauge__line { --gl: 46vh; position: relative; width: 28px; height: var(--gl); }
.gauge__rule {
  position: absolute; left: 50%; top: -10px; bottom: -10px; width: 1px; margin-left: -.5px;
  background: linear-gradient(rgba(244, 255, 246, 0), rgba(244, 255, 246, .5) 14%, rgba(244, 255, 246, .5) 86%, rgba(244, 255, 246, 0));
}
.gauge__tick {
  position: absolute; left: 0; top: calc(var(--t, 0) * 100%); width: 28px; height: 28px; margin-top: -14px;
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
}
.gauge__tick i {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 1px; margin: 0 0 0 -4.5px;
  background: rgba(244, 255, 246, .58);
  transition: transform .5s var(--ease-out), background-color .5s var(--ease), opacity .5s var(--ease), box-shadow .5s var(--ease);
}
.gauge__tick:hover i, .gauge__tick:focus-visible i, .gauge__tick.is-near i { transform: scaleX(1.7); background: var(--cream); }
.gauge__tick.is-near i { box-shadow: 0 0 6px rgba(244, 255, 246, .7); }
.gauge__tick.is-dim i { opacity: .26; }
.gauge__now {
  position: absolute; left: 50%; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--lemon); box-shadow: 0 0 10px 3px rgba(255, 244, 79, .42), 0 0 22px 6px rgba(255, 244, 79, .16);
  transform: translate3d(0, calc(var(--gp, 0) * var(--gl)), 0); pointer-events: none;
}
.gauge__tip {
  position: absolute; right: calc(100% + 8px); top: calc(var(--t, 0) * 100%);
  display: flex; align-items: baseline; gap: 10px; white-space: nowrap; transform: translateY(-50%);
  font-family: var(--f-min); font-weight: 500; font-size: 12.5px; letter-spacing: .06em; line-height: 1.4;
  opacity: 0; transition: opacity .45s var(--ease); pointer-events: none;
}
.gauge__tip.is-on { opacity: 1; }
.gauge__tip-no { font-family: var(--f-serif); font-size: 15px; font-variant-numeric: lining-nums; }

/* 作品の札：すりガラスふうの白い札（冒頭の3Dの「説明カード」と同じ家族）。
   位置（transform）と濃さ（opacity）は js が毎コマ決める。濃さ 0.5 未満の間は押せない */
.dive__plates { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.dplate {
  position: absolute; left: 0; top: 0; width: 260px;
  display: flex; flex-direction: column; align-items: stretch; text-align: left;
  padding: 14px 16px 12px; border: 0; border-radius: 14px;
  background: rgba(253, 252, 249, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 22px 44px -26px rgba(6, 20, 14, .6), 0 2px 8px -4px rgba(6, 20, 14, .22);
  color: var(--mint-ink); font-family: var(--f-goth); line-height: 1.5; letter-spacing: .04em;
  cursor: pointer; pointer-events: none; opacity: 0; will-change: transform, opacity;
  transition: box-shadow .5s var(--ease);
}
.dplate.is-live { pointer-events: auto; }
.dplate.is-hidden { visibility: hidden; }
.dplate:hover, .dplate.is-hot { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 26px 50px -24px rgba(6, 20, 14, .7), 0 0 0 1px rgba(255, 244, 79, .55); }
.dplate:focus-visible { outline: 2px solid var(--lemon); outline-offset: 3px; border-radius: 14px; }
.dplate__row {
  display: flex; align-items: baseline; gap: 10px; min-width: 0;
  padding-bottom: 8px; margin-bottom: 9px; border-bottom: 1px solid rgba(36, 70, 31, .14); line-height: 1;
}
.dplate__no { flex: none; font-family: var(--f-serif); font-weight: 500; font-size: 24px; line-height: .86; letter-spacing: .02em; color: var(--mint-ink); font-variant-numeric: lining-nums; }
.dplate__cat { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-en); font-weight: 500; font-size: 10px; letter-spacing: .22em; color: var(--sub); }
.dplate__title { font-family: var(--f-min); font-weight: 500; font-size: 16px; line-height: 1.5; letter-spacing: .06em; white-space: pre-line; color: var(--ink); }
/* 作品名の下線：レモン色のマーカーが左から伸びる（3Dの板にマウスが乗った時・札にマウス／キーボード） */
.dplate__mark {
  background: linear-gradient(transparent 64%, var(--lemon) 64%, var(--lemon) 94%, transparent 94%) 0 0 / 0% 100% no-repeat;
  transition: background-size .6s var(--ease-out);
}
.dplate:hover .dplate__mark, .dplate:focus-visible .dplate__mark, .dplate.is-hot .dplate__mark { background-size: 100% 100%; }
.dplate__sub { margin-top: 4px; font-size: 12px; line-height: 1.65; letter-spacing: .04em; color: var(--sub); }
.dplate__spec {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em; line-height: 1; color: var(--sub); white-space: nowrap;
}
.dplate__play { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-goth); font-weight: 500; font-size: 11px; letter-spacing: .1em; color: var(--mint-ink); }
.dplate__play .btn__tri { border-left-width: 6px; border-top-width: 4px; border-bottom-width: 4px; }

/* 遠くへ移る時の、水の色の幕（0.45秒で出る → その場で移る → 0.6秒で消える） */
.dive__veil {
  position: absolute; inset: 0; z-index: 5; background: #1f6f58; pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.dive__veil.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .45s var(--ease), visibility 0s; }

/* 水の中にいる時のヘッダー：文字はクリーム、背景と線なし（.on-paper より後ろに書く） */
.site-head.on-dive {
  color: #f6fff8; background: none; box-shadow: none;
  text-shadow: 0 1px 10px rgba(6, 20, 14, .35), 0 0 2px rgba(6, 20, 14, .18);
}

/* ---------------------------------------------------------------- 自己紹介 */
.sec--about { padding-bottom: clamp(48px, 6vw, 92px); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5.6vw, 96px); align-items: center; }
.about__visual { position: relative; }
/* しほの画像：切らずに全部、大きく見せる */
.about__portrait {
  position: relative; z-index: 1; overflow: hidden; border-radius: var(--r); aspect-ratio: 1 / 1;
  background: var(--sage);
  box-shadow: 0 0 0 1px rgba(244, 240, 230, .16), 0 70px 110px -60px rgba(0, 0, 0, .85);
}
.about__portrait img { width: 100%; height: 100%; object-fit: contain; }
.about__frame i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255, 255, 255, .9); }
.about__frame .c-tl { top: 16px; left: 16px; border-top-width: 1.5px; border-left-width: 1.5px; }
.about__frame .c-tr { top: 16px; right: 16px; border-top-width: 1.5px; border-right-width: 1.5px; }
.about__frame .c-bl { bottom: 16px; left: 16px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.about__frame .c-br { bottom: 16px; right: 16px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
/* 写真の下：小さな3Dアシスタントと、ひとことの説明（写真には重ねない） */
.about__guide { display: flex; align-items: flex-end; gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(18px, 2vw, 26px); padding-left: 6px; }
.about__guide-fig { position: relative; flex: none; width: clamp(50px, 4.6vw, 64px); margin: 0; }
.about__guide-fig img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.about__guide-fig::before { /* うしろの、やわらかい光（紺の服が深緑に沈まないように） */
  content: ''; position: absolute; z-index: 0; left: 50%; top: 46%; width: 250%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle closest-side, rgba(255, 251, 208, .5) 0%, rgba(255, 244, 79, .2) 44%, rgba(255, 244, 79, 0) 100%);
}
.about__guide-fig::after { /* 足もとの影 */
  content: ''; position: absolute; z-index: 0; left: -8%; right: -8%; bottom: -5px; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
}
.about__note { font-size: 12.5px; line-height: 1.85; letter-spacing: .04em; padding: 0 0 10px 16px; border-left: 1px solid currentColor; opacity: .8; }
/* 名前まわり：ひとこと → 大きな「しほ」→ 細い線 → 肩書き → 色を変えた1文 */
.about__heading {
  font-family: var(--f-min); font-weight: 500; font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1.6; letter-spacing: .18em; margin-bottom: clamp(2px, .5vw, 8px);
}
.about__hl { display: inline-block; }
.about__name { line-height: 1; }
.about__name-ja {
  display: inline-block; font-family: var(--f-min); font-weight: 500; font-size: clamp(76px, 8.8vw, 132px);
  line-height: 1.2; letter-spacing: .14em; padding-right: .04em;
}
/* 名前の下の細い線。本文の1行と同じ長さまで引く */
.about__rule { display: block; width: min(100%, 34em); height: 1px; margin: clamp(8px, 1vw, 14px) 0 clamp(12px, 1.3vw, 16px); background: currentColor; opacity: .5; }
.about__role { font-size: 13.5px; line-height: 1.6; letter-spacing: .34em; margin-bottom: clamp(24px, 2.8vw, 36px); }
.about__lead {
  font-family: var(--f-min); font-weight: 500; font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.8; letter-spacing: .12em; margin-bottom: clamp(16px, 1.8vw, 22px);
}
.about__body { max-width: 34em; }
.about__body p { font-size: 15px; line-height: 2.1; margin-bottom: 1.1em; }
.about__body p:last-child { margin-bottom: 0; }

.stats { list-style: none; padding: 0; margin-top: clamp(72px, 9vw, 128px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 6px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(18px, 2.2vw, 32px); }
.stat__v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--mint-ink); }
.stat__num { font-family: var(--f-serif); font-weight: 500; font-size: clamp(52px, 5.8vw, 90px); line-height: .92; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; }
.stat__unit { font-family: var(--f-min); font-weight: 600; font-size: clamp(15px, 1.4vw, 19px); letter-spacing: .08em; }
.stat__note { margin-top: 14px; font-size: 13.5px; line-height: 1.8; color: var(--sub); letter-spacing: .04em; }

/* ---------------------------------------------------------------- ご依頼いただけること */
.sec--services { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(48px, 6vw, 92px); }
.svcs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); }
.svc {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 3.4vw, 52px); border-radius: var(--r);
  background: #fff; border: 1px solid rgba(230, 223, 208, .7);
}
/* マウスを乗せた時の動きは、下のほうの「カードの光」にまとめてある */
.svc::after {
  content: ''; position: absolute; z-index: -1; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, var(--lemon-pale), rgba(255, 251, 208, 0) 70%);
  opacity: 0; transition: opacity .7s var(--ease);
}
.svc:hover::after { opacity: 1; }
.svc__top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px); padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
/* 番号：欧文の明朝の細い数字（ふち取りの太い数字はやめた） */
.svc__no {
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(42px, 3.9vw, 58px); line-height: .78;
  letter-spacing: .05em; color: var(--mint-ink); font-variant-numeric: lining-nums;
}
.svc__en { font-family: var(--f-en); font-weight: 500; font-size: 10px; letter-spacing: .28em; color: var(--sub); text-align: right; }
.svc__title { font-family: var(--f-min); font-weight: 500; font-size: clamp(22px, 2.1vw, 29px); line-height: 1.45; letter-spacing: .06em; margin-bottom: 16px; }
.svc__text { font-size: 14.5px; line-height: 2.05; max-width: 31em; margin-bottom: 26px; white-space: pre-line; }
.svc__tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc__tags li { padding: 6px 13px; border-radius: 999px; background: var(--mint-pale); color: var(--mint-ink); font-size: 12px; line-height: 1.4; letter-spacing: .04em; }

/* ---------------------------------------------------------------- 制作の流れ（編集タイムライン） */
.edit {
  --play: 0; --lane: 46px;
  overflow: hidden; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -64px rgba(36, 70, 31, .5);
}
.edit__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 26px; background: var(--beige); border-bottom: 1px solid var(--line);
  font-family: var(--f-en); font-weight: 500; font-size: 10.5px; letter-spacing: .24em; color: var(--sub);
}
.edit__bar span:first-child::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 12px; border-radius: 50%;
  background: var(--mint); vertical-align: 1px;
}
.edit__tc { color: var(--mint-ink); font-variant-numeric: tabular-nums; }
.edit__area { position: relative; padding: 0 26px 34px; }
.edit__ruler {
  position: relative; height: 40px; margin-left: var(--lane);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 2%) 0 100% / 100% 7px no-repeat;
}
.edit__rt { position: absolute; left: var(--x); bottom: 12px; transform: translateX(-50%); font-family: var(--f-en); font-weight: 500; font-size: 10px; letter-spacing: .08em; color: var(--sub); line-height: 1; font-variant-numeric: tabular-nums; }
.edit__rt:first-child { transform: none; }
.edit__rt:last-child { transform: translateX(-100%); }
.edit__trackwrap { position: relative; display: flex; padding-top: 20px; }
.edit__lane { flex: none; width: var(--lane); padding-top: 22px; font-family: var(--f-en); font-weight: 500; font-size: 10px; color: var(--sub); letter-spacing: .1em; }
.edit__track { list-style: none; padding: 0; flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.edit__head {
  position: absolute; z-index: 2; top: -44px; bottom: -6px; width: 2px; margin-left: -1px;
  left: calc(var(--lane) + var(--play) * (100% - var(--lane)));
  background: var(--mint-ink); pointer-events: none;
}
.edit__head::before {
  content: ''; position: absolute; top: 0; left: -6px; width: 14px; height: 12px;
  background: var(--lemon); border: 1px solid var(--mint-ink);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}
.clip { min-width: 0; }
.clip__bar {
  position: relative; overflow: hidden; height: 62px; padding: 0 14px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--beige); color: var(--sub);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.clip__bar::before { /* 音の波形ふうの模様 */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; opacity: .35;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 4px);
  -webkit-mask: linear-gradient(90deg, #000 0 8%, rgba(0,0,0,.4) 14%, #000 22%, rgba(0,0,0,.5) 34%, #000 46%, rgba(0,0,0,.3) 58%, #000 70%, rgba(0,0,0,.5) 84%, #000);
  mask: linear-gradient(90deg, #000 0 8%, rgba(0,0,0,.4) 14%, #000 22%, rgba(0,0,0,.5) 34%, #000 46%, rgba(0,0,0,.3) 58%, #000 70%, rgba(0,0,0,.5) 84%, #000);
}
.clip.is-lit .clip__bar { background: var(--grad-mint); border-color: transparent; color: var(--mint-ink); }
.clip__no { font-family: var(--f-serif); font-weight: 500; font-size: 15px; letter-spacing: .08em; line-height: 1; font-variant-numeric: lining-nums; }
.clip__en { font-family: var(--f-en); font-weight: 700; font-size: 10.5px; letter-spacing: .2em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip__body { padding: 24px 8px 0 2px; opacity: .4; transition: opacity .7s var(--ease); }
.clip.is-lit .clip__body { opacity: 1; }
.clip__title { font-family: var(--f-min); font-weight: 500; font-size: 19px; line-height: 1.5; letter-spacing: .06em; margin-bottom: 10px; }
.clip__text { font-size: 13px; line-height: 1.95; color: var(--sub); }

/* ---------------------------------------------------------------- AIツールについて */
.sec--process { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(48px, 6vw, 92px); }
.sec--tools { padding-top: clamp(56px, 7vw, 104px); }
.sec__lead { font-size: 15px; line-height: 2; letter-spacing: .06em; }
/* ツールごとのカード。1枚目（いちばん使う道具）だけ横2つ分 */
.tools-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.tool {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; min-height: clamp(210px, 19vw, 264px);
  padding: clamp(20px, 2.1vw, 30px); border-radius: 24px;
}
.tool--lead { grid-column: span 2; }

/* ツール名の位置（2026-11-21）：どの枠でも同じ高さにそろえ、枠のまん中より上に置く。
   ・上の段（番号と用途）は、高さを決めておく（中身の長さで、下のツール名が上下しないように）
   ・ツール名の行には、いちばん大きい文字（1つ目の枠の大きさ ＝ --tool-lead）と同じ高さの「見えない支え」を入れてある。
     これで、文字の大きさがちがう枠どうしでも、文字の下の線（ベースライン）がぴったりそろう
   ・説明文は、ツール名のすぐ下から始まる（説明が短い枠は、下が空く） */
.tool { --tool-lead: clamp(36px, 3.8vw, 56px); --tool-top: 28px; --tool-gap: clamp(8px, 1vw, 14px); }
.tool__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: var(--tool-top); margin-bottom: var(--tool-gap); }
.tool__no { flex: none; font-family: var(--f-serif); font-weight: 500; font-size: 19px; letter-spacing: .08em; line-height: 1; font-variant-numeric: lining-nums; }
.tool__use { padding: 6px 12px; border-radius: 999px; font-size: 11px; line-height: 1.3; letter-spacing: .08em; white-space: nowrap; }
.tool__name { font-family: var(--f-serif); font-weight: 500; font-size: clamp(25px, 2.3vw, 34px); line-height: 1.12; letter-spacing: .02em; margin-bottom: 8px; font-variant-numeric: lining-nums; white-space: nowrap; }
.tool__name::before { content: '\200B'; font-size: var(--tool-lead); } /* 見えない支え（幅は 0。行の高さと、文字の下の線の位置を決める） */
.tool--lead .tool__name { font-size: var(--tool-lead); }
.tool__text { font-size: 13px; line-height: 1.9; letter-spacing: .04em; max-width: 30em; }
.tool__mark { /* うしろに、大きな頭文字 */
  position: absolute; z-index: -1; right: -.06em; bottom: -.3em;
  font-family: var(--f-serif); font-weight: 500; font-size: clamp(150px, 15vw, 210px); line-height: 1; letter-spacing: 0;
  pointer-events: none; user-select: none;
}

/* ---------------------------------------------------------------- お問い合わせ＋フッター */
.sec--contact { isolation: isolate; overflow: hidden; padding-bottom: 0; }
.contact__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* 地平線からのぼる光を、細い輪とやわらかい光で描く（べた塗りの黄色い半円はやめた） */
.contact__sun {
  position: absolute; left: 50%; bottom: 0; width: min(1500px, 200vw); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, 74%);
  background: repeating-radial-gradient(circle closest-side, rgba(255, 244, 79, 0) 0 calc(4% - 1px), rgba(255, 244, 79, .34) calc(4% - 1px) 4%);
  -webkit-mask: radial-gradient(circle closest-side, #000 0 66%, rgba(0, 0, 0, .5) 84%, transparent 100%);
  mask: radial-gradient(circle closest-side, #000 0 66%, rgba(0, 0, 0, .5) 84%, transparent 100%);
}
.contact__glow {
  position: absolute; left: 50%; bottom: 0; width: min(1500px, 200vw); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, 74%);
  background: radial-gradient(circle closest-side, rgba(255, 246, 130, .3) 0 58%, rgba(255, 244, 79, .2) 72%, rgba(255, 244, 79, .08) 87%, rgba(255, 244, 79, 0) 100%);
}
/* まん中にそろえる：見出し → ひとこと → 大きなLINEボタン → 補足 */
.contact { --ch: clamp(36px, 6vw, 92px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact .eyebrow { justify-content: center; }
.contact__heading { font-family: var(--f-min); font-weight: 500; font-size: var(--ch); line-height: 1.42; letter-spacing: .06em; margin-bottom: clamp(22px, 2.8vw, 40px); }
.contact__heading > span { display: block; white-space: nowrap; } /* 1行ずつ（中の1文字ずつの部品には当てない） */
.contact__text { font-size: clamp(15px, 1.25vw, 17px); font-weight: 500; line-height: 2.1; letter-spacing: .06em; margin-bottom: clamp(30px, 3.4vw, 48px); }
.contact__btns { display: flex; justify-content: center; width: 100%; margin-bottom: clamp(34px, 3.6vw, 50px); }
.contact__hint { font-size: 13px; line-height: 2; letter-spacing: .06em; }
/* スマホなど幅のせまい画面で上の文が折り返す時、行の長さをそろえる（読点のところで、きれいに折り返す） */
.contact__text { text-wrap: balance; }

/* ---- ボタンの下の文のすぐ下に立つ、手を振る案内人（2026-11-21） ----
   フッターまでのすき間（--foot-gap）の中に収める。すき間の大きさそのものは、案内人がいない時と同じ（下へ伸ばさない）。
   頭の上に少しだけ空き（--guide-top）をとり、足は、フッターの上の線の上に立つ。
   うしろに やわらかい光を置く（紺の服が、深緑に沈まないように）。光は文字の上に重ならない大きさにしてある */
.sec--contact { --foot-gap: clamp(110px, 14vw, 200px); --guide-top: clamp(12px, 1.6vw, 22px); }
.contact__guide {
  position: relative; flex: none; margin: var(--guide-top) 0 0;
  height: calc(var(--foot-gap) - var(--guide-top));
  width: calc((var(--foot-gap) - var(--guide-top)) * 237 / 395);
}
.contact__guide img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.contact__guide::before { /* うしろの、やわらかい光 */
  content: ''; position: absolute; z-index: -1; left: 50%; top: 47%; width: 225%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(255, 251, 208, .36) 0%, rgba(255, 244, 79, .14) 48%, rgba(255, 244, 79, 0) 100%);
}
.contact__guide::after { /* 足もとの影（フッターの線の上に落ちる） */
  content: ''; position: absolute; z-index: 0; left: 8%; right: 16%; bottom: -4px; height: 9px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .46), rgba(0, 0, 0, 0));
}
.sec--contact.has-guide .site-foot { margin-top: 0; } /* すき間は、案内人の高さでちょうど埋まっている */

.site-foot { position: relative; z-index: 1; margin-top: var(--foot-gap, clamp(110px, 14vw, 200px)); }
/* 左：ロゴ（ヘッダーと同じ書体）／中央：コピーライト／右：ページの先頭へ */
.foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 24px;
  padding-top: 24px; padding-bottom: calc(24px + var(--safe-b));
  border-top: 1px solid rgba(36, 70, 31, .14);
  font-family: var(--f-en); font-weight: 500; font-size: 11px; letter-spacing: .2em;
}
.foot__brand { justify-self: start; }
.foot__logo { font-family: var(--f-serif); font-weight: 500; font-size: 28px; letter-spacing: .03em; line-height: 1; white-space: nowrap; }
.foot__copy { justify-self: center; text-align: center; font-family: var(--f-serif); font-weight: 500; font-size: 15px; letter-spacing: .08em; font-variant-numeric: lining-nums; }
.foot__top { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- 再生モーダル */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: clamp(72px, 7vh, 96px) clamp(16px, 4vw, 64px) clamp(20px, 4vh, 48px);
  opacity: 0; transition: opacity .32s var(--ease);
}
.modal.is-open { opacity: 1; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(253, 252, 249, .9);
  -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1);
}
.modal__panel {
  position: relative; z-index: 1; width: min(1180px, 100%); max-height: 100%;
  overflow: auto; overscroll-behavior: contain;
  display: grid; gap: 28px;
  /* 2026-11-27：行の高さを中身の高さで固定する（縮ませない）。
     画面の枠（.modal__frame）は overflow:hidden のため、グリッドの中では「縮んでよい」扱いになり、
     縦に低い画面（Windows の表示倍率125〜150%など）で、行だけが縮んで、枠が説明欄に重なっていた。
     入りきらない時は、パネルの中を縦にスクロールする（overflow:auto） */
  grid-template-rows: max-content; grid-auto-rows: max-content; align-content: start;
  transform: translateY(18px); transition: transform .6s var(--ease-out), opacity .18s var(--ease);
  scrollbar-width: thin;
}
.modal.is-open .modal__panel { transform: none; }
.modal__panel.is-swap { opacity: 0; }
.modal__frame { position: relative; overflow: hidden; background: var(--screen); border-radius: 20px; box-shadow: 0 50px 100px -60px rgba(36, 70, 31, .7); }
.modal__video { width: 100%; height: 100%; object-fit: contain; background: var(--screen); }
/* 全作品から「取り出して開く」時（js/ui/works.js の openFrom）：パネルは最終の位置・動きなしにし、画面の枠は「飛ぶ絵」が着くまで透明にしておく */
.modal__frame { transition: opacity .3s var(--ease); }
.modal.is-flip .modal__panel { transition: none; transform: none; }
.modal.is-flip .modal__frame { opacity: 0; transition: none; }
.modal[data-orient='h'] .modal__frame { justify-self: center; width: min(100%, calc((100dvh - 350px) * 16 / 9)); min-width: min(100%, 520px); aspect-ratio: 16 / 9; }
.modal[data-orient='h'] .modal__info { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 16px clamp(28px, 4vw, 64px); align-items: start; }
.modal[data-orient='h'] .modal__navs { grid-column: 1 / -1; }
.modal[data-orient='v'] .modal__panel { width: auto; max-width: 100%; grid-template-columns: auto minmax(0, 420px); align-items: center; justify-content: center; gap: clamp(32px, 5vw, 80px); }
.modal[data-orient='v'] .modal__frame { height: min(calc(100dvh - 150px), 860px); aspect-ratio: 9 / 16; border-radius: 36px; border: 7px solid var(--screen); }
.modal[data-orient='v'] .modal__info { display: flex; flex-direction: column; gap: 22px; }
.modal__counter { font-family: var(--f-serif); font-weight: 500; font-size: 17px; letter-spacing: .12em; color: var(--sub); margin-bottom: 12px; font-variant-numeric: lining-nums; }
.modal__label { font-family: var(--f-en); font-weight: 500; font-size: 10.5px; letter-spacing: .28em; color: var(--mint-ink); margin-bottom: 8px; }
.modal__title { font-family: var(--f-min); font-weight: 500; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.4; letter-spacing: .06em; white-space: pre-line; }
.modal__desc { font-size: 14.5px; line-height: 2.05; margin-bottom: 20px; white-space: pre-line; } /* 説明文の中の改行をそのまま見せる */
.modal__facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; align-items: baseline; }
.modal__k { font-family: var(--f-en); font-weight: 500; font-size: 10px; letter-spacing: .26em; color: var(--sub); }
.modal__roles { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.modal__roles li { padding: 4px 11px; border-radius: 999px; background: var(--mint-pale); color: var(--mint-ink); font-size: 12px; line-height: 1.5; }
.modal__meta { font-family: var(--f-en); font-weight: 500; font-size: 12.5px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.modal__navs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.modal__nav {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 260px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font-size: 12.5px; line-height: 1.3; transition: border-color .3s, transform .4s var(--ease-out);
}
.modal__nav:hover { border-color: var(--mint-d); }
.modal__nav > span:not(.modal__nav-t) { font-family: var(--f-en); }
.modal__nav-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal__close {
  position: absolute; z-index: 2; top: calc(var(--safe-t) + 16px); right: 16px;
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font-family: var(--f-en); font-weight: 500; font-size: 10.5px; letter-spacing: .26em;
}
.modal__close > span:first-child { position: relative; width: 14px; height: 14px; }
.modal__close > span:first-child::before, .modal__close > span:first-child::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: currentColor;
  transform: rotate(45deg);
}
.modal__close > span:first-child::after { transform: rotate(-45deg); }
.modal__close:hover { border-color: var(--mint-d); }

/* ---------------------------------------------------------------- フィルムの粒子 */
.grain {
  position: fixed; inset: -60%; z-index: 95; pointer-events: none;
  opacity: .065; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .27 0 0 0 0 .12 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain 1.1s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ================================================================
   深緑のエリア（自己紹介から下の全部）  2026-11-21 追加
   しほPVの冒頭の緑より、深い緑。細い輪・点の格子・光のすじ・小さな星で、奥ゆきと品を出す。
   色はここでまとめて上書きする（並べ方は、それぞれの場所で決めている）。
   暗い美術館・赤・金は使わない（参考サイトと同じにしない）。差し色はレモンとミントだけ。
   ================================================================ */
.deep {
  /* この中だけ、文字と線の色を明るい色に入れかえる */
  --ink: #f4f0e6;
  --sub: rgba(244, 240, 230, .62);
  --line: rgba(244, 240, 230, .15);
  --d-ink: #f4f0e6;
  --d-soft: rgba(244, 240, 230, .86);
  --d-mint: #bfe8b6;
  --d-num: linear-gradient(180deg, #fffef2 0%, #f1ec98 100%);
  --d-card: linear-gradient(155deg, rgba(255, 255, 255, .085) 0%, rgba(255, 255, 255, .03) 50%, rgba(255, 255, 255, .018) 100%);
  --d-r: clamp(28px, 4vw, 64px); /* 上の角の丸み */
  position: relative; isolation: isolate;
  color: var(--d-ink);
  background:
    radial-gradient(rgba(244, 240, 230, .075) 1px, rgba(244, 240, 230, 0) 1.6px) 0 0 / 30px 30px,
    radial-gradient(1100px 740px at 94% 120px, rgba(47, 143, 99, .42), rgba(47, 143, 99, 0) 62%),
    radial-gradient(900px 660px at 0% 26%, rgba(31, 122, 85, .30), rgba(31, 122, 85, 0) 60%),
    radial-gradient(1000px 720px at 100% 52%, rgba(47, 143, 99, .24), rgba(47, 143, 99, 0) 62%),
    radial-gradient(900px 660px at 4% 78%, rgba(31, 122, 85, .24), rgba(31, 122, 85, 0) 60%),
    linear-gradient(180deg, #0b2319 0%, #0e2b20 46%, #081b14 100%);
}
/* 上の左右の角を丸く見せる（紙の色の小さな三角を、角にのせる。入れ物そのものは切り取らない）
   ※とても縦に長い入れ物に、角丸の切り取りやマスクを掛けると、スマホで下のほうが描かれなくなるため */
.deep::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--d-r); z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 100% 100%, rgba(253, 252, 249, 0) calc(var(--d-r) - .6px), var(--deep-corner, var(--paper)) var(--d-r)) 0 0 / var(--d-r) var(--d-r) no-repeat,
    radial-gradient(circle at 0 100%, rgba(253, 252, 249, 0) calc(var(--d-r) - .6px), var(--deep-corner, var(--paper)) var(--d-r)) 100% 0 / var(--d-r) var(--d-r) no-repeat;
}
/* 潜る一覧の時は、すぐ上がいちばん深い水の色なので、角もその色にする */
html.has-dive { --deep-corner: #06140e; }
.deep .sec { background: none; }
.deep .sec--about { overflow: clip; } /* 輪のかざりが、上の紙のエリアへはみ出さないように */
.deep :focus-visible { outline-color: var(--lemon); }

/* ---- 模様：細い輪（まん中の1本だけレモン色で、小さな光が輪の上を回る） ---- */
.orbit { position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1; }
.orbit::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle closest-side, rgba(191, 232, 182, 0) 0 calc(7% - 1px), rgba(191, 232, 182, .2) calc(7% - 1px) 7%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 20%, #000 44%, rgba(0, 0, 0, .3) 80%, transparent 100%);
  mask: radial-gradient(circle closest-side, transparent 20%, #000 44%, rgba(0, 0, 0, .3) 80%, transparent 100%);
}
.orbit i { position: absolute; inset: 22%; border-radius: 50%; border: 1px solid rgba(255, 244, 79, .45); animation: orbit-spin var(--orbit-dur, 34s) linear infinite; }
.orbit i::after {
  content: ''; position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin: -4.5px 0 0 -4px; border-radius: 50%;
  background: var(--lemon); box-shadow: 0 0 14px 4px rgba(255, 244, 79, .55);
}
.orbit--about { right: -300px; top: -230px; width: 960px; }
.orbit--services { left: -380px; bottom: -280px; width: 900px; }
.orbit--services i { animation-direction: reverse; --orbit-dur: 48s; }
.orbit--tools i { --orbit-dur: 41s; }
.orbit--tools { right: -340px; top: -120px; width: 820px; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
/* 「プロフィール」「AIツールについて」の見出しの右の輪（2026-11-21）：
   見る人がその場所へ来た時に、光が「左下」から回りはじめるようにする（来た時に、光が右の見えない側にいると もったいないため）。
   --orbit-from ＝ 光のはじめの位置（真上が 0、時計回りに1周で 1。左下は 0.625。少し手前の 0.61 から始めて、左下を通らせる）。
   js/ui/sections.js の setupOrbits が、.is-wait（左下で止まって待つ）と .is-live（回りだす）を付ける。
   画面の外へ出たら、また左下へ戻って待つ。.orbit__start は「光のはじめの位置」に置いた、見えない目印 */
.orbit--about i, .orbit--tools i { animation-delay: calc(var(--orbit-dur, 34s) * var(--orbit-from, .61) * -1); }
.orbit.is-wait i { animation-play-state: paused; }
.orbit.is-wait.is-live i { animation-play-state: running; }
.orbit__start { position: absolute; left: 30.2%; top: 69.8%; width: 2px; height: 2px; pointer-events: none; }
/* ---- 模様：ななめに走る光のすじ ---- */
.streak {
  position: absolute; z-index: -1; pointer-events: none; height: 1px; width: min(44vw, 600px);
  background: linear-gradient(90deg, rgba(255, 244, 79, 0), rgba(255, 244, 79, .75) 78%, #fffef0);
  transform: rotate(-13deg); transform-origin: 100% 50%;
  filter: drop-shadow(0 0 6px rgba(255, 244, 79, .7));
}
.streak::after {
  content: ''; position: absolute; right: -7px; top: -7px; width: 15px; height: 15px; background: #fffef0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.streak--services { right: 6%; top: clamp(70px, 9vw, 130px); }
.streak--process {
  left: 3%; top: clamp(40px, 5vw, 80px); width: min(30vw, 380px); transform: rotate(9deg) scaleX(-1); opacity: .7;
  animation: streak-glide 17s linear infinite; will-change: transform, opacity;
}
/* 「制作の流れ」の見出しの右の流れ星（2026-11-21）：星を先頭にして、左へ ゆっくり まっすぐ進む。
   うすく現れ → 同じ速さで進み → うすく消え → 少し休んで、また右から。進む向きは、すじの向きと同じ（ほんの少しだけ右下がり）。
   進む長さは、すじの長さの約1.3倍。速さを変える時は 17s を、長さを変える時は -62% と 68% を変える */
@keyframes streak-glide {
  0% { transform: rotate(9deg) scaleX(-1) translateX(-62%); opacity: 0; }
  10% { opacity: .7; }
  72% { opacity: .7; }
  86%, 100% { transform: rotate(9deg) scaleX(-1) translateX(68%); opacity: 0; }
}
/* ---- 模様：小さな星 ---- */
.spark {
  position: absolute; z-index: -1; pointer-events: none; width: 14px; height: 14px; background: var(--lemon);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: spark-twinkle 4.6s ease-in-out infinite;
}
.spark--a { left: 46%; top: clamp(54px, 7vw, 100px); }
.spark--b { right: 5%; top: 46%; width: 10px; height: 10px; animation-delay: 1.4s; }
.spark--c { left: 3.5%; bottom: 14%; width: 11px; height: 11px; animation-delay: 2.6s; }
@keyframes spark-twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }

/* ---- 見出し ---- */
.deep .eyebrow__no { border-color: rgba(191, 232, 182, .4); color: var(--d-mint); }
.deep .sec__head { align-items: flex-end; padding-bottom: clamp(22px, 2.4vw, 32px); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 3.4vw, 48px); }
.deep .sec__lead { color: var(--sub); }

/* ---- 自己紹介 ---- */
/* 「しほ」だけ、白からあわいレモン色へ（ほかの文字と差を付ける） */
.deep .about__name-ja {
  background: linear-gradient(180deg, #ffffff 18%, #f6f1ac 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 244, 79, .18));
}
.deep .about__rule { opacity: 1; background: linear-gradient(90deg, rgba(255, 250, 190, .95) 0%, rgba(244, 240, 230, .5) 40%, rgba(244, 240, 230, .14) 100%); }
.deep .about__role { color: var(--d-mint); }
.deep .about__lead { color: #f3ee9c; }
.deep .about__body p { color: var(--d-soft); }
.deep .about__note { color: var(--sub); opacity: 1; border-left-color: rgba(191, 232, 182, .5); }

/* ---- 実績の数字 ---- */
.deep .stats { margin-top: clamp(52px, 6vw, 88px); }
.deep .stat__v { color: var(--d-mint); }
.deep .stat__num { background: var(--d-num); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }

/* ---- ご依頼いただけること ---- */
.deep .svc {
  background: var(--d-card); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 40px 70px -50px rgba(0, 0, 0, .8);
}
.deep .svc::before { /* 右上の、細い輪のかざり */
  content: ''; position: absolute; z-index: -1; right: -86px; top: -86px; width: 230px; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle closest-side, rgba(191, 232, 182, 0) 0 calc(25% - 1px), rgba(191, 232, 182, .2) calc(25% - 1px) 25%);
  transition: transform 1.2s var(--ease-out);
}

.deep .svc:hover::before { transform: scale(1.14); }
.deep .svc__no { background: var(--d-num); -webkit-background-clip: text; background-clip: text; color: transparent; }
.deep .svc__text { color: var(--d-soft); }
.deep .svc__tags li { background: rgba(152, 216, 143, .11); color: var(--d-mint); border: 1px solid rgba(152, 216, 143, .28); }

/* ---- 制作の流れ ---- */
.deep .edit {
  background: var(--d-card); border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 50px 90px -60px rgba(0, 0, 0, .85);
}
.deep .edit__bar { background: rgba(0, 0, 0, .24); border-bottom-color: var(--line); }
.deep .edit__tc { color: var(--lemon); }
.deep .edit__ruler { background: repeating-linear-gradient(90deg, rgba(244, 240, 230, .22) 0 1px, transparent 1px 2%) 0 100% / 100% 7px no-repeat; }
.deep .edit__head { background: var(--lemon); box-shadow: 0 0 10px rgba(255, 244, 79, .6); }
.deep .edit__head::before { border-color: #0b2319; }
.deep .clip__bar { background: rgba(255, 255, 255, .05); }
.deep .clip.is-lit .clip__bar { box-shadow: 0 12px 26px -14px rgba(152, 216, 143, .7); }

/* ---- AIツールについて ---- */
.deep .tool {
  background: var(--d-card); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 34px 60px -46px rgba(0, 0, 0, .82);
}
.deep .tool--lead {
  background: linear-gradient(140deg, rgba(152, 216, 143, .22) 0%, rgba(95, 191, 159, .09) 48%, rgba(255, 255, 255, .02) 100%);
  border-color: rgba(191, 232, 182, .36);
}

.deep .tool__no { color: var(--d-mint); }
.deep .tool__use { color: var(--d-mint); background: rgba(152, 216, 143, .1); border: 1px solid rgba(152, 216, 143, .3); }
.deep .tool__text { color: var(--sub); }
.deep .tool__mark { color: rgba(244, 240, 230, .06); }
.deep .tool--lead .tool__mark { color: rgba(244, 240, 230, .09); }

/* ---- お問い合わせ・フッター ---- */
.deep .contact__text { color: var(--d-soft); }
.deep .contact__hint { color: var(--sub); }
.deep .foot { border-top-color: var(--line); color: var(--d-ink); text-shadow: 0 1px 10px rgba(8, 27, 20, .95), 0 0 2px rgba(8, 27, 20, .8); }
.deep .foot__copy { color: var(--d-soft); }

/* ---- お問い合わせ欄だけ、明るい空の色（2026-11-27 ユーザーの指示「ヘッドの背景と同じような明るい色に」） ----
   冒頭の空と同じ：上がセージミント〜うすいミント、下（水平線のほう）がレモンがかった白。夜明けの空のように。
   深緑のエリアの最後に、上の角が丸い明るい板が始まる（角のうしろには深緑が見える）。
   文字と線の色は、.deep で明るい色に入れかえてあるので、ここで元の濃い色に戻す */
.deep .sec--contact {
  --ink: #2f2c26;
  --sub: #7a7468;
  --line: #e6dfd0;
  --d-soft: #4a463d;
  color: var(--ink);
  background: var(--sky);
  border-radius: var(--d-r) var(--d-r) 0 0;
  box-shadow: 0 -30px 80px -40px rgba(169, 207, 198, .35); /* 板のふちが、深緑の中で ほのかに明るむ */
}
.deep .sec--contact :focus-visible { outline-color: var(--mint-ink); }
.deep .sec--contact .eyebrow__no { border-color: rgba(36, 70, 31, .22); color: var(--mint-ink); }
.deep .sec--contact .contact__heading { color: var(--mint-ink); }
.deep .sec--contact .contact__text { color: var(--d-soft); }
.deep .sec--contact .foot { border-top-color: rgba(36, 70, 31, .16); color: var(--mint-ink); text-shadow: none; }
.deep .sec--contact .foot__copy { color: var(--sub); }
/* のぼる光：明るい空の上では、レモンの輪は見えにくいので、白い輪と、水平線の白いにじみにする */
.deep .sec--contact .contact__sun {
  background: repeating-radial-gradient(circle closest-side, rgba(255, 255, 255, 0) 0 calc(4% - 1px), rgba(255, 255, 255, .7) calc(4% - 1px) 4%);
}
.deep .sec--contact .contact__glow {
  background: radial-gradient(circle closest-side, rgba(255, 253, 236, .95) 0 52%, rgba(255, 249, 214, .6) 70%, rgba(255, 251, 208, .22) 86%, rgba(255, 251, 208, 0) 100%);
}
/* 案内人のうしろの光は白く、足もとの影は、うすい緑がかった影に */
.deep .sec--contact .contact__guide::before {
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, .62) 0%, rgba(255, 253, 236, .26) 48%, rgba(255, 253, 236, 0) 100%);
}
.deep .sec--contact .contact__guide::after { background: radial-gradient(closest-side, rgba(36, 70, 31, .3), rgba(36, 70, 31, 0)); }

/* お問い合わせフォームへのバナー（2026-11-27）：LINEのバナーと同じ横長の形のまま、サイトの基本のボタンと同じ家族の色
   （ミントのグラデーション＋濃い緑の文字＋内側の白い細線） */
.linebar--form {
  color: var(--mint-ink);
  background: linear-gradient(180deg, #a6e09d 0%, #98d88f 55%, #8acd80 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .06), 0 16px 30px -18px rgba(36, 70, 31, .6);
}
.linebar--form:hover {
  filter: brightness(1.04);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .06), 0 22px 38px -20px rgba(36, 70, 31, .65);
}
.linebar--form::before { border-color: rgba(255, 255, 255, .85); }
.linebar--form::after { background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); }
.linebar--form .linebar__ic { background: rgba(255, 255, 255, .3); border-color: rgba(255, 255, 255, .95); color: var(--mint-ink); }
.linebar--form .linebar__txt { font-weight: 700; }
.linebar--form .linebar__spark { background: #fff; }
.linebar--form:hover .linebar__go { transform: translateX(4px); }

/* ---- 深緑のエリアに重なっている時のヘッダー ---- */
.site-head.on-deep {
  color: #f4f0e6;
  background: rgba(8, 27, 20, .74);
  box-shadow: 0 1px 0 rgba(244, 240, 230, .1);
}

/* =====================================================================
   出現の動き（スクロールして、画面に入った時）  2026-11-21 作り直し
   ユーザーの指定：お手本 https://yamaguchi-shoshi-preview.pages.dev/ と同じ
   「ゆっくり、上品に、下からスライドイン」。
   ・動きは1種類だけ：下から 72px、1秒かけて、ゆるやかに止まる。となり合う物は 0.11秒ずつ遅らせる
     （数字は :root の --reveal-shift / --reveal-dur / --reveal-step / --ease-reveal。お手本と同じ値）
   ・1文字ずつ出す・幕が開く・左右から入る・起き上がる・ぽんと出る、などの細かい動きは使わない
     （一度付けたが、ユーザーが「ちゃきちゃきして違う」と不採用にした）
   しくみ：
   ・JS（js/ui/sections.js の setupReveal）が html に .motion を付け、画面に入った要素へ .is-in を付ける
   ・動きが終わったら data-reveal を外す（js/ui/util.js の markIn）。再生は1回だけ
   ・.motion が付いていない時（JSが動かない・「動きを減らす」設定）は、最初から全部見える
   ・切り取り（clip-path）で隠すことはしない
     （ブラウザによっては「画面に入った」と判定されず、LINEのバナーが出ないままになったため）
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.motion [data-reveal] {
    opacity: 0; transform: translateY(var(--reveal-shift));
    transition: opacity var(--reveal-dur) var(--ease-reveal), transform var(--reveal-dur) var(--ease-reveal);
    transition-delay: calc(var(--i, 0) * var(--reveal-step));
  }
  html.motion [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---- カードの光：マウスを乗せると、マウスの位置にやわらかい光がつき、カードが少し浮く（js/ui/sections.js の setupCardLight） ---- */
.deep .svc::after, .deep .tool::after {
  content: ''; position: absolute; inset: 0; width: auto; height: auto; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(440px circle at var(--mx, 82%) var(--my, 0%), rgba(255, 244, 79, .15), rgba(255, 244, 79, 0) 62%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.deep .svc:hover::after, .deep .tool:hover::after { opacity: 1; }
.svc.is-done, .tool.is-done { transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .5s var(--ease); }
.svc.is-done:hover, .tool.is-done:hover { transform: translateY(-4px); }
.deep .svc.is-done:hover { border-color: rgba(255, 244, 79, .46); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 46px 76px -48px rgba(0, 0, 0, .88); }
.deep .tool.is-done:hover { border-color: rgba(255, 244, 79, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 40px 66px -44px rgba(0, 0, 0, .88); }

/* ---------------------------------------------------------------- お問い合わせフォームのページ（contact.html） */
/* 2026-11-27 追加。背景は、お問い合わせ欄と同じ明るい空（--sky）。3Dは読み込まない。
   白いすりガラスふうの大きなカードの中にフォーム。しくみは js/contact.js、文字は js/data.js の FORM */
.fpage-body { background: #fffbd0; }
.fpage {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--sky);
  padding-top: calc(var(--safe-t) + clamp(104px, 11vw, 150px));
}
.fpage__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fpage__sky .contact__sun {
  background: repeating-radial-gradient(circle closest-side, rgba(255, 255, 255, 0) 0 calc(4% - 1px), rgba(255, 255, 255, .7) calc(4% - 1px) 4%);
}
.fpage__sky .contact__glow {
  background: radial-gradient(circle closest-side, rgba(255, 253, 236, .95) 0 52%, rgba(255, 249, 214, .6) 70%, rgba(255, 251, 208, .22) 86%, rgba(255, 251, 208, 0) 100%);
}
.fpage__wrap { flex: 1 0 auto; max-width: 880px; padding-bottom: clamp(72px, 9vw, 120px); }
.fpage__eyebrow { justify-content: center; margin-bottom: 18px; }
.fpage__eyebrow .eyebrow__no { border-color: rgba(36, 70, 31, .22); }
.fpage__foot { margin-top: 0; }
.fpage__foot .foot { border-top-color: rgba(36, 70, 31, .16); color: var(--mint-ink); }
.fpage__foot .foot__copy { color: var(--sub); }

/* 進みぐあい：入力 → 確認 → 完了（小さく） */
.fsteps {
  list-style: none; padding: 0; margin: 0 auto clamp(22px, 2.6vw, 32px);
  display: flex; justify-content: center; align-items: center; gap: 0;
  font-family: var(--f-goth); font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--sub);
}
.fsteps__i { display: inline-flex; align-items: center; gap: 8px; }
.fsteps__i + .fsteps__i::before { /* あいだの細い線 */
  content: ''; width: clamp(22px, 5vw, 48px); height: 1px; margin: 0 clamp(10px, 1.6vw, 16px); background: rgba(36, 70, 31, .25);
}
.fsteps__n {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(36, 70, 31, .25); background: rgba(255, 255, 255, .5);
  font-family: var(--f-serif); font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1; font-variant-numeric: lining-nums;
}
.fsteps__i.is-on { color: var(--mint-ink); font-weight: 700; }
.fsteps__i.is-on .fsteps__n { background: var(--mint-ink); border-color: var(--mint-ink); color: #fff; }
.fsteps__i.is-past { color: var(--mint-ink); }
.fsteps__i.is-past .fsteps__n { background: var(--mint-pale); border-color: rgba(36, 70, 31, .35); }

/* カード：白いすりガラスふう（backdrop-filter は使わない） */
.fcard {
  background: rgba(253, 252, 249, .9);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 80px -50px rgba(36, 70, 31, .45), 0 2px 10px -4px rgba(36, 70, 31, .08);
  padding: clamp(28px, 5vw, 64px) clamp(20px, 6vw, 76px) clamp(32px, 5vw, 64px);
}
.fcard__noscript { text-align: center; font-size: 16px; line-height: 2; color: var(--ink); }
.fview__title {
  font-family: var(--f-min); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.4; letter-spacing: .08em;
  color: var(--mint-ink); text-align: center; margin-bottom: 14px;
}
/* 画面を切りかえた時に、見出しへフォーカスを移す（読み上げのため）。見出しは押す物ではないので、枠線は出さない */
.fview__title:focus, .fview__title:focus-visible { outline: none; }
.fview__lead { text-align: center; font-size: 15px; line-height: 2; color: #4a463d; margin-bottom: clamp(28px, 3.6vw, 44px); text-wrap: pretty; }

/* 欄 */
.fform { display: grid; gap: clamp(22px, 2.6vw, 28px); }
.ffield { display: grid; gap: 9px; }
.ffield__label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; color: var(--ink); }
.ffield__tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px 1px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1;
}
.ffield__tag.is-req { background: var(--mint-ink); color: #fff; }
.ffield__tag.is-opt { background: transparent; color: var(--sub); border: 1px solid #d6cfbf; }
.ffield__input {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid #ddd5c5; border-radius: 10px; background: #fff; color: var(--ink);
  font-family: var(--f-goth); font-size: 16px; line-height: 1.6; letter-spacing: .03em;
  box-shadow: inset 0 1px 2px rgba(47, 44, 38, .04);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
textarea.ffield__input { min-height: 200px; resize: vertical; line-height: 1.8; }
.ffield__input::placeholder { color: #aaa293; opacity: 1; }
.ffield__input:hover { border-color: #c9c0ad; }
.ffield__input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(152, 216, 143, .45); }
.ffield.is-invalid .ffield__input { border-color: #b5675a; background: #fffaf8; }
.ffield.is-invalid .ffield__input:focus { box-shadow: 0 0 0 3px rgba(181, 103, 90, .2); }
.ffield__err { display: flex; align-items: flex-start; gap: 7px; font-size: 14px; line-height: 1.6; color: #9a4a3e; font-weight: 500; }
.ffield__err::before { content: '!'; flex: none; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-top: 3px; border-radius: 50%; background: #9a4a3e; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
/* 迷惑送信よけの欄（人には見えない。display:none にはしない＝機械に見つけさせる） */
.fhp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ボタン */
.fbtns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: clamp(12px, 2vw, 20px); }
.fbtn { min-height: 56px; min-width: 240px; padding: 0 34px; font-size: 15px; letter-spacing: .16em; }
.fbtn:disabled { cursor: default; opacity: .6; transform: none; }
.fbtn__ar { font-family: var(--f-en); font-weight: 500; transition: transform .45s var(--ease-out); }
.fbtn:hover .fbtn__ar { transform: translateX(3px); }
.fbtn--back { background: #fff; color: var(--mint-ink); border: 1px solid #d6cfbf; box-shadow: 0 10px 22px -16px rgba(36, 70, 31, .4); }
.fbtn--back:hover { border-color: var(--mint-d); }
.fbtns--confirm { margin-top: clamp(28px, 3.4vw, 40px); }
.fbtns--done { margin-top: clamp(30px, 3.6vw, 44px); }

/* 確認の表 */
.fconf { margin: 0; border-top: 1px solid var(--line); }
.fconf__row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px 28px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.fconf__k { font-size: 14px; font-weight: 700; color: var(--mint-ink); letter-spacing: .06em; line-height: 1.8; }
.fconf__v { margin: 0; font-size: 16px; line-height: 1.85; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.fconf__v.is-blank { color: var(--sub); }
.fview__alert {
  margin-top: 24px; padding: 14px 18px; border-radius: 10px;
  background: #fbf0ec; border: 1px solid #e7c4bb; color: #8a3f34; font-size: 15px; line-height: 1.8; font-weight: 500;
}

/* 完了 */
.fview--done { text-align: center; }
.fview__check { /* 丸の中のチェック */
  display: grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 20px; border-radius: 50%;
  background: var(--grad-mint); box-shadow: 0 14px 28px -16px rgba(36, 70, 31, .55);
}
.fview__check::after { content: ''; width: 22px; height: 12px; margin-top: -5px; border-left: 2.5px solid var(--mint-ink); border-bottom: 2.5px solid var(--mint-ink); transform: rotate(-45deg); }
.fview__done-text { display: grid; gap: 4px; font-size: 16px; line-height: 2.1; color: #4a463d; }
/* 送信のしくみが無い間の、注意の帯（はっきり見えるように、カードの上に） */
.fview__preview {
  margin: 0 0 clamp(26px, 3vw, 36px); padding: 14px 18px; border-radius: 10px; text-align: left;
  background: #fff6d0; border: 1px solid #e3c66a; color: #5d4a0e; font-size: 14.5px; line-height: 1.8; font-weight: 700;
  display: flex; gap: 10px; align-items: flex-start;
}
.fview__preview::before { content: '注意'; flex: none; padding: 2px 8px; margin-top: 2px; border-radius: 4px; background: #5d4a0e; color: #fff6d0; font-size: 11.5px; letter-spacing: .1em; line-height: 1.6; }

@media (max-width: 760px) {
  .fpage { padding-top: calc(var(--safe-t) + 92px); }
  .fpage__wrap { padding-inline: 14px; }
  .fcard { padding: 28px 18px 32px; border-radius: 20px; }
  .fview__lead { text-align: left; font-size: 15px; }
  .fsteps { font-size: 12px; letter-spacing: .06em; }
  .fbtns { flex-direction: column-reverse; align-items: stretch; }
  .fbtn { width: 100%; min-width: 0; min-height: 54px; }
  .fconf__row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 2px; }
}

/* ---------------------------------------------------------------- 画面幅ごとの調整 */
@media (max-width: 1180px) {
  .hud__timeline { width: min(40vw, 520px); }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__visual { max-width: 640px; }
  .edit__track { gap: 4px; }
  .clip__bar { padding: 0 10px; }
}

/* 縦長の画面（縦横比 < 1。3Dの世界と同じしきい値） */
@media (max-aspect-ratio: 999/1000) {
  .fallback { --hz: 55%; }
  .fb-screen[data-orient='h'] .fb-screen__face { width: min(86vw, 40vh * 16 / 9); }
  .fb-screen[data-orient='v'] .fb-screen__face { height: min(42vh, 74vw * 16 / 9); }
  .fb-screen { top: calc(var(--hz) - 1.5vh); transform: translate(calc(-50% - var(--d) * 90vw), -100%) scale(calc(.92 + var(--vis) * .08)); }
  .fb-screen-shadow { width: 60vw; transform: translateX(calc(-50% - var(--d) * 90vw)); }
  .fb-mark { top: calc(var(--hz) + 7vh); transform: translateX(calc(-50% - var(--d) * 90vw)) scaleY(.42); }

  /* HUD はタイムコードとタイムラインだけ */
  .hud__rec, .hud__br, .hud__meta, .tl__no { display: none; }
  .hud__bl { left: 20px; bottom: calc(var(--safe-b) + 70px); }
  .hud__tc { font-size: 12px; letter-spacing: .1em; }
  .hud__timeline { left: 12px; right: 12px; width: auto; bottom: calc(var(--safe-b) + 14px); transform: none; gap: 6px; }
  .tl__track { height: 44px; }
  .hud__corners i { width: 18px; height: 18px; }

  /* 冒頭：見出しは右上、文章は左下（横5〜60%・縦62〜88%） */
  .hero__tagline { right: 18px; top: calc(var(--safe-t) + 92px); font-size: clamp(36px, min(10.4vw, 6vh), 52px); --ls: .12em; }
  .hero__copy { left: 5vw; bottom: max(12vh, calc(var(--safe-b) + 100px)); max-width: 55vw; }
  .hero__label { font-size: 9.5px; letter-spacing: .16em; margin-bottom: 14px; gap: 10px; }
  .hero__label::before { width: 16px; }
  .hero__lead { font-size: 13px; line-height: 2; letter-spacing: .05em; margin-bottom: 20px; }
  .hero__name { display: none; }
  .hero .btn { min-height: 48px; padding: 7px 7px 7px 20px; gap: 12px; font-size: 13px; }

  /* 説明カード：画面の下に小さくまとめる（上端は H-290px より下） */
  .scene-card[data-side='bottom'] {
    left: 14px; right: 14px; width: auto; top: auto; bottom: calc(var(--safe-b) + 100px); transform: none;
    max-height: 186px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center;
    padding: 15px 14px 15px 20px; border-radius: 24px;
  }
  .scene-card[data-side='bottom'] .ln { grid-column: 1; }
  .scene-card[data-side='bottom'] .ln:nth-child(1) { grid-column: 1 / -1; }
  .scene-card[data-side='bottom'] .ln:nth-child(5) { grid-column: 2; grid-row: 2 / span 3; align-self: center; }
  .scene-card[data-side='bottom'] .sc-card__eyebrow { margin-bottom: 6px; font-size: 10px; letter-spacing: .16em; }
  .scene-card[data-side='bottom'] .sc-card__title { font-size: clamp(20px, 5.6vw, 24px); line-height: 1.32; margin-bottom: 4px; }
  .scene-card[data-side='bottom'] .sc-card__sub { font-size: 12.5px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .scene-card[data-side='bottom'] .sc-card__meta { font-size: 10px; letter-spacing: .12em; }
  .scene-card[data-side='bottom'] .sc-card__actions { padding: 6px; margin: 0; }
  .scene-card[data-side='bottom'] .ln:nth-child(5) { clip-path: none; overflow: visible; }
  .scene-card[data-side='bottom'] .btn--play { width: 56px; height: 56px; min-height: 0; padding: 0; gap: 0; justify-content: center; border-radius: 50%; }
  .scene-card[data-side='bottom'] .btn__ar { width: 42px; height: 42px; }
  .scene-card[data-side='bottom'] .sc-card__title.is-long, .scene-card[data-side='bottom'] .sc-card__title.is-mid { font-size: clamp(17px, 4.8vw, 21px); }
  .scene-card[data-side='bottom'] .btn__txt {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* 潜る一覧：縦長の画面。札は小さめ、水深計は細く右へ、タブは横に流せる1行（js の GAUGE_W_P と合わせる） */
@media (max-aspect-ratio: 999/1000) {
  .dive__top { display: contents; }
  .dive__label { position: absolute; left: 18px; top: calc(var(--safe-t) + 78px); gap: 10px; font-size: 9.5px; letter-spacing: .22em; }
  .dive__label-ja, .dive__label-n { font-size: 12px; }
  .gauge { right: 0; width: auto; align-items: flex-end; padding-right: 3px; }
  .gauge__line { width: 20px; }
  .gauge__tick { left: -8px; }
  .gauge__tick i { left: 18px; width: 7px; margin-left: -3.5px; }
  .dive__shade--bottom { display: block; }
  .gauge__k { font-size: 8.5px; letter-spacing: .2em; }
  .gauge__num { font-size: 10px; margin-bottom: 8px; }
  .gauge__line { --gl: 34vh; }
  .gauge__tip { display: none; }
  .dive .dive__filters { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 10px); padding: 0 18px; gap: 0 18px; border-bottom: 0; }
  .dive .chip { font-size: 14.5px; min-height: 44px; }
  .dive .chip__n { font-size: 10px; margin-top: 10px; }
  .dplate { padding: 12px 14px 10px; }
  .dplate__no { font-size: 21px; }
  .dplate__title { font-size: 14.5px; }
  .dplate__sub { font-size: 11px; }
  .dive__intro .sec__title { font-size: clamp(34px, 9vw, 48px); }
  .dive__beneath { font-size: 12px; letter-spacing: .3em; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .site-head { padding-left: 18px; padding-right: 10px; }
  .site-head { gap: 10px; }
  .brand { gap: 5px; }
  .brand__name { font-size: 23px; }
  .brand__concept { font-size: 8px; }
  .site-nav { gap: 0; flex: none; }
  .site-nav a { padding: 0 7px; font-size: 12px; letter-spacing: .04em; }
  .site-nav a::after { left: 7px; right: 7px; }


  /* 全作品：横長は棚いっぱい、縦長は2点ならび */
  .sec--index { --gv: 7px; --gh: 7px; --ledge: 40px; --face: 8px; --refl: 42px; }
  .shelf { --gap: 14px; --us: calc((100cqw - var(--gap)) / 2); --wh: 100cqw; margin-bottom: 56px; }
  .piece--h { width: 100cqw; }
  .piece__block { border-radius: 9px; }
  .piece__film { border-radius: 4px; }
  .piece__hit { border-radius: 9px; }
  .piece__play { width: 34px; height: 34px; right: calc(var(--glass) + 8px); bottom: calc(var(--glass) + 8px); opacity: .7; }
  .piece__play .btn__tri { border-left-width: 7px; border-top-width: 4.5px; border-bottom-width: 4.5px; margin-left: 2px; }
  .shelf__tag { font-size: 9px; letter-spacing: .24em; }
  .plate { padding-top: calc(var(--face) + 12px); }
  .plate__row { gap: 8px; padding-bottom: 8px; margin-bottom: 10px; }
  .plate__no, .piece--h .plate__no { font-size: 22px; }
  .plate__cat { font-size: 9px; letter-spacing: .12em; }
  .plate__title, .piece--h .plate__title { font-size: 14.5px; }
  .plate__sub { font-size: 11px; margin-top: 3px; }
  .plate__spec { font-size: 9.5px; gap: 7px; margin-top: 10px; letter-spacing: 0; }
  .plate__ratio { display: none; }
  .filters { gap: 0 18px; }
  .filters__k { width: 100%; margin: 4px 0 -4px; }
  .chip { font-size: 15.5px; min-height: 44px; }
  .chip__n { font-size: 10.5px; margin-top: 10px; }

  .about__note { font-size: 11.5px; }
  .about__name-ja { font-size: clamp(64px, 19vw, 84px); }
  .tool { border-radius: 20px; min-height: 178px; padding: 18px 16px 20px; --tool-lead: 38px; --tool-top: 26px; --tool-gap: 6px; }
  .tool__top { gap: 6px; }
  .tool__use { font-size: 10px; padding: 5px 8px; letter-spacing: .04em; white-space: normal; }
  .tool__name { font-size: 23px; }
  .tool__text { font-size: 12px; line-height: 1.8; }
  .orbit--about { right: -420px; top: -300px; width: 760px; }
  .orbit--services { left: -460px; width: 760px; }
  .orbit--tools { right: -430px; width: 700px; }
  .streak--process { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 12px 20px 0; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 18px; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat__num { font-size: 52px; }
  .stat__unit { font-size: 14px; }
  .stat__note { font-size: 12px; margin-top: 10px; }

  .svcs { grid-template-columns: minmax(0, 1fr); }
  .svc { padding: 28px 24px 30px; border-radius: 24px; }

  .edit { --lane: 0px; }
  .edit__bar { padding: 12px 18px; font-size: 9.5px; }
  .edit__area { padding: 0 16px 20px; }
  .edit__ruler, .edit__lane, .edit__head { display: none; }
  .edit__trackwrap { padding-top: 18px; }
  .edit__track { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .clip { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .clip:last-child { border-bottom: 0; }
  .clip__bar { height: auto; min-height: 58px; padding: 10px; align-self: start; }
  .clip__en { font-size: 9.5px; letter-spacing: .06em; white-space: normal; overflow: visible; }
  .clip__body { padding: 0; }
  .clip__title { font-size: 17px; margin-bottom: 4px; }

  .contact { --ch: clamp(30px, 9.4vw, 50px); }
  .contact__text br, .contact__hint br:nth-of-type(2) { display: none; } /* せまい画面では改行をやめて、自然に折り返す */
  .linebar { min-height: 66px; padding: 0 16px 0 14px; gap: 8px; }
  .linebar__ic { width: 36px; height: 36px; }
  .linebar__go { width: 32px; font-size: 19px; }
  .linebar__txt { font-size: 15.5px; letter-spacing: .14em; padding-left: .14em; }
  .foot { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 10px; }
  .foot__brand, .foot__copy, .foot__top { justify-self: center; }
  .foot__copy { font-size: 13.5px; letter-spacing: .05em; }

  .modal { padding: 76px 16px 20px; place-items: start center; }
  .modal__panel { gap: 20px; }
  .modal[data-orient='h'] .modal__frame { width: 100%; min-width: 0; }
  .modal[data-orient='h'] .modal__info { grid-template-columns: minmax(0, 1fr); }
  .modal[data-orient='v'] .modal__panel { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .modal[data-orient='v'] .modal__frame { justify-self: center; height: min(62dvh, 640px); border-radius: 28px; border-width: 5px; }
  .modal__nav { max-width: calc(50% - 5px); flex: 1; padding: 0 14px; }
  .modal__close { right: 12px; top: calc(var(--safe-t) + 14px); }
}

/* とても狭い画面：ヘッダーのコンセプト文はナビと重なるので隠す */
@media (max-width: 350px) {
  .brand__concept { display: none; }
  .site-head { padding-left: 14px; padding-right: 4px; gap: 6px; }
  .brand__name { font-size: 20px; }
  .site-nav a { padding: 0 5px; font-size: 11px; letter-spacing: 0; }
  .site-nav a::after { left: 5px; right: 5px; }
}

/* ---------------------------------------------------------------- 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .grain { animation: none; }
  .vault__air::after, .vault__orb { animation: none; }
  .vault__mote { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .dive__hint i { animation: none; }
}
