@charset "utf-8";
/* ダイスキングダム 攻略ガイド — 「昼の地図卓」（2026-11-19 に暗い配色から作り直し）
   生成りの紙に金箔と紺。見出しは重厚な明朝、本文は素直なゴシック、表は台帳。
   ヒーローだけは暗い絵をそのまま使い、紙との明暗差で見せる。

   色の決め方: 本文に使う金は紙の上で読めるところまで沈めた（--gold-deep）。
   明るい金（--gold-bright）は、濃い地の上の塗りにだけ使う。 */

:root {
  --paper: #f6f2e8;        /* 地 */
  --paper2: #fffdf7;       /* 浮かせた面 */
  --paper3: #efe9db;       /* 沈めた面（表の縞など） */
  --ink: #171b2c;          /* 本文 */
  --ink2: #3d4356;
  --dim: #6a7085;          /* 補足 */
  --dim2: #8a8fa0;
  --line: #e0d6bf;         /* 金寄りの罫 */
  --line2: #ebe4d5;
  --royal: #26306b;        /* 見出し・表の頭 */
  --royal2: #3b49a0;
  --gold: #c08a1e;         /* 見出しの飾り・大きな数字 */
  --gold-deep: #8a6111;    /* 小さな字に使える金 */
  --gold-bright: #f2c14b;  /* 濃い地の上の塗り */
  --gold-soft: #fbf0d4;    /* 金の淡い塗り */
  --red: #b3342f;
  --green: #2e7d46;
  --orange: #c2691a;
  --steel: #5a6a78;
  --cyan: #0e7f94;
  --purple: #6b3fa0;
  --shadow: 0 2px 10px rgba(60, 48, 20, .06);
  --shadow2: 0 10px 30px rgba(60, 48, 20, .13);
  --radius: 14px;
  --wrap: 1120px;
  --prose: 44rem;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.85 var(--sans);
  letter-spacing: .01em;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
/* 地の紋様: 街道の格子と、卓の上の明かり */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 680px at 50% -10%, rgba(242, 193, 75, .20), transparent 68%),
    radial-gradient(900px 700px at 100% 100%, rgba(59, 73, 160, .08), transparent 70%),
    linear-gradient(rgba(23, 27, 44, .045) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(23, 27, 44, .045) 1px, transparent 1px) 0 0 / 72px 100%,
    var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal2); text-decoration: none; }
a:hover { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(242, 193, 75, .45); }

