/* =========================================================
   六面亭（デモ）— RPG風デザイン
   ・スマホを基準に作り、640px / 900px から広い画面用に調整
   ・色やフォントは :root の変数でまとめて変えられる
   ========================================================= */

@font-face {
  font-family: "RokumenDot";
  /* DotGothic16（SIL OFL 1.1）を、このサイトで使う文字だけに絞ったもの */
  src: url("../fonts/rokumen-dot.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* 色 */
  --c-bg: #0a0d26;
  --c-bg-2: #11163a;
  --c-win-top: #1d2a7a;
  --c-win-bottom: #0e1550;
  --c-text: #f4f1ff;
  --c-muted: #c3c8ee;
  --c-gold: #ffd75e;
  --c-gold-dark: #b88a1a;
  --c-red: #ff6b6b;
  --c-green: #5ee07a;
  --c-line: #3b4aa8;
  --c-parch: #f3e3c3;
  --c-parch-dark: #e2c99b;
  --c-ink: #2b1d12;
  --c-shadow: #05071a;

  /* フォント（ドット文字 → 予備の Google Fonts → OS標準） */
  --font: "RokumenDot", "DotGothic16", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;

  /* ドットの枠（9スライス）。1ドット = 枠の太さの1/3 */
  --frame-w: 9px;
  --frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%2305071a' d='M2 0h5v1H2zM1 1h1v1H1zM7 1h1v1H7zM0 2h1v5H0zM8 2h1v5H8zM1 7h1v1H1zM7 7h1v1H7zM2 8h5v1H2z'/%3E%3Cpath fill='%23f4f1ff' d='M2 1h5v1H2zM1 2h7v1H1zM1 3h2v3H1zM6 3h2v3H6zM1 6h7v1H1zM2 7h5v1H2z'/%3E%3Cpath fill='%230a0f3a' d='M3 3h3v1H3zM3 4h1v1H3zM5 4h1v1H5zM3 5h3v1H3z'/%3E%3C/svg%3E");
  --frame-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%2305071a' d='M2 0h5v1H2zM1 1h1v1H1zM7 1h1v1H7zM0 2h1v5H0zM8 2h1v5H8zM1 7h1v1H1zM7 7h1v1H7zM2 8h5v1H2z'/%3E%3Cpath fill='%23ffd75e' d='M2 1h5v1H2zM1 2h7v1H1zM1 3h2v3H1zM6 3h2v3H6zM1 6h7v1H1zM2 7h5v1H2z'/%3E%3Cpath fill='%23704d08' d='M3 3h3v1H3zM3 4h1v1H3zM5 4h1v1H5zM3 5h3v1H3z'/%3E%3C/svg%3E");
  --frame-parch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%233b2412' d='M2 0h5v1H2zM1 1h1v1H1zM7 1h1v1H7zM0 2h1v5H0zM8 2h1v5H8zM1 7h1v1H1zM7 7h1v1H7zM2 8h5v1H2z'/%3E%3Cpath fill='%23a8743f' d='M2 1h5v1H2zM1 2h7v1H1zM1 3h2v3H1zM6 3h2v3H6zM1 6h7v1H1zM2 7h5v1H2z'/%3E%3Cpath fill='%236b4423' d='M3 3h3v1H3zM3 4h1v1H3zM5 4h1v1H5zM3 5h3v1H3z'/%3E%3C/svg%3E");
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' shape-rendering='crispEdges'%3E%3Crect x='115' y='143' width='2' height='2' fill='%23ffffff' opacity='.9'/%3E%3Crect x='47' y='131' width='2' height='2' fill='%23ffffff' opacity='.5'/%3E%3Crect x='114' y='77' width='1' height='1' fill='%23ffffff' opacity='.35'/%3E%3Crect x='152' y='101' width='2' height='2' fill='%23ffffff' opacity='.5'/%3E%3Crect x='135' y='16' width='1' height='1' fill='%23ffffff' opacity='.35'/%3E%3Crect x='61' y='153' width='1' height='1' fill='%23fff3a6' opacity='.9'/%3E%3Crect x='127' y='1' width='1' height='1' fill='%23fff3a6' opacity='.9'/%3E%3Crect x='104' y='141' width='1' height='1' fill='%23fff3a6' opacity='.7'/%3E%3Crect x='144' y='27' width='2' height='2' fill='%23fff3a6' opacity='.35'/%3E%3Crect x='98' y='17' width='1' height='1' fill='%23ffffff' opacity='.35'/%3E%3Crect x='53' y='13' width='2' height='2' fill='%239fb4ff' opacity='.9'/%3E%3Crect x='22' y='79' width='1' height='1' fill='%239fb4ff' opacity='.35'/%3E%3Crect x='30' y='34' width='1' height='1' fill='%23ffffff' opacity='.35'/%3E%3Crect x='15' y='119' width='2' height='2' fill='%23ffffff' opacity='.5'/%3E%3Crect x='76' y='96' width='1' height='1' fill='%23ffffff' opacity='.6'/%3E%3C/svg%3E");

  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='7' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffd75e' d='M0 0h1v7H0zM1 1h1v5H1zM2 2h1v3H2zM3 3h1v1H3z'/%3E%3C/svg%3E");

  --header-h: 64px;
  --bar-h: 64px;
  --win-pad: 14px 16px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  background-image: var(--stars), linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
  background-size: 160px 160px, 100% 100%;
  background-attachment: scroll;
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
img[src$=".svg"], .pixel { image-rendering: pixelated; }

h1, h2, h3, h4 { line-height: 1.4; font-weight: 400; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
small { font-size: 14px; }

a { color: var(--c-gold); text-underline-offset: 4px; }
a:hover { color: #fff3a6; }

:focus-visible {
  outline: 3px dashed var(--c-gold);
  outline-offset: 3px;
}

.tel { white-space: nowrap; }

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

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--c-gold);
  color: #1a1206;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

/* ---------- ウィンドウ（RPGのメッセージ枠） ---------- */
.win {
  position: relative;
  border: var(--frame-w) solid transparent;
  border-image: var(--frame) 4 / var(--frame-w) / 0 stretch;
  background: linear-gradient(180deg, var(--c-win-top), var(--c-win-bottom));
  background-clip: padding-box;
  padding: var(--win-pad);
}
.win-gold { border-image-source: var(--frame-gold); }

.win-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 0 10px;
  font-size: 16px;
  color: var(--c-gold);
  background: var(--c-shadow);
  border: 2px solid var(--c-gold);
}

.win-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--c-gold);
}
.win-head img { width: 32px; height: 32px; flex: none; }

