/* =========================================================
   店舗ポータル製作所 テーマ 2.0.0
   元のファイルは src/css/ にあります（番号順につなげて assets/css/main.css にします）。
   01 基本・ボタン・上のメニュー・フッター   02 トップ：ヒーロー
   03 トップ：業種の引き出し                 04 トップ：そのほかの場面
   05 ほかのページ                           06 管理バー・ページの切り替わり・動きを減らす設定

   色は文房具の役割で決めています。
   紙 / インク（濃い藍）/ 罫線の青 / 銅と真鍮（ロゴ・金具）/ 蛍光ペン / 朱肉（ハンコと注意だけ）
   ========================================================= */

/* ---------- 1. 基本 ---------- */
:root {
	--paper: #F4F6F2;
	--sheet: #FFFFFF;
	--desk: #E6EAE3;
	--ink: #0E1A33;
	--ink-2: #18274A;
	--ink-3: #24365F;
	--rule: #3D63DD;
	--rule-l: #9DB2FF;
	--blue: #2A4BCB;
	--copper: #B5613A;
	--copper-d: #96492A;
	--brass: #D9A066;
	--marker: #FFE24A;
	--stamp: #E0412B;
	--stamp-d: #C2331E;
	--ok: #17804F;
	--line: #D5DAD3;
	--muted: #5B6577;
	--muted-l: #A9B4CC;
	--pen: #1B3C9E;
	--ff: "Zen Kaku Gothic Antique", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
	--ff-hw: "Zen Kurenaido", "Zen Kaku Gothic Antique", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
	--gut: clamp(20px, 5vw, 72px);
	--max: 1320px;
	--hd: 68px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--sec: clamp(76px, 10vw, 152px);
	--vh: 1vh; /* 画面の高さの1%。スマホでアドレスバーが出入りしても変わらない svh が使えるなら、そちらを使う */
}
@supports (height: 100svh) {
	:root { --vh: 1svh; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--hd) + 12px);
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--ff);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.9;
	letter-spacing: 0.04em;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--marker); color: var(--ink); }
:focus-visible { outline: 3px solid var(--rule); outline-offset: 3px; border-radius: 2px; }
[data-tone="dark"] :focus-visible { outline-color: var(--marker); }

