:root {
	--ink: #04040a;
	--navy: #14172d;
	--plum: #2f2365;
	--wine: #3d2946;
	--deep: #133648;
	--rose: #9c2761;
	--blue: #3f4eab;
	--violet: #6a42a8;
	--mauve: #714a76;
	--pink: #ec4d97;
	--lav: #9a93e5;
	--orange: #f67355;
	--dust: #bda3a3;
	--cream: #f3d0b0;
	--lime: #b6f23c;
	--teal: #2fc7a8;
	/* 昼の色（2026-11-16 に名前を付けた）。夜の上のパレットと合わせて使う */
	/* 紙は 3 段（明・中・暗）、黒は 2 段（黒・深黒）に丸めた。以下はその別名 */
	--paper-light: #fcf7eb;
	--paper: #f4f1ea;
	--paper-deep: #ede6d6;
	--paper-2: var(--paper-deep);
	--sheet: var(--paper);
	--concrete: #c9c4bc;
	--card-paper: var(--paper-light);
	--white: #fff;
	--black: #000;
	--muted: #8f8f9c;
	--muted-ink: #5c5750;
	--vermilion: #f24e00;
	--red: #d62b1f;
	--yellow: #f2b705;
	--indigo: #1f4e9e;
	/* 売り場ごとの地とインク */
	--lounge-bg: var(--paper);
	--lounge-paper: var(--paper-light);
	--lounge-ink: #2b2d42;
	--lounge-teal: #a8dadc;
	--lounge-pink: #f9c5d1;
	--lounge-yellow: #ffd166;
	--lounge-peach: #f9d9c6;
	--stock-paper: var(--paper);
	--stock-paper-2: var(--paper);
	--stock-black: #141414;
	--stock-ink: var(--stock-black);
	--stock-ac: #a33a2a;
	--mail-ink: var(--stock-black);
	--closing-ink: #0e0e10;
	--closing-panel: var(--stock-black);
	--closing-light: #c9c9d2;
	--closing-muted: #a6a6b4;
	--closing-red: #c0402a;
	--closing-brown: #b06a54;
	--closing-blue: #7c8cff;
	/* 屋上のリード文（紙と黒帯） */
	--roof-paper: var(--paper-light);
	--roof-cream: var(--paper);
	--roof-ink: var(--stock-black);
	--roof-black: var(--stock-black);
	--roof-yellow: #f0cd1a;
	--roof-shadow: #241f19;
	--dot: "DotGothic16", monospace;
	--sans:
		"LINE Seed JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html {
	scrollbar-gutter: stable;
	background: var(--cream);
	color: var(--navy);
	font-family: var(--sans);
	line-height: 1.8;
}
html[data-mode="monitor"],
html[data-mode="closing"],
html.detail-open {
	background: var(--ink);
}
canvas {
	display: block;
	image-rendering: pixelated;
}
button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}
a {
	color: inherit;
}

/* ---------- 表：stage を固定し、scroll で panel を切り替える。色は panel ごとに 1 段ずつ（滑らかにしない） ---------- */
/* 同じ色の組を、body（左の柱・下の操作盤・中継の影）と panel の両方に定義する。切り替え中は新旧の panel が自分の色のまま写る */
body,
.p-roof {
	--bg: var(--cream);
	--fg: var(--navy);
	--ac: var(--pink);
}
body[data-step="1"],
.p-lounge {
	--bg: var(--dust);
	--fg: var(--navy);
	--ac: var(--rose);
}
body[data-step="2"],
.p-stock {
	--bg: var(--mauve);
	--fg: var(--cream);
	--ac: var(--orange);
}
body[data-step="3"],
.p-mail {
	--bg: var(--navy);
	--fg: var(--lav);
	--ac: var(--pink);
}
body[data-step="4"],
.p-boiler {
	--bg: var(--ink);
	--fg: var(--lav);
	--ac: var(--orange);
}
/* 機材（柱と操作盤）の色 */
body {
	--mb: var(--navy);
	--mf: var(--cream);
	--glow: 0.8;
	--blend: overlay;
	background: var(--bg);
	color: var(--fg);
}
body[data-step="1"] {
	--glow: 0.55;
}
body[data-step="2"] {
	--glow: 0.34;
}
body[data-step="3"] {
	--mb: var(--ink);
	--mf: var(--lav);
	--glow: 0.17;
	--blend: screen;
}
body[data-step="4"] {
	--mb: var(--navy);
	--mf: var(--lav);
	--glow: 0.17;
	--blend: screen;
}
body.closed {
	overflow: hidden;
}

.front {
	height: calc(100dvh + 5 * 110vh);
}
:root {
	--rail: clamp(44px, 4.4vw, 84px);
	--deck: clamp(54px, 8vh, 86px);
	--pad: clamp(14px, 2.2vw, 40px);
}
.stage {
	position: sticky;
	top: 0;
	height: 100dvh;
	overflow: hidden;
}
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.ch {
	display: inline-block;
	position: relative;
}
.w {
	display: inline-block;
	white-space: nowrap;
}

/* 見た目の方針（2026-11-11 改訂）：太い border とずらした影は使わない。
   線は 1px（--line）、面はベタか dither、主役は商品の絵。機材（柱・操作盤・中継）は静かにする */
.panel,
.rail,
.deck {
	--line: color-mix(in srgb, currentColor 45%, transparent);
}

/* 左の柱 */
.rail {
	position: absolute;
	inset: 0 auto var(--deck) 0;
	width: var(--rail);
	background: var(--mb);
	color: var(--mf);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 10px 0 14px;
	font-family: var(--dot);
	font-size: 14px;
}
.logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	font-family: var(--sans);
	font-weight: 400;
}
.logo b {
	display: grid;
	place-items: center;
	width: calc(var(--rail) - 22px);
	aspect-ratio: 1;
	background: var(--ac);
	color: var(--ink);
	font-weight: 400;
	font-size: calc(var(--rail) * 0.36);
	line-height: 1;
}
.logo span {
	writing-mode: vertical-rl;
	letter-spacing: 0.3em;
	font-size: clamp(13px, 1.05vw, 18px);
}
.sun {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.track {
	flex: 1;
	width: 9px;
	position: relative;
	border-left: 1px solid var(--line);
	background: repeating-linear-gradient(
		transparent 0 calc(100% / 9 - 1px),
		var(--line) calc(100% / 9 - 1px) calc(100% / 9)
	);
}
.track b {
	position: absolute;
	left: -5px;
	width: 19px;
	height: 5px;
	background: var(--ac);
	top: calc(var(--p, 0) * (100% - 5px));
}

/* 下の操作盤：キーは平らな札。いまの場所だけランプが点く */
.deck {
	position: absolute;
	inset: auto 0 0 0;
	height: var(--deck);
	background: var(--mb);
	color: var(--mf);
	border-top: 1px solid var(--line);
	display: flex;
	align-items: center;
	gap: clamp(10px, 2vw, 32px);
	padding: 0 clamp(12px, 1.6vw, 28px);
}
.keys {
	display: flex;
	gap: clamp(2px, 0.4vw, 8px);
}
.keys a,
.keys button,
.key {
	display: flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.5em 0.8em;
	color: inherit;
	font-size: clamp(13px, 0.95vw, 16px);
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 1px solid transparent;
}
.keys a i,
.keys button i {
	display: grid;
	place-items: center;
	width: 1.7em;
	height: 1.7em;
	border: 1px solid var(--line);
	font: 400 12px/1 var(--dot);
	font-size: max(14px, 0.85em);
}
.keys a:hover,
.keys button:hover,
.key:hover {
	border-bottom-color: currentColor;
}
.keys a[aria-current],
.keys button[aria-pressed="true"],
.key[aria-pressed="true"] {
	border-bottom-color: var(--ac);
}
.keys a[aria-current] i,
.keys button[aria-pressed="true"] i {
	background: var(--ac);
	border-color: var(--ac);
	color: var(--ink);
}
.key {
	border: 1px solid var(--line);
	padding: 0.4em 0.9em;
}
.key[aria-pressed="true"] {
	background: var(--ac);
	color: var(--ink);
	border-color: var(--ac);
}
.keys a:focus-visible,
.keys button:focus-visible,
.key:focus-visible,
.logo:focus-visible,
.pip:focus-visible,
.see:focus-visible,
.item:focus-visible {
	outline: 2px solid var(--lime);
	outline-offset: 2px;
}
.counter {
	margin-left: auto;
	display: flex;
	gap: 2px;
	font-family: var(--dot);
	font-size: clamp(20px, 3.4vh, 34px);
	line-height: 1;
}
.counter b {
	display: grid;
	place-items: center;
	width: 1.05em;
	height: 1.5em;
	font-weight: 400;
	color: var(--cream);
	background: linear-gradient(
		var(--ink) 0 calc(50% - 0.5px),
		var(--wine) calc(50% - 0.5px) calc(50% + 0.5px),
		var(--ink) calc(50% + 0.5px)
	);
}
.counter i {
	font-style: normal;
	align-self: center;
}
.hint {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--dot);
	font-size: 14px;
	letter-spacing: 0.1em;
}
.hint b {
	color: var(--ac);
	animation: nudge 1s steps(2) infinite;
}
@keyframes nudge {
	50% {
		transform: translateY(4px);
	}
}

/* panel の共通 */
.pane {
	position: absolute;
	inset: 0 0 var(--deck) var(--rail);
	overflow: hidden;
}
.panels {
	position: relative;
	width: 100%;
	height: 100%;
}
.panel {
	position: absolute;
	inset: 0;
	display: grid;
	gap: var(--g);
	padding: var(--pad);
	background: var(--bg);
	color: var(--fg);
	overflow: hidden;
	--g: clamp(12px, 1.5vw, 28px);
	--paper: var(--card-paper);
}
.panel[hidden] {
	display: none;
}
.p-stock,
.p-mail,
.p-boiler {
	--paper: var(--cream);
}
.title {
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.01em;
}
.slot {
	min-height: 0;
	outline: 1px dashed var(--line);
	outline-offset: -1px;
}
.floor {
	font-family: var(--dot);
	font-size: clamp(12px, 0.9vw, 16px);
	letter-spacing: 0.1em;
	white-space: nowrap;
}
.note {
	font-size: clamp(13px, 1.1vw, 18px);
	max-width: 30em;
}

/* 商品（article.item）：切り抜きの絵が床の線に立ち、下に札。説明は、選ばれている 1 件ぶんだけ .items の下端に出す */
.items {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	gap: clamp(8px, 1.6vw, 32px);
	padding-bottom: var(--mh, 4.6em);
	--ih: 20vh;
}
.item {
	flex: 1 1 0;
	min-width: 0;
	display: grid;
	justify-items: center;
	gap: 0.35em;
	cursor: pointer;
}
.shot {
	position: relative;
	width: 100%;
	height: var(--ih);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	isolation: isolate;
}
.shot img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	transform-origin: 50% 100%;
	transition: transform 0.2s steps(3);
}
/* 実写レイヤーがある商品：イラストと実写を同じ枠に重ね、ホバーの円の中だけ実写を見せる */
.shot:has(.photo) img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 100%;
}
.shot .photo {
	clip-path: circle(0 at 0 0);
}
/* 床の影：夜の光と同じ dither（絵は front.js が作る） */
.shot::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 4%;
	right: 4%;
	bottom: -7%;
	height: 18%;
	background: var(--shade-img) 50% 50% / 100% 100% no-repeat;
	image-rendering: pixelated;
	opacity: 0.38;
}
.item.pick .shot img,
.item:hover .shot img {
	transform: translateY(-3%) scale(1.03);
}
/* 日の光の影（js/shade.js が <canvas class="shade"> を .shot の先頭に入れる）。既存の楕円の影は外す。canvas は置換要素なので right ではなく width で広げる */
.shot > canvas.shade {
	position: absolute;
	left: -60%;
	width: 220%;
	bottom: 0;
	height: 60%;
	z-index: -1;
	pointer-events: none;
	image-rendering: pixelated;
}
.shot:has(.shade)::after {
	display: none;
}
/* 夕方の色味（js/front.js が panel に --sun-tint・--sun-tint-o を入れる）。.pip は panel の外なので乗らない */
.panel::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 6;
	background: var(--sun-tint, transparent);
	opacity: var(--sun-tint-o, 0);
	mix-blend-mode: multiply;
	pointer-events: none;
}
.item h3 {
	font-weight: 400;
	font-size: clamp(12px, 1vw, 16px);
	line-height: 1.4;
	text-align: center;
}
/* 札：左が尖った紙。穴が 1 つ。線も影も付けない */
.tag {
	display: inline-flex;
	align-items: baseline;
	gap: 0.7em;
	padding: 0.1em 0.7em 0.1em 1.5em;
	color: var(--navy);
	font-family: var(--dot);
	line-height: 1.5;
	white-space: nowrap;
	background: radial-gradient(
		circle at 0.78em 50%,
		transparent 0 0.16em,
		var(--paper) 0.2em
	);
	clip-path: polygon(0.6em 0, 100% 0, 100% 100%, 0.6em 100%, 0 50%);
}
.tag .num {
	font-size: clamp(12px, 0.75vw, 14px);
	opacity: 0.7;
}
.tag .price {
	font-weight: 400;
	font-size: clamp(14px, 1.35vw, 22px);
}
.tag .price small {
	font-size: max(14px, 0.6em);
	margin-left: 0.15em;
}
.tag .price.word {
	font-size: clamp(12px, 1vw, 16px);
}
.more {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--mh, 4.6em);
	display: flex;
	align-items: center;
	gap: 0.4em 1.4em;
	padding-top: 0.5em;
	border-top: 1px solid var(--line);
	font-size: clamp(12px, 1vw, 16px);
	line-height: 1.6;
	visibility: hidden;
}
.item.pick .more {
	visibility: visible;
}
.more .cond {
	flex: none;
	font-family: var(--dot);
	font-size: max(14px, 0.85em);
	letter-spacing: 0.06em;
	color: var(--ac);
}
.more .say {
	flex: 1;
	min-width: 0;
}
.see {
	flex: none;
	padding: 0.2em 0;
	border-bottom: 1px solid currentColor;
	font-family: var(--dot);
	font-size: max(14px, 0.85em);
	letter-spacing: 0.06em;
	white-space: nowrap;
}
.see::before {
	content: "▶ ";
	color: var(--ac);
}
.see:hover {
	color: var(--ac);
}
/* 取り置き（夜に付けた札。front.js が .held を付ける） */
.item.held .tag {
	background: radial-gradient(
		circle at 0.78em 50%,
		transparent 0 0.16em,
		var(--lime) 0.2em
	);
}
.item.held h3::after {
	content: " ・取り置き中";
	font-family: var(--dot);
	font-size: 0.8em;
	color: var(--ac);
}
/* 品書き（front.js が商品から作る。夜は同じ DOM を部屋の壁に貼る） */
.menu {
	list-style: none;
	font-size: clamp(12px, 1vw, 16px);
	line-height: 1.5;
	border-top: 1px solid var(--line);
}
.menu li {
	display: flex;
	align-items: baseline;
	gap: 0.8em;
	padding: 0.32em 0;
	border-bottom: 1px solid var(--line);
}
.menu li i {
	flex: none;
	font: 400 max(14px, 0.8em) var(--dot);
	opacity: 0.7;
}
.menu li span {
	flex: none;
}
.menu li b {
	flex: 1;
	display: flex;
	align-items: baseline;
	gap: 0.8em;
	font: 400 1em var(--dot);
}
.menu li b::before {
	content: "";
	flex: 1;
	border-bottom: 1px dotted currentColor;
	opacity: 0.6;
	transform: translateY(-0.3em);
}
.menu li.on {
	color: var(--ac);
}
.backroom[hidden] {
	display: none;
}

/* 1 おもて（屋上）：縦組みの title、モニター、屋上の品 2×2 */
.p-roof {
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) auto;
	grid-template-rows: auto auto auto minmax(0, 1fr);
}
.mast {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: 0.5em 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	font-family: var(--dot);
	font-size: clamp(12px, 0.9vw, 16px);
	letter-spacing: 0.08em;
}
.p-roof .title {
	grid-column: 3;
	grid-row: 2 / 5;
	writing-mode: vertical-rl;
	font-size: min(13.6vh, 8.6vw);
	margin-top: -0.05em;
}
.p-roof .slot {
	grid-column: 1;
	grid-row: 2 / 4;
	align-self: start;
	aspect-ratio: 16 / 10;
	width: 100%;
}
.p-roof .floor {
	grid-column: 2;
	grid-row: 2;
}
.p-roof .items {
	grid-column: 2;
	grid-row: 3;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: end;
	gap: 1.6vh 1vw;
	--ih: min(13vh, 9vw);
	--mh: 6.4em;
}
.p-roof .more {
	flex-wrap: wrap;
	align-content: center;
}
.lead {
	grid-column: 1 / 3;
	grid-row: 4;
	align-self: start;
	columns: 2;
	column-gap: var(--g);
	column-rule: 1px solid var(--line);
	max-width: 52em;
	padding-top: 0.9em;
	border-top: 1px solid var(--line);
	font-size: clamp(13px, 1.15vw, 19px);
}
.lead p {
	break-inside: avoid;
}

