/* ============================================================
   ONESUP — HAYATO1 ONLINE PRIVATE LESSON
   black void × cyan glow / hero video → particle freeze stage
   ============================================================ */

:root {
  --void: #04060a;
  --void-2: #070b12;
  --cyan: #3fd9ff;
  --cyan-bright: #a5ecff;
  --cyan-deep: #0e7fae;
  --cyan-08: rgba(63, 217, 255, 0.08);
  --cyan-16: rgba(63, 217, 255, 0.16);
  --cyan-35: rgba(63, 217, 255, 0.35);
  --text: #dff4fc;
  --sub: #8fb3c4;
  --blood: #ff2e4d;
  --line: rgba(63, 217, 255, 0.14);
  --panel: rgba(7, 11, 18, 0.82);
  --font-display: "Archivo Black", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --pad: clamp(20px, 6vw, 96px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.pre-boot { overflow: hidden; }

::selection { background: var(--cyan); color: var(--void); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--font-mono); }
.pc { display: inline; }

/* ---------- stage & atmosphere ---------- */

#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
body.no-3d #stage { display: none; }
body.no-3d {
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(14, 127, 174, 0.25), transparent 60%),
    radial-gradient(100% 80% at 20% 90%, rgba(63, 217, 255, 0.12), transparent 55%),
    var(--void);
}

/* ---------- hero video layer (fixed, hands off to the 3D stage) ---------- */

.herovid {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 1; will-change: opacity;
}
.herovid video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.5) contrast(1.14) brightness(0.72);
  transform: scale(1.04);
}
.herovid__grade {
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 75% at 50% 38%, rgba(14, 127, 174, 0.30), transparent 68%),
    linear-gradient(180deg, rgba(4, 6, 10, 0.72) 0%, rgba(4, 6, 10, 0.30) 38%, rgba(4, 6, 10, 0.86) 88%, var(--void) 100%);
}
.herovid__grade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 6, 10, 0.55), transparent 28%, transparent 72%, rgba(4, 6, 10, 0.55));
}

.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.scanlines {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.45;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.22) 2px 3px);
}

.grain {
  position: fixed; inset: -60%; z-index: 3; pointer-events: none; opacity: 0.38;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-4%, 3%); }
  66% { transform: translate(3%, -4%); }
  100% { transform: translate(0, 0); }
}

/* ---------- boot loader ---------- */

#loader {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: var(--void);
  transition: opacity 0.6s ease, visibility 0.6s;
}
body.booted #loader { opacity: 0; visibility: hidden; }

.loader__inner { width: min(420px, 78vw); }
.loader__brand {
  font-family: var(--font-display); font-size: 26px; letter-spacing: 0.04em;
  color: var(--text); text-shadow: 0 0 24px var(--cyan-35);
}
.loader__brand span { color: var(--cyan); font-size: 14px; letter-spacing: 0.2em; }
.loader__bar { height: 2px; margin: 22px 0 10px; background: var(--cyan-16); overflow: hidden; }
.loader__bar i {
  display: block; height: 100%; width: 0%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 32px var(--cyan);
  transition: width 0.25s ease;
}
.loader__meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--sub);
}
.loader__meta #loader-pct { color: var(--cyan); }
.loader__poses {
  margin-top: 16px; font-family: var(--font-mono);
  font-size: 10px; line-height: 1.8; letter-spacing: 0.1em;
  color: rgba(143, 179, 196, 0.55); min-height: 3.6em;
}

/* ---------- HUD ---------- */

.hud { position: fixed; z-index: 10; }

