@charset "UTF-8";
/* ==========================================================================
   ATELIER Onn  -  shared stylesheet
   "Hoshi mo yomu shi, kusa mo nuku."  (reads the stars, pulls the weeds)

   IMPORTANT: keep this file ASCII-only.
   mail.html / reservation.html / reservation_C_popup.html are Shift_JIS pages
   and also load this file. Use CSS escapes (e.g. "\2605") for any symbol.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --paper: #F6F0E0;
  --paper-2: #EEE3C8;
  --card: #FFFCF3;
  --ink: #1F2336;
  --ink-2: #464A5E;
  --muted: #6A6570;
  --line: #1F2336;
  --red: #D2462F;
  --red-ink: #B3361F;
  --on-red: #FFFFFF;
  --green: #4B7A43;
  --green-ink: #3A6433;
  --yellow: #F2BE3F;
  --lav: #9C8BD6;
  --wood: #C4925A;
  --wood-2: #A87842;
  --straw: #E6C47E;
  --soil: #7B5538;

  /* fixed colours (do not flip with the mode) */
  --fx-ink: #1F2336;
  --fx-cream: #F6F0E0;
  --fx-card: #FFFCF3;
  --fx-sky: #232A48;
  --fx-night: #121528;

  --shadow: 4px 4px 0 var(--line);
  --shadow-sm: 3px 3px 0 var(--line);
  --shadow-lg: 7px 7px 0 var(--line);
  --radius: 16px;

  --f-display: 'Dela Gothic One', 'Zen Maru Gothic', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-body: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --f-head: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --f-hand: 'Klee One', 'Zen Maru Gothic', cursive;
  --f-latin: 'Fraunces', 'Georgia', serif;

  --wrap: 1100px;
  color-scheme: light;
}

html[data-mode="night"] {
  --paper: #161A2B;
  --paper-2: #1D2238;
  --card: #232945;
  --ink: #F3EBD5;
  --ink-2: #D3CCB9;
  --muted: #ABA5B9;
  --line: #F3EBD5;
  --red: #EE6B52;
  --red-ink: #F7957F;
  --on-red: #161A2B;
  --green: #8FC07F;
  --green-ink: #A9D59A;
  --yellow: #F5CD5E;
  --lav: #BCAEF0;
  color-scheme: dark;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(31, 35, 54, .075) 1.1px, transparent 1.3px);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
html[data-mode="night"] body {
  background-image:
    radial-gradient(1.4px 1.4px at 22% 30%, rgba(245, 205, 94, .9) 50%, transparent 55%),
    radial-gradient(1.1px 1.1px at 72% 78%, rgba(243, 235, 213, .75) 50%, transparent 55%),
    radial-gradient(1.6px 1.6px at 86% 14%, rgba(243, 235, 213, .7) 50%, transparent 55%),
    radial-gradient(1px 1px at 41% 62%, rgba(243, 235, 213, .55) 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 9% 86%, rgba(245, 205, 94, .7) 50%, transparent 55%);
  background-size: 260px 260px, 310px 310px, 190px 190px, 230px 230px, 170px 170px;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--red-ink); text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 700; }
