/* よびせん電設（業種別サンプル⑨・電気工事 × 若い人の採用）。2026-11-15 試しの1場面 → TOP 1ページ
   色：コンクリートの灰・図面の白・墨・夜＋差し色は蛍光の黄緑（安全ベストの色）だけ（銅の予備は 11/15 オーナー 10a で外した）
   灯りの電球色は 3D の中の光だけ（文字・ボタンには使わない）。黄緑は明るい地の上で字の色にしない */
/* jpfont:start */
@font-face{font-family:"M PLUS 2";src:url(../fonts/mplus2-400.60c52234.woff2) format("woff2");font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:"M PLUS 2";src:url(../fonts/mplus2-700.bfea7564.woff2) format("woff2");font-style:normal;font-weight:700;font-display:swap;}
@font-face{font-family:"M PLUS 2";src:url(../fonts/mplus2-800.9e8ad394.woff2) format("woff2");font-style:normal;font-weight:800;font-display:swap;}
@font-face{font-family:"Space Grotesk";src:url(../fonts/spacegrotesk-500.7725a0ff.woff2) format("woff2");font-style:normal;font-weight:500;font-display:swap;}
@font-face{font-family:"Space Grotesk";src:url(../fonts/spacegrotesk-700.588f296d.woff2) format("woff2");font-style:normal;font-weight:700;font-display:swap;}
/* jpfont:end */

:root {
  --vh: 1vh;
  --night: #121416;
  --night-2: #17191C;
  --conc: #E3E2DD;
  --conc-2: #D6D4CE;
  --paper: #F7F6F2;
  --ink: #1B1C1E;
  --gray: #6E6C67;
  --line: #C4C2BB;
  --light: #E8E7E2;
  --acc: #C9F23A;
  --acc-ink: #1B1C1E;
  --jp: "M PLUS 2", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --en: "Space Grotesk", "M PLUS 2", sans-serif;
  --side: clamp(20px, 7vw, 110px);
}

/* 土台 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--conc); color: var(--ink);
  font-family: var(--jp); font-weight: 400; font-size: 16px; line-height: 1.85; letter-spacing: .02em;
  word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.cl-p, .ph { display: inline-block; } /* .ph は手で決めたまとまり（wbr.py が外さない） */