/* 2 家具・家電（休憩室）：縦の title、説明と品書き、右上にモニター、下に品 */
.p-lounge {
	grid-template-columns: auto minmax(0, 1fr) minmax(0, 34%);
	grid-template-rows: auto auto auto minmax(0, 1fr);
}
.p-lounge .title {
	grid-column: 1;
	grid-row: 1 / -1;
	writing-mode: vertical-rl;
	font-size: min(13vh, 8.4vw);
	padding-left: 0.16em;
	border-left: 1px solid var(--line);
}
.p-lounge .floor {
	grid-column: 2;
	grid-row: 1;
}
.p-lounge .note {
	grid-column: 2;
	grid-row: 2;
}
.p-lounge .menu {
	grid-column: 2;
	grid-row: 3;
	max-width: 34em;
}
.p-lounge .slot {
	grid-column: 3;
	grid-row: 1 / 4;
	align-self: start;
	aspect-ratio: 16 / 10;
	width: 100%;
}
.p-lounge .items {
	grid-column: 2 / 4;
	grid-row: 4;
	align-self: end;
	--ih: min(27vh, 17vw);
}

/* 3 道具・雑貨（倉庫）：横いっぱいの title、左に品、右にモニターと品書き */
.p-stock {
	grid-template-columns: minmax(0, 1fr) minmax(0, 31%);
	grid-template-rows: auto auto auto auto minmax(0, 1fr);
}
.p-stock .title {
	grid-column: 1;
	grid-row: 1;
	font-size: min(8.4vw, 16vh);
	line-height: 1.04;
	white-space: nowrap;
	padding-bottom: 0.12em;
	border-bottom: 1px solid var(--line);
}
.p-stock .floor {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
}
.p-stock .slot {
	grid-column: 2;
	grid-row: 2;
	aspect-ratio: 16 / 10;
	width: 100%;
}
.p-stock .note {
	grid-column: 2;
	grid-row: 3;
}
.p-stock .menu {
	grid-column: 2;
	grid-row: 4;
}
.p-stock .items {
	grid-column: 1;
	grid-row: 2 / 6;
	align-self: end;
	--ih: min(34vh, 19vw);
}

/* 4 買取と連絡先（郵便室）：大きな電話番号、窓口の品、縦の title */
.p-mail {
	grid-template-columns: minmax(0, 34%) minmax(0, 1fr) auto;
	grid-template-rows: auto auto minmax(0, 1fr);
}
.p-mail .title {
	grid-column: 3;
	grid-row: 1 / -1;
	writing-mode: vertical-rl;
	font-size: min(13vh, 8vw);
	padding-right: 0.16em;
	border-right: 1px solid var(--line);
}
.p-mail .floor {
	grid-column: 1;
	grid-row: 1;
}
.p-mail .slot {
	grid-column: 1;
	grid-row: 2;
	align-self: start;
	aspect-ratio: 16 / 10;
	width: 100%;
}
.p-mail .note {
	grid-column: 1;
	grid-row: 3;
}
.p-mail .tel {
	grid-column: 2;
	grid-row: 1 / 3;
	align-self: start;
	font: 400 min(6vw, 13vh)/1.1 var(--dot);
	color: var(--ac);
	white-space: nowrap;
	padding-bottom: 0.1em;
	border-bottom: 1px solid var(--line);
}
.p-mail .items {
	grid-column: 2;
	grid-row: 3;
	align-self: end;
	--ih: min(24vh, 13vw);
}

/* 5 機械・工具（機械室）：閉店まぎわ。footer の内容をここで見せる */
.p-boiler {
	grid-template-columns: minmax(0, 1fr) minmax(0, 36%);
	grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}
.p-boiler .title {
	grid-column: 1;
	grid-row: 1 / 3;
	font-size: min(7.4vw, 15vh);
	line-height: 1.1;
	white-space: nowrap;
}
.p-boiler .floor {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
}
.p-boiler .slot {
	grid-column: 2;
	grid-row: 2 / 5;
	align-self: start;
	aspect-ratio: 16 / 10;
	width: 100%;
}
.p-boiler .note {
	grid-column: 1;
	grid-row: 3;
}
.p-boiler .items {
	grid-column: 1;
	grid-row: 4;
	align-self: end;
	--ih: min(24vh, 13vw);
}
.gauge {
	position: absolute;
	right: var(--pad);
	bottom: calc(var(--pad) + 4.2em);
	width: min(36%, 30em);
	display: grid;
	gap: 6px;
	font-family: var(--dot);
	font-size: clamp(12px, 0.9vw, 16px);
}
.gauge div {
	height: clamp(14px, 2.4vh, 24px);
	padding: 2px;
	border: 1px solid var(--line);
}
.gauge b {
	display: block;
	height: 100%;
	width: calc((1 - var(--q, 0)) * 100%);
	background: repeating-linear-gradient(
		90deg,
		var(--ac) 0 12px,
		transparent 12px 15px
	);
}
.foot {
	grid-column: 1 / -1;
	grid-row: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4em 2em;
	padding-top: 0.8em;
	border-top: 1px solid var(--line);
	font-size: clamp(12px, 0.95vw, 16px);
}
.foot ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2em 1.4em;
	list-style: none;
}
.foot p:last-child {
	margin-left: auto;
	font-family: var(--dot);
}

/* 1 文字ずつの動き（.on は切り替えが終わった panel に付く。動きを減らす設定では付けない）
   panel の切り替え（横にずれる・色が割れる）と同じ系統にそろえる。どれも steps(1) で、滑らかにしない
   - type：1 文字ぶんの四角が走ってから文字が出る（本文と小さい文字。控えめ）
   - lock：横に裂けて色がずれ、段階的に止まる（大きい title） */
@media (prefers-reduced-motion: no-preference) {
	html.js .panel:not(.on) .ch,
	html.js .panel:not(.on) .item > .shot {
		opacity: 0;
	}
	html.js .panel.on:not(.done) [data-fx] .ch {
		animation: fx-type 0.1s steps(1) backwards;
		animation-delay: calc(var(--d, 0ms) + var(--i) * var(--gap, 14ms));
	}
	html.js .panel.on:not(.done) [data-fx="lock"] .ch {
		animation: fx-lock 0.45s steps(1) backwards;
		animation-delay: calc(var(--d, 0ms) + var(--i) * var(--gap, 55ms));
	}
	/* 画像の実寸を持つ .shot を動かす。親 .item が position:static の配置でも同じ動きにする。 */
	html.js .panel.on:not(.done) .item > .shot {
		animation: deal 0.5s steps(1) backwards;
		animation-delay: calc(260ms + var(--k, 0) * 150ms);
	}
}
@keyframes fx-type {
	0% {
		opacity: 0;
	}
	1%,
	100% {
		opacity: 1;
		background: currentColor;
	}
}
@keyframes fx-lock {
	0% {
		opacity: 0;
	}
	1% {
		opacity: 1;
		transform: translateX(-0.4em) skewX(-24deg);
		clip-path: inset(0 -50% 60% -50%);
		text-shadow:
			0.14em 0 0 var(--pink),
			-0.14em 0 0 var(--teal);
	}
	22% {
		opacity: 1;
		transform: translateX(0.3em);
		clip-path: inset(45% -50% 12% -50%);
		text-shadow:
			-0.12em 0 0 var(--pink),
			0.12em 0 0 var(--teal);
	}
	44% {
		opacity: 1;
		transform: translateX(-0.12em) skewX(10deg);
		text-shadow:
			0.08em 0 0 var(--pink),
			-0.08em 0 0 var(--teal);
	}
	66% {
		opacity: 1;
		transform: translateX(0.05em);
		text-shadow:
			-0.04em 0 0 var(--pink),
			0.04em 0 0 var(--teal);
	}
	88%,
	100% {
		opacity: 1;
		text-shadow: 0.02em 0 0 var(--pink);
	}
}
@keyframes deal {
	0% {
		opacity: 0;
	}
	1% {
		opacity: 1;
		clip-path: inset(0 -12% 72% -12%);
		transform: translateX(-7%);
		filter: drop-shadow(14px 0 0 var(--pink)) drop-shadow(-14px 0 0 var(--teal));
	}
	20% {
		opacity: 1;
		clip-path: inset(34% -12% 30% -12%);
		transform: translateX(5%);
		filter: drop-shadow(-12px 0 0 var(--pink)) drop-shadow(12px 0 0 var(--teal));
	}
	40% {
		opacity: 1;
		clip-path: inset(58% -12% 0 -12%);
		transform: translateX(-3%);
		filter: drop-shadow(10px 0 0 var(--pink)) drop-shadow(-10px 0 0 var(--teal));
	}
	60% {
		opacity: 1;
		transform: translateX(2%);
		filter: drop-shadow(6px 0 0 var(--pink)) drop-shadow(-6px 0 0 var(--teal));
	}
	80%,
	100% {
		opacity: 1;
		filter: drop-shadow(2px 0 0 var(--pink));
	}
}

/* 昼の光：夜の懐中電灯と同じ質感（dither の絵は front.js が作る）。明るさは panel の色に合わせて --glow で変える
   明るい panel では overlay（地の色だけ明るくなり、濃い文字は読める）、暗い panel では screen
   beam：横いっぱいの帯。panel の中の scroll に合わせて上から下へ動き、下端で panel が替わる
   torch：pointer に付いてくる丸い光。帯より弱い */
.beam,
.torch {
	position: absolute;
	left: 0;
	top: 0;
	pointer-events: none;
	image-rendering: pixelated;
	mix-blend-mode: var(--blend);
}
.beam {
	right: 0;
	z-index: 2;
	height: var(--beam-h, 224px);
	opacity: calc(var(--glow) * 0.6);
	background: var(--beam-img) 0 0 / calc(4 * var(--u, 1px)) 100% repeat-x;
}
.torch {
	z-index: 3;
	width: var(--torch-d, 288px);
	height: var(--torch-d, 288px);
	opacity: 0;
	background: var(--torch-img) 0 0 / 100% 100% no-repeat;
}
.torch.on {
	opacity: calc(var(--glow) * 0.9);
}
/* カメラのファインダー：pointer に付く細いリング。中だけ実写に切り替わる */
.finder {
	z-index: 4;
	width: var(--torch-d, 288px);
	height: var(--torch-d, 288px);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--ink) 40.0%, transparent),
		inset 0 0 0 1px color-mix(in srgb, var(--white) 53.3%, transparent),
		inset 0 0 24px color-mix(in srgb, var(--ink) 18.0%, transparent);
	transition: opacity 0.15s steps(2);
}
.finder.on {
	opacity: 1;
}
html:not(.js) .beam,
html:not(.js) .torch,
html:not(.js) .finder {
	display: none;
}

/* title の文字の足（front.js が .walk・.caught・.hop を付ける）。光が当たっていないときに足踏みし、光が当たると固まる */
.title .ch::before,
.title .ch::after,
.op-ch::before,
.op-ch::after {
	content: "";
	position: absolute;
	bottom: -0.055em;
	width: 0.1em;
	height: 0.095em;
	border-left: 0.05em solid var(--leg, var(--ac));
	border-bottom: 0.043em solid var(--leg, var(--ac));
	transform: scaleY(0);
	transform-origin: 0 0;
	pointer-events: none;
}
.title .ch::before {
	left: 30%;
	--leg: var(--leg-l);
}
.title .ch::after {
	left: 52%;
	--leg: var(--leg-r);
}
/* オープニングのネオンも同じ足を使う（2026-11-16） */
.op-ch::before {
	left: 30%;
}
.op-ch::after {
	left: 52%;
}
html.js .panel.on .title .ch.walk {
	animation: bob 0.36s steps(1) infinite;
}
html.js .panel.on .title .ch.walk::before {
	animation: step-l 0.36s steps(1) infinite;
}
html.js .panel.on .title .ch.walk::after {
	animation: step-r 0.36s steps(1) infinite;
}
html.js .panel.on .title .ch.caught,
html.js .panel.on .title .ch.caught::before,
html.js .panel.on .title .ch.caught::after {
	animation-play-state: paused;
}
html.js .panel.on .title .ch.hop {
	animation: hop 0.5s steps(1);
}
html.js .panel.on .title .ch.hop::before,
html.js .panel.on .title .ch.hop::after {
	animation: hop-feet 0.5s steps(1);
}
@keyframes bob {
	0% {
		transform: translateY(-0.05em) scale(0.94) rotate(-3deg);
	}
	50% {
		transform: translateY(-0.07em) scale(0.94) rotate(3deg);
	}
}
/* 足は付け根を軸に前後へ振る（前＝つま先の向き）。前後に出し切ったときは伸び、真ん中を通るときは持ち上げて縮む。左右は半周ずらす */
@keyframes step-l {
	0% {
		transform: rotate(-32deg) scaleY(1);
	}
	25% {
		transform: rotate(0) scaleY(0.5);
	}
	50% {
		transform: rotate(28deg) scaleY(0.9);
	}
	75% {
		transform: rotate(0) scaleY(0.5);
	}
}
@keyframes step-r {
	0% {
		transform: rotate(28deg) scaleY(0.9);
	}
	25% {
		transform: rotate(0) scaleY(0.5);
	}
	50% {
		transform: rotate(-32deg) scaleY(1);
	}
	75% {
		transform: rotate(0) scaleY(0.5);
	}
}
@keyframes hop {
	0% {
		transform: translateY(-0.05em) scale(0.94);
	}
	20% {
		transform: translateY(-0.27em) scale(0.94) rotate(-6deg);
	}
	45% {
		transform: translateY(-0.09em) scale(0.94) rotate(4deg);
	}
	70%,
	100% {
		transform: translateY(-0.05em) scale(0.94);
	}
}
@keyframes hop-feet {
	0% {
		transform: scaleY(1);
	}
	20% {
		transform: rotate(-24deg) scaleY(1.5);
	}
	45% {
		transform: rotate(18deg) scaleY(0.6);
	}
	70%,
	100% {
		transform: scaleY(1);
	}
}

/* 世界の跡（front.js の marks）：看板から去った文字は欠け、傾いた額は傾く。付箋は lime */
.title .ch.gone {
	color: transparent;
	outline: 3px dashed var(--ac);
	outline-offset: -0.14em;
}
.item.tilt .shot img {
	transform: rotate(7deg);
}
/* 夜にテーブルランプが点いた跡：傘の後ろに暖色の dither の光輪（front.js が .lit を付ける） */
.item.lit .shot::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 25%;
	height: 140%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	background: var(--lit-img) 50% 50% / 100% 100% no-repeat;
	image-rendering: pixelated;
	opacity: 0.85;
	pointer-events: none;
}
.memo {
	position: absolute;
	z-index: 5;
	max-width: min(30em, 72vw);
	padding: 2px 10px;
	background: var(--lime);
	color: var(--ink);
	font: 400 clamp(11px, 0.85vw, 14px)/1.5 var(--dot);
	letter-spacing: 0.04em;
	text-align: left;
}
button.memo {
	cursor: pointer;
}
button.memo:hover,
button.memo:focus-visible {
	background: var(--cream);
	outline: 2px solid var(--ink);
}
/* ファビの足跡：panel の地の上、文字の後ろ。2 つの点で 1 歩、左右を交互に */
.panel {
	isolation: isolate;
}
.steps {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}
.steps i {
	position: absolute;
	width: 5px;
	height: 5px;
	background: var(--fg);
	opacity: 0.22;
	box-shadow: 7px -2px 0 var(--fg);
}
.steps i.r {
	transform: translateX(12px);
}
.shot .memo {
	left: 50%;
	top: -1.2em;
	white-space: nowrap;
	transform: translateX(-50%) rotate(-4deg);
}

/* 裏の中継：古いモニター。位置と大きさは front.js が panel の .slot に合わせる */
.pip {
	position: fixed;
	z-index: 8;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	display: flex;
	flex-direction: column;
	padding: clamp(5px, 0.5vw, 9px) clamp(5px, 0.5vw, 9px) 0;
	background: var(--wine);
	outline: 1px solid var(--ink);
	color: var(--cream);
	text-align: left;
	transition:
		left 0.3s steps(4),
		top 0.3s steps(4),
		width 0.3s steps(4),
		height 0.3s steps(4);
}
.pip canvas {
	flex: 1;
	min-height: 0;
	width: 100%;
	object-fit: cover;
	background: var(--ink);
}
/* 選ばれた商品の枠（front.js の drawMark）：lime の細い線と四隅の太線。.pip の寸法が変わっている間・拡大中は出さない */
.pip-mark {
	position: absolute;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
	animation: pipmark 1s steps(2) infinite;
}
.pip-mark[hidden],
.pip.zoom .pip-mark {
	display: none;
}
.pip-mark polygon {
	fill: none;
	stroke: var(--lime);
	stroke-width: 1;
}
.pip-mark path {
	fill: none;
	stroke: var(--lime);
	stroke-width: 3;
	stroke-linecap: square;
	stroke-linejoin: miter;
}
@keyframes pipmark {
	50% {
		opacity: 0.35;
	}
}
.pip .ctl {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	height: clamp(22px, 3.2vh, 34px);
	font: clamp(10px, 0.8vw, 13px) var(--dot);
	letter-spacing: 0.06em;
	white-space: nowrap;
	overflow: hidden;
}
.pip .lamp {
	flex: none;
	width: 8px;
	height: 8px;
	background: var(--pink);
	animation: lamp 1s steps(2) infinite;
}
@keyframes lamp {
	50% {
		background: var(--ink);
	}
}
.pip .grille {
	flex: 1;
	max-width: 120px;
	height: 10px;
	margin-left: auto;
	background: repeating-linear-gradient(
		90deg,
		var(--ink) 0 2px,
		transparent 2px 5px
	);
}
.pip .knob {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background:
		linear-gradient(var(--ink), var(--ink)) 50% 0 / 1px 50% no-repeat,
		var(--dust);
}
.pip em {
	position: absolute;
	left: -10px;
	top: -13px;
	transform: rotate(-4deg);
	padding: 1px 8px;
	background: var(--lime);
	color: var(--ink);
	font: normal 12px var(--dot);
}
html:not(.js) .pip {
	display: none;
}
/* 閉店：中継が画面いっぱいに広がる（main.js が位置と大きさを動かす） */
.pip.zoom {
	z-index: 9;
	padding: 0;
	outline: 0;
	transition:
		left 0.6s cubic-bezier(0.6, 0, 0.3, 1),
		top 0.6s cubic-bezier(0.6, 0, 0.3, 1),
		width 0.6s cubic-bezier(0.6, 0, 0.3, 1),
		height 0.6s cubic-bezier(0.6, 0, 0.3, 1);
}
.pip.zoom em,
.pip.zoom .ctl {
	display: none;
}

