/* 日本見聞録 — 「巡の旅の記録帳」
   世界観：旅好きの女の子・小日向 巡（めぐり）が持ち歩く、旅の手帖とトランク。
   - 紙：生成りの方眼ノート（ドット）／見出しはマスキングテープ
   - 写真：押しピンで留めたポラロイド／ジャンルはトランクに貼るステッカー
   - 行った県：スタンプ帳の判子／行ってみたいところ：荷札
   - 色：巡の緑（髪・セーラー襟）、トランクの革、麦わら帽子、空と海の青、判子の朱
   書体：見出し Kaisei Decol／本文 Zen Maru Gothic／巡の手書き Klee One */
:root {
  color-scheme: light;
  --paper: #fbf6ea;
  --paper-2: #f5eedc;
  --card: #fffdf8;
  --kraft: #e9dcc0;
  --ink: #3b3128;
  --ink-2: #5b4e42;
  --ink-soft: #85776a;
  --line: #e7dcc5;
  --line-2: #d9cbb0;
  --green: #4d8f4f;
  --green-deep: #2f6a36;
  --green-soft: #e4efd8;
  --green-pale: #f0f6e8;
  --leather: #96592e;
  --leather-deep: #6b3d1f;
  --straw: #e9cc84;
  --straw-pale: #fbf0d3;
  --sky: #3d8ec9;
  --sky-pale: #e3f0f8;
  --shu: #cf3b2c;          /* 判子の朱 */
  --onsen: #2f9a8c;
  --orange: #e5822a;
  --violet: #6a58c4;
  --logo-red: #d22a1e;
  --gold: #f5c33b;
  --shadow: 0 1px 2px rgba(80, 55, 25, .1), 0 6px 18px -8px rgba(80, 55, 25, .28);
  --shadow-up: 0 2px 4px rgba(80, 55, 25, .12), 0 14px 28px -10px rgba(80, 55, 25, .38);
  --radius: 10px;
  --gothic: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --logo: "Kaisei Decol", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --hand: "Klee One", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  /* マスキングテープの柄 */
  --tape-green: repeating-linear-gradient(-45deg, rgba(255,255,255,.28) 0 6px, transparent 6px 12px), #a9cf8f;
  --tape-straw: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 3px, transparent 3px 9px), #f0d590;
  --tape-sky: radial-gradient(circle at 5px 5px, rgba(255,255,255,.55) 1.6px, transparent 2px) 0 0 / 10px 10px, #a9d0ea;
  --tape-pink: repeating-linear-gradient(-45deg, rgba(255,255,255,.3) 0 4px, transparent 4px 9px), #f2b9b0;
  /* 写真を留める押しピン（つやのある丸い頭） */
  --pin-red: radial-gradient(circle at 34% 30%, #fff 0 9%, #f28b7e 20%, #cf3b2c 56%, #8e2318 100%);
  --pin-green: radial-gradient(circle at 34% 30%, #fff 0 9%, #8fcf86 20%, #4d8f4f 56%, #2c5a2f 100%);
  --pin-gold: radial-gradient(circle at 34% 30%, #fff 0 9%, #f7df9a 20%, #d9a93f 56%, #8a6420 100%);
  --pin-blue: radial-gradient(circle at 34% 30%, #fff 0 9%, #9ccbec 20%, #3d8ec9 56%, #1f5a86 100%);
  /* トランクまわり */
  --floor: repeating-linear-gradient(90deg, rgba(80, 95, 85, .12) 0 1px, transparent 1px 180px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .1) 0 2px, transparent 2px 11px), #dde2da;
  /* 革：むら（mottle）＋シボ（leather、soft-light で重ねる）＋光＋地色。重ね方は --leather-blend */
  --leather-skin: url("/assets/tex/mottle.svg") 0 0 / 640px, url("/assets/tex/leather.svg") 0 0 / 180px, radial-gradient(ellipse at 28% 0%, rgba(255, 214, 160, .2), transparent 62%), linear-gradient(#93582f, #7a4322);
  --leather-dark: url("/assets/tex/mottle.svg") 120px 60px / 640px, url("/assets/tex/leather.svg") 0 0 / 180px, linear-gradient(#73401f, #5c3218);
  --leather-blend: normal, soft-light, normal, normal;
  /* 真鍮：磨いたところ・くすんだところ */
  --brass: linear-gradient(135deg, #fff1bd 0%, #e9c46e 16%, #b88a35 38%, #e3bd66 55%, #9c7128 78%, #d6ad5a 100%);
  --rivet: radial-gradient(circle at 40% 35%, #fff7d6 0 1px, #e9c46e 1.6px, #9c7128 3.4px, #5c4010 4px, transparent 4.6px);
  --lid-lining: radial-gradient(ellipse at 50% 0%, transparent 35%, rgba(5, 20, 10, .45)), url("/assets/tex/quilt.svg") 0 0 / 56px, #1c3b25;
  --frame: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); font: 500 15px/1.8 var(--gothic); background: var(--floor); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
code { font-size: .88em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 .35em; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.i { width: 18px; height: 18px; flex: none; }
.i-s { width: 14px; height: 14px; flex: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ======================================================================
   開いたトランク：床の上に置いたトランクを上から見たところ
   革の枠（.trunk）→ ふた（.trunk-lid：緑の内張り）→ ちょうつがい → 底（.trunk-base：生成りの内張り）→ 前面（フッター）
   ====================================================================== */
.trunk { position: relative; max-width: 1260px; margin: 22px auto 34px; padding: var(--frame); border-radius: 22px; background: var(--leather-skin); background-blend-mode: var(--leather-blend);
  box-shadow: inset 0 0 0 1px rgba(40, 18, 4, .7), inset 0 0 0 2.5px rgba(255, 210, 160, .22), inset 0 0 16px rgba(30, 12, 2, .5), 0 2px 3px rgba(40, 30, 20, .3), 0 30px 60px -20px rgba(40, 30, 20, .6); }
/* 枠をぐるりと縫ったステッチ */
.tk-stitch { position: absolute; inset: 5px; z-index: 1; border: 1.5px dashed rgba(246, 218, 170, .55); border-radius: 18px; pointer-events: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .45)); }
/* 真鍮の角あて（上の2つ。下の2つはフッター） */
.trunk::before, .trunk::after, .trunk-front::before, .trunk-front::after { content: ""; position: absolute; z-index: 3; width: 60px; height: 60px; pointer-events: none;
  background: var(--rivet) -21px -21px / 60px 60px no-repeat, var(--rivet) 13px -21px / 60px 60px no-repeat, var(--rivet) -21px 13px / 60px 60px no-repeat,
    linear-gradient(135deg, transparent 46%, rgba(80, 55, 10, .35) 47% 49%, transparent 50%), var(--brass);
  clip-path: polygon(0 0, 100% 0, 100% 28%, 28% 28%, 28% 100%, 0 100%); border-top-left-radius: 22px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.trunk::before { left: 0; top: 0; }
.trunk::after { right: 0; top: 0; transform: scaleX(-1); }

/* ふたの内張り */
.trunk-lid { position: relative; z-index: 5; border-radius: 12px 12px 6px 6px; background: var(--lid-lining); color: #f6efdc;
  box-shadow: inset 0 0 0 2px #4a2812, inset 0 0 0 3px #e3bd66, inset 0 0 0 4.5px #8a6420, inset 0 10px 18px -6px rgba(0, 0, 0, .45), inset 0 -16px 22px -10px rgba(0, 0, 0, .4); padding-bottom: 22px; }
/* ヘッダーの文字が柄に負けないよう、上の方だけ少し暗く */
.trunk-lid > .site-header { background: linear-gradient(rgba(10, 30, 16, .5), rgba(10, 30, 16, .15) 75%, transparent); border-radius: 12px 12px 0 0; }
/* ふたの内張りに縫いつけた織りネーム */
.lid-label { position: absolute; left: 50%; bottom: 6px; z-index: 2; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 3px 16px 2px; white-space: nowrap;
  font: 700 .72rem/1.3 var(--logo); letter-spacing: .2em; color: #8e2a1c; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .04) 0 1px, transparent 1px 3px), #f3ead2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .45), inset 0 0 0 2px #f3ead2, inset 0 0 0 3px rgba(142, 42, 28, .45); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%); }
.lid-label small { font: 700 .44rem/1.3 var(--gothic); letter-spacing: .32em; color: #5b4e42; }
/* 内張りのいちばん下は、ふたのポケットの縁（ステッチ） */
.trunk-lid::after { content: ""; position: absolute; left: 4.5px; right: 4.5px; bottom: 4.5px; height: 18px; border-top: 1.5px dashed rgba(255, 236, 190, .45); border-radius: 0 0 4px 4px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .3)), url("/assets/tex/leather.svg") 0 0 / 120px, #24482e; background-blend-mode: normal, soft-light, normal; box-shadow: 0 -2px 4px rgba(0, 0, 0, .3); }

/* ちょうつがい */
.trunk-hinge { position: relative; height: var(--frame); }
/* ちょうつがいの列のリベット */
.trunk-hinge::before { content: ""; position: absolute; left: 34px; right: 34px; top: 50%; height: 10px; margin-top: -5px; background: var(--rivet) 0 50% / 40px 10px repeat-x; opacity: .9; }
.trunk-hinge i { position: absolute; top: -9px; width: 74px; height: 32px; border-radius: 6px; z-index: 6; box-shadow: 0 2px 3px rgba(0, 0, 0, .45), inset 0 0 0 1.5px #7a5418, inset 0 1px 0 rgba(255, 245, 200, .6);
  background: radial-gradient(circle at 12px 7px, #fff5cc 0 .8px, #9c7128 1.3px 2.8px, #5c4010 3.2px, transparent 3.7px), radial-gradient(circle at calc(100% - 12px) 7px, #fff5cc 0 .8px, #9c7128 1.3px 2.8px, #5c4010 3.2px, transparent 3.7px),
    radial-gradient(circle at 12px 25px, #fff5cc 0 .8px, #9c7128 1.3px 2.8px, #5c4010 3.2px, transparent 3.7px), radial-gradient(circle at calc(100% - 12px) 25px, #fff5cc 0 .8px, #9c7128 1.3px 2.8px, #5c4010 3.2px, transparent 3.7px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 3px), var(--brass); }
.trunk-hinge i::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 7px; margin-top: -3.5px; border-radius: 4px; background: linear-gradient(#b8862f, #f2d27d, #b8862f); box-shadow: 0 0 0 1px #8a6420; }
.trunk-hinge i:first-child { left: 14%; } .trunk-hinge i:last-child { right: 14%; }

/* 底の内張り（昔のトランクの柄紙）。ふたの影が上に落ちる */
.trunk-base { position: relative; display: block; min-height: 40vh; padding: 1px 0 44px; border-radius: 6px 6px 12px 12px;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(120, 90, 40, .16)), url("/assets/tex/paper.svg") 0 0 / 132px, var(--paper);
  box-shadow: inset 0 0 0 2px #4a2812, inset 0 0 0 3px #e3bd66, inset 0 0 0 4.5px #8a6420, inset 0 26px 28px -14px rgba(50, 30, 10, .45), inset 0 -10px 18px -10px rgba(50, 30, 10, .28), inset 14px 0 18px -14px rgba(50, 30, 10, .2), inset -14px 0 18px -14px rgba(50, 30, 10, .2); }

/* 2回目以降は「中身を取り出す」だけ控えめに（初回はトランクの演出のあと） */
html.trunk-intro .trunk-base > * > *, html.trunk-intro .trunk-lid { animation: unpack .6s cubic-bezier(.2, .9, .3, 1.1) both; }
html.trunk-intro .trunk-lid { animation-name: lid-settle; animation-duration: .8s; animation-delay: 1.75s; transform-origin: 50% 100%; }
html.trunk-intro .trunk-base > * > * { animation-delay: 1.95s; }
html.trunk-intro .trunk-base > * > :nth-child(2) { animation-delay: 2.03s; }
html.trunk-intro .trunk-base > * > :nth-child(3) { animation-delay: 2.11s; }
html.trunk-intro .trunk-base > * > :nth-child(4) { animation-delay: 2.19s; }
html.trunk-intro .trunk-base > * > :nth-child(n+5) { animation-delay: 2.27s; }
html.trunk-skip .trunk-base > * > *, html.trunk-skip .trunk-lid { animation: none !important; }
@keyframes unpack { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lid-settle { from { transform: translateY(-14px); } 60% { transform: translateY(2px); } to { transform: none; } }

/* ---------- ヘッダー（ふたの内張りに貼ったラベル） ---------- */
.site-header { position: relative; z-index: 20; }
.hd { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.logo { margin: 0; font-size: inherit; line-height: 1; flex: none; }
.logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-face { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--straw), 0 2px 6px rgba(0, 0, 0, .3); transition: transform .2s; }
.logo a:hover .logo-face { transform: rotate(-8deg) scale(1.05); }
.logo-text { display: flex; flex-direction: column; gap: 5px; }
.logo-name {
  font: 700 1.7rem/1 var(--logo); letter-spacing: .06em; color: var(--logo-red); -webkit-text-stroke: .8px #fff;
  text-shadow: 1px 1px 0 var(--gold), -1px -1px 0 var(--gold), 1px -1px 0 var(--gold), -1px 1px 0 var(--gold), 2px 3px 2px rgba(120, 40, 0, .22);
}
.logo-sub { font: 600 .74rem/1 var(--hand); color: var(--straw); letter-spacing: .12em; white-space: nowrap; }
.gnav { flex: 1; min-width: 0; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 2px; }
.gnav a { position: relative; display: flex; align-items: center; gap: 5px; padding: 8px 11px; font-size: .86rem; font-weight: 700; text-decoration: none; color: #f3ead2; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
.gnav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
/* いまのページ：麦わら色の荷札 */
.gnav a[aria-current="page"] { background: var(--straw); color: var(--ink); box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.gnav .i { color: var(--straw); width: 16px; height: 16px; }
.gnav a[aria-current="page"] .i { color: var(--leather-deep); }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.search-box, .drawer { position: relative; }
.search-box > summary, .drawer > summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #f3ead2; }
.search-box > summary:hover, .drawer > summary:hover, .search-box[open] > summary, .drawer[open] > summary { background: rgba(255, 255, 255, .14); color: #fff; }
.search-box .i, .drawer .i { width: 22px; height: 22px; }
.search-box form { color: var(--ink); position: absolute; right: 0; top: 54px; display: flex; gap: 6px; width: min(380px, calc(100vw - 32px)); padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); }
.search-box input { flex: 1; min-width: 0; font: inherit; padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; }
.search-box input:focus { border-color: var(--green); outline: none; }
.search-box button { font: inherit; font-weight: 700; color: #fff; background: var(--green); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.drawer { display: none; }
.drawer-nav { color: var(--ink); position: absolute; left: 0; top: 54px; width: min(300px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); padding: 8px; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] { background: var(--green-pale); color: var(--green-deep); }
.drawer-nav .i { color: var(--green); }

/* ---------- 表紙の絵（ふたの内張りに、ゴムバンドで留めた絵はがき） ---------- */
.hero { position: relative; margin: 6px 28px 22px; padding: 8px; background: #fffdf8; border-radius: 3px; transform: rotate(-.35deg); box-shadow: 0 2px 3px rgba(0, 0, 0, .25), 0 14px 26px -12px rgba(0, 0, 0, .55); }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 2700 / 400; object-fit: cover; }
/* 左上・右下の角にかけたゴムバンド */
.hero::before, .hero::after { content: ""; position: absolute; z-index: 2; width: 120px; height: 16px; background: repeating-linear-gradient(90deg, #1f3b28 0 3px, #2d5236 3px 6px); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); pointer-events: none; }
.hero::before { left: -34px; top: 16px; transform: rotate(-45deg); }
.hero::after { right: -34px; bottom: 16px; transform: rotate(-45deg); }
.hero-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 巡ちゃんのふきだし ---------- */
.meguri { display: flex; align-items: flex-end; gap: 14px; margin: 0 0 28px; }
.mg-face { flex: none; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--green), var(--shadow); background: var(--green-soft); }
.mg-bubble { position: relative; flex: 1; min-width: 0; background: var(--card); border: 2px solid var(--ink-2); border-radius: 18px; padding: 14px 20px; font: 600 1rem/1.85 var(--hand); color: var(--ink); box-shadow: 3px 3px 0 var(--kraft); }
.mg-bubble::before { content: ""; position: absolute; left: -12px; bottom: 18px; width: 18px; height: 18px; background: var(--card); border-left: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: skewY(35deg) rotate(10deg); border-bottom-left-radius: 4px; }
.mg-bubble p { margin: 0; }
.mg-bubble p + p { margin-top: .5em; }
.mg-bubble a { color: var(--green-deep); font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--straw); text-underline-offset: 3px; }
.mg-bubble b { color: var(--green-deep); }
.mg-num { font: 700 1.5em/1 var(--gothic); color: var(--shu) !important; padding: 0 .1em; }
.mg-hello { font-size: 1.12em; }
.note-mg .mg-bubble { background: var(--straw-pale); border-style: dashed; font: 500 .9rem/1.8 var(--gothic); }
.note-mg .mg-bubble::before { background: var(--straw-pale); }
.empty-mg { margin: 8px 0 24px; }
.greet { position: relative; z-index: 2; margin: 40px auto 44px; max-width: 880px; }
.greet .mg-face { width: 96px; height: 96px; }
.greet .mg-bubble { padding: 18px 26px; font-size: 1.05rem; }

/* ---------- マスキングテープの見出し ---------- */
.tape-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 22px; }
.tape { position: relative; margin: 0; padding: 6px 22px 5px; font: 700 1.28rem/1.4 var(--logo); letter-spacing: .06em; color: var(--ink); background: var(--tape-green); transform: rotate(-1.2deg); clip-path: polygon(0 4%, 2% 0, 4% 6%, 7% 0, 100% 2%, 99% 30%, 100% 55%, 99% 100%, 3% 97%, 0 100%, 1% 60%); box-shadow: 0 1px 2px rgba(80,55,25,.12); }
.sec:nth-of-type(3n+2) .tape, .sb-region-sec:nth-child(3n+2) .tape, .wish-group:nth-child(3n+2) .tape { background: var(--tape-straw); transform: rotate(.8deg); }
.sec:nth-of-type(3n) .tape, .sb-region-sec:nth-child(3n) .tape, .wish-group:nth-child(3n) .tape { background: var(--tape-sky); transform: rotate(-.6deg); }
.tape-en { font: 700 .7rem/1 var(--gothic); letter-spacing: .28em; color: var(--ink-soft); }
.tape-head .more { margin-left: auto; font-size: .84rem; font-weight: 700; color: var(--green-deep); text-decoration: none; padding: 4px 12px; border: 1.5px solid currentColor; border-radius: 999px; background: var(--card); white-space: nowrap; transition: background .15s, color .15s; }
.tape-head .more:hover { background: var(--green); border-color: var(--green); color: #fff; }

.sec { margin-bottom: 56px; }
.home { padding-bottom: 8px; }

/* ---------- スタンプ帳（見開き） ---------- */
.stamp-spread { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--card); border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; }
/* 綴じ目 */
.stamp-spread::before { content: ""; position: absolute; top: 0; bottom: 0; left: 51.2%; width: 26px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(110, 80, 40, .1) 45%, rgba(110, 80, 40, .16) 50%, rgba(110, 80, 40, .1) 55%, transparent); pointer-events: none; }
.page { padding: 24px 28px; min-width: 0; }
.page-map { background: radial-gradient(circle, rgba(61, 142, 201, .14) 1px, transparent 1.3px) 0 0 / 16px 16px, #f3f8fb; display: flex; flex-direction: column; }
.page-list { background: repeating-linear-gradient(transparent 0 31px, rgba(150, 120, 80, .14) 31px 32px), var(--card); display: flex; flex-direction: column; gap: 14px; }

.jmap { display: block; width: 100%; height: auto; max-height: 640px; overflow: visible; }
.jmap .inset-t { font: 700 26px/1 var(--gothic); fill: #8fb0c7; letter-spacing: .1em; }
.jmap .inset { fill: rgba(255,255,255,.5); stroke: #9cbad0; stroke-width: 1.4; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.jmap .pf use { fill: #fffdf8; stroke: #a7a092; stroke-width: .9; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.jmap .pf.v1 use { fill: #b9d99f; stroke: #6e9a5c; }
.jmap .pf.v2 use { fill: #7cb86a; stroke: #4e8a45; }
.jmap .pf.v3 use { fill: #3f8a48; stroke: #2c6a35; }
.jmap .pf.w use { fill: var(--straw-pale); stroke: #c9a24c; }
.jmap .pf.focus use { fill: var(--shu); stroke: #8e2318; }
.jmap:not(.zoomable) .pf:hover use, .jmap:not(.zoomable) .pf:focus-visible use { fill: var(--straw); stroke: var(--leather); }
.jmap .pf:focus { outline: none; }
.jmap .pin path { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.jmap .pin circle { fill: #fff; }
.jmap .pin-focus path { fill: var(--shu); }
.jmap .pins { pointer-events: none; }

/* ---------- ズームする地図（全国 → 地方 → 都道府県。動きは /assets/stampmap.js） ---------- */
.jmap-wrap { position: relative; }
.jmap.zoomable { overflow: hidden; max-height: none; aspect-ratio: 1000 / 1140; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.zoomable .region { cursor: pointer; transition: opacity .35s cubic-bezier(.4, 0, .2, 1); }
.zoomable .inset-hit { fill: transparent; }
.mode-japan .zoomable .region:hover .pf use, .mode-japan .zoomable .region:focus-within .pf use { stroke: var(--leather); filter: brightness(1.06) saturate(1.15); }
.zoomable .region.active .pf:hover use, .zoomable .region.active .pf:focus-visible use { fill: var(--straw); stroke: var(--leather); }
.zoomable .region.pressing .pf use, .zoomable .pf.pressing use { filter: brightness(.9); transition: none; }
.mode-region .zoomable .region:not(.active), .mode-pref .zoomable .region:not(.active) { opacity: .28; }
.zoomable .sel-outline { fill: none; stroke: var(--shu); stroke-width: 2.6; pointer-events: none; }
.zoomable .pl { font-family: var(--logo); font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #fffdf8; stroke-linejoin: round; text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: opacity .3s ease-out; }
.zoomable .pl.got { fill: var(--shu); }
.zoomable .pl.wish { fill: #9a6f12; }
.zoomable .pl.on { fill: #fff; stroke: var(--shu); }
.zooming .zoomable .pl { opacity: 0; transition: none; }
.jm-bar { position: absolute; z-index: 2; left: 8px; top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; pointer-events: none; }
.jm-bar > * { pointer-events: auto; }
.jm-back { display: inline-flex; align-items: center; gap: 4px; padding: 5px 14px 5px 9px; font: 700 .82rem/1.2 var(--gothic); color: var(--green-deep); background: rgba(255, 253, 248, .94); border: 1.5px solid var(--line-2); border-radius: 999px; cursor: pointer; box-shadow: 0 1px 3px rgba(60, 40, 20, .15); }
.jm-back:hover { border-color: var(--green); }
.jm-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jm-here { font: 700 1.05rem/1.4 var(--logo); letter-spacing: .06em; padding: 0 8px; background: rgba(255, 253, 248, .88); border-radius: 4px; }
.jm-hint { margin: 6px 0 0; text-align: center; font: 600 .8rem/1.5 var(--hand); color: var(--ink-soft); }
.jmap-wrap:not(.ready) .jm-hint, .jmap-wrap:not(.mode-japan) .jm-hint { visibility: hidden; }
/* 県（地方）のカード：地図の左下に重ねる。スマホでは地図の下に */
.jm-card { position: absolute; z-index: 2; left: 10px; bottom: 34px; width: min(300px, calc(100% - 20px)); padding: 12px 16px 14px; background: #fffdf8; border: 1.5px solid var(--line-2); border-radius: 10px;
  box-shadow: var(--shadow-up); animation: jc-in .3s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes jc-in { from { opacity: 0; transform: translateY(8px); } }
.jc-name { margin: 0 0 6px; font: 700 1.15rem/1.3 var(--logo); letter-spacing: .05em; }
.jc-name small { margin-left: 8px; font: 700 .76rem var(--gothic); color: var(--ink-soft); }
.jc-row { display: flex; align-items: center; gap: 12px; }
.jc-stamp { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 3px double var(--shu); color: var(--shu); font: 700 .8rem/1.1 var(--logo); text-align: center; transform: rotate(-9deg);
  background: radial-gradient(circle, rgba(207, 59, 44, .08), rgba(207, 59, 44, .02) 70%); }
.jc-text { margin: 0; font: 600 .84rem/1.65 var(--hand); color: var(--ink-2); }
.jc-text b { color: var(--shu); font-family: var(--gothic); }
.jc-wish { margin: 6px 0 0; font: 600 .82rem/1.6 var(--hand); color: #9a6f12; }
.jc-link { display: inline-block; margin-top: 10px; padding: 5px 14px; font-size: .82rem; font-weight: 700; color: #fff; background: var(--green); border-radius: 999px; text-decoration: none; }
.jc-link:hover { background: var(--green-deep); }
@media (max-width: 700px) {
  .jm-card { position: static; width: auto; margin-top: 10px; }
  .jm-back { padding: 4px 12px 4px 8px; font-size: .78rem; }
  .jm-here { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .jm-card { animation: none; } }
.sb-toggle { display: none; }

.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 10px 0 0; padding: 0; font-size: .76rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #6e9a5c; background: #b9d99f; }
.lg.vv { background: #3f8a48; border-color: #2c6a35; }
.lg.w { background: var(--straw-pale); border-color: #c9a24c; position: relative; }
.lg.w::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); }

.sb-count { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 16px; }
.sb-num { margin: 0; display: flex; align-items: baseline; gap: 4px; line-height: 1; grid-row: span 2; }
.sb-num b { font: 700 3.6rem/1 var(--logo); color: var(--shu); letter-spacing: -.02em; }
.sb-num span { font-weight: 700; color: var(--ink-soft); }
.sb-cap { margin: 0; font: 600 .95rem/1.5 var(--hand); }
.sb-bar { height: 10px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.sb-bar i { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.25) 0 5px, transparent 5px 10px), var(--green); }
.sb-hint { margin: 0; font-size: .78rem; line-height: 1.7; color: var(--ink-soft); }

.stampbook { display: flex; flex-direction: column; gap: 8px; }
.sb-row { display: grid; grid-template-columns: 4.6em 1fr; gap: 10px; align-items: center; }
.sb-region { display: flex; flex-direction: column; text-decoration: none; font-weight: 700; font-size: .86rem; line-height: 1.25; }
.sb-region small { font-size: .7rem; color: var(--ink-soft); font-weight: 700; }
.sb-region:hover { color: var(--green-deep); }
.sb-row.full .sb-region small { color: var(--shu); }
.sb-cells { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
/* 都道府県のマス。押してある県は朱の判子 */
.st { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px dashed #cbbfa8; color: #b3a690; font: 700 .68rem/1.1 var(--gothic); text-decoration: none; text-align: center; letter-spacing: -.02em; transition: transform .15s; }
.st span { display: block; max-width: 34px; overflow-wrap: anywhere; }
.st.got { border: 2.5px double var(--shu); color: var(--shu); background: radial-gradient(circle, rgba(207, 59, 44, .08), rgba(207, 59, 44, .02) 70%); font-family: var(--logo); font-size: .72rem; }
.sb-cells li:nth-child(odd) .st.got { transform: rotate(-9deg); }
.sb-cells li:nth-child(even) .st.got { transform: rotate(7deg); }
.st.wish { border-color: #d4ad55; color: #9a6f12; background: var(--straw-pale); }
a.st:hover { transform: scale(1.12) rotate(0); border-style: solid; }
.st.long span { font-size: .84em; letter-spacing: -.06em; }
.recent-stamps { margin-top: auto; padding-top: 10px; border-top: 2px dashed var(--line); }
.rs-h { margin: 0 0 8px; font: 700 .8rem/1.4 var(--gothic); letter-spacing: .1em; color: var(--ink-soft); }
.recent-stamps ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.recent-stamps a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.recent-stamps .st { width: 46px; height: 46px; transform: rotate(-8deg); }
.recent-stamps li:nth-child(even) .st { transform: rotate(6deg); }
.rs-t { display: flex; flex-direction: column; line-height: 1.4; }
.rs-t b { font-size: .88rem; }
.rs-t small { font: 600 .76rem/1.4 var(--hand); color: var(--ink-soft); }
.recent-stamps a:hover b { color: var(--green-deep); text-decoration: underline; }
.st.big { width: 76px; height: 76px; font-size: 1.05rem; border-width: 4px; }
.st.big span { max-width: 60px; }
.stampbook.compact { padding: 4px 14px 2px; gap: 0; }
.stampbook.compact .sb-row { grid-template-columns: 1fr; border-bottom: 1px dashed var(--line); }
.stampbook.compact .sb-row:last-child { border-bottom: 0; }
.stampbook.compact .sb-region { flex-direction: row; justify-content: space-between; padding: 6px 2px; font-size: .86rem; }
.stampbook.compact .sb-region small { font-size: .8rem; }

/* ---------- 記事カード（押しピンで留めた写真） ---------- */
.cards { list-style: none; margin: 0; padding: 6px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.card { min-width: 0; }
/* 写真は上のまん中を押しピンで留めて、少し傾いてぶら下がっている。ホバーでピンを軸にふわっと揺れる */
.card a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 10px 10px 14px; background: var(--card); border-radius: 3px; box-shadow: var(--shadow); text-decoration: none;
  transform: rotate(var(--tilt, -.7deg)); transform-origin: 50% 6px; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; }
.card:nth-child(3n+2) a { --tilt: .6deg; }
.card:nth-child(3n) a { --tilt: -.3deg; }
.card a::before, .card a::after { content: ""; position: absolute; left: 50%; pointer-events: none; }
.card a::before { z-index: 3; top: -6px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--pin-red); box-shadow: 0 1px 1px rgba(60, 20, 10, .35); }
/* ピンの影（針が刺さっているあたり） */
.card a::after { z-index: 2; top: 6px; width: 14px; height: 7px; margin-left: -1px; border-radius: 50%; background: rgba(50, 30, 10, .3); filter: blur(1.5px); transform: rotate(28deg); }
.card:nth-child(4n+2) a::before { background: var(--pin-green); }
.card:nth-child(4n+3) a::before { background: var(--pin-gold); }
.card:nth-child(4n) a::before { background: var(--pin-blue); }
.card a:hover { transform: rotate(calc(var(--tilt, -.7deg) * -1.6)); box-shadow: var(--shadow-up); }
.card a:hover h3 { color: var(--green-deep); }
.thumb { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card a:hover .thumb img { transform: scale(1.04); }
/* ジャンル：トランクのステッカー */
.label { display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1; color: #fff; background: var(--green); padding: 6px 11px; border-radius: 999px; box-shadow: 0 0 0 2.5px #fff, 0 2px 4px rgba(0,0,0,.25); }
.thumb .label { position: absolute; right: 8px; bottom: 8px; transform: rotate(-4deg); }
.label.inline { box-shadow: none; padding: 6px 13px; }
.g-kanko { background: var(--green); }
.g-onsen { background: var(--onsen); }
.g-gourmet { background: var(--orange); }
.card-body { padding: 12px 4px 0; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 10px; font-size: .95rem; line-height: 1.6; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font: 600 .8rem/1.6 var(--hand); color: var(--ink-soft); }
.meta .pref { display: inline-flex; align-items: center; gap: 2px; color: var(--leather); }

/* ---------- 行ってみたいところ（荷札） ---------- */
.tags { list-style: none; margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; }
.tag { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 128px; padding: 14px 16px 14px 46px; background: var(--kraft); color: var(--ink);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 22px); filter: drop-shadow(0 3px 4px rgba(80,55,25,.18)); transform: rotate(var(--tilt, -.8deg)); }
.tag.t1 { background: var(--straw-pale); --tilt: .7deg; }
.tag.t2 { background: var(--green-soft); --tilt: -.4deg; }
.tag.t3 { background: var(--sky-pale); --tilt: 1deg; }
/* ひもを通す穴 */
.tag::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px rgba(150, 110, 60, .35); }
.tag::after { content: ""; position: absolute; left: 34px; top: 10px; bottom: 10px; border-left: 1.5px dashed rgba(120, 90, 50, .35); }
.tag-pref { font: 700 .72rem/1.4 var(--gothic); letter-spacing: .12em; color: var(--leather); }
.tag-place { font: 700 1.05rem/1.45 var(--logo); }
.tag-place a { text-decoration-color: var(--leather); text-underline-offset: 3px; }
.tag-memo { margin: 2px 0 0; font: 600 .86rem/1.65 var(--hand); color: var(--ink-2); }
.tag-link { margin-top: auto; padding-top: 6px; font-size: .78rem; font-weight: 700; color: var(--green-deep); text-decoration: none; }
.tag-link:hover { text-decoration: underline; }

/* ---------- ジャンル（ステッカー） ---------- */
.home-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 48px; align-items: start; }
.stickers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sticker { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 18px 10px 16px; background: #fff; border-radius: 22px; text-decoration: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line-2), var(--shadow); transform: rotate(-2deg); transition: transform .2s; }
.stickers li:nth-child(2) .sticker { transform: rotate(2deg); }
.stickers li:nth-child(3) .sticker { transform: rotate(1deg); }
.stickers li:nth-child(4) .sticker { transform: rotate(-1deg); }
.sticker:hover { transform: rotate(0) scale(1.04); }
.sticker img { width: 64px; height: 58px; object-fit: contain; }
.sticker-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--violet); color: #fff; }
.sticker-ic .i { width: 30px; height: 30px; }
.sticker b { font-size: 1rem; }
.sticker small { font-size: .76rem; color: var(--ink-soft); }
.sticker.s0 b { color: var(--green-deep); }
.sticker.s1 b { color: var(--onsen); }
.sticker.s2 b { color: #c0661a; }
.sticker.s3 b { color: var(--violet); }

/* ---------- よく読まれている旅（きっぷ） ---------- */
.tickets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticket { position: relative; display: grid; grid-template-columns: 56px 92px 1fr; align-items: center; gap: 14px; padding: 10px 16px 10px 0; background: var(--card); border-radius: 8px; text-decoration: none; box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(9px at 56px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(9px at 56px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(9px at 56px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(9px at 56px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; transition: transform .15s; }
.ticket::before { content: ""; position: absolute; left: 56px; top: 12px; bottom: 12px; border-left: 2px dashed var(--line-2); }
.ticket:hover { transform: translateX(4px); }
.ticket:hover .ticket-title { color: var(--green-deep); }
.ticket-no { display: flex; flex-direction: column; align-items: center; font: 700 .64rem/1 var(--gothic); letter-spacing: .1em; color: var(--ink-soft); }
.ticket-no b { font: 700 1.6rem/1.1 var(--logo); color: var(--leather); }
.tickets li:first-child .ticket-no b { color: var(--shu); }
.ticket img { width: 92px; height: 69px; object-fit: cover; border-radius: 4px; }
.ticket-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ticket-title { font-size: .9rem; font-weight: 700; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket-body small { font: 600 .76rem/1.4 var(--hand); color: var(--ink-soft); }

/* ---------- 2カラム（記事・一覧） ---------- */
.main-col, .side { min-width: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; margin-top: 34px; }

/* ---------- サイドバー（手帖に挟んだカード） ---------- */
.side { display: flex; flex-direction: column; gap: 28px; }
.box { position: relative; background: var(--card); border-radius: 4px; box-shadow: var(--shadow); padding-top: 4px; }
.box-title { margin: -16px 0 4px 14px; display: inline-block; padding: 4px 16px 3px; font: 700 .95rem/1.5 var(--logo); letter-spacing: .05em; background: var(--tape-green); transform: rotate(-1.5deg); }
.side .box:nth-child(2) .box-title { background: var(--tape-straw); transform: rotate(1deg); }
.side .box:nth-child(3) .box-title { background: var(--tape-sky); }
.side .box:nth-child(4) .box-title { background: var(--tape-pink); transform: rotate(.6deg); }
.prof { display: flex; gap: 14px; padding: 12px 16px 6px; align-items: flex-start; }
.prof img { width: 80px; height: 80px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--green); border: 2px solid #fff; }
.prof-name { margin: 0 0 4px; font-weight: 700; }
.prof-name small, .about h1 small { display: block; font-size: .7rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .08em; }
.prof-text { margin: 0; font: 600 .82rem/1.75 var(--hand); color: var(--ink-2); }
.prof-more { display: flex; justify-content: flex-end; align-items: center; gap: 2px; padding: 4px 16px 14px; font-size: .8rem; font-weight: 700; color: var(--green-deep); text-decoration: none; }
.prof-more:hover { text-decoration: underline; }
.side-stamps-n { margin: 6px 16px 0; font-weight: 700; font-size: .86rem; color: var(--ink-2); }
.side-stamps-n b { font: 700 1.9rem/1 var(--logo); color: var(--shu); margin-right: 2px; }
.ranking ol { list-style: none; margin: 0; padding: 4px 12px 10px; counter-reset: r; }
.ranking a { display: grid; grid-template-columns: auto 84px 1fr; gap: 10px; align-items: center; padding: 9px 2px; text-decoration: none; border-bottom: 1px dashed var(--line); }
.ranking li:last-child a { border-bottom: 0; }
.ranking img { width: 84px; height: 56px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(0,0,0,.18); }
.rank { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 .8rem/1 var(--logo); color: var(--leather); border: 1.5px solid currentColor; }
.rank.r1 { color: var(--shu); border-style: double; border-width: 3px; }
.rt { font-size: .84rem; font-weight: 700; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ranking a:hover .rt { color: var(--green-deep); }
.side-genres ul { list-style: none; margin: 0; padding: 6px 8px 10px; }
.side-genres a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.side-genres a:hover { background: var(--green-pale); color: var(--green-deep); }
.side-genres .i { color: var(--green); }

/* ---------- 記事ページ ---------- */
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .78rem; color: var(--ink-soft); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px 0 8px; border-right: 1.5px solid #b3a690; border-top: 1.5px solid #b3a690; transform: rotate(45deg); flex: none; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--green-deep); text-decoration: underline; }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28em; }
.post-cols { margin-top: 26px; }
.post { background: var(--card); border-radius: 4px; box-shadow: var(--shadow); padding: 28px clamp(18px, 4vw, 44px) 36px; }
.post-head h1 { margin: 12px 0 10px; font: 700 clamp(1.4rem, 1.05rem + 1.4vw, 1.95rem)/1.5 var(--logo); letter-spacing: .03em; }
.dates { margin: 0 0 22px; display: flex; gap: 16px; font: 600 .84rem/1.4 var(--hand); color: var(--ink-soft); }
.dates span { display: inline-flex; align-items: center; gap: 4px; }
/* アイキャッチは上の左右2か所を押しピンで留める */
.eyecatch { position: relative; margin: 6px 0 34px; padding: 10px 10px 12px; background: #fff; box-shadow: var(--shadow); transform: rotate(-.5deg); }
.eyecatch::before, .eyecatch::after { content: ""; position: absolute; z-index: 1; top: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--pin-red);
  box-shadow: 0 1px 1px rgba(60, 20, 10, .35), 6px 7px 4px -2px rgba(50, 30, 10, .28); }
.eyecatch::before { left: 18px; }
.eyecatch::after { right: 18px; background: var(--pin-green); }
.eyecatch img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.entry { font-size: 1rem; line-height: 2.05; overflow-wrap: anywhere; }
.entry h2 { position: relative; margin: 2.4em 0 .9em; padding: 12px 18px 12px 52px; font-size: 1.28rem; line-height: 1.55; background: var(--green-pale); border-radius: 8px; border: 1.5px solid #c9dfb6; }
/* 見出しの頭に旅のピン */
.entry h2::before { content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s-7-6.6-7-12a7 7 0 0 1 14 0c0 5.4-7 12-7 12z' fill='%234d8f4f'/%3E%3Ccircle cx='12' cy='10' r='2.6' fill='%23fff'/%3E%3C/svg%3E"); }
.entry h3 { margin: 2em 0 .7em; padding: 0 0 6px 2px; font-size: 1.12rem; border-bottom: 2px dashed var(--line-2); }
.entry h4 { margin: 1.6em 0 .5em; font-size: 1.02rem; color: var(--leather-deep); }
/* 本文の画像・動画は、画面（本文の幅）からはみ出さない。
   WordPress は width 属性や style="width:…px" を付けてくるので、包んでいる要素ごと抑える */
.entry img, .entry video, .entry iframe, .entry embed, .entry object, .entry figure, .entry div, .entry [style*="width"] { max-width: 100% !important; box-sizing: border-box; }
.entry img, .entry video { height: auto !important; }
.entry img { border-radius: 4px; vertical-align: middle; }
.entry figure { margin: 1.6em 0; }
.entry figure img, .entry .wp-caption img { display: block; margin-inline: auto; }
.entry .aligncenter { display: block; margin-inline: auto; }
.entry .alignleft { float: left; margin: .3em 1em .6em 0; }
.entry .alignright { float: right; margin: .3em 0 .6em 1em; }
.entry::after { content: ""; display: block; clear: both; }
.entry iframe[src*="youtube.com"], .entry iframe[src*="youtube-nocookie.com"], .entry iframe[src*="youtu.be"], .entry iframe[src*="player.vimeo.com"],
.entry .wp-block-embed.is-type-video iframe, .entry .wp-block-embed-youtube iframe {
  display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; border-radius: 6px;
}
.entry .wp-block-embed { margin: 1.5em 0; }
.entry .wp-block-embed__wrapper::before { content: none !important; }
.entry figcaption, .entry .wp-caption-text { margin: .5em 0 0; font: 600 .84rem/1.6 var(--hand); color: var(--ink-soft); text-align: center; }
.entry a { color: var(--green-deep); text-decoration-color: rgba(77, 143, 79, .45); text-underline-offset: 3px; }
.entry a:hover { text-decoration-color: currentColor; }
.entry table { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.entry th { background: var(--paper-2); }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li::marker { color: var(--green); }
.entry blockquote { margin: 1.6em 0; padding: 14px 20px; background: var(--paper); border-left: 4px solid var(--straw); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.entry .point { background: var(--straw-pale); border: 1.5px dashed #e0c27a; border-radius: 10px; padding: 14px 18px; }
.entry strong, .entry b { background: linear-gradient(transparent 62%, rgba(233, 204, 132, .6) 62%); }

/* この旅のスタンプ */
.post-stamps { margin: 40px 0 26px; padding: 18px 20px 20px; border: 2px dashed var(--line-2); border-radius: 12px; background: repeating-linear-gradient(transparent 0 27px, rgba(150, 120, 80, .1) 27px 28px), var(--paper); }
.post-stamps-h { margin: 0 0 12px; font: 700 .92rem/1.4 var(--logo); letter-spacing: .08em; color: var(--ink-2); }
.post-stamps-list { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.post-stamp { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.post-stamp .st { width: 60px; height: 60px; font-size: .9rem; border-width: 3.5px; transform: rotate(-8deg); }
.post-stamp:nth-child(even) .st { transform: rotate(6deg); }
.post-stamp small { font: 600 .82rem/1.5 var(--hand); color: var(--ink-2); }
.post-stamp:hover small { color: var(--green-deep); text-decoration: underline; }
.post-stamps.many .post-stamps-list { gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--green-deep); }
.chip:hover { border-color: var(--green); }
.post-end { margin: 8px 0 34px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 44px; }
.pn { display: block; padding: 12px 16px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; text-decoration: none; font-size: .88rem; font-weight: 700; line-height: 1.6; transition: border-color .15s; }
.pn small { display: block; color: var(--ink-soft); font: 600 .76rem/1.5 var(--hand); }
.pn.prev small::before { content: "← "; }
.pn.next small::after { content: " →"; }
.pn.next { text-align: right; }
.pn:hover { border-color: var(--green); color: var(--green-deep); }
.related .cards { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }

/* ---------- 一覧・ページの見出し ---------- */
.list-head, .page-head { margin-bottom: 26px; }
.list-head.has-art { display: flex; align-items: center; gap: 22px; }
.list-title { min-width: 0; }
.list-head h1, .page-head h1 { margin: 0 0 4px; font: 700 1.7rem/1.4 var(--logo); letter-spacing: .05em; }
.list-head .lead, .page-head .lead { margin: 0; font: 600 .98rem/1.7 var(--hand); color: var(--ink-2); }
.list-head .count { display: inline-block; margin: 8px 0 0; padding: 1px 12px; font-size: .78rem; font-weight: 700; color: var(--leather); border: 1.5px solid currentColor; border-radius: 999px; }
.sticker-art { flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line-2), var(--shadow); transform: rotate(-4deg); color: var(--violet); }
.sticker-art img { width: 66px; height: 60px; object-fit: contain; }
.sticker-art .i { width: 40px; height: 40px; }
.mini-map { flex: none; width: 128px; padding: 6px; background: #f3f8fb; border-radius: 10px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.mini-map .jmap .pf use { stroke-width: .6; }
.mini-map .jmap .inset { stroke-width: .8; }
.pref-intro { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin: -6px 0 22px; }
.pref-intro .meguri { flex: 1 1 300px; margin: 0; }
.pref-stamp { display: flex; align-items: center; gap: 12px; }
.pref-stamp .st { transform: rotate(-10deg); }
.pref-stamp p { margin: 0; font: 600 .84rem/1.6 var(--hand); color: var(--ink-2); }
.pref-stamp b { color: var(--shu); font-family: var(--gothic); }
.list-head + .tags, .pref-intro + .tags, .main-col > .tags { margin-bottom: 36px; }

/* スタンプ帳ページ */
.stamp-spread.big { margin-bottom: 44px; }
.stamp-spread.big .page-list { justify-content: center; gap: 26px; }
.stamp-spread.big .recent-stamps { margin-top: 0; }
.recent-stamps ul.six { grid-template-columns: repeat(2, 1fr); }
.page-wrap { padding-top: 30px; }
.regions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px 34px; }
.sb-region-sec { margin: 0; }
.sb-region-sec .tape-head { margin-bottom: 14px; }
.sb-region-sec .tape { font-size: 1.08rem; }
.sb-region-sec .more { font-size: .76rem; padding: 2px 10px; }
.pref-rows { list-style: none; margin: 0; padding: 4px 10px; background: var(--card); border-radius: 6px; box-shadow: var(--shadow); }
.pref-row { display: flex; align-items: center; gap: 14px; padding: 9px 4px; text-decoration: none; border-bottom: 1px dashed var(--line); }
.pref-rows li:last-child .pref-row { border-bottom: 0; }
.pref-row .st { width: 46px; height: 46px; flex: none; }
.pref-row.got .st { transform: rotate(-8deg); }
.pref-row:hover b { color: var(--green-deep); text-decoration: underline; }
.pr-body { min-width: 0; display: flex; flex-direction: column; }
.pr-body b { font-size: .95rem; }
.pr-note { display: flex; flex-wrap: wrap; gap: 0 12px; font: 600 .78rem/1.6 var(--hand); color: var(--ink-soft); }
.pr-note b { font: inherit; color: var(--shu); font-size: 1.05em; }
.pr-wish { color: #9a6f12; }
.pr-none { color: #b3a690; }

/* 行ってみたいところのページ */
.wish-map { max-width: 520px; margin: 0 auto 40px; padding: 18px 22px; background: #f3f8fb; border-radius: 12px; box-shadow: var(--shadow); }
.wish-group { margin-bottom: 40px; }

.empty { padding: 28px; background: var(--card); border: 2px dashed var(--line-2); border-radius: var(--radius); text-align: center; }
.empty a { color: var(--green-deep); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 40px 0; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); text-decoration: none; font-weight: 700; font-size: .9rem; }
.pager a[rel] { border-radius: 999px; padding: 0 16px; }
.pager a:hover { border-color: var(--green); color: var(--green-deep); }
.pager [aria-current] { border: 2.5px double var(--shu); color: var(--shu); background: #fff; transform: rotate(-6deg); font-family: var(--logo); }
.pager .gap { border: 0; background: none; }
.about { display: flex; gap: 32px; align-items: flex-start; background: var(--card); border-radius: 6px; box-shadow: var(--shadow); padding: 32px; }
.about img { width: 160px; height: 160px; border-radius: 50%; flex: none; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--green), var(--shadow); }
.about h1 { margin: 0 0 10px; font: 700 1.6rem/1.4 var(--logo); }
.about p { font: 600 .98rem/1.95 var(--hand); }
.about a { color: var(--green-deep); font-weight: 700; }
.about-links { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.about-links li { display: flex; flex-direction: column; padding: 10px 18px; background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: 10px; }
.about-links small { font-size: .76rem; color: var(--ink-soft); }
.notfound { padding: 50px 16px 70px; max-width: 760px; }
.notfound h1 { font: 700 1.6rem/1.4 var(--logo); text-align: center; margin: 0 0 28px; }

/* ---------- フッター（トランクの前面の革。開けた留め金と真鍮の名札） ---------- */
.site-footer { position: relative; margin: var(--frame) calc(var(--frame) * -1) calc(var(--frame) * -1); padding: 54px 0 24px; color: #f6e8d2; border-radius: 0 0 22px 22px;
  background: var(--leather-dark); background-blend-mode: normal, soft-light, normal;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .45), inset 0 4px 0 rgba(255, 220, 170, .1), inset 0 -2px 0 rgba(255, 210, 160, .15); }
.tf-rivets { position: absolute; left: 70px; right: 70px; bottom: 12px; height: 10px; background: var(--rivet) 0 50% / 44px 10px repeat-x; opacity: .85; }
/* 前面に貼った旅のステッカー */
.tf-stickers { position: absolute; left: 41%; top: 66px; width: 230px; height: 120px; pointer-events: none; }
.tf-stickers > span { position: absolute; display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.tf-stickers svg { display: block; width: 100%; height: auto; }
.tf-stickers .k1 { left: 0; top: 18px; width: 58px; transform: rotate(-12deg); }
.tf-stickers .k2 { left: 64px; top: 0; width: 78px; transform: rotate(6deg); }
.tf-stickers .k3 { left: 150px; top: 30px; width: 66px; transform: rotate(-4deg); }
.tf-stickers .k4 { left: 70px; top: 58px; padding: 4px 14px 3px; border-radius: 50%; background: #f3ead2; color: #8e2a1c; font: 700 .9rem/1 var(--logo); letter-spacing: .18em; text-align: center; transform: rotate(-7deg);
  box-shadow: inset 0 0 0 2px #f3ead2, inset 0 0 0 3.5px #8e2a1c; }
.tf-stickers .k4 small { display: block; font: 700 .42rem/1.4 var(--gothic); letter-spacing: .3em; color: #5b4e42; }
.trunk-front::before { left: 0; bottom: 0; top: auto; transform: scaleY(-1); }
.trunk-front::after { right: 0; bottom: 0; top: auto; transform: scale(-1); }
.ft, .copy { position: relative; }
.ft::before { content: ""; position: absolute; left: -12px; right: -12px; top: -16px; border-top: 2px dashed rgba(246, 222, 180, .35); }
.tf-latch { position: absolute; top: -8px; width: 34px; height: 44px; border-radius: 4px 4px 8px 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px), var(--brass);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .45), inset 0 0 0 1.5px #7a5418, inset 0 1px 0 rgba(255, 245, 200, .6); }
/* 留め金の受け（革に打った真鍮の座金） */
.tf-latch::before { content: ""; position: absolute; left: -6px; right: -6px; top: -6px; height: 12px; border-radius: 3px; background: var(--brass); box-shadow: 0 1px 2px rgba(0, 0, 0, .4), inset 0 0 0 1px #7a5418; }
.tf-latch::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #7a5418; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5); }
.tf-latch.l { left: 30%; transform: rotate(-14deg); transform-origin: 50% 0; }
.tf-latch.r { right: 30%; transform: rotate(14deg); transform-origin: 50% 0; }
.tf-plate { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); margin: 0; padding: 4px 22px 5px; text-align: center; white-space: nowrap; font: 700 .95rem/1.2 var(--logo); letter-spacing: .14em; color: #4a2e08;
  text-shadow: 0 1px 0 rgba(255, 245, 200, .7); background: var(--rivet) -14px 50% / 34px 10px no-repeat, var(--rivet) calc(100% + 14px) 50% / 34px 10px no-repeat, repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px), var(--brass);
  border-radius: 4px; box-shadow: 0 2px 3px rgba(0, 0, 0, .45), inset 0 0 0 1.5px #7a5418, inset 0 0 0 3px rgba(255, 240, 190, .35); }
.tf-plate small { display: block; font: 700 .52rem/1.2 var(--gothic); letter-spacing: .3em; }
.ft { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px 40px; flex-wrap: wrap; }
.ft-brand { max-width: 380px; }
.ft-note { margin: 14px 0 0; font: 600 .84rem/1.8 var(--hand); color: #ecd9bb; }
.ft .logo-name { font-size: 1.5rem; }
.ft .logo-sub { color: var(--straw); }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 30px; font-size: .86rem; font-weight: 700; }
.ft a { text-decoration: none; }
.ft nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--straw); }
.copy { margin-top: 30px; font-size: .74rem; color: #c9b08e; }

/* ---------- タブレット ---------- */
@media (max-width: 1180px) {
  .gnav a { padding: 8px 8px; font-size: .82rem; }
  .gnav .i { display: none; }
}
@media (max-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1fr) 270px; gap: 30px; }
  .cards, .related .cards { grid-template-columns: repeat(2, 1fr); }
  .home .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .gnav { display: none; }
  .drawer { display: block; }
  .hd { justify-content: space-between; min-height: 64px; gap: 8px; }
  .logo-name { font-size: 1.5rem; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; align-items: start; }
  .side-genres { display: none; }
  .page { padding: 18px 16px; }
  .home-2col { grid-template-columns: 1fr; }
  .home .cards { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- スマホ ---------- */
@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .hd { min-height: 58px; }
  .logo-face { width: 38px; height: 38px; }
  .logo-name { font-size: 1.32rem; }
  .logo-sub { font-size: .66rem; }
  .hero img { aspect-ratio: 820 / 640; object-position: center 30%; }
  .hero-text { width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; inset: 5% 12px auto; text-align: center; pointer-events: none; }
  .hero-text p, .hero-text h1 { margin: 0; }
  .hero-name { font: 700 clamp(2.4rem, 12vw, 3.2rem)/1.1 var(--logo); letter-spacing: .06em; color: var(--logo-red); -webkit-text-stroke: 1.5px #fff;
    text-shadow: 2px 2px 0 var(--gold), -2px -2px 0 var(--gold), 2px -2px 0 var(--gold), -2px 2px 0 var(--gold), 3px 5px 6px rgba(80, 30, 0, .35); }
  .hero-tag { display: inline-block; margin-top: 8px !important; font-size: clamp(.92rem, 4.4vw, 1.1rem); font-weight: 700; color: var(--violet);
    text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 0 10px #fff; }
  .hero-lead { margin-top: 6px !important; font-size: .78rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0, 40, 80, .7); }
  .meguri { gap: 10px; }
  .mg-face { width: 52px !important; height: 52px !important; }
  .mg-bubble { padding: 12px 15px; font-size: .94rem; }
  .greet { margin-top: -28px; }
  .greet .mg-bubble { padding: 14px 16px; font-size: .96rem; }
  .tape { font-size: 1.14rem; padding: 5px 16px 4px; }
  .tape-en { display: none; }
  .sec { margin-bottom: 46px; }
  .page { padding: 18px 14px; }
  .sb-num b { font-size: 3rem; }
  .sb-row { grid-template-columns: 3.6em 1fr; gap: 6px; }
  .st { width: 36px; height: 36px; font-size: .62rem; }
  .st.got { font-size: .66rem; }
  .cards, .home .cards, .related .cards { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .card a { padding: 7px 7px 10px; }
  .card a::before { width: 15px; height: 15px; margin-left: -7.5px; top: -5px; }
  .card a::after { top: 5px; width: 11px; height: 6px; }
  .card h3 { font-size: .86rem; }
  .card-body { padding: 9px 2px 0; }
  .thumb .label { font-size: .66rem; padding: 5px 8px; right: 5px; bottom: 5px; }
  .tags { grid-template-columns: 1fr; gap: 16px; }
  .tag { min-height: 0; }
  .stickers { gap: 14px; }
  .ticket { grid-template-columns: 46px 76px 1fr; gap: 10px; padding-right: 12px;
    -webkit-mask: radial-gradient(8px at 46px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(8px at 46px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(8px at 46px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(8px at 46px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
  .ticket::before { left: 46px; }
  .ticket img { width: 76px; height: 57px; }
  .side { grid-template-columns: 1fr; }
  .post { padding: 20px 16px 28px; margin: 0 -6px; }
  .eyecatch { padding: 6px 6px 8px; margin-bottom: 26px; }
  .eyecatch::before, .eyecatch::after { width: 17px; height: 17px; top: -5px; }
  .eyecatch::before { left: 12px; } .eyecatch::after { right: 12px; }
  .prevnext { grid-template-columns: 1fr; }
  .pn.next { text-align: left; }
  .about { flex-direction: column; align-items: center; padding: 22px; }
  .crumbs [aria-current] { max-width: 14em; }
  .entry h2 { font-size: 1.12rem; padding: 10px 14px 10px 44px; }
  .entry h2::before { left: 13px; width: 20px; height: 20px; margin-top: -10px; }
  .entry .alignleft, .entry .alignright { float: none; display: block; margin: 1em auto; }
  .list-head.has-art { gap: 14px; }
  .sticker-art { width: 72px; height: 72px; border-radius: 20px; }
  .sticker-art img { width: 52px; height: 48px; }
  .mini-map { width: 92px; }
  .list-head h1, .page-head h1 { font-size: 1.42rem; }
  .regions-grid { grid-template-columns: 1fr; }
  .ft ul { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 380px) {
  .cards, .home .cards, .related .cards { grid-template-columns: 1fr; }
}
/* ---------- トランクの枠：画面が狭いとき ---------- */
@media (max-width: 1290px) {
  .trunk { margin: 12px 12px 26px; }
}
@media (max-width: 700px) {
  :root { --frame: 8px; }
  .trunk { margin: 6px 6px 18px; border-radius: 16px; }
  .trunk::before, .trunk::after, .trunk-front::before, .trunk-front::after { width: 38px; height: 38px; border-top-left-radius: 16px;
    -webkit-mask: radial-gradient(circle at 6px 6px, transparent 2px, #000 2.5px), linear-gradient(#000 0 0); }
  .trunk-lid { border-radius: 9px 9px 4px 4px; padding-bottom: 10px; }
  .trunk-base { border-radius: 4px 4px 9px 9px; padding-bottom: 30px; }
  .trunk-hinge i { width: 48px; height: 22px; top: -7px; }
  .trunk-hinge i::before { height: 5px; margin-top: -2.5px; }
  .hero { margin: 2px 10px 16px; padding: 5px; }
  .hero::before, .hero::after { width: 76px; height: 12px; }
  .hero::before { left: -24px; top: 10px; }
  .hero::after { right: -24px; bottom: 10px; }
  .site-footer { border-radius: 0 0 16px 16px; padding-top: 50px; }
  .tf-latch { width: 24px; height: 34px; }
  .tf-latch.l { left: 12%; } .tf-latch.r { right: 12%; }
  .greet { margin-top: 26px; }
  .tk-stitch { inset: 3px; border-radius: 13px; }
  .trunk-hinge::before { left: 20px; right: 20px; background-size: 30px 10px; }
  .lid-label { font-size: .62rem; padding: 2px 12px 1px; }
  .trunk-lid { padding-bottom: 18px; }
  .tf-rivets { left: 46px; right: 46px; bottom: 7px; background-size: 34px 10px; }
}
@media (max-width: 980px) {
  .tf-stickers { left: auto; right: 4%; top: auto; bottom: 28px; transform: scale(.7); transform-origin: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ======================================================================
   トランクがひらく演出（タブごとに最初の1回。html.trunk-intro のときだけ）
   箱の面（前・横・上の口）とふた（前・上・横・内張り）を CSS の 3D で組み立てる。
   時間割（全体 2.5秒）：落ちてくる 0〜.45 → 留め金 .45〜.65 → ふたが開く .62〜1.2
                      → 光と中身が飛び出す .75〜1.5 → トランクの中へ寄る 1.6〜2.5（.intro は 1.85 から消える）
   ====================================================================== */
.intro { display: none; }
html.trunk-intro .intro {
  --w: min(400px, 64vw); --ti-tilt: -13deg; --d: calc(var(--w) * .46); --hb: calc(var(--w) * .44); --hl: calc(var(--w) * .2);
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background: #e2cfa2;
  animation: ti-fade 2.5s ease forwards;
}
html.trunk-skip .intro { animation: ti-gone .35s ease forwards; }
@keyframes ti-fade { 0%, 74% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes ti-gone { to { opacity: 0; visibility: hidden; } }

/* 背景：机に広げた古い日本地図と旅の小物。ぼかして、ゆっくり寄っていく（トランクが主役なので、うすく） */
.ti-bg { position: absolute; inset: -8%; overflow: hidden; filter: blur(2.4px) saturate(.9); transform: scale(1.02) rotate(-3deg); animation: tb-drift 2.6s cubic-bezier(.3, 0, .3, 1) forwards; will-change: transform;
  background: radial-gradient(ellipse at 50% 48%, rgba(255, 250, 235, .5), transparent 60%), linear-gradient(rgba(242, 230, 200, .45), rgba(242, 230, 200, .45)), url("/assets/tex/mottle.svg") 0 0 / 900px, linear-gradient(160deg, #efe2c2, #e2cfa2 60%, #d3bb8a); }
@keyframes tb-drift { to { transform: scale(1.12) rotate(-1.5deg); } }
.tb-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.tb-grid { fill: none; stroke: #b19a6c; stroke-width: 1.4; stroke-dasharray: 2 7; opacity: .55; }
.tb-land use { fill: #c7d5ad; stroke: #9a8662; stroke-width: 1.2; stroke-linejoin: round; }
.tb-route { fill: none; stroke: #c0503b; stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .8; }
.tb-plane path { fill: #6b3d1f; }
.tb-compass { fill: none; stroke: #8f7a52; stroke-width: 2; opacity: .7; }
.tb-compass path { fill: rgba(143, 122, 82, .25); }
.tb-compass .n { fill: #c0503b; stroke: none; }
.tb-sea { font: 700 34px/1 var(--logo); fill: #8fa3a8; letter-spacing: .3em; opacity: .7; }
.tb-post { fill: none; stroke: #7c6aa8; stroke-width: 3; opacity: .55; }
.tb-post text { fill: #7c6aa8; stroke: none; font: 700 22px/1 var(--logo); text-anchor: middle; }
.tb { position: absolute; display: block; box-shadow: 0 8px 18px -6px rgba(60, 40, 20, .5); }
.tb-photo { width: clamp(110px, 17vmin, 190px); padding: 8px 8px 30px; background: #fffdf8; }
.tb-photo::before { content: ""; display: block; aspect-ratio: 1; }
.tb-photo.p1 { left: 9%; top: 11%; transform: rotate(-11deg); }
.tb-photo.p1::before { background: linear-gradient(#9cc9e6, #d9ecf5 55%, #7fae6c 56%, #5f8f50); }
.tb-photo.p2 { right: 10%; bottom: 13%; transform: rotate(9deg); }
.tb-photo.p2::before { background: radial-gradient(circle at 70% 30%, #fff3c4 0 9%, transparent 10%), linear-gradient(#f7c98b, #f3a07a 45%, #3d8ec9 46%, #2b6f9e); }
.tb-ticket { right: 11%; top: 13%; padding: 10px 22px; background: #f7e7b8; border: 2px dashed #b48a3a; font: 700 clamp(14px, 2.2vmin, 22px)/1.3 var(--logo); color: #6b3d1f; transform: rotate(7deg); }
.tb-ticket small { display: block; font-size: .7em; text-align: right; }
.tb-passport { left: 10%; bottom: 11%; width: clamp(96px, 14vmin, 150px); aspect-ratio: 5 / 7; border-radius: 6px; background: #2c4f37; color: #e3bd66; font: 700 clamp(9px, 1.3vmin, 13px)/1 var(--gothic); letter-spacing: .2em;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10%; transform: rotate(14deg); }
.tb-passport i { width: 42%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #e3bd66; box-shadow: inset 0 0 0 5px #2c4f37, inset 0 0 0 7px #e3bd66; }
.tb-card { left: 38%; bottom: 4%; width: clamp(150px, 24vmin, 260px); aspect-ratio: 3 / 2; background: #fbf4e2; transform: rotate(-5deg); }
.tb-card::before { content: ""; position: absolute; left: 52%; top: 10%; bottom: 10%; border-left: 1.5px solid #c9b48a; }
.tb-card::after { content: ""; position: absolute; left: 58%; right: 8%; top: 46%; height: 30%; background: repeating-linear-gradient(transparent 0 9px, #c9b48a 9px 10.5px); }
.tb-card i { position: absolute; right: 8%; top: 9%; width: 18%; aspect-ratio: 4 / 5; background: #cf3b2c; outline: 3px dotted #fbf4e2; outline-offset: -3px; }
.tb-leaf { right: 30%; top: 3%; width: clamp(60px, 9vmin, 100px); aspect-ratio: 1; border-radius: 0 70% 0 70%; background: linear-gradient(135deg, #e0893a, #c0503b); transform: rotate(28deg); box-shadow: none; opacity: .85; }
/* 真ん中（トランクのまわり）を明るく、ふちを暗く */
.ti-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(255, 248, 228, .55), transparent 42%), radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(50, 32, 14, .45)); }

.ti-stage { position: relative; width: var(--w); height: calc(var(--hb) + var(--d) * 1.5); perspective: 2800px; perspective-origin: 50% 55%;
  transform-origin: 50% calc(100% - var(--hb)); animation: ti-zoom 2.5s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes ti-zoom { 0%, 64% { transform: none; } 100% { transform: translateY(18%) scale(3.6); } }

.ti-trunk { position: absolute; left: 0; bottom: 0; width: var(--w); height: var(--hb); transform-style: preserve-3d; transform: rotateX(var(--ti-tilt));
  animation: ti-drop .5s cubic-bezier(.3, 1.35, .55, 1) both, ti-shake .2s .42s linear 1; }
@keyframes ti-shake { 25% { transform: rotateX(var(--ti-tilt)) rotateZ(-1.6deg); } 75% { transform: rotateX(var(--ti-tilt)) rotateZ(1.6deg); } }
@keyframes ti-drop {
  0% { transform: translateY(-70%) rotateX(var(--ti-tilt)) rotateZ(-4deg); opacity: 0; }
  60% { transform: translateY(2%) rotateX(var(--ti-tilt)) scale(1.03, .96); opacity: 1; }
  100% { transform: rotateX(var(--ti-tilt)); }
}
.ti-body, .ti-lid { position: absolute; left: 0; top: 0; width: var(--w); transform-style: preserve-3d; }
.ti-body { height: var(--hb); }
.ti-lid { height: 0; transform-origin: 50% 0 calc(var(--d) / -2); animation: ti-open .62s .62s cubic-bezier(.25, .9, .3, 1.18) both; }
@keyframes ti-open { from { transform: rotateX(0); } to { transform: rotateX(112deg); } }
.intro .f { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* 革 */
.f-front, .l-front { left: 0; width: var(--w); background: url("/assets/tex/mottle.svg") 0 0 / 520px, url("/assets/tex/leather.svg") 0 0 / 140px, radial-gradient(ellipse at 30% 0%, rgba(255, 214, 160, .22), transparent 60%), linear-gradient(#9c5f33, #7e4524);
  background-blend-mode: normal, soft-light, normal, normal; box-shadow: inset 0 0 0 1.5px rgba(40, 18, 4, .6), inset 0 0 0 3px rgba(255, 210, 160, .2), inset 0 0 22px rgba(40, 18, 4, .45); }
/* 縁のステッチ */
.f-front::after, .l-front::after { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(246, 218, 170, .5); pointer-events: none; }
.f-front::after { border-radius: 0 0 10px 10px; border-top: 0; top: 0; }
.l-front::after { border-radius: 10px 10px 0 0; border-bottom: 0; bottom: 0; }
.f-front { top: 0; height: var(--hb); border-radius: 0 0 14px 14px; transform: translateZ(calc(var(--d) / 2)); }
.f-left, .f-right, .l-left, .l-right { left: calc((var(--w) - var(--d)) / 2); width: var(--d); background: url("/assets/tex/leather.svg") 0 0 / 140px, linear-gradient(90deg, #5e3318, #74401f); background-blend-mode: soft-light, normal; }
.f-left, .f-right { top: 0; height: var(--hb); }
.f-left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.f-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
/* 箱の口（ふたが開くと見える内張り。奥から光る） */
.f-open { left: 0; top: calc(var(--d) / -2); width: var(--w); height: var(--d); transform: rotateX(90deg);
  background: radial-gradient(ellipse at 50% 55%, #fff8de 0 18%, #f3d68e 40%, #7e4a24 82%), #6b3d1f; box-shadow: inset 0 0 0 5px #6b3d1f, inset 0 0 0 7px #c99a4b; }
.l-front { top: calc(var(--hl) * -1); height: var(--hl); border-radius: 14px 14px 0 0; transform: translateZ(calc(var(--d) / 2)); }
.l-top { left: 0; top: calc(var(--hl) * -1 - var(--d) / 2); width: var(--w); height: var(--d); transform: rotateX(90deg); border-radius: 14px;
  background: url("/assets/tex/leather.svg") 0 0 / 140px, radial-gradient(ellipse at 40% 20%, rgba(255, 214, 160, .25), transparent 60%), linear-gradient(#a8693b, #8a4e28); background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 0 0 1.5px rgba(40, 18, 4, .55), inset 0 0 0 6px transparent; outline: 1.5px dashed rgba(246, 218, 170, .45); outline-offset: -7px; }
.l-left, .l-right { top: calc(var(--hl) * -1); height: var(--hl); }
.l-left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.l-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
/* ふたの内張り（巡の緑のキルティング＋ポケット） */
.l-in { left: 0; top: calc(var(--d) / -2); width: var(--w); height: var(--d); transform: rotateX(-90deg); border-radius: 12px;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(5, 20, 10, .5)), url("/assets/tex/quilt.svg") 0 0 / 34px, #1c3b25;
  box-shadow: inset 0 0 0 6px #6b3d1f, inset 0 0 0 7px #e3bd66, inset 0 0 0 8.5px #8a6420; }
.l-in .pocket { position: absolute; left: 12%; right: 12%; bottom: 10%; height: 34%; border-radius: 4px 4px 10px 10px; border-top: 1.5px dashed rgba(255, 240, 200, .5);
  background: url("/assets/tex/leather.svg") 0 0 / 100px, #2a5434; background-blend-mode: soft-light, normal; box-shadow: 0 -2px 4px rgba(0, 0, 0, .35); }

/* 金具・ベルト・ステッカー */
.intro .strap { position: absolute; top: 0; bottom: 0; width: 9%; background: url("/assets/tex/leather.svg") 0 0 / 100px, linear-gradient(90deg, #4c280f, #643619 50%, #4c280f); background-blend-mode: soft-light, normal;
  box-shadow: 0 0 3px rgba(0, 0, 0, .35); }
.intro .strap::before { content: ""; position: absolute; inset: 0 3px; border-left: 1.2px dashed rgba(246, 218, 170, .5); border-right: 1.2px dashed rgba(246, 218, 170, .5); }
.intro .rivets { position: absolute; width: 9%; top: 14%; height: 70%; background: var(--rivet) 50% 0 / 10px 22px repeat-y; transform: scale(.8); }
.intro .rv1 { left: 19%; } .intro .rv2 { right: 19%; }
.intro .s1 { left: 19%; } .intro .s2 { right: 19%; }
.intro .buckle { position: absolute; z-index: 1; top: 44%; width: 13%; height: 18%; border: 3px solid #e3bd66; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 0 0 1px #8a6420, 0 0 0 1px #8a6420; }
.intro .buckle::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #b88a35; }
.intro .b1 { left: 17%; } .intro .b2 { right: 17%; }
.intro .latch { position: absolute; top: -9%; width: 8%; height: 22%; border-radius: 3px 3px 6px 6px; background: var(--rivet) 50% 78% / 12px 12px no-repeat, var(--brass); box-shadow: 0 2px 3px rgba(0,0,0,.45), inset 0 0 0 1.5px #7a5418, inset 0 1px 0 rgba(255, 245, 200, .6);
  transform-origin: 50% 100%; animation: ti-latch .22s .45s ease-out both; }
.intro .l1 { left: 37%; } .intro .l2 { right: 37%; }
@keyframes ti-latch { from { transform: none; } to { transform: rotate(-24deg) translateY(-14%); } }
.intro .l2 { animation-name: ti-latch2; animation-delay: .52s; }
@keyframes ti-latch2 { from { transform: none; } to { transform: rotate(24deg) translateY(-14%); } }
.intro .corner { position: absolute; width: 15%; aspect-ratio: 1; background: var(--rivet) 6% 6% / 34% 34% no-repeat, var(--rivet) 70% 6% / 34% 34% no-repeat, var(--rivet) 6% 70% / 34% 34% no-repeat, var(--brass);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 34% 34%, 34% 100%, 0 100%); }
.intro .c1 { left: 0; top: 0; border-top-left-radius: 14px; }
.intro .c2 { right: 0; top: 0; transform: scaleX(-1); border-top-left-radius: 14px; }
.intro .c3 { left: 0; bottom: 0; transform: scaleY(-1); border-top-left-radius: 14px; }
.intro .c4 { right: 0; bottom: 0; transform: scale(-1); border-top-left-radius: 14px; }
.intro .plate { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 2px 12px; white-space: nowrap; font: 700 calc(var(--w) * .045)/1.4 var(--logo); letter-spacing: .12em; color: #4a2e08;
  text-shadow: 0 1px 0 rgba(255, 245, 200, .7); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px), var(--brass); border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 0 0 1px #7a5418, inset 0 0 0 2.5px rgba(255, 240, 190, .35); }
.intro .handle { position: absolute; left: 34%; right: 34%; top: 34%; height: 30%; border-radius: 999px; background: url("/assets/tex/leather.svg") 0 0 / 80px, linear-gradient(#5a3016, #3c1f0c); background-blend-mode: soft-light, normal;
  box-shadow: 0 3px 4px rgba(0,0,0,.35), inset 0 1px 0 rgba(255, 220, 170, .25); outline: 1.2px dashed rgba(246, 218, 170, .5); outline-offset: -4px; }
.intro .handle::before, .intro .handle::after { content: ""; position: absolute; top: 50%; width: 16%; aspect-ratio: 1; margin-top: -8%; border-radius: 3px; background: var(--brass); box-shadow: 0 1px 1px rgba(0,0,0,.5); }
.intro .handle::before { left: -8%; } .intro .handle::after { right: -8%; }
.intro .stk { position: absolute; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.intro .stk svg { display: block; width: 100%; height: auto; }
.intro .k1 { left: 38%; top: 38%; width: 15%; transform: rotate(-10deg); }
.intro .k2 { left: 79%; top: 24%; width: 18%; transform: rotate(8deg); }
.intro .k3 { left: 3%; top: 58%; width: 15%; transform: rotate(-6deg); }

/* 中から出てくる光と中身 */
.ti-glow { position: absolute; left: 50%; top: calc(100% - var(--hb) - var(--d) * .2); width: calc(var(--w) * 1.9); height: calc(var(--w) * 1.3); transform: translate(-50%, -55%) scale(.4); opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 246, 214, .95), rgba(255, 226, 150, .5) 45%, transparent); animation: ti-glow .7s .75s ease-out forwards; pointer-events: none; }
@keyframes ti-glow { to { opacity: 1; transform: translate(-50%, -55%) scale(1); } }
.ti-items { position: absolute; left: 50%; top: calc(100% - var(--hb) - var(--d) * .25); width: 0; height: 0; }
.it { position: absolute; left: 0; top: 0; display: grid; place-items: center; opacity: 0; transform: translate(-50%, -50%) scale(.2);
  animation: ti-pop .7s cubic-bezier(.2, 1.3, .4, 1) forwards; box-shadow: 0 6px 12px -4px rgba(60, 40, 20, .45); }
@keyframes ti-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.2) rotate(0); } 30% { opacity: 1; } 100% { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); } }
.it-map { --x: calc(var(--w) * -.5); --y: calc(var(--w) * -.5); --r: -16deg; animation-delay: .82s; width: calc(var(--w) * .34); aspect-ratio: 4 / 3; border-radius: 2px;
  background: radial-gradient(circle at 30% 40%, #8fc27a 0 18%, transparent 19%), radial-gradient(circle at 70% 64%, #8fc27a 0 22%, transparent 23%), linear-gradient(90deg, rgba(0,0,0,.06) 0 33%, transparent 33% 66%, rgba(0,0,0,.06) 66%), #bfe0f0; }
.it-ticket { --x: calc(var(--w) * -.32); --y: calc(var(--w) * -.8); --r: -8deg; animation-delay: .9s; padding: 4px 12px; border-radius: 4px; background: #f7e7b8; border: 1.5px dashed #b48a3a; font: 700 calc(var(--w) * .042)/1.3 var(--logo); color: #6b3d1f; white-space: nowrap; }
.it-ticket small { display: block; font-size: .7em; text-align: right; }
.it-photo { --x: calc(var(--w) * .06); --y: calc(var(--w) * -.86); --r: 5deg; animation-delay: .97s; padding: 6px 6px 16px; background: #fff; border-radius: 2px; }
.it-photo img { max-width: none; display: block; width: calc(var(--w) * .24); height: calc(var(--w) * .24); object-fit: cover; background: #e4efd8; }
.it-tag { --x: calc(var(--w) * .4); --y: calc(var(--w) * -.7); --r: 10deg; animation-delay: 1.04s; padding: 8px 14px 8px 22px; background: #e9dcc0; font: 600 calc(var(--w) * .042)/1.3 var(--hand); color: #5b4e42; white-space: nowrap;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); }
.it-stamp { --x: calc(var(--w) * .52); --y: calc(var(--w) * -.38); --r: -14deg; animation-delay: 1.11s; width: calc(var(--w) * .2); aspect-ratio: 1; border-radius: 50%; border: 4px double #cf3b2c; color: #cf3b2c; font: 700 calc(var(--w) * .08)/1 var(--logo); background: rgba(255, 250, 240, .9); box-shadow: none; }
.ti-cap { position: absolute; left: 50%; bottom: calc(var(--w) * -.32); transform: translateX(-50%); margin: 0; white-space: nowrap; font: 600 clamp(.85rem, 3.6vw, 1rem)/1.4 var(--hand); color: #5b4e42; letter-spacing: .1em;
  padding: 4px 16px; border-radius: 999px; background: rgba(251, 246, 234, .82); box-shadow: 0 2px 8px rgba(60, 40, 20, .15);
  opacity: 0; animation: ti-cap 1.5s .15s ease forwards; }
@keyframes ti-cap { 0% { opacity: 0; } 25%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- スタンプ帳：スマホでは縦に長くならないよう、ぎゅっと詰める ---------- */
@media (max-width: 700px) {
  .stamp-spread { grid-template-columns: 1fr; border-radius: 12px; }
  .stamp-spread::before { display: none; }
  .page-map { padding: 8px 8px 8px; }
  /* 地図は下（奄美のあたりの海）を少し切り詰める。案内は地図の右下に重ねる */
  .jmap.zoomable { aspect-ratio: 1000 / 940; }
  .jm-hint { position: absolute; right: 6px; bottom: 6px; margin: 0; padding: 2px 10px; font-size: .7rem; background: rgba(255, 253, 248, .88); border-radius: 999px; }
  .jmap-wrap:not(.ready) .jm-hint, .jmap-wrap:not(.mode-japan) .jm-hint { display: none; }
  .legend { margin-top: 4px; gap: 2px 10px; font-size: .66rem; flex-wrap: nowrap; white-space: nowrap; }
  .legend li { gap: 4px; }
  .lg { width: 11px; height: 11px; }
  .page-list { padding: 12px 12px 14px; gap: 10px; background: var(--card); }
  .sb-count { grid-template-columns: auto 1fr; gap: 2px 12px; }
  .sb-num b { font-size: 2.3rem; }
  .sb-cap { font-size: .82rem; }
  .sb-cap br { display: none; }
  /* 判子の一覧は、地方ごとの札（3列）だけ。札を押すと地図がその地方へ。判子は「見る」で開く */
  .stampbook:not(.compact):not(.open) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stampbook:not(.compact):not(.open) .sb-row { display: block; }
  .stampbook:not(.compact):not(.open) .sb-cells { display: none; }
  .stampbook:not(.compact):not(.open) .sb-region { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 4px; padding: 6px 9px; font-size: .8rem;
    background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: 8px; }
  .stampbook:not(.compact):not(.open) .sb-region small { font-size: .72rem; }
  .stampbook:not(.compact):not(.open) .sb-row.full .sb-region { border: 2px double var(--shu); }
  .sb-toggle:not([hidden]) { display: block; align-self: center; padding: 4px 16px; font: 700 .76rem/1.6 var(--gothic); color: var(--green-deep); background: var(--card); border: 1.5px solid var(--line-2); border-radius: 999px; cursor: pointer; }
  /* 最近押したスタンプは、横にスクロールする1列 */
  .recent-stamps { padding-top: 8px; }
  .rs-h { margin-bottom: 6px; font-size: .72rem; }
  .recent-stamps ul, .recent-stamps ul.six { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; scrollbar-width: none; }
  .recent-stamps ul::-webkit-scrollbar { display: none; }
  .recent-stamps li { flex: none; scroll-snap-align: start; }
  .recent-stamps a { flex-direction: column; gap: 4px; }
  .recent-stamps .st { width: 42px; height: 42px; }
  .rs-t { align-items: center; }
  .rs-t b { font-size: .74rem; }
  .rs-t small { font-size: .66rem; }
  .sb-hint { font-size: .7rem; line-height: 1.6; }
}

/* ======================================================================
   写真のギャラリー（/assets/gallery.js）：記事の写真を押すと、画面いっぱいに大きく見る
   ====================================================================== */
.gal-able { cursor: zoom-in; transition: filter .2s; }
.gal-able:hover { filter: brightness(1.04); }
html.gal-open { overflow: hidden; }
.gal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f6efdc;
  display: none; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.gal[open] { display: grid; animation: gal-in .25s ease-out; }
.gal::backdrop { background: radial-gradient(ellipse at 50% 45%, rgba(58, 40, 22, .9), rgba(20, 13, 6, .96)); backdrop-filter: blur(3px); }
@keyframes gal-in { from { opacity: 0; } }
.gal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 14px 6px; }
.gal-count { min-height: 1.6em; padding: 2px 14px; font: 700 .9rem/1.6 var(--logo); letter-spacing: .12em; color: #4a2e08; background: linear-gradient(135deg, #fff1bd, #e3bd66 45%, #b88a35); border-radius: 999px; box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.gal-count:empty { visibility: hidden; }
.gal-close, .gal-nav { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer; color: #f6efdc;
  background: url("/assets/tex/leather.svg") 0 0 / 90px, #6b3d1f; background-blend-mode: soft-light, normal; border: 2px solid #c99a4b; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); transition: transform .15s, background-color .15s; }
.gal-close:hover, .gal-nav:hover { background-color: #84492a; transform: scale(1.06); }
.gal-close svg, .gal-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gal-close:focus-visible, .gal-nav:focus-visible, .gal-thumbs button:focus-visible { outline: 3px solid var(--straw); outline-offset: 2px; }
.gal-stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 0 16px; min-height: 0; }
.gal-nav[hidden] { visibility: hidden; display: grid; }
/* 写真は白い縁のプリント。下に手書きのキャプション */
.gal-photo { margin: 0; justify-self: center; display: flex; flex-direction: column; align-items: center; min-height: 0; max-height: 100%; }
.gal-photo img { display: block; max-width: 100%; object-fit: contain; padding: 8px; background: #fffdf8;
  border-radius: 2px; box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 50px -16px rgba(0, 0, 0, .8); }
.gal-photo figcaption { max-width: 40em; margin-top: 12px; text-align: center; font: 600 1rem/1.6 var(--hand); color: #f3ead2; letter-spacing: .04em; }
.gal-photo.from-r { animation: gal-from-r .32s cubic-bezier(.2, .9, .3, 1); }
.gal-photo.from-l { animation: gal-from-l .32s cubic-bezier(.2, .9, .3, 1); }
.gal-photo.pop { animation: gal-pop .32s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes gal-from-r { from { opacity: 0; transform: translateX(40px) rotate(1deg); } }
@keyframes gal-from-l { from { opacity: 0; transform: translateX(-40px) rotate(-1deg); } }
@keyframes gal-pop { from { opacity: 0; transform: scale(.94); } }
/* サムネイルの列 */
.gal-thumbs { list-style: none; display: flex; justify-content: safe center; gap: 8px; margin: 0; padding: 10px 14px max(14px, env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumbs[hidden] { display: none; }
.gal-thumbs li { flex: none; }
.gal-thumbs button { display: block; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: #3a2816; opacity: .5; transition: opacity .15s, border-color .15s; }
.gal-thumbs button:hover { opacity: .85; }
.gal-thumbs button.on { opacity: 1; border-color: var(--straw); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
  /* スマホ：写真は横いっぱい。送るボタンは写真の下の左右に */
  .gal-stage { grid-template-columns: minmax(0, 1fr); padding: 0 6px; }
  .gal-photo { grid-row: 1; }
  .gal-photo img { padding: 5px; }
  .gal-photo figcaption { font-size: .9rem; padding: 0 10px; }
  .gal-nav { position: absolute; bottom: -6px; width: 40px; height: 40px; z-index: 1; }
  .gal-prev { left: calc(50% - 64px); } .gal-next { right: calc(50% - 64px); }
  .gal-stage { padding-bottom: 46px; }
  .gal-thumbs button { width: 52px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .gal[open], .gal-photo { animation: none !important; } }

/* ---------- 記事の目次（本文の最初の見出しの前・PC は右のサイドバーにも付いてくる） ---------- */
.entry h2[id], .entry h3[id] { scroll-margin-top: 24px; }
.toc { margin: 1.8em 0 2.2em; border: 1.5px dashed var(--line-2); border-radius: 10px; background: #fffaf0; }
.toc summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; padding: 12px 18px; font: 700 1rem/1.4 var(--logo); letter-spacing: .06em; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "閉じる"; margin-left: auto; font: 700 .74rem var(--gothic); color: var(--green-deep); }
.toc details:not([open]) summary::after { content: "ひらく"; }
.toc summary small { font: 600 .76rem var(--gothic); color: var(--ink-soft); letter-spacing: 0; }
.toc-list { list-style: none; margin: 0; padding: 0 18px 14px; counter-reset: toc; }
.toc-list li { line-height: 1.6; }
.toc-list a { display: block; padding: 4px 0; color: var(--ink); text-decoration: none; font-size: .92rem; }
.toc-list a:hover { color: var(--green-deep); text-decoration: underline; }
.toc-2 { counter-increment: toc; }
.toc-2 > a { font-weight: 700; }
.toc-2 > a::before { content: counter(toc) ". "; color: var(--green); }
.toc-3 > a { padding-left: 1.4em; font-size: .86rem; color: var(--ink-2); }
/* PC：サイドバーの目次はスクロールしても付いてくる */
.side-toc { position: sticky; top: 18px; }
.side-toc .toc-list { padding: 8px 10px 12px; max-height: calc(100vh - 120px); overflow: auto; }
.side-toc .toc-list a { border-radius: 6px; padding: 4px 8px; font-size: .84rem; }
.side-toc .toc-3 > a { padding-left: 1.6em; font-size: .8rem; }
.side-toc .toc-list a.on { background: var(--green-pale); color: var(--green-deep); }
.side .box.side-toc .box-title { background: var(--tape-green, var(--green-pale)); }
@media (max-width: 980px) {
  .side-toc { display: none; }
  /* ヘッダーだけのページ（記事など）では、ふたの名札がまん中のロゴに重なるので出さない（ロゴの下に同じ言葉がある） */
  .trunk-lid.bare .lid-label { display: none; }
}
@media (min-width: 981px) { .side.has-toc { align-self: stretch; } }
/* スマホのトップ：行ってみたいところは4つまで（続きは「ぜんぶ見る」） */
@media (max-width: 700px) { .wish-sec .tags > :nth-child(n+5) { display: none; } }
