/* カスハラ防衛線 紹介サイト
   色・書体はゲームの docs/UI_GUIDE.md に合わせる（紙・インク・朱・黄）。
   グラデーション・ぼかし影・半透明のパネルは使わない。 */

:root {
  --paper: #f3eee3;
  --paper-dim: #d9d1c0;
  --paper-hi: #fbf8f1;
  --ink: #24212b;
  --ink-soft: #6b6574;
  --shu: #d23f2f;
  --shu-dark: #a92f22;
  --pop: #ffd23f;
  --lcd-bg: #1f2b22;
  --lcd-on: #b8f28a;
  --lcd-off: #2e4232;
  --ok: #2f8f5b;
  --cork: #b98a55;
  --cork-dark: #9c7044;
  --shadow: rgba(36, 33, 43, .25);

  --f-head: "Dela Gothic One", "Noto Sans JP", sans-serif;
  --f-hand: "Yusei Magic", "Noto Sans JP", sans-serif;
  --f-dot: "DotGothic16", "Noto Sans JP", monospace;
  --f-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;

  --gutter: 16px;
  --max: 1160px;
}
:lang(zh) {
  --f-head: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  --f-hand: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  --f-dot: "DotGothic16", "Noto Sans SC", monospace;
  --f-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
:lang(ko) {
  --f-head: "Black Han Sans", "Noto Sans KR", sans-serif;
  --f-hand: "Jua", "Noto Sans KR", sans-serif;
  --f-dot: "DotGothic16", "Noto Sans KR", monospace;
  --f-body: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
:lang(en) {
  --f-body: "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.8 var(--f-body);
  /* 日本語・中国語の改行: 行頭禁則を厳しく */
  line-break: strict;
  overflow-wrap: break-word;
}
:lang(ja) body, body:lang(ja) { word-break: auto-phrase; }
:lang(ko) body, body:lang(ko) { word-break: keep-all; }
h1, h2, h3 { text-wrap: balance; line-height: 1.3; margin: 0; font-weight: 400; }
p, li, dd, td { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--shu); }
:focus-visible { outline: 3px solid var(--shu); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nb { white-space: nowrap; }
.url { overflow-wrap: anywhere; word-break: break-all; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--pop); color: var(--ink); padding: 8px 12px; font-weight: 800;
}
.skip:focus { top: 8px; }

/* ---------- 看板（ヘッダー） ---------- */
.sign {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 4px solid var(--shu);
}
.sign .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 24px; padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--paper);
  font: 400 18px/1.2 var(--f-head);
  margin-right: auto;
  min-width: 0;
}
.brand img { width: 32px; height: 32px; border-radius: 4px; }
.brand:hover { color: var(--pop); }
.mainnav { order: 3; width: 100%; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mainnav a { text-decoration: none; font-size: 14px; padding: 4px 0; display: inline-block; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a[aria-current] { color: var(--pop); border-bottom-color: var(--pop); }
@media (min-width: 1024px) {
  .mainnav { order: 0; width: auto; }
}
/* 言語切り替え = 書類のインデックスの耳 */
.langs { display: flex; gap: 2px; align-items: flex-end; margin: 0; padding: 0; list-style: none; }
.langs a {
  display: block; text-decoration: none;
  padding: 4px 10px 3px; font-size: 14px; line-height: 1.4;
  background: var(--paper-dim); color: var(--ink);
  border-radius: 6px 2px 0 0;
  border: 2px solid var(--ink); border-bottom: 0;
}
.langs a:nth-child(odd) { border-radius: 2px 6px 0 0; }
.langs a[aria-current="true"] { background: var(--pop); }
.langs a:hover { background: var(--paper); color: var(--shu); }

/* ---------- ボタン類（役目ごとに形を変える） ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--shu); color: var(--paper);
  text-decoration: none; font: 800 18px/1.3 var(--f-body);
  padding: 14px 22px; border: 0; border-radius: 2px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.btn-primary:hover { color: var(--paper); background: var(--shu-dark); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary svg { flex: none; }
.link-arrow { font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; }

/* ---------- ヒーロー: 求人ポスター ＋ 店内 ＋ 従業員証 ---------- */
.hero {
  position: relative;
  background: var(--ink);
  overflow: clip;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-scene { position: relative; aspect-ratio: 4 / 3; }
@media (min-width: 600px) and (max-width: 899px) { .hero-scene { aspect-ratio: 16 / 9; } }
.hero-scene > img.scene { width: 100%; height: 100%; object-fit: cover; }
.poster {
  position: relative; z-index: 2;
  background: var(--paper);
  margin: -40px var(--gutter) 32px;
  box-shadow: 6px 6px 0 #141218;
  transform: rotate(-.6deg);
}
.poster-band {
  background: var(--shu); color: var(--paper);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 20px;
  font: 400 clamp(18px, 5.4vw, 22px)/1.2 var(--f-head);
}
.poster-band small { color: var(--pop); font-size: 14px; }
.poster-body { padding: 20px 20px 24px; }
.poster h1 { font: 400 clamp(36px, 10vw, 64px)/1.15 var(--f-head); letter-spacing: .01em; }
.poster h1 .sub { display: block; font: 800 clamp(16px, 4.4vw, 22px)/1.4 var(--f-body); color: var(--shu); margin-top: 8px; letter-spacing: 0; }
:lang(en) .poster h1 { font-size: clamp(32px, 8.4vw, 54px); }
.wage { font: 400 18px/1.5 var(--f-hand); margin: 12px 0 0; }
.lead { margin: 16px 0 0; }
.cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta-note { font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; }
.spec-line {
  margin: 20px 0 0; padding: 12px 0 0; border-top: 2px solid var(--ink);
  font: 400 14px/1.6 var(--f-dot); display: flex; flex-wrap: wrap; gap: 4px 16px;
}
.tape {
  position: absolute; width: 112px; height: 28px; background: var(--pop);
  opacity: .92; top: -12px; right: 24px; transform: rotate(-4deg);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: start; }
  .hero-scene { grid-column: 1 / 3; grid-row: 1; aspect-ratio: auto; height: 100%; min-height: 640px; }
  .hero-scene > img.scene { position: absolute; inset: 0 0 0 30%; width: 70%; }
  .poster { grid-column: 1; grid-row: 1; margin: 48px 0 56px var(--gutter); }
  .poster-body { padding: 28px 32px 32px; }
}
@media (min-width: 1440px) {
  .hero-grid { max-width: 1400px; margin: 0 auto; }
}

/* 従業員証（押すとゆれる） */
.idcard-hang {
  position: absolute; z-index: 3; top: 0; right: 12px;
  width: 150px;
}
.idcard {
  all: unset; box-sizing: border-box; display: block; width: 100%;
  cursor: pointer; transform-origin: 50% -40px;
  -webkit-tap-highlight-color: transparent;
}
.idcard:focus-visible { outline: 3px solid var(--pop); outline-offset: 4px; }
.lanyard { display: block; height: 24px; width: 60%; margin: 0 auto; border: 4px solid var(--shu); border-top: 0; border-radius: 0 0 4px 4px; }
.idcard-in {
  display: block; background: var(--paper-hi); border-radius: 6px;
  box-shadow: 4px 4px 0 #141218; overflow: hidden; font-size: 12px; line-height: 1.4;
}
.idcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; background: var(--shu); color: var(--paper); padding: 6px 8px; font: 400 13px/1.2 var(--f-head); }
.idcard-head span { font: 400 10px/1 var(--f-dot); }
.idcard-row { display: flex; gap: 8px; padding: 8px; }
.idcard-row img { width: 46px; height: 60px; object-fit: cover; border: 2px solid var(--ink); flex: none; }
.idcard-row b { display: block; font: 800 13px/1.3 var(--f-body); border: 2px solid var(--ink); border-radius: 3px; padding: 2px 4px; margin-bottom: 4px; }
.idcard-rank { display: block; padding: 0 8px 8px; font-size: 11px; }
.idcard-rank strong { color: var(--shu); font: 400 12px/1.3 var(--f-hand); display: block; }
.barcode { display: block; height: 14px; margin: 0 8px 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px); }
@media (min-width: 600px) { .idcard-hang { width: 190px; right: 24px; } .idcard-in { font-size: 13px; } .idcard-row img { width: 58px; height: 75px; } }
@media (min-width: 900px) { .idcard-hang { right: 48px; width: 210px; } }
.idcard.swing { animation: swing 2.2s cubic-bezier(.2, .6, .3, 1) 1; }
@keyframes swing {
  0% { transform: rotate(0); }
  12% { transform: rotate(-7deg); }
  32% { transform: rotate(4.5deg); }
  52% { transform: rotate(-2.4deg); }
  72% { transform: rotate(1.1deg); }
  88% { transform: rotate(-.4deg); }
  100% { transform: rotate(0); }
}