/* ---------- ボタン ---------- */
.btn {
  --btn-bg: #22307f;
  --btn-bg-hover: #2e3fa0;
  --btn-fg: var(--c-text);
  --btn-edge: var(--c-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 18px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--btn-fg);
  text-decoration: none;
  background: var(--btn-bg);
  border: 3px solid var(--btn-edge);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), 0 4px 0 var(--c-shadow);
  cursor: pointer;
  /* 角を1ドット欠く */
  clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
  transition: transform .05s steps(1);
}
.btn img { width: 24px; height: 24px; flex: none; }
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(2px); }
.btn-gold {
  --btn-bg: var(--c-gold);
  --btn-bg-hover: #ffe58f;
  --btn-fg: #1a1206;
  --btn-edge: #fff3a6;
}
.btn-lg { min-height: 56px; font-size: 18px; padding: 10px 20px; }

/* ---------- デモ表示 ---------- */
.demo-bar {
  margin: 0;
  padding: 6px 16px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: #fff;
  background: #a52632;
  border-bottom: 3px solid var(--c-shadow);
}
.demo-bar strong { color: #fff3a6; font-weight: 400; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(10, 13, 38, .96);
  border-bottom: 4px solid var(--c-shadow);
  box-shadow: 0 2px 0 var(--c-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  text-decoration: none;
}
.logo img { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-sub { font-size: 12px; color: var(--c-muted); letter-spacing: 0; white-space: nowrap; }
.logo-main { font-size: 24px; letter-spacing: .12em; color: var(--c-text); text-shadow: 2px 2px 0 var(--c-shadow); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  font: inherit;
  color: var(--c-text);
  background: #22307f;
  border: 3px solid var(--c-text);
  cursor: pointer;
}
.menu-btn-icon,
.menu-btn-icon::before,
.menu-btn-icon::after {
  display: block;
  width: 16px;
  height: 3px;
  background: currentColor;
}
.menu-btn-icon { position: relative; }
.menu-btn-icon::before, .menu-btn-icon::after { content: ""; position: absolute; left: 0; }
.menu-btn-icon::before { top: -6px; }
.menu-btn-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn-icon::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon::after { top: 0; transform: rotate(-45deg); }

/* スマホのメニューはコマンドウィンドウとして開く */
.gnav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  left: 16px;
  border: var(--frame-w) solid transparent;
  border-image: var(--frame) 4 / var(--frame-w) / 0 stretch;
  background: linear-gradient(180deg, var(--c-win-top), var(--c-win-bottom));
  background-clip: padding-box;
  padding: 10px 12px 14px;
}
.gnav.is-open { display: block; }
.gnav-list a {
  position: relative;
  display: block;
  padding: 10px 8px 10px 30px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 18px;
  white-space: nowrap;
}
.gnav-cta { width: 100%; margin-top: 8px; white-space: nowrap; }

/* カーソル（ドットの三角） */
.gnav-list a::before,
.command-list a::before,
.equip-list li::before,
.footer-nav a::before,
.faq summary::after {
  content: "";
  width: 8px;
  height: 14px;
  background: var(--cursor) center / contain no-repeat;
  image-rendering: pixelated;
}
.gnav-list a::before,
.command-list a::before {
  position: absolute;
  left: 8px;
  top: 50%;
  margin-top: -7px;
  opacity: 0;
}
.gnav-list a:hover::before,
.gnav-list a:focus-visible::before,
.gnav-list a[aria-current="true"]::before,
.command-list a:hover::before,
.command-list a:focus-visible::before,
.command-list li:first-child a::before {
  opacity: 1;
  animation: blink 1s steps(2, jump-none) infinite;
}

/* ---------- ファーストビュー ---------- */
.hero { padding: 16px 0 8px; }
.hero-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "scene" "dialog" "status" "command";
}
.hero-scene { grid-area: scene; --win-pad: 0; overflow: hidden; background: var(--c-shadow); }
.hero-dialog { grid-area: dialog; }
.hero-status { grid-area: status; }
.hero-command { grid-area: command; }