.hud--top {
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad) 0;
}
.hud__brand {
  font-family: var(--font-display); font-size: 15px; letter-spacing: 0.05em;
  text-shadow: 0 0 18px var(--cyan-35);
}
.hud__brand span { color: var(--cyan); font-size: 10px; letter-spacing: 0.22em; }
.hud__nav { display: flex; align-items: center; gap: 22px; }
.hud__sections { display: flex; align-items: center; gap: 22px; }
.hud__nav a {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--sub); position: relative; padding: 4px 0; transition: color 0.25s;
}
.hud__nav a:hover, .hud__nav a:focus-visible { color: var(--cyan-bright); text-shadow: 0 0 12px var(--cyan-35); }
.hud__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transition: width 0.3s;
}
.hud__nav a:hover::after { width: 100%; }
.hud__cta {
  color: var(--cyan-bright); border: 1px solid var(--cyan-35);
  background: var(--cyan-08); padding: 8px 16px !important;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.hud__cta:hover { background: var(--cyan); color: var(--void); }
.hud__cta::after { display: none; }

/* JA | EN — segmented, always visible (also on mobile) */
.hud__lang {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--cyan-16); background: rgba(4, 6, 10, 0.55);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  line-height: 1; overflow: hidden;
}
.hud__lang > * {
  padding: 8px 11px !important; display: flex; align-items: center;
  font-weight: 400; font-style: normal;
}
.hud__lang b { background: var(--cyan); color: var(--void); }
.hud__lang a { color: var(--sub); transition: color 0.25s, background 0.25s; }
.hud__lang a:hover, .hud__lang a:focus-visible {
  color: var(--cyan-bright); background: var(--cyan-08); text-shadow: none;
}
.hud__lang a::after { display: none; }

/* invisible target so old links to #feature still land on the lesson block */
.anchor-alias { display: block; position: relative; top: -80px; height: 0; }

.rail {
  position: fixed; right: calc(var(--pad) * 0.45); top: 50%; z-index: 10;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px;
}
.rail a { position: relative; width: 10px; height: 10px; display: block; }
.rail a::before {
  content: ""; position: absolute; inset: 2px; transform: rotate(45deg);
  background: transparent; border: 1px solid var(--cyan-35); transition: all 0.3s;
}
.rail a.is-active::before {
  background: var(--cyan); border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 24px var(--cyan-35);
}
.rail a span {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  color: var(--cyan-bright); white-space: nowrap; opacity: 0; transition: opacity 0.25s;
}
.rail a:hover span, .rail a:focus-visible span { opacity: 1; }

.hud--scroll {
  right: var(--pad); bottom: 34px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--sub); display: flex; align-items: center; gap: 10px;
  transition: opacity 0.4s;
}
body.past-hero .hud--scroll { opacity: 0; }
.hud--scroll span {
  display: block; width: 1px; height: 42px;
  background: linear-gradient(var(--cyan), transparent);
  overflow: hidden; position: relative;
}
.hud--scroll span::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--cyan-bright); box-shadow: 0 0 8px var(--cyan);
  animation: scroll-drip 1.8s ease-in infinite;
}
@keyframes scroll-drip { to { top: 110%; } }

/* ---------- sections ---------- */

main { position: relative; z-index: 5; }

.sec {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 16svh var(--pad);
}
.sec--tall { align-items: flex-start; padding-top: 20svh; padding-bottom: 18svh; }

.sec__inner { width: 100%; max-width: 1280px; margin: 0 auto; }
.sec__col { max-width: 620px; }
.sec__col--wide { max-width: 760px; }
.sec[data-side="left"] .sec__col { margin-right: auto; }
.sec[data-side="right"] .sec__col { margin-left: auto; }

.sec__no { font-size: 11px; letter-spacing: 0.32em; color: var(--cyan); margin-bottom: 14px; }
.sec__no::before { content: "▮ "; color: var(--blood); }

.sec__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.4vw, 72px);
  line-height: 1.08; letter-spacing: 0.01em;
  color: var(--text);
  text-shadow: 0 0 32px rgba(63, 217, 255, 0.28);
  margin-bottom: 26px;
}
.sec__title:lang(ja) { letter-spacing: 0.02em; }

.sec__lead {
  font-size: clamp(15px, 1.8vw, 20px); font-weight: 900;
  letter-spacing: 0.04em; color: var(--cyan-bright); margin-bottom: 14px;
}
.sec__body { font-size: 14px; color: var(--sub); margin-bottom: 26px; }
.sec__note { font-size: 11px; letter-spacing: 0.14em; color: var(--cyan); margin: 18px 0 26px; }

/* ---------- glitch title ---------- */