/* ---------- 共通の章 ---------- */
.section { padding: 64px 0; position: relative; }
.section + .section { border-top: 2px dashed var(--paper-dim); }
.kicker { font: 400 14px/1.4 var(--f-dot); color: var(--shu); margin: 0 0 8px; letter-spacing: .04em; }
.section h2 { font: 400 clamp(28px, 6.4vw, 44px)/1.25 var(--f-head); margin-bottom: 16px; }
:lang(en) .section h2 { font-size: clamp(26px, 5.6vw, 40px); }
.section h2 + p { max-width: 40em; margin: 0 0 24px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }

/* ---------- クレーンゲームのフロア案内 ---------- */
.floor { background: var(--ink); color: var(--paper); padding: 40px 0 48px; border-top: 0 !important; }
.floor .wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .floor .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.floor h2 { font: 400 clamp(24px, 5vw, 34px)/1.3 var(--f-head); color: var(--pop); }
.floor p { margin: 8px 0 0; color: var(--paper-dim); font-size: 14px; }
.crane {
  position: relative; width: 100%; max-width: 600px; justify-self: center;
  border: 6px solid var(--shu); border-radius: 8px 8px 2px 2px; background: #fbe4ec;
  padding: 0;
}
.crane-top {
  background: var(--shu); color: var(--paper); text-align: left;
  font: 400 16px/1 var(--f-head); padding: 6px 12px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.crane-top span { font: 400 12px/1 var(--f-dot); color: var(--pop); }
.crane-glass { position: relative; height: 250px; border-bottom: 6px solid var(--shu); overflow: hidden; }
.rail { position: absolute; left: 0; right: 0; top: 10px; height: 6px; background: var(--ink); }
.claw {
  position: absolute; top: 10px; left: 0; width: 52px; margin-left: -26px;
  transform: translateX(var(--cx, 40px)); transition: transform .6s ease-out;
  pointer-events: none;
}
.claw-cable { display: block; width: 4px; margin: 0 auto; height: var(--drop, 24px); background: var(--ink); transition: height .45s ease-out; }
.claw svg { display: block; width: 52px; height: 40px; margin-top: -2px; }
.claw .arm { transition: transform .2s ease-out; transform-origin: 26px 10px; }
.claw.closed .arm-l { transform: rotate(-16deg); }
.claw.closed .arm-r { transform: rotate(16deg); }
.chute {
  position: absolute; left: 8px; bottom: 0; width: 72px; height: 42px;
  border: 4px solid var(--ink); border-bottom: 0; background: var(--paper-dim);
  font: 400 11px/1.2 var(--f-dot); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink);
}
.prizes {
  position: absolute; left: 88px; right: 8px; bottom: 6px;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: space-around; align-items: flex-end; gap: 4px 2px;
}
.prize {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--ink); min-width: 56px; padding: 4px 0;
  transition: transform .45s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.prize svg { width: 44px; height: 44px; transition: transform .15s ease-out; }
