/* ==========================================================
   依頼者ごとの装飾
   style.css の後に読み込まれ、同じセレクタなら、こちらが勝つ。
   テンプレート側も setup-site も、このファイルは触らない。依頼者ごとの見た目の作り込みは、すべてここに書く
   (Claude Code に「こうしたい」と頼めば、ここに書く。setup-site は brief.md だけを入力にするので、ここは触らない)
   (style.css を直接変えると、テンプレートの修正を取り込むときに衝突するため)。
   配色・フォント・角丸は、ここではなく brief.md の「デザイン方針」で変える(文字の読みやすさの検査を通すため)。
   ========================================================== */

/* 見立て: 中華街の軒先のスパイス屋「八星スパイス工場」。
   暖簾・格子窓・赤提灯・扁額・百味箪笥(薬棚)・帳面・貼り紙を、節ごとの部品に当てる。
   キービジュアル1枚目の格子の窓枠と提灯、衣装の八角と茶色から取った */

:root {
  /* 装飾用に足した色。文字を載せる組み合わせは palette.mjs で検査済み(下の各所のコメント) */
  --wood: #4a2e1e;        /* こげ茶の板(暖簾・扁額・札・フッター)。衣装の茶色 */
  --wood-mid: #7a4a2c;    /* 板の木目の明るいところ */
  --wood-light: #f1dcbc;  /* 百味箪笥の引き出しの板 */
  --wood-edge: #8a5a36;   /* 引き出しの縁 */
  --lacquer: #a8342a;     /* 提灯と組紐の赤。キービジュアル1枚目の赤提灯 */
  --lacquer-dark: #7a2a1d;/* 格子窓の枠 */
  --glow: #f39a2b;        /* 灯のともった提灯(装飾のみ。文字には使わない) */
  --gold: #d9a441;        /* 八角の留め具・細い金の線(装飾のみ) */
  --paper: #fffaf1;       /* 帳面・貼り紙・短冊の紙 */
  --on-wood: #fdf7f0;     /* 板の上の文字。--wood の上で 11.6:1、--lacquer の上で 6.2:1 */
  --on-wood-soft: #ead8c4;/* 板の上の小さい文字。--wood の上で 8.9:1 */
  --on-wood-link: #ffd9a8;/* 板の上のリンク。--wood の上で 9.3:1 */
  --drawer-muted: #5e4636;/* 引き出しの上の補助の文字。--wood-light の上で 6.5:1(--muted は 4.4:1 で足りない) */
  --drawer-link: #8e470f; /* 引き出しの上のリンク。--wood-light の上で 5.1:1(--accent は 4.0:1 で足りない) */

  --font-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  --font-sign: "Dela Gothic One", "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* ---------- 下地: 生成りの地に、中華格子(線が四角く折れ返す紋様)を薄く敷く ---------- */

body {
  font-weight: 500;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(243, 154, 43, .16), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M4 4h48v48H4zM14 14h28v28H14zM22 22h12v12H22z' fill='none' stroke='%23c9a27e' stroke-opacity='.13' stroke-width='1.5'/%3E%3C/svg%3E");
  background-attachment: fixed, scroll;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }

main { display: block; }

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  font-weight: 700; text-decoration: none; line-height: 1.4;
  color: var(--wood); background: var(--paper);
  border: 2px solid var(--wood); border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--wood);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s;
}
.btn-primary { color: var(--on-accent); background: var(--accent); border-color: var(--wood); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--wood); }
@media (hover: hover) {
  .btn:hover { background: #fff3e2; }
  .btn-primary:hover { background: var(--accent-hover); }
}

/* ---------- 表紙: 暖簾と格子窓 ---------- */

.hero {
  display: grid; justify-items: center; gap: 22px;
  padding: 0 16px 40px;
  text-align: center;
}

/* 暖簾: 竿から5枚の布が下がる。1枚に1字 */
.noren { margin: 0; width: min(100%, 640px); font-weight: 400; }
.noren-rod {
  display: block; height: 14px; margin: 0 -8px;
  background: linear-gradient(180deg, var(--wood-mid), var(--wood));
  border-radius: 7px;
  box-shadow: 0 3px 6px rgba(74, 46, 30, .35);
}
.noren-cloths { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: -4px; }
.noren-cloths > span {
  display: grid; place-items: center;
  height: clamp(104px, 27vw, 168px);
  padding-top: 8px;
  font-family: var(--font-sign);
  font-size: clamp(34px, 10vw, 64px); line-height: 1;
  color: var(--on-wood);
  background:
    linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 100%) 0 0 / 9px 100%,
    linear-gradient(180deg, #5a3622, var(--wood) 70%);
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.12);
  transform-origin: 50% 0;
}
/* 真ん中の「シ」だけ、主色で染め分ける(のっぺりさせない) */
.noren-cloths > span:nth-child(3) { background: linear-gradient(180deg, #b8611c, var(--accent) 70%); }
.noren-en {
  display: block; margin-top: 12px;
  font-size: 13px; letter-spacing: .24em; color: var(--muted);
}

/* 提灯の列(キービジュアルのドット)。組紐に吊るす */
.lanterns {
  position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 18px;
  width: min(86vw, 440px); padding-top: 6px; margin-bottom: -6px;
  --kv-hit-x: 13px;
}
.lanterns::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 6px; height: 14px;
  border-top: 2px solid var(--lacquer);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleY(-1); transform-origin: 50% 0;
}
.lanterns .kv-dots { display: flex; gap: 26px; }
.kv-dot {
  display: block; padding: 0; margin: 0; cursor: pointer;
  background: none; border: 0; color: inherit;
}
.lantern { position: relative; display: grid; justify-items: center; width: 26px; }
.lantern-cap { width: 12px; height: 5px; background: var(--wood); border-radius: 2px; }
.lantern-body {
  width: 26px; height: 32px;
  background:
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(0,0,0,.18) 6px 7px),
    var(--lacquer);
  border-radius: 50% / 46%;
  opacity: .55;
  transition: opacity .25s, box-shadow .25s, background-color .25s;
}
.lantern-tassel { width: 4px; height: 10px; background: var(--gold); border-radius: 0 0 2px 2px; }
/* 今の1枚の提灯に、灯がともる */
.kv-dot[aria-current="true"] .lantern-body {
  opacity: 1;
  background:
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(122,42,29,.25) 6px 7px),
    radial-gradient(circle at 50% 45%, #ffd27a, var(--glow) 55%, var(--lacquer));
  box-shadow: 0 0 16px 4px rgba(243, 154, 43, .55);
}