.hero-title {
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, #0b1030, #10163e);
  border-bottom: 3px solid var(--c-shadow);
}
.hero-kicker { font-size: 13px; color: var(--c-muted); }
.hero-title h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.h1-main {
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: .14em;
  color: var(--c-text);
  text-shadow: 3px 3px 0 var(--c-shadow), -1px -1px 0 var(--c-shadow);
}
.h1-kana { font-size: 14px; color: var(--c-gold); letter-spacing: .2em; }
.hero-catch { margin-top: 2px; font-size: 16px; color: var(--c-gold); }

.hero-visual { position: relative; line-height: 0; }
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  image-rendering: pixelated;
}

.twinkles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: 0 -4px 0 #9fb4ff, 0 4px 0 #9fb4ff, -4px 0 0 #9fb4ff, 4px 0 0 #9fb4ff;
  opacity: 0;
  animation: twinkle 3.2s steps(4) infinite;
  animation-delay: var(--d);
}

.hero-today {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
  background: rgba(5, 7, 26, .88);
  border: 2px solid var(--c-text);
}

.today-dot {
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--c-muted);
  box-shadow: 0 0 0 2px var(--c-shadow);
}
.is-open .today-dot { background: var(--c-green); animation: blink 1.4s steps(2, jump-none) infinite; }
.is-closed .today-dot { background: var(--c-red); }
.is-soon .today-dot { background: var(--c-gold); }

/* 会話ウィンドウ */
.speaker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 0 10px;
  font-size: 15px;
  color: var(--c-shadow);
  background: var(--c-gold);
}
.dialog-text { font-size: 17px; line-height: 1.9; }
.dialog-text .tw { opacity: 0; }
.dialog-text .tw.on { opacity: 1; }
.dialog-next {
  position: absolute;
  right: 14px;
  bottom: 6px;
  color: var(--c-gold);
  animation: bob 1s steps(2, jump-none) infinite;
}

/* ステータス */
.today { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 16px; color: var(--c-text); }
.status-list > div {
  display: grid;
  grid-template-columns: 5.2em 1fr;
  gap: 8px;
  padding: 6px 0;
  border-top: 2px dotted var(--c-line);
}
.status-list dt { color: var(--c-gold); }
.status-list dd { color: var(--c-text); }
.status-list a { color: var(--c-text); }

/* コマンド */
.command-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.command-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px 6px 6px 28px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
}
.command-list a::before { left: 6px; }
.command-list img { width: 32px; height: 32px; flex: none; }
.command-list a:hover { background: rgba(255, 255, 255, .08); }

