/* junota.gaip.jp — 太田 純のプロフィールページ。
   背景は Three.js の海（.stage）。文はその上に重ねる。
   html に付く印：js／fx（演出あり）／rm（視差効果を減らす）／is-open（幕が開いた）／is-opened（幕を片づけた）／
   is-enter（全画面の絵が消えて、ページが始まった）／
   has-stage（3D が動いている）／is-still（遅い端末で 3D を止めた）。
   サイトの CSP（style-src 'self'）のため、スタイルはこのファイルと CSSOM だけで書く。 */

@font-face { font-family: "Shippori Mincho"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/ShipporiMincho-600-subset.woff2?v=20261202b") format("woff2"); }
@font-face { font-family: "Shippori Mincho"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/ShipporiMincho-500-subset.woff2?v=20261202b") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 700; font-style: normal; font-display: swap; src: url("/assets/CormorantGaramond-subset.woff2?v=20261202b") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 700; font-style: italic; font-display: swap; src: url("/assets/CormorantGaramond-Italic-subset.woff2?v=20261202b") format("woff2"); }

:root {
  --ink: #04121c;
  --navy: #071d2b;
  --foam: #f5f0e6;
  --mist: rgba(245, 240, 230, 0.74);
  --faint: rgba(245, 240, 230, 0.5);
  --line: rgba(245, 240, 230, 0.16);
  --aqua: #8fe3f0;
  --teal: #2aa7b8;
  --gold: #e2c489;
  --glass: rgba(5, 26, 38, 0.62);
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --latin: "Cormorant Garamond", "Shippori Mincho", "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pad: clamp(20px, 5.6vw, 40px);
  --scroll: 0;
  --flash: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
html.rm { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--foam);
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
  /* 3D が出ないとき（WebGL なし・読み込み前）の背景：夜明けの海 */
  background: linear-gradient(180deg, #0c1c38 0%, #3a4a6e 30%, #c98f78 46%, #0f3246 47%, #071d2b 78%, #04121c 100%) fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
[data-disp] { font-weight: 500; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sp { display: inline; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

/* ---------- 背景 ---------- */
.stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; opacity: 0; transition: opacity 1.2s ease; }
.has-stage .stage { opacity: 1; }
.shade {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 18, 28, 0.5) 0%, rgba(4, 18, 28, 0) 22%, rgba(4, 18, 28, 0) 62%, rgba(4, 18, 28, 0.55) 100%);
}
.flash { position: fixed; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(circle at 60% 40%, #ffffff 0%, #e9fbff 45%, #bfeef5 100%); opacity: var(--flash); }
main, .foot { position: relative; z-index: 1; }
.wrap { width: min(100%, 1120px); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- 読み込みの幕 ---------- */
.loader { display: none; }
.fx .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 30;
  background: radial-gradient(120% 90% at 50% 110%, #0d3a4c 0%, #071d2b 46%, #04121c 100%);
  transition: transform 1.25s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s 1.3s;
}
.fx .loader::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 70px;
  background: #0d3a4c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,0H1200V24C1050,70 900,6 750,34C600,62 450,4 300,30C200,48 90,40 0,22Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,0H1200V24C1050,70 900,6 750,34C600,62 450,4 300,30C200,48 90,40 0,22Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.fx.is-open .loader { transform: translateY(calc(-100% - 80px)); visibility: hidden; }
.fx.is-opened .loader { display: none; }
.loader-in { text-align: center; transition: opacity 0.5s ease, transform 0.9s var(--ease); }
.fx.is-open .loader-in { opacity: 0; transform: translateY(-30px); }
.loader-mark { color: var(--aqua); width: 128px; height: 104px; margin: 0 auto 10px; display: block; }
.loader-mark { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.5s 0.15s var(--ease) forwards; }
.loader-name { font-family: var(--latin); font-weight: 500; font-size: 30px; letter-spacing: 0.42em; padding-left: 0.42em; line-height: 1.2; opacity: 0; animation: rise 0.9s 0.5s var(--ease) forwards; }
.loader-sub { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 16px; letter-spacing: 0.12em; color: var(--aqua); opacity: 0; animation: rise 0.9s 0.75s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 幕のあとに全画面で出す絵（押すと消えて、ページが始まる） ---------- */
.splash { display: none; }
.js .splash {
  display: block; position: fixed; inset: 0; z-index: 25; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: #04121c; overflow: hidden; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none;
  transition: opacity 0.9s ease, transform 1.3s var(--ease), visibility 0s 0.9s;
}
.js .splash.is-out { opacity: 0; transform: scale(1.06); visibility: hidden; pointer-events: none; }
.js .splash[hidden] { display: none; }
.splash:focus-visible { outline: none; }
.splash:focus-visible .splash-hint { outline: 2px solid var(--aqua); outline-offset: 3px; }
/* 縦長の画面：絵を画面いっぱいに（顔と手が残るように切る）。横長の画面：絵の全体を見せ、左右は ぼかした絵で埋める */
.splash-bg { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; max-width: none; object-fit: cover; filter: blur(26px) brightness(0.7) saturate(1.15); }
.splash-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 56% 30%; }
.fx .splash-img { transform: scale(1.1); transition: transform 7s cubic-bezier(0.16, 0.6, 0.3, 1); }
.fx.is-open .splash-img { transform: none; }
.splash-hint {
  position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: inline-flex; align-items: baseline; gap: 12px; padding: 10px 22px; border-radius: 999px;
  background: rgba(4, 18, 28, 0.64); border: 1px solid rgba(245, 240, 230, 0.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--foam); white-space: nowrap; line-height: 1.3;
}
.splash-hint-en { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: 21px; letter-spacing: 0.06em; }
.splash-hint-ja { font-family: var(--mincho); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; }
.fx .splash-hint { opacity: 0; transition: opacity 0.8s 1.5s ease; }
.fx.is-open .splash-hint { opacity: 1; animation: hint 2.6s 2.4s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }
@media (min-aspect-ratio: 3/4) {
  .splash-img { object-fit: contain; object-position: 50% 50%; filter: drop-shadow(0 0 60px rgba(2, 10, 16, 0.6)); }
}
/* 絵が出ているあいだは、後ろのページを動かさない */
.js:not(.is-enter), .js:not(.is-enter) body { overflow: hidden; }

/* ---------- 上の帯 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}
.topbar.is-scrolled { background: rgba(4, 18, 28, 0.62); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-family: var(--latin); font-style: italic; font-weight: 500; font-size: 22px; letter-spacing: 0.04em; line-height: 1; color: var(--foam); }
.brand svg { color: var(--aqua); flex: none; }
.topbar-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid rgba(143, 227, 240, 0.5); background: rgba(5, 26, 38, 0.45);
  font-size: 13.5px; line-height: 1; text-decoration: none; white-space: nowrap;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s var(--ease), background-color 0.2s;
}
.topbar.is-scrolled .topbar-btn, html:not(.fx) .topbar-btn { opacity: 1; transform: none; pointer-events: auto; }
.topbar-btn svg { color: var(--aqua); flex: none; }
.tide { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.tide-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--aqua) 60%, var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--scroll)); }

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 1px solid rgba(245, 240, 230, 0.4); background: rgba(5, 26, 38, 0.42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 15.5px; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn--primary { color: #04202c; border-color: transparent; background: linear-gradient(135deg, #d6f7fa 0%, #8fe3f0 46%, #46bfd0 100%); box-shadow: 0 10px 30px rgba(70, 191, 208, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn--wide { width: 100%; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); border-color: var(--aqua); }
  .btn--primary:hover { box-shadow: 0 14px 38px rgba(70, 191, 208, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
  .topbar-btn:hover { background: rgba(42, 167, 184, 0.4); }
  .link:hover { color: var(--aqua); }
  .link:hover span { transform: translateX(4px); }
  .row:hover { background: rgba(143, 227, 240, 0.1); }
}
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; text-decoration: none; border-bottom: 1px solid rgba(143, 227, 240, 0.55); font-size: 15px; transition: color 0.2s; }
.link span { color: var(--aqua); transition: transform 0.25s var(--ease); }

/* ---------- 現れ方 ---------- */
.fx [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 1.1s var(--ease); }
.fx [data-reveal="left"] { transform: translateX(-36px); }
.fx [data-reveal="right"] { transform: translateX(36px); }
.fx [data-reveal].is-in { opacity: 1; transform: none; }
.fx [data-stagger] > * { opacity: 0; transform: translateY(24px) scale(0.94); transition: opacity 0.7s ease, transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.fx [data-stagger].is-in > * { opacity: 1; transform: none; }
.split { display: inline; }
.ch { display: inline-block; }
.fx .ch { opacity: 0; transform: translateY(0.5em); filter: blur(6px); transition: opacity 0.8s ease, transform 1s var(--ease), filter 0.8s ease; transition-delay: calc(var(--i, 0) * 70ms + 80ms); }
.fx .is-in .ch { opacity: 1; transform: none; filter: none; }
/* 最初の画面は、全画面の絵が消えてから現す（html に is-enter が付く） */
.fx:not(.is-enter) .hero [data-reveal], .fx:not(.is-enter) .hero [data-stagger] > * { opacity: 0 !important; transform: translateY(30px) !important; }
.fx:not(.is-enter) .hero .ch { opacity: 0 !important; transform: translateY(0.5em) !important; filter: blur(6px) !important; }
.fx:not(.is-enter) .hero-chara { opacity: 0; transform: translateY(40px); }
.fx .hero-roman { transition-delay: 0.55s; }
.fx .hero-roles > * { transition-delay: calc(0.9s + var(--i, 0) * 120ms); }
.fx .hero-actions { transition-delay: 1.25s; }
.fx .hero-copy .ch { transition-delay: calc(var(--i, 0) * 45ms + 650ms); }

/* ---------- 見出し ---------- */
.head { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: end; justify-content: start; margin-bottom: 26px; }
.head-no { grid-row: 1 / span 2; font-family: var(--latin); font-style: italic; font-weight: 400; font-size: clamp(54px, 15vw, 84px); line-height: 0.82; color: var(--aqua); letter-spacing: 0; text-shadow: 0 0 34px rgba(143, 227, 240, 0.35); }
.head-ja { font-size: clamp(27px, 7.2vw, 40px); line-height: 1.25; letter-spacing: 0.12em; }
.head-en { font-family: var(--latin); font-weight: 500; font-size: 14px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); line-height: 1.4; }
.head-nami { grid-column: 1 / -1; margin-top: 14px; color: var(--aqua); stroke-dasharray: 100; stroke-dashoffset: 0; }
.fx .head-nami { stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s 0.3s var(--ease); }
.fx .is-in .head-nami, .fx .greeting.is-on .head-nami, .fx .surf.is-on .head-nami { stroke-dashoffset: 0; }
.lead { font-size: clamp(17px, 4.5vw, 21px); line-height: 1.9; margin-bottom: 30px; text-shadow: 0 0 10px rgba(4, 18, 28, 0.85), 0 2px 26px rgba(4, 18, 28, 0.8); }
.head-ja, .head-en { text-shadow: 0 0 12px rgba(4, 18, 28, 0.7), 0 2px 24px rgba(4, 18, 28, 0.6); }
.note { margin-top: 22px; font-size: 13.5px; color: var(--mist); line-height: 1.8; }

/* ---------- 最初の画面 ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(78px + env(safe-area-inset-top)) var(--pad) 0; overflow: hidden; }
/* 文字の後ろだけを少し暗くする（太陽にはかけない） */
.hero::before { content: ""; position: absolute; inset: 0 0 59% 0; background: linear-gradient(180deg, rgba(4, 18, 28, 0.66) 0%, rgba(4, 18, 28, 0.46) 60%, rgba(4, 18, 28, 0) 100%); pointer-events: none; }
.hero-text { position: relative; z-index: 2; opacity: calc(1 - var(--hy, 0) * 1.5); transform: translateY(calc(var(--hy, 0) * -60px)); }
.hero-eyebrow { font-family: var(--latin); font-weight: 500; font-size: clamp(12.5px, 3.4vw, 15px); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); line-height: 1.5; }
.hero-eyebrow span { font-style: italic; text-transform: none; letter-spacing: 0.1em; color: var(--aqua); }
.hero-name { margin-top: 8px; line-height: 1; }
.hero-kanji { display: block; font-size: clamp(60px, 18.5vw, 136px); letter-spacing: 0.1em; line-height: 1.12; text-shadow: 0 6px 40px rgba(4, 18, 28, 0.5); white-space: nowrap; }
.hero-roman { display: block; margin-top: 2px; font-family: var(--latin); font-style: italic; font-weight: 400; font-size: clamp(28px, 8vw, 50px); letter-spacing: 0.06em; color: var(--aqua); line-height: 1.1; text-shadow: 0 2px 22px rgba(4, 18, 28, 0.5); }
.hero-copy { margin-top: 18px; font-size: clamp(17px, 4.7vw, 27px); letter-spacing: 0.1em; line-height: 1.6; text-shadow: 0 0 10px rgba(4, 18, 28, 0.8), 0 2px 22px rgba(4, 18, 28, 0.8); }
.hero-roles { margin-top: 16px; display: grid; gap: 4px; justify-content: start; }
.hero-roles li { display: flex; align-items: baseline; gap: 12px; font-size: clamp(14px, 3.7vw, 16.5px); line-height: 1.6; text-shadow: 0 1px 14px rgba(4, 18, 28, 0.85); }
.role-title { padding: 1px 10px; border: 1px solid rgba(226, 196, 137, 0.6); border-radius: 999px; color: var(--gold); font-size: 0.86em; letter-spacing: 0.14em; background: rgba(4, 18, 28, 0.32); }
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn:not(.btn--primary) { display: none; }
.hero-roles li { white-space: nowrap; }
.hero-chara { position: absolute; z-index: 1; right: -2%; bottom: 0; height: min(48vh, 116vw); height: min(48svh, 116vw); aspect-ratio: 554 / 1100; transition: opacity 1.2s 0.5s ease, transform 1.4s 0.5s var(--ease); transform: translateY(calc(var(--hy, 0) * 70px)); }
.hero-chara img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(4, 18, 28, 0.45)); }
.fx .hero-chara img { animation: bob 5.4s ease-in-out infinite; }
.ripple { position: absolute; left: 46%; bottom: 0.5%; width: 86%; aspect-ratio: 5 / 1; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.55); transform: translateX(-50%) scale(0.3); opacity: 0; }
.fx .ripple { animation: ripple 3.8s ease-out infinite; }
.fx .ripple--2 { animation-delay: 1.9s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-9px) rotate(0.6deg); } }
@keyframes ripple { 0% { transform: translateX(-50%) scale(0.3); opacity: 0; } 18% { opacity: 0.8; } 100% { transform: translateX(-50%) scale(1.25); opacity: 0; } }
.cue { position: absolute; z-index: 2; left: var(--pad); bottom: calc(18px + env(safe-area-inset-bottom)); font-family: var(--latin); font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--mist); writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px; opacity: calc(1 - var(--hy, 0) * 4); }
.cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(180deg, var(--aqua), rgba(143, 227, 240, 0)); transform-origin: 50% 0; }
.fx .cue::after { animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 画面に留まる場面（共通） ---------- */
.scene { position: relative; }
.pin { position: relative; padding: 90px 0 60px; }
.fx .greeting { height: 330vh; }
.fx .surf { height: 480vh; }
.fx .pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }

/* ---------- 01 ごあいさつ ---------- */
.greeting .pin { display: flex; align-items: flex-end; }
.greeting .pin::before { content: ""; position: absolute; inset: 30% 0 0 0; background: linear-gradient(180deg, rgba(4, 18, 28, 0) 0%, rgba(4, 18, 28, 0.62) 34%, rgba(4, 18, 28, 0.86) 100%); pointer-events: none; }
.pin-body { position: relative; width: 100%; padding: 0 var(--pad) max(34px, 5vh); }
.greeting .head { margin-bottom: 14px; }
.letter { font-size: clamp(15.5px, min(4.9vw, 2.75vh), 25px); line-height: 1.95; letter-spacing: 0.08em; }
.letter-line + .letter-line { margin-top: 0.12em; }
.fx .lt { opacity: 0.2; transition: opacity 0.5s ease, text-shadow 0.5s ease; }
.fx .lt.is-on { opacity: 1; text-shadow: 0 0 18px rgba(143, 227, 240, 0.45); }
.sign { margin-top: 14px; display: flex; align-items: baseline; justify-content: flex-end; gap: 14px; }
.sign-name { font-size: clamp(22px, 6vw, 30px); letter-spacing: 0.2em; }
.sign-roman { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: clamp(18px, 5vw, 24px); color: var(--aqua); }
.fx .sign { opacity: 0; transform: translateX(20px); transition: opacity 0.9s ease, transform 1.1s var(--ease); }
.fx .is-signed .sign { opacity: 1; transform: none; }