/* 格子窓: 赤い枠に格子の模様、内側に金の細い線。キービジュアルは窓の奥 */
.hero-visual { margin: 0; display: grid; justify-items: center; gap: 12px; }
.window {
  position: relative;
  width: min(86vw, 440px);
  padding: 16px;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 210, 140, .22) 7px 9px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 210, 140, .22) 7px 9px),
    var(--lacquer-dark);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(74, 46, 30, .28), inset 0 0 0 3px var(--wood);
}
.window .kv {
  border-radius: 4px;
  outline: 2px solid var(--gold); outline-offset: 3px;
  background: var(--paper);
}

/* 前後のボタン: 窓の左右の格子戸 */
.shutter { position: absolute; top: 50%; translate: 0 -50%; z-index: 1; }
.shutter-prev { left: -14px; }
.shutter-next { right: -14px; }
.kv-nav { padding: 0; margin: 0; background: none; border: 0; cursor: pointer; color: var(--on-wood); }
.shutter-face {
  display: grid; place-items: center;
  width: 38px; height: 76px;
  background:
    linear-gradient(90deg, transparent 0 17px, rgba(255, 210, 140, .35) 17px 21px, transparent 21px),
    linear-gradient(180deg, transparent 0 24px, rgba(255, 210, 140, .35) 24px 27px, transparent 27px 49px, rgba(255, 210, 140, .35) 49px 52px, transparent 52px),
    var(--wood);
  border: 2px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  transition: transform .15s;
}
.shutter-face svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: var(--wood); border-radius: 50%; padding: 2px; }
.kv-nav:active .shutter-face { transform: scale(.94); }
@media (hover: hover) { .kv-nav:hover .shutter-face { background-color: var(--wood-mid); } }

/* 自動の切り替えを止める札。提灯の列の右端に吊るす(ドットではないボタン = .kv-toggle) */
.lanterns .kv-toggle {
  align-self: center; margin-left: 4px;
  min-height: 36px; padding: 4px 14px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700;
  color: var(--wood); background: var(--paper);
  border: 1.5px solid var(--wood); border-radius: 999px;
}