.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.is-glitching.glitch::before { color: var(--blood); z-index: -1; animation: glitch-a 0.5s steps(2) 2; }
.is-glitching.glitch::after { color: var(--cyan); z-index: -2; animation: glitch-b 0.5s steps(2) 2; }
@keyframes glitch-a {
  0% { opacity: 0.8; transform: translate(-6px, 2px); clip-path: inset(12% 0 58% 0); }
  50% { opacity: 0.8; transform: translate(4px, -2px); clip-path: inset(62% 0 8% 0); }
  100% { opacity: 0; transform: none; }
}
@keyframes glitch-b {
  0% { opacity: 0.8; transform: translate(6px, -2px); clip-path: inset(52% 0 18% 0); }
  50% { opacity: 0.8; transform: translate(-4px, 3px); clip-path: inset(4% 0 72% 0); }
  100% { opacity: 0; transform: none; }
}

/* ---------- hero ---------- */

.sec--hero { text-align: center; justify-content: center; min-height: 100svh; }
.sec--hero .sec__inner { max-width: none; }

.hero__kicker { font-size: 11px; letter-spacing: 0.42em; color: var(--cyan); margin-bottom: 3vh; }
.hero__title {
  font-family: var(--font-display);
  /* 下限は 320px の狭い端末でも "ONESUP" が余白ごと収まる値 */
  font-size: clamp(52px, 13vw, 184px);
  line-height: 0.95; letter-spacing: 0.02em;
  color: var(--text);
  text-shadow:
    0 0 18px rgba(165, 236, 255, 0.35),
    0 0 60px rgba(63, 217, 255, 0.35),
    0 0 140px rgba(14, 127, 174, 0.45);
}
/* リード文を置かない構成。ロゴと動画で見せて、ボタンへ直行させる */
.hero__actions {
  margin-top: 6vh; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ---------- frames / media ---------- */

.frame {
  border: 1px solid var(--cyan-16);
  background: var(--panel);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  overflow: hidden;
}
.ratio { position: relative; aspect-ratio: 16 / 9; margin: 22px 0; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- about ---------- */

#about .sec__col { max-width: 720px; }
.about { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.about__copy p { font-size: 14px; color: var(--sub); }
.about__copy p + p { margin-top: 16px; }
/* 「誰でも大歓迎」の呼びかけ。本文から色で立ち上げて読み飛ばされないようにする */
.about__welcome {
  color: var(--cyan-bright) !important;
  border-left: 2px solid var(--cyan-35); padding-left: 14px;
}

/* ---------- profile grid ---------- */

.pf { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 34px; align-items: start; }
.pf__side { display: grid; gap: 20px; }

.linkline {
  display: inline-block; font-size: 12px; letter-spacing: 0.14em;
  color: var(--cyan-bright); border-bottom: 1px solid var(--cyan-35);
  padding-bottom: 3px; transition: color 0.25s, border-color 0.25s;
}
.linkline:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- panels ---------- */

.panel {
  border: 1px solid var(--cyan-16); background: var(--panel);
  padding: 22px 22px 24px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: border-color 0.25s;
}
.panel:hover { border-color: var(--cyan-35); }
.panel__media { margin: -22px -22px 18px; border-bottom: 1px solid var(--line); }
.panel__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.panel__eyebrow { font-size: 10px; letter-spacing: 0.28em; color: var(--cyan); margin-bottom: 6px; }
.panel h3 { font-size: 16px; font-weight: 900; letter-spacing: 0.05em; margin-bottom: 10px; }
.panel h3.panel__second { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel p { font-size: 13px; color: var(--sub); }
.panel p + p { margin-top: 12px; }
.panel .btn { margin-top: 16px; }
.panel .caution {
  margin-top: 14px; font-size: 11.5px; color: rgba(143, 179, 196, 0.78);
  border-left: 2px solid var(--blood); padding-left: 12px;
}
.panel a.linkline { margin-top: 6px; }

.panel--soon { position: relative; border-color: var(--cyan-35); }
.panel--soon::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--cyan-08), transparent 45%);
}
.panel--soon .panel__eyebrow { color: var(--blood); letter-spacing: 0.3em; }

.socials { display: flex; gap: 12px; margin: 18px 0 4px; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--cyan-35); color: var(--cyan-bright);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.socials a:hover { background: var(--cyan); color: var(--void); box-shadow: 0 0 20px var(--cyan-35); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- records ---------- */

.records { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.records li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding-left 0.25s;
}
.records li:hover { background: var(--cyan-08); padding-left: 12px; }
.records time { flex: 0 0 44px; font-size: 11px; color: var(--sub); }
.records span { flex: 1; font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; }
.records b { font-size: 11px; letter-spacing: 0.16em; font-weight: 500; color: var(--sub); }
.records b.win { color: var(--void); background: var(--cyan); padding: 2px 8px; box-shadow: 0 0 14px var(--cyan-35); }

/* ---------- lesson cards ---------- */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 10px; }
.card {
  border: 1px solid var(--cyan-16); background: var(--panel);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: border-color 0.25s, transform 0.3s;
}
.card:hover { border-color: var(--cyan-35); transform: translateY(-3px); }
.card__media { border-bottom: 1px solid var(--line); position: relative; }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(0.7) contrast(1.05); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 6, 10, 0.75));
}
.card h3 {
  font-size: 14px; font-weight: 900; letter-spacing: 0.04em; line-height: 1.6;
  padding: 20px 22px 12px;
}
.card ul { list-style: none; padding: 0 22px 24px; }
.card li {
  font-size: 12.5px; color: var(--sub); padding-left: 16px; position: relative; margin-top: 8px;
}
.card li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; transform: rotate(45deg);
  border: 1px solid var(--cyan); box-shadow: 0 0 6px var(--cyan-35);
}

