/* 試作（11/18 マーケ）：公式サイトらしい作り。公開はオーナーの OK のあと。
   色はいまのサイトと同じ（白い石・夜の紺・水色・若葉・細い金・妖精の羽のピンク）。グラデーションは使わない（べた塗りだけ）。
   見た目の芯：ゲームの窓と同じ「角を削った石の板」と「細い金の線」。絵はすべて今の client で撮った物（顔の直しのあと） */
:root {
  --night: #23285a;
  --night-deep: #171b44;
  --stone: #f4f8f6;
  --paper: #ffffff;
  --sky: #d6eff7;
  --leaf: #dff1e3;
  --mint: #bfe3d0;
  --gold: #c4a15a;
  --gold-ink: #8a6a2a;
  --wing: #ef9cc2;
  --ink: #23285a;
  --ink-soft: #4b5080;
  --cut: 16px;
  --navh: 68px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navh) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--stone); color: var(--ink); font-family: "Zen Maru Gothic", "Yu Gothic", sans-serif; font-weight: 500; font-size: 17px; line-height: 1.9; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--wing); outline-offset: 3px; }
.mincho { font-family: "Shippori Mincho B1", "Yu Mincho", serif; font-weight: 800; letter-spacing: .06em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.px { image-rendering: pixelated; }
.nw { display: inline-block; }

/* 石の板：削った角＋内側の細い金の線 */
.slab { position: relative; background: var(--paper);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.slab::after { content: ""; position: absolute; inset: 6px; pointer-events: none; border: 1px solid var(--gold);
  clip-path: polygon(calc(var(--cut) - 4px) 0, calc(100% - var(--cut) + 4px) 0, 100% calc(var(--cut) - 4px), 100% calc(100% - var(--cut) + 4px), calc(100% - var(--cut) + 4px) 100%, calc(var(--cut) - 4px) 100%, 0 calc(100% - var(--cut) + 4px), 0 calc(var(--cut) - 4px)); }
/* 絵の窓：石の板の中に、絵をはめる */
.window { padding: 8px; }
.window > img, .window > video { width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(calc(var(--cut) - 6px) 0, calc(100% - var(--cut) + 6px) 0, 100% calc(var(--cut) - 6px), 100% calc(100% - var(--cut) + 6px), calc(100% - var(--cut) + 6px) 100%, calc(var(--cut) - 6px) 100%, 0 calc(100% - var(--cut) + 6px), 0 calc(var(--cut) - 6px)); }
.gem { width: 10px; height: 10px; background: var(--sky); border: 1px solid var(--gold); transform: rotate(45deg); display: inline-block; flex: none; }

.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; padding: 13px 24px; background: var(--paper); color: var(--night); border: 0; cursor: pointer;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.btn:hover { background: var(--sky); }
.btn.pink { background: var(--wing); }
.btn.pink:hover { background: #f6b9d5; }
.btn.navy { background: var(--night); color: #fff; }
.btn.navy:hover { background: var(--night-deep); }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.more:hover { color: var(--gold-ink); }

/* ---- 上のメニュー（石の帯・下に細い金の線） ---- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--gold); height: var(--navh); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 100%; }
.nav .logo img { width: 132px; }
.nav ul { list-style: none; display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: 15px; }
.nav ul a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current] { border-bottom-color: var(--gold); }
.nav .btn { padding: 9px 18px; font-size: 14px; }
.nav .menu { display: none; }

/* ---- 見出し（左に小さな精霊石・右に「一覧へ」） ---- */
.sec { padding: 96px 0 0; }
.head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 34px; }
.head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.35; display: flex; align-items: center; gap: 14px; }
.head p { color: var(--ink-soft); }
.head .more { margin-left: auto; white-space: nowrap; }

/* お知らせ（左）と開発日記（右） */
.news-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.news { list-style: none; }
.news li { display: grid; grid-template-columns: 6.4em 5em 1fr; gap: 12px; padding: 15px 2px; border-top: 1px solid var(--mint); line-height: 1.6; }
.news li:last-child { border-bottom: 1px solid var(--mint); }
.news time { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: 15px; }
.news .kind { font-size: 12px; font-weight: 700; text-align: center; align-self: start; padding: 1px 0; border: 1px solid var(--gold); }
.news a { text-decoration: none; } .news a:hover { text-decoration: underline; text-underline-offset: 4px; }
.diary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { text-decoration: none; display: block; }
.card .window { aspect-ratio: 16 / 10; }
.card h3 { font-size: 18px; line-height: 1.55; margin-top: 12px; }
.card p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* PV */
.pv { background: var(--night); color: #fff; padding: 84px 0; margin-top: 96px; }
.pv .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.3fr); gap: 48px; align-items: center; }
.pv .window { aspect-ratio: 16 / 9; position: relative; cursor: pointer; }
.pv .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; background: var(--paper); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); display: grid; place-items: center; }
.pv .play::before { content: ""; border-left: 26px solid var(--night); border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 8px; }
.pv h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.45; }
.pv p { color: #d8dcf3; margin-top: 14px; }
.pv .more { color: #fff; margin-top: 22px; }

/* 世界：3 つの場所（大きさをそろえない。首都がいちばん大きい） */
.world { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.place-card { position: relative; text-decoration: none; display: block; }
.place-card .window { height: 100%; min-height: 240px; }
.place-card:first-child { grid-row: span 2; }
.place-card:first-child .window { min-height: 520px; }
.place-card .label { position: absolute; left: 26px; bottom: 24px; background: var(--paper); padding: 10px 20px 12px; max-width: calc(100% - 52px); }
.place-card .label b { display: block; font-size: 24px; line-height: 1.35; }
.place-card .label span { font-size: 14px; color: var(--ink-soft); }

/* 遊び方：絵と文を交互に（4 つ） */
.play-list { display: grid; gap: 26px; }
.play-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 18px 0; }
.play-item:nth-child(even) .window { order: 2; }
.play-item .window { aspect-ratio: 16 / 9; }
.play-item h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; }
.play-item p { margin-top: 12px; color: var(--ink-soft); }

/* 5 つの道：名前を押すと、説明が変わる */
.paths { background: var(--sky); padding: 90px 0; margin-top: 96px; }
.paths .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.paths .window { aspect-ratio: 16 / 9; }
.paths .window img { object-position: 50% 18%; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.tabs button { font: inherit; font-weight: 700; font-size: 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--gold); padding: 6px 18px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.path-body h3 { font-size: 28px; line-height: 1.4; }
.path-body p { margin-top: 10px; color: var(--ink-soft); }
.path-body ul { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.path-body li { font-size: 14px; background: var(--paper); padding: 2px 12px; }

/* 精霊図鑑と約束（2 枚を並べる） */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.two .slab { padding: 30px 32px 34px; display: grid; gap: 18px; align-content: start; }
.two .window { aspect-ratio: 16 / 9; padding: 0; }
.two h3 { font-size: 26px; line-height: 1.45; }
.two p { color: var(--ink-soft); }
.two .sold { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 15px; }
.two .sold div { padding: 12px 14px; }
.two .sold .yes { background: var(--leaf); }
.two .sold .no { background: #f4ecef; }
.two .sold b { display: block; font-size: 14px; }

/* よくある質問 */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--mint); padding: 6px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--mint); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 12px 34px 12px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 4px; top: 12px; color: var(--gold-ink); }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 0 16px; color: var(--ink-soft); }