/* ---------- 02 仕事 ---------- */
.works { padding: clamp(90px, 16vh, 160px) 0 clamp(90px, 16vh, 150px); }
.work-grid { display: grid; gap: 22px; }
.work {
  position: relative; padding: 26px 22px 22px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(8, 40, 56, 0.72), rgba(4, 20, 30, 0.76));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 24px 60px rgba(2, 10, 16, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.work::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--aqua), var(--teal) 55%, rgba(226, 196, 137, 0.9)); }
.work-role { display: flex; align-items: baseline; gap: 12px; color: var(--gold); font-size: 15px; letter-spacing: 0.2em; line-height: 1.5; }
.work-role-en { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 16px; letter-spacing: 0.06em; color: var(--faint); }
.work-name { margin-top: 6px; font-size: clamp(22px, 6vw, 30px); line-height: 1.4; letter-spacing: 0.06em; }
.work-en { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: 20px; color: var(--aqua); letter-spacing: 0.04em; line-height: 1.4; }
.work-lead { margin-top: 16px; font-size: clamp(17px, 4.6vw, 20px); line-height: 1.7; letter-spacing: 0.08em; }
.work-desc { margin-top: 8px; font-size: 15px; line-height: 1.95; color: var(--mist); }
.tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.tags li { padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(143, 227, 240, 0.34); background: rgba(143, 227, 240, 0.08); font-size: 13px; line-height: 1.7; }
.facts { margin-top: 18px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.75; }
.facts dt { color: var(--aqua); letter-spacing: 0.08em; }
.facts a { display: inline-flex; align-items: center; min-height: 44px; margin: -9px 0; text-decoration: underline; text-decoration-color: rgba(143, 227, 240, 0.6); text-underline-offset: 5px; }
.work-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 26px; }