.hero-text { display: grid; justify-items: center; gap: 12px; max-width: 34em; }
.hero-catch {
  margin: 6px 0 0;
  font-size: clamp(22px, 6vw, 30px); font-weight: 700; line-height: 1.5;
  color: var(--accent);
}
.hero-lead { margin: 0; font-size: 15px; line-height: 1.9; color: var(--muted); }
/* 配信内容: 香辛料の瓶に貼るラベルに見立てた札 */
.hero-streams { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.hero-streams-label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.spice-tags { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.spice-tags li {
  padding: 3px 14px;
  font-size: 15px; font-weight: 700;
  color: var(--wood); background: var(--wood-light);
  border: 1.5px solid var(--wood-edge); border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4);
}
.hero-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- 節: 扁額の見出しと、組紐の区切り ---------- */

.sec {
  max-width: var(--maxw); margin: 0 auto;
  padding: 32px 20px 40px;
  scroll-margin-top: 16px;
}
.sec-tight { padding-top: 24px; padding-bottom: 32px; }
/* 節の境目に、組紐と結び玉を1本渡す */
.sec + .sec::before {
  content: ""; display: block;
  width: min(320px, 70%); height: 16px; margin: 0 auto 32px;
  background:
    radial-gradient(circle at 50% 50%, var(--lacquer) 0 5px, var(--gold) 5px 6.5px, transparent 7px),
    linear-gradient(var(--lacquer), var(--lacquer)) 50% 50% / 100% 2px no-repeat;
}
.sec-tight + .sec::before, .sec + .sec-tight::before { margin-bottom: 24px; }

/* 扁額: こげ茶の板に生成りの看板文字。両端を八角の留め具で止める */
.sign {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: fit-content; max-width: 100%;
  margin: 0 auto 36px; padding: 12px 22px;
  font-family: var(--font-sign); font-weight: 400;
  font-size: clamp(28px, 7.5vw, 46px); line-height: 1.2; letter-spacing: .04em;
  color: var(--on-wood);
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 0 3px, transparent 3px) 0 0 / 11px 100%,
    linear-gradient(180deg, #5a3622, var(--wood));
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--wood), inset 0 0 0 5px var(--gold), 0 8px 16px rgba(74, 46, 30, .22);
}
.sign-pin { flex: none; width: 26px; height: 26px; fill: var(--gold); }

/* ---------- プロフィール: 立ち絵と、百味箪笥の引き出し ---------- */

.tachie-zoom {
  background: var(--paper);
  border: 3px solid var(--lacquer-dark);
  border-radius: 8px;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold), 0 10px 22px rgba(74, 46, 30, .2);
}
.tachie-tab {
  min-height: 40px; padding: 6px 14px;
  font: inherit; font-size: 14px; font-weight: 700;
  color: var(--wood); background: var(--wood-light);
  border: 2px solid var(--wood-edge); border-radius: 6px;
}
.tachie-tab[aria-selected="true"] { color: var(--on-wood); background: var(--wood); border-color: var(--wood); }
.tachie-credit { font-size: 13px; color: var(--muted); }