.prize:hover svg, .prize:focus-visible svg { transform: translateY(-4px) rotate(-3deg); }
.prize span {
  white-space: nowrap;
  font: 800 12px/1.25 var(--f-body); background: var(--paper-hi); border: 2px solid var(--ink);
  padding: 1px 4px; border-radius: 3px; text-align: center; max-width: 100%;
}
.prize.held { transition: transform .45s ease-out; }
.prize.gone { opacity: 0; transition: opacity .2s ease-out; }
.crane-foot { background: var(--ink); color: var(--paper-dim); font: 400 12px/1.4 var(--f-dot); padding: 6px 12px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (min-width: 600px) {
  .crane-glass { height: 260px; }
  .prize { min-width: 64px; }
  .prize svg { width: 54px; height: 54px; }
  .prize span { font-size: 13px; }
  .prizes { left: 96px; }
  .chute { width: 80px; }
}

/* ---------- レシート（スクロールで印字） ---------- */
.printer {
  position: relative; max-width: 400px; margin: 0 auto;
}
.printer-slot {
  position: relative; z-index: 2; height: 30px; background: var(--ink); border-radius: 6px 6px 2px 2px;
  box-shadow: 0 4px 0 #141218; display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
  font: 400 11px/1 var(--f-dot); color: var(--lcd-on);
}
.printer-slot i { width: 8px; height: 8px; border-radius: 50%; background: var(--lcd-on); }
.receipt-clip { overflow: hidden; margin: 0 16px; }
.receipt {
  background: var(--paper-hi); padding: 20px 18px 28px;
  font: 400 15px/1.7 var(--f-dot);
  transform: translateY(calc((var(--p, 1) - 1) * 100%));
  /* 下の辺をギザギザに */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 90% calc(100% - 8px), 85% 100%, 80% calc(100% - 8px), 75% 100%, 70% calc(100% - 8px), 65% 100%, 60% calc(100% - 8px), 55% 100%, 50% calc(100% - 8px), 45% 100%, 40% calc(100% - 8px), 35% 100%, 30% calc(100% - 8px), 25% 100%, 20% calc(100% - 8px), 15% 100%, 10% calc(100% - 8px), 5% 100%, 0 calc(100% - 8px));
}
.receipt h3 { font: 400 18px/1.4 var(--f-dot); text-align: center; }
.receipt .shop { text-align: center; margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); }
.receipt ol, .receipt ul { list-style: none; margin: 12px 0; padding: 0; }
.receipt li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 3px 0; }
.receipt li > span:first-child { border-bottom: 2px dotted var(--paper-dim); padding-bottom: 2px; }
.receipt li > span:last-child { text-align: right; white-space: nowrap; }
.receipt li.minus > span:last-child { color: var(--shu); }
.receipt hr { border: 0; border-top: 2px dashed var(--ink); margin: 12px 0; }
.receipt .total { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 18px; }
.receipt .fine { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }
.receipt .barcode { margin: 16px 20% 0; height: 28px; }
@media (max-width: 380px) { .receipt li { grid-template-columns: minmax(0, 1fr); gap: 0; } .receipt li > span:last-child { text-align: left; } }