/* 幅が狭い・縦長の画面：柱をやめ、1 列に積む。品は 2×2 */
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) {
	:root {
		--rail: 0px;
		--deck: 54px;
		--pad: 14px;
	}
	.rail,
	.hint span,
	.keys a span,
	.keys button span,
	.mast span:nth-child(2),
	.menu,
	.gauge {
		display: none;
	}
	.keys a,
	.keys button {
		padding: 0.3em 0.3em;
	}
	.panel {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-auto-rows: auto;
		align-content: start;
		--g: 8px;
	}
	.panel > * {
		grid-column: 1;
		grid-row: auto;
	}
	.panel .slot {
		width: 100%;
		aspect-ratio: 16 / 8.4;
	}
	.panel .title {
		writing-mode: horizontal-tb;
		padding: 0 0 0.08em;
		border: 0;
		border-bottom: 1px solid var(--line);
		font-size: min(11vw, 6.4vh);
		white-space: normal;
		order: -2;
	}
	.p-roof .mast {
		order: -3;
	}
	.p-roof .title {
		writing-mode: vertical-rl;
		justify-self: end;
		border: 0;
		font-size: min(7.2vh, 12vw);
		position: absolute;
		right: var(--pad);
		top: calc(var(--pad) + 2.6em);
		z-index: 1;
		pointer-events: none;
	}
	.p-roof .slot {
		width: 56%;
		aspect-ratio: 1 / 1.1;
		margin-top: 0.4em;
	}
	.p-roof .lead {
		columns: 1;
		width: 56%;
		border: 0;
		padding: 0;
	}
	.floor {
		order: -1;
	}
	.lead,
	.note {
		font-size: 13px;
		line-height: 1.7;
	}
	.p-mail .tel {
		font-size: min(11vw, 6.4vh);
		border: 0;
	}
	.panel .items {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: end;
		gap: 1vh 8px;
		--ih: 11vh;
		--mh: 5.4em;
	}
	.p-roof .items {
		--ih: 8.4vh;
	}
	.more {
		flex-wrap: wrap;
		align-content: center;
		gap: 0 1em;
		font-size: 12px;
	}
	.item h3 {
		font-size: 12px;
	}
	.foot {
		font-size: 11px;
	}
}

/* JS が動かないとき：panel を順に並べる */
html:not(.js) .front {
	height: auto;
}
html:not(.js) {
	--rail: 0px;
}
html:not(.js) .stage {
	position: static;
	height: auto;
	overflow: visible;
}
html:not(.js) .rail,
html:not(.js) .deck,
html:not(.js) .slot {
	display: none;
}
html:not(.js) .pane,
html:not(.js) .panels,
html:not(.js) .panel {
	position: static;
	height: auto;
}

/* シャッター：段々に降りて引っかかり、最後に叩きつけて跳ね返る。止まるたびに表と中継が揺れる
   shut と quake は同じ長さ（0.9 秒）・同じ区切りにしてある。変えるときは main.js の待ち時間も合わせる */
.shutter {
	position: fixed;
	inset: -3vh 0 0 0;
	z-index: 7;
	background: repeating-linear-gradient(
		var(--violet) 0 0.6vh,
		var(--plum) 0.6vh 5.2vh,
		var(--navy) 5.2vh 6.8vh
	);
	border-bottom: 2.4vh solid var(--ink);
	transform: translateY(-101%);
	pointer-events: none;
}
.shutter.down {
	transform: none;
	animation: shut 0.9s steps(1) backwards;
}
.shutter.up {
	animation: unshut 0.7s steps(1);
}
body.quake .stage,
body.quake .pip {
	animation: quake 0.9s steps(1);
}
body.unquake .stage,
body.unquake .pip {
	animation: unquake 0.35s steps(1);
}
@keyframes shut {
	0% {
		transform: translateY(-101%);
	}
	6% {
		transform: translateY(-88%);
	}
	12% {
		transform: translateY(-85%);
	}
	20% {
		transform: translateY(-66%);
	}
	26% {
		transform: translateY(-63%);
	}
	36% {
		transform: translateY(-44%);
	}
	42% {
		transform: translateY(-41%);
	}
	52% {
		transform: translateY(-22%);
	}
	58% {
		transform: translateY(-20%);
	}
	68% {
		transform: translate(0, 0);
	}
	72% {
		transform: translate(-6px, -2.6%);
	}
	76% {
		transform: translate(5px, 0);
	}
	80% {
		transform: translate(-3px, -1%);
	}
	84% {
		transform: translate(2px, 0);
	}
	88%,
	100% {
		transform: none;
	}
}
@keyframes quake {
	0% {
		transform: none;
	}
	6% {
		transform: translate(0, 3px);
	}
	12% {
		transform: translate(-2px, -1px);
	}
	16% {
		transform: none;
	}
	20% {
		transform: translate(0, 4px);
	}
	26% {
		transform: translate(2px, -1px);
	}
	30% {
		transform: none;
	}
	36% {
		transform: translate(0, 4px);
	}
	42% {
		transform: translate(-2px, -2px);
	}
	46% {
		transform: none;
	}
	52% {
		transform: translate(0, 5px);
	}
	58% {
		transform: translate(2px, -2px);
	}
	62% {
		transform: none;
	}
	68% {
		transform: translate(0, 14px);
	}
	72% {
		transform: translate(-6px, -8px);
	}
	76% {
		transform: translate(5px, 6px);
	}
	80% {
		transform: translate(-3px, -4px);
	}
	84% {
		transform: translate(2px, 2px);
	}
	88%,
	100% {
		transform: none;
	}
}
/* 開店：掛け金が外れて一度沈み、段々に上がる */
@keyframes unshut {
	0% {
		transform: none;
	}
	6% {
		transform: translate(3px, 1.2vh);
	}
	12% {
		transform: translateY(-3%);
	}
	20% {
		transform: translateY(-2%);
	}
	30% {
		transform: translateY(-25%);
	}
	38% {
		transform: translateY(-23%);
	}
	50% {
		transform: translateY(-50%);
	}
	58% {
		transform: translateY(-48%);
	}
	70% {
		transform: translateY(-76%);
	}
	78% {
		transform: translateY(-74%);
	}
	90%,
	100% {
		transform: translateY(-101%);
	}
}
@keyframes unquake {
	0% {
		transform: none;
	}
	15% {
		transform: translate(3px, 5px);
	}
	35% {
		transform: translate(-2px, -3px);
	}
	55% {
		transform: translate(1px, 2px);
	}
	75%,
	100% {
		transform: none;
	}
}
body.closed .pip {
	display: none;
}

/* ---------- モニター室：昼と同じ柱（左）と操作盤（下）。キー 1〜6 がカメラ、中央が録画の timeline ---------- */
.monitor {
	position: fixed;
	inset: 0;
	z-index: 10;
	display: grid;
	grid-template: minmax(0, 1fr) auto / var(--rail) minmax(0, 1fr);
	background: var(--ink);
	color: var(--cream);
	--mb: var(--navy);
	--mf: var(--lav);
	--ac: var(--pink);
}
.monitor[hidden] {
	display: none;
}
.monitor .rail {
	position: static;
	grid-area: 1 / 1;
	width: auto;
}
.screen {
	position: relative;
	container-type: size;
	min-height: 0;
	grid-area: 1 / 2;
	font-family: var(--dot);
	background: radial-gradient(120% 100% at 50% 46%, var(--navy) 0%, var(--ink) 76%);
}
.monitor .deck {
	position: static;
	grid-area: 2 / 1 / 3 / 3;
	height: auto;
	min-height: var(--deck);
	flex-wrap: wrap;
	gap: 10px clamp(8px, 1.2vw, 20px);
	padding-block: 10px max(10px, env(safe-area-inset-bottom));
}
.monitor .counter {
	margin-left: 0;
}
.key[hidden] {
	display: none;
}
.mfoot {
	font: 11px var(--dot);
	letter-spacing: 0.06em;
	white-space: nowrap;
}
@media (max-width: 1500px) {
	.monitor .keys span,
	.mfoot {
		display: none;
	}
	.monitor .keys button {
		padding: 0.34em 0.4em;
	}
}
/* 一覧：領域いっぱいに 3×2（縦長の画面では 2×3） */
.grid6 {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template: repeat(2, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr));
	gap: 6px;
	padding: 6px;
}
@media (max-aspect-ratio: 1/1) {
	.grid6 {
		grid-template: repeat(3, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
	}
}

.grid6[hidden],
.feed[hidden] {
	display: none;
}
.feed {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	background: var(--ink);
	border: 2px solid var(--plum);
	cursor: crosshair;
	container-type: inline-size;
	touch-action: none;
}
/* 1 台表示：領域いっぱい。縦横比が合わなければ映像の端を切る（表示は四隅に置くので切れない） */
.feed.big {
	position: absolute;
	inset: 0;
	border: 3px solid var(--plum);
	container-type: normal;
}
.grid6 .feed {
	cursor: pointer;
}
.grid6 .feed.active {
	outline: 2px solid var(--pink);
	outline-offset: -2px;
}
.feed canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.feed .ov {
	position: absolute;
	z-index: 1;
	color: var(--white);
	background: color-mix(in srgb, var(--ink) 80.0%, transparent);
	padding: 0 0.6em;
	font-size: clamp(11px, 1.1cqi, 20px);
	letter-spacing: 0.06em;
	pointer-events: none;
	white-space: nowrap;
}
.grid6 .feed .ov {
	font-size: clamp(8px, 2.4cqi, 14px);
}
.feed .tl {
	left: 12px;
	top: 10px;
}
.feed .tr {
	right: 12px;
	top: 10px;
}
.feed .bl {
	left: 12px;
	bottom: 10px;
}
.feed .br {
	right: 12px;
	bottom: 10px;
	color: var(--lime);
}
.grid6 .feed .tl,
.grid6 .feed .tr {
	top: 6px;
}
.grid6 .feed .tl,
.grid6 .feed .bl {
	left: 6px;
}
.grid6 .feed .tr {
	right: 6px;
}
.grid6 .feed .bl {
	bottom: 6px;
}
.feed.motion {
	border-color: var(--lime);
	animation: blink 1s steps(2) infinite;
}
@keyframes blink {
	50% {
		border-color: var(--plum);
	}
}

.tline .bar {
	all: unset;
	position: relative;
	height: 26px;
	border: 2px solid var(--plum);
	background: repeating-linear-gradient(
		90deg,
		transparent 0 23px,
		color-mix(in srgb, var(--plum) 53.3%, transparent) 23px 24px
	);
	cursor: ew-resize;
	touch-action: none;
}
.tline .bar:focus-visible {
	outline: 2px solid var(--lime);
}
.tline #played {
	position: absolute;
	inset: 0 auto 0 0;
	background: color-mix(in srgb, var(--pink) 13.3%, transparent);
}
.tline #marks i {
	position: absolute;
	top: 3px;
	bottom: 3px;
	width: 4px;
	background: var(--orange);
}
.tline #marks i.me {
	top: auto;
	bottom: -6px;
	height: 4px;
	background: var(--lav);
}
.feed .intr {
	left: 50%;
	top: 10px;
	transform: translateX(-50%);
	color: var(--ink);
	background: var(--lime);
	animation: lamp-intr 1s steps(2) infinite;
}
@keyframes lamp-intr {
	50% {
		background: var(--pink);
	}
}
.tline #head {
	position: absolute;
	top: -6px;
	bottom: -6px;
	width: 3px;
	background: var(--pink);
}
.tline .live.rec {
	color: var(--orange);
}
.tline {
	flex: 1 1 200px;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	font: 13px var(--dot);
	color: var(--mf);
	white-space: nowrap;
}
.tline .bar {
	flex: 1;
}

@media (prefers-reduced-motion: reduce) {
	.pip,
	.pip.zoom,
	.shot img {
		transition: none;
	}
	.shutter.down,
	.shutter.up,
	body.quake .stage,
	body.quake .pip,
	body.unquake .stage,
	body.unquake .pip {
		animation: none;
	}
	.hint b,
	.pip .lamp,
	.pip-mark {
		animation: none;
	}
}

/* 昼と夜の上部表示は、同じ枠・文字サイズ・余白を使う。 */
.scene-header {
	position: absolute;
	z-index: 2;
	inset: 2.4cqh 4cqw auto 2.2cqw;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1em;
	font: min(1.04vw, 2cqh)/1.8 var(--dot);
	letter-spacing: 0;
	pointer-events: none;
}
.feed.big .scene-header {
	inset: calc(2.4cqh - 3px) calc(4cqw - 3px) auto calc(2.2cqw - 3px);
}
.feed.big .scene-header .ov {
	position: static;
	padding: 0;
	font: inherit;
	letter-spacing: inherit;
}
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) {
	.scene-header {
		inset: 12px 14px auto;
		font-size: 11px;
	}
	.feed.big .scene-header {
		inset: 9px 11px auto;
	}
}