/* 引き出し1段 = 1項目。板の中に名札(dt)、値(dd)、右下に真鍮の取っ手 */
.facts { gap: 10px; padding: 10px; background: var(--wood); border-radius: 10px; box-shadow: 0 10px 22px rgba(74, 46, 30, .22); }
.drawer {
  position: relative;
  display: grid; align-content: start; gap: 6px;
  padding: 12px 14px 28px;
  background:
    repeating-linear-gradient(95deg, transparent 0 18px, rgba(138, 90, 54, .07) 18px 20px),
    var(--wood-light);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--wood-edge), inset 0 0 0 5px rgba(255,255,255,.35);
}
.drawer dt { margin: 0; }
.drawer dt [data-fact-label] {
  display: inline-block; padding: 1px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--wood); background: var(--paper);
  border: 1px solid var(--wood-edge); border-radius: 2px;
}
.drawer dd { font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.drawer dd small { display: block; font-size: 13px; font-weight: 500; color: var(--drawer-muted); }
.drawer .copy-text-large { font-size: 26px; }
.drawer-knob {
  position: absolute; right: 12px; bottom: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fbe3a0, var(--gold) 55%, #8f6a1f);
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.drawer dd a { color: var(--drawer-link); font-weight: 700; }
/* ハッシュタグは1行 = タグ + コピーボタン。タグの列とボタンの列に分け、長いタグでもボタンが下に落ちない(タグの側が折り返す) */
.drawer .copy-list .copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
.drawer .copy-list .copy-text { overflow-wrap: anywhere; }
/* ハッシュタグは X の検索へのリンク(profile.js の searchLink)。下線で押せることを示す */
.drawer .tag-link { text-decoration: underline; text-underline-offset: 3px; }
.drawer .copy-btn {
  display: inline-grid; justify-items: center; white-space: nowrap;
  min-height: 34px; padding: 3px 12px;
  font: inherit; font-size: 13px; font-weight: 700;
  color: var(--on-accent); background: var(--accent);
  border: 0; border-radius: 999px;
}
.copy-label,
.copy-btn::after { grid-area: 1 / 1; }
.copy-btn::after { content: "コピーしました"; visibility: hidden; }
.drawer .copy-btn:active { background: var(--accent-hover); }
@media (hover: hover) { .drawer .copy-btn:hover { background: var(--accent-hover); } }

/* ---------- リンク: 軒に掛けた明るい木札 ---------- */
/* Why not: 見出しの扁額と同じ濃い板にすると、どれが押せるリンクか見分けが付かず、濃い板が3枚続いて重かった。
   明るい木の地にこげ茶の文字で色を反転させ、右端の矢印で押せることを示す */

.link-tags {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  width: min(100%, 520px);
}
.link-tags a {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
  height: 100%; padding: 16px 12px 12px 16px;
  text-decoration: none; color: var(--wood);
  background:
    repeating-linear-gradient(95deg, transparent 0 18px, rgba(138, 90, 54, .07) 18px 20px),
    var(--wood-light);
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--wood-edge), inset 0 0 0 5px rgba(255,255,255,.35), 0 4px 10px rgba(74, 46, 30, .16);
  transform-origin: 50% 0;
  transition: transform .15s ease;
}
/* 札を吊るす穴 */
.link-tags a::before {
  content: ""; position: absolute; top: 6px; left: 50%; translate: -50% 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--wood-edge);
}
.link-text { display: grid; gap: 0; min-width: 0; }
.link-name { font-family: var(--font-sign); font-size: 20px; line-height: 1.3; }
.link-sub { font-size: 13px; color: var(--drawer-muted); overflow-wrap: anywhere; }
.link-arrow {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 20px; font-weight: 700; line-height: 1;
  color: var(--on-accent); background: var(--accent);
}
.link-tags a:active { transform: rotate(-1.5deg); }
@media (hover: hover) {
  .link-tags a:hover { transform: rotate(-1.5deg); }
  .link-tags a:hover .link-arrow { background: var(--accent-hover); }
}

/* ---------- 営業時間: 店先の札 ---------- */
/* Why not: 濃い板にすると、見出しの扁額と同じ見た目の塊が続いて重かった。リンクの札と同じく明るい木の地にし、
   朝・夜は提灯の赤の丸札、時刻はこげ茶の大きな字にする */

.hours-board {
  width: min(100%, 440px); margin: 0 auto; padding: 22px 24px 18px;
  color: var(--wood); text-align: center;
  background:
    repeating-linear-gradient(95deg, transparent 0 18px, rgba(138, 90, 54, .07) 18px 20px),
    var(--wood-light);
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--wood-edge), inset 0 0 0 5px rgba(255,255,255,.35), 0 6px 14px rgba(74, 46, 30, .16);
}
.hours-desc { margin: 0 0 10px; font-size: 15px; color: var(--drawer-muted); }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hours-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 4px; border-bottom: 1px dashed rgba(138, 90, 54, .45);
}
.hours-label {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-sign); font-size: 18px; line-height: 1;
  color: var(--on-wood); background: var(--lacquer);
  box-shadow: 0 0 0 2px var(--wood-light), 0 0 0 3.5px var(--gold);
}
.hours-time { margin-left: auto; font-size: clamp(26px, 7vw, 34px); font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--wood); }
.hours-note { margin: 12px 0 0; font-size: 14px; color: var(--drawer-muted); }

/* ---------- 思い出帳: 帳場の帳面 ---------- */