/* ---------- セクション共通 ---------- */
.section { padding: 48px 0; }

.sec-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 18px;
}
.sec-title img { width: 48px; height: 48px; flex: none; }
.sec-rpg {
  font-size: 30px;
  color: var(--c-gold);
  letter-spacing: .08em;
  text-shadow: 3px 3px 0 var(--c-shadow);
}
.sec-plain {
  padding: 0 10px;
  font-size: 16px;
  color: var(--c-text);
  background: var(--c-shadow);
  border: 2px solid var(--c-text);
}
.sec-title-center { justify-content: center; text-align: center; }

.sec-lead { margin: -4px 0 20px; color: var(--c-muted); }
.sub-title {
  margin: 32px 0 14px;
  font-size: 22px;
  color: var(--c-text);
}
.sub-title::before { content: "◆ "; color: var(--c-gold); }

.note { margin-top: 12px; font-size: 14px; line-height: 1.8; color: var(--c-muted); }
.note-center { text-align: center; }

/* ---------- お知らせ ---------- */
.news-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 2px dotted var(--c-line);
}
.news-list li:last-child { border-bottom: 0; }
.news-list time { color: var(--c-muted); font-size: 15px; }
.news-list a { color: var(--c-text); }
.news-list a:hover { color: var(--c-gold); }
.news-list li > :last-child { flex-basis: 100%; }
.tag {
  padding: 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-shadow);
  background: var(--c-muted);
}
.tag-quest { background: var(--c-gold); }
.tag-shop { background: #9be36c; }
.tag-info { background: #9fe3ff; }

/* ---------- はじめての方へ ---------- */
.skill-grid { display: grid; gap: 16px; }
.skill { text-align: center; --win-pad: 18px 16px; }
.skill img { width: 64px; height: 64px; margin: 0 auto 6px; display: block; }
.skill-label {
  display: inline-block;
  padding: 0 10px;
  font-size: 14px;
  color: var(--c-shadow);
  background: var(--c-gold);
}
.skill h3 { margin: 8px 0 6px; font-size: 22px; }
.skill p:last-child { color: var(--c-muted); text-align: left; }

.steps { display: grid; gap: 16px; counter-reset: step; }
.step { --win-pad: 14px 16px 14px 72px; min-height: 96px; }
.step-no {
  position: absolute;
  left: 12px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 24px;
  color: var(--c-shadow);
  background: var(--c-gold);
  box-shadow: 0 0 0 3px var(--c-shadow), 4px 4px 0 3px var(--c-shadow);
}
.step h4 { font-size: 20px; margin-bottom: 4px; }
.step p { color: var(--c-muted); }

/* ---------- 料金・メニュー ---------- */
.price-grid { display: grid; gap: 16px; }

.price-table, .info-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td,
.info-table th, .info-table td {
  padding: 10px 4px;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px dotted var(--c-line);
  font-weight: 400;
}
.price-table td { text-align: right; font-size: 20px; color: var(--c-gold); white-space: nowrap; }
.price-table td small { display: block; font-size: 14px; color: var(--c-muted); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }

.notes { margin-top: 12px; }
.notes li { position: relative; padding-left: 1.3em; font-size: 15px; color: var(--c-muted); }
.notes li::before { content: "・"; position: absolute; left: 0; color: var(--c-gold); }

.menu-list li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 2px dotted var(--c-line);
}
.menu-list li:last-child { border-bottom: 0; }
.menu-list img { width: 40px; height: 40px; }
.item-name { font-size: 17px; line-height: 1.5; }
.item-desc { font-size: 14px; line-height: 1.6; color: var(--c-muted); }
.item-price { font-size: 18px; color: var(--c-gold); white-space: nowrap; }

/* ---------- ホビーショップ ---------- */
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.shop-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas: "icon title" "icon text" "icon badge";
  gap: 2px 14px;
  align-items: start;
  padding: 12px 14px;
}
.shop-card img { grid-area: icon; width: 48px; height: 48px; }
.shop-card h3 { grid-area: title; font-size: 18px; }
.shop-card p { grid-area: text; }
.shop-card p { font-size: 14px; color: var(--c-muted); line-height: 1.7; }
.shop-card .badge {
  grid-area: badge;
  justify-self: start;
  margin-top: 4px;
  padding: 0 8px;
  font-size: 13px;
  color: var(--c-shadow);
  background: #9be36c;
}
.featured { margin-top: 20px; }
.equip-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name price" "desc price";
  gap: 0 12px;
  padding: 10px 0 10px 1.4em;
  position: relative;
  border-bottom: 2px dotted var(--c-line);
}
.equip-list li:last-child { border-bottom: 0; }
.equip-list li::before { position: absolute; left: 2px; top: 16px; }
.equip-name { grid-area: name; font-size: 17px; }
.equip-price { grid-area: price; align-self: center; font-size: 18px; color: var(--c-gold); white-space: nowrap; }
.equip-desc { grid-area: desc; font-size: 14px; color: var(--c-muted); }