/* 休憩室：商品・中継・品書きの既存部品を、デザインの枠に配置する。 */
.p-lounge {
	container-type: size;
	--lounge-unit: min(1cqw, 2.06cqh);
	--bg: var(--lounge-bg);
	--fg: var(--lounge-ink);
	--paper: var(--lounge-paper);
	display: block;
	padding: 0;
}
.lounge-layout {
	position: absolute;
	inset: 8cqh 4cqw 3.3cqh 2.2cqw;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) auto;
	gap: calc(1.1 * var(--lounge-unit));
}
.p-lounge .scene-header .floor {
	font: inherit;
	letter-spacing: 0.1em;
}
.lounge-showcase {
	position: relative;
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	border-radius: calc(1.1 * var(--lounge-unit));
	isolation: isolate;
}
/* 枠の線と桃色の背景だけを紙片と同じかすれで刷る（中のベージュは掛けない） */
.lounge-frame {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--lounge-peach);
	border: 2px solid var(--lounge-ink);
	border-radius: calc(1.1 * var(--lounge-unit));
	-webkit-mask-image: url("assets/masks/ink-06.png");
	mask-image: url("assets/masks/ink-06.png");
	-webkit-mask-size: 560px 560px;
	mask-size: 560px 560px;
	-webkit-mask-position: -180px 90px;
	mask-position: -180px 90px;
	-webkit-mask-repeat: repeat;
	mask-repeat: repeat;
	-webkit-mask-clip: no-clip;
	mask-clip: no-clip;
}
.lounge-showcase::before {
	content: "";
	position: absolute;
	inset: calc(1.4 * var(--lounge-unit));
	background: var(--paper);
	border: 1px solid var(--lounge-ink);
	border-radius: calc(0.65 * var(--lounge-unit));
	z-index: -1;
}
.lounge-showcase::after {
	content: "";
	position: absolute;
	left: 55.55%;
	top: 4.1%;
	bottom: 4.1%;
	width: 1px;
	background: linear-gradient(
		color-mix(in srgb, var(--lounge-ink) 20.0%, transparent) 0 40%,
		transparent 40% 51%,
		color-mix(in srgb, var(--lounge-ink) 20.0%, transparent) 51%
	);
	z-index: -1;
}
.p-lounge .title {
	position: absolute;
	left: 4.44%;
	top: auto;
	bottom: 9.7%;
	writing-mode: horizontal-tb;
	font-size: calc(6.59 * min(1cqw, 1.832cqh));
	white-space: nowrap;
	padding: 0;
	border: 0;
	color: var(--navy);
}
.p-lounge .note {
	position: absolute;
	z-index: 2;
	left: 4.44%;
	top: 6.48%;
	width: 32%;
	max-width: none;
	min-height: 20.3%;
	padding: calc(1 * var(--lounge-unit));
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.65em;
	background: var(--paper);
	border: 2px solid var(--lounge-yellow);
	border-radius: calc(0.65 * var(--lounge-unit));
	font-size: calc(0.77 * var(--lounge-unit));
	line-height: 1.6;
}
.p-lounge .note span:first-child {
	font-family: var(--dot);
	font-size: max(14px, 0.84em);
	letter-spacing: 0.08em;
}
.p-lounge .note strong {
	font-size: calc(1.04 * var(--lounge-unit));
	font-weight: 700;
	line-height: 1.5;
}
.lounge-dial {
	position: absolute;
	right: 7%;
	top: 6%;
	width: 13%;
	display: grid;
	gap: 0.65em;
	font: calc(0.74 * var(--lounge-unit))/1.4 var(--dot);
	text-align: center;
}
.lounge-dial > span {
	white-space: nowrap;
}
.lounge-dial i {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1;
	border: calc(0.6 * var(--lounge-unit)) solid var(--lounge-teal);
	border-radius: 50%;
	transform: rotate(calc(var(--p, 0) * 360deg));
}
.lounge-dial i::after {
	content: "";
	position: absolute;
	top: -7%;
	left: 50%;
	width: calc(0.6 * var(--lounge-unit));
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--fg);
}
.lounge-dial time {
	position: absolute;
	top: 57%;
	left: 50%;
	transform: translate(-50%, -50%);
	font: 700 calc(1.5 * var(--lounge-unit))/1 var(--sans);
	white-space: nowrap;
}
.p-lounge .items {
	position: absolute;
	inset: 0;
	display: block;
	height: 100%;
	align-self: stretch;
	padding: 0;
	pointer-events: none;
}
.p-lounge .item {
	position: static;
	display: block;
	pointer-events: auto;
}
.p-lounge .item > .shot {
	position: absolute;
	left: var(--item-x);
	top: var(--item-y);
	width: var(--item-width);
	height: var(--item-height);
}
.p-lounge .shot::after {
	bottom: 2%;
	height: 12%;
	opacity: 0.18;
}
.p-lounge .item > .tag {
	position: absolute;
	left: var(--label-x);
	top: var(--label-y);
	transform: none;
}
.p-lounge .item > h3 {
	position: absolute;
	left: var(--label-x);
	top: calc(var(--label-y) + 2.15em);
	font-size: calc(0.88 * var(--lounge-unit));
	line-height: 1.4;
	white-space: nowrap;
	text-align: left;
}
.p-lounge .tag .num {
	font-size: calc(0.77 * var(--lounge-unit));
}
.p-lounge .tag .price {
	font-size: calc(1.2 * var(--lounge-unit));
}
.p-lounge #lounge-table {
	--item-x: 11.6%;
	--item-y: 29.4%;
	--item-width: 17.8%;
	--item-height: 33.1%;
	--label-x: 12.5%;
	--label-y: 63.2%;
}
.p-lounge #lounge-vending {
	--item-x: 41.4%;
	--item-y: 20.5%;
	--item-width: 18.7%;
	--item-height: 29.3%;
	--label-x: 42.3%;
	--label-y: 50.4%;
}
.p-lounge #lounge-sofa {
	--item-x: 71.3%;
	--item-y: 34.4%;
	--item-width: 16.9%;
	--item-height: 45.4%;
	--label-x: 72.2%;
	--label-y: 80.4%;
}
.p-lounge #lounge-locker {
	--item-x: 78.7%;
	--item-y: 29.7%;
	--item-width: 12%;
	--item-height: 34.7%;
	--label-x: 77.8%;
	--label-y: 65.9%;
}
.p-lounge .more {
	left: 4.44%;
	right: 4.44%;
	bottom: 4.2%;
	height: auto;
	min-height: 2.4em;
	font-size: calc(0.88 * var(--lounge-unit));
	pointer-events: auto;
}
.lounge-side {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	min-height: 0;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	gap: calc(1.1 * var(--lounge-unit));
}
.lounge-monitor {
	min-width: 0;
	padding: calc(0.85 * var(--lounge-unit));
	border: 2px solid var(--lounge-teal);
	border-radius: calc(1.1 * var(--lounge-unit));
	background: var(--paper);
}
.p-lounge .slot {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	outline: 0;
}
.lounge-monitor > p {
	margin-top: 0.65em;
	font: calc(0.57 * var(--lounge-unit))/1.6 var(--dot);
	letter-spacing: 0.06em;
}
.lounge-inventory {
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 2px solid var(--lounge-pink);
	border-radius: calc(1.1 * var(--lounge-unit));
	background: var(--paper);
}
.lounge-inventory-heading {
	flex: none;
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: 0.85em calc(1.05 * var(--lounge-unit));
	background: var(--lounge-pink);
	font: calc(0.6 * var(--lounge-unit))/1.5 var(--dot);
	letter-spacing: 0.08em;
}
.p-lounge .menu {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	max-width: none;
	margin: 0 calc(1.05 * var(--lounge-unit)) calc(0.55 * var(--lounge-unit));
	border: 0;
	font-size: calc(0.88 * var(--lounge-unit));
}
.p-lounge .menu li {
	flex: 1;
	align-items: center;
	padding: 0.38em 0;
	border-color: color-mix(in srgb, var(--lounge-ink) 14.9%, transparent);
}
.p-lounge .menu li i {
	width: calc(0.35 * var(--lounge-unit));
	height: calc(0.35 * var(--lounge-unit));
	border-radius: 50%;
	background: var(--lounge-pink);
	font-size: 0;
	opacity: 1;
}
.p-lounge .menu li:nth-child(even) i {
	background: var(--lounge-teal);
}
.p-lounge .menu li span {
	flex: 1;
	min-width: 0;
}
.p-lounge .menu li b {
	flex: none;
	font-size: 1.12em;
	font-weight: 700;
}
.p-lounge .menu li b::before {
	display: none;
}
.lounge-summary {
	grid-column: 1 / -1;
	grid-row: 2;
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr auto;
	align-items: center;
	gap: 1em;
	min-height: calc(4.2 * var(--lounge-unit));
	padding: 0.5em calc(1.3 * var(--lounge-unit));
	border: 1px solid var(--lounge-ink);
	border-radius: calc(0.65 * var(--lounge-unit));
	background: var(--paper);
}
.lounge-summary dt {
	font: calc(0.55 * var(--lounge-unit))/1.5 var(--dot);
	letter-spacing: 0.1em;
}
.lounge-summary dd {
	display: flex;
	align-items: center;
	gap: 1.5em;
	font-size: calc(1.2 * var(--lounge-unit));
	font-weight: 700;
	line-height: 1.4;
}
.lounge-summary dd > span {
	display: flex;
	gap: calc(0.3 * var(--lounge-unit));
}
.lounge-summary i {
	width: calc(0.65 * var(--lounge-unit));
	height: calc(0.65 * var(--lounge-unit));
	background: var(--lounge-teal);
}
.lounge-summary .condition-marks i {
	border-radius: 50%;
}
.lounge-summary .condition-marks i:last-child {
	background: var(--lounge-pink);
}
.lounge-summary .camera-marks i {
	width: calc(0.55 * var(--lounge-unit));
	background: var(--lounge-yellow);
}
.lounge-summary .lounge-room-code dd {
	font: calc(0.74 * var(--lounge-unit))/1.5 var(--dot);
	letter-spacing: 0.06em;
}
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) {
	.p-lounge {
		--lounge-unit: min(1.6cqw, 1.2cqh);
	}
	.lounge-layout {
		inset: 9cqh 4cqw 2cqh;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto auto;
		gap: 1.5cqh;
	}
	.lounge-showcase {
		grid-column: 1;
		grid-row: 1;
	}
	.lounge-side {
		grid-column: 1;
		grid-row: 2;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto;
		gap: 2cqw;
	}
	.p-lounge .slot {
		aspect-ratio: 16 / 10;
	}
	.lounge-summary {
		grid-column: 1;
		grid-row: 3;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.lounge-room-code {
		display: none;
	}
	.p-lounge .more {
		font-size: calc(0.8 * var(--lounge-unit));
		gap: 0.5em;
		flex-wrap: wrap;
	}
	.p-lounge .more .say {
		flex-basis: 65%;
	}
	.p-lounge .note {
		padding: calc(0.6 * var(--lounge-unit));
		gap: 0.35em;
	}
	.p-lounge .menu {
		font-size: calc(0.75 * var(--lounge-unit));
	}
}

/* 倉庫：左の中継と、丸を背景にした商品群。札と選択時の動作は共通部品を使う。 */
.p-stock {
	display: block;
	container-type: size;
	padding: 0;
	--stock-unit: min(1cqw, 1.832cqh);
	--bg: var(--concrete);
	--fg: var(--stock-ink);
	--paper: var(--stock-paper);
	background:
		linear-gradient(color-mix(in srgb, var(--concrete) 40.0%, transparent), color-mix(in srgb, var(--concrete) 40.0%, transparent)),
		url("assets/stock-concrete.jpg") center/cover,
		var(--concrete);
}
.p-stock .scene-header .floor {
	font: inherit;
	letter-spacing: 0.1em;
}
.p-stock .title {
	position: absolute;
	left: 2.2%;
	top: 11cqh;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: calc(6.59 * var(--stock-unit));
	line-height: 1.08;
	letter-spacing: 0.06em;
	color: var(--fg);
	text-shadow: none;
}
.p-stock .note {
	position: absolute;
	left: 2.2%;
	top: 30cqh;
	width: 35.5%;
	max-width: none;
	font-size: calc(0.87 * var(--stock-unit));
	line-height: 1.65;
}
.p-stock .menu {
	display: none;
}
.stock-art {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: -1;
}
.stock-art .stock-circle {
	position: absolute;
	left: 44%;
	top: 7cqh;
	width: min(34.5cqw, 70cqh);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--vermilion);
}
/* 屋上と同じ図形を小さく散らす（2026-11-16）。すべて art の中なので商品とモニターの後ろ */
.stock-art .stock-disc,
.stock-art .stock-ring,
.stock-art .stock-tri {
	position: absolute;
}
.stock-art .stock-disc {
	left: 1%;
	top: 60cqh;
	width: 18cqw;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--red);
}
.stock-art .stock-ring {
	right: -3%;
	top: 10cqh;
	width: 18cqw;
	aspect-ratio: 1;
	border: calc(1.2 * var(--stock-unit)) solid var(--indigo);
	border-radius: 50%;
}
.stock-art .stock-tri {
	left: 20%;
	top: 15cqh;
	width: 20cqw;
	height: 27cqh;
	background: var(--yellow);
	clip-path: polygon(0 35%, 100% 0, 70% 100%);
}
.stock-art .stock-circle,
.stock-art .stock-disc,
.stock-art .stock-ring,
.stock-art .stock-tri,
.stock-bar {
	-webkit-mask-repeat: repeat;
	mask-repeat: repeat;
	-webkit-mask-clip: no-clip;
	mask-clip: no-clip;
}
.stock-art .stock-circle {
	-webkit-mask-image: url("assets/masks/ink-01.png");
	mask-image: url("assets/masks/ink-01.png");
	-webkit-mask-size: 560px 560px;
	mask-size: 560px 560px;
	-webkit-mask-position: -220px 140px;
	mask-position: -220px 140px;
}
.stock-art .stock-disc {
	-webkit-mask-image: url("assets/masks/ink-02.png");
	mask-image: url("assets/masks/ink-02.png");
	-webkit-mask-size: 260px 260px;
	mask-size: 260px 260px;
	-webkit-mask-position: 90px -120px;
	mask-position: 90px -120px;
}
.stock-art .stock-ring {
	-webkit-mask-image: url("assets/masks/ink-03.png");
	mask-image: url("assets/masks/ink-03.png");
	-webkit-mask-size: 220px 220px;
	mask-size: 220px 220px;
	-webkit-mask-position: -60px 70px;
	mask-position: -60px 70px;
}
.stock-art .stock-tri {
	-webkit-mask-image: url("assets/masks/ink-04.png");
	mask-image: url("assets/masks/ink-04.png");
	-webkit-mask-size: 260px 260px;
	mask-size: 260px 260px;
	-webkit-mask-position: 110px -40px;
	mask-position: 110px -40px;
}
.stock-bar {
	-webkit-mask-image: url("assets/masks/ink-05.png");
	mask-image: url("assets/masks/ink-05.png");
	-webkit-mask-size: 400px 400px;
	mask-size: 400px 400px;
	-webkit-mask-position: -130px -60px;
	mask-position: -130px -60px;
}
.stock-bar {
	position: absolute;
	right: 0;
	top: 80cqh;
	width: 66.5%;
	height: 8.5cqh;
	padding: 1em;
	background: var(--stock-black);
	color: var(--paper);
	font-size: calc(1.2 * var(--stock-unit));
	letter-spacing: 0.04em;
	transform: rotate(-9deg);
}
.stock-art > span {
	display: none;
	position: absolute;
	right: 4%;
	top: 16cqh;
	font-size: calc(5.27 * var(--stock-unit));
	font-weight: 700;
	line-height: 1;
	color: var(--vermilion);
}
.stock-monitor {
	position: absolute;
	left: 2.2%;
	top: 38cqh;
	width: 36cqw;
	height: calc(36cqw * 446 / 674);
	padding: calc(1 * var(--stock-unit));
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	gap: calc(0.45 * var(--stock-unit));
	border: 1px solid var(--fg);
	background: var(--paper);
}
.p-stock .slot {
	grid-column: auto;
	grid-row: auto;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	outline: 0;
}
.stock-monitor > p {
	font: calc(0.8 * var(--stock-unit))/1.6 var(--dot);
	letter-spacing: 0.06em;
}
.p-stock .items {
	position: absolute;
	inset: 0;
	display: block;
	height: 100%;
	align-self: stretch;
	padding: 0;
	pointer-events: none;
}
.p-stock .item {
	position: static;
	display: block;
	pointer-events: auto;
}
.p-stock .item::before {
	content: none;
	position: absolute;
	left: var(--number-x);
	top: var(--number-y);
	font:
		700 calc(3.2 * var(--stock-unit))/1 Impact,
		"Arial Narrow",
		sans-serif;
	letter-spacing: -0.04em;
}
.p-stock .item > .shot {
	position: absolute;
	left: var(--shot-x);
	top: var(--shot-y);
	width: var(--shot-width);
	height: var(--shot-height);
}
.p-stock .shot::after {
	bottom: 0;
	height: 12%;
	opacity: 0.3;
}
.p-stock .item > .tag {
	position: absolute;
	left: var(--label-x);
	top: var(--label-y);
	transform: none;
}
.p-stock .tag .num {
	font-size: calc(0.86 * var(--stock-unit));
}
.p-stock .tag .price {
	font-size: calc(1.2 * var(--stock-unit));
}
.p-stock .item > h3 {
	position: absolute;
	left: var(--label-x);
	top: calc(var(--label-y) + 2.4em);
	font-size: calc(0.99 * var(--stock-unit));
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
	white-space: nowrap;
}
.p-stock #stock-frames {
	--stock-number: "01";
	--number-x: 44%;
	--number-y: 13%;
	--shot-x: 51.7%;
	--shot-y: 15.9%;
	--shot-width: 18.7%;
	--shot-height: 24.2%;
	--label-x: 52.7%;
	--label-y: 41%;
}
.p-stock #stock-ladder {
	--stock-number: "02";
	--number-x: 67.7%;
	--number-y: 8.5%;
	--shot-x: 68%;
	--shot-y: 14%;
	--shot-width: 9.2%;
	--shot-height: 30%;
	--label-x: 68%;
	--label-y: 44%;
}
.p-stock #stock-fan {
	--stock-number: "02";
	--number-x: 71%;
	--number-y: 17%;
	--shot-x: 78.9%;
	--shot-y: 17.6%;
	--shot-width: 12.65%;
	--shot-height: 30.8%;
	--label-x: 78.9%;
	--label-y: 49.9%;
}
.p-stock #stock-cart {
	--stock-number: "03";
	--number-x: 56%;
	--number-y: 57%;
	--shot-x: 64%;
	--shot-y: 50%;
	--shot-width: 10.45%;
	--shot-height: 30.8%;
	--label-x: 64%;
	--label-y: 82.5%;
}
.p-stock .more {
	position: static;
	display: block;
	height: auto;
	padding: 0;
	border: 0;
	font-size: calc(0.87 * var(--stock-unit));
	line-height: 1.5;
	pointer-events: none;
}
.p-stock .more::before {
	display: none;
	content: "";
	position: absolute;
	left: 43%;
	top: 51.5%;
	width: 27%;
	height: 4.7cqh;
	background: var(--stock-ink);
}
.p-stock .more .cond {
	position: absolute;
	left: var(--label-x);
	top: calc(var(--label-y) + 3.75 * var(--stock-unit));
	color: var(--fg);
}
.p-stock .more .say {
	position: absolute;
	left: calc(var(--label-x) + 4.4em);
	top: calc(var(--label-y) + 3.75 * var(--stock-unit));
	width: 15em;
	color: var(--fg);
}
.p-stock .more .see {
	position: absolute;
	left: calc(2.2cqw + 20cqw - 7.5em);
	top: calc(38cqh + 36cqw * 446 / 674 + 0.7 * var(--stock-unit));
	color: var(--fg);
	pointer-events: auto;
}
.p-stock > .memo {
	font-size: calc(0.87 * var(--stock-unit));
}
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) {
	.p-stock {
		--stock-unit: min(1.7cqw, 0.85cqh);
	}
	.p-stock .title {
		top: 9cqh;
		font-size: calc(6.59 * var(--stock-unit));
	}
	.p-stock .note {
		top: 17cqh;
		width: 86%;
		font-size: calc(1.35 * var(--stock-unit));
	}
	.stock-monitor {
		top: 25cqh;
		width: 45cqw;
		height: calc(45cqw * 446 / 674);
	}
	.stock-art .stock-circle {
		left: 8%;
		top: 48cqh;
		width: 80cqw;
	}
	.stock-art > span {
		top: 28cqh;
		right: 8%;
		font-size: calc(5.27 * var(--stock-unit));
	}
	.p-stock #stock-frames {
		--number-x: 8%;
		--number-y: 51%;
		--shot-x: 12%;
		--shot-y: 55%;
		--shot-width: 31%;
		--shot-height: 11%;
		--label-x: 12%;
		--label-y: 66%;
	}
	.p-stock #stock-ladder {
		--number-x: 58%;
		--number-y: 46%;
		--shot-x: 62%;
		--shot-y: 50%;
		--shot-width: 21%;
		--shot-height: 18%;
		--label-x: 62%;
		--label-y: 68%;
	}
	.p-stock #stock-fan {
		--number-x: 66%;
		--number-y: 75%;
		--shot-x: 70%;
		--shot-y: 78%;
		--shot-width: 18%;
		--shot-height: 13%;
		--label-x: 66%;
		--label-y: 91%;
	}
	.p-stock #stock-cart {
		--number-x: 35%;
		--number-y: 73%;
		--shot-x: 39%;
		--shot-y: 76%;
		--shot-width: 15%;
		--shot-height: 15%;
		--label-x: 35%;
		--label-y: 91%;
	}
	.p-stock .more::before {
		left: 8%;
		top: 71%;
		width: 84%;
		height: 4cqh;
	}
	.p-stock .more .cond {
		left: var(--label-x);
		top: calc(var(--label-y) + 3.75 * var(--stock-unit));
	}
	.p-stock .more .say {
		left: calc(var(--label-x) + 4.4em);
		top: calc(var(--label-y) + 3.75 * var(--stock-unit));
		width: 15em;
	}
	.p-stock .more .see {
		left: 2.2%;
		top: calc(25cqh + 45cqw * 446 / 674 + 0.7 * var(--stock-unit));
	}
}