.ledger {
  width: min(100%, 680px); margin: 0 auto; padding: 18px 20px 18px 34px;
  background:
    linear-gradient(90deg, transparent 0 18px, var(--lacquer) 18px 20px, transparent 20px) 0 0 / 100% 100% no-repeat,
    var(--paper);
  border: 1px solid #e3cfb4; border-radius: 4px;
  box-shadow: 6px 6px 0 var(--wood-light), 0 8px 18px rgba(74, 46, 30, .14);
}
.history { list-style: none; margin: 0; padding: 0; }
.history li {
  display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px dashed #d9c3a5;
}
.history li:last-child { border-bottom: 0; }
.history time, .history li > span:first-child {
  font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.history-text { font-size: 16px; }
@media (max-width: 480px) {
  .history li { grid-template-columns: 1fr; }
}

/* ---------- ギャラリー: 棚に並べた額 ---------- */

.gallery-lead { margin: 0 0 28px; text-align: center; color: var(--muted); }
.tag {
  display: inline-block; padding: 2px 12px; margin-left: 4px;
  font-weight: 700; color: var(--wood); background: var(--wood-light);
  border: 1.5px solid var(--wood-edge); border-radius: 999px;
}
.tag a { color: inherit; }
.art button {
  padding: 6px; background: var(--paper);
  border: 1px solid #e3cfb4; border-radius: 4px;
  box-shadow: 0 6px 14px rgba(74, 46, 30, .16);
}
.art figcaption { margin: 8px 2px 22px; font-size: 13px; color: var(--muted); }
/* スマホは2列。1列(style.css の 260px 以上)だと、26枚が縦に1枚ずつ並んでページが長くなりすぎる。
   列の数と間隔だけを変える(display と grid-auto-rows は、JS の段の計算と対なので触らない) */
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  .art button { padding: 4px; }
  .art figcaption { margin: 6px 2px 16px; font-size: 12px; }
}

/* ---------- お約束: 店の貼り紙 ---------- */

.rules {
  counter-reset: rule;
  list-style: none;
  width: min(100%, 640px); margin: 0 auto; padding: 26px 26px 22px;
  background: var(--paper);
  border: 2px solid var(--lacquer);
  outline: 1px solid var(--lacquer); outline-offset: -8px;
  border-radius: 2px;
  box-shadow: 0 10px 20px rgba(74, 46, 30, .15);
  rotate: -.6deg;
}
.rules li p { margin: 0; }
.rules li {
  counter-increment: rule;
  position: relative; padding: 8px 0 8px 44px; font-size: 16px;
}
.rules li::before {
  content: counter(rule);
  position: absolute; left: 0; top: 8px;
  display: grid; place-items: center; width: 30px; height: 30px;
  font-family: var(--font-sign); font-size: 16px; line-height: 1;
  color: var(--on-wood); background: var(--lacquer); border-radius: 50%;
}

/* ---------- フッター: こげ茶の板 ---------- */

.footer {
  margin-top: 40px; padding: 36px 20px calc(36px + env(safe-area-inset-bottom));
  text-align: center; font-size: 13px;
  color: var(--on-wood-soft); background: var(--wood);
  box-shadow: inset 0 4px 0 var(--lacquer-dark), inset 0 6px 0 var(--gold);
}
.footer p { margin: 6px 0; }
.footer a { color: var(--on-wood-link); }
.footer .copy { margin-top: 14px; color: var(--on-wood); }

/* ---------- 拡大表示 ---------- */
/* 前後のボタンは、主色の不透明な地と白い縁(style.css の既定)のまま。押している間だけ色を変える */
.lb-nav:active, .lb-close:active { background: var(--accent-hover); }
@media (hover: hover) { .lb-nav:hover, .lb-close:hover { background: var(--accent-hover); } }

/* ---------- メニュー: 品書きの短冊 ---------- */

.brand { text-decoration: none; }
.nav-toggle { padding: 0; margin: 0; border: 0; background: none; }