/* ---------- system ---------- */

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 10px; align-items: start; }

.slots { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 12px 0 16px; }
.slots li {
  background: rgba(4, 6, 10, 0.7); padding: 10px 12px;
  font-size: 12px; letter-spacing: 0.1em; color: var(--cyan-bright); text-align: center;
}

.notes { list-style: none; }
.notes li { font-size: 12.5px; color: var(--sub); padding-left: 16px; position: relative; margin-top: 9px; }
.notes li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; transform: rotate(45deg);
  border: 1px solid var(--cyan); box-shadow: 0 0 6px var(--cyan-35);
}

.flow {
  margin-top: 18px; border: 1px solid var(--cyan-16); background: var(--panel);
  padding: 26px 26px 28px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.flow h3 { font-size: 16px; font-weight: 900; letter-spacing: 0.05em; margin-bottom: 8px; }
.flow__steps { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.flow__steps li {
  background: rgba(4, 6, 10, 0.7); display: flex; align-items: baseline; gap: 16px;
  padding: 13px 16px; transition: background 0.25s;
}
.flow__steps li:hover { background: var(--cyan-08); }
.flow__steps i { font-style: normal; font-size: 10px; letter-spacing: 0.16em; color: var(--cyan); flex: 0 0 22px; }
.flow__steps span { font-size: 13px; }

/* ---------- prices ---------- */

.prices { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 26px; }
.prices li {
  position: relative; border: 1px solid var(--cyan-16); background: var(--panel);
  padding: 24px 22px 26px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: border-color 0.25s, background 0.25s, transform 0.3s;
}
.prices li:hover { border-color: var(--cyan-35); background: var(--cyan-08); transform: translateY(-3px); }
.prices li.is-featured { border-color: var(--cyan-35); box-shadow: 0 0 40px rgba(63, 217, 255, 0.1) inset; }
.prices__tag {
  font-size: 9px; letter-spacing: 0.28em; color: var(--void);
  background: var(--cyan); display: inline-block; padding: 3px 10px; margin-bottom: 10px;
  box-shadow: 0 0 16px var(--cyan-35);
}
.prices h3 { font-size: 11px; letter-spacing: 0.24em; color: var(--cyan); font-weight: 500; }
.prices__name { font-size: 14px; font-weight: 900; letter-spacing: 0.04em; margin-top: 2px; }
.prices__desc { font-size: 12px; color: var(--sub); margin: 10px 0 16px; }
.prices__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 9px 0; }
.prices__row span { font-size: 10px; letter-spacing: 0.14em; color: var(--sub); }
.prices__row b { font-family: var(--font-display); font-size: 20px; color: var(--cyan-bright); text-shadow: 0 0 18px var(--cyan-35); }
.prices__big {
  font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px);
  color: var(--cyan-bright); text-shadow: 0 0 22px var(--cyan-35); line-height: 1.25;
}
.prices__big em { font-style: normal; font-family: var(--font-body); font-size: 13px; color: var(--sub); }
.prices__note { font-size: 11.5px; color: var(--sub); margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Q&A ---------- */

.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 18px 34px 18px 4px; position: relative;
  font-size: 14px; font-weight: 700; letter-spacing: 0.03em;
  transition: color 0.25s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--cyan-bright); }