/* ---------- お客様表示（怒りメーターのおもちゃ） ---------- */
.demo { background: var(--paper-hi); border: 3px solid var(--ink); border-radius: 2px; box-shadow: 5px 5px 0 var(--shadow); }
.demo-head { background: var(--ink); color: var(--paper); padding: 8px 14px; font: 400 14px/1.4 var(--f-hand); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.demo-body { padding: 16px; display: grid; gap: 16px; }
.bubble {
  position: relative; background: var(--paper-hi); border: 3px solid var(--ink); border-radius: 22px;
  padding: 12px 16px; font-weight: 800; margin: 0;
}
.bubble small { display: block; color: var(--shu); font-size: 13px; font-weight: 800; }
.bubble::after {
  content: ""; position: absolute; left: 28px; bottom: -14px; width: 18px; height: 14px;
  background: var(--ink); clip-path: polygon(0 0, 100% 0, 20% 100%);
}
.lcd { background: var(--lcd-bg); color: var(--lcd-on); padding: 12px 14px; border-radius: 3px; font: 400 15px/1.3 var(--f-dot); }
.lcd-label { color: #7f9a86; font-size: 12px; margin-bottom: 6px; }
.meter { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 2.6em; gap: 8px; align-items: center; margin: 4px 0; }
.meter .val { text-align: right; font-size: 20px; }
.segs { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 2px; height: 14px; }
.segs i { background: var(--lcd-off); }
.segs i.on { background: var(--lcd-on); }
.meter.anger .segs i.on { background: #ff8a5c; }
.meter.anger .val { color: #ff8a5c; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag {
  font: 500 14px/1.4 var(--f-body); color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink-soft); border-radius: 4px; padding: 6px 10px; cursor: pointer; text-align: left;
}
.tag:hover { border-color: var(--ink); background: var(--paper-hi); }
.tag.act { border-color: var(--shu); color: var(--shu); font-weight: 800; }
.tag:disabled { opacity: .5; cursor: default; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.demo-foot button { all: unset; cursor: pointer; font-weight: 800; color: var(--ink); border-bottom: 2px solid currentColor; }
.demo-foot button:focus-visible { outline: 3px solid var(--shu); outline-offset: 3px; }
.demo { position: relative; }
.stamp {
  position: absolute; right: 16px; top: 168px; z-index: 2; pointer-events: none;
  font: 400 30px/1 var(--f-head); color: var(--shu); border: 4px solid currentColor; border-radius: 6px;
  padding: 8px 12px; background: var(--paper-hi); transform: rotate(-8deg); opacity: 0;
}
.stamp.show { opacity: 1; animation: stampin .25s ease-out 1; }
.stamp.ok { color: var(--ok); }
@keyframes stampin { from { transform: rotate(-8deg) scale(1.6); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.no-js .demo-js { display: none; }

/* ---------- ゲームセンター: 値札の売り場 ---------- */
.stage-shot { position: relative; margin: 0; }
.stage-shot img { border: 6px solid var(--paper-hi); box-shadow: 5px 5px 0 var(--shadow); }
.stage-shot figcaption { font: 400 15px/1.5 var(--f-hand); margin-top: 12px; }
.stage-shot .tape { right: auto; left: 40%; }
.shelf { margin: 48px 0 0; padding: 0; list-style: none; position: relative; display: flex; flex-wrap: wrap; gap: 32px 20px; align-items: flex-start; }
.pricetag {
  position: relative; flex: 1 1 240px; max-width: 360px;
  background: var(--paper-hi); color: var(--ink);
  padding: 14px 16px 16px 40px;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%);
  filter: drop-shadow(4px 4px 0 var(--shadow));
  transform-origin: 30px 50%;
  transition: transform .3s ease-out;
}
.pricetag::before { /* ひもを通す穴 */
  content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 1px 1px 0 var(--paper-dim);
}
.shelf-wrap { filter: none; }
.pricetag:nth-child(3n+1) { transform: rotate(-1deg); flex-basis: 300px; }
.pricetag:nth-child(3n+2) { transform: rotate(.8deg); margin-top: 16px; }
.pricetag:nth-child(3n) { transform: rotate(-.4deg); flex-basis: 260px; }
.pricetag:hover { transform: rotate(-2deg); }
.pricetag .price { font: 400 34px/1 var(--f-dot); color: var(--shu); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pricetag .price small { font: 800 13px/1.2 var(--f-body); color: var(--ink); }
.pricetag h3 { font: 800 17px/1.4 var(--f-body); margin: 8px 0 4px; }
.pricetag p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink); }
.pricetag.sale { background: var(--pop); }
.pricetag.sale::before { background: var(--paper); }

/* ---------- 対戦 ---------- */
.versus-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; margin: 32px 0; }
@media (min-width: 720px) { .versus-board { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }
.nametag {
  background: var(--paper-hi); border: 3px solid var(--ink); border-radius: 10px; overflow: hidden;
  box-shadow: 4px 4px 0 var(--shadow);
}
.nametag header { background: var(--shu); color: var(--paper); padding: 6px 14px; font: 400 16px/1.3 var(--f-head); }
.nametag.cust header { background: var(--ink); }
.nametag div { padding: 12px 14px 14px; }
.nametag b { font: 400 22px/1.3 var(--f-hand); display: block; }
.nametag p { margin: 4px 0 0; font-size: 14px; }
.vs { font: 400 40px/1 var(--f-head); color: var(--shu); text-align: center; margin: 0; }
.ledger { border-top: 3px solid var(--ink); margin: 0; }
.ledger div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 10px 0; border-bottom: 1px solid var(--paper-dim); }
@media (min-width: 600px) { .ledger div { grid-template-columns: 11em minmax(0, 1fr); } }
.ledger dt { font-weight: 800; }
.ledger dd { margin: 0; }
.ranks { display: flex; flex-wrap: wrap; gap: 4px 4px; list-style: none; padding: 0; margin: 8px 0 0; font: 400 13px/1.4 var(--f-dot); }
.ranks li { padding: 2px 6px; border: 1px solid var(--ink-soft); background: var(--paper); }
.ranks li:last-child { background: var(--pop); border-color: var(--ink); }
.note { font-size: 14px; color: var(--ink-soft); margin: 16px 0 0; }
.note a { color: var(--ink); }

/* ---------- コルクボード（写真） ---------- */
.cork {
  background: var(--cork); border: 10px solid var(--cork-dark); border-radius: 3px;
  padding: 32px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px;
  list-style: none; margin: 0;
}
.cork li { flex: 0 1 300px; min-width: 0; }
.cork li:nth-child(1) { flex-basis: 420px; }
.cork li:nth-child(4) { flex-basis: 360px; }
.pin {
  display: block; position: relative; background: var(--paper-hi); padding: 8px 8px 10px; text-decoration: none;
  box-shadow: 4px 4px 0 rgba(36, 33, 43, .3); transition: transform .2s ease-out;
}
.pin::before { /* 押しピン */
  content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--shu); box-shadow: 2px 2px 0 rgba(36, 33, 43, .35); z-index: 1;
}
.cork li:nth-child(3n+1) .pin { transform: rotate(-1.2deg); }
.cork li:nth-child(3n+2) .pin { transform: rotate(1.4deg); margin-top: 12px; }
.cork li:nth-child(3n+2) .pin::before { background: #3c7fd0; }
.cork li:nth-child(3n) .pin { transform: rotate(-.5deg); }
.cork li:nth-child(3n) .pin::before { background: var(--pop); }
.pin:hover, .pin:focus-visible { transform: rotate(0) translateY(-3px); }
.pin img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pin span { display: block; font: 400 15px/1.4 var(--f-hand); padding-top: 8px; color: var(--ink); }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(1280px, 96vw); width: 100%; overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(36, 33, 43, .82); }
.lightbox figure { margin: 0; background: var(--paper-hi); padding: 8px; }
.lightbox figcaption { font: 400 16px/1.5 var(--f-hand); padding: 8px 4px 0; }
.lightbox button { all: unset; cursor: pointer; position: absolute; right: 0; top: -44px; background: var(--pop); color: var(--ink); font: 800 14px/1 var(--f-body); padding: 10px 14px; }
.lightbox button:focus-visible { outline: 3px solid var(--paper); }

/* ---------- コンビニ（近日オープン） ---------- */
.shutter-box { position: relative; overflow: hidden; border: 6px solid var(--ink); background: var(--ink); max-width: 760px; }
.shutter-box img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 0; }
.shutter {
  position: absolute; inset: 0 0 18% 0; z-index: 1;
  background: repeating-linear-gradient(180deg, #b9b4ab 0 12px, #8f8a82 12px 14px, #cfcac0 14px 16px);
  border-bottom: 8px solid #6f6a63;
  transition: transform .5s ease-out;
}
.shutter-box:hover .shutter, .shutter-box:focus-within .shutter, .shutter-box.peek .shutter { transform: translateY(-34%); }
.notice {
  position: absolute; z-index: 2; left: 50%; top: 14%; width: min(78%, 360px); transform: translateX(-50%) rotate(1.2deg);
  background: var(--paper-hi); padding: 16px 18px; box-shadow: 4px 4px 0 var(--shadow);
}
.notice .tape { top: -14px; left: 50%; right: auto; margin-left: -56px; transform: rotate(-3deg); }
.notice strong { display: block; font: 400 clamp(22px, 5vw, 32px)/1.2 var(--f-head); color: var(--shu); }
.notice span { display: block; font: 400 clamp(13px, 3.4vw, 16px)/1.5 var(--f-hand); margin-top: 6px; }
.shutter-box button { all: unset; position: absolute; z-index: 3; right: 8px; bottom: 8px; background: var(--pop); color: var(--ink); font: 800 13px/1.2 var(--f-body); padding: 6px 10px; cursor: pointer; }
.shutter-box button:focus-visible { outline: 3px solid var(--paper); }
.konbini-text { margin-top: 16px; }

/* ---------- 入手 ---------- */
.get { background: var(--pop); }
.get .section-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .get .section-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.get .cta-note { color: var(--ink); }
.get .ledger { background: var(--paper-hi); padding: 4px 16px 8px; border: 3px solid var(--ink); }
.get .ledger div:last-child { border-bottom: 0; }

/* ---------- 文書のページ（規約など） ---------- */
.doc { padding: 40px 0 72px; }
.sheet {
  position: relative; max-width: 860px; background: var(--paper-hi); padding: 32px 20px 40px;
  box-shadow: 5px 5px 0 var(--shadow);
}
@media (min-width: 768px) { .sheet { padding: 48px 56px 56px; } }
.sheet .tape { left: 32px; right: auto; }
.sheet h1 { font: 400 clamp(26px, 6vw, 40px)/1.3 var(--f-head); margin-bottom: 12px; }
.sheet h2 { font: 800 19px/1.5 var(--f-body); margin: 32px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); }
.sheet h3 { font: 800 16px/1.5 var(--f-body); margin: 20px 0 4px; color: var(--shu); }
.sheet .muted { color: var(--ink-soft); font-size: 14px; }
.sheet ol, .sheet ul { padding-left: 1.6em; }
.sheet li { margin: 4px 0; }
.sheet .table-scroll { overflow-x: auto; margin: 8px 0; }
.sheet table { border-collapse: collapse; width: 100%; min-width: 0; font-size: 14px; }
.sheet th, .sheet td { border: 1px solid var(--paper-dim); padding: 8px; text-align: left; vertical-align: top; }
.sheet th { background: var(--paper); }
@media (max-width: 600px) {
  .sheet table, .sheet tbody, .sheet tr, .sheet th, .sheet td { display: block; width: 100%; }
  .sheet tr { border-bottom: 2px solid var(--ink); padding: 8px 0; }
  .sheet tr:first-child { display: none; }
  .sheet th, .sheet td { border: 0; padding: 2px 0; }
  .sheet td:first-child { font-weight: 800; }
}
.sheet .box { background: var(--paper); border-left: 4px solid var(--shu); padding: 10px 14px; margin: 12px 0; }
.ph { background: var(--pop); padding: 0 4px; }
.mailcard { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border: 3px solid var(--ink); padding: 12px 16px; background: var(--paper); margin: 8px 0 16px; max-width: 100%; }
.mailcard a { font: 800 18px/1.4 var(--f-body); }