/* 広い画面: 左端に縦書きの短冊を吊るす。本文は短冊の分だけ右へ寄せる */
@media (min-width: 721px) {
  body { padding-left: 76px; }
  .topbar {
    position: fixed; left: 14px; top: 0; z-index: 10;
    display: grid; justify-items: center; gap: 10px;
    padding-top: 0;
  }
  .topbar::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; translate: -50% 0;
    background: var(--lacquer); z-index: -1;
  }
  .brand { display: grid; justify-items: center; gap: 4px; padding-top: 10px; color: var(--wood); }
  .brand-lantern {
    width: 34px; height: 42px;
    background:
      repeating-linear-gradient(180deg, transparent 0 7px, rgba(122,42,29,.25) 7px 8px),
      radial-gradient(circle at 50% 45%, #ffd27a, var(--glow) 55%, var(--lacquer));
    border-radius: 50% / 46%;
    box-shadow: 0 0 14px 3px rgba(243, 154, 43, .45);
  }
  /* Why not: 縦書きの短冊は、幅の決まらない中で行の長さが短く見積もられ、漢字が2列に折り返す。折り返さない指定で1列に保つ */
  /* 名前は、こげ茶の札に載せる。地の無い文字だと、吊るす紐(.topbar::before)が文字の上を通って見えるため */
  .brand-text {
    writing-mode: vertical-rl; white-space: nowrap;
    padding: 10px 5px;
    font-family: var(--font-sign); font-size: 15px; letter-spacing: .1em;
    color: var(--on-wood); background: var(--wood);
    border-radius: 3px;
    box-shadow: inset 0 0 0 1.5px var(--gold), 0 3px 6px rgba(74, 46, 30, .25);
  }
  #siteNav { display: grid; justify-items: center; gap: 8px; }
  #siteNav a {
    writing-mode: vertical-rl; white-space: nowrap;
    padding: 12px 6px;
    font-size: 14px; font-weight: 700; letter-spacing: .2em; text-decoration: none;
    color: var(--wood); background: var(--paper);
    border: 1.5px solid var(--wood-edge); border-top: 4px solid var(--lacquer);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 3px 6px rgba(74, 46, 30, .18);
    transform-origin: 50% 0;
    transition: transform .2s ease, background-color .2s;
  }
  #siteNav a:active { transform: rotate(4deg); }
  @media (hover: hover) { #siteNav a:hover { background: var(--wood-light); transform: rotate(4deg); } }
  /* 背の低い画面では、短冊を詰める */
  @media (max-height: 760px) {
    .brand-text { display: none; }
    #siteNav { gap: 5px; }
    #siteNav a { padding: 8px 5px; font-size: 13px; letter-spacing: .12em; }
  }
}

/* スマホ: 右上に紐で吊るした赤提灯を押すと、短冊が横に並んで下へ開く。
   暖簾は提灯の分だけ幅を詰め、軒先で暖簾の横に提灯が下がる並びにする。
   Why not: 左下に置くと、提灯が画面の下から浮いて見え、吊るし物の見立てと合わなかった(依頼者の指摘) */
@media (max-width: 720px) {
  .topbar {
    position: fixed; right: 10px; top: 0; z-index: 10;
  }
  /* 吊るす紐 */
  .topbar::before {
    content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 14px; translate: -50% 0;
    background: var(--lacquer);
  }
  .noren { justify-self: start; width: calc(100% - 58px); }
  .brand { display: none; }
  .js .nav-toggle {
    position: relative;
    width: 56px; height: 70px; padding-top: 12px;
  }
  /* 提灯の形。三本線の代わりに、提灯そのものを押す */
  .nav-toggle-bar {
    display: block; width: 46px; height: 52px; margin: 6px auto 0;
    background:
      repeating-linear-gradient(180deg, transparent 0 8px, rgba(122,42,29,.28) 8px 9px),
      radial-gradient(circle at 50% 45%, #ffd27a, var(--glow) 55%, var(--lacquer));
    border-radius: 50% / 46%;
    box-shadow: 0 0 0 2px var(--wood), 0 0 16px 3px rgba(243, 154, 43, .5);
  }
  .nav-toggle::before {
    content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0;
    width: 20px; height: 8px; background: var(--wood); border-radius: 3px;
  }
  .js .topbar nav {
    top: calc(100% + 6px); bottom: auto; left: auto; right: 0;
  }
  .js #siteNav {
    display: flex; gap: 6px;
    padding: 10px; width: max-content; max-width: calc(100vw - 24px);
    background: var(--wood); border-radius: 8px;
    box-shadow: 0 8px 20px rgba(74, 46, 30, .35);
  }
  .js #siteNav a {
    writing-mode: vertical-rl; white-space: nowrap;
    display: block; padding: 12px 7px; min-width: 38px;
    font-size: 14px; font-weight: 700; letter-spacing: .14em; text-decoration: none;
    color: var(--wood); background: var(--paper);
    border-top: 4px solid var(--lacquer); border-radius: 0 0 3px 3px;
  }
  .js #siteNav a:active { background: var(--wood-light); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 720px) {
  /* 開閉の仕掛け(opacity と visibility)は style.css のまま。transition には、その2つも並べて書く */
  .js #siteNav { transform: translateY(-8px); transition: opacity .2s, visibility .2s, transform .25s ease; }
  .js .topbar.is-open #siteNav { transform: none; }
}

/* ---------- 動き: 暖簾が風に少し揺れる(動きを減らす設定では止まる) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .noren-cloths > span { animation: noren-sway 5s ease-in-out infinite; }
  .noren-cloths > span:nth-child(2n) { animation-delay: -1.2s; }
  .noren-cloths > span:nth-child(3n) { animation-delay: -2.6s; }
}
@keyframes noren-sway {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(-1.6deg); }
}