small { font-size: .82em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--fx-ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 780px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.en { font-family: var(--f-latin); font-style: italic; font-weight: 400; letter-spacing: .02em; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* utility colours for inline SVG so illustrations follow the mode */
.s-ink { stroke: var(--ink); } .f-ink { fill: var(--ink); }
.f-paper { fill: var(--paper); } .f-card { fill: var(--card); }
.f-red { fill: var(--red); } .s-red { stroke: var(--red); }
.f-green { fill: var(--green); } .s-green { stroke: var(--green); }
.f-yellow { fill: var(--yellow); }

/* ---------- 3. Header / nav --------------------------------------------- */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  transition: background-color .5s ease;
}
.hd-in { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: var(--wrap); margin: 0 auto; }
@media (min-width: 640px) { .hd-in { padding: 10px 28px; } }

.logo {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  color: var(--ink); text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo img { width: 40px; height: 40px; transition: transform .3s; }
.logo:hover img { transform: rotate(-12deg) scale(1.06); }
.logo-name { display: block; font-family: var(--f-display); font-size: 1.12rem; line-height: 1.1; letter-spacing: .01em; }
.logo-sub { display: block; margin-top: 3px; font-size: .64rem; color: var(--muted); letter-spacing: .14em; line-height: 1.4; font-weight: 700; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a {
  display: block; padding: 5px 11px 4px; border-radius: 12px;
  border: 2px solid transparent;
  color: var(--ink); text-decoration: none; text-align: center;
  font-weight: 700; font-size: .92rem; line-height: 1.25;
  transition: border-color .15s, background-color .15s, transform .15s;
}
.nav-list a .en { display: block; font-size: .66rem; color: var(--muted); line-height: 1.1; }
.nav-list a:hover { border-color: var(--line); transform: rotate(-2deg); }
.nav-list a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-list a[aria-current="page"] .en { color: var(--paper); opacity: .75; }

/* day / night switch */
.mode-btn {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px 0 6px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--card); cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
  font-size: .78rem; font-weight: 700; white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.mode-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.mode-btn:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--line); }
.mode-track {
  position: relative; width: 44px; height: 26px; border-radius: 999px;
  background: #F9D77A; border: 2px solid var(--fx-ink); overflow: hidden;
  transition: background-color .4s;
}
.mode-knob {
  position: absolute; top: 1px; left: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: #F08A2E; border: 2px solid var(--fx-ink);
  transition: transform .4s cubic-bezier(.5, 1.6, .5, 1), background-color .4s, box-shadow .4s;
}
html[data-mode="night"] .mode-track { background: var(--fx-sky); }
html[data-mode="night"] .mode-knob { transform: translateX(18px); background: #F5CD5E; box-shadow: inset -6px -2px 0 0 #C9A53F; }
.mode-track::after {
  content: ""; position: absolute; right: 6px; top: 6px; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: -8px 7px 0 0 #fff, -3px 12px 0 -1px #fff; opacity: 0; transition: opacity .4s;
}
html[data-mode="night"] .mode-track::after { opacity: 0; }
html[data-mode="night"] .mode-track::before {
  content: ""; position: absolute; left: 6px; top: 5px; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; box-shadow: 6px 8px 0 0 #fff, 11px 2px 0 0 rgba(255,255,255,.7);
}
@media (max-width: 1020px) { .mode-label { display: none; } .mode-btn { padding: 0 6px; } }

.menu-btn {
  display: none; flex-shrink: 0;
  height: 40px; padding: 0 14px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: .85rem; cursor: pointer;
  align-items: center; gap: 8px;
}
.menu-btn i { display: block; width: 16px; height: 2px; background: currentColor; position: relative; border-radius: 2px; transition: transform .2s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, top .2s; }
.menu-btn i::before { top: -5px; } .menu-btn i::after { top: 5px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { margin-left: 0; }
  .hd-in { flex-wrap: wrap; }
  .mode-btn { margin-left: auto; }
  .nav {
    order: 10; width: 100%;
    display: none;
    padding: 6px 0 12px;
  }
  .nav.is-open { display: block; animation: drop .25s ease; }
  .nav-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav-list a { border: 2px solid var(--line); background: var(--card); padding: 10px 8px; font-size: 1rem; box-shadow: 2px 2px 0 var(--line); }
  .nav-list a:hover { transform: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 460px) {
  .hd-in { gap: 8px; }
  .menu-btn { padding: 0; width: 42px; justify-content: center; }
  .menu-btn .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .logo img { width: 36px; height: 36px; }
  .logo-name { font-size: 1.02rem; }
}
@media (max-width: 340px) { .logo-sub { display: none; } }

/* ---------- 4. Buttons, chips, stickers --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.5em .78em;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.4;
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, background-color .2s;
}
.btn:hover { color: var(--paper); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }
.btn--ghost { background: var(--card); color: var(--ink); }
.btn--ghost:hover { color: var(--ink); }
.btn--red { background: var(--red); color: var(--on-red); }
.btn--red:hover { color: var(--on-red); }
.btn--yellow { background: var(--yellow); color: var(--fx-ink); }
.btn--yellow:hover { color: var(--fx-ink); }
.btn--small { font-size: .88rem; padding: .6em 1.15em .55em; }
.btn--wide { width: 100%; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.chip {
  display: inline-block; padding: .12em .85em .1em;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-size: .78rem; font-weight: 700; line-height: 1.6; letter-spacing: .04em; white-space: nowrap;
}
a.chip { text-decoration: none; transition: transform .15s; }
a.chip:hover { transform: rotate(-3deg) scale(1.05); }
.chip--red { background: var(--red); color: var(--on-red); }
a.chip--red:hover { color: var(--on-red); }
.chip--green { background: var(--green); color: var(--on-red); }
.chip--yellow { background: var(--yellow); color: var(--fx-ink); }
.chip--lav { background: var(--lav); color: var(--fx-ink); }
.chip--ink { background: var(--ink); color: var(--paper); }

.burst {
  position: absolute; z-index: 3;
  width: 120px; height: 120px;
  display: grid; place-items: center; text-align: center;
  padding: 18px;
  font-family: var(--f-head); font-weight: 900; font-size: .86rem; line-height: 1.3; color: var(--fx-ink);
  transform: rotate(-12deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='98,50 89.2,57.8 94.3,68.4 83.3,72.2 83.9,83.9 72.2,83.3 68.4,94.3 57.8,89.2 50,98 42.2,89.2 31.6,94.3 27.8,83.3 16.1,83.9 16.7,72.2 5.7,68.4 10.8,57.8 2,50 10.8,42.2 5.7,31.6 16.7,27.8 16.1,16.1 27.8,16.7 31.6,5.7 42.2,10.8 50,2 57.8,10.8 68.4,5.7 72.2,16.7 83.9,16.1 83.3,27.8 94.3,31.6 89.2,42.2' fill='%23F2BE3F' stroke='%231F2336' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(3px 3px 0 rgba(31, 35, 54, .85));
  animation: wobble 4s ease-in-out infinite;
}
.burst--red {
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='98,50 89.2,57.8 94.3,68.4 83.3,72.2 83.9,83.9 72.2,83.3 68.4,94.3 57.8,89.2 50,98 42.2,89.2 31.6,94.3 27.8,83.3 16.1,83.9 16.7,72.2 5.7,68.4 10.8,57.8 2,50 10.8,42.2 5.7,31.6 16.7,27.8 16.1,16.1 27.8,16.7 31.6,5.7 42.2,10.8 50,2 57.8,10.8 68.4,5.7 72.2,16.7 83.9,16.1 83.3,27.8 94.3,31.6 89.2,42.2' fill='%23D2462F' stroke='%231F2336' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@keyframes wobble { 0%, 100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(-6deg) scale(1.04); } }

.tape {
  position: absolute; z-index: 2; top: -13px; left: 50%;
  width: 96px; height: 26px; margin-left: -48px;
  background: rgba(242, 190, 63, .6);
  border-left: 3px dotted rgba(255, 255, 255, .45); border-right: 3px dotted rgba(255, 255, 255, .45);
  transform: rotate(-4deg);
}
.tape--green { background: rgba(75, 122, 67, .45); }
.tape--lav { background: rgba(156, 139, 214, .55); }

/* hand-written red-pen notes */
.hand {
  display: inline-block;
  font-family: var(--f-hand); font-size: 1.04rem; line-height: 1.55; letter-spacing: .02em;
  color: var(--red-ink);
  transform: rotate(-2deg);
}
.hand, .ft-joke, .kairan-head span, .serious-flag, .bag-usage, .moon-tip { font-weight: 600; }
.hand--block { display: block; margin-top: 14px; }
.hand--green { color: var(--green-ink); }
.hand::before { content: "\203B\00A0"; }
.hand--noicon::before { content: none; }
.hand--arrow::before { content: "\2190\00A0"; }

/* red hanko stamp */
.stamp {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--red); color: var(--red);
  font-family: var(--f-head); font-weight: 900; font-size: .82rem; line-height: 1.15; text-align: center;
  transform: rotate(-14deg);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--red);
  opacity: .92;
}

/* ---------- 5. Hero ------------------------------------------------------ */
.hero { position: relative; padding: clamp(36px, 7vw, 84px) 0 clamp(44px, 7vw, 92px); overflow: hidden; }
.hero-in { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.08fr .92fr; gap: 52px; } }
.hero-text { position: relative; z-index: 2; }
.kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-latin); font-style: italic; font-weight: 600; font-size: .98rem;
  color: var(--red-ink); letter-spacing: .03em; line-height: 1.5;
}
.kicker::before {
  content: ""; width: 13px; height: 13px; flex-shrink: 0; background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.hero-title {
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(2.35rem, 7.6vw, 4.7rem); line-height: 1.2; letter-spacing: .02em;
  margin: .22em 0 .32em;
  text-shadow: .055em .055em 0 var(--yellow);
}
.hero-title--s { font-size: clamp(2.1rem, 6.2vw, 3.8rem); }
html[data-mode="night"] .hero-title { text-shadow: .055em .055em 0 #B3361F; }
.hero-title .small { display: block; font-size: .42em; letter-spacing: .08em; text-shadow: none; margin-bottom: .3em; font-family: var(--f-body); font-weight: 700; color: var(--ink-2); }
.hero-sub { font-family: var(--f-latin); font-style: italic; color: var(--muted); font-size: 1.05rem; margin: -.2em 0 .7em; }
.hero-lead { font-size: clamp(1rem, 2.3vw, 1.1rem); color: var(--ink-2); max-width: 33em; line-height: 2; }
.hero-actions { margin-top: 26px; }
.hero-art { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
.hero-art > svg { display: block; width: 100%; height: auto; }

/* ---------- 6. Ticker ---------------------------------------------------- */
.ticker {
  position: relative; overflow: hidden; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
  font-weight: 700; font-size: .92rem;
}
.ticker-track { display: inline-flex; animation: tick 46s linear infinite; }
.ticker-group { display: flex; flex-shrink: 0; }
.ticker-track span { display: inline-flex; align-items: center; padding: .6em 0; }
.ticker-track span::after { content: "\2605"; color: var(--yellow); margin: 0 1.6em; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- 7. Sections -------------------------------------------------- */
.sec { position: relative; padding: clamp(60px, 9vw, 108px) 0; }
.sec--tight { padding: clamp(40px, 6vw, 72px) 0; }
.sec--alt { background: var(--paper-2); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.sec--alt + .sec--alt { border-top: 0; }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 740px; }
.sec-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-title {
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(1.7rem, 4.6vw, 2.65rem); line-height: 1.35; letter-spacing: .02em;
  margin: .25em 0 .45em;
}
.sec-title .mark { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }
html[data-mode="night"] .sec-title .mark { background: linear-gradient(transparent 62%, rgba(245, 205, 94, .45) 62%, rgba(245, 205, 94, .45) 92%, transparent 92%); }
.sec-lead { color: var(--ink-2); font-size: 1.02rem; line-height: 2; }
.sec-head--center .sec-lead { margin: 0 auto; max-width: 36em; }

.prose p + p { margin-top: 1.2em; }
.prose strong { background: linear-gradient(transparent 65%, rgba(242, 190, 63, .55) 65%); }
html[data-mode="night"] .prose strong { background: linear-gradient(transparent 65%, rgba(245, 205, 94, .3) 65%); }

.grid { display: grid; gap: 22px; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 8. Cards ----------------------------------------------------- */
.card {
  position: relative;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 28px);
}
:where(a.card) { display: block; }
a.card { text-decoration: none; transition: transform .18s, box-shadow .18s; }
a.card:hover { color: var(--ink); transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
a.card:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.card--yellow { background: var(--yellow); color: var(--fx-ink); }
a.card--yellow:hover { color: var(--fx-ink); }
.card--ink { background: var(--ink); color: var(--paper); }
.card-title { font-family: var(--f-head); font-weight: 900; font-size: 1.32rem; line-height: 1.45; margin: .4em 0 .35em; }
.card-title--s { font-size: 1.12rem; }
.card-body { color: var(--ink-2); font-size: .95rem; line-height: 1.95; }
.card--yellow .card-body { color: #3B3A45; }
.card-more { display: inline-flex; align-items: center; gap: .4em; margin-top: 14px; font-weight: 700; font-size: .92rem; color: var(--red-ink); }
a.card:hover .card-more { color: var(--red); }
.card-more::after { content: "\2192"; transition: transform .2s; }
a.card:hover .card-more::after { transform: translateX(4px); }
.card--yellow .card-more { color: var(--fx-ink); }

.note-box {
  position: relative;
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
  background: var(--card);
}
.note-box h3, .note-box .note-title { font-weight: 700; font-size: 1.02rem; margin-bottom: .35em; display: flex; align-items: center; gap: .5em; }
.note-box h3::before, .note-box .note-title::before { content: "\2605"; color: var(--red); }
.note-box p { color: var(--ink-2); font-size: .95rem; }
.note-box + .note-box { margin-top: 16px; }
.note-list > li { position: relative; padding-left: 1.5em; color: var(--ink-2); font-size: .95rem; }
.note-list > li + li { margin-top: .55em; }
.note-list > li::before { content: "\273F"; position: absolute; left: 0; top: 0; color: var(--green); }

/* ---------- 9. Reveal ---------------------------------------------------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .08s; } .js .rv-d2 { transition-delay: .16s; } .js .rv-d3 { transition-delay: .24s; }

/* ---------- 10. Share ---------------------------------------------------- */
.share { text-align: center; padding: 8px 0 clamp(56px, 8vw, 88px); }
.share-title { font-family: var(--f-head); font-weight: 900; font-size: 1.15rem; margin-bottom: 4px; }
.share-sub { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.share-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.share-btns .btn { min-width: 92px; }

/* ---------- 11. Footer (always the night sky) --------------------------- */
.ft {
  position: relative; margin-top: 0;
  background: var(--fx-sky); color: var(--fx-cream);
  border-top: 2px solid var(--fx-ink);
  padding: 56px 0 36px;
  background-image:
    radial-gradient(1.4px 1.4px at 22% 30%, rgba(245, 205, 94, .9) 50%, transparent 55%),
    radial-gradient(1.1px 1.1px at 72% 78%, rgba(243, 235, 213, .7) 50%, transparent 55%),
    radial-gradient(1.6px 1.6px at 86% 14%, rgba(243, 235, 213, .6) 50%, transparent 55%),
    radial-gradient(1px 1px at 41% 62%, rgba(243, 235, 213, .5) 50%, transparent 55%);
  background-size: 260px 260px, 310px 310px, 190px 190px, 230px 230px;
}
html[data-mode="night"] .ft { background-color: var(--fx-night); border-top-color: rgba(243, 235, 213, .25); }
.ft a { color: var(--fx-cream); text-decoration: none; }
.ft a:hover { color: #F5CD5E; text-decoration: underline; }
.ft-grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .ft-grid { grid-template-columns: 1.1fr 2fr; gap: 56px; } }
.ft-logo { display: flex; align-items: center; gap: 12px; }
.ft-logo img { width: 54px; height: 54px; }
.ft-name { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; }
.ft-catch { font-family: var(--f-head); font-weight: 900; font-size: 1.05rem; margin-top: 18px; color: #F5CD5E; }
.ft-tag { font-size: .85rem; opacity: .75; margin-top: 2px; }
.ft-joke { font-family: var(--f-hand); font-size: .95rem; opacity: .8; margin-top: 16px; line-height: 1.6; }
.ft-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
@media (min-width: 1000px) { .ft-nav { grid-template-columns: repeat(4, 1fr); } }
.ft-nav ul { list-style: none; padding: 0; margin: 0; }
.ft-nav h2 { font-family: var(--f-latin); font-style: italic; font-weight: 600; font-size: .95rem; color: #F5CD5E; margin-bottom: 8px; letter-spacing: .04em; }
.ft-nav li { font-size: .88rem; line-height: 1.6; }
.ft-nav li + li { margin-top: 7px; }
.ft-copy { margin-top: 44px; padding-top: 22px; border-top: 1px dashed rgba(243, 235, 213, .3); font-size: .74rem; opacity: .7; text-align: center; letter-spacing: .06em; }

/* the ladybug that walks on the footer edge */
.ft-bug {
  position: absolute; top: -17px; left: 0; z-index: 5;
  width: 34px; height: 30px; display: block;
  animation: bugwalk 38s linear infinite;
}
.ft-bug svg { width: 34px; height: 30px; display: block; }
.ft-bug:hover, .ft-bug:focus-visible { animation-play-state: paused; }
.ft-bug:hover svg { transform: scale(1.25) rotate(8deg); transition: transform .2s; }
@keyframes bugwalk {
  0% { left: -40px; transform: scaleX(1); }
  49% { left: calc(100% + 6px); transform: scaleX(1); }
  50% { left: calc(100% + 6px); transform: scaleX(-1); }
  99% { left: -40px; transform: scaleX(-1); }
  100% { left: -40px; transform: scaleX(1); }
}

/* ---------- 12. Mascot --------------------------------------------------- */
.kinoko {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end;
  pointer-events: none;
}
.kinoko[hidden] { display: none; }
.kinoko { transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.kinoko.is-shy { transform: translateX(72%) rotate(-18deg); }
.kinoko > * { pointer-events: auto; }
.kinoko-btn {
  width: 78px; height: 78px; padding: 0; border: 0; background: none; cursor: pointer;
  animation: bob 3.4s ease-in-out infinite;
  filter: drop-shadow(2px 3px 0 rgba(31, 35, 54, .45));
}
.kinoko-btn img { width: 100%; height: 100%; }
.kinoko.is-hop .kinoko-btn { animation: hop .55s cubic-bezier(.3, 1.8, .5, 1); }
.kinoko-bubble {
  position: relative;
  width: max-content; max-width: min(290px, calc(100vw - 36px));
  margin: 0 8px 12px 0; padding: 12px 16px 10px;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm);
  font-size: .9rem; line-height: 1.7;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.94); transform-origin: 85% 100%;
  transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1), visibility 0s .25s;
}
.kinoko-bubble::after {
  content: ""; position: absolute; right: 30px; bottom: -11px;
  width: 18px; height: 18px; background: var(--card);
  border-right: 2px solid var(--line); border-bottom: 2px solid var(--line);
  transform: rotate(45deg) skew(8deg, 8deg);
}
.kinoko.is-talking .kinoko-bubble { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1), visibility 0s; }
.kinoko-name { display: block; font-size: .7rem; font-weight: 700; color: var(--red-ink); letter-spacing: .08em; }
.kinoko-bye {
  display: block; margin: 6px 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: .72rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hop { 0% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-18px) rotate(-10deg); } 100% { transform: translateY(0) rotate(0); } }
@media (max-width: 640px) {
  .kinoko { right: 8px; bottom: 8px; }
  .kinoko-btn { width: 60px; height: 60px; }
  .ft { padding-bottom: 90px; }
}

/* ---------- 13. Forms ---------------------------------------------------- */
.form {
  position: relative; max-width: 760px; margin: 0 auto;
  background: var(--card);
  border: 2px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: clamp(24px, 5vw, 48px) clamp(18px, 5vw, 48px);
}
.form-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 2px dashed var(--line); }
.form-head p { font-family: var(--f-head); font-weight: 900; font-size: 1.15rem; line-height: 1.4; }
.form-head small { display: block; font-family: var(--f-body); font-size: .8rem; color: var(--muted); font-weight: 700; }
.field { margin-bottom: 24px; }
.field-label { display: flex; align-items: center; flex-wrap: wrap; gap: .3em .7em; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.field-label .en { color: var(--muted); font-size: .85rem; }
.req { display: inline-block; font-size: .7rem; line-height: 1.7; font-weight: 700; background: var(--red); color: var(--on-red); padding: 0 .65em; border-radius: 999px; }
.opt { display: inline-block; font-size: .7rem; line-height: 1.7; font-weight: 700; border: 1.5px solid var(--muted); color: var(--muted); padding: 0 .6em; border-radius: 999px; }
.input, .select, .textarea {
  display: block; width: 100%;
  font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line); border-radius: 12px;
  padding: .72em .95em;
  transition: box-shadow .15s, transform .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--red); transform: translate(-1px, -1px); }
.select {
  padding-right: 2.6em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23D2462F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8em center; background-size: 18px;
}
.textarea { min-height: 170px; resize: vertical; }
.textarea--s { min-height: 96px; }
.help { font-size: .84rem; color: var(--muted); margin-top: 7px; line-height: 1.7; }
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-submit { text-align: center; margin-top: 34px; }
.form-submit .btn { font-size: 1.1rem; padding: 1em 2.4em .95em; }
.form-submit .help { margin-top: 12px; }

/* ---------- 14. Page parts: home ---------------------------------------- */
/* sunrise disc */
.sunrise { position: relative; }
.sunrise-disc { width: 100%; height: auto; display: block; }
.sunrise-rise { animation: rise 2.2s cubic-bezier(.2, .8, .25, 1) .3s both; transform-box: fill-box; }
.sunrise-rays { transform-origin: 200px 190px; animation: spin 60s linear infinite; }
@keyframes rise { from { transform: translateY(70px); } to { transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit { position: absolute; inset: 0; animation: spin 48s linear infinite; pointer-events: none; }
.orbit .chip { position: absolute; font-size: .9rem; padding: .25em 1em; box-shadow: 2px 2px 0 var(--line); animation: spin 48s linear infinite reverse; }
.orbit .o1 { left: 50%; top: -2%; margin-left: -2.4em; }
.orbit .o2 { right: -3%; bottom: 18%; }
.orbit .o3 { left: -3%; bottom: 18%; }
.sunrise .burst { right: -2%; top: 2%; }
@media (max-width: 520px) { .sunrise .burst { width: 98px; height: 98px; font-size: .74rem; right: -4px; } }

/* three waraji */
.craft { display: flex; flex-direction: column; height: 100%; margin-top: 18px; }
.craft-top { display: flex; align-items: center; padding-right: 64px; min-height: 30px; }
.waraji { position: absolute; right: 16px; top: -24px; width: 50px; height: 84px; transform: rotate(14deg); transition: transform .3s; filter: drop-shadow(2px 2px 0 rgba(31, 35, 54, .35)); }
a.card:hover .waraji { transform: rotate(-4deg) translateY(-6px); }
.craft .card-body { flex: 1; }
.craft .hand { display: block; margin-top: 12px; font-size: .98rem; }
.craft .card-more { align-self: flex-start; }

.book-banner { display: grid; gap: 18px; align-items: center; margin-top: 30px; }
@media (min-width: 760px) { .book-banner { grid-template-columns: auto 1fr auto; gap: 28px; } }
.book-banner .card-title { margin-top: 0; }
.book-banner-icon { width: 76px; height: 76px; }

/* omikuji */
.mikuji { display: grid; gap: 30px; align-items: center; }
@media (min-width: 860px) { .mikuji { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.mikuji-box { text-align: center; }
.mikuji-box svg { width: 190px; height: auto; margin: 0 auto 18px; display: block; transform-origin: 50% 85%; }
.mikuji-box.is-shaking svg { animation: shake .7s ease-in-out; }
@keyframes shake {
  0%, 100% { transform: rotate(0); } 15% { transform: rotate(-16deg); } 30% { transform: rotate(14deg); }
  45% { transform: rotate(-12deg); } 60% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); }
}
.mikuji-count { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.slip {
  position: relative;
  background: var(--fx-card); color: var(--fx-ink);
  border: 2px solid var(--fx-ink); border-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: 26px 22px 22px;
  transform: rotate(1.2deg);
}
html[data-mode="night"] .slip { box-shadow: 7px 7px 0 rgba(243, 235, 213, .9); }
.slip::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid #D2462F; border-radius: 3px; pointer-events: none; }
.slip.is-pop { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: rotate(1.2deg) scale(.9) translateY(12px); opacity: .4; } to { transform: rotate(1.2deg) scale(1); opacity: 1; } }
.slip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1.5px dashed #D2462F; padding-bottom: 12px; margin-bottom: 14px; }
.slip-no { font-size: .8rem; font-weight: 700; color: #6A6570; letter-spacing: .1em; }
.slip-title { font-size: .85rem; font-weight: 700; color: #B3361F; }
.slip-rank { font-family: var(--f-display); font-size: clamp(2.4rem, 7vw, 3.3rem); line-height: 1.1; color: #D2462F; text-align: center; margin: 4px 0 2px; letter-spacing: .08em; }
.slip-rank-sub { text-align: center; font-size: .92rem; font-weight: 700; margin-bottom: 14px; color: #464A5E; }
.slip dl { display: grid; gap: 10px; }
.slip dl > div { display: grid; grid-template-columns: 6.6em 1fr; gap: 10px; align-items: baseline; font-size: .93rem; line-height: 1.75; }
.slip dt { font-weight: 700; font-size: .8rem; color: #fff; background: #1F2336; border-radius: 6px; text-align: center; padding: .1em .3em; }
.slip dd { color: #1F2336; }
.slip-foot { margin-top: 16px; font-size: .78rem; color: #6A6570; text-align: right; }
.slip.is-empty .slip-rank { color: #C9C2B0; }

/* kairan-ban (neighbourhood notice board) */
.kairan {
  position: relative; max-width: 860px; margin: 0 auto;
  background: var(--wood);
  background-image: repeating-linear-gradient(95deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 13px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 29px);
  border: 2px solid var(--fx-ink); border-radius: 18px;
  padding: 46px clamp(12px, 3vw, 26px) clamp(14px, 3vw, 26px);
  box-shadow: var(--shadow-lg);
}
html[data-mode="night"] .kairan { box-shadow: 7px 7px 0 rgba(243, 235, 213, .9); }
.kairan-clip {
  position: absolute; left: 50%; top: -14px; width: 150px; height: 46px; margin-left: -75px;
  background: linear-gradient(#D8D8DC, #9C9CA6); border: 2px solid var(--fx-ink); border-radius: 10px 10px 14px 14px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12);
}
.kairan-clip::after { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 12px; margin-left: -20px; border-radius: 999px; background: #6D6D78; border: 2px solid var(--fx-ink); }
.kairan-paper {
  background: #FFFCF3; color: var(--fx-ink);
  border: 2px solid var(--fx-ink); border-radius: 6px;
  padding: 18px clamp(12px, 3vw, 24px) 12px;
  background-image: repeating-linear-gradient(transparent 0 35px, rgba(31, 35, 54, .08) 35px 36px);
}
.kairan-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; border-bottom: 2px solid var(--fx-ink); padding-bottom: 10px; }
.kairan-head b { font-family: var(--f-head); font-weight: 900; font-size: 1.25rem; }
.kairan-head b::before { content: "\56DE\89A7"; display: inline-block; margin-right: .6em; padding: 0 .4em; font-size: .8rem; line-height: 1.7; vertical-align: .2em; color: #fff; background: #D2462F; border-radius: 4px; font-family: var(--f-body); font-weight: 700; }
.kairan-head span { font-size: .8rem; color: #6A6570; font-family: var(--f-hand); }
.kairan-list li { border-bottom: 1.5px dashed rgba(31, 35, 54, .3); }
.kairan-list a {
  display: grid; grid-template-columns: 1fr 52px; align-items: center; gap: 4px 12px;
  padding: 14px 4px; color: var(--fx-ink); text-decoration: none;
}
.kairan-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.kairan-meta time { font-family: var(--f-latin); font-style: italic; font-weight: 600; font-size: .92rem; color: #6A6570; }
.kairan-meta .chip { background: #FFFCF3; color: var(--fx-ink); border-color: var(--fx-ink); }
.kairan-title { display: block; grid-column: 1; font-weight: 700; font-size: 1.02rem; line-height: 1.6; margin-top: 3px; }
.kairan-list a:hover .kairan-title { color: #B3361F; text-decoration: underline; }
.kairan-in {
  grid-column: 2; grid-row: 1 / span 2;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px dashed rgba(31, 35, 54, .35);
  display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 900; font-size: 1.05rem; color: transparent;
  transition: all .2s;
}
.kairan-in::after { content: "\6E08"; }
.kairan-list a:hover .kairan-in, .kairan-list a:focus-visible .kairan-in {
  border: 3px solid #D2462F; color: #D2462F; transform: rotate(-14deg) scale(1.08);
}
.kairan-foot { text-align: right; margin-top: 12px; }
.kairan-foot a { color: var(--fx-ink); font-weight: 700; }

/* small corner cards */
.corner { display: flex; gap: 14px; align-items: flex-start; height: 100%; }
.corner-icon { width: 52px; height: 52px; flex-shrink: 0; }
.corner .card-title { margin-top: 0; font-size: 1.08rem; }
.corner .card-body { font-size: .88rem; line-height: 1.8; }

/* contact CTA */
.cta { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .cta { grid-template-columns: 200px 1fr; gap: 40px; } }
.cta-art { width: 180px; margin: 0 auto; }

/* ---------- 15. Page parts: about -------------------------------------- */
.manual { display: grid; gap: 30px; align-items: start; }
@media (min-width: 900px) { .manual { grid-template-columns: 1fr 1fr; gap: 44px; } }
.parts { position: relative; max-width: 420px; margin: 0 auto; }
.parts svg { width: 100%; height: auto; display: block; }
.parts-list li { display: grid; grid-template-columns: 2em 1fr; gap: 8px; font-size: .93rem; line-height: 1.75; }
.parts-list li + li { margin-top: 10px; }
.parts-no { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .85rem; margin-top: .1em; }
.parts-list b { display: block; }
.parts-list span { color: var(--ink-2); }
.spec { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec th, .spec td { border: 2px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; line-height: 1.75; }
.spec th { width: 7.5em; background: var(--paper-2); font-weight: 700; white-space: nowrap; }
.spec td { background: var(--card); }
.spec-cap { font-family: var(--f-head); font-weight: 900; font-size: 1.1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }

.serious { position: relative; }
.serious-flag { display: inline-flex; align-items: center; gap: .5em; font-family: var(--f-hand); color: var(--green-ink); font-size: 1rem; margin-bottom: 14px; }

.tools { display: grid; gap: 22px; }
@media (min-width: 760px) { .tools { grid-template-columns: 1.3fr 1fr; } }
.tool-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-list li { padding: .3em 1em .25em; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); font-weight: 700; font-size: .92rem; box-shadow: 2px 2px 0 var(--line); }
.tool-list li:nth-child(odd) { transform: rotate(-1.2deg); }
.tool-list li:nth-child(even) { transform: rotate(1deg); }

/* "ol.timeline" (not ".timeline") so it beats the "ol[class] { padding: 0 }" reset */
ol.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 44px; }
ol.timeline::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 3px; background: repeating-linear-gradient(var(--line) 0 8px, transparent 8px 14px); }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item::before {
  content: ""; position: absolute; left: -37px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--line);
}
.tl-item.is-big::before { background: var(--red); width: 24px; height: 24px; left: -40px; top: 2px; }
.tl-when { font-family: var(--f-latin); font-style: italic; font-weight: 600; color: var(--red-ink); font-size: 1rem; line-height: 1.4; }
.tl-title { font-weight: 700; font-size: 1.08rem; line-height: 1.5; margin: 2px 0 2px; }
.tl-body { color: var(--ink-2); font-size: .94rem; line-height: 1.85; }

.works li { position: relative; padding-left: 1.6em; font-size: .95rem; line-height: 1.8; color: var(--ink-2); }
.works li + li { margin-top: .5em; }
.works li::before { content: "\2605"; position: absolute; left: 0; color: var(--yellow); -webkit-text-stroke: 1px var(--line); }
.works-cat { font-weight: 700; font-size: 1.02rem; margin-bottom: 10px; }

.info-dl > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 14px 0; border-bottom: 2px dashed var(--line); }
.info-dl > div:first-child { border-top: 2px dashed var(--line); }
.info-dl dt { font-weight: 700; }
.info-dl dd { color: var(--ink-2); line-height: 1.9; }

/* ---------- 16. Page parts: farm --------------------------------------- */
.herbrow { position: relative; }
.herbrow svg { width: 100%; height: auto; display: block; overflow: visible; }
.herbrow-find { cursor: pointer; }
.herbrow-find:focus { outline: none; }
.herbrow-find:focus-visible .find-ring { stroke: var(--red); stroke-width: 3; }
.herbrow-find .find-cap { transition: transform .3s; transform-box: fill-box; transform-origin: 50% 100%; }
.herbrow-find:hover .find-cap { transform: rotate(-10deg); }
.herbrow-find.is-found { animation: found .7s cubic-bezier(.3, 1.8, .5, 1); transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes found { 0% { transform: scale(1); } 40% { transform: scale(1.35) translateY(-8px); } 100% { transform: scale(1); } }
.herbrow-cap { text-align: center; margin-top: 10px; }

.principle { text-align: left; }
.principle-no { font-family: var(--f-latin); font-style: italic; font-weight: 600; color: var(--red-ink); font-size: 1rem; }
.principle-en { font-family: var(--f-latin); font-style: italic; color: var(--muted); font-size: .92rem; }
.principle .hand { font-size: .95rem; margin-top: 12px; }

.specimens { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.specimen {
  position: relative; background: #FFFCF3; color: var(--fx-ink);
  border: 2px solid var(--fx-ink); border-radius: 4px;
  padding: 26px 18px 16px; box-shadow: var(--shadow);
  transition: transform .2s;
}
html[data-mode="night"] .specimen { box-shadow: 4px 4px 0 rgba(243, 235, 213, .9); }
.specimen:nth-child(3n+1) { transform: rotate(-1.2deg); }
.specimen:nth-child(3n+2) { transform: rotate(.8deg); }
.specimen:nth-child(3n) { transform: rotate(-.4deg); }
.specimen:hover { transform: rotate(0) translateY(-4px); }
.specimen svg { width: 76px; height: 88px; margin: 0 auto 6px; display: block; }
.specimen-latin { text-align: center; font-family: var(--f-latin); font-style: italic; color: #6A6570; font-size: .9rem; }
.specimen-name { text-align: center; font-family: var(--f-head); font-weight: 900; font-size: 1.3rem; line-height: 1.4; }
.specimen dl { margin-top: 12px; border-top: 1.5px solid var(--fx-ink); }
.specimen dl > div { display: grid; grid-template-columns: 3.4em 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px dashed rgba(31, 35, 54, .35); font-size: .88rem; line-height: 1.65; }
.specimen dt { font-weight: 700; color: #B3361F; }
.specimen dd { color: #2F3244; }

.archive { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .archive { grid-template-columns: 120px 1fr auto; gap: 30px; } }
.archive-icon { width: 110px; height: 110px; }
.archive-url { font-family: var(--f-latin); font-style: italic; font-size: .95rem; color: var(--muted); }

.seasons { display: grid; gap: 18px; }
@media (min-width: 700px) { .seasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .seasons { grid-template-columns: repeat(4, 1fr); } }
.season { border-top: 10px solid var(--c, var(--green)); }
.season-en { font-family: var(--f-latin); font-style: italic; font-weight: 600; color: var(--muted); font-size: .92rem; }
.season .card-title { margin-top: .1em; }
.season-woe { margin-top: 14px; padding-top: 10px; border-top: 2px dashed var(--line); font-size: .88rem; }
.season-woe b { color: var(--red-ink); margin-right: .3em; }

.diary { display: grid; gap: 18px; align-items: start; }
@media (min-width: 760px) { .diary { grid-template-columns: 120px 1fr; gap: 28px; } }
.diary-date { text-align: center; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); padding: 10px 6px 8px; width: 120px; }
.diary-date b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; margin-bottom: 6px; }
.diary-date span { display: block; font-family: var(--f-latin); font-style: italic; font-size: .9rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- 17. Page parts: manga -------------------------------------- */
.panels { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.panel {
  position: relative; overflow: hidden;
  background: #FFFCF3; color: var(--fx-ink);
  border: 3px solid var(--fx-ink);
  min-height: 150px; display: grid; place-items: center; text-align: center; padding: 14px;
}
html[data-mode="night"] .panel { border-color: var(--fx-cream); }
.panel--wide { grid-column: 1 / -1; min-height: 190px; }
.panel--speed { background: repeating-conic-gradient(from 0deg at 50% 50%, #FFFCF3 0deg 4deg, #1F2336 4deg 5deg); }
.panel--speed::before { content: ""; position: absolute; inset: 8% 6%; background: radial-gradient(closest-side, #FFFCF3 62%, rgba(255, 252, 243, 0) 100%); }
.panel--dots { background: #FFFCF3 radial-gradient(rgba(31, 35, 54, .22) 1.6px, transparent 1.8px) 0 0 / 9px 9px; }
.panel-text { position: relative; font-family: var(--f-head); font-weight: 900; font-size: clamp(1.1rem, 3.4vw, 1.6rem); line-height: 1.4; }
.panel-shout { position: relative; font-family: var(--f-head); font-weight: 900; font-size: clamp(1.5rem, 5vw, 2.3rem); line-height: 1.2; color: #D2462F; transform: rotate(-4deg); text-shadow: 3px 3px 0 #1F2336; -webkit-text-stroke: 1px #1F2336; }
.panel img.panel-kinoko { position: relative; width: 108px; height: 108px; }
.panel .sweat { position: absolute; right: 22%; top: 22%; width: 18px; height: 26px; }
.panel-bubble {
  position: relative; background: #fff; border: 2.5px solid #1F2336; border-radius: 50%;
  padding: 16px 20px; font-weight: 700; font-size: .95rem; line-height: 1.5;
}

.carousel { position: relative; max-width: 860px; margin: 0 auto; }
.carousel-frame {
  position: relative; overflow: hidden; overflow: clip;
  border: 3px solid var(--line); border-radius: 6px; background: var(--fx-ink);
  box-shadow: var(--shadow-lg);
}
.carousel-track { display: flex; transition: transform .5s cubic-bezier(.3, .8, .3, 1); }
.carousel-slide { flex: 0 0 100%; margin: 0; position: relative; }
.carousel-slide img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #FFFCF3; }
.carousel-slide figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: #FFFCF3; color: var(--fx-ink); border: 2px solid var(--fx-ink); border-radius: 999px;
  padding: .2em 1em; font-weight: 700; font-size: .88rem; box-shadow: 2px 2px 0 var(--fx-ink);
}
.carousel-btn {
  position: absolute; top: 50%; z-index: 2; margin-top: -24px;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--fx-ink); background: #FFFCF3; color: var(--fx-ink);
  font-size: 1.4rem; font-weight: 700; line-height: 1; cursor: pointer;
  box-shadow: 2px 2px 0 var(--fx-ink); display: grid; place-items: center;
}
.carousel-btn:hover { background: var(--yellow); }
.carousel-prev { left: 10px; } .carousel-next { right: 10px; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.carousel-dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); padding: 0; cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--red); transform: scale(1.2); }

.episodes { display: grid; gap: 22px; }
@media (min-width: 720px) { .episodes { grid-template-columns: repeat(2, 1fr); } }
.ep { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ep-thumb { aspect-ratio: 3 / 2; background: var(--paper-2); border-bottom: 2px solid var(--line); overflow: hidden; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s; }
a.ep:hover .ep-thumb img { transform: scale(1.04); }
.ep-thumb--none { display: grid; place-items: center; align-content: center; gap: 6px; background: var(--paper-2) radial-gradient(rgba(31, 35, 54, .18) 1.6px, transparent 1.8px) 0 0 / 10px 10px; }
.ep-thumb--none span { font-family: var(--f-head); font-weight: 900; font-size: 1.3rem; background: var(--card); border: 2px solid var(--line); padding: .3em 1em; transform: rotate(-3deg); }
.ep-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.ep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ep-meta time { font-family: var(--f-latin); font-style: italic; font-weight: 600; color: var(--muted); }
.ep .card-body { flex: 1; }

.themes { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .themes { grid-template-columns: repeat(4, 1fr); } }
.theme { text-align: center; }
.theme svg { width: 64px; height: 64px; margin: 0 auto 6px; display: block; }
.theme .card-title { margin: .1em 0 .2em; font-size: 1.1rem; }
.theme .card-body { font-size: .88rem; }

.yokoku {
  position: relative; max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--fx-ink); color: var(--fx-cream);
  border: 3px solid var(--line); padding: 30px 22px 26px;
  box-shadow: var(--shadow-lg);
}
.yokoku-label { display: inline-block; font-family: var(--f-head); font-weight: 900; font-size: .95rem; background: #F2BE3F; color: var(--fx-ink); padding: .1em .9em; transform: rotate(-3deg); margin-bottom: 12px; }
.yokoku-title { font-family: var(--f-head); font-weight: 900; font-size: clamp(1.3rem, 4vw, 1.8rem); line-height: 1.5; }
.yokoku p { opacity: .85; font-size: .92rem; margin-top: 8px; }

.bigquote { max-width: 720px; margin: 0 auto; text-align: center; font-family: var(--f-head); font-weight: 900; font-size: clamp(1.25rem, 3.6vw, 1.8rem); line-height: 1.75; }
.bigquote::before { content: "\201C"; display: block; font-family: var(--f-latin); font-size: 4rem; line-height: .6; color: var(--red); }
.bigquote cite { display: block; margin-top: 14px; font-family: var(--f-latin); font-style: italic; font-size: 1rem; color: var(--muted); }

/* ---------- 18. Page parts: uranai ------------------------------------ */
.zodiac { position: relative; }
.zodiac-wheel { transform-origin: 50% 50%; transform-box: fill-box; animation: spin 120s linear infinite; }
.zodiac-center { cursor: pointer; }
.methods .card { text-align: left; }
.method-icon { width: 58px; height: 58px; margin-bottom: 6px; }
.gloss { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .gloss { grid-template-columns: 1fr auto; gap: 30px; } }
.gloss-words { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.gloss-words span { font-family: var(--f-head); font-weight: 900; font-size: .95rem; padding: .15em .8em; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); }
.gloss-words span:nth-child(2) { transform: rotate(-3deg); }
.gloss-words span:nth-child(3) { transform: rotate(2deg); }

.menu3 { display: grid; gap: 22px; }
@media (min-width: 900px) { .menu3 { grid-template-columns: repeat(3, 1fr); } }
.menu3 .card { display: flex; flex-direction: column; }
.menu3 .card-body { flex: 1; }
.menu3 .card > .btn { align-self: flex-start; }
.menu3-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.menu3-sub { margin-top: 14px; border-top: 2px dashed var(--line); padding-top: 12px; }
.menu3-sub dt { font-weight: 700; font-size: .95rem; }
.menu3-sub dd { font-size: .88rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 10px; }
.open-stamp { width: 60px; height: 60px; font-size: .78rem; }

.promise { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; align-items: center; }
@media (min-width: 700px) { .promise { grid-template-columns: auto 1fr; gap: 26px; } }
.promise-icon { width: 96px; height: 96px; margin: 0 auto; }
.promise p.big { font-family: var(--f-head); font-weight: 900; font-size: clamp(1.15rem, 3.2vw, 1.45rem); line-height: 1.6; }

/* ---------- 19. Page parts: booking ----------------------------------- */
.chooser { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.chooser a {
  display: grid; grid-template-columns: 1fr; gap: 6px; align-items: center;
  padding: 14px 18px; border: 2px solid var(--line); border-radius: 14px; background: var(--card);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
@media (min-width: 720px) { .chooser a { grid-template-columns: 1fr 40px 1fr; gap: 14px; } }
.chooser a:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.chooser-q { font-weight: 700; }
.chooser-q::before { content: "Q."; font-family: var(--f-latin); font-style: italic; color: var(--red-ink); margin-right: .4em; }
.chooser-arrow { display: none; text-align: center; font-weight: 700; color: var(--red); font-size: 1.3rem; }
@media (min-width: 720px) { .chooser-arrow { display: block; } }
.chooser-a { font-family: var(--f-head); font-weight: 900; font-size: 1.02rem; }
.chooser-a::before { content: "\2192\00A0"; color: var(--red); font-family: var(--f-body); font-weight: 700; }
@media (min-width: 720px) { .chooser-a::before { content: none; } }

.bags { display: grid; gap: 26px; }
@media (min-width: 760px) { .bags { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .bags--3 { grid-template-columns: repeat(3, 1fr); } }
.bag {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 4px 4px 14px 14px;
  box-shadow: var(--shadow);
  padding: 30px 22px 22px;
}
.bag::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 14px;
  border: 2px solid var(--line); border-bottom: 0; border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(90deg, var(--paper-2) 0 10px, var(--card) 10px 20px);
}
.bag::after { content: ""; position: absolute; inset: 22px 10px 10px; border: 2px solid var(--bag, var(--red)); border-radius: 2px 2px 8px 8px; pointer-events: none; opacity: .75; }
.bag--green { --bag: var(--green); } .bag--lav { --bag: var(--lav); } .bag--yellow { --bag: var(--yellow); } .bag--ink { --bag: var(--ink); }
.bag > * { position: relative; z-index: 1; }
.bag-head { text-align: center; padding: 6px 4px 12px; }
.bag-kind { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .3em; padding: .05em .6em .05em .9em; background: var(--bag, var(--red)); color: var(--on-red); border-radius: 4px; }
.bag--yellow .bag-kind, .bag--lav .bag-kind { color: var(--fx-ink); }
.bag-name { font-family: var(--f-head); font-weight: 900; font-size: 1.55rem; line-height: 1.35; margin-top: 8px; }
.bag-en { font-family: var(--f-latin); font-style: italic; color: var(--muted); font-size: .92rem; }
.bag-usage { font-family: var(--f-hand); color: var(--red-ink); font-size: .95rem; margin-top: 4px; }
.price { margin: 8px 6px 4px; }
.price-row { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1.5px dotted var(--muted); }
.price-row dt { font-weight: 700; font-size: .96rem; line-height: 1.5; }
.price-row dt small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.price-row dd { margin-left: auto; font-family: var(--f-display); font-size: 1.25rem; white-space: nowrap; line-height: 1.3; }
.price-row dd small { font-family: var(--f-body); font-weight: 700; font-size: .72rem; margin-left: 2px; }
.price-row dd.soft { font-family: var(--f-body); font-weight: 700; font-size: .95rem; }
.price-row--total { border-bottom: 0; border-top: 2px solid var(--line); margin-top: 6px; padding-top: 12px; }
.price-row--total dt { font-size: 1.02rem; }
.price-row--total dd { font-size: 1.6rem; color: var(--red-ink); }
.bag-note { font-size: .86rem; color: var(--ink-2); line-height: 1.85; margin: 12px 6px 0; flex: 1; }
.bag-actions { margin: 18px 6px 4px; display: grid; gap: 10px; }

.iroha-cap { margin: 0 auto 30px; max-width: 860px; }
.plan { display: flex; flex-direction: column; }
.plan-top { display: flex; align-items: center; gap: 14px; }
.plan-kana {
  flex-shrink: 0; width: 64px; height: 64px; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 2rem; line-height: 1;
  border: 2px solid var(--line); border-radius: 50%; background: var(--yellow); color: var(--fx-ink);
  box-shadow: 2px 2px 0 var(--line); transform: rotate(-8deg);
}
.plan-en { font-family: var(--f-latin); font-style: italic; color: var(--muted); font-size: .9rem; }
.plan .card-title { margin: 0; }
.plan-for { font-weight: 700; margin-top: 14px; }
.plan .card-body { margin-top: 8px; }
.plan .price { margin: 14px 0 0; }
.plan .btn { margin-top: 16px; align-self: flex-start; }

.lock-note { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px; border: 2px solid var(--red); border-radius: 12px; background: var(--card); font-weight: 700; font-size: .95rem; }

/* ---------- 20. Page parts: reservation ------------------------------- */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; margin: 0 auto; }
.slot {
  text-align: center; background: var(--card); border: 2px solid var(--line); border-radius: 12px;
  padding: 16px 6px 12px; box-shadow: var(--shadow-sm);
}
.slot b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 5vw, 1.8rem); line-height: 1.2; }
.slot span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.slot:nth-child(1) { transform: rotate(-2deg); } .slot:nth-child(3) { transform: rotate(2deg); }
.mini-price { max-width: 560px; margin: 0 auto 30px; }

/* ---------- 21. Page parts: visit ------------------------------------- */
.tilemap-wrap { display: grid; gap: 26px; align-items: center; }
@media (min-width: 880px) { .tilemap-wrap { grid-template-columns: 1.3fr 1fr; gap: 40px; } }
.tilemap {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(10, auto);
  gap: 4px; max-width: 560px; margin: 0 auto; width: 100%;
}
.pref {
  aspect-ratio: 1; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 5px;
  background: var(--card); color: var(--muted);
  font-size: clamp(.5rem, 1.6vw, .72rem); font-weight: 700; line-height: 1; text-align: center; letter-spacing: 0;
  overflow: hidden; white-space: nowrap;
}
.pref--go { background: var(--red); color: var(--on-red); border-width: 2px; }
.pref--home { background: var(--yellow); color: var(--fx-ink); border-width: 2px; position: relative; box-shadow: 0 0 0 3px var(--red); z-index: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .88rem; font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--card); }
.legend .lg-go { background: var(--red); }
.legend .lg-home { background: var(--yellow); box-shadow: 0 0 0 2px var(--red); }
.map-frame { border: 2px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

.car-road { position: relative; height: 70px; margin-top: 10px; overflow: hidden; }
.car-road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 18px, transparent 18px 30px); }
.car { position: absolute; bottom: 10px; left: -130px; width: 118px; animation: drive 16s linear infinite; }
@keyframes drive { to { left: calc(100% + 20px); } }

.area { display: flex; flex-direction: column; }
.car-bob { animation: bob 1.4s ease-in-out infinite; }
.area-where { font-family: var(--f-head); font-weight: 900; font-size: 1.15rem; line-height: 1.5; margin-top: 8px; }

/* ---------- 22. Page parts: witch ------------------------------------- */
.runes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; display: none; }
@media (min-width: 1200px) { .runes { display: block; } }
.runes span { position: absolute; font-size: 2rem; color: var(--lav); opacity: .32; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.moon-card { display: grid; gap: 22px; align-items: center; }
@media (min-width: 700px) { .moon-card { grid-template-columns: 180px 1fr; gap: 34px; } }
.moon-svg { width: 170px; height: 170px; margin: 0 auto; display: block; }
.moon-name { font-family: var(--f-head); font-weight: 900; font-size: 1.6rem; line-height: 1.3; }
.moon-age { font-family: var(--f-latin); font-style: italic; color: var(--muted); }
.moon-tip { margin-top: 10px; }
.moon-card .moon-age { color: #CFC8DC; }
.moon-card .moon-name { color: #F3EBD5; }
.practice-glyph { font-size: 2.3rem; line-height: 1; color: var(--lav); -webkit-text-stroke: 1px var(--line); }
.practice-en { font-family: var(--f-latin); font-style: italic; color: var(--muted); font-size: .92rem; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; margin: 0 auto; }
.tagcloud li { border: 2px solid var(--line); border-radius: 999px; padding: .25em 1em; background: var(--card); font-weight: 700; font-size: .92rem; box-shadow: 2px 2px 0 var(--line); }
.tagcloud li .en { font-size: .8rem; color: var(--muted); margin-right: .45em; }
.tagcloud li:nth-child(3n+1) { transform: rotate(-2deg); } .tagcloud li:nth-child(3n+2) { transform: rotate(1.5deg); }

/* ---------- 23. Page parts: shop -------------------------------------- */
.tansu {
  display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr);
  padding: 16px; border: 3px solid var(--fx-ink); border-radius: 10px;
  background: #8E5F32;
  background-image: repeating-linear-gradient(92deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 16px);
  box-shadow: var(--shadow-lg);
  max-width: 960px; margin: 0 auto;
}
html[data-mode="night"] .tansu { box-shadow: 7px 7px 0 rgba(243, 235, 213, .9); }
@media (min-width: 820px) { .tansu { grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 20px; } }
.drawer {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--wood); background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .06));
  border: 2px solid var(--fx-ink); border-radius: 6px;
  padding: 16px 12px 16px; color: var(--fx-ink);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15);
  transition: transform .2s, box-shadow .2s;
}
.drawer--wide { grid-column: 1 / -1; }
@media (min-width: 820px) { .drawer--wide { grid-column: span 2; grid-row: span 2; justify-content: center; } }
.drawer:hover { transform: translateY(6px) scale(1.02); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15), 0 -6px 0 rgba(0, 0, 0, .35); }
.drawer-label {
  background: #FFFCF3; border: 2px solid var(--fx-ink); border-radius: 3px;
  padding: .25em .8em; font-weight: 700; font-size: .98rem; line-height: 1.5;
}
.drawer--wide .drawer-label { font-family: var(--f-head); font-weight: 900; font-size: 1.4rem; padding: .3em 1.1em; }
.drawer-en { font-family: var(--f-latin); font-style: italic; font-size: .82rem; margin-top: 6px; color: #3B2A18; }
.drawer-knob { width: 26px; height: 26px; margin: 10px auto 8px; border-radius: 50%; border: 3px solid #5B4A2E; background: radial-gradient(circle, #E3C98B 30%, #B8974E 70%); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.drawer-desc { font-size: .84rem; line-height: 1.75; color: #2B2016; }
.drawer--wide .drawer-desc { font-size: .95rem; max-width: 22em; }
.drawer .chip { margin-top: 10px; }

.rx { display: grid; gap: 22px; }
@media (min-width: 900px) { .rx { grid-template-columns: repeat(3, 1fr); } }
.rx-no { font-family: var(--f-latin); font-style: italic; font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--red-ink); }
.rx-en { font-family: var(--f-latin); font-style: italic; color: var(--muted); font-size: .9rem; }

.shopcard { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .shopcard { grid-template-columns: 150px 1fr auto; gap: 30px; } }
.shopcard svg { width: 140px; height: 140px; margin: 0 auto; }

/* ---------- 24. Page parts: activity ---------------------------------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 18px 10px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: 1.2; margin-bottom: 6px; color: var(--red-ink); }
.stat span { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.log-sec + .log-sec { margin-top: 44px; }
.log-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.log-head h3 { font-family: var(--f-head); font-weight: 900; font-size: 1.35rem; line-height: 1.4; }
.log-head .en { color: var(--muted); font-size: .95rem; }
.log-year { display: grid; gap: 10px; }
@media (min-width: 760px) { .log-year { grid-template-columns: 90px 1fr; gap: 18px; } }
.log-year + .log-year { margin-top: 16px; padding-top: 16px; border-top: 2px dashed var(--line); }
.log-y { font-family: var(--f-latin); font-style: italic; font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--red-ink); }
.log li { position: relative; padding-left: 30px; font-size: .94rem; line-height: 1.75; }
.log li + li { margin-top: 6px; }
.log li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--red); background: radial-gradient(circle, var(--red) 0 3px, transparent 3.5px);
  opacity: .85;
}
.log li:nth-child(even)::before { transform: rotate(20deg); }

/* ---------- 25. Page parts: links ------------------------------------- */
.tickets { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ticket-name, .ticket-route { overflow-wrap: anywhere; }
.tickets li { filter: drop-shadow(3px 3px 0 var(--line)); }
.ticket {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 14px 30px 14px 30px;
  background: #E9F1E1; color: var(--fx-ink); text-decoration: none;
  background-image: repeating-linear-gradient(45deg, rgba(75, 122, 67, .09) 0 2px, transparent 2px 7px);
  border: 2px solid var(--fx-ink); border-radius: 6px;
  -webkit-mask: radial-gradient(circle 11px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  transition: transform .15s;
}
.ticket--pink { background-color: #F7E3DC; background-image: repeating-linear-gradient(45deg, rgba(210, 70, 47, .08) 0 2px, transparent 2px 7px); }
.ticket--blue { background-color: #E1E6F3; background-image: repeating-linear-gradient(45deg, rgba(35, 42, 72, .08) 0 2px, transparent 2px 7px); }
.ticket--gold { background-color: #F7EBC9; background-image: repeating-linear-gradient(45deg, rgba(168, 120, 66, .1) 0 2px, transparent 2px 7px); }
.ticket:hover { color: var(--fx-ink); transform: translate(-2px, -2px) rotate(-.5deg); }
.ticket-route { grid-column: 1; font-size: .78rem; font-weight: 700; color: #464A5E; letter-spacing: .06em; }
.ticket-route b { color: #B3361F; }
.ticket-name { grid-column: 1; font-family: var(--f-head); font-weight: 900; font-size: 1.08rem; line-height: 1.45; }
.ticket-url { grid-column: 1; font-family: var(--f-latin); font-style: italic; font-size: .84rem; color: #464A5E; word-break: break-all; line-height: 1.4; }
.ticket-no { grid-column: 2; grid-row: 1 / span 3; writing-mode: vertical-rl; font-size: .72rem; font-weight: 700; letter-spacing: .15em; color: #6A6570; border-left: 2px dashed rgba(31, 35, 54, .4); padding-left: 10px; height: 100%; display: flex; align-items: center; }

/* ---------- 26. Page parts: policy ------------------------------------ */
.doc {
  position: relative; max-width: 820px; margin: 0 auto;
  background: var(--card); border: 2px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 5vw, 56px) clamp(18px, 5vw, 56px);
}
.doc-lead { text-align: center; color: var(--ink-2); line-height: 2.1; padding-bottom: 26px; border-bottom: 3px double var(--line); }
.article { padding: 30px 0 26px; border-bottom: 2px dashed var(--line); }
.article:last-of-type { border-bottom: 0; }
.article-no { font-family: var(--f-latin); font-style: italic; font-weight: 600; color: var(--red-ink); font-size: .95rem; }
.article h2 { font-family: var(--f-head); font-weight: 900; font-size: 1.4rem; line-height: 1.45; margin: 4px 0 14px; }
.article h3 { font-weight: 700; font-size: 1rem; margin: 18px 0 6px; display: flex; align-items: center; gap: .5em; }
.article h3::before { content: ""; width: 10px; height: 10px; background: var(--red); border-radius: 2px; transform: rotate(45deg); flex-shrink: 0; }
.article p, .article li { color: var(--ink-2); font-size: .96rem; line-height: 1.95; }
.article p + p { margin-top: .8em; }
.article ul { margin: 6px 0; padding-left: 0; list-style: none; }
.article ul li { padding-left: 1.2em; position: relative; }
.article ul li::before { content: "\30FB"; position: absolute; left: 0; }
.article em { font-style: normal; font-weight: 700; color: var(--ink); background: linear-gradient(transparent 62%, rgba(242, 190, 63, .6) 62%); }
html[data-mode="night"] .article em { background: linear-gradient(transparent 62%, rgba(245, 205, 94, .3) 62%); }
.hours { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours th, .hours td { border: 2px solid var(--line); padding: 10px 14px; text-align: left; font-size: .96rem; }
.hours th { background: var(--paper-2); width: 9.5em; font-weight: 700; }
.sign { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 36px; }
.sign p { text-align: right; font-weight: 700; line-height: 1.6; }
.sign p small { display: block; font-family: var(--f-latin); font-style: italic; color: var(--muted); font-weight: 400; }
.hanko { width: 86px; height: 86px; flex-shrink: 0; transform: rotate(-10deg); }

/* ---------- 27. Thanks ------------------------------------------------ */
.post-art { width: 190px; margin: 0 auto; }
.post-art .letter { animation: post 2.4s cubic-bezier(.5, 0, .3, 1) .4s both; }
@keyframes post { 0% { transform: translate(-70px, -90px) rotate(-30deg); opacity: 0; } 30% { opacity: 1; } 75% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(0, 26px); opacity: 0; } }

/* ---------- 28. Share-links (internal) ------------------------------- */
.sl-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .88rem; }
.sl-table th, .sl-table td { border: 2px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.sl-table th { background: var(--ink); color: var(--paper); }
.sl-table code { font-size: .82rem; word-break: break-all; }
.sl-table .btn { margin: 4px 4px 0 0; }
.sl-fn { display: block; font-weight: 700; }
.sl-tt { display: block; color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) {
  .sl-table thead { display: none; }
  .sl-table tr { display: block; border: 2px solid var(--line); margin-bottom: 14px; }
  .sl-table td { display: block; border: 0; border-bottom: 1px dashed var(--line); }
}

/* ---------- 29. Motion preferences ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker { white-space: normal; }
  .ticker-track { animation: none; display: block; }
  .ticker-group { flex-wrap: wrap; justify-content: center; padding: 0 12px; }
  .ticker-group[aria-hidden="true"] { display: none; }
  .js .rv { opacity: 1; transform: none; }
  .ft-bug { left: 20px; }
  .car { left: 30%; }
}