.nw { white-space: nowrap; }
.num { font-family: var(--en); font-weight: 500; letter-spacing: .04em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ページの頭 */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 3.4vw, 44px); pointer-events: none; transition: color .2s, background-color .4s;
  color: var(--ink);
}
.hd > * { pointer-events: auto; }
body.off .hd, .hd.dark, body.menu-open .hd { color: var(--light); }
.hd.over, .hd.past { background: rgba(227, 226, 221, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hd.over.dark, .hd.past.dark { background: rgba(18, 20, 22, .84); }
body.menu-open .hd { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; white-space: nowrap; }
.logo-j { font-weight: 800; font-size: clamp(19px, 1.7vw, 23px); letter-spacing: .08em; }
.logo-e { font-family: var(--en); font-weight: 500; font-size: 10px; letter-spacing: .24em; margin-top: 5px; opacity: .72; }
.hd-nav { display: flex; gap: clamp(14px, 1.7vw, 28px); margin-left: auto; }
.hd-nav a, .menu-nav a { display: flex; flex-direction: column; text-decoration: none; font-weight: 700; font-size: 13.5px; letter-spacing: .06em; line-height: 1.3; white-space: nowrap; }
.nav-e { font-family: var(--en); font-weight: 500; font-size: 9.5px; letter-spacing: .22em; opacity: .62; }
.hd-nav a { padding: 4px 0; background: linear-gradient(var(--acc), var(--acc)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.hd-nav a:hover { background-size: 100% 2px; }
.hd-btns { display: flex; gap: 10px; white-space: nowrap; }
.hd .hd-menu { display: none; }
.m-close { display: none; }
body.menu-open .m-open { display: none; }
body.menu-open .m-close { display: inline; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 0; /* 角なし（DESIGN §4。札・盤・表とそろえる） */
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid currentColor; background: transparent; transition: background-color .2s, color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-acc { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.btn-acc:hover { transform: translateY(-1px); }
.btn-line:hover { background: rgba(27, 28, 30, .06); }
body.off .hd .btn-line:hover, .hd.dark .btn-line:hover, .sec-work .btn-line:hover, .menu .btn-line:hover { background: rgba(255, 255, 255, .08); }

/* スマホのメニュー（夜の色の全面） */
.menu { position: fixed; inset: 0; z-index: 25; background: var(--night); color: var(--light); display: flex; flex-direction: column; justify-content: center; padding: 96px 24px calc(40px + env(safe-area-inset-bottom)); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.menu.on { opacity: 1; visibility: visible; transition: opacity .25s; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { font-size: 23px; font-weight: 800; padding: 14px 0; border-bottom: 1px solid rgba(232, 231, 226, .18); }
.menu-nav .nav-e { font-size: 11px; color: var(--acc); opacity: 1; margin-bottom: 2px; }
.menu-btns { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.menu-btns .btn { min-height: 52px; font-size: 15px; }

/* 見せ場 */
.show { position: relative; height: calc(var(--vh) * 1190); } /* scene.js の SPAN（1090vh）＋画面1つ分 */
.stage { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; background: var(--night); transition: background-color .2s ease; }
body:not(.off) .stage { background: var(--conc); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.cap { position: absolute; z-index: 5; left: clamp(20px, 6vw, 96px); top: 50%; width: min(34vw, 470px); transform: translateY(-50%); }
.cap-1 { color: var(--light); transition: color .2s ease; width: min(38vw, 520px); }
body:not(.off) .cap-1 { color: var(--ink); }
.lbl { margin: 0 0 14px; font-weight: 700; font-size: 13px; letter-spacing: .14em; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.lbl .num { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 20px; padding: 0 6px; border: 1px solid currentColor; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.lbl::before { content: ""; width: 22px; height: 2px; background: var(--acc); flex: none; }
.h1 { margin: 0; font-weight: 800; font-size: clamp(40px, 4.6vw, 70px); line-height: 1.28; letter-spacing: .04em; }
.h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 3.1vw, 46px); line-height: 1.36; letter-spacing: .04em; }
.h3 { margin: 0 0 10px; font-weight: 800; font-size: 20px; letter-spacing: .06em; }
.lead { margin: 22px 0 0; font-size: clamp(15px, 1.12vw, 17px); line-height: 1.95; }
/* 札は図面の表題欄の形（細い枠・上の欄・影なし。まるめ自動車の札とちがう形に） */
.card { background: rgba(247, 246, 242, .95); border: 1px solid var(--ink); padding: 0 0 22px; color: var(--ink); }
.card .lbl { margin: 0; padding: 10px 24px; border-bottom: 1px solid var(--ink); font-size: 12px; }
.card .lbl::before { width: 8px; height: 8px; }
.card .h2, .card .lead { padding: 0 24px; }
.card .h2 { margin-top: 18px; }
.card .h2 { font-size: clamp(26px, 2.5vw, 38px); }
.card .lead { margin-top: 12px; }
.card .h2 + .lead { margin-top: 14px; }
.cap-n, .cap-x { opacity: 0; visibility: hidden; }
.cap-n { top: auto; bottom: clamp(24px, 6vh, 64px); transform: none; width: min(36vw, 500px); }
.end-btns { padding: 18px 24px 0; display: flex; flex-wrap: wrap; gap: 10px; }

.hint {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 0; cursor: pointer;
  border: 1.5px solid var(--acc); background: rgba(201, 242, 58, .08); color: inherit; font-weight: 700; font-size: 14px; letter-spacing: .06em; white-space: nowrap;
  transition: opacity .5s, transform .5s;
}
.hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 var(--acc); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 242, 58, .7); } 100% { box-shadow: 0 0 0 12px rgba(201, 242, 58, 0); } }
.hint-sp { display: none; }
body:not(.off) .hint { opacity: 0; transform: translateY(6px); pointer-events: none; }

/* 図面の注記：丸い点・引き出し線・下線つきの名前（scene.js が位置を決める） */
.notes { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.note { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; }
.note i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); box-sizing: border-box; }
.note b { position: absolute; left: 0; top: 0; height: 1px; background: var(--ink); transform-origin: 0 50%; }
.note span { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 700; font-size: 12.5px; letter-spacing: .06em; line-height: 1.4; padding: 2px 4px 3px; border-bottom: 1.5px solid var(--ink); background: rgba(247, 246, 242, .9); color: var(--ink); }
.veil { display: none; }
br.pc { display: inline; }

.scroll-hint { position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--en); font-size: 11px; letter-spacing: .3em; opacity: 0; transition: opacity .6s; color: var(--ink); white-space: nowrap; }
.scroll-hint i { width: 1.5px; height: 34px; background: currentColor; transform-origin: top; animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.scroll-hint.on { opacity: .8; }
@media (min-width: 761px) { .scroll-hint { left: auto; right: clamp(20px, 3.4vw, 44px); transform: none; } }

/* 段（見せ場の下） */
.sec { position: relative; z-index: 2; padding: clamp(84px, 10vw, 140px) var(--side); }
.wrap { max-width: 1120px; margin: 0 auto; }
.sec .lead { max-width: 660px; }
.sec-grow, .sec-style, .sec-partner, .sec-company, .sec-faq, .contact { border-top: 1.5px solid var(--ink); }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.rv-in { opacity: 1; transform: none; }

/* 仕事を知る：分電盤（3D の盤と同じ形：灰の箱に白い面、左に主幹、右にブレーカーと番号の札。夜の地） */
.sec-work { background: var(--night); color: var(--light); }
.panel { --board: 520px; position: relative; margin-top: clamp(40px, 5vw, 64px); color: var(--ink); }
.panel-lamp { position: absolute; z-index: 2; width: 12px; height: 12px; border-radius: 50%; background: #2A2D31; border: 1px solid var(--ink); transition: background-color .2s, box-shadow .2s; }
.panel.on-any .panel-lamp { background: var(--acc); box-shadow: 0 0 10px rgba(201, 242, 58, .9); }
.brk { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.brk:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* つまみ：白い箱に暗い取っ手（3D の分岐のブレーカーと同じ） */
.lev { position: relative; flex: none; width: 24px; height: 40px; border: 1.5px solid var(--ink); background: #fff; }
.lev i { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 14px; background: #3B3D42; transition: transform .16s cubic-bezier(.3, 1.4, .5, 1), background-color .16s; }
.brk[aria-pressed="true"] .lev i { transform: translateY(-15px); }
/* 主幹：大きい箱・暗い窓・白い取っ手・「入」「切」 */
.brk-main { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.brk-main .lev { width: 46px; height: 80px; border-width: 1.5px; }
.brk-main .lev::before { content: ""; position: absolute; left: 9px; right: 9px; top: 9px; bottom: 9px; background: #1B1C1E; }
.brk-main .lev i { left: 12px; right: 12px; bottom: 12px; height: 24px; background: #fff; border: 1.5px solid var(--ink); }
.brk-main[aria-pressed="true"] .lev i { transform: translateY(-32px); }
.brk-main .lev b { position: absolute; left: -22px; font-weight: 800; font-size: 12px; line-height: 1; }
.brk-main .lev b:first-child { top: 6px; }
.brk-main .lev b:last-of-type { bottom: 6px; }
.brk-tx { display: flex; flex-direction: column; gap: 4px; }
.brk-t { font-weight: 800; font-size: 17px; letter-spacing: .1em; line-height: 1.3; white-space: nowrap; }
.brk-s { font-size: 12.5px; line-height: 1.6; color: var(--gray); }
/* 回路 */
.circuits { list-style: none; margin: 0; padding: 0; }
.cir-n { flex: none; font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .08em; line-height: 1.6; padding: 0 6px; border: 1px solid var(--ink); background: #fff; transition: background-color .16s; }
.brk[aria-pressed="true"] .cir-n { background: var(--acc); }
.cir-name { font-weight: 800; font-size: 16px; letter-spacing: .04em; line-height: 1.45; }
.cir-spare .cir-name { color: var(--gray); }
.cir-d { margin: 0; font-size: 14px; line-height: 1.85; }
.js .cir-d { opacity: 0; transition: opacity .3s ease, transform .3s ease, max-height .35s ease, margin-top .3s ease; }
.js .cir.on .cir-d { opacity: 1; }

/* PC：盤を左、中身を右（注記の点と引き出し線つき） */
@media (min-width: 1100px) {
  .panel { display: flex; align-items: stretch; }
  .panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--board); background: #CFCCC5; border: 1px solid var(--ink); }
  .panel::after { content: ""; position: absolute; left: 12px; top: 12px; bottom: 12px; width: calc(var(--board) - 24px); background: var(--paper); border: 1px solid var(--ink); }
  .panel-top { position: relative; z-index: 1; flex: 0 0 158px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px 8px 30px 26px; border-right: 1px solid var(--line); margin: 12px 0; }
  .brk-main { width: 124px; }
  .panel-lamp { left: calc(var(--board) - 34px); top: 24px; }
  .circuits { position: relative; z-index: 1; flex: 1; min-width: 0; padding: 22px 0; }
  .cir { display: grid; grid-template-columns: calc(var(--board) - 158px) minmax(0, 1fr); align-items: center; min-height: 62px; }
  .cir .brk { padding: 0 24px 0 22px; min-height: 58px; }
  .cir + .cir .brk::before { content: ""; position: absolute; left: 22px; right: 36px; top: -2px; border-top: 1px solid #E2E0DA; }
  .cir-d { position: relative; padding: 4px 0 4px 64px; color: rgba(232, 231, 226, .9); }
  .cir-d::before { content: ""; position: absolute; left: -12px; top: 50%; width: 60px; height: 1px; background: var(--light); transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s ease; }
  .cir-d::after { content: ""; position: absolute; left: -16px; top: calc(50% - 4px); width: 8px; height: 8px; border: 1.5px solid var(--light); border-radius: 50%; background: var(--night); opacity: 0; transition: opacity .2s; }
  .cir.on .cir-d::after { opacity: 1; }
  .js .cir-d { transform: translateX(-6px); }
  .js .cir.on .cir-d { transform: none; }
  .cir.on .cir-d::before { transform: scaleX(1); }
}
/* スマホ・間の幅：盤は1列。ブレーカーの下に中身がひらく */
@media (max-width: 1099px) {
  .panel { background: #CFCCC5; border: 1px solid var(--ink); padding: 10px; }
  .panel-top { position: relative; background: var(--paper); border: 1px solid var(--ink); border-bottom: 0; padding: 16px 44px 16px 22px; }
  .brk-main { flex-direction: row; gap: 18px; text-align: left; }
  .brk-main .lev { width: 38px; height: 64px; }
  .brk-main .lev::before { left: 7px; right: 7px; top: 7px; bottom: 7px; }
  .brk-main .lev i { left: 10px; right: 10px; bottom: 10px; height: 19px; }
  .brk-main[aria-pressed="true"] .lev i { transform: translateY(-25px); }
  .brk-main .lev b { left: auto; right: -17px; }
  .brk-tx { padding-left: 4px; }
  .panel-lamp { right: 16px; top: 16px; }
  .circuits { background: var(--paper); border: 1px solid var(--ink); }
  .cir { padding: 10px 16px 12px; border-top: 1px solid #E2E0DA; }
  .cir.on .brk { background: none; }
  .js .cir-d { max-height: 0; overflow: hidden; }
  .js .cir.on .cir-d { max-height: 12em; margin-top: 8px; }
  .cir-d { margin-left: 36px; color: var(--ink); }
}

/* 育ち方を知る：資格の道すじ（1本の線とジョイントボックス） */
.sec-grow { background: var(--conc); }
.route { position: relative; margin-top: clamp(44px, 5vw, 72px); }
.route-line { position: absolute; left: 11px; right: 0; top: 10px; height: 2px; background: repeating-linear-gradient(90deg, #8E8B84 0 8px, transparent 8px 14px); }
.route-line i { position: absolute; left: 0; right: 0; top: -2px; height: 6px; background: var(--acc); box-shadow: 0 0 0 1.5px var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.45, 0, .25, 1); }
.js .route.on .route-line i, html:not(.js) .route-line i { transform: scaleX(1); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding-top: 40px; }
.jb { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border: 1.5px solid var(--ink); background: var(--paper); transition: background-color .25s; }
.step-c { height: 100%; border: 1px solid var(--ink); background: var(--paper); transition: opacity .5s, transform .5s; }
.js .route:not(.on) .step-c { opacity: 0; transform: translateY(14px); }
.route.on .jb { background: var(--acc); }
.route .step:nth-child(1) .jb, .route .step:nth-child(1) .step-c { transition-delay: .15s; }
.route .step:nth-child(2) .jb, .route .step:nth-child(2) .step-c { transition-delay: .5s; }
.route .step:nth-child(3) .jb, .route .step:nth-child(3) .step-c { transition-delay: .85s; }
.route .step:nth-child(4) .jb, .route .step:nth-child(4) .step-c { transition-delay: 1.2s; }
.step-y { margin: 0; padding: 9px 16px; border-bottom: 1px solid var(--ink); display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; letter-spacing: .06em; white-space: nowrap; }
.step-y .num { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 20px; padding: 0 5px; border: 1px solid currentColor; font-size: 11px; font-weight: 700; }
.step-w { margin: 0; padding: 14px 16px 0; font-size: 14.5px; line-height: 1.8; }
.step-q { margin: 14px 16px 16px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13.5px; line-height: 1.7; }
.step-qh { display: inline-block; margin-right: 8px; padding: 0 6px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 11px; letter-spacing: .1em; line-height: 1.7; white-space: nowrap; }
.aside { margin: 18px 0 0; font-size: 13px; color: var(--gray); }
.gives-h { margin-top: clamp(52px, 6vw, 76px); }
.gives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.give { border: 1px solid var(--ink); background: var(--paper); padding: 0 0 18px; }
.give p { margin: 12px 18px 0; font-size: 14.5px; line-height: 1.8; }
.give .give-h { margin: 0; padding: 9px 18px; border-bottom: 1px solid var(--ink); display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; letter-spacing: .04em; }
.give-h::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--acc); outline: 1px solid var(--ink); }

/* 働き方を知る・会社を知る：条件の表 */
.sec-style { background: var(--paper); }
.terms { margin: clamp(36px, 4vw, 56px) 0 0; border: 1px solid var(--ink); background: #fff; }
.terms > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.terms > div:last-child { border-bottom: 0; }
.terms dt { padding: 14px 18px; border-right: 1px solid var(--line); background: rgba(27, 28, 30, .035); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.terms dd { margin: 0; padding: 14px 20px; font-size: 15px; line-height: 1.8; }
.sec-company { background: var(--paper); }

/* 元請け・管理会社の方へ：図面の紙（方眼・二重の枠・右下に表題欄） */
.sec-partner { background: var(--conc-2); }
.sheet {
  position: relative; margin: 7px; padding: clamp(28px, 4vw, 56px);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(27, 28, 30, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 28, 30, .05) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 6px;
}
.sheet-body { margin-top: clamp(30px, 3.4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: clamp(24px, 3.4vw, 52px); align-items: end; }
.sheet-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.sheet-notes li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.sn { width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); font-family: var(--en); font-weight: 700; font-size: 13px; }
.sn-h { display: inline-block; margin: 0; padding-bottom: 1px; border-bottom: 1.5px solid var(--ink); font-weight: 800; font-size: 15.5px; letter-spacing: .04em; }
.sheet-notes p:not(.sn-h) { margin: 6px 0 0; font-size: 14.5px; line-height: 1.85; }
.sheet-notes a { text-decoration-color: var(--ink); text-underline-offset: 3px; }
.tblock { width: 100%; border-collapse: collapse; background: #fff; border: 1.5px solid var(--ink); font-size: 13.5px; line-height: 1.6; }
.tblock th { width: 1%; padding: 8px 12px; border: 1px solid var(--ink); background: rgba(27, 28, 30, .05); text-align: left; white-space: nowrap; font-weight: 700; }
.tblock td { padding: 8px 12px; border: 1px solid var(--ink); }
.sheet .acts { margin-top: 28px; }

/* よくある質問 */
.sec-faq { background: var(--conc); }
.faq-cols { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px); }
.qa { border-top: 1px solid var(--ink); }
.qa:last-child { border-bottom: 1px solid var(--ink); }
.qa summary { position: relative; display: block; min-height: 44px; padding: 15px 40px 15px 0; list-style: none; cursor: pointer; font-weight: 700; font-size: 15.5px; line-height: 1.6; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-family: var(--en); font-size: 22px; font-weight: 500; }
.qa[open] summary::after { content: "−"; }
.qa p { margin: 0 0 18px; padding-right: 20px; font-size: 14.5px; line-height: 1.85; }

/* 応募・ご相談 */
.contact { background: var(--paper); }
.contact .h2 { margin-bottom: 40px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.col { border: 1px solid var(--ink); border-radius: 0; padding: 30px 30px 32px; background: #fff; }
.col p { margin: 0; }
.acts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tel { display: flex; flex-direction: column; line-height: 1.3; margin-right: 8px !important; }
.tel .num { font-size: 26px; font-weight: 700; }
.tel small { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* フッター */
.ft { background: var(--ink); color: var(--light); padding: clamp(56px, 7vw, 96px) clamp(20px, 6vw, 96px) 28px; }
.ft-name { margin: 0; font-weight: 800; font-size: clamp(56px, 13.4vw, 210px); line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.ft-cols { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid rgba(232, 231, 226, .3); padding-top: 26px; }
.ft-col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ft-col a { text-decoration: none; }
.ft-col a:hover { color: var(--acc); }
.ft-h { margin: 0 0 6px; font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--acc); }
.ft-lic { margin: 34px 0 0; font-size: 12.5px; letter-spacing: .06em; opacity: .75; }
.ft-credit { margin: 10px 0 0; font-size: 12px; letter-spacing: .1em; opacity: .6; }

/* 知らせ */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* WebGL が使えないとき：見せ場の札を順に並べる */
html.no3d .show { height: auto; }
html.no3d .stage { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; gap: 22px; padding: 110px clamp(20px, 6vw, 96px) 70px; background: var(--conc); }
html.no3d #scene, html.no3d .notes, html.no3d .veil, html.no3d .scroll-hint, html.no3d .hint { display: none; }
html.no3d .cap { position: relative; inset: auto; width: auto; max-width: 640px; transform: none !important; opacity: 1 !important; visibility: visible !important; }

/* 間の幅：入口はメニューにしまう */
@media (max-width: 1099px) {
  .hd-nav { display: none; }
  .hd .hd-menu { display: inline-flex; }
}
/* スマホ */
@media (max-width: 760px) {
  html { scroll-padding-top: 62px; }
  .hd { padding: 12px 14px; gap: 8px; }
  .logo-j { font-size: 17px; }
  .logo-e { font-size: 8.5px; letter-spacing: .2em; margin-top: 4px; }
  .hd-btns { gap: 6px; }
  .hd .btn { position: relative; min-height: 36px; padding: 0 12px; font-size: 12px; letter-spacing: .02em; }
  .hd .btn::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; } /* 見た目は 36px、押せる範囲は 44px */
  .hd-partner { display: none; }
  .cap { left: 18px; right: 18px; width: auto; top: calc(66px + env(safe-area-inset-top)); transform: none; }
  .h1 { font-size: clamp(32px, 9.2vw, 40px); }
  .h2 { font-size: clamp(25px, 7vw, 30px); }
  .lead { margin-top: 12px; font-size: 14.5px; line-height: 1.85; }
  .card { padding: 0 0 16px; }
  .card .lbl { padding: 9px 16px; }
  .card .h2, .card .lead { padding: 0 16px; }
  .card .h2 { margin-top: 14px; }
  .end-btns { padding: 14px 16px 0; }
  .end-btns .btn { flex: 1 1 auto; }
  br.pc { display: none; }
  .veil { display: block; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--vh) * 54); z-index: 4; pointer-events: none; background: linear-gradient(to bottom, var(--night) 0%, var(--night) 74%, rgba(18, 20, 22, 0) 100%); }
  body:not(.off) .veil { background: linear-gradient(to bottom, var(--conc) 0%, var(--conc) 74%, rgba(227, 226, 221, 0) 100%); }
  .note span { font-size: 11.5px; }
  .cap-n, .cap-x { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); }
  .hint { margin-top: 18px; font-size: 13px; padding: 10px 16px 10px 14px; }
  .hint-pc { display: none; }
  .hint-sp { display: inline; }
  .sec { padding: 76px 16px; }
  .panel { padding: 8px; }
  .panel-top { padding: 14px 40px 14px 16px; }
  .brk-s { font-size: 12px; }
  .cir { padding: 9px 14px 11px; }
  .route-line { left: 10px; right: auto; top: 11px; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #8E8B84 0 8px, transparent 8px 14px); }
  .route-line i { left: -2px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; transform-origin: 50% 0; transform: scaleY(0); }
  .js .route.on .route-line i, html:not(.js) .route-line i { transform: scaleY(1); }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 0 0 0 38px; }
  .gives { grid-template-columns: 1fr; }
  .terms > div { grid-template-columns: 1fr; }
  .terms dt { padding: 10px 14px 2px; border-right: 0; background: none; font-size: 12.5px; color: var(--gray); }
  .terms dd { padding: 0 14px 12px; font-size: 14.5px; }
  .sheet { margin: 6px; padding: 24px 16px 26px; }
  .sheet-body { grid-template-columns: 1fr; }
  .tblock { font-size: 13px; }
  .tblock th { padding: 7px 8px; }
  .tblock td { padding: 7px 10px; }
  .faq-cols { grid-template-columns: 1fr; }
  .qa summary { font-size: 15px; }
  .cols { grid-template-columns: 1fr; gap: 18px; }
  .col { padding: 24px 20px 26px; }
  .ft-cols { grid-template-columns: 1fr; }
  .ft-col { gap: 0; }
  .ft-col a { display: flex; align-items: center; min-height: 44px; } /* 押せる高さ 44px（字のリンクが 26px だった。11/15 評価係） */
}
@media (max-width: 760px) and (max-height: 700px) {
  /* 低い画面：覆いを下までのばす（天井と壁の境目の横線が、文のすぐ下に継ぎ目に見えた。11/15 評価係） */
  .veil { height: calc(var(--vh) * 62); background: linear-gradient(to bottom, var(--night) 0%, var(--night) 80%, rgba(18, 20, 22, 0) 100%); }
  body:not(.off) .veil { background: linear-gradient(to bottom, var(--conc) 0%, var(--conc) 80%, rgba(227, 226, 221, 0) 100%); }
  .lead { font-size: 13.5px; line-height: 1.75; }
  .h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hint::before, .scroll-hint i { animation: none; }
  .stage, .cap-1 { transition: none; }
  .js .rv, .route-line i, .step-c, .jb, .lev i, .js .cir-d, .cir-d::before { transition: none !important; }
}
