/* ==========================================================================
   教育空間エグゼ 冬期講習2026 特設LP — Stage 1
   配色: メイン1色（インディゴ）＋アクセント1色（アンバー）＋無彩色。「無料」だけ赤。
   書体: 見出し Noto Sans JP Black / 本文 Noto Sans JP / 欧文・数字 Inter Tight / 縦歌詞 Noto Serif JP
   ========================================================================== */

:root {
  --indigo: #1b2a49;      /* C90 M70 Y30 K5 相当 */
  --indigo-deep: #101a33;
  --slate: #5b6f93;       /* C60 M35 Y15 K0 相当 */
  --amber: #f2a33a;       /* C0 M40 Y85 K0 相当 */
  --red: #e6002d;         /* C0 M100 Y95 K0 相当・「無料」専用 */
  --ink: #111;
  --ink-60: #666;
  --paper: #fff;
  --paper-2: #f4f5f8;
  --hero-text: #fff;
  --lyric-color: #fff;
  --font-jp: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --gutter: 20px;
  --maxw: 720px;
}

/* 時間帯で空の色・歌詞の色を切り替える（Stage1 は空のグラデだけ変わる） */
:root[data-tod="morning"] { --sky-a: #f6b26b; --sky-b: #fbe7c6; --sky-c: #dfe7f2; --lyric-color: #1b2a49; --hero-text: #1b2a49; }
:root[data-tod="day"]     { --sky-a: #c9d2de; --sky-b: #e6eaf0; --sky-c: #f4f5f8; --lyric-color: #111;    --hero-text: #1b2a49; }
:root[data-tod="evening"] { --sky-a: #f28c5a; --sky-b: #b8557e; --sky-c: #3a2a5a; --lyric-color: #fff;    --hero-text: #fff; }
:root[data-tod="night"]   { --sky-a: #0d1630; --sky-b: #1b2a49; --sky-c: #2e4270; --lyric-color: #fff;    --hero-text: #fff; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid #e6e8ee;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  font-family: var(--font-en); font-weight: 700; font-style: italic; letter-spacing: .02em;
  color: #fff; background: var(--indigo); border-radius: 6px; padding: 3px 8px; font-size: 14px;
}
.brand-text { font-weight: 700; font-size: 14px; color: var(--indigo); }
.brand-text small { font-weight: 500; color: var(--slate); margin-left: 4px; font-size: 11px; }
.head-cta {
  font-size: 12px; font-weight: 700; text-decoration: none;
  color: var(--indigo); border: 1.5px solid var(--indigo); border-radius: 999px; padding: 6px 12px;
  white-space: nowrap;
}

/* ---------- hero ---------- */
/* ヒーローは 180svh の「走行区間」。中身は sticky で画面に固定され、
   スクロール量でパララックスと夜→夜明けが進む（紙の絵が動き出す区間） */
.hero {
  position: relative;
  height: 180svh;
  background: var(--indigo-deep);
}
.hero-inner {
  position: sticky; top: 0;
  height: 100svh;
  display: grid; place-items: end center;
  color: var(--hero-text);
  overflow: hidden;
}
.hero-inner.is-dawn { color: var(--indigo); }
.hero-inner.is-dawn .headphone { border-color: var(--indigo); }
.hero-art { position: absolute; inset: -6% 0; }
.layer { position: absolute; inset: 0; will-change: transform, opacity; }
.layer-sky {
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 55%, var(--sky-c) 100%);
  transition: background 1.2s ease;
}
.layer-dawn {
  background: linear-gradient(180deg, #f6b26b 0%, #fbe7c6 55%, #dfe7f2 100%);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; min-height: 100svh; }
  .hero-inner { position: relative; }
}
/* Stage1: 街並み・窓枠・人物はまだ絵が無いので、控えめな図形で「気配」だけ置く */
.layer-town {
  background:
    radial-gradient(60% 40% at 30% 100%, rgba(242,163,58,.18), transparent 70%),
    radial-gradient(40% 30% at 75% 100%, rgba(242,163,58,.12), transparent 70%);
}
.layer-window {
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(255,255,255,.14) 49.4%, rgba(255,255,255,.14) 50.6%, transparent 50.6%),
    linear-gradient(0deg, transparent 39.4%, rgba(255,255,255,.14) 39.4%, rgba(255,255,255,.14) 40.6%, transparent 40.6%);
  opacity: .5;
}
.layer-figure {
  background: radial-gradient(45% 55% at 50% 78%, rgba(16,26,51,.85), transparent 72%);
}
.layer-fore {
  background: radial-gradient(35% 25% at 12% 92%, rgba(242,163,58,.35), transparent 70%);
  filter: blur(18px);
}
.layer-snow { pointer-events: none; }
.snowflake {
  position: absolute; top: -10px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.85);
  animation: fall linear infinite;
}
@keyframes fall {
  to { transform: translateY(110vh) translateX(var(--drift, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .snowflake { animation: none; display: none; } }

.hero-copy {
  position: relative; z-index: 2;
  width: min(100%, var(--maxw));
  padding: 24vh var(--gutter) 88px;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-en); font-weight: 300; letter-spacing: .28em; font-size: 12px;
  margin: 0 0 14px; opacity: .85;
}
.eyebrow .sep { opacity: .5; margin: 0 6px; }
.copy-main {
  font-weight: 900; font-size: clamp(28px, 7.4vw, 44px); line-height: 1.35; letter-spacing: .02em;
  margin: 0 0 34px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.headphone {
  position: relative; display: inline-grid; place-items: center;
  width: 108px; height: 108px; border-radius: 50%;
  border: 1.5px solid currentColor; background: rgba(255,255,255,.06);
  color: inherit; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.headphone:active { transform: scale(.96); }
.headphone[aria-pressed="true"] { background: rgba(242,163,58,.22); border-color: var(--amber); color: var(--amber); }
.headphone .pulse {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid currentColor; opacity: .5;
  animation: breathe 2.8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.12); opacity: .1; }
}
@media (prefers-reduced-motion: reduce) { .headphone .pulse { animation: none; } }
.copy-sound {
  margin: 14px 0 0; font-size: 13px; letter-spacing: .2em;
  animation: blink 3.2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: .95; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .copy-sound { animation: none; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid currentColor; border-radius: 13px; opacity: .6;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: currentColor;
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } }

/* 縦歌詞（Stage3）: writing-mode 縦組。フラグで完全 OFF 可能 */
.layer-lyrics { pointer-events: none; }
.lyric {
  position: absolute; top: -20%;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-serif); font-weight: 200; letter-spacing: .18em;
  color: var(--lyric-color); white-space: nowrap;
  animation: lyric-fall linear infinite;
}
.lyric.lead { font-size: 22px; opacity: .8; }
.lyric.sub  { font-size: 14px; opacity: .3; filter: blur(.4px); }
@keyframes lyric-fall { to { transform: translateY(140vh); } }
@media (prefers-reduced-motion: reduce) { .lyric { animation: none; } }

/* ---------- docs ---------- */
.docs { position: relative; background: var(--paper); }
/* 空だけ続ける案（fx.skyContinues）：固定背景に夜明けの空を薄く敷き、資料は白いカード状で読ませる */
.docs-bg { display: none; }
html.sky-continues .docs-bg { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; }
html.sky-continues .docs-bg-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #f6b26b 0%, #fbe7c6 45%, #dfe7f2 100%);
  opacity: .55;
}
html.sky-continues .docs-bg-snow { position: absolute; inset: 0; }
html.sky-continues .docs { background: transparent; z-index: 1; }
html.sky-continues .hero { z-index: 2; } /* 固定背景（z=0）の上にヒーローを重ねる */
html.sky-continues .block { background: rgba(255,255,255,.86); backdrop-filter: blur(6px); border-radius: 18px; margin-top: 16px; margin-bottom: 16px; padding-top: 40px; padding-bottom: 40px; }
html.sky-continues .block + .block { border-top: 0; }
html.sky-continues .block-key { background: rgba(255,255,255,.92); }
html.sky-continues .site-foot { position: relative; z-index: 1; }
.block { width: min(100%, var(--maxw)); margin: 0 auto; padding: 56px var(--gutter); }
.block + .block { border-top: 1px solid #eceef3; }
.h2 {
  font-weight: 900; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.4; letter-spacing: .01em;
  color: var(--indigo); margin: 0 0 18px;
}
.h2-en { display: block; font-family: var(--font-en); font-weight: 300; font-size: 12px; letter-spacing: .3em; color: var(--slate); margin-top: 4px; }
.block-lead { margin: 0 0 22px; color: #333; }
.fine { font-size: 12px; color: var(--ink-60); margin: 16px 0 0; }

/* key block */
.block-key { text-align: center; padding-top: 48px; }
.key-season { font-weight: 700; color: var(--indigo); letter-spacing: .1em; margin: 0 0 6px; }
.key-free { margin: 0; font-weight: 900; font-size: clamp(40px, 12vw, 64px); line-height: 1.1; color: var(--red); letter-spacing: -.01em; }
.key-date { margin: 10px 0 0; font-family: var(--font-en); font-weight: 700; font-size: 20px; color: var(--indigo); }
.key-date [data-var] { font-family: var(--font-jp); }
.key-note { margin: 6px 0 0; font-size: 13px; color: var(--ink-60); }
.key-online { margin: 26px auto 0; max-width: 520px; padding: 14px 18px; border: 2px solid var(--indigo); border-radius: 10px; color: var(--indigo); font-size: 15px; }

/* free items */
.free-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.free-item { border: 1px solid #e3e6ee; border-radius: 12px; padding: 14px 14px 12px; background: var(--paper-2); }
.free-item .n { font-family: var(--font-en); font-weight: 700; font-size: 12px; color: var(--amber); letter-spacing: .1em; }
.free-item .t { display: block; font-weight: 700; font-size: 15px; margin-top: 4px; color: var(--indigo); line-height: 1.4; }
.free-item .d { display: block; font-size: 12px; color: var(--ink-60); margin-top: 4px; }

/* courses */
.course-list { display: grid; gap: 12px; }
.course { border: 1px solid #e3e6ee; border-radius: 12px; padding: 16px; }
.course-grade { font-family: var(--font-en); font-weight: 700; font-size: 12px; color: var(--slate); letter-spacing: .12em; }
.course-name { font-weight: 900; font-size: 18px; color: var(--indigo); margin: 2px 0 6px; }
.course-body { font-size: 14px; margin: 0; color: #333; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--ink-60); }
.course-meta .fee { color: var(--red); font-weight: 700; }

/* online */
.online-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.online-points li { position: relative; padding-left: 22px; }
.online-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }

/* apply */
.block-apply { background: var(--paper-2); border-radius: 18px; margin-top: 20px; }
.campus-pick-label { font-size: 12px; color: var(--ink-60); margin: 0 0 8px; }
.campus-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.campus-tab { border: 1.5px solid #cfd5e2; background: #fff; color: var(--indigo); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
.campus-tab[aria-selected="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.campus-card { background: #fff; border: 1px solid #e3e6ee; border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.campus-card h3 { margin: 0 0 4px; font-size: 18px; color: var(--indigo); }
.campus-card .addr { margin: 0 0 12px; font-size: 13px; color: #333; }
.tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-en); font-weight: 700; font-size: 22px; color: var(--indigo); }
.tel small { font-family: var(--font-jp); font-weight: 500; font-size: 12px; color: var(--ink-60); }
.tel + .tel { margin-left: 16px; }
.btn { display: block; text-align: center; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 16px 18px; font-size: 16px; }
.btn-primary { background: var(--red); color: #fff; }

/* campus list */
.campus-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.campus-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eceef3; }
.campus-list .name { font-weight: 700; color: var(--indigo); }
.campus-list .addr { font-size: 12px; color: var(--ink-60); }
.campus-list a { font-family: var(--font-en); font-weight: 700; text-decoration: none; color: var(--indigo); font-size: 15px; }

/* ---------- footer ---------- */
.site-foot { background: var(--indigo-deep); color: #fff; padding: 44px var(--gutter) 60px; text-align: center; }
.tagline { font-weight: 700; font-size: 15px; margin: 0 0 18px; letter-spacing: .02em; }
.foot-brand { font-size: 12px; opacity: .8; margin: 0 0 6px; }
.foot-links { margin: 0 0 24px; font-size: 12px; }
.foot-links a { opacity: .8; }
.powered { font-family: var(--font-en); font-size: 11px; letter-spacing: .12em; opacity: .5; margin: 0; }
.powered span { font-weight: 700; }

@media (min-width: 720px) {
  .free-grid { grid-template-columns: repeat(4, 1fr); }
  .course-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- 画面点灯（QR で PC の中に入る演出。fx.screenWake・1 セッション 1 回） ---------- */
.wake { position: fixed; inset: 0; z-index: 50; background: #06070c; pointer-events: none; opacity: 0; transition: opacity .7s ease .55s; }
html.wake-on .wake { opacity: 1; transition: none; }
html.wake-on .wake .wake-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #fff; box-shadow: 0 0 24px 6px rgba(255,255,255,.55); opacity: 0; animation: wake-line 1.05s ease-out forwards; }
@keyframes wake-line {
  0% { opacity: 0; transform: scaleX(0); }
  20% { opacity: 1; transform: scaleX(1); }
  55% { opacity: 1; height: 2px; }
  100% { opacity: 0; height: 100vh; top: 0; }
}
html.wake-on .wake { animation: wake-out 1.25s ease-in forwards; }
@keyframes wake-out { 0%,45% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wake, html.wake-on .wake { display: none; animation: none; } }