/* ---------- 03 波乗り ---------- */
.surf .pin { padding-left: var(--pad); padding-right: var(--pad); }
.fx .surf .pin { padding: 0; }
.surf-head { position: relative; z-index: 2; }
.fx .surf-head { position: absolute; right: var(--pad); top: calc(84px + env(safe-area-inset-top)); margin: 0; }
.surf-lines { position: relative; z-index: 2; }
.surf-line { font-size: clamp(25px, 7.4vw, 60px); line-height: 1.5; letter-spacing: 0.12em; text-shadow: 0 0 14px rgba(3, 30, 40, 0.8), 0 2px 30px rgba(3, 30, 40, 0.8), 0 0 2px rgba(3, 30, 40, 0.6); }
.fx .surf-lines { position: absolute; left: 0; right: 0; top: 58%; }
.fx .surf-line { position: absolute; left: var(--pad); right: var(--pad); top: 0; text-align: center; opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 26px)) scale(calc(0.96 + var(--o, 0) * 0.04)); will-change: opacity, transform; }
.fx [data-surf] { opacity: var(--o, 0); }
.surf-end { position: relative; z-index: 2; margin-top: 30px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.surf-chara { width: min(92%, 520px); filter: drop-shadow(0 20px 34px rgba(3, 30, 40, 0.5)); }
.surf-say-main { font-size: clamp(23px, 6.6vw, 46px); letter-spacing: 0.12em; line-height: 1.5; text-shadow: 0 2px 24px rgba(3, 30, 40, 0.8); }
.surf-say-sub { margin-top: 6px; font-size: clamp(14.5px, 3.9vw, 18px); color: var(--foam); text-shadow: 0 1px 16px rgba(3, 30, 40, 0.9); }
.fx .surf-end { position: absolute; inset: 0; margin: 0; align-content: end; padding: 0 var(--pad) max(40px, 7vh); opacity: var(--e, 0); pointer-events: none; }
.fx .surf-chara { transform: translate(calc((1 - var(--e, 0)) * -70vw), calc((1 - var(--e, 0)) * 8vh)) rotate(calc((1 - var(--e, 0)) * -14deg)); will-change: transform; width: min(96%, 58vh); }
.fx .surf-say { order: -1; transform: translateY(calc((1 - var(--e, 0)) * 30px)); }

/* ---------- 04 LINEスタンプ ---------- */
.stickers { padding: clamp(90px, 16vh, 160px) 0; }
.stk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stk {
  position: relative; border-radius: 20px; padding: 10px 8px 6px;
  background: radial-gradient(120% 90% at 50% 20%, rgba(214, 247, 250, 0.9) 0%, rgba(143, 227, 240, 0.78) 46%, rgba(42, 167, 184, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 40px rgba(2, 10, 16, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.stk img { width: 100%; filter: drop-shadow(0 6px 8px rgba(4, 40, 52, 0.28)); transition: transform 0.5s var(--ease); }
.fx .stk-grid.is-in .stk img { animation: wob 4.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s); }
@keyframes wob { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-5px) rotate(1.2deg); } }

/* ---------- 05 名刺 ---------- */
.cards { padding: clamp(90px, 16vh, 160px) 0; }
.meishi-row { display: grid; gap: 40px; justify-items: center; }
.meishi-fig { position: relative; display: grid; justify-items: center; gap: 14px; width: 100%; }
.meishi { display: block; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1400px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.meishi-fig--tall .meishi { width: min(66vw, 300px); aspect-ratio: 916 / 1500; }
.meishi-fig--wide .meishi { width: min(100%, 470px); aspect-ratio: 1500 / 883; }
.meishi-tilt { display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); }
.meishi.is-held .meishi-tilt { transition: transform 0.08s linear; }
.meishi-flip { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.95s cubic-bezier(0.3, 0.9, 0.25, 1); }
.meishi[aria-pressed="true"] .meishi-flip { transform: rotateY(180deg); }
.meishi-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 26px 60px rgba(2, 10, 16, 0.55), 0 2px 0 rgba(255, 255, 255, 0.25) inset; }
.meishi-face--back { transform: rotateY(180deg); }
.meishi-glare { position: absolute; inset: 0; border-radius: 10px; pointer-events: none; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 46%); opacity: 0; transition: opacity 0.3s; transform: translateZ(1px); }
.meishi.is-held .meishi-glare { opacity: 1; }
.meishi-fig figcaption { display: flex; align-items: center; gap: 12px; font-size: 14.5px; letter-spacing: 0.12em; text-shadow: 0 1px 14px rgba(4, 18, 28, 0.9); }
.meishi-side { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--aqua); color: var(--aqua); font-size: 13px; letter-spacing: 0; line-height: 1; }
.cards-chara { width: min(34vw, 150px); margin-top: -14px; filter: drop-shadow(0 16px 26px rgba(2, 10, 16, 0.5)); }