/* 体験版とフォロー */
.join { margin-top: 96px; background: var(--night); color: #fff; padding: 76px 0; }
.join .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.join h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.45; }
.join p { color: #d8dcf3; margin-top: 10px; }
.join .acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* 足もと：サイトの地図・作った所（TOYORI） */
footer { background: var(--leaf); padding: 60px 0 40px; font-size: 14px; color: var(--ink-soft); }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
footer .logo { width: 150px; }
footer h3 { font-size: 14px; color: var(--ink); margin-bottom: 8px; }
footer ul { list-style: none; display: grid; gap: 4px; }
footer a { text-decoration: none; } footer a:hover { text-decoration: underline; }
footer .maker { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--mint); }
footer .maker img { width: 120px; }
footer .note { margin-left: auto; }

/* ---- スマホ ---- */
@media (max-width: 900px) {
  :root { --navh: 58px; --cut: 12px; }
  body { font-size: 16px; }
  .nav .logo img { width: 110px; }
  .nav ul { display: none; position: fixed; inset: var(--navh) 0 auto 0; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid var(--gold); }
  .nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--mint); }
  .nav.open ul { display: flex; }
  .nav .menu { display: inline-flex; margin-left: auto; font: inherit; font-weight: 700; background: var(--stone); border: 1px solid var(--gold); padding: 6px 14px; cursor: pointer; }
  .nav .btn.pink { display: none; }


  .sec { padding-top: 68px; }
  .head { flex-wrap: wrap; margin-bottom: 24px; }
  .news-grid, .pv .wrap, .paths .wrap, .two, .join .wrap { grid-template-columns: 1fr; gap: 28px; }
  .news li { grid-template-columns: 6em 1fr; }
  .news li .kind { display: none; }
  .diary { grid-template-columns: 1fr; }
  .world { grid-template-columns: 1fr; }
  .place-card:first-child { grid-row: auto; }
  .place-card:first-child .window, .place-card .window { min-height: 0; aspect-ratio: 4 / 3; }
  .play-item { grid-template-columns: 1fr; gap: 16px; }
  .play-item:nth-child(even) .window { order: 0; }
  .two .sold { grid-template-columns: 1fr; }
  .join .acts { justify-content: flex-start; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .maker { flex-wrap: wrap; }
  footer .note { margin-left: 0; }
}