/* 4 郵便室：新聞の段組み。title・商品・札・カメラの操作は既存のまま。 */
.p-mail {
	display: block;
	container-type: size;
	padding: 0;
	--mail-unit: min(1cqw, 1.832cqh);
	--mail-right-width: 19.5cqw;
	--mail-right-edge: 4cqw;
	--bg: var(--paper-2);
	--fg: var(--mail-ink);
	--paper: var(--stock-paper-2);
	--ac: var(--stock-ac);
	background:
		linear-gradient(color-mix(in srgb, var(--paper-2) 45.1%, transparent), color-mix(in srgb, var(--paper-2) 45.1%, transparent)),
		url("assets/mail-newsprint.jpg") center/cover,
		var(--paper-2);
}
.p-mail .scene-header .floor {
	font: inherit;
	letter-spacing: 0.1em;
}
.mail-masthead {
	position: absolute;
	inset: 7.2cqh var(--mail-right-edge) auto 2.2cqw;
	height: 7.6cqh;
	border-bottom: 1px solid color-mix(in srgb, var(--mail-ink) 34.9%, transparent);
}
.p-mail .title {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	padding: 0;
	border: 0;
	writing-mode: horizontal-tb;
	font-size: calc(3.4 * var(--mail-unit));
	line-height: 1.12;
	letter-spacing: 0.02em;
	text-align: center;
	white-space: normal;
}
.mail-method,
.mail-contact {
	position: absolute;
	top: 0;
	min-height: 10.2cqh;
	padding: calc(0.65 * var(--mail-unit));
	border: 1px solid var(--fg);
	font-size: calc(0.87 * var(--mail-unit));
	line-height: 1.7;
}
.mail-method {
	left: 0;
	width: 16.4%;
}
.mail-contact {
	right: 0;
	width: var(--mail-right-width);
	border-top: 1px solid var(--ac);
}
.mail-method > b,
.mail-method > small,
.mail-contact > span,
.mail-contact > small {
	display: block;
}
.p-mail .tel {
	font: 400 calc(1.25 * var(--mail-unit))/1.5 var(--dot);
	color: var(--fg);
	padding: 0;
	border: 0;
	white-space: nowrap;
}
.mail-dateline {
	position: absolute;
	left: 2.2%;
	right: 4%;
	top: 15.6cqh;
	display: flex;
	justify-content: space-between;
	gap: 1em;
	font: calc(0.5 * var(--mail-unit))/1.5 var(--dot);
	letter-spacing: 0.08em;
}
.mail-guide {
	position: absolute;
	left: 2.2%;
	top: 19.4cqh;
	width: 15.7%;
	height: 69.2cqh;
	padding-right: 1cqw;
	border-right: 1px solid color-mix(in srgb, var(--mail-ink) 20.0%, transparent);
	font-size: calc(0.86 * var(--mail-unit));
	line-height: 1.7;
}
.mail-guide > h3 {
	padding-bottom: 0.5em;
	margin-bottom: 0.7em;
	border-bottom: 1px solid var(--fg);
	font-size: calc(1.1 * var(--mail-unit));
}
.p-mail .mail-guide .note {
	max-width: none;
	font-size: inherit;
	line-height: inherit;
}
.mail-guide h4 {
	font: calc(0.8 * var(--mail-unit))/1.5 var(--dot);
	letter-spacing: 0.08em;
}
.mail-guide > h4 {
	margin-top: 2.6em;
	margin-bottom: 0.6em;
	color: var(--muted-ink);
}
.mail-postmark {
	display: block;
	width: 88%;
	height: 10cqh;
	object-fit: contain;
	margin: 1.6cqh auto;
	opacity: 0.65;
}
.mail-hours {
	min-height: 18cqh;
	padding: calc(0.8 * var(--mail-unit));
	border: 1px solid var(--fg);
}
.mail-hours > p:first-of-type {
	margin: 0.5em 0;
	font: calc(1.05 * var(--mail-unit))/1.5 var(--dot);
}
.mail-hours small {
	display: block;
	margin-top: 1.6em;
	font-size: 0.8em;
}
.mail-guide-foot {
	margin-top: 1.5em;
	font-size: 0.78em;
}
.mail-story {
	position: absolute;
	left: 19.2%;
	right: 47.6%;
	top: 19.4cqh;
}
.mail-kicker,
.mail-products-label {
	font: calc(0.58 * var(--mail-unit))/1.5 var(--dot);
	letter-spacing: 0.15em;
	color: var(--muted-ink);
}
.p-mail .slot {
	grid-column: auto;
	grid-row: auto;
	aspect-ratio: 16 / 10;
	width: 100%;
	outline: 1px solid var(--fg);
	outline-offset: 0;
}
.mail-caption {
	width: 82%;
	font-size: calc(0.86 * var(--mail-unit));
	line-height: 1.6;
	margin-top: 0.6cqh;
}
.mail-night-note {
	font-size: calc(1.1 * var(--mail-unit));
	line-height: 1.5;
	padding-top: 1.3cqh;
	margin-top: 1.8cqh;
	border-top: 1px solid var(--fg);
}
.mail-products-label {
	position: absolute;
	left: 54%;
	top: 19.4cqh;
}
.mail-delivery {
	position: absolute;
	right: var(--mail-right-edge);
	top: 17.2cqh;
	width: var(--mail-right-width);
	height: 27.4cqh;
	padding: calc(1.2 * var(--mail-unit)) 0;
	border-top: 1px solid color-mix(in srgb, var(--mail-ink) 34.9%, transparent);
	font-size: calc(0.87 * var(--mail-unit));
	line-height: 1.7;
}
.mail-delivery h3 {
	font: calc(0.62 * var(--mail-unit))/1.6 var(--dot);
	letter-spacing: 0.15em;
	color: var(--ac);
	margin-bottom: 1em;
}
.mail-delivery small {
	position: absolute;
	left: calc(1.2 * var(--mail-unit));
	bottom: calc(1.2 * var(--mail-unit));
	font: calc(0.53 * var(--mail-unit))/1.5 var(--dot);
	color: var(--muted-ink);
	letter-spacing: 0.08em;
}
.mail-catalog {
	position: absolute;
	left: 54%;
	top: 74cqh;
	width: 21%;
	height: 21cqh;
	padding: calc(1.1 * var(--mail-unit)) 0 0;
	border-top: 1px solid color-mix(in srgb, var(--mail-ink) 34.9%, transparent);
	display: flex;
	flex-direction: column;
}
.mail-catalog h3 {
	font: calc(0.8 * var(--mail-unit))/1.5 var(--dot);
	letter-spacing: 0.15em;
	margin-bottom: 0.6em;
}
.mail-catalog ul {
	list-style: none;
	font-size: calc(0.99 * var(--mail-unit));
	line-height: 1.5;
}
.mail-catalog li {
	padding: 0.45em 0;
	border-bottom: 1px solid color-mix(in srgb, var(--mail-ink) 30.2%, transparent);
}
.mail-catalog small {
	margin-top: auto;
	font: calc(0.53 * var(--mail-unit))/1.5 var(--dot);
	letter-spacing: 0.1em;
	color: var(--muted-ink);
}
.p-mail .items {
	position: absolute;
	inset: 0;
	display: block;
	height: 100%;
	align-self: stretch;
	padding: 0;
	pointer-events: none;
}
.p-mail .items::before {
	content: "";
	position: absolute;
	left: 53.3%;
	top: 19.4%;
	bottom: 5%;
	border-left: 1px solid color-mix(in srgb, var(--mail-ink) 20.0%, transparent);
}
.p-mail .item {
	position: static;
	display: block;
	pointer-events: auto;
}
.p-mail .item::before {
	content: "";
	position: absolute;
	left: var(--card-x);
	top: var(--card-y);
	width: var(--card-width);
	height: var(--card-height);
	border: 1px solid color-mix(in srgb, var(--mail-ink) 20.0%, transparent);
}
.p-mail .item > .shot {
	position: absolute;
	left: var(--shot-x);
	top: var(--shot-y);
	width: var(--shot-width);
	height: var(--shot-height);
}
.p-mail .shot::after {
	bottom: 0;
	height: 10%;
	opacity: 0.25;
}
.p-mail .item > .tag {
	position: absolute;
	left: var(--label-x);
	top: var(--label-y);
	transform: none;
}
.p-mail .tag .num {
	font-size: calc(0.86 * var(--mail-unit));
}
.p-mail .tag .price,
.p-mail .tag .price.word {
	font-size: calc(0.99 * var(--mail-unit));
}
.p-mail .item > h3 {
	position: absolute;
	left: var(--label-x);
	top: calc(var(--label-y) + 2.25em);
	font-size: calc(0.99 * var(--mail-unit));
	line-height: 1.4;
	font-weight: 700;
	text-align: left;
	white-space: nowrap;
}
.p-mail #mail-phone {
	--card-x: 54%;
	--card-y: 23.4%;
	--card-width: 21%;
	--card-height: 42.2%;
	--shot-x: 57%;
	--shot-y: 26.1%;
	--shot-width: 15.5%;
	--shot-height: 29%;
	--label-x: 55.3%;
	--label-y: 58.1%;
}
.p-mail #mail-post {
	--card-x: calc(100cqw - var(--mail-right-edge) - var(--mail-right-width));
	--card-y: 47.6%;
	--card-width: var(--mail-right-width);
	--card-height: 41%;
	--shot-x: 80.9%;
	--shot-y: 49.6%;
	--shot-width: 10.5%;
	--shot-height: 30%;
	--label-x: 77.8%;
	--label-y: 81.6%;
}
.p-mail .more {
	position: static;
	display: block;
	height: auto;
	padding: 0;
	border: 0;
	font-size: calc(0.87 * var(--mail-unit));
	line-height: 1.6;
	pointer-events: none;
}
.p-mail .more .cond {
	position: absolute;
	left: 2.2%;
	top: 88%;
	color: var(--ac);
	font-size: max(14px, 0.85em);
}
.p-mail .more .say {
	position: absolute;
	left: 2.2%;
	top: 90%;
	width: 14.7%;
	font-size: max(14px, 0.9em);
}
.p-mail .more .see {
	position: absolute;
	right: 47.6%;
	top: calc(19.4cqh + 7 * var(--mail-unit) + 33.2cqw * 0.625 + 0.8cqh);
	pointer-events: auto;
	color: var(--fg);
}
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) {
	.p-mail {
		--mail-unit: min(1.65cqw, 1cqh);
	}
	.mail-masthead {
		top: 8cqh;
		height: 12cqh;
	}
	.p-mail .title {
		left: 0;
		right: 0;
		font-size: calc(4.5 * var(--mail-unit));
	}
	.mail-method,
	.mail-contact,
	.mail-guide,
	.mail-dateline span:nth-child(2) {
		display: none;
	}
	.mail-dateline {
		top: 21cqh;
	}
	.mail-story {
		left: 4%;
		right: 4%;
		top: 25cqh;
	}
	.mail-story h3 {
		font-size: calc(2.7 * var(--mail-unit));
	}
	.p-mail .slot {
		width: 62%;
		margin-top: 1cqh;
	}
	.mail-caption,
	.mail-night-note {
		max-width: 62%;
		white-space: normal;
	}
	.mail-products-label,
	.mail-catalog,
	.mail-delivery,
	.p-mail .items::before {
		display: none;
	}
	.p-mail #mail-phone {
		--card-x: 4%;
		--card-y: 68%;
		--card-width: 44%;
		--card-height: 25%;
		--shot-x: 12%;
		--shot-y: 71%;
		--shot-width: 28%;
		--shot-height: 12%;
		--label-x: 8%;
		--label-y: 85%;
	}
	.p-mail #mail-post {
		--card-x: 52%;
		--card-y: 68%;
		--card-width: 44%;
		--card-height: 25%;
		--shot-x: 65%;
		--shot-y: 70%;
		--shot-width: 18%;
		--shot-height: 14%;
		--label-x: 56%;
		--label-y: 85%;
	}
	.p-mail .more .cond {
		left: 4%;
		top: 95%;
	}
	.p-mail .more .say {
		left: 25%;
		top: 95%;
		width: 70%;
	}
	.p-mail .more .see {
		right: 4%;
		top: 57cqh;
	}
}

/* 5 閉店まぎわ：左の閉店案内と、右のカメラ・設備を同じ二段組みで揃える。 */
.p-boiler {
	display: block;
	container-type: size;
	padding: 0;
	--closing-unit: min(1cqw, 1.832cqh);
	--bg: var(--closing-ink);
	--fg: var(--sheet);
	--ac: var(--closing-blue);
	--paper: var(--card-paper);
	background:
		linear-gradient(color-mix(in srgb, var(--closing-ink) 45.1%, transparent), color-mix(in srgb, var(--closing-ink) 45.1%, transparent)),
		url("assets/closing-atmosphere.jpg") center/cover,
		var(--closing-ink);
}
.p-boiler .scene-header .floor {
	font: inherit;
	letter-spacing: 0.1em;
}

/* 閉店：左に告知、中央に非売品、右上にカメラ。文字はカメラの左端に揃える */
.closing-layout {
	position: absolute;
	inset: 8.5cqh 4cqw 2.2cqh 2.2cqw;
	display: grid;
	grid-template-columns: minmax(0, 30%) minmax(0, 1fr) minmax(0, 35%);
	grid-template-rows: auto minmax(0, 1fr) auto;
	column-gap: 2.2cqw;
	row-gap: 2cqh;
}

/* 左：閉店の告知。背景の目盛り円は時刻の後ろに置く */
.closing-main {
	grid-column: 1;
	grid-row: 1 / 3;
	position: relative;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 0.6cqh;
}
.closing-dial {
	position: absolute;
	z-index: 0;
	left: -9%;
	top: 0;
	width: 122%;
	aspect-ratio: 1;
	background: url("assets/closing-dial.png") center/contain no-repeat;
	opacity: 0.24;
	pointer-events: none;
}
.closing-main > :not(.closing-dial) {
	position: relative;
	z-index: 1;
}
.closing-label {
	font: calc(0.78 * var(--closing-unit))/1.5 var(--dot);
	letter-spacing: 0.16em;
	color: var(--ac);
}
.closing-time {
	margin-top: 0.12em;
	font-size: calc(9 * var(--closing-unit));
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: -0.06em;
	color: var(--ac);
	white-space: nowrap;
}
.p-boiler .title {
	margin-top: 0.26em;
	font-size: calc(4 * var(--closing-unit));
	line-height: 1.12;
	letter-spacing: -0.04em;
	white-space: normal;
}
.closing-intro,
.closing-word {
	display: block;
}
.closing-intro {
	font-size: 0.36em;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--closing-muted);
	margin-bottom: 0.3em;
}
.p-boiler .note {
	max-width: 26em;
	width: 100%;
	margin-top: 2cqh;
	font-size: calc(1 * var(--closing-unit));
	line-height: 1.75;
	color: color-mix(in srgb, var(--sheet) 72.2%, transparent);
}
.p-boiler .gauge {
	position: static;
	width: 100%;
	max-width: 340px;
	margin-top: auto;
	padding-top: 1.4cqh;
	gap: 0.7cqh;
	font-size: calc(0.87 * var(--closing-unit));
	color: var(--ac);
}
.p-boiler .gauge div {
	height: 1.4cqh;
	padding: 0;
	border: 0;
}
.p-boiler .gauge b {
	background: repeating-linear-gradient(
		90deg,
		var(--ac) 0 calc(0.72 * var(--closing-unit)),
		transparent calc(0.72 * var(--closing-unit))
			calc(1.24 * var(--closing-unit))
	);
}