p { text-wrap: pretty; }
h1, h2, h3 { font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
strong, b { font-weight: 700; }

/* 見出しの中で、ここでは折り返さない固まり */
.nw { display: inline-block; white-space: nowrap; }

/* 紙に書いた手書きの字 */
.hw { font-family: var(--ff-hw); color: var(--pen); font-weight: 400; letter-spacing: 0.02em; }

.i { display: inline-block; flex-shrink: 0; vertical-align: -0.125em; }
.spin { animation: opSpin 0.9s linear infinite; }
@keyframes opSpin { to { transform: rotate(360deg); } }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 200;
	padding: 10px 16px;
	background: var(--ink);
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap {
	width: 100%;
	max-width: calc(var(--max) + var(--gut) * 2);
	margin-inline: auto;
	padding-inline: var(--gut);
}

/* 場面の見出し（共通） */
.home h2,
.sub h2 {
	font-size: clamp(30px, 4.5vw, 60px);
	font-weight: 900;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

/* ---------- ボタン（押しボタンの形。影は「厚み」） ---------- */
.btn {
	--btn-bg: var(--ink);
	--btn-fg: #fff;
	--btn-edge: #050B1A;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 54px;
	padding: 0.55em 1.6em;
	border: 0;
	border-radius: 6px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	box-shadow: 0 4px 0 var(--btn-edge);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--btn-edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn--ink:hover { --btn-bg: var(--rule); --btn-edge: #1E3A9A; }
.btn--marker { --btn-bg: var(--marker); --btn-fg: var(--ink); --btn-edge: #B89A12; }
.btn--marker:hover { --btn-bg: #FFF09A; }
.btn--line {
	--btn-bg: transparent;
	--btn-fg: currentColor;
	box-shadow: inset 0 0 0 2px currentColor;
}
.btn--line:hover { box-shadow: inset 0 0 0 2px currentColor; background: rgba(255, 255, 255, 0.12); }
.btn--line:active { box-shadow: inset 0 0 0 2px currentColor; }
.btn--lg { min-height: 62px; padding: 0.6em 1.9em; font-size: 16px; }
.btn--sm { min-height: 42px; padding: 0.3em 1.1em; font-size: 13.5px; box-shadow: 0 3px 0 var(--btn-edge); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* 文字のリンク */
.link {
	display: inline-block;
	font-weight: 700;
	color: var(--rule);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}
.link:hover { color: var(--ink); text-decoration-color: var(--marker); }
[data-tone="dark"] .link { color: var(--rule-l); }
[data-tone="dark"] .link:hover { color: #fff; }

/* 見積メモの件数 */
.memo-n {
	display: inline-grid;
	place-items: center;
	min-width: 1.7em;
	height: 1.7em;
	padding: 0 0.4em;
	border-radius: 999px;
	background: var(--stamp-d);
	color: #fff;
	font-size: 0.78em;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0;
}

/* ハンコ */
.hanko {
	display: inline-grid;
	place-items: center;
	width: 2.7em;
	height: 2.7em;
	border: 0.16em solid var(--stamp);
	border-radius: 50%;
	color: var(--stamp);
	font-family: var(--ff);
	font-size: 0.95em;
	font-style: normal;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0;
	text-align: center;
	transform: rotate(-8deg);
	mix-blend-mode: multiply;
}

/* 状態の札 */
.st {
	display: inline-block;
	padding: 0.15em 0.9em;
	border-radius: 4px;
	background: #FFF1B8;
	color: var(--ink);
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color 0.3s, color 0.3s;
}
.st.is-ok { background: var(--ok); color: #fff; }

/* ---------- 2. 上のメニュー ---------- */
.hd {
	--hd-fg: var(--ink);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--hd);
	padding-inline: var(--gut);
	color: var(--hd-fg);
	transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.hd[data-tone="dark"] { --hd-fg: #fff; }
.hd.is-stuck {
	background: rgba(244, 246, 242, 0.88);
	box-shadow: 0 1px 0 rgba(14, 26, 51, 0.1);
	backdrop-filter: blur(14px) saturate(1.3);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.hd.is-stuck[data-tone="dark"] {
	background: rgba(14, 26, 51, 0.86);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hd__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	text-decoration: none;
	min-width: 0;
}
.hd__brand img { width: 40px; height: 40px; flex: none; }
.hd[data-tone="dark"] .hd__brand img { filter: brightness(1.35) saturate(0.9); }
.hd__name {
	display: grid;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: 0.06em;
	white-space: nowrap;
}
.hd__name small {
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.08em;
	opacity: 0.72;
}

.hd__nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.hd__nav a {
	position: relative;
	padding: 6px 0;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.hd__nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--marker);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}
.hd__nav a:hover::after,
.hd__nav a[aria-current="page"]::after { transform: none; }
.hd__nav a[aria-current="page"] { font-weight: 700; }

.hd__act { display: flex; align-items: center; gap: 16px; }
.hd__tel {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 18px;
	font-weight: 900;
	letter-spacing: 0.03em;
	text-decoration: none;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.hd__tel .i { font-size: 17px; }
.hd[data-tone="dark"] .hd__cta { --btn-bg: var(--marker); --btn-fg: var(--ink); --btn-edge: #B89A12; }
.hd__cta[aria-current="page"] { display: none; }
.hd__menu {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-right: -8px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font-size: 26px;
}

@media (max-width: 1180px) {
	.hd__nav { display: none; }
	.hd__menu { display: grid; }
}
@media (max-width: 767px) {
	:root { --hd: 58px; }
	.hd__tel, .hd__cta { display: none; }
	.hd__brand img { width: 34px; height: 34px; }
	.hd__name { font-size: 13.5px; }
	.hd__name small { font-size: 9.5px; }
}

/* スマホのメニュー */
.menu {
	position: fixed;
	inset: 0;
	z-index: 120;
	background: var(--ink);
	color: #fff;
	overflow: auto;
	animation: menuIn 0.3s var(--ease) both;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }
.menu__in {
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-height: 100%;
	padding: calc(var(--hd) + 8px) var(--gut) 40px;
}
.menu__close {
	position: absolute;
	top: calc((var(--hd) - 44px) / 2);
	right: calc(var(--gut) - 8px);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font-size: 28px;
}
.menu__nav { display: grid; }
.menu__nav a {
	display: block;
	padding: 0.72em 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	font-size: clamp(19px, 5.4vw, 24px);
	font-weight: 700;
	text-decoration: none;
}
.menu__nav a[aria-current="page"] { color: var(--marker); }
.menu__tel { display: grid; gap: 2px; margin-top: auto; text-decoration: none; line-height: 1.4; }
.menu__tel small { font-size: 13px; color: var(--muted-l); }
.menu__tel b { font-size: clamp(30px, 9vw, 40px); font-weight: 900; color: var(--marker); letter-spacing: 0.02em; }
.menu__tel span { font-size: 13px; color: var(--muted-l); }

/* スマホの下に出る「電話・見積」 */
.dock { display: none; }
@media (max-width: 767px) {
	.dock {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 70;
		display: grid;
		grid-template-columns: 1fr 1.25fr;
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		background: rgba(14, 26, 51, 0.92);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		transition: transform 0.35s var(--ease);
	}
	.dock.is-off { transform: translateY(110%); }
	.dock a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5em;
		min-height: 48px;
		border-radius: 6px;
		font-size: 14.5px;
		font-weight: 700;
		text-decoration: none;
		white-space: nowrap;
	}
	.dock__tel { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
	.dock__cta { background: var(--marker); color: var(--ink); }
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	body.op-contact { padding-bottom: 0; }
}

/* ---------- 最後の「ご相談」 ---------- */
.cta {
	background: var(--ink);
	color: #fff;
	padding: var(--sec) 0;
	position: relative;
	overflow: hidden;
}
.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(157, 178, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(157, 178, 255, 0.07) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: linear-gradient(120deg, transparent 20%, #000 100%);
	-webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 100%);
	pointer-events: none;
}
.cta__in {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.cta__text p { margin-top: 22px; max-width: 30em; color: #D5DCEC; }
.cta__act { display: grid; gap: 26px; justify-items: start; }
.cta__tel { display: grid; text-decoration: none; line-height: 1.3; }
.cta__tel small { font-size: 14px; font-weight: 700; color: var(--muted-l); }
.cta__tel b {
	font-size: clamp(38px, 5.6vw, 76px);
	font-weight: 900;
	letter-spacing: 0.01em;
	color: var(--marker);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.cta__tel span { font-size: 13.5px; color: var(--muted-l); }
.cta__tel:hover b { color: #fff; }
@media (max-width: 860px) {
	.cta__in { grid-template-columns: 1fr; }
	.cta__act .btn { width: 100%; }
}

/* ---------- フッター ---------- */
.ft {
	background: #080F22;
	color: #C5CEE2;
	padding: 56px 0 28px;
	font-size: 14px;
}
.ft__in {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 32px clamp(24px, 4vw, 64px);
	max-width: calc(var(--max) + var(--gut) * 2);
	margin-inline: auto;
	padding-inline: var(--gut);
}
.ft__brand { display: flex; gap: 14px; align-items: center; align-self: start; }
.ft__brand img { width: 48px; height: 48px; filter: brightness(1.3) saturate(0.9); }
.ft__brand p { display: grid; line-height: 1.5; }
.ft__brand b { color: #fff; font-size: 16px; font-weight: 900; letter-spacing: 0.06em; }
.ft__brand span { font-size: 12px; }
.ft__nav { display: grid; gap: 6px; align-content: start; }
.ft a { text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--marker); text-underline-offset: 0.3em; }
.ft__info { display: grid; gap: 2px; align-content: start; }
.ft__info p:first-child a { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: 0.03em; }
.ft__rel { display: grid; gap: 6px; align-content: start; }
.ft__rel p { font-size: 12px; color: #8492B0; }
.ft__rel a { display: inline-flex; align-items: center; gap: 4px; }
.ft__copy {
	max-width: calc(var(--max) + var(--gut) * 2);
	margin: 44px auto 0;
	padding: 20px var(--gut) 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 12px;
	color: #8492B0;
}
@media (max-width: 900px) {
	.ft__in { grid-template-columns: 1fr 1fr; }
	.ft__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.ft__in { grid-template-columns: 1fr; }
}

/* ---------- 3. トップ：ヒーロー（紙がそろって、ひとつの画面になる） ----------
   .gl      … WebGL2 が使えて、動きを減らす設定でないとき（<html> に付く）。スクロールで場面が進む
   .is-live … 3Dの最初の1コマが描けたとき（CSSの紙を消す）
   --k      … 暗さ（0=紙の世界、1=画面の世界）。スクリプトが動かす
   --bg     … そのときの地の色（机の色 → インクの色）。スクリプトが動かす
   ------------------------------------------------------------------ */
.hero {
	--k: 0;
	position: relative;
	background: var(--bg, var(--desk));
}
.hero__stage {
	position: relative;
	height: calc(var(--vh) * 100);
	min-height: 600px;
	overflow: hidden;
}
.gl .hero { height: 340vh; }
.gl .hero__stage { position: sticky; top: 0; }

/* 上のメニューの後ろを、地の色でやわらかく抜く（紙が重なっても、メニューの文字が読める） */
.hero__stage::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 2;
	height: calc(var(--hd) + 70px);
	background: linear-gradient(var(--bg, var(--desk)) 34%, transparent);
	pointer-events: none;
}

/* 方眼紙の線（暗くなると消える） */
.hero__bg {
	position: absolute;
	inset: 0;
	opacity: calc(1 - var(--k));
	background-image: linear-gradient(rgba(14, 26, 51, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 26, 51, 0.055) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: radial-gradient(120% 90% at 70% 50%, #000 30%, transparent 85%);
	-webkit-mask-image: radial-gradient(120% 90% at 70% 50%, #000 30%, transparent 85%);
}

/* 3D（生のWebGL2）。最初の1コマが描けるまでは透明 */
.hero__gl {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.9s ease;
	pointer-events: none;
}
.hero.is-live .hero__gl { opacity: 1; }

/* 3Dが使えないときの紙（CSSだけ） */
.hero__papers { position: absolute; inset: 0; z-index: 1; transition: opacity 0.6s ease; }
.hero.is-live .hero__papers { opacity: 0; }
.hp {
	position: absolute;
	width: clamp(110px, 15vw, 230px);
	aspect-ratio: 1 / 1.414;
	border-radius: 2px;
	background:
		linear-gradient(var(--ink), var(--ink)) 50% 9% / 40% 4% no-repeat,
		radial-gradient(circle at 50% 50%, transparent 52%, var(--stamp) 54% 66%, transparent 68%) 84% 92% / 16% 11.3% no-repeat,
		repeating-linear-gradient(180deg, transparent 0 9.2%, rgba(61, 99, 221, 0.34) 9.2% 10%) 50% 42% / 82% 62% no-repeat,
		#fff;
	box-shadow: 0 1px 0 #C9CFC6, 0 22px 44px rgba(14, 26, 51, 0.16);
}
.hp--1 { right: 7%; top: 13%; transform: rotate(9deg); }
.hp--2 { right: 24%; top: 30%; transform: rotate(-12deg) scale(0.86); }
.hp--3 { right: 4%; top: 52%; transform: rotate(-5deg) scale(1.1); }
.hp--4 { right: 30%; top: 64%; transform: rotate(14deg) scale(0.7); }
.hp--5 { right: 40%; top: 8%; transform: rotate(-20deg) scale(0.6); opacity: 0.7; }
.hp--6 { right: 16%; top: 76%; transform: rotate(4deg) scale(0.8); }

/* 「そろえて」のときに紙が並ぶ場所（見えない。位置だけ測る）と、最後の画面の枠 */
.hero__wall,
.hero__screen {
	position: absolute;
	z-index: 1;
	right: var(--gut);
	top: calc(50% + var(--hd) * 0.3);
	width: min(56vw, 1000px);
	height: min(calc(var(--vh) * 66), 620px);
	transform: translateY(-50%);
}
.hero__wall { visibility: hidden; }
.hero__screen {
	display: grid;
	grid-template: 46px minmax(0, 1fr) / 128px minmax(0, 1fr);
	overflow: hidden;
	border-radius: 16px;
	background: #070E22;
	box-shadow: 0 0 0 1px rgba(157, 178, 255, 0.28), 0 0 0 7px #050A1A, 0 0 0 8px rgba(157, 178, 255, 0.16), 0 50px 120px rgba(0, 0, 0, 0.5);
	color: #fff;
	opacity: var(--scr, 0);
	visibility: hidden;
}
.gl .hero__screen { visibility: visible; }
.hero__screen-bar {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	font-size: 13.5px;
}
.hero__screen-bar b { font-weight: 700; letter-spacing: 0.08em; }
.hero__screen-bar span {
	padding: 0.1em 0.8em;
	border-radius: 3px;
	background: var(--marker);
	color: var(--ink);
	font-size: 11px;
	font-weight: 700;
}
.hero__screen-nav {
	display: grid;
	gap: 3px;
	align-content: start;
	padding: 12px 10px;
	border-right: 1px solid rgba(255, 255, 255, 0.09);
}
.hero__screen-nav li {
	padding: 0.34em 0.8em;
	border-radius: 6px;
	color: var(--muted-l);
	font-size: 12.5px;
	line-height: 1.6;
}
.hero__screen-nav li.is-on { background: rgba(255, 226, 74, 0.14); color: var(--marker); font-weight: 700; }
.hero__screen-main { position: relative; }

/* 文字 */
.hero__copy {
	position: absolute;
	z-index: 3;
	left: var(--gut);
	top: calc(50% + var(--hd) * 0.3);
	width: min(66vw, 1320px);
	transform: translateY(-50%);
}
.hero__copy--2,
.hero__copy--3 { display: none; width: min(33vw, 480px); }
.hero__copy--3 { color: #fff; }
.gl .hero__copy {
	display: block;
	opacity: var(--o, 0);
	transform: translateY(calc(-50% + var(--y, 0px)));
	will-change: opacity, transform;
}
.gl .hero__copy--1 { --o: 1; }
.gl .hero__copy.is-off { pointer-events: none; }
.gl .hero__copy--1.is-off { visibility: hidden; }

/* 文字の後ろを、机の色でやわらかく抜く（紙が文字に重なっても読める） */
.hero__copy--1::before {
	content: "";
	position: absolute;
	inset: -70px -110px -70px -200px;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(230, 234, 227, 0.96) 58%, rgba(230, 234, 227, 0));
	pointer-events: none;
}

.hero__title {
	font-size: clamp(38px, 5.9vw, 128px);
	font-weight: 900;
	line-height: 1.17;
	letter-spacing: 0;
}
.hero__lead {
	max-width: 33em;
	margin-top: clamp(18px, 2.3vw, 34px);
	font-size: clamp(15px, 1.2vw, 20px);
	line-height: 2;
}
.hero__lead strong {
	font-weight: 900;
	background: linear-gradient(transparent 56%, var(--marker) 56% 94%, transparent 94%);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}
.hero__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 30px;
	margin-top: clamp(22px, 2.6vw, 40px);
}
.hero__tel { display: grid; line-height: 1.25; text-decoration: none; }
.hero__tel small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.hero__tel b {
	font-size: clamp(24px, 2.4vw, 34px);
	font-weight: 900;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}
.hero__tel:hover b { color: var(--rule); }

.hero__big {
	font-size: clamp(34px, 4.7vw, 78px);
	font-weight: 900;
	line-height: 1.22;
	font-feature-settings: "palt";
}
.hero__sub { max-width: 24em; margin-top: 18px; font-size: clamp(14.5px, 1.15vw, 17px); }

/* 「下へ動かすと…」の案内（スクロールで場面が進むときだけ） */
.hero__hint {
	position: absolute;
	z-index: 3;
	left: var(--gut);
	bottom: 30px;
	display: none;
	align-items: center;
	gap: 12px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--muted);
	opacity: var(--hint, 1);
}
.gl .hero.is-live .hero__hint { display: flex; }
.hero__hint i {
	position: relative;
	display: block;
	width: 1.5px;
	height: 34px;
	background: rgba(14, 26, 51, 0.2);
	overflow: hidden;
}
.hero__hint i::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 50%;
	background: var(--ink);
	animation: hintDrop 1.8s var(--ease) infinite;
}
@keyframes hintDrop { from { transform: translateY(-100%); } to { transform: translateY(200%); } }

@media (max-width: 899px) {
	.hero__stage { min-height: 560px; }
	.hero__copy,
	.hero__copy--2,
	.hero__copy--3 {
		left: var(--gut);
		right: var(--gut);
		top: calc(var(--hd) + calc(var(--vh) * 3.2));
		width: auto;
		transform: none;
	}
	.gl .hero__copy { transform: translateY(var(--y, 0px)); }
	.hero__copy--1::before { inset: -40px -30px -50px; }
	.hero__title { font-size: clamp(36px, 10.6vw, 64px); }
	.hero__lead { line-height: 1.85; }
	.hero__tel { display: none; }
	.hero__big { font-size: clamp(34px, 9.4vw, 56px); }
	.hero__wall,
	.hero__screen {
		left: var(--gut);
		right: var(--gut);
		top: auto;
		bottom: calc(84px + calc(var(--vh) * 2));
		width: auto;
		height: calc(var(--vh) * 46);
		transform: none;
	}
	.hero__screen { grid-template: 40px 36px minmax(0, 1fr) / minmax(0, 1fr); border-radius: 14px; }
	.hero__screen-nav {
		display: flex;
		gap: 2px;
		padding: 5px 8px;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.09);
		overflow: hidden;
		white-space: nowrap;
	}
	.hero__screen-nav li { padding: 0.1em 0.7em; font-size: 12px; }
	.hero__hint { bottom: 22px; }
	.hp { width: 24vw; }
	.hp--1 { top: 58%; right: 8%; }
	.hp--2 { top: 66%; right: 46%; }
	.hp--3 { top: 76%; right: 20%; }
	.hp--4 { top: 82%; right: 62%; }
	.hp--5 { top: 54%; right: 66%; }
	.hp--6 { top: 88%; right: 2%; }
}
@media (max-width: 767px) {
	.hero__hint { bottom: 16px; }
}
@media (max-width: 899px) and (max-height: 620px) {
	.hero__lead { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- 4. トップ：業種の引き出し ----------
   左：引き出しの壁（全業種）　右：選んだ業種の見本の画面
   幅1023px以下：グループは開け閉め式・見本は下から出る板（.js のときだけ）
   ------------------------------------------------ */
.cab {
	position: relative;
	padding: var(--sec) 0;
	background: var(--ink);
	color: #fff;
}
.cab__head h2 { max-width: 16em; }
.cab__lead { max-width: 36em; margin-top: 22px; color: #D5DCEC; }
.cab__lead b {
	margin-right: 0.08em;
	font-size: 2.1em;
	font-weight: 900;
	line-height: 1;
	color: var(--marker);
	font-variant-numeric: tabular-nums;
}
.cab__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; }
.cab__search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(520px, 100%);
	height: 56px;
	padding: 0 16px;
	border-radius: 6px;
	background: #fff;
	color: var(--ink);
	box-shadow: 0 4px 0 #050B1A;
}
.cab__search .i { font-size: 20px; color: var(--muted); }
.cab__search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 16px;
}
.cab__search:focus-within { outline: 3px solid var(--marker); outline-offset: 3px; }
.cab__search input::placeholder { color: #8A94A8; }
.cab__found { font-size: 14px; font-weight: 700; color: var(--marker); }
.cab__jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cab__jump a {
	padding: 0.2em 0.95em;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	color: #CFD8EE;
	font-size: 12.5px;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.cab__jump a:hover { background: #fff; border-color: #fff; color: var(--ink); }

.cab__body {
	display: grid;
	grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
	gap: clamp(24px, 3.4vw, 60px);
	align-items: start;
	margin-top: clamp(36px, 4vw, 56px);
}

/* キーボードで来たときだけ見える近道 */
.cab__skip {
	position: absolute;
	left: -9999px;
	padding: 8px 14px;
	border-radius: 6px;
	background: var(--marker);
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.cab__skip:focus { position: static; display: inline-block; margin-bottom: 12px; }
.cab__bench:focus { outline: none; }

/* グループの札（真鍮の銘板） */
.cab__group { margin-bottom: 26px; scroll-margin-top: calc(var(--hd) + 16px); }
.cab__plate button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 0.42em 0.9em;
	border: 0;
	border-radius: 3px;
	background: linear-gradient(180deg, #E6B885 0%, #CF9A64 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 2px 0 rgba(0, 0, 0, 0.35);
	color: #2A1708;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	text-align: left;
	cursor: default;
}
.cab__plate button:disabled { color: #2A1708; opacity: 1; }
.cab__plate small {
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	opacity: 0.75;
}
.cab__plate small::after { content: " 業種"; font-weight: 500; }

.cab__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
	gap: 6px;
	margin-top: 8px;
}

/* 引き出し：紺の前板・真鍮の枠に入った紙の名札・真鍮のつまみ */
.dw {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	min-height: 52px;
	padding: 7px 10px 7px 8px;
	border: 0;
	border-radius: 4px;
	background: linear-gradient(180deg, #24376A 0%, #1A2A52 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.38), 0 1px 0 rgba(0, 0, 0, 0.45);
	color: var(--ink);
	text-align: left;
	transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.dw__label {
	flex: 1;
	min-width: 0;
	padding: 0.32em 0.62em;
	border: 1.5px solid var(--brass);
	border-radius: 2px;
	background: #FBFCF8;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.38;
	letter-spacing: 0.01em;
	word-break: auto-phrase;
	transition: background-color 0.2s;
}
.dw__knob {
	flex: none;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #F6D9B0, #BC864F 58%, #7A4F27);
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.55);
}
.dw:hover {
	transform: translateY(-2px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.38), 0 10px 18px rgba(0, 0, 0, 0.45);
}
.dw:hover .dw__label { background: #fff; }
/* 開いた引き出し：前へ出て、上から中の紙の端が見える */
.dw[aria-pressed="true"] {
	z-index: 2;
	transform: translateY(7px) scale(1.035);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.38), 0 -9px 0 #070E22, 0 20px 30px rgba(0, 0, 0, 0.6);
}
.dw[aria-pressed="true"]::before {
	content: "";
	position: absolute;
	left: 7px;
	right: 7px;
	top: -8px;
	height: 7px;
	border-radius: 2px 2px 0 0;
	background: repeating-linear-gradient(90deg, #fff 0 4px, #C9D2E3 4px 5px);
}
.dw[aria-pressed="true"] .dw__label { background: var(--marker); font-weight: 700; }

.cab__none {
	margin: 8px 0 28px;
	padding: 26px 24px;
	border: 2px dashed rgba(255, 226, 74, 0.6);
	border-radius: 6px;
	color: #E4E9F5;
}
.cab__none-t { margin-bottom: 6px; font-size: clamp(18px, 2vw, 24px); font-weight: 900; color: #fff; line-height: 1.5; }
.cab__none .btn { margin-top: 18px; }
.cab__more { margin-top: 8px; font-size: 14px; color: var(--muted-l); }

/* ---------- 見本の画面（右） ---------- */
/* 画面の高さが足りないときは、見本の中だけを上下に動かせる */
.cab__bench {
	position: sticky;
	top: calc(var(--hd) + 20px);
	max-height: calc(calc(var(--vh) * 100) - var(--hd) - 32px);
	margin: -12px;
	padding: 12px;
	overflow: hidden auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.cab__close { display: none; }
.cab__shade { display: none; }

.pv__lead { font-size: 13px; color: var(--muted-l); }
.pv__papers { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 8px 0 12px; }
.pv__papers li {
	padding: 0.18em 0.85em 0.1em;
	border-radius: 1px;
	background: #fff;
	box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.3);
	color: var(--pen);
	font-family: var(--ff-hw);
	font-size: 15.5px;
	line-height: 1.6;
	transform: rotate(-1.6deg);
}
.pv__papers li:nth-child(2n) { transform: rotate(1.3deg); }
.pv__papers li:nth-child(3n) { transform: rotate(-0.6deg); }
.pv__to {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--marker);
}
.pv__to::before {
	content: "";
	width: 1.5px;
	height: 22px;
	margin-left: 14px;
	background: var(--marker);
}
/* JSが動かないときの、文字だけの見本 */
.pv__plain { display: grid; gap: 4px; margin: 6px 0 14px; }
.pv__plain li { padding: 0.5em 0.9em; border-radius: 4px; background: rgba(255, 255, 255, 0.07); font-size: 14px; }

.pv__screen {
	overflow: hidden;
	border-radius: 14px;
	background: #F4F6FB;
	box-shadow: 0 0 0 7px #050A1A, 0 0 0 8px rgba(157, 178, 255, 0.3), 0 30px 30px -16px rgba(0, 0, 0, 0.65);
	color: var(--ink);
}
.pv__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 44px;
	padding: 6px 14px;
	background: var(--ink-2);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
}
.pv__bar b { font-weight: 700; }
.pv__tag {
	flex: none;
	padding: 0.1em 0.8em;
	border-radius: 3px;
	background: var(--marker);
	color: var(--ink);
	font-size: 11px;
	font-weight: 700;
}
.pv__ui { display: grid; grid-template-columns: minmax(0, 186px) minmax(0, 1fr); min-height: 338px; }
.pv__nav {
	display: grid;
	gap: 3px;
	align-content: start;
	padding: 10px 8px;
	border-right: 1px solid #DFE4EE;
	background: #E9EDF5;
}
.pv__nav button {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 0.5em 0.5em;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--ink);
	font-size: 12px;
	line-height: 1.38;
	letter-spacing: 0.01em;
	text-align: left;
}
.pv__nav button .i { flex: none; font-size: 15px; color: var(--rule); }
.pv__nav button span { flex: 1; min-width: 0; word-break: auto-phrase; }
.pv__nav button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(14, 26, 51, 0.14); font-weight: 700; }
.pv__nav button[aria-pressed="false"] { color: #8A94A8; }
.pv__nav button[aria-pressed="false"] span { text-decoration: line-through; }
.pv__nav button[aria-pressed="false"] .i { color: #A9B2C4; }
.pv__nav button:hover { background: #fff; }
.pv__ck {
	position: relative;
	flex: none;
	width: 16px;
	height: 16px;
	border: 1.5px solid #B4BED2;
	border-radius: 4px;
}
[aria-pressed="true"] > .pv__ck { border-color: var(--rule); background: var(--rule); }
[aria-pressed="true"] > .pv__ck::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(42deg);
}
/* 部品が飛んでくる間は名前を隠し、着いたら出す／スマホは順に出す */
.pv__nav button.is-wait { opacity: 0; }
.pv__nav button.is-in { animation: navPop 0.32s var(--ease) both; }
.pv.is-seq .pv__nav button { animation: navPop 0.4s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 320ms); }
@keyframes navPop { from { opacity: 0; transform: scale(0.86); } }

.pv__panels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: minmax(150px, 1fr);
	gap: 8px;
	align-content: start;
	padding: 10px;
}
.pv__empty { grid-column: 1 / -1; align-self: center; padding: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.pv__note { margin-top: 20px; font-size: 12.5px; line-height: 1.8; color: var(--muted-l); }
.pv__note a { color: var(--rule-l); }
.pv__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.pv__act .btn { flex: 1 1 auto; }
.pv__act .btn.is-added { --btn-bg: #fff; --btn-edge: #9AA6C0; }
.pv__night { margin-top: 14px; font-size: 13px; color: #D5DCEC; }
.pv__night a { color: var(--marker); font-weight: 700; text-underline-offset: 0.25em; }

/* 見本の画面の部品（形だけの絵） */
.wg {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 10px;
	border: 1px solid #E1E6EF;
	border-radius: 10px;
	background: #fff;
	animation: wgIn 0.5s var(--ease) both;
	animation-delay: calc(var(--i) * 60ms + var(--late, 0) * 560ms);
}
@keyframes wgIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.wg__t { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; font-weight: 700; line-height: 1.4; letter-spacing: 0.01em; }
.wg__t .i { margin-top: 0.12em; font-size: 14px; color: var(--rule); }
.wg__t span { word-break: auto-phrase; }
.wg__b { position: relative; flex: 1; display: grid; gap: 6px; align-content: center; min-height: 70px; }
.wg .b { display: block; height: 7px; border-radius: 4px; background: #E1E6EF; }
.wg .b--d { background: #B9C2D6; }
.sk-row { display: flex; align-items: center; gap: 6px; }
.sk-row .b { flex: none; }
.sk-row .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #CBD6F5; }
.sk-row .pill { flex: none; width: 24px; height: 10px; margin-left: auto; border-radius: 5px; background: #D7EBDD; }
.sk-row .pill--y { background: var(--marker); }
.sk-row .ck { flex: none; width: 13px; height: 13px; border: 1.5px solid #B4BED2; border-radius: 3px; }
.sk-row .ck.on { border-color: var(--ok); background: var(--ok); }
.sk-row--m .amt { flex: none; width: 34px; height: 7px; margin-left: auto; border-radius: 4px; background: #B9C2D6; }
.sk-row--t { margin-top: 2px; padding-top: 7px; border-top: 1.5px solid var(--ink); }
.sk-row--t .amt--t { width: 46px; height: 10px; background: var(--rule); }
.sk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.sk-cal i { aspect-ratio: 1 / 0.8; border-radius: 3px; background: #EEF1F7; }
.sk-cal .on--r { background: var(--rule); }
.sk-cal .on--y { background: var(--marker); }
.sk-cal .on--c { background: var(--brass); }
.sk-shift { display: grid; gap: 4px; }
.sk-shift div { display: grid; grid-template-columns: 22px repeat(7, 1fr); gap: 3px; }
.sk-shift i { height: 11px; border-radius: 3px; background: #EEF1F7; }
.sk-shift .nm { background: #B9C2D6; }
.sk-shift .on { background: var(--rule); }
.sk-shift div:nth-child(2n) .on { background: var(--brass); }
.sk-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; align-items: start; }
.sk-board div { display: grid; gap: 4px; padding: 4px; border-radius: 5px; background: #EEF1F7; }
.sk-board .cd { height: 16px; border-radius: 3px; background: #fff; box-shadow: 0 1px 1px rgba(14, 26, 51, 0.16); border-left: 3px solid var(--rule); }
.sk-board .cd--s { height: 11px; border-left-color: var(--marker); }
.sk-board .cd--ok { border-left-color: var(--ok); }
.sk-chart { display: flex; align-items: flex-end; gap: 5px; height: 76px; padding-bottom: 1px; border-bottom: 1.5px solid #B9C2D6; }
.sk-chart i { flex: 1; border-radius: 3px 3px 0 0; background: #C3CEF2; }
.sk-chart .hi { background: var(--rule); }
.sk-doc {
	position: relative;
	display: grid;
	gap: 5px;
	width: 78%;
	margin-inline: auto;
	padding: 8px 9px 9px;
	border: 1px solid #C9D0DE;
	background: #fff;
	box-shadow: 2px 2px 0 #DDE2EC;
}
.sk-doc .ttl { height: 6px; width: 44%; margin: 0 auto 2px; background: var(--ink); border-radius: 1px; }
.sk-doc .b { height: 5px; border-radius: 1px; }
.sk-doc .tot { display: flex; justify-content: flex-end; gap: 4px; margin-top: 2px; }
.sk-doc .tot i { width: 18px; height: 8px; border: 1px solid #8E97A8; }
.sk-doc .tot i:last-child { width: 30px; background: #E4EBFF; border-color: var(--rule); }
.sk-doc .seal { position: absolute; right: 6px; bottom: 16px; width: 15px; height: 15px; border: 2px solid var(--stamp); border-radius: 50%; opacity: 0.85; }
.sk-stock { display: grid; grid-template-columns: 26px 1fr; gap: 6px; align-items: center; }
.sk-stock .nm { height: 7px; border-radius: 4px; background: #B9C2D6; }
.sk-stock span { position: relative; height: 12px; border-radius: 6px; background: #EEF1F7; }
.sk-stock span i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--ok); }
.sk-stock span b { position: absolute; left: 30%; top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
.sk-stock.low span i { background: var(--stamp); }
.sk-map { width: 100%; height: auto; }
.sk-map path { stroke: var(--rule); }
.sk-map circle { fill: #fff; stroke: var(--rule); stroke-width: 2.5; }
.sk-map .go { fill: var(--stamp); stroke: #fff; }
.sk-msg { display: grid; gap: 5px; }
.sk-msg i { height: 15px; border-radius: 8px 8px 8px 2px; background: #E1E6EF; }
.sk-msg .r { justify-self: end; border-radius: 8px 8px 2px 8px; background: #C3CEF2; }
.sk-photo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sk-photo i { aspect-ratio: 1 / 0.82; border-radius: 3px; background: linear-gradient(160deg, #C3CEF2 0 55%, #9DB2FF 55%); }
.sk-photo .p1 { background: linear-gradient(200deg, #E9D3B8 0 50%, var(--brass) 50%); }
.sk-photo .p2 { background: linear-gradient(140deg, #D7EBDD 0 60%, #8FCBA8 60%); }
.sk-clock { display: grid; gap: 7px; justify-items: center; }
.sk-clock b { font-size: 25px; font-weight: 900; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.sk-clock div { display: flex; gap: 6px; }
.sk-clock i { width: 38px; height: 16px; border-radius: 4px; background: #E1E6EF; }
.sk-clock i.on { background: var(--rule); }
.sk-flow { display: flex; align-items: center; justify-content: center; gap: 3px; }
.sk-flow span {
	padding: 0.5em 0.45em;
	border: 1.5px solid #B4BED2;
	border-radius: 5px;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	color: #8A94A8;
	white-space: nowrap;
}
.sk-flow span.on { border-color: var(--ok); background: var(--ok); color: #fff; }
.sk-flow i { width: 9px; height: 1.5px; background: #B4BED2; }
.sk-report { display: grid; grid-template-columns: 1fr 34px; gap: 8px; align-items: center; }
.sk-report div { display: grid; gap: 5px; }
.sk-report .pic { height: 34px; border-radius: 4px; background: linear-gradient(160deg, #C3CEF2 0 55%, #9DB2FF 55%); }
.sk-file { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 6px; padding-top: 5px; }
.sk-file i { position: relative; height: 22px; border-radius: 0 3px 3px 3px; background: #E9D3B8; }
.sk-file i::before { content: ""; position: absolute; left: 0; top: -5px; width: 42%; height: 5px; border-radius: 3px 3px 0 0; background: var(--brass); }
.sk-file i:nth-child(2n) { background: #C3CEF2; }
.sk-file i:nth-child(2n)::before { background: var(--rule-l); }

/* 引き出しから画面へ飛ぶ部品 */
.fly {
	position: fixed;
	z-index: 150;
	padding: 0.4em 0.7em;
	border-radius: 6px;
	background: var(--marker);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	will-change: transform, opacity;
}


/* ---------- 幅1023px以下 ---------- */
@media (max-width: 1023px) {
	.cab__body { display: block; }
	.cab__jump { display: none; }
	.cab__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cab__group { margin-bottom: 8px; }
	.dw { min-height: 50px; padding: 6px 8px 6px 7px; gap: 7px; }
	.dw__label { font-size: 12px; padding: 0.3em 0.5em; }
	.dw__knob { width: 13px; height: 13px; }

	/* JSが動くとき：グループは開け閉め式、見本は下から出る板 */
	.js .cab__plate button { cursor: pointer; min-height: 48px; }
	.js .cab__plate button::after {
		content: "";
		flex: none;
		width: 9px;
		height: 9px;
		margin: -4px 4px 0 2px;
		border: solid #2A1708;
		border-width: 0 2.5px 2.5px 0;
		transform: rotate(45deg);
		transition: transform 0.25s var(--ease);
	}
	.js .cab__plate small { margin-left: auto; }
	.js .cab__group.is-open .cab__plate button::after { transform: rotate(225deg); margin-top: 4px; }
	.js .cab__group:not(.is-open) .cab__grid { display: none; }
	.js .cab__wall.is-filter .cab__grid { display: grid; }
	.js .cab__group.is-open,
	.js .cab__wall.is-filter .cab__group { margin-bottom: 20px; }

	.cab__bench { position: static; max-height: none; margin: 32px 0 0; padding: 0; overflow: visible; }
	.js .cab__bench {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto;
		z-index: 100;
		max-height: calc(var(--vh) * 90);
		margin: 0;
		padding: 22px var(--gut) calc(22px + env(safe-area-inset-bottom));
		overflow: auto;
		overscroll-behavior: contain;
		border-radius: 18px 18px 0 0;
		background: var(--ink-2);
		box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
		transform: translateY(105%);
		visibility: hidden;
		transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
	}
	.js .cab__bench.is-open { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
	.js .cab__close {
		position: sticky;
		top: 0;
		z-index: 2;
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		margin: -8px -8px -36px auto;
		border: 0;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.14);
		color: #fff;
		font-size: 22px;
	}
	.js .cab__shade {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99;
		background: rgba(4, 8, 20, 0.62);
	}
	.pv__lead { padding-right: 48px; }
}
@media (max-width: 520px) {
	.pv__ui { grid-template-columns: minmax(0, 128px) minmax(0, 1fr); min-height: 0; }
	.pv__nav { padding: 8px 5px; }
	.pv__nav button { font-size: 11px; padding: 0.5em 0.35em; gap: 4px; }
	.pv__nav button .i { display: none; }
	.pv__panels { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; padding: 8px; }
	.pv__panels .wg:nth-child(n + 4) { display: none; }
	.wg__b { min-height: 56px; }
	.pv__act .btn { flex-basis: 100%; }
}

/* ---------- 5. トップ：紙のまま、画面に（左右に動かして見比べる） ---------- */
.swap { padding: var(--sec) 0; background: var(--paper); }
.swap__in {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: clamp(32px, 6vw, 100px);
	align-items: center;
}
.swap__text p { max-width: 30em; margin-top: 24px; }
.swap__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.swap__tabs button {
	min-height: 46px;
	padding: 0.3em 1.3em;
	border: 2px solid var(--ink);
	border-radius: 6px;
	background: transparent;
	font-size: 14.5px;
	font-weight: 700;
	transition: background-color 0.2s, color 0.2s;
}
.swap__tabs button:hover { background: rgba(14, 26, 51, 0.07); }
.swap__tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.swap__text .swap__how {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 18px;
	font-size: 13.5px;
	color: var(--muted);
}
.swap__how .i { margin-top: 0.36em; font-size: 17px; color: var(--ink); }

.swap__stage { container-type: inline-size; min-width: 0; }
.cmp {
	--x: 52%;
	position: relative;
	max-width: 560px;
	margin-inline: auto;
	aspect-ratio: 10 / 10.2;
	font-size: clamp(7.5px, 2.4vw, 14px); /* cqw が使えないブラウザ用 */
	font-size: clamp(7.5px, 2.72cqw, 15px);
	line-height: 1.5;
	letter-spacing: 0.02em;
	-webkit-user-select: none;
	user-select: none;
}
.cmp__a,
.cmp__b { position: absolute; inset: 0; }
.cmp__a { clip-path: inset(-40px calc(100% - var(--x)) -60px -40px); }
.cmp__b { clip-path: inset(-40px -40px -60px var(--x)); }
.cmp__bar {
	position: absolute;
	top: -14px;
	bottom: -14px;
	left: var(--x);
	width: 3px;
	margin-left: -1.5px;
	background: var(--ink);
	pointer-events: none;
}
.cmp__grip {
	position: absolute;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: -26px 0 0 -26px;
	border-radius: 50%;
	background: var(--marker);
	box-shadow: 0 4px 0 var(--ink), 0 0 0 2px var(--ink);
	color: var(--ink);
	font-size: 24px;
}
.cmp__range {
	position: absolute;
	inset: -14px 0;
	width: 100%;
	height: calc(100% + 28px);
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	touch-action: pan-y;
}
.cmp:has(.cmp__range:focus-visible) .cmp__grip { outline: 3px solid var(--rule); outline-offset: 4px; }
.cmp__lab {
	position: absolute;
	top: -32px;
	padding: 0.05em 0.9em;
	border-radius: 3px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.7;
}
.cmp__lab--a { left: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.cmp__lab--b { right: 0; background: var(--ink); color: #fff; }

/* 見本の帳票（紙と画面で、同じ並び） */
.fm {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85em;
	padding-bottom: 5.5%;
	overflow: hidden;
}
.fm > * { margin-inline: 6%; flex: none; }
.fm__head { display: flex; align-items: center; height: 3.3em; margin-top: 1.2em; }
.fm__title { font-weight: 700; }
.fm__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55em 1em; }
.fm__f { display: flex; align-items: center; gap: 0.6em; min-height: 2.15em; min-width: 0; }
.fm__f--wide { grid-column: 1 / -1; }
.fm__l { flex: none; font-size: 0.78em; white-space: nowrap; }
.fm__v { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm .hw { font-size: 1.24em; line-height: 1.25; }
.fm__tr { display: grid; grid-template-columns: var(--fm-grid); min-height: 2.15em; }
.fm__tr > span { display: flex; align-items: center; min-width: 0; padding: 0.15em 0.5em; }
.fm__tr--h > span { justify-content: center; font-size: 0.8em; font-weight: 700; padding-inline: 0.2em; white-space: nowrap; }
.fm__tr .num { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.fm__tr .fm__ck { justify-content: center; padding-inline: 0; }
.fm__sums { display: grid; gap: 0.3em; justify-items: end; }
.fm__sum { display: flex; align-items: baseline; justify-content: flex-end; gap: 0.9em; }
.fm__sum > span { font-size: 0.82em; }
.fm__sum b { font-variant-numeric: tabular-nums; }
.fm__sum b small { margin-left: 0.25em; font-family: var(--ff); font-size: 0.62em; font-weight: 500; color: var(--muted); }
.fm .fm__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; margin-top: auto; }
.fm__note { flex: 1; display: flex; align-items: baseline; gap: 0.6em; min-width: 0; }

/* 紙 */
.fm--paper { background: #fff; color: #222B3D; box-shadow: 0 1px 0 #C9CFC6, 0 22px 44px rgba(14, 26, 51, 0.16); }
.fm--paper .fm__head { justify-content: center; }
.fm--paper .fm__title {
	padding: 0 0.7em 0.1em;
	border-bottom: 3px double currentColor;
	font-size: 1.5em;
	letter-spacing: 0.42em;
	text-indent: 0.42em;
}
.fm--paper .fm__f { border-bottom: 1px solid #8E97A8; }
.fm--paper .fm__l { color: #4A5468; }
.fm--paper .fm__table { border: 1.5px solid #3A4458; }
.fm--paper .fm__tr { border-bottom: 1px solid #8E97A8; }
.fm--paper .fm__tr:last-child { border-bottom: 0; }
.fm--paper .fm__tr > span { border-right: 1px solid #8E97A8; }
.fm--paper .fm__tr > span:last-child { border-right: 0; }
.fm--paper .fm__tr--h { background: #EEF0EC; }
.fm--paper .fm__sum { min-width: 56%; justify-content: space-between; padding: 0 0.4em; border-bottom: 1px solid #8E97A8; }
.fm--paper .fm__sum--total { border-bottom: 3px double #3A4458; font-weight: 700; }
.fm--paper .fm__note { border-bottom: 1px solid #8E97A8; padding-bottom: 0.1em; }
.fm__stampbox {
	position: relative;
	flex: none;
	display: grid;
	place-items: center;
	width: 4.8em;
	height: 4.9em;
	padding-top: 1.1em;
	border: 1px solid #8E97A8;
}
.fm__stampbox small {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	border-bottom: 1px solid #8E97A8;
	font-size: 0.64em;
	line-height: 1.7;
	text-align: center;
	color: #4A5468;
}
.fm__stampbox .hanko { font-size: 0.86em; }

/* 画面 */
.fm--screen { background: #F1F4FA; color: var(--ink); box-shadow: 0 22px 44px rgba(14, 26, 51, 0.24); border-radius: 0.9em; }
.fm--screen .fm__head {
	justify-content: space-between;
	height: 3.3em;
	margin: 0 0 1.2em;
	padding: 0 6%;
	background: var(--ink);
	color: #fff;
}
.fm--screen .fm__title { font-size: 1.08em; letter-spacing: 0.06em; }
.fm__save { padding: 0.25em 1.1em; border-radius: 0.4em; background: var(--marker); color: var(--ink); font-size: 0.8em; font-weight: 700; }
.fm--screen .fm__f { padding: 0 0.7em; border: 1px solid #C9D2E2; border-radius: 0.5em; background: #fff; }
.fm--screen .fm__l { font-size: 0.72em; color: var(--muted); }
.fm--screen .fm__v { display: flex; align-items: center; font-weight: 500; }
.fm__v--select::after {
	content: "";
	margin-left: auto;
	border: 0.32em solid transparent;
	border-top-color: #7A859B;
	transform: translateY(0.18em);
}
.fm__v--date::after {
	content: "";
	width: 0.9em;
	height: 0.9em;
	margin-left: auto;
	border: 0.12em solid #7A859B;
	border-top-width: 0.3em;
	border-radius: 0.15em;
}
.fm--screen .fm__table { overflow: hidden; border: 1px solid #C9D2E2; border-radius: 0.6em; background: #fff; }
.fm--screen .fm__tr { border-bottom: 1px solid #E3E8F0; }
.fm--screen .fm__tr:last-child { border-bottom: 0; }
.fm--screen .fm__tr--h { background: #E6ECF7; }
.fm--screen .fm__tr--ng { background: #FFEFEB; }
.fm__sw { display: block; width: 1.4em; height: 1.4em; border: 0.12em solid #B4BED2; border-radius: 50%; }
.fm__sw.is-on { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 0.2em #fff; }
.fm__sw--ng.is-on { border-color: var(--stamp); background: var(--stamp); }
.fm--screen .fm__sum b { font-size: 1.05em; }
.fm--screen .fm__sum--total b { font-size: 1.4em; font-weight: 900; }
.fm__auto {
	padding: 0.1em 0.75em;
	border-radius: 999px;
	background: #E1E9FF;
	color: var(--rule);
	font-size: 0.68em;
	font-style: normal;
	font-weight: 700;
	white-space: nowrap;
}
.fm--screen .fm__v--text { padding: 0.25em 0.7em; border: 1px solid #C9D2E2; border-radius: 0.5em; background: #fff; }
.fm__bell { font-size: 0.86em; font-weight: 700; color: var(--rule); line-height: 1.5; }
.fm--tenken .fm__bell { color: var(--stamp); }
.fm__status {
	flex: none;
	display: grid;
	padding: 0.55em 1.1em;
	border-radius: 0.5em;
	background: var(--ok);
	color: #fff;
	font-size: 0.86em;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}
.fm__status small { font-size: 0.82em; font-weight: 500; opacity: 0.92; }
.fm--seikyu .fm__status { background: var(--rule); }
.fm--tenken .fm__status { background: var(--stamp-d); }

@media (max-width: 900px) {
	.swap__in { grid-template-columns: 1fr; }
	.swap__stage { margin-top: 28px; }
}

/* ---------- 6. トップ：押してみる ---------- */
.toys { padding: 0 0 var(--sec); background: var(--paper); }
.toys__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.2vw, 32px);
	margin-top: clamp(32px, 4vw, 60px);
}
.toy {
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	gap: 10px;
	padding: clamp(20px, 2vw, 30px);
	border: 2px solid var(--ink);
	border-radius: 6px;
	background: var(--sheet);
	box-shadow: 7px 7px 0 var(--ink);
}
.toy h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 900; line-height: 1.45; }
.toy > p { font-size: 14.5px; line-height: 1.8; }
.toy__stage { display: grid; align-content: center; gap: 12px; min-height: 250px; margin: 6px 0 10px; }
.toy .btn { width: 100%; }
.toy .toy__tip { font-size: 13px; color: var(--muted); text-align: center; min-height: 54px; display: grid; place-items: center; }
.toys__note { margin-top: 34px; font-size: 14px; color: var(--muted); }

/* ハンコ */
.tp {
	position: relative;
	display: grid;
	gap: 5px;
	padding: 14px 16px 16px;
	border: 1px solid #B9C0CC;
	background: #fff repeating-linear-gradient(180deg, transparent 0 27px, rgba(61, 99, 221, 0.12) 27px 28px);
	box-shadow: 3px 4px 0 var(--line);
}
.tp__t { font-size: 15px; font-weight: 700; letter-spacing: 0.4em; text-align: center; }
.tp__r { display: flex; align-items: baseline; gap: 12px; padding-right: 76px; border-bottom: 1px solid #8E97A8; font-size: 12px; }
.tp__r span { flex: none; color: #4A5468; }
.tp__r b { font-size: 17px; line-height: 1.5; font-weight: 400; }
.tp__box {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: grid;
	place-items: center;
	width: 64px;
	height: 70px;
	padding-top: 16px;
	border: 1px solid #8E97A8;
	background: #fff;
}
.tp__box small { position: absolute; top: 0; left: 0; right: 0; border-bottom: 1px solid #8E97A8; font-size: 10px; line-height: 1.6; text-align: center; color: #4A5468; }
.hanko--big { width: 44px; height: 44px; font-size: 13px; opacity: 0; transform: rotate(-8deg) scale(2.6); }
.toy.is-on .hanko--big { opacity: 0.92; transform: rotate(-8deg) scale(1); transition: transform 0.22s cubic-bezier(.5, 0, .9, .5), opacity 0.12s; }
.toy.is-on .tp { animation: thud 0.3s 0.2s; }
@keyframes thud { 30% { transform: translateY(3px) rotate(-0.4deg); } 60% { transform: translateY(-1px); } }
.tl { display: grid; gap: 8px; }
.tl__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	border: 1px solid #C9D2E2;
	border-radius: 8px;
	background: #F1F4FA;
	font-size: 13.5px;
	font-weight: 700;
}
.tl__toast {
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--ink);
	color: #fff;
	font-size: 12.5px;
	line-height: 1.6;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.3s 0.25s, transform 0.3s 0.25s var(--ease);
}
.toy.is-on .tl__toast { opacity: 1; transform: none; }

/* 打刻 */
.tc { display: grid; gap: 14px; }
.tc__now { display: grid; justify-items: center; line-height: 1.2; }
.tc__now span {
	font-size: clamp(46px, 5vw, 64px);
	font-weight: 900;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}
.tc__now small { font-size: 12px; color: var(--muted); min-height: 1.6em; }
.tc__tbl { display: grid; border: 1px solid #C9D2E2; border-radius: 8px; overflow: hidden; background: #F1F4FA; }
.tc__tbl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 14px; border-bottom: 1px solid #DFE4EE; font-size: 13.5px; }
.tc__tbl div:last-child { border-bottom: 0; }
.tc__tbl dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.tc__sum { background: #fff; }
.toy.is-done .tc__sum { background: var(--marker); }
.toy.is-done .tc__sum dd { font-weight: 900; }

/* 在庫 */
.ts { display: grid; gap: 12px; }
.ts__name { display: grid; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.ts__name small { font-size: 12px; font-weight: 500; color: var(--muted); }
.ts__ctl { display: flex; align-items: center; justify-content: center; gap: 18px; }
.ts__btn {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 0 var(--ink);
	font-size: 22px;
	transition: transform 0.12s, box-shadow 0.12s;
}
.ts__btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.ts__btn[disabled] { opacity: 0.35; }
.ts__num { min-width: 1.6em; font-size: 54px; font-weight: 900; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.ts__bar { position: relative; height: 14px; border-radius: 7px; background: #E3E8F0; }
.ts__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--ok); transition: width 0.3s var(--ease), background-color 0.3s; }
.ts__bar b { position: absolute; left: 37.5%; top: -4px; bottom: -4px; width: 2.5px; background: var(--ink); }
.toy.is-low .ts__bar i { background: var(--stamp); }
.ts__list { padding: 9px 12px; border: 1px solid #C9D2E2; border-radius: 8px; background: #F1F4FA; font-size: 13px; }
.ts__list p { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ts__empty { color: #8A94A8; }
.ts__item { font-weight: 700; color: var(--stamp); animation: navPop 0.3s var(--ease) both; }
.toy.is-low .ts__list { border-color: var(--stamp); background: #FFF3F0; }

@media (max-width: 1000px) {
	.toys__grid { grid-template-columns: 1fr; max-width: 520px; }
	.toy__stage { min-height: 0; }
	.toy .toy__tip { min-height: 0; }
}

/* ---------- 7. トップ：作れる仕組みの例（青焼きの設計図） ---------- */
.wall {
	position: relative;
	padding: var(--sec) 0;
	background: var(--blue);
	color: #fff;
}
.wall::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	pointer-events: none;
}
.wall > .wrap { position: relative; }
.wall__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; }
.wall__head p { max-width: 30em; color: #E1E7FB; }
.wall__groups { display: grid; gap: clamp(20px, 2.4vw, 34px); margin-top: clamp(32px, 4vw, 56px); }
.wall__g { display: grid; grid-template-columns: 11.5em minmax(0, 1fr); gap: 6px 28px; align-items: baseline; padding-top: clamp(16px, 2vw, 26px); border-top: 1px solid rgba(255, 255, 255, 0.3); }
.wall__g h3 { font-size: 13.5px; font-weight: 500; color: #D3DCFA; line-height: 1.6; }
.wall__g ul { display: flex; flex-wrap: wrap; gap: 0.1em 0.2em; }
.wd {
	padding: 0.06em 0.36em;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: #fff;
	font-size: clamp(19px, 2.5vw, 34px);
	font-weight: 900;
	line-height: 1.5;
	letter-spacing: 0.01em;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.38);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.26em;
	transition: color 0.15s, background-color 0.15s, text-decoration-color 0.15s;
}
.wd:hover { text-decoration-color: var(--marker); background: rgba(255, 255, 255, 0.1); }
.wd[aria-pressed="true"] { background: var(--marker); color: var(--ink); text-decoration-color: transparent; }
.wd[aria-pressed="true"]::before { content: "✓ "; font-size: 0.72em; }
.wall__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 40px;
	margin-top: clamp(30px, 4vw, 52px);
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.wall__desc { flex: 1 1 22em; min-height: 3.8em; font-size: 15px; color: #E1E7FB; }
.wall__desc b { display: inline-block; margin-right: 0.9em; padding: 0 0.5em; background: var(--marker); color: var(--ink); border-radius: 3px; }
@media (max-width: 760px) {
	.wall__g { grid-template-columns: 1fr; }
}

/* ---------- 8. トップ：進め方と料金 ---------- */
.flow { padding: var(--sec) 0; background: var(--paper); }
.flow__in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 100px);
	align-items: start;
}
.flow__head { position: sticky; top: calc(var(--hd) + 28px); }
.flow__head p { max-width: 31em; margin: 24px 0 30px; }
.flow__steps { counter-reset: step; border-top: 2px solid var(--ink); }
.flow__steps li {
	counter-increment: step;
	display: grid;
	grid-template-columns: 3.2em minmax(0, 1fr);
	gap: 2px 8px;
	padding: 22px 0;
	border-bottom: 1px solid #AEB6C4;
}
.flow__steps li:last-child { border-bottom: 2px solid var(--ink); }
.flow__steps li::before {
	content: counter(step);
	grid-row: 1 / span 2;
	font-size: clamp(34px, 3.4vw, 48px);
	font-weight: 900;
	line-height: 1.05;
	color: var(--rule);
	font-variant-numeric: tabular-nums;
}
.flow__steps b { font-size: clamp(18px, 1.6vw, 22px); font-weight: 900; line-height: 1.5; }
.flow__steps span { font-size: 15px; color: #39445A; }
@media (max-width: 900px) {
	.flow__in { grid-template-columns: 1fr; }
	.flow__head { position: static; }
}

/* ---------- 9. トップ：ホームページも作れます（小さく） ---------- */
.extra { padding: 0 0 var(--sec); background: var(--paper); }
.extra__in {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 14px 40px;
	align-items: center;
	padding-top: 30px;
	padding-bottom: 30px;
	border-top: 1px solid #AEB6C4;
	border-bottom: 1px solid #AEB6C4;
}
.home .extra h2 { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.5; white-space: nowrap; }
.extra p { font-size: 14.5px; color: #39445A; max-width: 44em; }
@media (max-width: 900px) {
	.extra__in { grid-template-columns: 1fr; }
	.home .extra h2 { white-space: normal; }
}

/* ---------- 10. ほかのページ（共通の頭） ---------- */
.sub { background: var(--paper); }
.ph {
	position: relative;
	padding: calc(var(--hd) + clamp(44px, 7vw, 110px)) 0 clamp(40px, 6vw, 84px);
	background: var(--desk);
	overflow: hidden;
}
.ph::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(14, 26, 51, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 26, 51, 0.055) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
	-webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
	pointer-events: none;
}
.ph > .wrap { position: relative; }
.ph h1 {
	font-size: clamp(40px, 7vw, 104px);
	font-weight: 900;
	line-height: 1.16;
	letter-spacing: 0;
}
.ph__lead { max-width: 36em; margin-top: clamp(18px, 2.2vw, 30px); font-size: clamp(15px, 1.2vw, 18px); line-height: 2; }
.ph__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ph__nav a {
	padding: 0.3em 1.1em;
	border: 2px solid var(--ink);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.ph__nav a:hover { background: var(--ink); color: #fff; }

/* ---------- 作れる仕組み ---------- */
.sv-parts { padding: var(--sec) 0 calc(var(--sec) * 0.7); }
.sv-g {
	display: grid;
	grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
	gap: 18px clamp(24px, 5vw, 80px);
	margin-top: clamp(28px, 3.4vw, 48px);
	padding-top: clamp(24px, 3vw, 40px);
	border-top: 2px solid var(--ink);
}
.sv-g__head h3 { font-size: clamp(21px, 2.1vw, 28px); font-weight: 900; line-height: 1.45; }
.sv-g__head p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.sv-g__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.sv-g__list > div { padding: 15px 0; border-bottom: 1px solid #AEB6C4; }
.sv-g__list dt { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.sv-g__list dt .i { font-size: 20px; color: var(--rule); }
.sv-g__list dd { margin-top: 3px; padding-left: 29px; font-size: 14px; line-height: 1.75; color: #39445A; }

.sv-style { padding: var(--sec) 0; background: var(--ink); color: #fff; }
.sv-style__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(32px, 4vw, 56px); }
.sv-style__cols > div { padding-top: 22px; border-top: 2px solid var(--marker); }
.sv-style__cols h3 { font-size: clamp(19px, 1.8vw, 24px); font-weight: 900; line-height: 1.5; color: var(--marker); }
.sv-style__cols p { margin-top: 10px; font-size: 15px; color: #D5DCEC; }

.sv-ind { padding: var(--sec) 0 calc(var(--sec) * 0.7); }
.sv-ind__lead { max-width: 40em; margin: 20px 0 32px; }
.sv-d { border-top: 1px solid #AEB6C4; }
.sv-d:last-of-type { border-bottom: 1px solid #AEB6C4; }
.sv-d summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 4px;
	font-size: clamp(17px, 1.6vw, 21px);
	font-weight: 900;
	line-height: 1.5;
	cursor: pointer;
	list-style: none;
}
.sv-d summary::-webkit-details-marker { display: none; }
.sv-d summary small { font-size: 13px; font-weight: 500; color: var(--muted); }
.sv-d summary::after {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	margin: -5px 6px 0 auto;
	border: solid var(--ink);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
	transition: transform 0.25s var(--ease);
}
.sv-d[open] summary::after { transform: rotate(225deg); margin-top: 5px; }
.sv-d summary:hover { background: rgba(14, 26, 51, 0.04); }
.sv-d__body { padding: 0 0 24px; }
.sv-d__note { margin-top: 14px; font-size: 14px; }
.sv-t { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.75; background: #fff; }
.sv-t th, .sv-t td { padding: 10px 14px; border: 1px solid #C9CFDA; text-align: left; vertical-align: top; }
.sv-t thead th { background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; border-color: var(--ink); white-space: nowrap; }
.sv-t tbody th { width: 13.5em; font-weight: 700; background: #F3F5F9; }
.sv-t td:last-child { width: 15em; color: var(--pen); font-family: var(--ff-hw); font-size: 15.5px; line-height: 1.6; }

.sv-use { padding: 0 0 var(--sec); }
.sv-use__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(28px, 3.4vw, 48px); }
.sv-use__list li {
	display: grid;
	gap: 4px;
	padding: 22px 20px 24px;
	border: 2px solid var(--ink);
	border-radius: 6px;
	background: #fff;
	box-shadow: 6px 6px 0 var(--ink);
}
.sv-use__list .i { font-size: 34px; color: var(--rule); margin-bottom: 6px; }
.sv-use__list b { font-size: 18px; font-weight: 900; }
.sv-use__list span { font-size: 14px; line-height: 1.75; color: #39445A; }
.sv-use__note { margin-top: 30px; font-size: 14.5px; color: var(--muted); }
.sv-hp { padding: 0 0 var(--sec); }
.sub .extra__in h2 { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.5; white-space: nowrap; }

@media (max-width: 900px) {
	.sv-g { grid-template-columns: 1fr; }
	.sv-style__cols { grid-template-columns: 1fr; }
	.sv-use__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sub .extra__in h2 { white-space: normal; }
}
@media (max-width: 700px) {
	.sv-g__list { grid-template-columns: 1fr; }
	/* 表は、1業種ずつの縦の並びに */
	.sv-t, .sv-t tbody, .sv-t tr, .sv-t th, .sv-t td { display: block; width: auto; }
	.sv-t thead { display: none; }
	.sv-t { background: transparent; }
	.sv-t tr { margin-bottom: 10px; border: 1px solid #C9CFDA; background: #fff; }
	.sv-t th, .sv-t td { border: 0; padding: 8px 12px; }
	.sv-t tbody th { width: auto; border-bottom: 1px solid #C9CFDA; }
	.sv-t td:last-child { width: auto; padding-top: 0; }
	.sv-t td:last-child::before { content: "いまの紙の例："; font-family: var(--ff); font-size: 11.5px; color: var(--muted); }
}
@media (max-width: 480px) {
	.sv-use__list { grid-template-columns: 1fr; }
}

/* ---------- 料金 ---------- */
.pr-sec { padding: var(--sec) 0; }
.pr-two {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
	gap: clamp(28px, 6vw, 100px);
	align-items: start;
}
.pr-body p + p { margin-top: 1.4em; }
.pr-body p { font-size: clamp(15.5px, 1.25vw, 18px); line-height: 2.05; }
.pr-sec--blue { position: relative; background: var(--blue); color: #fff; }
.pr-sec--blue::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	pointer-events: none;
}
.pr-sec--blue > .wrap { position: relative; }
.pr-f {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 clamp(20px, 3vw, 48px);
	margin-top: clamp(28px, 3.4vw, 48px);
	border-top: 1px solid rgba(255, 255, 255, 0.4);
}
.pr-f li { display: grid; gap: 4px; align-content: start; padding: 22px 0 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.pr-f b { font-size: clamp(18px, 1.7vw, 22px); font-weight: 900; line-height: 1.5; }
.pr-f span { font-size: 14.5px; color: #E1E7FB; }
.pr-note { max-width: 44em; margin-top: 28px; font-size: 15px; color: #fff; }
.pr-sec--qa { padding-top: 0; }
.pr-qa { border-top: 2px solid var(--ink); }
.pr-qa details { border-bottom: 1px solid #AEB6C4; }
.pr-qa summary {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 4px;
	font-size: clamp(16px, 1.4vw, 18.5px);
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
	list-style: none;
}
.pr-qa summary::-webkit-details-marker { display: none; }
.pr-qa summary::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin: 0.45em 6px 0 auto;
	border: solid var(--ink);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
	transition: transform 0.25s var(--ease);
}
.pr-qa details[open] summary::after { transform: rotate(225deg); margin-top: 0.75em; }
.pr-qa summary:hover { background: rgba(14, 26, 51, 0.04); }
.pr-qa details p { padding: 0 4px 20px; font-size: 15px; }
@media (max-width: 900px) {
	.pr-two { grid-template-columns: 1fr; }
	.pr-f { grid-template-columns: 1fr; }
}

/* ---------- 選ばれる理由 ---------- */
.rs-sec { padding: clamp(40px, 5vw, 80px) 0 var(--sec); }
.rs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 88px); border-top: 2px solid var(--ink); }
.rs-list li { display: grid; gap: 8px; align-content: start; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid #AEB6C4; }
.rs-list b { font-size: clamp(22px, 2.5vw, 34px); font-weight: 900; line-height: 1.45; font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
.rs-list span { font-size: 15.5px; color: #39445A; }
.rs-more { margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 800px) {
	.rs-list { grid-template-columns: 1fr; }
}

/* ---------- 制作事例（3Dのカバーフロー。動きは assets/js/works.js） ---------- */
.works { position: relative; height: calc(var(--vh) * 100); min-height: 560px; overflow: hidden; background: var(--desk); }
.works__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(120% 90% at 50% 38%, #FBFCFA 0%, #F0F3EE 44%, #E6EAE3 80%, #DDE2DA 100%);
}
.works__bloom {
	position: absolute;
	top: 42%;
	left: 50%;
	z-index: 0;
	width: min(70vw, 760px);
	height: min(70vw, 760px);
	border-radius: 50%;
	pointer-events: none;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.35) 38%, rgba(255, 255, 255, 0) 66%);
}
.works__stage { position: relative; z-index: 1; height: 100%; }
.works__head {
	position: absolute;
	top: calc(var(--hd) + calc(var(--vh) * 2.5));
	left: 0;
	right: 0;
	z-index: 3;
	text-align: center;
	pointer-events: none;
}
.works__head h1 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 900; line-height: 1.3; letter-spacing: 0.04em; }
.works__sub { font-size: 13px; color: var(--muted); }
.works__3d { position: absolute; inset: 0; z-index: 1; cursor: pointer; touch-action: pan-y; }
.works__3d canvas { display: block; }
.works__info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 80px;
	padding-bottom: clamp(20px, 3vh, 34px);
	background: linear-gradient(to top, var(--desk) 0%, var(--desk) 52%, rgba(230, 234, 227, 0.9) 76%, rgba(230, 234, 227, 0) 100%);
	pointer-events: none;
}
.works__text { text-align: center; max-width: 620px; padding: 0 24px; }
.works__text.is-swap { animation: infoUp 0.5s ease; }
@keyframes infoUp { from { opacity: 0; transform: translateY(10px); } }
.works__cat { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--copper-d); }
.works__name { margin: 0 0 8px; font-size: clamp(19px, 2.6vw, 27px); font-weight: 900; line-height: 1.45; }
.works__line { font-size: 13.5px; line-height: 1.85; color: #39445A; }
.works__cat, .works__name { text-wrap: balance; word-break: auto-phrase; }
.works__site {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--rule);
	text-underline-offset: 0.3em;
	pointer-events: auto;
}
.works__nav { display: flex; align-items: center; gap: 20px; margin-top: 16px; pointer-events: auto; }
.works__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 0 var(--ink);
	color: var(--ink);
	font-size: 20px;
	transition: transform 0.12s, box-shadow 0.12s;
}
.works__btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.works__count { font-size: 13.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.works__hint { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }
.works__hint-sp { display: none; }
.works-flat { position: absolute; inset: 6% 10%; display: grid; place-items: center; }
.works-flat img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 60px rgba(14, 26, 51, 0.22); }
.works__empty { position: absolute; top: 50%; left: 0; right: 0; text-align: center; font-size: 14.5px; color: var(--muted); }
@media (max-width: 768px) {
	.works__hint-pc { display: none; }
	.works__hint-sp { display: inline; }
	.works__info { padding-bottom: 14px; }
}

/* ---------- お問い合わせ ---------- */
.contact { padding: calc(var(--hd) + clamp(36px, 5vw, 80px)) 0 var(--sec); }
.contact__wrap {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 100px);
	align-items: start;
}
.contact__side { position: sticky; top: calc(var(--hd) + 28px); display: grid; gap: 22px; justify-items: start; }
.contact__side h1 { display: grid; font-size: clamp(36px, 5.4vw, 76px); font-weight: 900; line-height: 1.2; }
.contact__side h1 small { margin-top: 10px; font-size: clamp(15px, 1.4vw, 19px); font-weight: 700; color: var(--copper-d); letter-spacing: 0.08em; }
.contact__text { max-width: 28em; }
.contact__tel { display: grid; text-decoration: none; line-height: 1.3; }
.contact__tel small { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.contact__tel b { font-size: clamp(34px, 4.4vw, 58px); font-weight: 900; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact__tel span { font-size: 13.5px; color: var(--muted); }
.contact__tel:hover b { color: var(--rule); }
.contact__mail { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; text-underline-offset: 0.3em; }

.contact__inner {
	padding: clamp(22px, 3vw, 44px);
	border: 2px solid var(--ink);
	border-radius: 6px;
	background: #fff;
	box-shadow: 8px 8px 0 var(--ink);
}
.cf { display: grid; gap: 20px; }
.cf__intro { font-size: 13.5px; line-height: 1.9; color: #39445A; }
.cf__req {
	display: inline-block;
	padding: 0 0.6em;
	border-radius: 3px;
	background: var(--stamp-d);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.8;
	vertical-align: 0.1em;
}
.cf-memo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 12px 16px;
	border-radius: 6px;
	background: #FFF7C7;
	box-shadow: inset 4px 0 0 var(--marker);
	font-size: 13.5px;
	line-height: 1.7;
}
.cf-memo p { flex: 1 1 18em; }
.cf-memo__clear { padding: 0.2em 0.9em; border: 1.5px solid var(--ink); border-radius: 5px; background: #fff; font-size: 12.5px; font-weight: 700; }
.cf__alert { padding: 12px 16px; border-radius: 6px; background: #FFEFEB; box-shadow: inset 4px 0 0 var(--stamp); font-size: 14px; font-weight: 700; color: #A12A18; }
.cf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf__row { display: grid; gap: 7px; }
.cf__label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; }
.cf__input {
	width: 100%;
	min-height: 52px;
	padding: 0.6em 0.9em;
	border: 1.5px solid #8E97A8;
	border-radius: 6px;
	background: #FBFCFA;
	font-size: 16px;
	line-height: 1.6;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.cf__input::placeholder { color: #98A1B3; }
.cf__input:hover { border-color: var(--ink); }
.cf__input:focus { outline: 0; border-color: var(--rule); background: #fff; box-shadow: 0 0 0 3px rgba(61, 99, 221, 0.25); }
.cf__input--area { resize: vertical; min-height: 0; }
.cf__input--select { appearance: none; -webkit-appearance: none; padding-right: 2.4em; background: #FBFCFA linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 20px) 55% / 7px 7px no-repeat, linear-gradient(-45deg, transparent 50%, var(--ink) 50%) calc(100% - 13px) 55% / 7px 7px no-repeat; background-color: #FBFCFA; }
.cf__row.has-error .cf__input { border-color: var(--stamp); background: #FFF6F4; }
.cf__err { font-size: 13px; font-weight: 700; color: #B5301C; }
.cf__submit {
	display: grid;
	place-items: center;
	min-height: 62px;
	margin-top: 4px;
	padding: 0.6em 1.6em;
	border: 0;
	border-radius: 6px;
	background: var(--ink);
	box-shadow: 0 4px 0 #050B1A;
	color: #fff;
	font-size: 16.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.2s;
}
.cf__submit:hover { background: var(--rule); box-shadow: 0 4px 0 #1E3A9A; }
.cf__submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #050B1A; }
.cf__submit[disabled] { opacity: 0.7; pointer-events: none; }
.cf__submit-busy { display: none; align-items: center; gap: 8px; }
.cf.is-busy .cf__submit-label { display: none; }
.cf.is-busy .cf__submit-busy { display: inline-flex; }
.cf__note { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.cf__note a { color: var(--rule); }
.cf-done { display: grid; gap: 14px; justify-items: start; }
.cf-done__ic { font-size: 54px; color: var(--ok); line-height: 1; }
.cf-done h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; line-height: 1.4; }
.cf-done__sub { font-size: 13.5px; color: var(--muted); }
.cf-done__sub a { color: var(--rule); }
@media (max-width: 900px) {
	.contact__wrap { grid-template-columns: 1fr; }
	.contact__side { position: static; }
	.contact__inner { box-shadow: 5px 5px 0 var(--ink); }
}

/* ---------- ふつうのページ・404 ---------- */
.doc { padding: calc(var(--hd) + clamp(36px, 5vw, 80px)) var(--gut) var(--sec); }
.doc__inner { max-width: 760px; margin-inline: auto; }
.doc__date { font-size: 13px; color: var(--muted); }
.doc__title { font-size: clamp(28px, 4vw, 46px); font-weight: 900; line-height: 1.4; margin-bottom: 28px; }
.doc__content { line-height: 2; }
.doc__content > * + * { margin-top: 1.4em; }
.doc__content h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; line-height: 1.5; margin-top: 2.2em; padding-bottom: 0.3em; border-bottom: 2px solid var(--ink); }
.doc__content h3 { font-size: 19px; font-weight: 900; margin-top: 2em; }
.doc__content a { color: var(--rule); text-underline-offset: 0.25em; }
.doc__content ul { list-style: disc; padding-left: 1.4em; }
.doc__content ol { list-style: decimal; padding-left: 1.6em; }
.doc__content img { height: auto; border-radius: 6px; }
.doc__list { display: grid; border-top: 2px solid var(--ink); }
.doc__list a { display: flex; gap: 18px; padding: 16px 4px; border-bottom: 1px solid #AEB6C4; text-decoration: none; font-weight: 700; }
.doc__list a:hover { background: rgba(14, 26, 51, 0.04); }
.doc__list span { flex: none; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc__footer { max-width: 760px; margin: 48px auto 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 6px; font-weight: 700; text-decoration: none; }
.nav-links .current { background: var(--ink); color: #fff; }

.notfound { min-height: calc(var(--vh) * 100); display: grid; align-items: center; padding: calc(var(--hd) + 40px) 0 var(--sec); background: var(--desk); }
.notfound h1 { font-size: clamp(30px, 4.6vw, 62px); font-weight: 900; line-height: 1.35; }
.notfound p { max-width: 32em; margin-top: 20px; }
.notfound__links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }

/* ---------- 11. 管理バー（ログイン中） ---------- */
.admin-bar .hd { top: 32px; }
.gl .admin-bar .hero__stage { top: 32px; height: calc(calc(var(--vh) * 100) - 32px); }
.admin-bar .cab__bench { top: calc(var(--hd) + 52px); }
.admin-bar .works { height: calc(calc(var(--vh) * 100) - 32px); }
.admin-bar .flow__head,
.admin-bar .contact__side { top: calc(var(--hd) + 60px); }
@media (max-width: 782px) {
	.admin-bar .hd { top: 46px; }
	.gl .admin-bar .hero__stage { top: 46px; height: calc(calc(var(--vh) * 100) - 46px); }
	.admin-bar .works { height: calc(calc(var(--vh) * 100) - 46px); }
}
@media (max-width: 600px) {
	/* この幅では管理バーがスクロールで流れるので、上のメニューは画面の上へ */
	.admin-bar .hd.is-stuck { top: 0; }
}

/* ---------- 12. ページ内リンクのなめらかな移動・ページを移るときの切り替わり ---------- */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
	@view-transition { navigation: auto; }
	.hd { view-transition-name: op-hd; }
	::view-transition-group(op-hd) { animation: none; }
	::view-transition-old(root) { animation: opPageOut 0.28s cubic-bezier(.4, 0, 1, 1) both; }
	::view-transition-new(root) { animation: opPageIn 0.5s cubic-bezier(.2, .8, .2, 1) both; }
	@keyframes opPageOut { to { opacity: 0; transform: translateY(-8px); } }
	@keyframes opPageIn { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- 13. 動きを減らす設定（OSの「視差効果を減らす」） ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}
	.hero__hint { display: none !important; }
}

/* ---------- 14. 印刷 ---------- */
@media print {
	.hd, .dock, .menu, .hero__gl, .hero__hint, .cab__shade { display: none !important; }
	.hero, .gl .hero { height: auto; }
	.gl .hero__stage { position: relative; }
	body { padding-bottom: 0; }
}