/* ---------- 06 ご連絡先 ---------- */
.contact { padding: clamp(100px, 18vh, 180px) 0 60px; }
.contact-copy { font-size: clamp(25px, 7vw, 50px); letter-spacing: 0.12em; line-height: 1.5; margin-bottom: 34px; text-shadow: 0 2px 24px rgba(4, 18, 28, 0.8); }
.contact-grid { display: grid; gap: 26px; }
.panel { padding: 24px 20px 14px; border-radius: 22px; background: linear-gradient(160deg, rgba(8, 36, 54, 0.74), rgba(4, 16, 26, 0.8)); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 24px 60px rgba(2, 8, 14, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.me { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.me img { width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(143, 227, 240, 0.7); box-shadow: 0 0 0 5px rgba(143, 227, 240, 0.12); }
.me p { display: grid; line-height: 1.3; }
.me-name { font-size: 26px; letter-spacing: 0.2em; }
.me-roman { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 20px; color: var(--aqua); }
.panel-h { margin-top: 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 17px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.5; }
.panel-h span { color: var(--gold); font-size: 13px; letter-spacing: 0.18em; }
.rows { margin-top: 6px; }
.row { display: grid; grid-template-columns: 5em 1fr; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; margin: 0 -10px; border-radius: 12px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background-color 0.2s; }
.rows li:last-child .row { border-bottom: 0; }
.row-k { color: var(--aqua); font-size: 13.5px; letter-spacing: 0.1em; }
.row-v { font-size: 16px; letter-spacing: 0.04em; overflow-wrap: anywhere; line-height: 1.5; }
.side { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 16px; }
.side-chara { width: min(30vw, 150px); filter: drop-shadow(0 16px 26px rgba(2, 8, 14, 0.55)); }
.fx .side.is-in .side-chara { animation: bob 5.4s ease-in-out infinite; }
.side-actions { display: grid; gap: 12px; }
.qr { display: flex; align-items: center; gap: 14px; margin-top: 4px; font-size: 13.5px; line-height: 1.7; color: var(--mist); }
.qr img { width: 96px; height: 96px; border-radius: 10px; flex: none; }
.thanks { margin-top: clamp(70px, 12vh, 120px); display: grid; justify-items: center; gap: 16px; text-align: center; }
.thanks img { width: min(30vw, 130px); filter: drop-shadow(0 16px 26px rgba(2, 8, 14, 0.55)); }
.thanks p { font-size: clamp(18px, 5vw, 26px); letter-spacing: 0.14em; line-height: 1.6; text-shadow: 0 2px 20px rgba(4, 18, 28, 0.8); }

/* ---------- 結び ---------- */
.foot { padding: 40px var(--pad) calc(40px + env(safe-area-inset-bottom)); text-align: center; font-size: 12.5px; line-height: 1.9; color: var(--faint); }
.foot-name { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 28px; color: var(--foam); letter-spacing: 0.06em; line-height: 1.3; margin-bottom: 8px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 20; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: rgba(245, 240, 230, 0.96); color: #04202c; font-size: 14px; line-height: 1.5; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 3D を止めたとき：動く前提の飾りも止める */
.is-still .ripple, .is-still .hero-chara img, .is-still .stk img, .is-still .side-chara { animation: none !important; }

/* ---------- 少し広い画面 ---------- */
@media (min-width: 600px) {
  .stk-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .sp { display: none; }
  .work { padding: 34px 32px 28px; }
  .panel { padding: 30px 30px 18px; }
}

/* ---------- 横長の画面（PC・タブレットの横向き） ---------- */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  body { font-size: 17px; }
  .topbar { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
  .hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; padding: 70px max(6vw, calc(50% - 600px)) 0; }
  .hero::before { inset: 0 46% 0 0; background: linear-gradient(90deg, rgba(4, 18, 28, 0.5) 0%, rgba(4, 18, 28, 0.3) 62%, rgba(4, 18, 28, 0) 100%); }
  .hero-kanji { font-size: clamp(88px, 10.5vw, 168px); }
  .hero-roman { font-size: clamp(38px, 4.2vw, 62px); }
  .hero-copy { font-size: clamp(22px, 2.2vw, 32px); margin-top: 26px; }
  .hero-roles { margin-top: 22px; }
  .hero-roles li { font-size: 18px; }
  .hero-actions { margin-top: 30px; }
  .hero-actions .btn:not(.btn--primary) { display: inline-flex; }
  .hero-chara { position: relative; right: auto; bottom: auto; justify-self: center; align-self: end; height: min(80vh, 760px); }
  .cue { left: 50%; bottom: 14px; }
  .cue::after { height: 40px; }

  .greeting .pin { align-items: center; }
  .greeting .pin::before { inset: 0 34% 0 0; background: linear-gradient(90deg, rgba(4, 18, 28, 0.8) 0%, rgba(4, 18, 28, 0.6) 58%, rgba(4, 18, 28, 0) 100%); }
  .pin-body { width: min(54%, 680px); margin-left: max(6vw, calc(50% - 600px)); padding: 0; }
  .greeting .head { margin-bottom: 30px; }
  .letter { font-size: clamp(19px, min(1.75vw, 3.3vh), 27px); line-height: 2.1; }
  .sign { margin-top: 26px; }

  .work-grid { grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
  .fx .surf-head { right: max(6vw, calc(50% - 600px)); top: 110px; }
  .fx .surf-lines { top: 62%; }
  .fx .surf-end { grid-template-columns: auto auto; justify-content: center; align-content: center; align-items: center; gap: 4vw; padding-bottom: 0; text-align: left; }
  .fx .surf-chara { width: min(46vw, 78vh); }
  .fx .surf-say { order: 0; }

  .meishi-row { grid-template-columns: auto auto auto; justify-content: center; align-items: center; gap: clamp(30px, 4vw, 60px); }
  .meishi-fig { width: auto; }
  .meishi-fig--tall .meishi { width: min(22vw, 320px); }
  .meishi-fig--wide .meishi { width: min(40vw, 540px); }
  .cards-chara { align-self: end; width: clamp(110px, 11vw, 160px); margin: 0; }

  .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: end; }
  .side { grid-template-columns: auto minmax(0, 300px); justify-content: center; gap: 26px; }
  .side-chara { width: min(15vw, 200px); }
}

/* ---------- 背の低い横長（スマホの横向き） ---------- */
@media (orientation: landscape) and (max-height: 540px) {
  .hero { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; padding-top: 58px; }
  .hero::before { inset: 0 46% 0 0; background: linear-gradient(90deg, rgba(4, 18, 28, 0.5) 0%, rgba(4, 18, 28, 0.3) 62%, rgba(4, 18, 28, 0) 100%); }
  .hero-eyebrow { font-size: 11px; }
  .hero-name { margin-top: 2px; }
  .hero-kanji { font-size: clamp(40px, 14vh, 76px); line-height: 1.08; }
  .hero-roman { font-size: clamp(20px, 6.4vh, 32px); }
  .hero-copy { margin-top: 6px; font-size: clamp(14px, 4.4vh, 17px); }
  .hero-roles { margin-top: 6px; grid-auto-flow: column; gap: 16px; }
  .hero-roles li { font-size: 12.5px; gap: 6px; }
  .hero-actions { margin-top: 10px; }
  .hero-actions .btn:not(.btn--primary) { display: inline-flex; }
  .hero-chara { position: relative; right: auto; justify-self: center; align-self: end; height: 82vh; height: 82svh; }
  .btn { min-height: 46px; }
  .cue { display: none; }
  .greeting .pin { align-items: center; }
  .greeting .pin::before { inset: 0 30% 0 0; background: linear-gradient(90deg, rgba(4, 18, 28, 0.82) 0%, rgba(4, 18, 28, 0.6) 60%, rgba(4, 18, 28, 0) 100%); }
  .pin-body { width: 64%; padding: 60px 0 0 var(--pad); }
  .greeting .head { margin-bottom: 2px; grid-template-columns: auto auto 1fr; align-items: center; }
  .greeting .head-no { font-size: 34px; grid-row: auto; }
  .greeting .head-ja { font-size: 22px; }
  .greeting .head-en, .greeting .head-nami { display: none; }
  .letter { font-size: clamp(12px, 3.75vh, 16px); line-height: 1.62; }
  .sign { margin-top: 0; }
  .sign-name { font-size: 19px; }
  .sign-roman { font-size: 16px; }
  .fx .surf-head { top: 56px; }
  .fx .surf-head .head-no { font-size: 44px; }
  .fx .surf-lines { top: 56%; }
  .surf-line { font-size: clamp(22px, 9vh, 38px); }
  .fx .surf-end { grid-template-columns: auto auto; justify-content: center; align-content: center; align-items: center; gap: 4vw; padding-bottom: 0; text-align: left; }
  .fx .surf-chara { width: min(44vw, 84vh); }
  .fx .surf-say { order: 0; }
  .surf-say-main { font-size: clamp(20px, 7.4vh, 30px); white-space: nowrap; }
  .surf-say-sub { font-size: 13.5px; }
}

/* ---------- 背の低い縦長（小さなスマホ）：ごあいさつの見出しを詰めて、ボードの場所を空ける ---------- */
@media (orientation: portrait) and (max-height: 720px) {
  .greeting .head { margin-bottom: 6px; align-items: center; }
  .greeting .head-no { font-size: 44px; grid-row: auto; }
  .greeting .head-ja { font-size: 24px; }
  .greeting .head-en, .greeting .head-nami { display: none; }
  .letter { line-height: 1.8; }
  .sign { margin-top: 6px; }
  .pin-body { padding-bottom: 22px; }
}

/* ---------- 視差効果を減らす／JavaScript なし：場面を留めず、すべて見せる ---------- */
html:not(.fx) .surf-end { margin-top: 40px; }
html:not(.fx) .greeting .pin::before { inset: 0; background: rgba(4, 18, 28, 0.55); }
html:not(.fx) .surf .pin { background: rgba(4, 18, 28, 0.4); }
html:not(.fx) .surf-line { text-align: left; font-size: clamp(22px, 6vw, 40px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .stage, .shade, .flash, .loader, .topbar, .cue, .toast { display: none !important; }
  body { background: #fff; color: #000; }
}