/* 問い合わせ：左の下に一段大きく */
.closing-contact {
	margin-top: 2.2cqh;
	padding-top: 1.2cqh;
	border-top: 1px solid color-mix(in srgb, var(--sheet) 18.0%, transparent);
	font-size: calc(1.03 * var(--closing-unit));
	line-height: 1.6;
	color: var(--sheet);
	width: 100%;
}
.closing-contact-label {
	font: calc(0.74 * var(--closing-unit))/1.6 var(--dot);
	letter-spacing: 0.14em;
	color: var(--ac);
	margin-bottom: 0.5cqh;
}
.closing-contact dl {
	display: grid;
	gap: 0.15cqh;
	margin: 0;
}
.closing-contact dl > div {
	display: flex;
	gap: 0.9em;
	align-items: baseline;
	min-width: 0;
}
.closing-contact dt {
	flex: none;
	min-width: 2.7em;
	font-family: var(--dot);
	font-size: 0.8em;
	letter-spacing: 0.06em;
	color: var(--muted);
}
.closing-contact dd {
	min-width: 0;
	margin: 0;
}
.closing-contact a {
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--sheet) 26.7%, transparent);
	font-size: 1.06em;
	letter-spacing: 0.04em;
}

/* 右上：カメラ。他の売り場と同じくらいの大きさ */
.closing-monitor {
	grid-column: 3;
	grid-row: 1;
	position: relative;
	z-index: 3;
	min-width: 0;
	padding: calc(0.7 * var(--closing-unit));
	border: 1px solid var(--ac);
	background: var(--closing-panel);
}
.p-boiler .slot {
	width: 100%;
	aspect-ratio: 16 / 9;
	outline: 0;
}
.closing-monitor > p {
	margin-top: 0.55cqh;
	font: calc(0.56 * var(--closing-unit))/1.5 var(--dot);
	letter-spacing: 0.08em;
	color: var(--ac);
}

/* 中央：モナリザ。カメラの下の列は、そのまま説明の列になる */
.closing-feature {
	grid-column: 2 / 4;
	grid-row: 1 / 3;
	position: relative;
	z-index: 1;
	min-width: 0;
	min-height: 0;
	display: grid;
	grid-template-columns: subgrid;
	grid-template-rows: subgrid;
	justify-content: normal;
	align-items: stretch;
	column-gap: normal;
	row-gap: normal;
}
.p-boiler .items {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
	display: grid;
	grid-template-columns: subgrid;
	grid-template-rows: subgrid;
	justify-content: normal;
	align-items: stretch;
	min-width: 0;
	min-height: 0;
	padding: 0;
	column-gap: normal;
	row-gap: normal;
}
.p-boiler .item {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
	display: grid;
	grid-template-columns: subgrid;
	grid-template-rows: subgrid;
	justify-items: stretch;
	align-items: stretch;
	position: relative;
	min-width: 0;
	min-height: 0;
	column-gap: normal;
	row-gap: normal;
}
.p-boiler .shot {
	grid-column: 1;
	grid-row: 1 / 3;
	position: relative;
	justify-self: center;
	align-self: center;
	height: 100%;
	width: auto;
	aspect-ratio: 480 / 900;
	max-width: 100%;
	min-height: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.p-boiler .shot img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 50%;
}
.p-boiler .item.pick .shot img,
.p-boiler .item:hover .shot img {
	transform: none;
}
.p-boiler .shot::after {
	left: 6%;
	right: 6%;
	bottom: -1%;
	height: 3.2%;
	opacity: 0.45;
	filter: blur(3px);
}

/* 非売品：白い札とオレンジの印の中間。画像の右下に重ねる */
.p-boiler .tag {
	position: absolute;
	z-index: 2;
	left: auto;
	right: 3%;
	bottom: 5%;
	display: grid;
	justify-items: center;
	gap: 0.12em;
	padding: 0.42em 0.8em 0.36em;
	background: var(--paper);
	border: 2px solid var(--orange);
	box-shadow: 0 2px 0 color-mix(in srgb, var(--black) 36%, transparent);
	transform: rotate(-4deg);
	white-space: nowrap;
	color: var(--closing-red);
}
.p-boiler .tag .price,
.p-boiler .tag .price.word {
	font-size: calc(1.62 * var(--closing-unit));
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.14em;
	color: var(--closing-red);
}
.p-boiler .tag .en {
	font: calc(0.46 * var(--closing-unit))/1.3 var(--dot);
	letter-spacing: 0.12em;
	color: var(--closing-brown);
}
.p-boiler .tag .num {
	margin-right: 0.55em;
	font-size: inherit;
	color: var(--closing-brown);
}

/* 説明：カメラの左端から。h3 はカメラのすぐ下 */
.closing-info {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4em;
	min-width: 0;
	min-height: 0;
	padding-top: 1.1cqh;
	font-size: calc(0.86 * var(--closing-unit));
	line-height: 1.7;
}
.closing-info > h3 {
	width: 100%;
	padding-top: 1cqh;
	border-top: 1px solid color-mix(in srgb, var(--closing-blue) 60.0%, transparent);
	font-size: calc(1.9 * var(--closing-unit));
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-align: left;
}
.closing-info .cond {
	margin: 0;
	font: calc(0.7 * var(--closing-unit))/1.6 var(--dot);
	letter-spacing: 0.12em;
	color: var(--muted);
}
.closing-info .say {
	margin: 0;
	font-size: calc(1 * var(--closing-unit));
	line-height: 1.75;
	color: var(--closing-light);
}
.closing-meta {
	display: grid;
	gap: 0;
	width: 100%;
	margin-top: 0.2em;
}
.closing-meta > div {
	display: grid;
	grid-template-columns: 4.4em minmax(0, 1fr);
	gap: 1em;
	padding: 0.7em 0;
	border-top: 1px solid color-mix(in srgb, var(--sheet) 11.0%, transparent);
}
.closing-meta dt {
	font: calc(0.66 * var(--closing-unit))/1.5 var(--dot);
	letter-spacing: 0.1em;
	color: var(--muted);
}
.closing-meta dd {
	margin: 0;
	color: var(--sheet);
}
.closing-info .see {
	margin-top: auto;
	padding-top: 0.7em;
	color: var(--fg);
	font-size: calc(0.87 * var(--closing-unit));
}

/* フッター：ナビ・住所・注記の3列 */
.p-boiler .foot {
	grid-column: 1 / -1;
	grid-row: 3;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: end;
	gap: 1cqh 2.4cqw;
	border-top: 1px solid color-mix(in srgb, var(--sheet) 20.0%, transparent);
	padding-top: 1.4cqh;
	font-size: calc(0.86 * var(--closing-unit));
	line-height: 1.6;
	color: var(--muted);
}
.p-boiler .foot ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2em 1.4em;
	list-style: none;
	margin: 0;
	padding: 0;
}
.p-boiler .foot li {
	display: flex;
}
.p-boiler .foot a {
	color: var(--closing-light);
	text-decoration: none;
	display: flex;
	align-items: baseline;
	gap: 0.45em;
}
.p-boiler .foot i {
	font: max(14px, 0.9em)/1 var(--dot);
	font-style: normal;
	color: var(--ac);
	letter-spacing: 0.04em;
}
.foot-address {
	display: flex;
	flex-direction: column;
	gap: 0.1em;
	text-align: center;
	font-size: 1em;
}
.foot-address span:last-child {
	color: var(--sheet);
}
.foot-note {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 1.2em;
	font-size: 0.92em;
	white-space: nowrap;
}
.foot-note small {
	font: calc(0.9em)/1.4 var(--dot);
	letter-spacing: 0.08em;
	color: var(--muted);
}

@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) {
	.p-boiler {
		--closing-unit: min(1.6cqw, 1cqh);
	}
	.closing-layout {
		inset: 46px 14px 10px;
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto minmax(0, 1fr) auto;
		column-gap: 0;
		row-gap: 10px;
	}
	.closing-main {
		grid-column: 1;
		grid-row: 1;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		padding-top: 0;
		column-gap: 12px;
	}
	.closing-dial {
		left: 16%;
		top: -6%;
		width: 104%;
		opacity: 0.18;
	}
	.closing-label {
		order: 1;
		width: 100%;
		font-size: 11px;
		letter-spacing: 0.12em;
	}
	.closing-time {
		order: 0;
		font-size: 62px;
		letter-spacing: -0.05em;
	}
	.p-boiler .title {
		order: 0;
		flex: none;
		margin: 0 0 0 auto;
		padding: 2px 0 0;
		font-size: 36px;
		line-height: 1.05;
		text-align: right;
	}
	.closing-intro {
		font-size: 12px;
		margin-bottom: 0.2em;
	}
	.p-boiler .note {
		order: 2;
		width: 100%;
		max-width: none;
		margin-top: 8px;
		font-size: 11.5px;
		line-height: 1.7;
	}
	.p-boiler .gauge {
		display: none;
	}
	.closing-contact {
		order: 3;
		width: 100%;
		font-size: 11px;
		line-height: 1.55;
		margin-top: 10px;
		padding-top: 7px;
	}
	.closing-contact-label {
		font-size: 11px;
		margin-bottom: 3px;
	}
	.closing-contact dl {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 2px 12px;
	}
	.closing-contact dl > div {
		display: flex;
		gap: 0.6em;
	}
	.closing-contact .wide {
		grid-column: 1 / -1;
	}
	.closing-contact dt {
		min-width: 2.6em;
		font-size: 11px;
	}
	.closing-contact a {
		font-size: 12px;
	}
	.closing-monitor {
		grid-column: 1;
		grid-row: 2;
		padding: 7px;
	}
	.closing-monitor > p {
		font-size: 11px;
		margin-top: 4px;
		letter-spacing: 0.06em;
	}
	.closing-feature {
		grid-column: 1;
		grid-row: 3;
		display: block;
	}
	.p-boiler .items {
		display: block;
		height: 100%;
		min-height: 0;
	}
	.p-boiler .item {
		display: grid;
		grid-template-columns: 31% minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr);
		gap: 0 12px;
		height: 100%;
		min-height: 0;
	}
	.p-boiler .shot {
		grid-column: 1;
		grid-row: 1;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		align-self: stretch;
	}
	.p-boiler .tag {
		right: 0;
		bottom: 4%;
		padding: 3px 6px 2px;
		border-width: 1px;
		box-shadow: 0 1px 0 color-mix(in srgb, var(--black) 36%, transparent);
	}
	.p-boiler .tag .price,
	.p-boiler .tag .price.word {
		font-size: 15px;
		letter-spacing: 0.1em;
	}
	.p-boiler .tag .en {
		display: none;
	}
	.closing-info {
		grid-column: 2;
		grid-row: 1;
		padding-top: 0;
		font-size: 11px;
		gap: 3px;
	}
	.closing-info > h3 {
		font-size: 19px;
		padding-top: 5px;
		line-height: 1.2;
	}
	.closing-info .cond {
		font-size: 11px;
		letter-spacing: 0.08em;
	}
	.closing-info .say {
		font-size: 11px;
		line-height: 1.6;
	}
	.closing-meta > div {
		grid-template-columns: 3.4em minmax(0, 1fr);
		padding: 4px 0;
		gap: 8px;
	}
	.closing-meta dt {
		font-size: 8.5px;
	}
	.closing-meta dd {
		font-size: 11px;
	}
	.closing-info .see {
		margin-top: auto;
		padding-top: 4px;
		font-size: 9.5px;
	}
	.p-boiler .foot {
		grid-column: 1;
		grid-row: 4;
		grid-template-columns: 1fr;
		gap: 4px;
		font-size: 9.5px;
		line-height: 1.5;
		padding-top: 7px;
	}
	.p-boiler .foot ul {
		display: none;
	}
	.foot-address {
		text-align: left;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.2em 1em;
	}
	.foot-note {
		justify-content: flex-start;
		gap: 0.8em;
	}
}

/* 屋上のファーストビュー。共通の柱・操作盤・商品部品はそのまま使う。 */
.p-roof {
	display: block;
	container-type: size;
	padding: 0;
	--roof-unit: min(1cqw, 1.832cqh);
	--roof-h: min(0.48495cqw, 1cqh);
	--roof-w: calc(1.832 * var(--roof-h));
	--roof-y: max(0px, calc((100cqh - 100 * var(--roof-h)) / 2));
	--bg: var(--paper);
	--fg: var(--stock-black);
	background:
		linear-gradient(color-mix(in srgb, var(--paper) 62.0%, transparent), color-mix(in srgb, var(--paper) 62.0%, transparent)),
		url("assets/roof-paper.jpg") center/cover,
		var(--paper);
}
.p-roof .mast {
	padding: 0;
	border: 0;
}
.p-roof .mast time {
	font: inherit;
	white-space: nowrap;
}
.p-roof .roof-meta {
	font-size: inherit;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}