/* ---------- クエストボード（羊皮紙） ---------- */
.quest-grid {
  display: grid;
  gap: 20px;
  padding: 20px 14px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 24px),
    #5a3a22;
  border: 4px solid #2a180c;
  box-shadow: inset 0 0 0 4px #7a4f2e;
}
.quest {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 16px;
  color: var(--c-ink);
  border: var(--frame-w) solid transparent;
  border-image: var(--frame-parch) 4 / var(--frame-w) / 0 stretch;
  background: linear-gradient(180deg, var(--c-parch), var(--c-parch-dark));
  background-clip: padding-box;
}
.quest:nth-child(odd) { transform: rotate(-.6deg); }
.quest:nth-child(even) { transform: rotate(.6deg); }
/* 画びょう */
.quest::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #c8333f;
  box-shadow: 0 0 0 3px #3b2412, inset -3px -3px 0 #8a1f2a;
}
.quest-rank { display: flex; align-items: center; gap: 4px; font-size: 14px; color: #6b4423; }
.quest-rank span { margin-right: 6px; }
.quest-rank img { width: 24px; height: 24px; }
.quest h3 { font-size: 21px; color: #3b2412; }
.quest-info > div {
  display: grid;
  grid-template-columns: 4.2em 1fr;
  gap: 8px;
  padding: 4px 0;
  border-top: 2px dashed rgba(59, 36, 18, .3);
}
.quest-info dt { color: #8a4a1a; }
.quest-info dd { font-size: 15px; }
.btn-quest {
  --btn-bg: #7a2e33;
  --btn-bg-hover: #933a40;
  --btn-fg: #fff3a6;
  --btn-edge: #3b2412;
  align-self: stretch;
  margin-top: auto;
}

/* ---------- パーティ ---------- */
.party-grid { display: grid; gap: 16px; }
.member {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: start;
}
.member-img {
  width: 80px;
  height: 120px;
  padding: 8px;
  background: radial-gradient(circle at 50% 70%, #2e3fa0 0 38%, transparent 39%), var(--c-shadow);
  border: 2px solid var(--c-line);
  object-fit: contain;
}
.member h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 24px; }
.member-job { font-size: 14px; color: var(--c-muted); }
.member-lv {
  display: inline-block;
  margin: 4px 0;
  padding: 0 8px;
  font-size: 14px;
  color: var(--c-shadow);
  background: var(--c-gold);
}
.member-fav { font-size: 15px; color: var(--c-text); }
.member-msg { margin-top: 6px; font-size: 15px; color: var(--c-muted); }

/* ---------- アクセス ---------- */
.access-grid { display: grid; gap: 16px; }
.map {
  position: relative;
  margin-bottom: 14px;
  border: 3px solid var(--c-shadow);
  line-height: 0;
}
.map img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.map-label {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  padding: 2px 8px;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--c-text);
  background: rgba(5, 7, 26, .9);
  border: 2px solid var(--c-text);
}
.map-label-sm { font-size: 12px; padding: 1px 6px; }
.map-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.4;
}
.map-marker span {
  padding: 2px 10px;
  font-size: 15px;
  color: var(--c-shadow);
  background: var(--c-gold);
  border: 2px solid var(--c-shadow);
  white-space: nowrap;
}
.map-marker::after {
  content: "▼";
  font-size: 16px;
  line-height: 1;
  color: var(--c-gold);
  text-shadow: 2px 2px 0 var(--c-shadow);
  animation: bob 1s steps(2, jump-none) infinite;
}

.route { counter-reset: route; margin-bottom: 4px; }
.route li {
  position: relative;
  padding: 6px 0 6px 2.2em;
  counter-increment: route;
}
.route li::before {
  content: counter(route);
  position: absolute;
  left: 0;
  top: 8px;
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  font-size: 14px;
  line-height: 1;
  color: var(--c-shadow);
  background: var(--c-gold);
}
.access-grid .btn { margin-top: 14px; }

.info-table th { width: 6.2em; color: var(--c-gold); white-space: nowrap; }
.info-table td { font-size: 15px; }
.info-table td small { color: var(--c-muted); }

.crowd-title { margin: 20px 0 8px; font-size: 18px; color: var(--c-gold); }
.crowd li {
  display: grid;
  grid-template-columns: 7.4em 1fr;
  grid-template-areas: "when gauge" "when text";
  gap: 2px 10px;
  align-items: center;
  padding: 6px 0;
}
.crowd-when { grid-area: when; font-size: 15px; }
.crowd-text { grid-area: text; font-size: 14px; color: var(--c-muted); }
.gauge {
  grid-area: gauge;
  position: relative;
  display: block;
  height: 14px;
  background: var(--c-shadow);
  border: 2px solid var(--c-text);
}
.gauge span {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: calc((100% - 4px) * var(--v) / 5);
  background: repeating-linear-gradient(90deg, var(--c-green) 0 10px, #3fb85c 10px 12px);
}
.gauge-high span { background: repeating-linear-gradient(90deg, var(--c-red) 0 10px, #d94a4a 10px 12px); }

/* ---------- よくある質問 ---------- */
.faq-list { display: grid; gap: 12px; }
.faq { --win-pad: 0; }
.faq summary {
  position: relative;
  padding: 14px 16px 14px 44px;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--c-gold);
}
.faq summary::after {
  position: absolute;
  right: 16px;
  top: 20px;
  opacity: .7;
}
.faq[open] summary::after { transform: rotate(90deg); opacity: 1; }
.faq p {
  position: relative;
  margin: 0 16px 16px;
  padding: 12px 12px 12px 36px;
  color: var(--c-text);
  background: rgba(5, 7, 26, .45);
}
.faq p::before { content: "A"; position: absolute; left: 12px; top: 12px; color: var(--c-green); }

/* ---------- 予約 ---------- */
.section-reserve { padding-top: 24px; }
.reserve-win { --win-pad: 24px 18px; text-align: center; }
.reserve-lead { margin-bottom: 20px; }
.reserve-actions { display: grid; gap: 12px; }
.reserve-actions .btn { width: 100%; }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 24px;
  padding: 36px 0 28px;
  background: #070920;
  border-top: 4px solid var(--c-shadow);
  box-shadow: inset 0 2px 0 var(--c-line);
  font-size: 15px;
}
.footer-grid { display: grid; gap: 24px; }
.footer-logo { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 24px; letter-spacing: .1em; }
.footer-logo img { width: 32px; height: 32px; }
.footer-logo small { font-size: 13px; color: var(--c-muted); letter-spacing: 0; }
address { margin-top: 10px; font-style: normal; color: var(--c-muted); line-height: 1.9; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.footer-nav a { display: inline-block; padding: 6px 0; color: var(--c-text); text-decoration: none; }
.footer-nav a::before { display: inline-block; margin-right: 8px; vertical-align: -1px; }
.footer-nav a:hover { color: var(--c-gold); }
.demo-note {
  margin-top: 28px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-muted);
  border: 2px dashed var(--c-line);
}
.demo-note p + p { margin-top: 6px; }
.footer-meta { margin-top: 16px; font-size: 13px; color: var(--c-muted); }
.footer-meta .sep { margin: 0 8px; }

/* ---------- スマホ下部のバー ---------- */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--c-shadow);
  border-top: 3px solid var(--c-text);
}
.bottom-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--bar-h);
  font-size: 14px;
  line-height: 1.3;
  color: var(--c-text);
  text-decoration: none;
  background: linear-gradient(180deg, var(--c-win-top), var(--c-win-bottom));
}
.bottom-bar a + a { border-left: 3px solid var(--c-shadow); }
.bottom-bar a:nth-child(2) { background: var(--c-gold); color: #1a1206; }
.bottom-bar img { width: 24px; height: 24px; }

/* ---------- デモ用メッセージ ---------- */
.msg-dialog {
  width: min(100% - 32px, 520px);
  --win-pad: 18px 20px;
  color: var(--c-text);
}
.msg-dialog::backdrop { background: rgba(5, 7, 26, .7); }
.msg-text { margin-bottom: 16px; font-size: 17px; }
.msg-dialog form { text-align: right; }

/* ---------- アニメーション ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(3px); } }
@keyframes twinkle {
  0%, 60%, 100% { opacity: 0; }
  70%, 90% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .twinkles { display: none; }
  .dialog-text .tw { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* =========================================================
   640px〜（大きめのスマホ・タブレット）
   ========================================================= */
@media (min-width: 640px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "scene scene" "dialog dialog" "status command";
  }
  .hero-img { aspect-ratio: 16 / 9; max-height: 58vh; object-position: 50% 60%; }
  .skill-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { --win-pad: 72px 16px 16px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding: 32px 24px 28px; }
  .party-grid { grid-template-columns: repeat(3, 1fr); }
  .member { grid-template-columns: 1fr; text-align: center; }
  .member-img { margin: 0 auto; width: 96px; height: 144px; }
  .member h3 { justify-content: center; flex-direction: column; align-items: center; }
  .reserve-actions { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .news-list li > :last-child { flex-basis: auto; flex: 1; }
}

/* =========================================================
   900px〜（タブレット横・小さめのパソコン）
   ========================================================= */
@media (min-width: 900px) {
  :root { --frame-w: 12px; --win-pad: 18px 22px; }
  body { font-size: 17px; }
  .site-header { position: sticky; top: 0; }
  html { scroll-padding-top: calc(var(--header-h) + 16px); }

  .dialog-text { font-size: 18px; }
  .section { padding: 56px 0; }
  .sec-rpg { font-size: 36px; }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-card {
    grid-template-columns: 1fr;
    grid-template-areas: "icon" "title" "text" "badge";
    gap: 6px;
  }
  .equip-list li { grid-template-columns: 13em 1fr auto; grid-template-areas: "name desc price"; align-items: center; }
  .equip-list li::before { top: 13px; }
  .price-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .access-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .faq-list { grid-template-columns: 1fr 1fr; align-items: start; }
  .reserve-win { --win-pad: 36px 40px; }
  .reserve-actions { grid-template-columns: repeat(4, 1fr); }
  .reserve-actions .btn { font-size: 16px; padding: 10px 12px; }
}

/* =========================================================
   1180px〜（パソコン）
   ========================================================= */
@media (min-width: 1180px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .bottom-bar { display: none; }
  .menu-btn { display: none; }
  .gnav {
    display: flex;
    position: static;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
  }
  .gnav-list { display: flex; gap: 2px; }
  .gnav-list a { padding: 8px 8px 8px 24px; font-size: 16px; }
  .gnav-list a::before { left: 6px; }
  .gnav-cta { width: auto; margin: 0 0 4px; min-height: 44px; }

  .hero { padding: 24px 0 8px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
    grid-template-areas: "scene status" "dialog command";
    gap: 18px;
  }
  .hero-scene { display: flex; flex-direction: column; }
  .hero-title {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    padding: 18px 0 0 22px;
    background: none;
    border: 0;
  }
  .hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 7, 26, .6) 0%, rgba(5, 7, 26, .3) 24%, rgba(5, 7, 26, 0) 40%);
    pointer-events: none;
  }
  .hero-kicker { display: none; }
  .hero-title h1 { display: block; }
  .h1-main { display: block; font-size: 52px; white-space: nowrap; }
  .h1-kana { display: block; margin-top: 2px; font-size: 16px; text-shadow: 2px 2px 0 var(--c-shadow); }
  .hero-catch { margin-top: 8px; font-size: 18px; line-height: 1.6; text-shadow: 2px 2px 0 var(--c-shadow); }
  .hero-catch .br-wide { display: block; }
  .hero-visual { flex: 1; min-height: 0; }
  .hero-img { height: 100%; min-height: 380px; max-height: none; aspect-ratio: auto; object-position: 50% 60%; }
  .hero-today { display: none; }

  .shop-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shop-card h3 { font-size: 17px; }
}

/* ---------- 404ページ ---------- */
.page-notfound { padding-bottom: 0; }
.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px 16px;
}
.notfound-win { width: min(100%, 560px); --win-pad: 24px; }
.notfound-win h1 { margin: 4px 0 12px; font-size: 24px; color: var(--c-gold); }
.notfound-win p { margin-bottom: 20px; }