/* ---------------- 頭と目次 ---------------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 10px clamp(14px, 4vw, 28px);
  background: rgba(255, 253, 247, .88);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 800 19px/1 var(--serif); letter-spacing: .04em; white-space: nowrap; }
.logo:hover { text-decoration: none; color: var(--royal); }
.logo img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px var(--line), 0 3px 10px rgba(60, 48, 20, .18); }
.logo small { display: block; font: 500 10px/1.4 var(--sans); color: var(--gold-deep); letter-spacing: .22em; margin-top: 3px; }
.top-play {
  margin-left: auto; flex: none;
  padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(180deg, #f6cb5c, #dca825);
  color: #2b1f04; font: 700 13px/1 var(--sans); letter-spacing: .04em;
  box-shadow: 0 2px 0 #b98c1c, 0 6px 16px rgba(220, 168, 37, .35);
}
.top-play:hover { text-decoration: none; filter: brightness(1.05); color: #2b1f04; }

.nav {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 0 clamp(10px, 4vw, 24px);
  background: rgba(246, 242, 232, .94);
  border-bottom: 1px solid var(--line2);
  position: sticky; top: 51px; z-index: 39;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; padding: 11px 13px; color: var(--ink2);
  font: 500 13.5px/1 var(--sans); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--royal); text-decoration: none; background: rgba(38, 48, 107, .05); }
.nav a[aria-current] { color: var(--royal); font-weight: 700; border-bottom-color: var(--gold); background: var(--gold-soft); }

/* ---------------- ヒーロー ---------------- */
/* ここだけは暗い絵をそのまま使う。紙との明暗差がこのサイトの見せ場 */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #0b0d16; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 22, .30) 0%, rgba(10, 12, 22, .62) 52%, rgba(246, 242, 232, .97) 99%, var(--paper) 100%),
    linear-gradient(90deg, rgba(10, 12, 22, .72), transparent 62%);
}
.hero-in {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(54px, 10vw, 118px) clamp(16px, 4vw, 28px) clamp(26px, 4vw, 42px);
}
.hero .eyebrow { color: var(--gold-bright); font: 700 12px/1 var(--sans); letter-spacing: .3em; margin: 0 0 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.hero h1 {
  margin: 0; color: #fffdf7; font: 800 clamp(30px, 6.4vw, 62px)/1.18 var(--serif);
  letter-spacing: .01em; text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .85);
}
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero .sub { max-width: 40rem; margin: 16px 0 0; color: #f3efe4; font-size: clamp(14px, 1.6vw, 17px); text-shadow: 0 2px 16px rgba(0, 0, 0, .95); }
.rule { height: 2px; width: 0; margin: 26px 0 0; background: linear-gradient(90deg, var(--gold-bright), rgba(242, 193, 75, 0)); animation: draw 1.1s .15s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes draw { to { width: min(420px, 70%); } }
@media (prefers-reduced-motion: reduce) { .rule { animation: none; width: min(420px, 70%); } }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  background: linear-gradient(180deg, #f6cb5c, #dca825);
  color: #2b1f04; font: 700 15px/1 var(--sans); letter-spacing: .02em;
  box-shadow: 0 2px 0 #b98c1c, 0 8px 22px rgba(220, 168, 37, .4);
  border: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); transform: translateY(-1px); color: #2b1f04; }
.btn.ghost {
  background: rgba(255, 253, 247, .92); color: var(--royal);
  border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.btn.ghost:hover { background: #fff; color: var(--royal); }
.wrap .btn.ghost { border-color: var(--line); box-shadow: var(--shadow); }

/* 数字の帯（ヒーローの上では白で浮かせる） */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 1px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 30px 0 0; box-shadow: var(--shadow2);
}
.stats div { background: rgba(255, 253, 247, .96); padding: 15px 8px; text-align: center; min-width: 0; box-shadow: 0 0 0 1px var(--line2); }
/* 金額は10文字を超えることがある。枠からはみ出して隣と重ならないように、
   字の大きさを枠の幅に合わせ、どうしても入らないときは折り返す */
.stats b { display: block; font: 800 clamp(17px, 2.1vw, 28px)/1.15 var(--serif); color: var(--royal); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats span { display: block; margin-top: 5px; color: var(--dim); font-size: 11.5px; letter-spacing: .1em; }

/* ---------------- 本文 ---------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(26px, 5vw, 48px) clamp(16px, 4vw, 28px) 70px; }
.crumb { margin: 0 0 14px; color: var(--dim2); font-size: 12.5px; }
.crumb a { color: var(--dim); }
h1 { font: 800 clamp(25px, 4.4vw, 40px)/1.32 var(--serif); margin: 0 0 14px; color: var(--ink); letter-spacing: .01em; text-wrap: balance; }
h2 {
  font: 800 clamp(19px, 2.6vw, 25px)/1.45 var(--serif); margin: 54px 0 16px; color: var(--royal);
  padding-left: 17px; position: relative; text-wrap: balance;
}
h2::before { content: "\025C6"; position: absolute; left: 0; top: .18em; font-size: .52em; color: var(--gold); }
h3 { font: 700 clamp(16px, 2vw, 18.5px)/1.6 var(--sans); margin: 30px 0 10px; color: var(--royal); }
p, li { max-width: var(--prose); }
.wide p, .wide li, table p { max-width: none; }
.lead { font-size: clamp(15px, 1.8vw, 18px); color: var(--ink2); max-width: 48rem; }
.muted { color: var(--dim); }
.small { font-size: 13px; }
strong, b { color: var(--ink); font-weight: 700; }
code { background: var(--paper3); padding: 1px 6px; border-radius: 5px; font-size: .88em; }
hr { border: none; border-top: 1px solid var(--line2); margin: 44px 0; }
ul, ol { padding-left: 1.35em; }
li { margin: 5px 0; }
li::marker { color: var(--gold); }

/* 覚え書きの箱 */
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, #fdf7e7, #fffdf7);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 15px 19px; margin: 20px 0;
  box-shadow: var(--shadow);
  max-width: 52rem;   /* 中の文は44remで折り返すので、箱だけ広いと右に余白が残る */
}
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--red); background: linear-gradient(180deg, #fdf0ef, #fffdf7); }
.note b.t { display: block; font: 700 14px/1.6 var(--sans); color: var(--gold-deep); letter-spacing: .06em; }
.note.warn b.t { color: var(--red); }

/* 札（カード）の並び */
.grid { display: grid; gap: 14px; margin: 22px 0; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.card {
  background: var(--paper2);
  border: 1px solid var(--line2); border-radius: var(--radius);
  padding: 17px 18px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--gold-bright), rgba(242, 193, 75, 0) 78%); }
a.card { color: inherit; }
a.card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: var(--shadow2); text-decoration: none; }
a.card:hover h3 { color: var(--royal2); }
.card h3 { margin: 0 0 7px; color: var(--royal); font-size: 16.5px; }
.card p { margin: 0; color: var(--ink2); font-size: 13.5px; line-height: 1.75; max-width: none; }
.card .ico { font-size: 26px; line-height: 1; display: block; margin-bottom: 9px; }
.card img.thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 9px; margin: -2px 0 12px; border: 1px solid var(--line2); }
.card .tag { position: absolute; top: 13px; right: 14px; font: 700 10.5px/1 var(--sans); letter-spacing: .1em; color: var(--gold-deep); background: var(--gold-soft); border: 1px solid var(--line); padding: 5px 8px; border-radius: 999px; }