/* ======== ここから 11/18 の作りこみ ======== */

/* ---- ヒーロー：最新の PV を画面いっぱいに（音なしでくり返す）。字は、べた塗りの石の板の上 ---- */
.hero { position: relative; background: var(--night-deep); height: clamp(560px, calc(100svh - var(--navh)), 920px); overflow: hidden; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .poster { z-index: 0; }
.hero video { z-index: 1; opacity: 0; transition: opacity .6s; }
.hero video.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero video { transition: none; } }
.hero .plate { position: absolute; z-index: 2; right: max(32px, calc((100% - 1400px) / 2)); top: 32px; width: min(440px, calc(100% - 64px)); padding: 30px 34px 32px; display: grid; gap: 14px; }
.hero .plate img.logo { width: 230px; }
.hero h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.35; }
.hero .sub { font-size: 15px; font-weight: 700; color: var(--ink-soft); line-height: 1.7; }
.hero .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.hero .acts .btn { justify-content: center; padding: 12px 10px; font-size: 15px; }
.btn .tri { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.hero .chip { position: absolute; z-index: 2; left: 24px; top: 20px; background: var(--paper); color: var(--ink-soft); font-size: 13px; padding: 3px 12px; }
.hero .stop { position: absolute; z-index: 2; left: 24px; bottom: 24px; font: inherit; font-size: 13px; font-weight: 700; background: var(--paper); color: var(--ink); border: 1px solid var(--gold); padding: 4px 12px; cursor: pointer; }

/* ---- 音ありで見る（大きく開く窓） ---- */
dialog.theater { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: min(1280px, 100vw - 32px); margin: auto; overflow: visible; }
dialog.theater::backdrop { background: rgba(14, 16, 40, .9); }
dialog.theater .window { aspect-ratio: 16 / 9; background: #000; }
dialog.theater video { background: #000; }
dialog.theater .close { position: absolute; right: 0; top: -48px; font: inherit; font-weight: 700; background: var(--paper); color: var(--night); border: 0; padding: 6px 16px; cursor: pointer; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }

/* ---- 5 つの道：5 人の並びに、道の名札（押すと説明が変わる） ---- */
.paths .lineup { position: relative; }
.paths .lineup .window { aspect-ratio: 16 / 8; }
.paths .lineup .window img { object-position: 50% 16%; }
.paths .tag { position: absolute; top: 11%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.paths .tag::before { content: ""; width: 1px; height: 18px; background: var(--gold); }
.paths .tag span { background: var(--paper); border: 1px solid var(--gold); padding: 1px 12px; font-weight: 700; font-size: 14px; }
.paths .tag[aria-selected="true"] span, .paths .tag:hover span { background: var(--night); color: #fff; border-color: var(--night); }

/* ---- 下のページの頭（見出しと、いまいる場所） ---- */
.page-head { background: var(--sky); padding: 56px 0 46px; }
.page-head .crumb { font-size: 14px; color: var(--ink-soft); }
.page-head .crumb a { text-decoration: none; } .page-head .crumb a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.35; margin-top: 8px; }
.page-head p { color: var(--ink-soft); margin-top: 10px; max-width: 40em; }
.page { padding: 64px 0 0; }
.page .wrap, .page-head .wrap { max-width: 900px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.toc a { text-decoration: none; font-weight: 700; font-size: 15px; background: var(--paper); border: 1px solid var(--gold); padding: 4px 14px; }
.toc a:hover { background: var(--night); color: #fff; border-color: var(--night); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 26px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.45; margin: 56px 0 16px; display: flex; align-items: center; gap: 12px; }
.prose h2:first-child { margin-top: 0; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.ledger .slab { padding: 26px 28px 28px; }
.ledger h3 { font-size: 21px; margin-bottom: 10px; }
.ledger ul { list-style: none; display: grid; gap: 8px; }
.ledger li { display: flex; gap: 10px; align-items: baseline; }
.ledger .yes li::before { content: "○"; color: #3f8f62; font-weight: 700; }
.ledger .no li::before { content: "×"; color: #b4475f; font-weight: 700; }
.quote { margin-top: 18px; padding: 28px 32px 30px; }
.quote p { font-size: 18px; }
.quote .sign { margin-top: 14px; font-size: 15px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.next { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .hero { height: auto; background: var(--night); overflow: visible; padding-bottom: 30px; }
  .hero .poster, .hero video { position: relative; inset: auto; aspect-ratio: 16 / 9; height: auto; }
  .hero video { position: absolute; top: 0; left: 0; }
  .hero .plate { position: relative; right: auto; bottom: auto; margin: -28px auto 0; width: calc(100% - 32px); padding: 24px 22px 26px; text-align: center; justify-items: center; }
  .hero .plate img.logo { width: 200px; }
  .hero .acts { grid-template-columns: 1fr; width: 100%; }
  .hero .chip { left: 12px; top: 10px; font-size: 11px; }
  .hero .stop { display: none; }
  .hero .after { height: 40px; }
  dialog.theater .close { top: -44px; }
  .paths .lineup .window { aspect-ratio: 4 / 3; }
  .paths .tag span { font-size: 11px; padding: 0 5px; }
  .paths .tag::before { height: 10px; }
  .ledger { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 34px; }
}

/* ---- 遊び方ガイド（目次と、1 ページずつ） ---- */
.guide { padding: 48px 0 0; }
.g-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.g-side { position: sticky; top: calc(var(--navh) + 20px); font-size: 14px; }
.g-side b { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.g-side ol { list-style: none; border-left: 1px solid var(--gold); }
.g-side a { display: block; text-decoration: none; padding: 5px 0 5px 14px; line-height: 1.5; }
.g-side a:hover { color: var(--gold-ink); text-decoration: underline; }
.g-main { min-width: 0; }
.g-summary { padding: 22px 28px 24px; margin-bottom: 36px; }
.g-summary b { display: block; font-size: 14px; color: var(--gold-ink); margin-bottom: 4px; }
.g-summary ul { padding-left: 1.2em; }
.g-lead { margin-bottom: 40px; font-size: 18px; }
.g-lead p + p { margin-top: .6em; }
.g-sec { margin-bottom: 52px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 0 34px; align-items: start; }
.g-sec h2 { grid-column: 1 / -1; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--mint); margin-bottom: 16px; }
.g-sec .g-body { grid-column: 1; grid-row: 2; }
.g-sec:not(:has(.g-fig)) .g-body { grid-column: 1 / -1; }
.g-fig { grid-column: 2; grid-row: 2; margin: 4px 0 0; position: sticky; top: calc(var(--navh) + 20px); }
.g-fig img { aspect-ratio: 16 / 10; }
.g-fig figcaption { font-size: 13px; color: var(--ink-soft); padding: 8px 6px 2px; line-height: 1.5; }
.g-body p + p { margin-top: .8em; }
.g-body h3 { font-size: 20px; margin: 26px 0 8px; }
.g-body ul, .g-body ol { padding-left: 1.3em; margin: 10px 0; }
.g-body li + li { margin-top: 4px; }
.g-body a { color: var(--night); text-decoration-color: var(--gold); text-underline-offset: 4px; }
.tbl { overflow-x: auto; margin: 14px 0; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--paper); }
.tbl th, .tbl td { border: 1px solid var(--mint); padding: 8px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.tbl th { background: var(--sky); font-weight: 700; white-space: nowrap; }
.g-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.page .wrap.g-cards { max-width: 1160px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.g-card { display: block; text-decoration: none; padding: 26px 28px 28px; }
.g-card:hover { background: var(--sky); }
.g-card .g-num { font-family: "Shippori Mincho B1", serif; font-weight: 800; color: var(--gold-ink); font-size: 15px; }
.g-card h2 { font-size: 22px; line-height: 1.45; margin: 4px 0 10px; }
.g-card .g-what ul { padding-left: 1.2em; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .g-grid { grid-template-columns: 1fr; gap: 0; }
  .g-side { display: none; }
  .g-sec { grid-template-columns: 1fr; }
  .g-sec .g-body, .g-fig { grid-column: 1; grid-row: auto; position: static; }
  .g-fig { margin-bottom: 16px; }
}

/* ======== 11/18 ほかの MMO の公式サイトを参考に（形だけ）：大きなメニューと、入口の段 ======== */
/* 上のメニュー：5 つのまとまり。さわると、下に大きな一覧が開く */
.nav .tops { font-size: 16px; gap: 30px; }
.nav .mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--gold); box-shadow: 0 10px 0 rgba(35, 40, 90, .06); }
.nav.mega-open .mega, .nav:focus-within .mega { display: block; }
.nav .mcols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 26px 0 30px; }
.nav .mcol b { display: flex; align-items: center; gap: 10px; font-size: 15px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--mint); }
.nav .mcol b::before { content: ""; width: 8px; height: 8px; background: var(--sky); border: 1px solid var(--gold); transform: rotate(45deg); }
.nav .mega ul { position: static; display: block; list-style: none; margin: 0; padding: 0; border: 0; gap: 0; font-size: 14px; font-weight: 700; }
.nav .mega li a { display: block; padding: 4px 0; border: 0; text-decoration: none; color: var(--ink-soft); }
.nav .mega li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* 入口の段：左＝はじめての方へ／まん中＝お知らせ／右＝お知らせの札 */
.portal { padding: 46px 0 0; }
.pgrid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 260px; gap: 26px; align-items: start; }
.pleft, .pright { display: grid; gap: 16px; }
.first { display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-decoration: none; background: var(--sky); }
.first:hover { background: var(--leaf); }
.first img { width: 54px; height: auto; flex: none; }
.first b { display: block; font-size: 19px; line-height: 1.3; white-space: nowrap; }
.first i { font-style: normal; font-size: 13px; color: var(--ink-soft); line-height: 1.5; display: block; margin-top: 2px; }
.box { padding: 18px 18px 20px; }
.box h2 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.box h2::before { content: ""; width: 8px; height: 8px; background: var(--sky); border: 1px solid var(--gold); transform: rotate(45deg); }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tool { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 10px 2px 8px; background: var(--stone); text-decoration: none; font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center; }
.tool:hover { background: var(--sky); }
.tool img { height: 34px; width: auto; }
.important { display: flex; align-items: center; gap: 14px; padding: 14px 20px; margin-bottom: 30px; }
.important p { font-size: 15px; line-height: 1.6; }
.kind { font-size: 12px; font-weight: 700; text-align: center; padding: 2px 8px; white-space: nowrap; color: var(--ink); align-self: start; }
.k-news { background: var(--sky); }
.k-update { background: var(--leaf); }
.k-diary { background: #e6e0f4; }
.k-video { background: #f9dfea; }
.k-imp { background: var(--wing); }
.ntabs { display: flex; gap: 4px; padding-top: 34px; border-bottom: 2px solid var(--night); }
.ntabs button { position: relative; font: inherit; font-weight: 700; font-size: 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--mint); border-bottom: 0; padding: 8px 16px 6px; cursor: pointer; }
.ntabs button img { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 6px); height: 34px; width: auto; transition: transform .15s; }
.ntabs button:hover img, .ntabs button[aria-selected="true"] img { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .ntabs button img { transition: none; } }
.ntabs button[aria-selected="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.nlist { list-style: none; background: var(--paper); }
.nlist li { display: grid; grid-template-columns: 6.6em 7.4em minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 13px 16px; border-bottom: 1px solid var(--mint); line-height: 1.6; font-size: 15px; }
.nlist li[hidden] { display: none; }
.nlist time { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: 14px; }
.nlist a { text-decoration: none; } .nlist a:hover { text-decoration: underline; text-underline-offset: 4px; }
.new { font-size: 11px; font-weight: 700; color: #fff; background: #c4506e; padding: 0 6px; }
.nmore { text-align: center; margin-top: 18px; }
.bnr { display: block; position: relative; text-decoration: none; padding: 6px; }
.bnr img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.bnr span { position: absolute; left: 14px; bottom: 14px; background: var(--paper); padding: 3px 12px 4px; font-size: 16px; }
.bnr:hover span { background: var(--night); color: #fff; }
.sns ul { list-style: none; display: grid; gap: 2px; font-size: 14px; font-weight: 700; }
.sns li a, .sns li span { display: block; padding: 6px 4px; border-bottom: 1px solid var(--mint); text-decoration: none; }
.sns li span { color: var(--ink-soft); }
.sns li a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .pgrid { grid-template-columns: 230px minmax(0, 1fr); }
  .pright { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr) ; }
  .pright .sns { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav .tops { display: none; }
  .nav .mega { position: fixed; top: var(--navh); bottom: 0; overflow-y: auto; box-shadow: none; }
  .nav.mega-open .mega, .nav:focus-within .mega { display: none; }
  .nav.open .mega { display: block; }
  .nav .mcols { grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 18px 0 40px; }
  .pgrid { grid-template-columns: 1fr; }
  .pcenter { order: -1; }
  .pright { grid-template-columns: 1fr; }
  .nlist li { grid-template-columns: 6em minmax(0, 1fr); gap: 2px 10px; padding: 12px 6px; }
  .nlist .kind { grid-column: 1; grid-row: 2; justify-self: start; }
  .nlist a { grid-column: 2; grid-row: 1 / span 2; }
  .nlist .new { display: none; }
  .ntabs { overflow-x: auto; }
  .ntabs button { padding: 8px 10px 6px; font-size: 13px; flex: none; }
  .important { margin-bottom: 26px; }
}
.nav .mcols { align-items: start; grid-template-columns: 1fr 1fr 2fr 1fr 1fr; }
.nav .mcol:nth-child(3) ul { columns: 2; column-gap: 24px; }
.nav .mcol:nth-child(3) li { break-inside: avoid; }
@media (max-width: 900px) { .nav .mcols { grid-template-columns: 1fr 1fr; } .nav .mcol:nth-child(3) { grid-column: 1 / -1; } }
/* 公開しない所（【調整中】【オーナーに聞く】）。試作の間だけ、目立つ札で見せる。公開のときは、行ごと外す */
mark.pending { background: #fbe3a6; color: #6a4a00; font-weight: 700; font-size: .85em; padding: 1px 6px; margin-right: 4px; }
/* 【調整中】：数字がまだ決まっていない所。公開のページでも、小さな札で見せる（11/18 マーケの決め） */
.tbd { display: inline-block; font-size: .78em; font-weight: 700; color: var(--ink-soft); background: var(--stone); border: 1px dashed var(--gold); padding: 0 7px; margin: 0 3px; line-height: 1.6; vertical-align: .08em; }

/* ======== 11/18 ほかのページ（ゲーム紹介・世界・遊び方・5 つの道・図鑑・お知らせ・コミュニティ・サポート・メディア） ======== */
.page.wide .wrap { max-width: 1160px; }
.sec-h { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.45; margin: 64px 0 22px; display: flex; align-items: center; gap: 12px; }
.big { font-size: clamp(19px, 2vw, 23px); line-height: 1.8; font-weight: 700; }
.center { text-align: center; }
.note { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.intro2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.intro2 .window { aspect-ratio: 16 / 9; }
.intro2 p + p { margin-top: 1em; }
.acts-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px !important; }
.promise3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise3 .slab { padding: 26px 26px 28px; display: grid; gap: 10px; align-content: start; }
.promise3 b { font-size: 21px; line-height: 1.45; }
.promise3 p { color: var(--ink-soft); }
.cardgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lc { text-decoration: none; display: block; }
.lc .window { aspect-ratio: 16 / 10; }
.lc h3 { font-size: 21px; margin-top: 12px; }
.lc p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.lc:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.fmore { margin-top: 12px !important; }
.page .play-list { gap: 14px; }
.path { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 34px; padding: 28px 32px 30px; margin-top: 22px; align-items: start; }
.path .pic img { width: 100%; height: auto; }
.path h2 { font-size: 28px; line-height: 1.4; }
.path .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.path .meta span { font-size: 13px; font-weight: 700; background: var(--sky); padding: 1px 10px; }
.path .txt > p { color: var(--ink-soft); }
.spgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sp { display: grid; justify-items: center; gap: 6px; padding: 22px 10px 18px; text-align: center; }
.sp img { height: 72px; width: auto; }
.sp b { font-size: 17px; }
.sp span { font-size: 12px; color: var(--ink-soft); }
.snsgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sc { display: block; text-decoration: none; padding: 26px 26px 28px; }
.sc b { display: block; font-size: 26px; }
.sc span { font-size: 14px; color: var(--gold-ink); font-weight: 700; }
.sc p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
a.sc:hover { background: var(--sky); }
.sc.off { opacity: .75; }
.supgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.su { display: block; text-decoration: none; padding: 22px 26px 24px; }
.su b { font-size: 21px; }
.su p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
a.su:hover { background: var(--sky); }
.rulebox { padding: 28px 32px 30px; }
.rulebox p + p { margin-top: 8px; color: var(--ink-soft); }
.ledger .ask li::before { content: "◇"; color: var(--gold-ink); font-weight: 700; }
.copy { white-space: pre-wrap; font-family: inherit; font-size: 16px; line-height: 1.9; padding: 22px 26px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.shot { text-decoration: none; display: block; }
.shot .window { aspect-ratio: 16 / 9; }
.shot span { display: block; font-size: 14px; margin-top: 8px; color: var(--ink-soft); }
.logobox { display: flex; align-items: center; gap: 26px; padding: 22px 28px; margin-top: 20px; }
.logobox img { width: 220px; }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.howto .slab { padding: 20px 22px 22px; }
.howto b { display: block; font-size: 17px; line-height: 1.5; }
.howto p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 900px) {
  .intro2, .promise3, .supgrid, .shots, .howto { grid-template-columns: 1fr; gap: 16px; }
  .cardgrid, .snsgrid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .spgrid { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: 1fr; padding: 22px 20px 24px; gap: 16px; }
  .path .pic { width: 150px; margin: 0 auto; }
  .logobox { flex-direction: column; }
  .sec-h { margin-top: 48px; }
}
.page-head.wide .wrap { max-width: 1160px; }

/* ---- 開発日記 ---- */
.diary-body h2 { margin-top: 48px; }
.diary-body h2:first-child { margin-top: 0; }
.diary-body p { margin-top: 12px; }
.d-fig { margin: 22px 0 8px; }
.d-fig img { width: 100%; height: auto; }
.d-fig figcaption { font-size: 13px; color: var(--ink-soft); padding: 8px 6px 2px; }
.diary-body .g-pager { margin-top: 56px; }
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dcard { display: block; text-decoration: none; }
.dcard .window { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.dcard time { font-size: 13px; color: var(--ink-soft); }
.dcard h2 { font-size: 20px; line-height: 1.5; margin-top: 2px; }
.dcard p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.dcard:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .dgrid { grid-template-columns: 1fr; } }