.p-roof .roof-meta .floor {
	font-size: inherit;
	letter-spacing: 0.1em;
}
.p-roof .title {
	position: absolute;
	left: 2.2%;
	top: calc(var(--roof-y) + 11 * var(--roof-h));
	margin-top: -0.05em;
	height: calc(86 * var(--roof-h));
	z-index: 1;
	color: var(--navy);
	font-size: calc(6.59 * var(--roof-w));
}
.p-roof .title-invite {
	font-size: 0.5em;
	line-height: 1;
}
.p-roof .slot {
	position: absolute;
	left: auto;
	right: 4%;
	top: calc(var(--roof-y) + 7 * var(--roof-h));
	width: calc(38 * var(--roof-w) + 3cqw);
	height: auto;
	aspect-ratio: 16 / 10;
	outline: 0;
}
.p-roof .roof-art {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: -1;
}
.roof-art i {
	display: block;
	position: absolute;
}
.roof-disc {
	left: calc(90cqw - 75 * var(--roof-w));
	top: calc(var(--roof-y) + 22 * var(--roof-h));
	width: calc(42 * var(--roof-w));
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--red);
}
.roof-ring {
	right: 1.5%;
	top: calc(var(--roof-y) + 25 * var(--roof-h));
	width: calc(14 * var(--roof-w));
	aspect-ratio: 1;
	border: calc(1.6 * var(--roof-w)) solid var(--indigo);
	border-radius: 50%;
}
.roof-triangle {
	left: 8%;
	top: calc(var(--roof-y) + 67.5 * var(--roof-h));
	bottom: auto;
	width: calc(16 * var(--roof-w));
	height: calc(26 * var(--roof-h));
	background: var(--yellow);
	clip-path: polygon(0 35%, 100% 0, 70% 100%);
}
/* 屋上の図形（赤い丸・青い輪・黄色い三角・黒い帯）にもインクのかすれを掛ける（2026-11-16） */
.roof-disc,
.roof-ring,
.roof-triangle,
.p-roof .roof-hours {
	-webkit-mask-repeat: repeat;
	mask-repeat: repeat;
	-webkit-mask-clip: no-clip;
	mask-clip: no-clip;
}
.roof-disc {
	-webkit-mask-image: url("assets/masks/ink-09.png");
	mask-image: url("assets/masks/ink-09.png");
	-webkit-mask-size: 620px 620px;
	mask-size: 620px 620px;
	-webkit-mask-position: -140px 60px;
	mask-position: -140px 60px;
}
.roof-ring {
	-webkit-mask-image: url("assets/masks/ink-10.png");
	mask-image: url("assets/masks/ink-10.png");
	-webkit-mask-size: 300px 300px;
	mask-size: 300px 300px;
	-webkit-mask-position: 70px -90px;
	mask-position: 70px -90px;
}
.roof-triangle {
	-webkit-mask-image: url("assets/masks/ink-11.png");
	mask-image: url("assets/masks/ink-11.png");
	-webkit-mask-size: 300px 300px;
	mask-size: 300px 300px;
	-webkit-mask-position: -70px 120px;
	mask-position: -70px 120px;
}
.p-roof .roof-hours {
	-webkit-mask-image: url("assets/masks/ink-12.png");
	mask-image: url("assets/masks/ink-12.png");
	-webkit-mask-size: 480px 480px;
	mask-size: 480px 480px;
	-webkit-mask-position: 160px -30px;
	mask-position: 160px -30px;
}
.p-roof .items {
	position: absolute;
	z-index: 3;
	inset: 0;
	display: block;
	padding: 0;
	pointer-events: none;
	container-type: size;
}
.p-roof .item:not(#roof-chair) {
	display: none;
}
.p-roof #roof-chair {
	position: absolute;
	left: calc(90cqw - 73 * var(--roof-w));
	top: calc(var(--roof-y) + 16 * var(--roof-h));
	width: calc(40 * var(--roof-w));
	height: calc(64 * var(--roof-h));
	display: block;
	pointer-events: auto;
}
.p-roof #roof-chair .shot {
	position: absolute;
	left: 0;
	top: 0;
	width: 65%;
	height: 90%;
}
/* ファーストビューの商品：マウスストーカーの円の中だけ実写を見せる（試作） */
.p-roof #roof-chair .shot img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 100%;
	transform: none;
}
.p-roof #roof-chair .shot img.photo {
	clip-path: circle(0 at 0 0);
}
.p-roof #roof-chair .tag {
	position: absolute;
	left: 67%;
	top: 50%;
	transform: none;
}
.p-roof #roof-chair h3 {
	position: absolute;
	left: 67%;
	top: 62%;
	white-space: nowrap;
	text-align: left;
	color: white;
}
.p-roof #roof-chair .more {
	position: static;
	visibility: visible;
	border: 0;
	padding: 0;
	height: auto;
	display: block;
}
.p-roof #roof-chair .cond {
	position: absolute;
	left: 67%;
	top: 70%;
	color: white;
}
.p-roof #roof-chair .say {
	position: absolute;
	left: 67%;
	top: 76%;
	width: 30%;
	color: white;
	font-size: calc(0.86 * var(--roof-w));
}
.p-roof #roof-chair .see {
	position: absolute;
	left: auto;
	right: calc(-6cqw - 33 * var(--roof-w));
	top: calc(23.75 * var(--roof-w) + 1.875cqw - 9 * var(--roof-h) + 0.4em);
	white-space: nowrap;
}
/* modal を閉じた後に focus が戻っても、アームチェアに枠を出さない（2026-11-15 ユーザー指示） */
.p-roof #roof-chair:focus-visible,
.p-roof #roof-chair :focus-visible {
	outline: 0;
}
/* 切り抜きの紙片：古い紙・黒地・黄色の帯を重ね、行ごとに左右へ振り分ける（2026-11-15） */
.torn-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}
.p-roof .lead {
	--roof-copy-unit: calc(1.25 * var(--roof-w));
	--cut-u: calc(1.92 * var(--roof-w));
	z-index: 3;
	position: absolute;
	left: auto;
	right: 4%;
	top: calc(
		var(--roof-y) + 7 * var(--roof-h) + 23.75 * var(--roof-w) + 1.875cqw + 2em
	);
	width: calc(38 * var(--roof-w) + 3cqw);
	max-width: none;
	columns: auto;
	padding: 0 calc(1.72 * var(--roof-w));
	border: 0;
	line-height: 1;
	font-size: calc(1.337 * var(--roof-copy-unit));
	font-weight: 700;
	color: var(--navy);
}
.p-roof .cutup {
	display: flex;
	flex-direction: column;
	gap: calc(0.26 * var(--cut-u));
	margin-top: calc(-0.4 * var(--cut-u));
	font-size: var(--cut-u);
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0;
	color: var(--roof-ink);
}
.p-roof .cutline {
	position: relative;
	display: flex;
	align-items: center;
	gap: calc(0.2 * var(--cut-u));
	min-height: calc(1.02 * var(--cut-u));
}
.p-roof .cutline.is-end {
	justify-content: flex-end;
}
.p-roof .cutline:nth-child(1) {
	padding-left: calc(0.5 * var(--cut-u));
}
.p-roof .cutline:nth-child(3) {
	padding-left: calc(0.12 * var(--cut-u));
}
.p-roof .cutline:nth-child(5) {
	padding-left: calc(0.26 * var(--cut-u));
}
/* 紙片の縁は 3 種類の切り取り線でばらけさせる */
.p-roof .cut {
	position: relative;
	isolation: isolate;
	display: inline-block;
	padding: 0.06em 0.34em 0.09em;
	white-space: pre;
	line-height: 1;
}
.p-roof .cut::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -0.2em -0.26em;
	background:
		linear-gradient(rgba(250, 244, 229, 0.8), rgba(250, 244, 229, 0.8)),
		url("assets/roof-paper.jpg") center/cover,
		var(--roof-paper);
	filter: url("#torn") drop-shadow(0 1px 0 rgba(40, 27, 13, 0.36))
		drop-shadow(0 3px 4px rgba(40, 27, 13, 0.2));
}
.p-roof .cut:nth-child(even)::before {
	filter: url("#torn2") drop-shadow(0 1px 0 rgba(40, 27, 13, 0.36))
		drop-shadow(0 3px 4px rgba(40, 27, 13, 0.2));
}
.p-roof .cut:nth-child(3n)::before {
	filter: url("#torn3") drop-shadow(0 1px 0 rgba(40, 27, 13, 0.36))
		drop-shadow(0 3px 4px rgba(40, 27, 13, 0.2));
}
.p-roof .cut.is-ink::before {
	background:
		linear-gradient(rgba(20, 18, 16, 0.95), rgba(20, 18, 16, 0.95)),
		url("assets/roof-paper.jpg") center/cover,
		var(--roof-black);
}
.p-roof .cut.is-ink {
	color: var(--roof-cream);
}
.p-roof .cut.is-yellow::before {
	background:
		linear-gradient(rgba(240, 205, 26, 0.9), rgba(240, 205, 26, 0.9)),
		url("assets/roof-paper.jpg") center/cover,
		var(--roof-yellow);
}
.p-roof .cut.is-round {
	display: inline-grid;
	place-items: center;
	min-width: 1.2em;
	height: 1.2em;
	padding: 0 0.1em;
}
.p-roof .cut.is-round::before {
	border-radius: 50%;
}
/* インクかすれ：scripts/ink-masks.py が作る 10 枚を、紙片ごとに順に使う（紙・インク・文字をまとめて掛ける） */
.p-roof .cut {
	--ink-mask: url("assets/masks/ink-01.png");
	--ink-pos: 0px 0px;
	-webkit-mask-image: var(--ink-mask);
	mask-image: var(--ink-mask);
	-webkit-mask-size: calc(10 * var(--cut-u));
	mask-size: calc(10 * var(--cut-u));
	-webkit-mask-repeat: repeat;
	mask-repeat: repeat;
	-webkit-mask-position: var(--ink-pos);
	mask-position: var(--ink-pos);
	-webkit-mask-clip: no-clip;
	mask-clip: no-clip;
}
.p-roof .cut.ink-1 {
	--ink-mask: url("assets/masks/ink-01.png");
	--ink-pos: 0px 0px;
}
.p-roof .cut.ink-2 {
	--ink-mask: url("assets/masks/ink-02.png");
	--ink-pos: -37px 21px;
}
.p-roof .cut.ink-3 {
	--ink-mask: url("assets/masks/ink-03.png");
	--ink-pos: 63px -14px;
}
.p-roof .cut.ink-4 {
	--ink-mask: url("assets/masks/ink-04.png");
	--ink-pos: -12px -48px;
}
.p-roof .cut.ink-5 {
	--ink-mask: url("assets/masks/ink-05.png");
	--ink-pos: 88px 35px;
}
.p-roof .cut.ink-6 {
	--ink-mask: url("assets/masks/ink-06.png");
	--ink-pos: -64px 52px;
}
.p-roof .cut.ink-7 {
	--ink-mask: url("assets/masks/ink-07.png");
	--ink-pos: 29px -27px;
}
.p-roof .cut.ink-8 {
	--ink-mask: url("assets/masks/ink-08.png");
	--ink-pos: -91px -6px;
}
.p-roof .cut.ink-9 {
	--ink-mask: url("assets/masks/ink-09.png");
	--ink-pos: 47px 74px;
}
.p-roof .cut.ink-10 {
	--ink-mask: url("assets/masks/ink-10.png");
	--ink-pos: -20px 96px;
}
.p-roof .cut.ink-11 {
	--ink-mask: url("assets/masks/ink-11.png");
	--ink-pos: 74px -66px;
}
.p-roof .cut.ink-12 {
	--ink-mask: url("assets/masks/ink-12.png");
	--ink-pos: -108px 38px;
}
/* 行ごとの大きさと傾き */
.p-roof .cutline:nth-child(1) .cut:nth-child(1) {
	font-size: 1.02em;
	transform: rotate(-3.2deg);
}
.p-roof .cutline:nth-child(1) .cut:nth-child(2) {
	font-size: 1.18em;
	transform: translateY(-0.06em) rotate(1.8deg);
}
.p-roof .cutline:nth-child(1) .cut:nth-child(3) {
	transform: translateY(0.05em) rotate(-1.6deg);
}
.p-roof .cutline:nth-child(2) .cut:nth-child(1) {
	font-size: 1.08em;
	transform: rotate(-2deg);
}
.p-roof .cutline:nth-child(2) .cut:nth-child(2) {
	font-size: 0.98em;
	transform: rotate(1.4deg);
}
.p-roof .cutline:nth-child(2) .cut:nth-child(3) {
	font-size: 1.14em;
	transform: translateY(-0.05em) rotate(-2.6deg);
}
.p-roof .cutline:nth-child(2) .cut:nth-child(4) {
	font-size: 0.92em;
	transform: rotate(1.2deg);
}
.p-roof .cutline:nth-child(3) .cut:nth-child(1) {
	font-size: 0.92em;
	transform: rotate(0.9deg);
}
.p-roof .cutline:nth-child(3) .cut:nth-child(2) {
	font-size: 1.14em;
	transform: rotate(-1.8deg);
}
.p-roof .cutline:nth-child(3) .cut:nth-child(3) {
	font-size: 0.96em;
	transform: rotate(-0.8deg);
}
.p-roof .cutline:nth-child(4) .cut:nth-child(1) {
	font-size: 1.02em;
	transform: rotate(1.6deg);
}
.p-roof .cutline:nth-child(4) .cut:nth-child(2) {
	font-size: 1.14em;
	transform: rotate(-2.2deg);
}
.p-roof .cutline:nth-child(4) .cut:nth-child(3) {
	font-size: 0.94em;
	transform: rotate(0.8deg);
}
.p-roof .cutline:nth-child(5) .cut:nth-child(1) {
	font-size: 0.9em;
	transform: rotate(-1.6deg);
}
.p-roof .cutline:nth-child(5) .cut:nth-child(2) {
	font-size: 1.35em;
	transform: rotate(2.4deg);
}
.p-roof .cutline:nth-child(5) .cut:nth-child(3) {
	font-size: 0.92em;
	transform: rotate(-1.2deg);
}
.p-roof .cutline:nth-child(5) .cut:nth-child(4) {
	font-size: 1.3em;
	transform: rotate(-2.6deg);
}
.p-roof .cutline:nth-child(5) .cut:nth-child(5) {
	font-size: 0.9em;
	transform: rotate(1deg);
}
/* 紙片の下からのぞく網点 */
.p-roof .cutline::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: calc(1.15 * var(--cut-u));
	height: calc(0.66 * var(--cut-u));
	background: radial-gradient(circle, var(--roof-shadow) 33%, transparent 36%) 0 0 /
		calc(0.15 * var(--cut-u)) calc(0.15 * var(--cut-u));
	opacity: 0.5;
}
.p-roof .cutline:nth-child(3)::before {
	left: 0;
	top: 55%;
	transform: rotate(-9deg);
}
.p-roof .cutline:nth-child(5)::before {
	right: 1%;
	top: -8%;
	transform: rotate(7deg);
}
/* 2 行目（夜のことは）は、1 行目より少し大きく、右へ振る */
.p-roof .cutup-night {
	--cut-u: calc(2.02 * var(--roof-w));
	margin-top: calc(0.3 * var(--roof-w));
	gap: calc(0.16 * var(--cut-u));
}
.p-roof .cutup-night .cutline:nth-child(1) {
	padding-left: calc(0.4 * var(--cut-u));
}
.p-roof .cutup-night .cutline:nth-child(2) {
	padding-right: calc(0.3 * var(--cut-u));
        margin-top: -0.75em;

}
.p-roof .cutup-night .cutline:nth-child(1) .cut:nth-child(1) {
	font-size: 1.4em;
	transform: rotate(-2.6deg);
}
.p-roof .cutup-night .cutline:nth-child(1) .cut:nth-child(2) {
	font-size: 1.04em;
	transform: translateY(0.06em) rotate(1.6deg);
}
.p-roof .cutup-night .cutline:nth-child(1) .cut:nth-child(3) {
	transform: rotate(-0.8deg);
}
.p-roof .cutup-night .cutline:nth-child(2) .cut:nth-child(1) {
	font-size: 0.94em;
	transform: rotate(1.4deg);
}
.p-roof .cutup-night .cutline:nth-child(2) .cut:nth-child(2) {
	font-size: 1.04em;
	transform: translateY(-0.04em) rotate(-2.2deg);
}
.p-roof .cutup-night .cutline:nth-child(1)::before {
	left: -1%;
	top: 52%;
	transform: rotate(-8deg);
}
.p-roof .cutup-night .cutline:nth-child(2)::before {
	display: none;
}
.p-roof .roof-hours {
	position: absolute;
	left: 0;
	top: calc(var(--roof-y) + 66 * var(--roof-h));
	width: 66.5%;
	height: calc(8.5 * var(--roof-h));
	padding: 0 2.2%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--stock-black);
	color: var(--paper);
	font-size: calc(1.242 * var(--roof-w));
	letter-spacing: 0.04em;
	transform: rotate(atan2(calc(21.4 * var(--roof-h)), 66.5cqw));
	transform-origin: 0 0;
	pointer-events: none;
	z-index: 2;
}
.p-roof #roof-chair .tag .num {
	font-size: calc(0.86 * var(--roof-w));
}
.p-roof #roof-chair .tag .price {
	font-size: calc(1.2 * var(--roof-w));
}
.p-roof #roof-chair h3 {
	font-size: calc(0.99 * var(--roof-w));
}
.p-roof #roof-chair .cond {
	font-size: calc(0.86 * var(--roof-w));
}
.p-roof #roof-chair .see {
	font-size: calc(0.86 * var(--roof-w));
}
.p-roof > .memo {
	font-size: calc(0.87 * var(--roof-w));
}
/* 屋上の単位（--roof-h・--roof-w・--roof-y）：縦長・スマホは変更前の式（cqh と --roof-unit、中央寄せなし）に戻す。
   PC の新しい式を使う屋上の rule がこの media で個別に上書きされていなくても、変更前と同じ値になる */
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) {
	.p-roof {
		--roof-h: 1cqh;
		--roof-w: var(--roof-unit);
		--roof-y: 0px;
	}
}
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) {
	.p-roof .roof-meta span {
		display: block;
	}
	.p-roof .title {
		left: 14px;
		right: auto;
		top: 12%;
		height: auto;
		font-size: min(12vw, 6.3cqh);
	}
	.p-roof .title-invite {
		font-size: 0.5em;
	}
	.p-roof .slot {
		left: auto;
		right: 4%;
		top: 12%;
		width: 38%;
		height: 21%;
		margin: 0;
	}
	.roof-disc {
		left: 23%;
		top: 35%;
		width: 62%;
	}
	.roof-ring {
		right: 0;
		top: 31%;
		width: 24%;
		border-width: 3cqw;
	}
	.roof-triangle {
		left: 7%;
		top: auto;
		bottom: 7%;
		width: 29%;
		height: 17%;
	}
	.p-roof #roof-chair {
		left: 22%;
		top: 32%;
		width: 64%;
		height: 32%;
	}
	.p-roof #roof-chair .shot {
		width: 60%;
		height: 100%;
	}
	.p-roof #roof-chair .tag {
		left: 48%;
		top: 65%;
	}
	.p-roof #roof-chair .tag .num {
		font-size: 1.3cqh;
	}
	.p-roof #roof-chair .tag .price {
		font-size: 1.8cqh;
	}
	.p-roof > .memo {
		font-size: 1.4cqh;
	}
	.p-roof #roof-chair h3 {
		left: 48%;
		top: 82%;
		font-size: 12px;
	}
	.p-roof #roof-chair .cond {
		top: 94%;
		font-size: 11px;
	}
	.p-roof #roof-chair .say {
		top: 101%;
		font-size: 11px;
		color: var(--navy);
	}
	.p-roof #roof-chair .see {
		left: 60%;
		top: 7%;
		transform: none;
		font-size: 11px;
	}
	.p-roof .roof-hours {
		top: 67%;
		width: 96%;
		height: 4%;
		transform: rotate(atan2(13cqh, 96cqw));
		font-size: 3cqw;
	}
	.p-roof .lead {
		left: 20%;
		right: auto;
		top: 80%;
		width: 74%;
		padding-inline: 1cqw;
		font-size: 3cqw;
		line-height: 1.4;
	}
	.p-roof .cutup {
		--cut-u: clamp(11px, 3.9vw, 16px);
		gap: 2px;
		margin-top: 0;
	}
	.p-roof .cutline {
		min-height: 1.15em;
		gap: 0.1em;
	}
	.p-roof .cutup-night {
		--cut-u: clamp(14px, 4.8vw, 19px);
		margin-top: 2cqh;
	}
}

