/* =========================================================
   mametto 会員募集ウェビナーLP
   配色（2026-10-11 改訂）：白・オフホワイト・落ち着いたグレーを土台に、mametto のキーカラー（黄 #FDCA5B）を、申込ボタン・番号・図解・強調に使う。黒い章は一部だけ残す
   ========================================================= */

:root {
  --paper: #f6f6f4;
  --paper-2: #ecedeb;
  --silver: #e3e5e6;
  --silver-2: #cfd3d6;
  --ink: #0a0b0d;
  --ink-2: #2a2d32;
  --muted: #5d626a;
  --line: rgba(10, 11, 13, 0.12);
  --line-strong: rgba(10, 11, 13, 0.22);
  --yellow: #fdca5b;        /* mametto のキーカラー。白い地の上の文字には使わない（1.5:1）。上に載せる文字は濃い色（--ink で 12.9:1）。暗い地の上では文字にも使える（13:1） */
  --yellow-deep: #e0a52c;   /* 黄色の縁・ホバー・進み具合の線 */
  --yellow-soft: #fff4d6;   /* 淡い黄色の地 */
  --yellow-pale: #ffe9c2;   /* 暗い地の上の、淡い黄色の文字・線 */
  --night: #07080a;
  --night-2: #101217;
  --night-3: #181b22;
  --on-night: #f2f3f5;
  --on-night-2: #c6cad2;
  --on-night-muted: #9aa1ad;
  --night-line: rgba(255, 255, 255, 0.12);
  --danger: #c3261d;
  --danger-night: #ff8f87;
  --ok: #157a46;

  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-num: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --font-mark: "Tilt Warp", "Inter", var(--font);

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1200px;
  --header-h: 64px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-1: 0 1px 2px rgba(10, 11, 13, 0.06), 0 8px 24px rgba(10, 11, 13, 0.06);
  --shadow-2: 0 2px 6px rgba(10, 11, 13, 0.08), 0 24px 60px rgba(10, 11, 13, 0.12);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);   /* 本文は濃いグレー */
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
picture { display: contents; }
source { display: none; }
a { color: var(--ink); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 900; line-height: 1.3; letter-spacing: 0.01em; font-feature-settings: "palt" 1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.nw { display: inline-block; }
.mono { font-family: var(--font-num); font-feature-settings: "tnum" 1; letter-spacing: 0; }
.pc { display: none; }
@media (min-width: 960px) { .pc { display: inline; } }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- demo bar ---------- */
.demo-bar {
  position: relative; z-index: 60;
  background: #fff3c4; color: #3d3100;
  font-size: 12.5px; line-height: 1.6; text-align: center;
  padding: 6px var(--gutter);
  border-bottom: 1px solid #ecd98a;
}
.demo-bar a { color: #3d3100; font-weight: 700; margin-left: 0.6em; }
html.has-demo { --demo-h: 31px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: var(--demo-offset, 0px); left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
/* JS が無い時は is-scrolled が付かないので、最初から地のある表示にする */
.site-header.is-scrolled, html:not(.js) .site-header {
  background: rgba(246, 246, 244, 0.92);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
/* 中身は画面の左右いっぱい（ファーストビューの見出し・開催情報の箱と左右をそろえる） */
.site-header__inner {
  height: 100%; display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
}
.wordmark {
  font-family: var(--font-mark); font-size: 24px; line-height: 1; letter-spacing: 0;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.wordmark--footer { font-size: 30px; margin-bottom: 14px; }
.site-footer__logo { margin: 0 0 18px; }
.site-footer__logo img { display: block; width: 240px; max-width: 100%; height: auto; }
/* キーワード「未来にアップデートできる家」の印：ロゴの黄色の細い帯を文字の下半分に敷く */
.kw { color: inherit; font-weight: 700; padding: 0 0.08em; background: linear-gradient(transparent 58%, rgba(253, 202, 91, 0.62) 58%, rgba(253, 202, 91, 0.62) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.kw--night { color: #fff; background: linear-gradient(transparent 60%, rgba(253, 202, 91, 0.42) 60%, rgba(253, 202, 91, 0.42) 92%, transparent 92%); }   /* 暗い地では文字を白にしてコントラストを保つ */
.site-nav { display: none; gap: 22px; font-size: 13.5px; font-weight: 500; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-header__date { display: none; font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; white-space: nowrap; }
@media (min-width: 1180px) { .site-nav { display: flex; } }
@media (min-width: 960px) { .site-header__date { display: block; } }
html[data-state="closed"] .site-header__date { display: none; }
/* ページの先頭（暗い写真のファーストビューの上）にいる間は、ロゴ・メニュー・日程を白にする（申込ボタンは、どこでも黄色地に濃い文字） */
html.js .site-header:not(.is-scrolled) .wordmark, html.js .site-header:not(.is-scrolled) .site-nav a, html.js .site-header:not(.is-scrolled) .site-header__date { color: #fff; }
html.js .site-header:not(.is-scrolled) :focus-visible { outline-color: var(--yellow); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid var(--yellow-deep); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; line-height: 1.4; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --bg: #f7c046; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(10, 11, 13, 0.18); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 13.5px; }
.btn--large { min-height: 64px; padding: 16px 30px 16px 34px; font-size: 17px; }
.btn--block { width: 100%; min-height: 60px; font-size: 16px; }
.btn--primary { --bg: var(--yellow); }
.btn--light, .btn--light:hover { --bg: #fff; --fg: var(--ink); border-color: transparent; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { box-shadow: none; background: rgba(10, 11, 13, 0.04); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn__arrow {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); position: relative; flex: none;
  transition: transform 0.3s var(--ease);
}
.btn__arrow::before {
  content: ""; position: absolute; left: 8px; top: 9px; width: 8px; height: 8px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}
.btn:hover .btn__arrow { transform: translateY(2px); }

/* =========================================================
   1. ファーストビュー（第5版）
   黒い画面に黄色い点 → 屋根の線 → 大きな見出し（「スマート」が「AI」に組み替わる）→ 点から円が広がり、家が目を覚ます
   → 言葉を選ぶと、同じ写真の中で光と設備が変わる。動きは assets/js/fv.js（写真1枚とマスク3枚を WebGL で合成）
   ========================================================= */
.fv {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  /* デモの帯がある時は、帯の下から最初の画面の下端まで */
  min-height: max(640px, calc(100svh - var(--demo-offset, 0px)));
  padding: calc(var(--header-h) + clamp(10px, 2.6vh, 30px)) var(--gutter) clamp(16px, 3vh, 32px);
  background: #000; color: #fff; overflow: hidden;
  line-height: 1.7; letter-spacing: 0;
}
.fv__stage { position: absolute; inset: 0; overflow: hidden; }
.fv__cam { position: absolute; inset: 0; transform-origin: 50% 55%; }
/* 入りのあと、ごくゆっくり寄って戻る（.loop なので、停止・画面の外・「動きを減らす」設定・JS 無しでは共通の規則で止まる） */
.fv.is-settled .fv__cam { animation: fv-drift 18s ease-in-out infinite alternate; }
.fv.is-paused .fv__cam, .fv.is-still .fv__cam { animation-play-state: paused; }
@keyframes fv-drift { from { transform: scale(1); } to { transform: scale(1.022); } }
.fv__space { position: absolute; left: 0; top: 0; width: 2000px; height: 1333px; transform-origin: 0 0; will-change: transform; }
.fv__space img { width: 2000px; height: 1333px; max-width: none; }
.fv__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fv__noscript { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fv__shade { position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 1); }
.fv__shade::before, .fv__shade::after { content: ""; position: absolute; left: 0; right: 0; }
/* ヘッダーの後ろ */
.fv__shade::before { top: 0; height: 170px; background: linear-gradient(180deg, rgba(6, 8, 12, 0.78) 0, rgba(6, 8, 12, 0.6) 90px, rgba(6, 8, 12, 0) 170px); }
/* 最下段（注記の後ろ） */
.fv__shade::after { bottom: 0; height: 150px; background: linear-gradient(0deg, rgba(6, 8, 12, 0.8) 0, rgba(6, 8, 12, 0.5) 60px, rgba(6, 8, 12, 0) 150px); }

/* 光の走り（写真の座標） */
.fv__runs { position: absolute; left: 0; top: 0; max-width: none; overflow: visible; }
.fv .run { fill: none; stroke: #fff4d6; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 18 100; stroke-dashoffset: calc(18 - var(--run, 0) * 118); opacity: var(--run-o, 0); filter: drop-shadow(0 0 10px rgba(253, 202, 91, 0.95)) drop-shadow(0 0 26px rgba(253, 202, 91, 0.6)); }

/* 動いた設備の印（黄色い点） */
.fv .mk { position: absolute; width: 0; height: 0; transform: scale(var(--inv, 1)); pointer-events: none; }
.fv .mk::before { content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(253, 202, 91, 0.22), 0 0 20px rgba(253, 202, 91, 0.95); opacity: 0; transform: scale(0.4); }
.fv .mk::after { content: ""; position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; border-radius: 50%; border: 2px solid var(--yellow); opacity: 0; }
.fv .mk.is-on::before { animation: mk-dot 2.8s ease-out both; }
.fv .mk.is-on::after { animation: mk-ring 1.15s ease-out 2 both; }
@keyframes mk-dot { 0% { opacity: 0; transform: scale(0.4); } 10% { opacity: 1; transform: scale(1.25); } 22% { transform: scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: scale(0.7); } }
@keyframes mk-ring { 0% { opacity: 0.9; transform: scale(0.2); } 100% { opacity: 0; transform: scale(1); } }

/* 入りの印（屋根の線と点） */
.fv__intro { position: absolute; left: 50%; top: 41%; width: clamp(120px, 13vw, 210px); aspect-ratio: 164 / 116; transform: translate(-50%, -50%); pointer-events: none; }
.fv .mark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: var(--roof-o, 0); }
.fv .mark__roof { transform: scale(var(--roof-s, 1)); transform-box: view-box; transform-origin: 106px 86px; vector-effect: non-scaling-stroke; fill: none; stroke: #fff; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--roof, 0) * 100); }
.fv .mark__roof.is-drawn { stroke-dasharray: none; }
.fv .mark__dot { position: absolute; left: 64.6%; top: 74.1%; width: 33%; aspect-ratio: 1; margin: -16.5% 0 0 -16.5%; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 calc(var(--glow, 0) * 60px) rgba(253, 202, 91, 0.9); opacity: var(--dot-o, 0); transform: scale(var(--dot-s, 0)); }

/* 入りを飛ばす */
.fv__skip { position: absolute; z-index: 6; left: var(--gutter); top: calc(var(--header-h) + clamp(10px, 2.6vh, 30px)); height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; background: rgba(14, 16, 20, 0.66); color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; }

/* 上：場面をえらぶ言葉 */
.fv__pick { position: relative; z-index: 5; opacity: var(--pick, 1); }
.fv__pick[data-off], .fv__event[data-off], .fv:not(.is-js) .fv__pick { visibility: hidden; }   /* fv.js が動いていない時（JS 無効・読み込み失敗）は、動かない操作を出さない */
.fv:not(.is-js) .fv__gl, .fv:not(.is-js) .fv__intro { display: none; }
/* fv.js が動き出すまで（読み込み中）は、見出しと開催情報を出さずに待つ（入りの黒い画面の前に、完成形の文字が一瞬見えるのを防ぐ）。
   3秒たっても始まらない時（fv.js が読めない時）は、そのまま見せる。JS が無い時・main.js が読めない時は html に js が付かないので、最初から見える */
html.js .fv:not(.is-js) .fv__bottom { animation: fv-wait 0.01s 3s both; }
@keyframes fv-wait { from { visibility: hidden; } to { visibility: visible; } }
.fv__capline { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.fv__cap { min-width: 0; padding: 8px 16px; border-radius: 14px; background: rgba(14, 16, 20, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: clamp(13.5px, 1.15vw, 16.5px); font-weight: 700; line-height: 1.6; transition: opacity 0.35s ease, transform 0.35s ease; }
.fv__cap.is-out { opacity: 0; transform: translateY(6px); }
/* 説明4つは同じ場所に重ねて置き、選ばれた1つだけ見せる。箱の高さがいちばん長い説明に合うので、場面が替わっても下の見出しが上下に動かない */
.fv__cap { display: grid; }
.fv__cap li { grid-area: 1 / 1; align-self: center; }
.fv__cap li[hidden] { display: block !important; visibility: hidden; }
.fv__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fv__k { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(14, 16, 20, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.fv__k small { margin-left: -8px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.fv__k::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.fv .pill { position: relative; height: 44px; padding: 0 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; background: rgba(14, 16, 20, 0.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.fv .pill:hover { border-color: #fff; }
.fv .pill[aria-pressed="true"] { border-color: #fff; background: #fff; color: var(--ink); }
.fv .pill__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--yellow-deep); transform: scaleX(var(--bar, 0)); transform-origin: 0 50%; }
/* 停止ボタン（ページ共通の仕組み。ここでは丸いボタンにして、説明の左に置く） */
.motion-toggle.fv__pause { position: relative; inset: auto; flex: none; justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0; border-color: rgba(255, 255, 255, 0.55); border-radius: 50%; background: rgba(14, 16, 20, 0.66); }
/* 暗い写真の上の操作は、フォーカスの枠を黄色にする。写真の明るい所でも見えるように、黄色い枠の内と外に、濃い縁を敷く（キーボードで選んだ時だけ出る） */
.fv__pick :focus-visible, .fv__skip:focus-visible { outline-color: var(--yellow); box-shadow: 0 0 0 8px rgba(10, 11, 13, 0.85); }

/* 下：大きな見出し（左）と開催情報（右） */
.fv__bottom { position: relative; z-index: 5; display: grid; gap: 16px; align-items: end; }
@media (min-width: 960px) { .fv__bottom { grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; row-gap: 12px; } }
.fv__copy { position: relative; min-width: 0; }
/* 見出しの後ろの影。右へは、見出しの右端（1行目の「、」）まで濃さが届く分だけ延ばす（幅の狭いPCでは、見出しが列いっぱいに来るため多めに。延ばした分は開催情報の箱の後ろに入る） */
.fv__copy::before { content: ""; position: absolute; z-index: -1; left: calc(var(--gutter) * -1); right: calc(-1 * max(14%, 380px - 18vw)); top: -110px; bottom: -220px; pointer-events: none; opacity: calc(0.72 + 0.28 * var(--shade, 1));
  background: linear-gradient(180deg, rgba(6, 8, 12, 0) 0, rgba(6, 8, 12, 0.6) 110px, rgba(6, 8, 12, 0.7) 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 74%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 74%, transparent 100%); }
@media (max-width: 959.98px) { .fv__copy::before { right: calc(var(--gutter) * -1); -webkit-mask-image: none; mask-image: none; } }
/* 対象者：最初に目に入るよう、字を一回り大きくし、黄色の線を引く（線は文字の下。字幅を変えないので、狭い画面でも1行のまま） */
.fv__eyebrow { margin-bottom: clamp(8px, 1.4vh, 16px); font-size: clamp(12px, 3.2vw, 14px); font-weight: 700; letter-spacing: 0.06em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 0.42em; }
/* PC は見出しの字が大きく、字の上の余白（行の範囲）も広い。黄色の線がその範囲に入らないよう、見出しの大きさ（6.1vw）に合わせて間を空ける */
@media (min-width: 960px) { .fv__eyebrow { font-size: clamp(14px, 1.25vw, 19px); margin-bottom: clamp(13px, calc(0.976vw + 4px), 25px); } }
/* スマホは全角10文字（スマートホームから、）が1行に入る大きさ */
.fv__title { margin: 0; font-weight: 900; font-size: clamp(26px, 8.7vw, 60px); line-height: 1.14; letter-spacing: 0.005em; font-feature-settings: "palt"; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.fv__title .line { display: block; white-space: nowrap; }
.fv__title .ch { display: inline-block; will-change: transform, opacity; }
@media (min-width: 960px) { .fv__title { font-size: clamp(54px, 6.1vw, 128px); } }
.fv .swap { position: relative; display: inline-block; height: 1.14em; overflow: hidden; vertical-align: bottom; white-space: nowrap; }
.fv .swap__old { position: absolute; left: 0; top: 0; }
.fv .swap__new, .fv .he { display: inline-block; }
.fv .swap.is-done .swap__old { display: none; }   /* 組み替え前の「スマート」は、動かす時だけ出す */
.fv__lead { margin-top: clamp(8px, 1.6vh, 18px); font-size: clamp(15px, 1.5vw, 22px); font-weight: 700; letter-spacing: 0.02em; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5); }
/* 説明文（参加すると何が分かるか）。小さな字なので、見出しの後ろの影が十分に濃い幅（40字ほど）で折り返す */
.fv__sub { margin-top: clamp(6px, 1.1vh, 12px); max-width: 40em; font-size: clamp(13px, 1.12vw, 16.5px); font-weight: 500; line-height: 1.75; letter-spacing: 0.02em; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
@media (min-width: 960px) { .fv__sub .ph { display: inline-block; } }   /* PC は意味のまとまりごとに折り返す（スマホは行数を増やさないため、そのまま） */
.fv__note { opacity: var(--ui, 1); font-size: 11px; line-height: 1.6; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
@media (min-width: 960px) { .fv__note { grid-column: 1 / -1; } }

.fv__event { opacity: var(--ui, 1); transform: translateY(calc((1 - var(--ui, 1)) * 18px)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 20px 16px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 22px; background: rgba(255, 255, 255, 0.9); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (min-width: 960px) { .fv__event { justify-self: end; width: 344px; } }
/* 申込ボタンは本体の .btn.btn--primary。幅と余白だけ箱に合わせる */
.fv__event .btn--primary { width: 100%; min-height: 56px; padding: 0 16px; font-size: 15.5px; white-space: nowrap; }
.fv__kind { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: #3c4048; }
.fv__speakers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hsp { display: inline-flex; align-items: center; gap: 9px; }
.hsp__photo { width: 38px; height: 38px; overflow: hidden; flex: none; border-radius: 50%; background: var(--silver); box-shadow: 0 0 0 1px rgba(10, 11, 13, 0.16); }
.hsp__photo img { width: 100%; height: 100%; object-fit: cover; }
.hsp__photo--mame img { transform: scale(1.1); }
.hsp__text { display: grid; line-height: 1.3; }
.hsp__text small { font-size: 10.5px; font-weight: 700; color: #4a4e57; }
.hsp__text b { font-size: 15px; }
.hsp__x { font-size: 13px; color: #4a4e57; }
.fv__dates { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-family: var(--font-num); font-size: 18px; line-height: 1.4; }
.fv__date { font-weight: 700; white-space: nowrap; }
.fv__year, .fv__time { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip-closed {
  font-style: normal; font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  margin-left: 8px; padding: 3px 8px; border-radius: 6px; background: var(--ink-2); color: #fff; vertical-align: middle;
}
.is-closed-session { color: var(--muted); }
.is-closed-session > span:first-child { text-decoration: line-through; text-decoration-thickness: 2px; }
.fv__closed { font-size: 15px; font-weight: 700; }
.fv__facts { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11.5px; font-weight: 500; color: #4a4e57; }
.fv__facts li + li::before { content: "・"; margin-left: -10px; margin-right: 0; }

/* 動きの停止ボタン（ファーストビューと、図ごとの小さなボタンの土台） */
.motion-toggle {
  position: absolute; right: var(--gutter); bottom: 64px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(10, 11, 13, 0.42); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.motion-toggle__icon { width: 18px; height: 18px; position: relative; }
.motion-toggle__icon::before, .motion-toggle__icon::after {
  content: ""; position: absolute; top: 4px; width: 3px; height: 10px; background: #fff; border-radius: 1px;
}
.motion-toggle__icon::before { left: 5px; }
.motion-toggle__icon::after { left: 10px; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::before {
  left: 6px; top: 3px; width: 0; height: 0; background: none; border-radius: 0;
  border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::after { display: none; }

@media (max-width: 959.98px) {
  /* 説明文（3〜4行）が入っても、何の催しか・日時・申込ボタンが最初の画面に入るよう、上の余白・行間・箱の中を少しずつ詰める */
  .fv { gap: 14px; padding-top: calc(var(--header-h) + clamp(8px, 1.4vh, 30px)); padding-bottom: 12px; }
  .fv__intro { top: 27%; }
  /* 注記が3〜4行になるので、最下段の影を高く・濃くする */
  .fv__shade::after { height: 220px; background: linear-gradient(0deg, rgba(6, 8, 12, 0.88) 0, rgba(6, 8, 12, 0.76) 100px, rgba(6, 8, 12, 0) 220px); }
  /* えらぶ言葉は1行にして、横に送れるようにする（写真の見える面積を広げる）。
     上下に 10px の余白を取り、同じだけ外へ引く：横に送れる枠は上下も切り抜くので、余白が無いと、キーボードで選んだ時の枠と濃い縁（外へ 8px）が上下で切れる。配置は変わらない */
  .fv__pills { flex-wrap: nowrap; margin: -10px calc(var(--gutter) * -1); padding: 10px var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .fv__pills::-webkit-scrollbar { display: none; }
  .fv__pills > * { flex: none; }
  .fv__k { height: 42px; padding: 0 12px; }
  .fv .pill { height: 42px; padding: 0 15px; font-size: 14px; }
  .motion-toggle.fv__pause { width: 42px; height: 42px; }
  .fv__capline { margin-top: 8px; }
  .fv__cap { padding: 6px 12px; font-size: 13px; }
  .fv__skip { height: 38px; }
  /* 言葉の列と見出しの間に、写真の見える窓を残す（最低 71px＋列の間 14px＝85px。画面が高いほど広げ、132px まで。収まらない分は、ファーストビューが画面より少し長くなる） */
  .fv__bottom { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: clamp(71px, calc(100svh - 690px), 132px); }
  .fv__lead { line-height: 1.5; }
  .fv__sub { line-height: 1.6; }
  /* 開催情報の箱は小さくまとめる */
  .fv__event { gap: 6px; padding: 10px 14px 10px; border-radius: 18px; }
  .fv__kind { font-size: 11.5px; }
  .fv__speakers { flex-wrap: nowrap; gap: 6px; }
  .hsp { gap: 6px; }
  .hsp__photo { width: 30px; height: 30px; }
  .hsp__text small { font-size: 9.5px; white-space: nowrap; }
  .hsp__text b { font-size: 14px; white-space: nowrap; }
  .fv__dates { font-size: 15px; }
  .fv__year { display: none; }
  .fv__time { font-size: 11.5px; }
  .fv__event .btn--primary { min-height: 54px; padding: 0 12px; gap: 10px; letter-spacing: 0.02em; }
  .fv__facts { gap: 0 10px; font-size: 10.5px; }
  .fv__note { font-size: 10.5px; }
  .btn--large { min-height: 60px; padding: 14px 18px 14px 24px; font-size: 16px; letter-spacing: 0.02em; }
  .mid-cta .btn { width: 100%; }
}
/* 幅 360px 未満：登壇者の2人は折り返してよい（箱からはみ出させない）。対象の1行は字を少し小さくして1行に収める */
@media (max-width: 359.98px) { .fv__eyebrow { font-size: 11.5px; letter-spacing: 0.03em; } .fv__speakers { flex-wrap: wrap; } .fv__event .btn--primary { padding: 0 8px; font-size: 14px; gap: 8px; } .fv__event .btn__arrow { transform: scale(0.85); margin: 0 -2px; } .fv .pill { padding: 0 12px; font-size: 13px; } .hsp__text small { font-size: 9px; } }

/* WebGL が使えない時：写真を直接置き、場面は明るさと色みの切り替えで表す */
.fv.no-gl .fv__gl { display: none; }
.fv.no-gl .fv__space img { transition: filter 1.2s ease; }
.fv.no-gl[data-fv-now="out"] .fv__space img { filter: brightness(0.84) saturate(0.92); }
.fv.no-gl[data-fv-now="home"] .fv__space img { filter: brightness(0.6) sepia(0.28) saturate(1.1); }
.fv.no-gl[data-fv-now="night"] .fv__space img { filter: brightness(0.36) sepia(0.3) saturate(0.9); }
.fv.no-gl .fv__stage::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--cover, 0); pointer-events: none; }
/* 写真がまったく出せない時：黒い地のまま、見出し・開催情報・申込ボタンで画面を成立させる。場面をえらぶ言葉（見せるものが無い）と、寄る動きは出さない */
.fv.no-photo .fv__pick { visibility: hidden; }
.fv.no-photo .fv__cam { animation: none; }

.fv.is-still .fv__space img, .fv.is-paused .fv__space img, .fv.is-still .fv__cap, .fv.is-paused .fv__cap, .fv.is-still .pill, .fv.is-paused .pill { transition: none; }

/* 開催後の導線 */
.post-event { background: var(--ink); color: #fff; }
.post-event__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; font-size: 14.5px; }

/* =========================================================
   共通セクション
   ========================================================= */
.section { padding: clamp(88px, 12vw, 168px) 0; position: relative; }
.section--silver { background: var(--silver); }
.section--white { background: #fff; }
.section--night { background: var(--night); color: var(--on-night); }
.section--night a { color: var(--yellow); }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-2);
}
/* 小さな見出しは、白い地では濃いグレーの文字。前に黄色の短い線を置く。暗い地では文字も黄色 */
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--yellow); }
.kicker--night { color: var(--yellow); }
.kicker__time { font-family: var(--font-num); font-size: 12px; letter-spacing: 0.02em; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 999px; }
.h2 { margin-top: 18px; font-size: clamp(30px, 4.3vw, 58px); line-height: 1.28; font-weight: 900; }
.sub-h { margin-top: 10px; font-size: 0.5em; font-weight: 700; color: var(--ink-2); }
.prose { margin-top: 32px; display: grid; gap: 1.1em; font-size: 16.5px; line-height: 2; color: var(--ink-2); }
.lede { margin-top: 24px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.95; color: var(--ink-2); max-width: 46em; }
.note { margin-top: 18px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.sub-title {
  margin-top: clamp(64px, 8vw, 104px); padding-top: 18px; border-top: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-2);
}
.status {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 999px; line-height: 1.4;
}
.status--now { border: 1px solid currentColor; }
.status.status--next { background: var(--yellow); color: var(--ink); }   /* 黄色の地には、必ず濃い文字（まわりの段落の文字色に上書きされないよう、強めに指定する） */
/* 暗い地（黒い章・図の箱）では、フォーカスの枠を黄色にする。白い地では濃い色（:focus-visible の基本）。黄色は白い地で 1.5:1 しか無く、枠として見えない */
.section--night :focus-visible, .bridge :focus-visible, .relay__panel :focus-visible, .day__stage :focus-visible, .kit__tile :focus-visible, .monthly :focus-visible, .post-event :focus-visible { outline-color: var(--yellow); }

/* reveal（JSがある時だけ隠してから出す） */
html.js:not(.reduced-motion) [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js:not(.reduced-motion) [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   2. BRIDGE（夜の章）
   ========================================================= */
.bridge { position: relative; background: var(--night); color: var(--on-night); padding: clamp(96px, 13vw, 180px) 0 clamp(96px, 12vw, 160px); overflow: hidden; }
.bridge__bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.16;
  background: url("../img/hero-pc-lines.webp") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
}
.bridge .container { position: relative; }
.bridge__title { font-size: clamp(32px, 5.2vw, 76px); line-height: 1.32; font-weight: 900; letter-spacing: 0; }
.bridge__lead { margin-top: 32px; max-width: 44em; font-size: clamp(16px, 1.5vw, 19px); line-height: 2; color: var(--on-night-2); }

.layers { margin-top: clamp(64px, 9vw, 120px); display: grid; gap: 32px; align-items: center; }
.layers__scene { position: relative; height: 380px; perspective: 1400px; perspective-origin: 50% 30%; }
.layers__stack {
  position: absolute; left: 50%; top: 52%; width: 250px; height: 250px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(calc(-42deg + var(--p, 1) * 8deg));
}
.plane {
  position: absolute; inset: 0; border-radius: 16px; transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * (10px + var(--p, 1) * 78px)));
  transition: transform 0.12s linear;
}
.plane--base {
  background: linear-gradient(135deg, #c9a97e 0%, #b08e66 55%, #9a7a56 100%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.plane--base::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.25)); }
.plane__plan { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.plane__plan path { fill: none; stroke: rgba(255, 255, 255, 0.92); stroke-width: 9; stroke-linecap: square; }
.plane--infra { background: rgba(253, 202, 91, 0.1); border: 1px solid rgba(253, 202, 91, 0.55); }
.plane__wire { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(253, 202, 91, 0.7)); }
.plane__wire path { fill: none; stroke: var(--yellow); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.plane__wire circle { fill: var(--yellow-soft); }
.plane--tech {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 40px rgba(253, 202, 91, 0.12);
}
.dev {
  position: absolute; left: var(--x); top: var(--y); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 7px rgba(253, 202, 91, 0.28), 0 0 28px rgba(253, 202, 91, 0.85);
}
.layers__legend { display: grid; gap: 14px; }
.legend { padding: 22px 24px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--night-line); }
.legend h3 { margin-top: 10px; font-size: clamp(19px, 1.8vw, 23px); }
.legend p { margin-top: 6px; font-size: 14.5px; line-height: 1.85; color: var(--on-night-2); }
.legend__tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 999px; }
.legend--tech .legend__tag { background: var(--yellow); color: var(--ink); }
.legend--infra .legend__tag { border: 1px solid var(--yellow); color: var(--yellow); }
.legend--base .legend__tag { border: 1px solid #d8c3a5; color: #ead9c1; }
.layers__note { font-size: 12.5px; color: var(--on-night-muted); line-height: 1.8; }
@media (min-width: 960px) {
  .layers { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .layers__scene { height: 560px; grid-row: 1 / span 2; }
  .layers__stack { width: 330px; height: 330px; }
  .layers__note { grid-column: 2; }
}

.shift { margin-top: clamp(96px, 12vw, 168px); }
.shift__title { font-size: clamp(28px, 3.8vw, 52px); line-height: 1.3; }
.shift__grid { margin-top: 40px; display: grid; gap: 16px; }
.shift__col { padding: 32px 28px; border-radius: var(--radius-lg); border: 1px solid var(--night-line); background: var(--night-2); }
.shift__col h3 { margin-top: 18px; font-size: clamp(26px, 2.8vw, 36px); }
.shift__col p { margin-top: 12px; color: var(--on-night-2); line-height: 1.9; }
.shift__col .shift__ex { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--night-line); font-size: 14.5px; color: var(--on-night-muted); }
.shift__col--next {
  background: radial-gradient(120% 120% at 100% 0%, rgba(253, 202, 91, 0.2) 0%, rgba(253, 202, 91, 0.04) 45%, var(--night-2) 75%);
  border-color: rgba(253, 202, 91, 0.45);
}
.shift__col--now .status { color: var(--on-night); }
.shift__arrow { justify-self: center; width: 2px; height: 36px; background: linear-gradient(var(--night-line), var(--yellow)); position: relative; }
.shift__arrow::after { content: ""; position: absolute; left: -5px; bottom: -2px; width: 10px; height: 10px; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(45deg); }
.shift__note { margin-top: 18px; font-size: 12.5px; line-height: 1.8; color: var(--on-night-muted); }
@media (min-width: 960px) {
  .shift__grid { grid-template-columns: 1fr 64px 1fr; align-items: stretch; gap: 0; }
  .shift__col { padding: 44px 40px; }
  .shift__arrow { align-self: center; width: 40px; height: 2px; background: linear-gradient(90deg, var(--night-line), var(--yellow)); }
  .shift__arrow::after { left: auto; right: -2px; bottom: -4px; transform: rotate(-45deg); }
}

/* 設計の前提が、変わる。 */
.premise { margin-top: clamp(96px, 12vw, 168px); }
.premise__title { font-size: clamp(38px, 6.4vw, 96px); line-height: 1.18; font-weight: 900; letter-spacing: 0; color: var(--on-night); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .premise__title { background: linear-gradient(100deg, #fff 40%, var(--yellow) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.premise__list { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--night-line); }
.premise__row { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--night-line); }
.premise__tech { font-size: clamp(14.5px, 1.4vw, 18px); font-weight: 700; color: var(--on-night-muted); letter-spacing: 0.04em; }
.premise__what { font-size: clamp(20px, 2.5vw, 34px); font-weight: 900; line-height: 1.45; color: var(--on-night); font-feature-settings: "palt" 1; }
.premise__arrow { display: none; }
.premise__row--next { border-bottom-color: rgba(253, 202, 91, 0.6); }
.premise__row--next .premise__tech { color: var(--yellow); }
.premise__row--next .premise__what { color: #fff; text-shadow: 0 0 32px rgba(253, 202, 91, 0.38); }
/* 幅の狭いスマホ（374px まで）：見出しと「設計の前提」の行が、言葉のまとまり（.nw）の途中で折り返さないように、字を少しだけ小さくする。375px 以上は変えない。
   実測（直す前）：360px で「未来を読み切ることは、」「完成された正解ではなく、」、320px で、加えて「未来を迎える準備は、」と「設計の前提」の2行が、途中で折り返していた */
@media (max-width: 374.98px) {
  .h2 { font-size: min(30px, 7.8vw); }
  .bridge__title { font-size: min(32px, 8.6vw); }
  .premise__what { font-size: min(20px, 5.9vw); }
}
.premise__text { margin-top: 28px; max-width: 44em; font-size: clamp(15.5px, 1.4vw, 18px); line-height: 2; color: var(--on-night-2); }
@media (min-width: 800px) {
  .premise__row { grid-template-columns: minmax(230px, 0.4fr) 64px 1fr; gap: 0 24px; align-items: center; padding: 30px 0; }
  .premise__arrow { display: block; position: relative; height: 1px; background: linear-gradient(90deg, var(--night-line), var(--yellow)); }
  .premise__arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-right: 1.5px solid var(--yellow); border-bottom: 1.5px solid var(--yellow); transform: rotate(-45deg); }
}

/* =========================================================
   3. 工務店が担う役割
   ========================================================= */
.role__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .role__grid { grid-template-columns: 1.1fr 1fr; gap: 72px; } }
/* 橋渡しの図：次々に登場する技術が、工務店を通って地域の家々へ届く */
.relay { margin: 0; }
.relay__panel {
  position: relative; padding: 26px 22px 22px; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 70% 38%, #24211b 0%, #0c0c0e 62%);
  border: 1px solid rgba(253, 202, 91, 0.24); box-shadow: var(--shadow-2);
}
.relay__svg { width: 100%; height: auto; overflow: visible; }
.relay__label { font-size: 17px; font-weight: 700; fill: #f2f3f5; letter-spacing: 0.04em; }
.relay__sub { font-size: 12px; font-weight: 700; fill: var(--yellow); letter-spacing: 0.1em; }
.relay__lane { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.5; }
.relay__stream circle { fill: #fff; }
/* 点は 44px ごと、言葉は10個で一巡。440px 進むと同じ並びに戻るので、つなぎ目が見えない */
.relay__stream { animation: relayStream 15s linear infinite; }
@keyframes relayStream { to { transform: translateX(440px); } }
.relay__word { font-size: 10px; font-weight: 700; fill: var(--on-night-2); letter-spacing: 0.04em; }
.relay__ticks { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.relay__time { font-size: 10.5px; font-weight: 700; fill: #aab0bb; letter-spacing: 0.1em; }
.relay__cap { font-size: 10.5px; font-weight: 700; fill: #aab0bb; letter-spacing: 0.04em; }
.relay__slow { fill: none; stroke: rgba(255, 255, 255, 0.32); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.relay__slowdot { fill: none; stroke: #9aa1ad; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0.1 300; stroke-dashoffset: 0; animation: relayRun 11s linear infinite; }
.relay__gap { font-size: 11px; font-weight: 700; fill: #aab0bb; letter-spacing: 0.06em; }
.relay__wire { fill: none; stroke: var(--yellow-deep); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
html.js:not(.reduced-motion) .relay .relay__wire { stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s var(--ease) 0.5s; }
html.js:not(.reduced-motion) .relay.is-in .relay__wire { stroke-dashoffset: 0; }
.relay__pulse { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 0.1 300; stroke-dashoffset: 6; filter: drop-shadow(0 0 5px var(--yellow)); animation: relayRun 1.9s linear infinite; }
.relay__pulse--in { animation-duration: 1.5s; }
.relay__pulse--o1 { animation-delay: 0.75s; }
.relay__pulse--o2 { animation-delay: 1s; }
.relay__pulse--o3 { animation-delay: 1.25s; }
@keyframes relayRun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
.relay__halo { animation: relayHalo 3.2s ease-in-out infinite; }
@keyframes relayHalo { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.relay__arrow { fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.relay__hub rect { fill: rgba(253, 202, 91, 0.14); stroke: var(--yellow); stroke-width: 1.5; }
.relay__hub-title { font-size: 21px; font-weight: 900; fill: #fff; letter-spacing: 0.04em; }
.relay__hub-sub { font-size: 12.5px; font-weight: 700; fill: var(--yellow-pale); letter-spacing: 0.02em; }
.relay__house path { fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.relay__house { filter: drop-shadow(0 0 6px rgba(253, 202, 91, 0.7)); }
/* 光が家に届いた瞬間（光の周期 1.9s の終わり）に、家がふわっと明るくなる */
.relay__house--1, .relay__house--2, .relay__house--3 { animation: relayArrive 1.9s linear infinite; }
.relay__house--1 { animation-delay: 0.75s; } .relay__house--2 { animation-delay: 1s; } .relay__house--3 { animation-delay: 1.25s; }
.relay__house--1 path, .relay__house--2 path, .relay__house--3 path { fill: rgba(253, 202, 91, 0); transition: none; }
/* 0% は通常の明るさ（最初の到着前に光らない）。停止は .loop と同じ一時停止で、光と家の周期がずれない */
@keyframes relayArrive { 0% { filter: drop-shadow(0 0 6px rgba(253, 202, 91, 0.7)); } 88% { filter: drop-shadow(0 0 6px rgba(253, 202, 91, 0.7)); } 100% { filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.95)); } }
.relay__house--dim { filter: none; }
.relay__house--dim path { stroke: rgba(255, 255, 255, 0.32); }
.relay figcaption { margin-top: 14px; font-size: 12px; color: var(--muted); }
html.motion-paused .relay__pulse, html.motion-paused .relay__slowdot { opacity: 0; }

.strengths__title { margin-top: clamp(64px, 9vw, 120px); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.4; }
.strengths { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.strength { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; }
/* 番号は濃いグレーの数字。下に黄色の短い線を引く（白い地の上の黄色い数字は読めないため） */
.strength__no { grid-row: 1 / span 2; font-family: var(--font-num); font-size: 40px; font-weight: 600; line-height: 1; color: var(--ink-2); letter-spacing: -0.02em; }
.strength__no::after { content: ""; display: block; width: 32px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--yellow); }
.strength__no small { display: block; margin-bottom: 8px; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.strength h3 { font-size: clamp(21px, 2vw, 26px); }
.strength p { margin-top: 10px; color: var(--ink-2); line-height: 1.95; }
@media (min-width: 960px) {
  .strengths { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 40px; }
  .strength { display: block; padding: 28px 0 0; border-bottom: 0; border-top: 1px solid var(--line-strong); }
  .strength__no { display: block; font-size: 56px; margin-bottom: 26px; }
}

/* =========================================================
   4. スマートホームで、できること（はじめての方へ）
   ========================================================= */
.kicker .status { letter-spacing: 0.08em; color: var(--ink-2); }
.day { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 24px; }
.day__stage {
  position: relative; border-radius: var(--radius-lg); padding: 22px 16px 46px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #2b271e 0%, #0c0c0e 72%);
  border: 1px solid rgba(253, 202, 91, 0.24);
}
.day[data-scene="night"] .day__stage, .day[data-scene="home"] .day__stage { background: radial-gradient(120% 100% at 50% 0%, #17150f 0%, #08090a 72%); }
.house { width: 100%; height: auto; overflow: visible; }
.house__frame path { fill: none; stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.house__frame .house__furn { stroke: rgba(255, 255, 255, 0.3); }
.house__sun circle, .house__sun path, .house__moon { fill: none; stroke: var(--yellow-pale); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.house__sun, .house__moon { transition: opacity 0.6s, transform 0.6s var(--ease); }
.day[data-scene="home"] .house__sun, .day[data-scene="night"] .house__sun,
.day[data-scene="morning"] .house__moon, .day[data-scene="out"] .house__moon { opacity: 0; transform: translateY(14px); }
.hd { color: rgba(255, 255, 255, 0.42); transition: color 0.5s, filter 0.5s; }
.hd rect, .hd path, .hd circle, .hd ellipse { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hd .hd__dot { fill: currentColor; stroke: none; }
.hd .hd__label { font-size: 13px; font-weight: 700; fill: #fff; stroke: none; letter-spacing: 0.04em; opacity: 0; transition: opacity 0.4s; }
.hd .hd__cone { fill: url(#house-cone); stroke: none; opacity: 0; transition: opacity 0.6s; }
.hd .hd__glow { fill: var(--yellow); stroke: none; opacity: 0; filter: blur(8px); transition: opacity 0.6s; }
.hd .hd__wave, .hd .hd__ring, .hd .hd__link { opacity: 0; transition: opacity 0.4s; }
.hd .hd__cur { fill: currentColor; fill-opacity: 0.3; transform-box: fill-box; transition: transform 1.1s var(--ease); transform: scaleX(0.3); }
.hd .hd__cur--l { transform-origin: left center; }
.hd .hd__cur--r { transform-origin: right center; }
.day[data-scene="night"] .hd .hd__cur { transform: scaleX(1); }
.hd.is-on { color: var(--yellow); filter: drop-shadow(0 0 5px rgba(253, 202, 91, 0.75)); }
.hd.is-on .hd__label, .hd.is-on .hd__cone { opacity: 1; }
.hd.is-on .hd__glow { opacity: 0.6; }
.hd.is-on .hd__wave { opacity: 1; animation: hdWave 1.6s ease-in-out infinite; }
@keyframes hdWave { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.hd.is-on .hd__ring { opacity: 1; transform-box: fill-box; transform-origin: center; animation: hdRing 1.8s var(--ease) infinite; }
@keyframes hdRing { 0% { transform: scale(0.5); opacity: 0.9; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
.hd .hd__link { stroke-dasharray: 2 5; }
.hd.is-on .hd__link { opacity: 1; animation: hdLink 1.2s linear infinite; }
@keyframes hdLink { to { stroke-dashoffset: -7; } }

.day__tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-bottom: 14px; }
.day__tab {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  display: grid; gap: 2px; justify-items: center; align-content: center; min-height: 60px; padding: 8px 4px;
  border-radius: 14px; border: 1px solid var(--line-strong); background: var(--paper);
  color: var(--ink-2); font-weight: 700; font-size: 14.5px; line-height: 1.3;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.day__tab .mono { font-size: 12px; font-weight: 600; color: var(--muted); }
.day__tab:hover { border-color: var(--yellow-deep); }
.day__tab.is-active { background: var(--yellow); color: var(--ink); border-color: var(--yellow-deep); }
.day__tab.is-active .mono { color: var(--ink); }
.day__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.day__progress i { display: block; height: 100%; background: var(--yellow-deep); transform-origin: left center; transform: scaleX(var(--day-p, 0)); }
.day.is-manual .day__progress { visibility: hidden; }
.day__panels { margin-top: 22px; }
.day__panel h3 { font-size: clamp(21px, 2.3vw, 30px); line-height: 1.45; }
.day__panel ul { margin-top: 16px; display: grid; gap: 10px; }
.day__panel li { position: relative; padding: 13px 16px 13px 44px; border-radius: 14px; background: var(--paper); color: var(--ink-2); font-weight: 500; font-size: 15px; line-height: 1.6; }
.day__next { margin-top: 14px; padding: 12px 16px 13px; border-radius: 14px; border: 1px dashed var(--yellow-deep); background: var(--yellow-soft); color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.day__next .status { display: inline-block; margin: 0 8px 6px 0; }
.day__panel li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 12px; height: 6px; margin-top: -5px; border-left: 2px solid var(--yellow-deep); border-bottom: 2px solid var(--yellow-deep); transform: rotate(-45deg); }
html.js .day__panel:not(.is-active) { display: none; }
html.js:not(.reduced-motion) .day__panel.is-active { animation: dayIn 0.5s var(--ease) both; }
@keyframes dayIn { from { opacity: 0; transform: translateY(10px); } }
html:not(.js) .day__tabs { display: none; }
html:not(.js) .day__panel + .day__panel { margin-top: 28px; }
@media (min-width: 960px) {
  .day { grid-template-columns: 1.22fr 1fr; gap: 56px; align-items: center; }
  .day__stage { padding: 30px 28px 50px; }
  .day__panels { min-height: 214px; }
}
@media (max-width: 959.98px) { .day__panels { min-height: 200px; } }

.offers { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-strong); }
.offers__title { font-size: clamp(21px, 2.5vw, 32px); line-height: 1.5; }
.offers__list { margin-top: 24px; display: grid; gap: 12px; }
.offers__list li { display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
/* 小さな番号は、黄色の地に濃い数字 */
.offers__list .mono { grid-row: 1 / span 2; align-self: start; width: fit-content; margin-top: 3px; padding: 0 9px; border-radius: 999px; background: var(--yellow); font-size: 13px; font-weight: 700; color: var(--ink); }
.offers__list b { font-size: 17px; line-height: 1.5; color: var(--ink); }
@media (min-width: 960px) {
  .offers__list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .offers__list li { display: block; padding: 26px 26px 28px; }
  .offers__list .mono, .offers__list b { display: block; }
  .offers__list b { margin: 10px 0 6px; }
}

/* =========================================================
   5. 新築にも、今ある住まいにも
   ========================================================= */
.reno__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .reno__grid { grid-template-columns: 1.15fr 1fr; gap: 72px; } }
.reno__figure { margin: 0; }
.reno__figure img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.reno__figure figcaption { margin-top: 10px; font-size: 11.5px; color: #4a4f57; }   /* 写真の影が注記の後ろに掛かるので、--muted（実測 4.13）より少し濃く */
/* =========================================================
   6. 参加して分かること
   ========================================================= */
.learn__list { margin-top: 56px; border-top: 1px solid var(--line-strong); }
.learn__item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.learn__no { font-family: var(--font-num); font-size: 15px; font-weight: 700; color: var(--ink-2); padding-top: 8px; }
.learn__no::after { content: ""; display: block; width: 22px; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--yellow); }
.learn__item h3 { font-size: clamp(22px, 2.6vw, 34px); }
.learn__item p { margin-top: 10px; color: var(--ink-2); line-height: 1.95; max-width: 44em; }
@media (min-width: 960px) {
  .learn__item { grid-template-columns: 160px 1fr; padding: 44px 0; }
  .learn__no { font-size: 64px; font-weight: 600; line-height: 1; padding-top: 0; color: #868c93; letter-spacing: -0.03em; }
  .learn__no::after { width: 40px; height: 5px; margin-top: 16px; }
}
.callout { margin-top: 48px; padding: 28px 28px 28px 32px; border-radius: var(--radius); background: #fff; border-left: 4px solid var(--yellow); box-shadow: var(--shadow-1); display: grid; gap: 8px; line-height: 1.9; }

/* =========================================================
   7. プログラム
   ========================================================= */
.program__time { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 22px; font-weight: 700; }
.program__bar { flex: 1 1 120px; max-width: 360px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--yellow-deep), rgba(253, 202, 91, 0.35)); }
.program__tz { font-size: 13px; color: var(--muted); font-weight: 500; }
.timeline { margin-top: 48px; display: grid; gap: 12px; }
.timeline__item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 26px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.timeline__no { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-family: var(--font-num); font-weight: 700; color: var(--ink); }
.timeline__item h3 { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.5; }
.timeline__who { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.timeline__item p:not(.timeline__who) { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.timeline__item > div > h3:only-child { padding-top: 6px; }
@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .timeline__item { padding: 32px; }
}

/* =========================================================
   8. 講師紹介
   ========================================================= */
.speakers__grid { margin-top: 56px; display: grid; gap: 24px; }
@media (min-width: 960px) { .speakers__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.speaker { padding: 36px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.speaker__photo { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; background: var(--silver); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(10, 11, 13, 0.12); }
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.speaker__photo--mame img { transform: scale(1.1); }
.speaker__role { margin-top: 28px; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.7; }
.speaker__name { margin-top: 6px; font-size: clamp(30px, 3vw, 40px); line-height: 1.3; }
.speaker__name span { font-size: 0.5em; font-weight: 700; margin-left: 0.3em; color: var(--ink-2); }
.speaker__theme { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--paper); border-left: 4px solid var(--yellow); font-weight: 700; line-height: 1.6; }
.speaker__theme span { display: block; font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.speaker__bio { margin-top: 18px; font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.speaker__talks { margin-top: 14px; display: grid; gap: 6px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.speaker__talks li { padding-left: 14px; position: relative; }
.speaker__talks li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 6px; height: 1px; background: var(--muted); }
.speaker__quote { margin: auto 0 0; padding-top: 24px; }
.speaker__quote p { margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--line); font-weight: 700; line-height: 1.9; font-size: 15.5px; }
.speaker__quote p::before { content: "“"; display: block; font-family: var(--font-num); font-size: 44px; line-height: 0.6; color: var(--yellow); margin-bottom: 8px; }
@media (min-width: 960px) {
  .speaker { padding: 48px 44px; }
  .speaker__photo { width: 240px; height: 240px; }
}
.mid-cta { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.mid-cta p { font-family: var(--font-num); font-weight: 700; font-size: 15px; letter-spacing: 0; }

/* =========================================================
   9. mamettoの、いま
   ========================================================= */
.stats { margin-top: 28px; display: grid; gap: 16px; }
.stat { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat dt { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.stat dd { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.stat__num { font-size: clamp(56px, 6vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.stat__unit { font-size: 17px; font-weight: 700; }
.stat__note { margin-top: 12px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* 提案ツール：3つの場面を、暗い地のタイルで見せる */
.kit__lead { margin-top: 28px; font-size: clamp(24px, 3.1vw, 42px); font-weight: 900; line-height: 1.4; font-feature-settings: "palt" 1; }
.kit__lead-sub { display: inline-block; margin-top: 10px; font-size: clamp(15px, 1.4vw, 17.5px); font-weight: 500; line-height: 1.8; color: var(--ink-2); font-feature-settings: "palt" 0; }
.kit { margin-top: 32px; display: grid; gap: 16px; }
.kit__tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); color: var(--on-night);
  background: linear-gradient(160deg, #1a1a1c 0%, #0a0b0d 72%); border: 1px solid rgba(255, 255, 255, 0.08);
}
.kit__tile::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(75% 60% at 88% 100%, rgba(253, 202, 91, 0.16), transparent 70%); }
.kit__head { padding: 30px 26px 0; }
.kit__step { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--yellow-pale); }
.kit__step .mono { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); letter-spacing: 0.04em; }
.kit__head h4 { margin-top: 14px; font-size: clamp(22px, 2.3vw, 30px); color: #fff; }
.kit__head h4 + p { margin-top: 10px; max-width: 34em; font-size: 14.5px; line-height: 1.9; color: var(--on-night-2); }
.kit__visual { position: relative; margin: auto 0 0; padding: 26px 26px 22px; }
.kit__visual figcaption, .kit__caption { position: relative; z-index: 3; margin-top: 16px; font-size: 11.5px; line-height: 1.6; color: var(--on-night-muted); }
/* 01：専用LPの2画面を、手前と奥に重ねる。下はタイルの縁で切る */
.kit__visual--lp { flex: 1; display: flex; flex-direction: column; padding-bottom: 0; }
.kit__visual--lp figcaption { order: -1; margin: 0 0 18px; }
.screens { position: relative; flex: 1; min-height: 372px; }
.screen { position: absolute; overflow: hidden; border-radius: 12px 12px 0 0; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14); transition: transform 0.7s var(--ease), filter 0.7s; }
.screen::before {
  content: ""; display: block; height: 22px;
  background: radial-gradient(circle at 14px 11px, #c3c7cd 3.5px, transparent 4px), radial-gradient(circle at 27px 11px, #c3c7cd 3.5px, transparent 4px), radial-gradient(circle at 40px 11px, #c3c7cd 3.5px, transparent 4px), #eceef0;
}
.screen img { width: 100%; height: auto; }
/* 手前を左上、奥を右下へずらして、タイルの高さいっぱいに重ねる */
.screen--front { left: 0; top: 0; width: 74%; z-index: 2; }
.screen--back { right: 0; top: 26%; width: 66%; z-index: 1; filter: brightness(0.8); }
.kit__tile--lp:hover .screen--front { transform: translateY(-8px); }
.kit__tile--lp:hover .screen--back { transform: translate(6px, -4px); filter: brightness(0.95); }
/* 02：スマートプランナーの流れ */
.pflow { position: relative; padding: 6px 0 2px; }
.pflow ol { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.45; color: #fff; }
.pflow li { display: grid; justify-items: center; align-content: start; gap: 12px; }
.pflow__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #1d1b16; border: 1px solid rgba(253, 202, 91, 0.55); box-shadow: 0 0 26px rgba(253, 202, 91, 0.2), inset 0 0 14px rgba(253, 202, 91, 0.14); }
.pflow__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--yellow-pale); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pflow__line { position: absolute; left: 16.66%; right: 16.66%; top: 35px; height: 1px; background: rgba(253, 202, 91, 0.45); }
.pflow__line i { position: absolute; top: -2px; left: 0; width: 44px; height: 5px; border-radius: 3px; opacity: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); filter: drop-shadow(0 0 6px var(--yellow)); }
.kit__tile--planner.is-live .pflow__line i { animation: pflow 2.4s var(--ease) 0.4s 2; }
@keyframes pflow { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: calc(100% - 44px); opacity: 0; } }
/* 03：資料2枚を、少しずらして重ねる */
.slides { position: relative; aspect-ratio: 16 / 8.6; margin: 0 5%; }
.slide { position: absolute; width: 70%; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 0.7s var(--ease); }
.slide img { width: 100%; height: auto; }
.slide--back { right: 0; top: 0; transform: rotate(4deg); }
.slide--front { left: 0; bottom: 0; z-index: 1; transform: rotate(-3deg); }
.kit__tile--deck:hover .slide--back { transform: rotate(6deg) translate(4%, -4%); }
.kit__tile--deck:hover .slide--front { transform: rotate(-4deg) translate(-3%, 3%); }
@media (min-width: 960px) {
  .kit { grid-template-columns: 1.12fr 1fr; }
  .kit__tile--lp { grid-row: 1 / span 2; }
  .kit__head { padding: 40px 40px 0; }
  .kit__visual { padding: 30px 40px 26px; }
  .kit__visual--lp { padding-bottom: 0; }
  .screens { min-height: 600px; }
}

.monthly { margin-top: 28px; display: grid; gap: 28px; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-lg); background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.monthly::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 202, 91, 0.2), transparent 70%); pointer-events: none; }
.monthly__text { position: relative; }
.monthly__title { font-size: clamp(26px, 3vw, 40px); line-height: 1.35; }
.monthly__text p { margin-top: 16px; color: var(--on-night-2); line-height: 2; }
.monthly__cards { position: relative; display: grid; gap: 14px; }
.mcard { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--night-line); }
.mcard__label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--yellow); }
.mcard h5 { margin-top: 6px; font-size: 21px; }
.mcard p:not(.mcard__label) { margin-top: 6px; font-size: 14px; line-height: 1.8; color: var(--on-night-2); }
.months { margin-top: 16px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.months i { height: 8px; border-radius: 4px; background: rgba(253, 202, 91, 0.28); }
.months i:nth-child(odd) { background: rgba(253, 202, 91, 0.55); }
/* 会員専用の資料サイト（NotePM）のイメージ */
.lib { margin-top: 16px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(0, 0, 0, 0.28); }
.mcard p.lib__search { margin: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 12px; line-height: 1.5; color: var(--on-night-muted); }
.lib__search span { position: relative; flex: none; width: 11px; height: 11px; border: 1.6px solid currentColor; border-radius: 50%; }
.lib__search span::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 6px; height: 1.6px; background: currentColor; transform: rotate(45deg); }
.lib ul { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lib li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--on-night); }
.lib li::before { content: ""; flex: none; width: 10px; height: 13px; border-radius: 2px; border: 1.4px solid var(--yellow); }
.mcard p.mcard__foot { margin-top: 12px; font-size: 11.5px; line-height: 1.75; color: var(--on-night-muted); }

@media (min-width: 960px) { .monthly { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; } }
.also { margin-top: 24px; font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }
.future { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px dashed var(--yellow-deep); background: rgba(255, 255, 255, 0.55); }
.future p:last-child { flex: 1 1 320px; line-height: 1.85; }

/* =========================================================
   10. 開催概要
   ========================================================= */
.overview__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .overview__grid { grid-template-columns: 1fr 2.2fr; gap: 64px; } }
.spec { border-top: 1px solid var(--line-strong); }
.spec > div { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }
.spec dd { line-height: 1.85; font-weight: 500; }
@media (min-width: 720px) { .spec > div { grid-template-columns: 140px 1fr; gap: 16px; padding: 22px 0; } .spec dt { padding-top: 2px; } }
.spec__dates { display: grid; gap: 4px; font-family: var(--font-num); font-weight: 700; font-size: 18px; letter-spacing: 0; }
.spec__no { display: inline-block; padding: 0 9px; border-radius: 999px; background: var(--yellow); font-family: var(--font); font-size: 12.5px; font-weight: 700; line-height: 1.7; color: var(--ink); margin-right: 12px; vertical-align: 2px; }
.spec__sub { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.steps { margin-top: 28px; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.steps .mono { grid-row: 1 / span 2; align-self: start; width: fit-content; margin-top: 2px; padding: 0 9px; border-radius: 999px; background: var(--yellow); font-size: 13px; font-weight: 700; color: var(--ink); }
.steps b { font-size: 16px; color: var(--ink); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .steps li { display: block; padding: 22px 20px; }
  .steps .mono { display: block; margin-bottom: 10px; }
  .steps b { display: block; margin-bottom: 4px; }
}

/* =========================================================
   11. FAQ
   ========================================================= */
.faq__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 1fr 2.2fr; gap: 64px; } }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-weight: 700; font-size: 16.5px; line-height: 1.6;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease); }
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0); }
.qa__a { padding: 0 0 24px; display: grid; gap: 0.8em; color: var(--ink-2); line-height: 1.95; max-width: 46em; }

/* =========================================================
   12. 申込フォーム
   ========================================================= */
.apply { padding-bottom: clamp(96px, 12vw, 168px); }
.apply__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .apply__grid { grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; } .apply__intro { position: sticky; top: calc(var(--header-h) + 40px); } }
.apply .h2 { color: var(--on-night); }
.apply__name { margin-top: 20px; font-size: 14.5px; line-height: 1.85; color: var(--on-night-2); font-weight: 500; }
.apply__points { margin-top: 24px; display: grid; gap: 10px; }
.apply__points li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.8; color: var(--on-night); }
.apply__points li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.apply__terms { margin-top: 24px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--night-line); font-size: 13px; line-height: 1.85; color: var(--on-night-2); }

.apply__panel { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.apply__panel a { color: var(--ink); }
.apply__panel :focus-visible { outline-color: var(--ink); }   /* 黒い章の中でも、白い箱の中は濃い色の枠 */
.form { display: grid; gap: 26px; }
.form__lock { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 26px; }
.form-demo { font-size: 12.5px; line-height: 1.7; padding: 10px 14px; border-radius: 10px; background: #fff3c4; color: #3d3100; }
.form-alert { padding: 16px 18px; border-radius: 12px; background: #fdecea; color: #6d150f; border: 1px solid #f3b8b2; font-size: 14px; line-height: 1.8; }
.form-alert ul { margin-top: 6px; padding-left: 1.2em; list-style: disc; }
.form-alert a { color: #6d150f; font-weight: 700; }
.form-alert--retry { margin-top: 18px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 700; font-size: 15px; padding: 0; }
.field > legend { margin-bottom: 8px; }
.req, .opt { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; vertical-align: 2px; letter-spacing: 0.04em; }
.req { background: var(--ink); color: #fff; }
.opt { background: var(--silver); color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea, .field select {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--silver-2); background: #fbfbfa; font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 120px; line-height: 1.7; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(253, 202, 91, 0.6); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }   /* 例の文字。指定しないとブラウザの標準の灰色で、この欄の地では 4.45（基準 4.5 未満） */
.field.is-invalid input[type="text"], .field.is-invalid input[type="email"], .field.is-invalid input[type="url"], .field.is-invalid textarea { border-color: var(--danger); background: #fff8f7; }
.field__hint { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.field__error { font-size: 13px; font-weight: 700; color: var(--danger); line-height: 1.6; }
.field__error:empty { display: none; }
.field__error::before { content: "！ "; }

.session-options { display: grid; gap: 10px; }
@media (min-width: 560px) { .session-options { grid-template-columns: 1fr 1fr; } }
.session-opt { position: relative; cursor: pointer; }
.session-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.session-opt__body {
  display: grid; gap: 2px; padding: 16px 18px 16px 52px; border-radius: 14px;
  border: 1.5px solid var(--silver-2); background: #fbfbfa; position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.session-opt__body::before { content: ""; position: absolute; left: 18px; top: 22px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--silver-2); background: #fff; }
.session-opt input:checked + .session-opt__body { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.session-opt input:checked + .session-opt__body::before { border: 6px solid var(--ink); }
.session-opt input:focus-visible + .session-opt__body { outline: 3px solid var(--ink); outline-offset: 3px; }
.session-opt__no { justify-self: start; padding: 0 9px; border-radius: 999px; background: var(--yellow); font-size: 12px; font-weight: 700; line-height: 1.7; color: var(--ink); letter-spacing: 0.06em; }
.session-opt__date { font-family: var(--font-num); font-weight: 700; font-size: 17px; letter-spacing: 0; }
.session-opt__time { font-family: var(--font-num); font-size: 14px; color: var(--ink-2); letter-spacing: 0; }
.session-opt__closed { justify-self: start; margin-top: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--ink-2); color: #fff; }
.session-opt.is-closed { cursor: not-allowed; }
.session-opt.is-closed .session-opt__body { opacity: 0.55; background: var(--paper-2); }
.field.is-invalid .session-opt__body { border-color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--silver-2); background: #fbfbfa; font-weight: 700; font-size: 14.5px; transition: all 0.2s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.field.is-invalid .chip span { border-color: var(--danger); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; font-size: 15px; line-height: 1.7; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.field.is-invalid .check input { outline: 2px solid var(--danger); outline-offset: 2px; }

.form__actions { margin-top: 4px; display: grid; gap: 10px; }
.form__actions--split { grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 560px) { .form__actions--split { grid-template-columns: auto 1fr; } }
.btn.is-busy { position: relative; color: transparent; }
.btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2.5px solid rgba(10, 11, 13, 0.25); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.panel-title { font-size: clamp(22px, 2.4vw, 28px); }
.confirm__list { margin-top: 20px; border-top: 1px solid var(--line-strong); }
.confirm__list > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.confirm__list dt { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.confirm__list dd { font-weight: 500; word-break: break-all; }
@media (min-width: 560px) { .confirm__list > div { grid-template-columns: 150px 1fr; gap: 12px; } }

.done { text-align: left; }
.done__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); position: relative; margin-bottom: 20px; }
.done__mark::after { content: ""; position: absolute; left: 19px; top: 15px; width: 16px; height: 24px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
.done__session { margin-top: 14px; font-family: var(--font-num); font-weight: 700; font-size: 19px; letter-spacing: 0; }
.done__mail { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--paper); font-size: 14px; line-height: 1.85; }
.done__mail.is-warn { background: #fdecea; color: #6d150f; }
.done__next { margin-top: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.done__next li { padding-left: 16px; position: relative; }
.done__next li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-deep); }
.done__help { margin-top: 18px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.closed p { margin-top: 12px; line-height: 1.9; }

.demo-ctrl { margin-top: 28px; padding: 16px 18px; border-radius: 12px; border: 1px dashed #c9b25a; background: #fffbe8; font-size: 13px; color: #3d3100; }
.demo-ctrl__title { font-weight: 700; }
.demo-ctrl__opts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.demo-ctrl__opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 32px; }
.demo-ctrl__hint { margin-top: 6px; font-size: 12px; line-height: 1.7; }

/* =========================================================
   フッター・固定CTA・モーダル
   ========================================================= */
.site-footer { background: var(--paper-2); padding: 72px 0 120px; font-size: 14px; }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1.6fr auto; gap: 56px; } .site-footer { padding-bottom: 56px; } }
.site-footer__desc { color: var(--ink-2); line-height: 1.85; max-width: 22em; }
.site-footer__info { display: grid; gap: 16px; }
.site-footer__info dt { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }
.site-footer__info dd { margin-top: 2px; line-height: 1.8; }
.site-footer__links { display: grid; gap: 10px; align-content: start; }
.site-footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 11.5px; line-height: 1.8; color: var(--muted); }

.sticky-cta {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 12px 40px rgba(10, 11, 13, 0.18);
  transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.sticky-cta.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.sticky-cta__info { display: grid; line-height: 1.35; font-family: var(--font-num); letter-spacing: 0; }
.sticky-cta__info b { font-size: 14.5px; }
.sticky-cta__info span { font-size: 12px; color: var(--ink-2); font-family: var(--font); }
.sticky-cta .btn { flex: none; min-height: 44px; padding: 8px 20px; font-size: 14.5px; }
@media (min-width: 960px) { .sticky-cta { display: none; } }

.modal { border: 0; border-radius: var(--radius-lg); padding: 32px; max-width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-2); }
.modal::backdrop { background: rgba(7, 8, 10, 0.5); }
.modal h2 { font-size: 22px; }
.modal p { margin: 14px 0 22px; line-height: 1.9; color: var(--ink-2); }

/* =========================================================
   動きの停止ボタン（図ごと）と、見えていない時・停止中の繰り返しの動き
   ========================================================= */
.motion-toggle--mini { left: auto; right: 12px; bottom: 12px; min-height: 30px; padding: 4px 12px 4px 8px; font-size: 11px; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); }
.motion-toggle--mini .motion-toggle__icon { transform: scale(0.9); }
html.io [data-live]:not(.is-live) .loop, html.motion-paused .loop { animation-play-state: paused !important; }
/* JS が無い時は停止ボタンが働かないので、繰り返しの動きは出さず、ボタンも出さない（ファーストビューは写真・見出し・開催情報をそのまま見せる） */
html:not(.js) .loop { animation: none !important; }
html:not(.js) .relay__slowdot, html.reduced-motion .relay__slowdot { opacity: 0; }
html:not(.js) .motion-toggle { display: none; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* =========================================================
   動きを抑える設定・静止画モード
   ========================================================= */
html.reduced-motion { scroll-behavior: auto; }
html.reduced-motion *, html.reduced-motion *::before, html.reduced-motion *::after {
  animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}
html.reduced-motion .loop { animation: none !important; }
html.reduced-motion .pflow__line i { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* JS のクラスに頼らず、CSS だけでも動きを止める（JS無効の時・main.js を読む前でも効く） */
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .loop { animation: none !important; }
  .pflow__line i { display: none; }
  .relay__slowdot { opacity: 0; }
  .relay .relay__wire { stroke-dashoffset: 0 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
/* ファーストビューの写真が読めない時は、黒い地のまま見出し・開催情報・申込ボタンで画面を成立させる（.fv の background。規則は「1. ファーストビュー」） */

/* スマホ・タブレットではスマホ用の画像を使い、PC用の画像を読ませない（後ろに置いて上書きする） */
@media (max-width: 959.98px) {
  .bridge__bg { background-image: url("../img/hero-sp-lines.webp"); }
}