/* ---------- フッター ---------- */
.foot { background: var(--ink); color: var(--paper-dim); padding: 40px 0 32px; font-size: 14px; }
.foot .wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--paper); }
.foot a:hover { color: var(--pop); }
.foot p { margin: 0 0 8px; }
.foot .ph { color: var(--ink); }
.foot .copy { font: 400 14px/1.5 var(--f-dot); color: var(--paper); }

/* ---------- ルート（言語を選ぶ）・404 ---------- */
.picker { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--gutter); }
.picker .sheet { width: 100%; max-width: 560px; }
.picker ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.picker li a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 14px; border: 2px solid var(--ink); text-decoration: none; background: var(--paper); font-weight: 800; }
.picker li a:hover { background: var(--pop); color: var(--ink); }
.picker li a small { font-weight: 500; color: var(--ink-soft); }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .receipt { transform: none; }
}
@media print {
  .sign, .floor, .demo, .foot, .idcard-hang { display: none; }
  .receipt { transform: none; }
}

/* サーバーの状況（status のページ）: お客様表示と同じ液晶の板に、行ごとの状態のランプ */
.status-board { margin: 20px 0 8px; background: var(--lcd-bg); color: var(--lcd-on); border: 3px solid var(--ink); border-radius: 6px; padding: 16px; font-family: var(--f-dot); }
.st-rows { list-style: none; padding: 0 !important; margin: 0; }
.st-rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dashed var(--lcd-off); margin: 0 !important; }
.st-rows li:last-child { border-bottom: 0; }
.st-name { min-width: 0; overflow-wrap: anywhere; }
.st-val { font-weight: 700; white-space: nowrap; }
.st-val::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--lcd-off); vertical-align: 1px; }
.st-val[data-state="ok"]::before { background: var(--lcd-on); }
.st-val[data-state="degraded"], .st-val[data-state="maintenance"] { color: var(--pop); }
.st-val[data-state="degraded"]::before, .st-val[data-state="maintenance"]::before { background: var(--pop); }
.st-val[data-state="down"], .st-val[data-state="unreachable"] { color: #ff8a6a; }
.st-val[data-state="down"]::before, .st-val[data-state="unreachable"]::before { background: #ff8a6a; }
.st-val[data-state="off"] { color: var(--paper-dim); }
.st-msg, .st-note { margin: 12px 0 0; padding: 10px 12px; background: var(--paper-hi); color: var(--ink); border-radius: 4px; font-family: var(--f-body); overflow-wrap: anywhere; }
.st-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 0; font-size: 14px; color: var(--paper-dim); }
.st-refresh { font: inherit; color: var(--ink); background: var(--pop); border: 2px solid var(--ink); border-radius: 4px; padding: 6px 12px; cursor: pointer; }
.st-refresh:focus-visible { outline: 3px solid var(--paper-hi); outline-offset: 2px; }

/* ガイド・ブログ（要件#125）: 記事の一覧と記事の本文 */
.post-list { list-style: none; padding: 0 !important; }
.post-list li { padding: 12px 0; border-bottom: 1px dashed var(--paper-dim); margin: 0 !important; }
.post-list a { font-weight: 800; }
.post-list time { color: var(--ink-soft); font-size: 13px; margin-left: 8px; }
.post-list .muted { margin: 4px 0 0; }
.post.sheet img { max-width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 4px; margin: 12px 0; }
.post.sheet pre { background: var(--lcd-bg); color: var(--lcd-on); padding: 12px; border-radius: 4px; overflow-x: auto; font-size: 14px; }
.post.sheet code { font-family: var(--f-dot); }
.post.sheet blockquote { margin: 12px 0; padding: 4px 16px; border-left: 4px solid var(--pop); background: var(--paper-hi); }
.post.sheet h1 { overflow-wrap: anywhere; }
.post-kind { display: inline-block; background: var(--pop); color: var(--ink); padding: 0 8px; border-radius: 3px; font-weight: 800; }
.post-back { margin-top: 32px; }