.qa summary::after {
  content: ""; position: absolute; right: 8px; top: 26px;
  width: 8px; height: 8px; border: solid var(--cyan); border-width: 0 1px 1px 0;
  transform: rotate(45deg); transition: transform 0.25s;
}
.qa details[open] summary::after { transform: rotate(-135deg); }
.qa details[open] summary { color: var(--cyan-bright); }
.qa p { font-size: 13px; color: var(--sub); padding: 0 4px 22px; }

/* ---------- message / connect ---------- */

.sec--connect { text-align: center; }
.sec--connect .sec__inner { max-width: 900px; }

.message { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; text-align: left; margin: 8px 0 34px; }
.message__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.message__quote {
  font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 28px);
  color: var(--cyan-bright); text-shadow: 0 0 24px var(--cyan-35); line-height: 1.3;
}
.message__sub { font-size: 13px; color: var(--sub); margin-top: 14px; }
.message cite { display: block; font-style: normal; font-size: 10px; letter-spacing: 0.3em; color: var(--cyan); margin-top: 14px; }

.connect { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; margin-top: 34px; }
.connect a {
  display: block; padding: 18px 18px 16px;
  border: 1px solid var(--cyan-16); background: var(--panel);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.connect a:hover, .connect a:focus-visible {
  border-color: var(--cyan); background: var(--cyan-08); transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(63, 217, 255, 0.12);
}
.connect i { display: block; font-style: normal; font-size: 10px; letter-spacing: 0.26em; color: var(--cyan); margin-bottom: 6px; }
.connect span { font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }

.foot {
  margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.foot p { font-size: 9px; letter-spacing: 0.2em; color: var(--sub); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--cyan-bright);
  border: 1px solid var(--cyan-35); background: var(--cyan-08);
  padding: 15px 26px; position: relative; overflow: hidden;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: color 0.3s, box-shadow 0.3s, background 0.3s;
  backdrop-filter: blur(3px);
}
.btn i { width: 24px; height: 1px; background: currentColor; position: relative; transition: width 0.3s; flex: none; }
.btn i::after {
  content: ""; position: absolute; right: 0; top: -3px;
  border: solid currentColor; border-width: 1px 1px 0 0;
  width: 6px; height: 6px; transform: rotate(45deg);
}
.btn:hover, .btn:focus-visible {
  background: var(--cyan); color: var(--void);
  box-shadow: 0 0 24px var(--cyan-35), 0 0 60px var(--cyan-16);
}
.btn:hover i { width: 34px; }
.btn--ghost { background: rgba(4, 6, 10, 0.45); border-color: var(--cyan-16); color: var(--sub); }
.btn--ghost:hover { color: var(--void); }
.btn--sm { padding: 11px 18px; font-size: 11px; letter-spacing: 0.16em; }
.btn--sm i { width: 18px; }
.btn--lg { padding: 19px 34px; font-size: 13px; }

/* ---------- back to top ---------- */

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 20;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--cyan-35); border-radius: 50%;
  background: rgba(4, 6, 10, 0.88);
  color: var(--cyan-bright);
  backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s,
              border-color 0.16s ease, color 0.16s ease,
              background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
/* ヒーローを抜けてから出す（SCROLLインジケータと入れ替わる） */
body.past-hero .back-to-top { opacity: 1; visibility: visible; }
.back-to-top:hover, .back-to-top:focus-visible {
  border-color: var(--cyan); background: var(--cyan); color: var(--void);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--cyan-35);
}
.back-to-top svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- motion stop button ---------- */