/* スマホ：画像・札・名前は同じgrid内に置き、説明の場所も確保する。 */
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) {
	.front {
		height: calc(100dvh + 5 * 110svh);
		touch-action: pan-y pinch-zoom;
	}
	.pip {
		touch-action: pan-y pinch-zoom;
	}
	.scene-header {
		inset: 10px 14px auto;
		gap: 8px;
		font-size: 11px;
		line-height: 1.5;
	}
	.scene-header .floor {
		font: inherit;
		letter-spacing: 0;
	}
	.scene-header > time {
		order: 0;
		white-space: nowrap;
	}
	.scene-header > :last-child {
		order: 1;
		text-align: right;
	}
	.pip em {
		font-size: 11px;
		padding: 1px 5px;
		left: -4px;
		top: -10px;
	}
	.pip .ctl {
		font-size: 11px;
		gap: 4px;
		padding: 1px 4px;
	}
	.pip .vent {
		display: none;
	}
	.pip .knob {
		width: 9px;
		height: 9px;
	}
	.item.pick .shot img,
	.item:hover .shot img {
		transform: translateY(-1%) scale(1.02);
	}
	.item.tilt .shot img {
		transform: rotate(7deg);
	}
	:is(.p-lounge, .p-stock, .p-mail, .p-boiler) .item {
		position: static;
		display: grid;
		min-width: 0;
		min-height: 0;
		height: 100%;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto auto;
		align-items: start;
		justify-items: start;
		gap: 3px;
	}
	:is(.p-lounge, .p-stock, .p-mail, .p-boiler) .item > .shot {
		position: relative;
		inset: auto;
		grid-column: 1;
		grid-row: 1;
		width: 100%;
		height: 100%;
		min-height: 0;
		max-height: none;
		padding: 0;
		justify-content: center;
	}
	:is(.p-lounge, .p-stock, .p-mail, .p-boiler) .item > .tag {
		position: static;
		grid-column: 1;
		grid-row: 2;
		max-width: 100%;
		gap: 5px;
		font-size: 11px;
		transform: none;
	}
	:is(.p-lounge, .p-stock, .p-mail, .p-boiler) .tag .num {
		font-size: 11px;
	}
	:is(.p-lounge, .p-stock, .p-mail, .p-boiler) .tag .price,
	:is(.p-lounge, .p-stock, .p-mail, .p-boiler) .tag .price.word {
		font-size: 14px;
	}
	:is(.p-lounge, .p-stock, .p-mail, .p-boiler) .item > h3 {
		position: static;
		grid-column: 1;
		grid-row: 3;
		font-size: 11px;
		line-height: 1.3;
		text-align: left;
		white-space: normal;
		max-width: 100%;
		padding: 0;
		border: 0;
	}
	:is(.p-lounge, .p-stock, .p-mail, .p-boiler) .more {
		font-size: 11px;
		line-height: 1.4;
	}
	:is(.p-lounge, .p-stock, .p-mail, .p-boiler) .more .see {
		font-size: 11px;
	}

	.p-roof .title {
		top: 8cqh;
		left: 14px;
		font-size: min(10.5vw, 5.1cqh);
		height: auto;
	}
	.p-roof .slot {
		top: 8cqh;
		right: 4%;
		width: 46%;
		height: 21cqh;
		aspect-ratio: auto;
	}
	.p-roof #roof-chair {
		left: 18%;
		top: 39cqh;
		width: 76%;
		height: 30cqh;
	}
	.p-roof #roof-chair .shot {
		width: 53%;
		height: 100%;
	}
	.p-roof #roof-chair .tag {
		left: 58%;
		top: 29%;
	}
	.p-roof #roof-chair h3 {
		left: 58%;
		top: 48%;
		width: 40%;
		font-size: 12px;
		white-space: normal;
	}
	.p-roof #roof-chair .cond {
		left: 58%;
		top: 65%;
		font-size: 11px;
	}
	.p-roof #roof-chair .say {
		left: 58%;
		top: 76%;
		width: 40%;
		font-size: 11px;
		line-height: 1.4;
		color: var(--fg);
	}
	.p-roof #roof-chair .see {
		left: 47%;
		/* PC の right が残ると幅が伸びて右端で切れる */
		right: auto;
		top: -9cqh;
		font-size: 11px;
	}
	.p-roof > .memo {
		left: 14px;
		right: 14px;
		top: 33cqh;
		max-width: none;
		font-size: 11px;
		line-height: 1.4;
	}
	.roof-disc {
		left: 20%;
		top: 36cqh;
		width: 72%;
	}
	/* 輪は「カメラで見る」と看板の付箋の下へ下げ、値札にかからないよう右へ半分ほど出す */
	.roof-ring {
		top: 40cqh;
		right: -8%;
		width: 22%;
	}
	.p-roof .roof-hours {
		top: 71cqh;
		left: 0;
		width: 96%;
		height: 3.5cqh;
		transform: rotate(atan2(3cqh, 96cqw));
		font-size: 11px;
	}
	/* 文字の大きさには上限があるので、枠も 600px で止めて中央へ寄せる（広い画面で左右の行が離れすぎない） */
	.p-roof .lead {
		top: 78cqh;
		left: max(4%, calc(50% - 180px));
        width: min(92%, 360px);
		font-size: 11px;
		line-height: 1.3;
	}
	.p-roof .cutup {
		--cut-u: clamp(11px, 3.6vw, 15px);
		gap: 2px;
	}
	.p-roof .cutup-night {
		--cut-u: clamp(14px, 4.6vw, 18px);
		margin-top: 0.8cqh;
	}

	.lounge-layout {
		inset: 44px 14px 12px;
		grid-template-rows: minmax(0, 1fr) auto auto;
		gap: 8px;
	}
	.lounge-showcase {
		display: grid;
		grid-template-rows: auto auto minmax(0, 1fr) 44px;
		gap: 6px;
		padding: 12px;
		border-radius: 10px;
	}
	.lounge-showcase::before {
		inset: 5px;
		border-radius: 6px;
	}
	.lounge-showcase::after,
	.lounge-dial {
		display: none;
	}
	.p-lounge .title {
		position: static;
		inset: auto;
		grid-column: 1;
		grid-row: 1;
		font-size: clamp(26px, 7vw, 34px);
		line-height: 1.2;
	}
	.p-lounge .note {
		position: static;
		grid-column: 1;
		grid-row: 2;
		width: 100%;
		min-height: 0;
		padding: 6px;
		display: block;
		font-size: 11px;
		line-height: 1.4;
		border-width: 1px;
	}
	.p-lounge .note span {
		display: block;
	}
	.p-lounge .note strong {
		font-size: 12px;
		line-height: 1.4;
	}
	.p-lounge .items {
		position: static;
		inset: auto;
		grid-column: 1;
		grid-row: 3;
		width: 100%;
		height: 100%;
		min-height: 0;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(2, minmax(0, 1fr));
		gap: 8px 12px;
		padding: 0;
		pointer-events: auto;
	}
	.p-lounge .more {
		left: 12px;
		right: 12px;
		bottom: 12px;
		min-height: 0;
		height: 40px;
		align-items: flex-start;
		flex-wrap: nowrap;
		gap: 5px;
	}
	.p-lounge .more .say {
		flex: 1;
		min-width: 0;
		font-size: 11px;
	}
	.p-lounge .more .cond {
		font-size: 11px;
	}
	.lounge-side {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px;
	}
	.lounge-monitor {
		padding: 6px;
		border-radius: 8px;
	}
	.p-lounge .slot {
		aspect-ratio: 16 / 10;
	}
	.lounge-monitor > p {
		font-size: 11px;
		margin-top: 4px;
	}
	.lounge-inventory {
		border-radius: 8px;
	}
	.lounge-inventory-heading {
		padding: 5px 6px;
		font-size: 11px;
		letter-spacing: 0;
	}
	.p-lounge .menu {
		font-size: 11px;
		margin: 0 6px 4px;
	}
	.p-lounge .menu li {
		gap: 4px;
		padding: 2px 0;
	}
	.p-lounge .menu li b {
		font-size: 11px;
	}
	.lounge-summary {
		min-height: 36px;
		padding: 5px 8px;
		gap: 8px;
		border-radius: 6px;
	}
	.lounge-summary dt {
		font-size: 11px;
	}
	.lounge-summary dd {
		font-size: 12px;
		gap: 6px;
	}

	.p-stock {
		padding: 44px 14px 12px;
	}
	.p-stock .title {
		position: static;
		font-size: 32px;
		line-height: 1.2;
		padding: 0;
		margin: 0 0 6px;
		white-space: nowrap;
	}
	.p-stock .note {
		position: static;
		width: 100%;
		font-size: 11px;
		line-height: 1.5;
		margin-bottom: 10px;
	}
	.stock-monitor {
		position: static;
		width: 61cqw;
		height: calc(61cqw * 446 / 674);
		padding: 6px;
		gap: 3px;
	}
	.stock-monitor > p {
		font-size: 11px;
	}
	.stock-art > span {
		right: 14px;
		top: 20cqh;
		font-size: 36px;
	}
	.stock-art .stock-circle {
		left: 8%;
		top: 47cqh;
		width: 90cqw;
	}
	.p-stock .items {
		position: absolute;
		inset: auto 14px 58px;
		height: 39cqh;
		min-height: 0;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(2, minmax(0, 1fr));
		gap: 10px 16px;
		padding: 0;
	}
	.p-stock .item {
		grid-template-columns: auto minmax(0, 1fr);
	}
	.p-stock .item::before {
		position: static;
		grid-column: 1;
		grid-row: 1;
		font-size: 20px;
		line-height: 1;
		align-self: start;
	}
	.p-stock .item > .shot {
		grid-column: 2;
	}
	.p-stock #stock-frames > .shot {
		padding: 8px 0 12px;
	}
	.p-stock .item > .tag,
	.p-stock .item > h3 {
		grid-column: 1 / -1;
	}
	.p-stock .more::before {
		display: none;
		left: -6px;
		right: -6px;
		top: auto;
		bottom: -51px;
		width: auto;
		height: 44px;
	}
	.p-stock .more .cond {
		left: 4px;
		top: auto;
		bottom: -45px;
		font-size: 11px;
	}
	.p-stock .more .say {
		left: 60px;
		right: 4px;
		top: auto;
		bottom: -45px;
		width: auto;
		font-size: 11px;
	}
	.p-stock .more .see {
		left: auto;
		right: 0;
		top: auto;
		bottom: calc(100% + 8px);
	}

	.p-mail {
		display: grid;
		padding: 44px 14px 12px;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 68px 12px minmax(0, 1fr) minmax(0, 0.8fr);
		gap: 8px;
	}
	.mail-masthead {
		position: relative;
		inset: auto;
		grid-column: 1;
		grid-row: 1;
		height: auto;
		min-height: 0;
	}
	.p-mail .title {
		position: static;
		font-size: 26px;
		line-height: 1.3;
		white-space: normal;
	}
	.mail-dateline {
		position: static;
		grid-row: 2;
		min-width: 0;
		font-size: 11px;
		gap: 5px;
		letter-spacing: 0;
	}
	.mail-dateline > span {
		white-space: nowrap;
	}
	.mail-story {
		position: static;
		grid-row: 3;
		min-height: 0;
		display: grid;
		grid-template-rows: auto minmax(0, 1fr) auto auto;
	}
	.mail-kicker {
		font-size: 11px;
	}
	.p-mail .slot {
		width: 100%;
		height: 100%;
		min-height: 0;
		align-self: stretch;
		aspect-ratio: auto;
		margin: 0;
	}
	.mail-caption {
		width: 100%;
		max-width: none;
		font-size: 11px;
		line-height: 1.4;
		margin-top: 4px;
	}
	.mail-night-note {
		display: none;
	}
	.p-mail .items {
		position: relative;
		inset: auto;
		grid-column: 1;
		grid-row: 4;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		height: auto;
		min-height: 0;
		gap: 12px;
		padding: 0 0 42px;
	}
	.p-mail .item {
		border: 1px solid var(--fg);
		padding: 6px;
	}
	.p-mail .item::before {
		display: none;
	}
	.p-mail .more .cond {
		left: 0;
		top: auto;
		bottom: 23px;
		font-size: 11px;
	}
	.p-mail .more .say {
		left: 0;
		right: 86px;
		top: auto;
		bottom: 0;
		width: auto;
		font-size: 11px;
	}
	.p-mail .more .see {
		left: auto;
		right: 0;
		top: auto;
		bottom: 0;
	}
}

/* 閉店：背の高いスマホではフッターのナビも見せる */
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) and (min-height: 721px) {
	.p-boiler .foot ul {
		display: flex;
	}
}

/* 閉店：375×667 などの低いスマホは、要素を詰めて1画面に収める */
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) and (max-height: 720px) {
	.closing-layout {
		inset: 40px 12px 8px;
		row-gap: 8px;
	}
	.closing-time {
		font-size: 48px;
	}
	.closing-label {
		font-size: 11px;
	}
	.p-boiler .title {
		font-size: 27px;
		padding-top: 0;
	}
	.closing-intro {
		font-size: 11px;
	}
	.p-boiler .note {
		font-size: 10.5px;
		line-height: 1.55;
		margin-top: 6px;
	}
	.closing-contact {
		font-size: 11px;
		line-height: 1.5;
		margin-top: 8px;
		padding-top: 5px;
	}
	.closing-contact-label {
		font-size: 11px;
		margin-bottom: 2px;
	}
	.closing-contact dt {
		font-size: 11px;
	}
	.closing-contact a {
		font-size: 11px;
	}
	.closing-monitor {
		padding: 5px;
	}
	.closing-monitor > p {
		display: none;
	}
	.closing-info {
		font-size: 11px;
		gap: 2px;
	}
	.closing-info > h3 {
		font-size: 16px;
		padding-top: 3px;
	}
	.closing-info .cond {
		font-size: 8.5px;
	}
	.closing-info .say {
		font-size: 11px;
		line-height: 1.5;
	}
	.p-boiler .closing-meta {
		display: none;
	}
	.closing-info .see {
		font-size: 11px;
	}
	.p-boiler .foot {
		font-size: 11px;
		padding-top: 5px;
		gap: 2px;
	}
}

/* 刷られた紙面（Q4）：大見出しに、インクのかすれのマスクを掛ける。屋上は対象外。
   文字の足（.ch の ::before・::after）や跳ねる動き、影が箱の外へ出るので、マスクの範囲は箱に切らない（no-clip） */
.p-lounge .title,
.p-stock .title,
.p-mail .title,
.p-boiler .title,
.p-boiler .closing-time {
	-webkit-mask-size: 512px 512px;
	mask-size: 512px 512px;
	-webkit-mask-repeat: repeat;
	mask-repeat: repeat;
	-webkit-mask-clip: no-clip;
	mask-clip: no-clip;
}
.p-roof .title {
	-webkit-mask-image: url(assets/masks/ink-01.png);
	mask-image: url(assets/masks/ink-01.png);
	-webkit-mask-position: 0 0;
	mask-position: 0 0;
	-webkit-mask-clip: no-clip;
	mask-clip: no-clip;
}
.p-lounge .title {
	-webkit-mask-image: url(assets/masks/ink-02.png);
	mask-image: url(assets/masks/ink-02.png);
	-webkit-mask-position: -120px 40px;
	mask-position: -120px 40px;
}
.p-stock .title {
	-webkit-mask-image: url(assets/masks/ink-03.png);
	mask-image: url(assets/masks/ink-03.png);
	-webkit-mask-position: 80px -60px;
	mask-position: 80px -60px;
}
.p-mail .title {
	-webkit-mask-image: url(assets/masks/ink-04.png);
	mask-image: url(assets/masks/ink-04.png);
	-webkit-mask-position: -40px 110px;
	mask-position: -40px 110px;
}
.p-boiler .title {
	-webkit-mask-image: url(assets/masks/ink-05.png);
	mask-image: url(assets/masks/ink-05.png);
	-webkit-mask-position: 150px 30px;
	mask-position: 150px 30px;
}
.p-boiler .closing-time {
	-webkit-mask-image: url(assets/masks/ink-06.png);
	mask-image: url(assets/masks/ink-06.png);
	-webkit-mask-position: -200px -90px;
	mask-position: -200px -90px;
}

/* 昼の小さい文字の下限（2026-11-16）：1920×960 で 14px 未満にしない。単位は各売り場のまま */
@media (min-width: 761px) and (min-aspect-ratio: 6 / 5) {
	.lounge-monitor > p,
	.lounge-inventory-heading,
	.lounge-summary dt,
	.lounge-summary dd {
		font-size: calc(0.77 * var(--lounge-unit));
	}
	.p-stock .more .cond,
	.p-stock .more .see {
		font-size: calc(0.865 * var(--stock-unit));
	}
	.mail-dateline,
	.mail-guide h4,
	.mail-guide-foot,
	.mail-products-label,
	.digest-head,
	.digest-when,
	.digest-place,
	.p-mail small {
		font-size: calc(0.865 * var(--mail-unit));
	}
	.closing-label,
	.steps i,
	.foot-note,
	.foot-note small {
		font-size: calc(0.99 * var(--closing-unit));
	}
	.closing-contact-label,
	.closing-monitor > p,
	.p-boiler .cond,
	.p-boiler .tag .num,
	.p-boiler .tag .en {
		font-size: calc(0.865 * var(--closing-unit));
	}
}

/* Q11 スマホ：道具・雑貨の黒い帯の文字を 11px 以上に。選んだ商品の説明を deck から離す */
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) {
	.p-stock .stock-bar {
		font-size: 12px;
	}
	.p-stock .more .cond,
	.p-stock .more .say {
		bottom: -36px;
	}
}

/*
 * スマホの並べ方で、縦横比 3:4 より横に広い画面（幅を狭めた窓・正方形に近い窓）：横幅はいっぱいに使う。
 * 並べ方の高さは幅に比例するので、高さの足りない所だけ映像を残りの高さに合わせて縮める（2026-11-17）
 */
@media ((max-width: 760px) or (max-aspect-ratio: 6 / 5)) and (min-aspect-ratio: 3 / 4) {
	/* 道具・雑貨：映像が下の商品（付箋）にかからないよう、幅を高さでも抑える */
	.stock-monitor {
		--sm-w: min(61cqw, 52cqh);
		width: var(--sm-w);
		height: calc(var(--sm-w) * 446 / 674);
	}
	/* 閉店：文字の行は固定の高さなので、映像だけを縮めて商品とフッターの場所を空ける */
	.closing-monitor {
		justify-self: center;
		width: min(100%, calc((100vh - var(--deck) - 520px) * 1.7));
	}
}