/* 人物・一枚絵 */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 22px 0; }
.fig { text-align: center; margin: 0; }
/* 横長の一枚絵と縦長の人物絵が混ざるので、枠の高さをそろえて全体を見せる */
.fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 12px; border: 1px solid var(--line2); background: #fffdf7; box-shadow: var(--shadow); }
.fig figcaption { margin-top: 8px; color: var(--dim); font-size: 12.5px; line-height: 1.6; }
.fig b { display: block; color: var(--ink); font: 700 14px/1.5 var(--sans); }

.portrait { display: flex; gap: 18px; align-items: flex-start; }
.portrait > div { flex: 1 1 0; min-width: 0; max-width: 46rem; }   /* 表が狭く縮んで右に余白が残るのを防ぐ */
.portrait img { width: 118px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: #fffdf7; box-shadow: var(--shadow); }
@media (max-width: 520px) { .portrait { flex-direction: column; } .portrait img { width: 96px; } }

/* ---------------- 台帳（表） ---------------- */
.tablewrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper2); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--line2); white-space: nowrap; }
thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--royal); color: #fdf8ea;
  font: 700 12px/1.5 var(--sans); letter-spacing: .09em;
  border-bottom: none;
}
tbody tr:nth-child(even) { background: #faf6ec; }
tbody tr:hover { background: var(--gold-soft); }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.name { white-space: normal; min-width: 11em; }
td.g { color: var(--gold-deep); font-weight: 700; }
td.bad { color: var(--red); }
caption { caption-side: top; text-align: left; padding: 12px 13px 4px; color: var(--dim); font-size: 12.5px; }

/* 利回りの棒（1色の濃淡だけ。並びの意味は数値が持つ） */
.bar { display: inline-block; vertical-align: middle; width: 68px; height: 7px; border-radius: 4px; background: #e6dfd0; overflow: hidden; margin-right: 8px; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #e0b24a, var(--gold-deep)); }

/* 種別の印 */
.k { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; }
.k::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--dim)); flex: none; }
.k-farm { --c: var(--green); } .k-shop { --c: var(--orange); } .k-works { --c: var(--steel); }
.k-tour { --c: var(--cyan); } .k-rare { --c: var(--purple); }

/* 印（💎🌱🍀）の凡例 */
.marks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; color: var(--ink2); font-size: 13px; }
.marks b { color: var(--gold-deep); }

/* 絞り込み */
.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 18px 0 6px; }
.filters input[type="search"], .filters select {
  background: var(--paper2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 12px; font: 400 14px/1 var(--sans); min-width: 10em;
  box-shadow: var(--shadow);
}
.filters input[type="search"]:focus, .filters select:focus { outline: 2px solid var(--royal2); outline-offset: 1px; border-color: transparent; }
.filters .hits { color: var(--dim); font-size: 13px; margin-left: auto; font-variant-numeric: tabular-nums; }
.chip {
  background: var(--paper2); color: var(--ink2); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font: 500 13px/1 var(--sans); cursor: pointer;
  box-shadow: var(--shadow);
}
.chip:hover { color: var(--royal); border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold-soft); color: var(--gold-deep); border-color: var(--gold); font-weight: 700; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: #fff; }
th.sortable::after { content: "\02195"; opacity: .55; margin-left: 5px; font-size: 10px; }
th.sortable[data-dir="asc"]::after { content: "\02191"; opacity: 1; }
th.sortable[data-dir="desc"]::after { content: "\02193"; opacity: 1; }

/* 遊ぶ導線 */
.play {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 46px 0 0; padding: 20px 22px;
  background: linear-gradient(135deg, #fdf3dc, var(--paper2));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow2);
}
.play img { width: 62px; height: 62px; border-radius: 13px; flex: none; box-shadow: 0 4px 14px rgba(60, 48, 20, .22); }
.play .t { flex: 1 1 15em; }
.play b { display: block; font: 800 18px/1.4 var(--serif); color: var(--royal); }
.play span { display: block; color: var(--ink2); font-size: 13px; margin-top: 3px; }
.play .btns { display: flex; gap: 9px; flex-wrap: wrap; }

.updated { margin: 40px 0 0; color: var(--dim2); font-size: 12px; }

/* 続きの導線 */
.pager { display: flex; gap: 12px; justify-content: space-between; margin: 36px 0 0; font-size: 13.5px; }
.pager a { flex: 0 1 auto; }

footer {
  border-top: 1px solid var(--line); background: #efe9db;
  padding: 34px clamp(16px, 4vw, 28px) 56px; color: var(--ink2); font-size: 13px;
}
footer nav { max-width: var(--wrap); margin: 0 auto 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer nav a { color: var(--royal2); font-size: 13px; }
footer p { max-width: var(--wrap); margin: 6px auto; }

@media (max-width: 640px) {
  .nav { top: 49px; }
  th, td { padding: 9px 10px; }
  .hero-img img { object-position: 60% 30%; }
  .logo { font-size: 16.5px; gap: 8px; }
  .logo small { display: none; }   /* 折り返して2行になるので、狭い画面では出さない */
  .top-play { padding: 9px 13px; }
  .play { padding: 16px; }
  .portrait img { width: 88px; }
}