.motion-toggle {
  position: fixed; left: var(--pad); top: 64px; z-index: 40;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--sub); background: rgba(7, 11, 18, 0.9);
  border: 1px solid var(--cyan-16); padding: 8px 14px; cursor: pointer;
}
.motion-toggle:hover { color: var(--cyan-bright); border-color: var(--cyan-35); }

html.motion-off .grain,
html.motion-off .scanlines,
html.motion-off .hud--scroll { display: none; }
html.motion-off .reveal { opacity: 1; transform: none; transition: none; }
html.motion-off .is-glitching.glitch::before,
html.motion-off .is-glitching.glitch::after { animation: none; opacity: 0; }

/* ---------- custom cursor ---------- */

@media (hover: hover) and (pointer: fine) {
  html.force-motion body:not(.no-3d) { cursor: none; }
  html.force-motion body:not(.no-3d) a,
  html.force-motion body:not(.no-3d) button,
  html.force-motion body:not(.no-3d) summary { cursor: none; }
  .cursor-dot, .cursor-ring { position: fixed; z-index: 80; pointer-events: none; top: 0; left: 0; }
  .cursor-dot {
    width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
    background: var(--cyan-bright); box-shadow: 0 0 10px var(--cyan); transform: rotate(45deg);
  }
  .cursor-ring {
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border: 1px solid var(--cyan-35); transform: rotate(45deg);
    transition: width 0.25s, height 0.25s, margin 0.25s, border-color 0.25s;
  }
  .cursor-ring.is-hover { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: var(--cyan); }
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .hud__nav { gap: 16px; }
  .pf { grid-template-columns: 1fr; }
  .pf__side { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hud__sections { display: none; }
  .hud__nav { gap: 12px; }
  .connect { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .pc { display: none; }
  .sec { padding: 13svh 20px; }
  .sec--tall { padding-top: 16svh; }
  .sec__col, .sec__col--wide { max-width: none; }
  .sec[data-side] .sec__col { margin: 0; }
  .rail, .hud--scroll { display: none; }
  .back-to-top { right: 14px; bottom: 18px; }

  /* readable text over the busy stage */
  .sec:not(.sec--hero) .sec__inner {
    background: rgba(4, 6, 10, 0.66);
    backdrop-filter: blur(4px);
    border: 1px solid var(--line);
    padding: 22px 18px;
  }

  .about { grid-template-columns: 1fr; }
  /* 写真は 3:4 の原寸比のまま。切り抜くと足や頭が欠ける。
     全幅だと画面の半分を占めるので幅を抑えて中央へ。
     グリッドアイテムに margin:auto を使うと shrink-to-fit で潰れるため justify-self で寄せる */
  .about__photo { width: 100%; max-width: 250px; justify-self: center; }
  .pf__side { grid-template-columns: 1fr; }

  /* --- 可読性: 11〜12.5px の細かい文字を底上げする --- */
  /* トラッキングが広いラベルは狭い画面で行が切れるので詰める */
  .hero__kicker { letter-spacing: 0.24em; }
  .sec__no { letter-spacing: 0.2em; }
  .panel .caution, .prices__note { font-size: 12.5px; }
  .card li, .notes li, .connect span, .slots li { font-size: 13px; }
  .panel p, .qa p { font-size: 13.5px; }

  /* --- タップ領域: 指で押せる高さ(44px)を確保する --- */
  .hud__lang > * { min-height: 44px; padding: 0 14px !important; }
  .hud__cta { min-height: 44px; padding: 0 16px !important; display: inline-flex; align-items: center; }
  .hud__brand { padding: 6px 0; }
  .linkline { display: inline-block; padding: 8px 0; }
  .socials a { width: 44px; height: 44px; }
  .cards, .grid2, .slots { grid-template-columns: 1fr; }
  .message { grid-template-columns: 1fr; text-align: center; }
  .message__photo { width: 100%; max-width: 220px; justify-self: center; }
  .connect { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .foot { margin-top: 44px; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .grain,
  html:not(.force-motion) .scanlines,
  html:not(.force-motion) .hud--scroll { display: none; }
  html:not(.force-motion) .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
