/* 一乗谷 燈｜AKARI デモ版 案A ― 墨が主の夜 */
:root {
  --sumi: #17140f;      /* 墨：地の色 */
  --susu: #241d16;      /* 煤竹：格子の面 */
  --akari: #e8a54b;     /* 灯：差し色（ボタン・灯り・細線だけ） */
  --kinari: #ebe3d3;    /* 生成り：文字 */
  --hai: #a39784;       /* 灰：補足の文字 */
  --line: rgba(235, 227, 211, .14);
  --mincho: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --head-h: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); }
body {
  margin: 0; background: var(--sumi); color: var(--kinari);
  font-family: var(--gothic); font-size: 16px; line-height: 1.9; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--akari); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: var(--mincho); font-weight: 700; letter-spacing: .08em; line-height: 1.5; margin: 0; }

/* デモ用の帯と札 */
.demo-bar { background: #3a2a14; color: #f3d9a8; font-size: 12px; line-height: 1.5; padding: 6px var(--gutter); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.demo-bar button { background: none; border: 1px solid #f3d9a8; color: inherit; font: inherit; padding: 2px 10px; border-radius: 3px; cursor: pointer; white-space: nowrap; }
.tag { position: absolute; left: 8px; top: 8px; z-index: 3; font: 500 11px/1.4 var(--gothic); letter-spacing: .02em; padding: 2px 7px; border-radius: 2px; background: rgba(20, 16, 10, .78); color: #f3d9a8; pointer-events: none; }
.tag[data-kind="have"] { color: #bcd3c2; }
body.hide-tags .tag { display: none; }
/* 画像がまだ無いときの仮の枠 */
.ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; background: repeating-linear-gradient(135deg, #1c2533 0 14px, #1a2230 14px 28px); color: #b9c3d3; font-size: 13px; line-height: 1.6; }

/* ヘッダー */
.site-head { position: sticky; top: 0; z-index: 20; height: var(--head-h); display: flex; align-items: center; gap: 20px; padding: 0 var(--gutter); background: rgba(23, 20, 15, .82); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { filter: invert(1) brightness(.92); }
.brand-name { font-family: var(--mincho); font-size: 18px; letter-spacing: .14em; }
.brand-en { font-size: 11px; color: var(--hai); letter-spacing: .3em; }
.head-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.head-nav a { text-decoration: none; color: var(--hai); }
.head-nav a:hover { color: var(--kinari); }
.head-tools { display: flex; align-items: center; gap: 12px; }
.lang select { background: transparent; color: var(--kinari); border: 1px solid var(--line); border-radius: 3px; font: inherit; font-size: 13px; padding: 4px 6px; }
.lang option { color: #000; }
.btn-akari { display: inline-block; background: var(--akari); color: #1c1407; text-decoration: none; font-weight: 500; padding: 9px 20px; border-radius: 3px; letter-spacing: .08em; line-height: 1.4; border: 0; }
.btn-akari:hover { background: #f1b866; }
.btn-ghost { display: inline-block; border: 1px solid var(--line); text-decoration: none; padding: 8px 16px; border-radius: 3px; font-size: 14px; line-height: 1.4; }
.btn-ghost:hover { border-color: var(--akari); }
.link-line { color: var(--akari); text-underline-offset: 4px; font-size: 14px; }
.news-line { margin: 0; padding: 8px var(--gutter); font-size: 13px; color: var(--hai); border-bottom: 1px solid var(--line); }
.news-date { color: var(--akari); margin-right: 1em; }

/* 0 最初の画面 */
.hero { position: relative; height: calc(100svh - var(--head-h) - 38px); min-height: 520px; overflow: hidden; background: var(--sumi); }
.hero-stage, .hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img img { object-fit: cover; }
.hero-on { clip-path: circle(0% at var(--lx, 64%) var(--ly, 56%)); transition: clip-path 2.4s cubic-bezier(.3, .1, .2, 1); }
.hero.is-lit .hero-on { clip-path: circle(150% at var(--lx, 64%) var(--ly, 56%)); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 22, .55) 0%, rgba(10, 14, 22, 0) 38%, rgba(10, 8, 5, .7) 100%); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; top: clamp(28px, 8vh, 90px); left: var(--gutter); }
.hero-name { font-size: clamp(40px, 7vw, 88px); letter-spacing: .22em; writing-mode: vertical-rl; display: block; line-height: 1.15; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.hero-lead { font-family: var(--mincho); margin: 18px 0 0; font-size: clamp(15px, 1.6vw, 18px); letter-spacing: .16em; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.light-switch { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; background: rgba(23, 20, 15, .55); border: 1px solid rgba(232, 165, 75, .6); color: var(--kinari); border-radius: 40px; padding: 7px 18px 7px 8px; font: inherit; font-size: 14px; cursor: pointer; }
.ls-knob { width: 34px; height: 18px; border-radius: 9px; background: #3b342a; position: relative; transition: background .4s; }
.ls-knob::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #8d8270; transition: transform .4s, background .4s, box-shadow .4s; }
.hero.is-lit .ls-knob { background: #6b4a1c; }
.hero.is-lit .ls-knob::after { transform: translateX(16px); background: var(--akari); box-shadow: 0 0 12px var(--akari); }
.hero-foot { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(20px, 5vh, 48px); display: flex; align-items: center; gap: 18px; text-align: right; }
.hero-price { margin: 0; font-family: var(--mincho); font-size: 18px; letter-spacing: .08em; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.hero-price small { display: block; font-family: var(--gothic); font-size: 12px; color: #d8cfbf; }

/* 欄の共通 */
main > section { padding: clamp(64px, 10vw, 120px) var(--gutter); position: relative; }
.sec-head { display: flex; align-items: flex-start; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.v-title { writing-mode: vertical-rl; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: .3em; border-right: 1px solid var(--akari); padding-right: 10px; line-height: 1.3; }
.sec-note { margin: 0; color: var(--hai); max-width: 34em; font-size: 15px; align-self: flex-end; }
/* 障子の格子を薄く敷いた面（背景があることで写真と文が軽く見える） */
.lattice { background-color: var(--susu); background-image:
  linear-gradient(rgba(235, 227, 211, .035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(235, 227, 211, .035) 1px, transparent 1px);
  background-size: 92px 128px; background-position: -1px -1px; }

/* 1 燈について（写真と文を左右に振る） */
.pair { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; max-width: 1180px; margin: 0 auto clamp(48px, 8vw, 96px); }
.pair-rev { grid-template-columns: 1fr 1.25fr; }
.pair-rev .pair-img { order: 2; }
.pair-img { position: relative; margin: 0; }
.pair-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pair-img-tall { max-width: 420px; justify-self: end; width: 100%; }
.pair-img-tall img { aspect-ratio: 2 / 3; }
.pair-text h3 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 14px; }
.pair-text p { margin: 0; max-width: 30em; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 8px 0 8px 18px; border-bottom: 1px solid var(--line); position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: var(--akari); }

/* 2 お部屋（2段・手でめくる） */
.rooms { background: var(--sumi); }
.rows { display: grid; gap: 16px; }
.row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #3b4a60 transparent; }
.row-offset { padding-left: clamp(0px, 8vw, 120px); }
.room { flex: 0 0 clamp(260px, 30vw, 420px); scroll-snap-align: start; position: relative; }
.room figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #111824; }
.room figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; }
.room-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(8, 10, 16, .85)); }
.room-cap h3 { font-size: 19px; }
.room-cap p { margin: 2px 0 0; font-size: 13px; color: #d4ccbd; line-height: 1.6; }
.daynight .dn-night { opacity: 0; }
.daynight.is-night .dn-night { opacity: 1; }
.dn-switch { position: absolute; right: 12px; bottom: 14px; display: flex; border: 1px solid rgba(232, 165, 75, .7); border-radius: 3px; overflow: hidden; }
.dn-switch button { background: rgba(10, 12, 18, .6); color: var(--kinari); border: 0; font: inherit; font-size: 13px; padding: 3px 12px; cursor: pointer; }
.dn-switch button[aria-pressed="true"] { background: var(--akari); color: #1c1407; }
.plan { max-width: 760px; margin: clamp(36px, 6vw, 64px) auto 0; }
.plan svg { width: 100%; height: auto; }
.pl-family { fill: #18202c; stroke: #2c3a4e; }
.pl-fam-t { fill: #6c7a8e; font-size: 14px; text-anchor: middle; }
.pl-glass { stroke: #8fb3d9; stroke-width: 2; stroke-dasharray: 6 4; }
.pl-guest rect, .pl-guest-s { fill: #2b3a50; stroke: var(--akari); stroke-width: 1; }
.pl-engawa { fill: #3a3022; stroke: var(--akari); }
.pl-t { fill: var(--kinari); font-size: 13px; text-anchor: middle; }
.pl-garden { fill: #8fae8f; font-size: 13px; text-anchor: middle; }
.plan-note { font-size: 13px; color: var(--hai); }

/* 3 過ごし方（横に流れる帯） */
.days { padding-left: 0 !important; padding-right: 0 !important; overflow: hidden; }
.days .sec-head, .meal { padding: 0 var(--gutter); }
.marquee-pause { margin-left: auto; align-self: flex-end; background: none; border: 1px solid var(--line); color: var(--hai); font: inherit; font-size: 13px; padding: 4px 12px; border-radius: 3px; cursor: pointer; }
.marquee { position: relative; }
.mq-words { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.mq-track { display: flex; width: max-content; }
.mq-slow { animation: mq 140s linear infinite; }
.mq-slow span { font-family: var(--mincho); font-size: clamp(90px, 14vw, 200px); color: rgba(235, 227, 211, .05); padding: 0 .4em; letter-spacing: .1em; }
.mq-cards { position: relative; overflow-x: auto; scrollbar-width: none; }
.mq-cards::-webkit-scrollbar { display: none; }
#mqCards { animation: mq 70s linear infinite; padding: 20px 0; gap: 20px; }
.marquee:hover #mqCards, .marquee.paused #mqCards, .marquee.paused .mq-slow { animation-play-state: paused; }
.mq-card { margin: 0; position: relative; width: clamp(240px, 26vw, 360px); flex: none; }
.mq-card:nth-child(even) { margin-top: 48px; }
.mq-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mq-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 14px 12px; background: linear-gradient(transparent, rgba(10, 8, 5, .85)); font-size: 13px; line-height: 1.6; color: #d4ccbd; }
.mq-card figcaption b { display: block; font-family: var(--mincho); font-size: 18px; color: var(--kinari); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.meal { max-width: 860px; margin: clamp(32px, 5vw, 56px) auto 0; }
.meal h3 { font-size: 22px; margin-bottom: 8px; }
.meal p { margin: 0 0 10px; }

/* 4 周辺と体験 */
.around-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1180px; margin: 0 auto; }
.around-card { position: relative; display: block; text-decoration: none; aspect-ratio: 16 / 10; overflow: hidden; }
.around-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.around-card:hover img { transform: scale(1.04); }
.ac-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(10, 8, 5, .88)); font-size: 14px; color: #d4ccbd; }
.ac-text b { display: block; font-family: var(--mincho); font-size: 24px; color: var(--kinari); }

/* 5 宿泊案内（読む欄は少し明るい面） */
.stay { background: #221f1a; }
.stay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); max-width: 1180px; margin: 0 auto; }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--akari); font-family: var(--mincho); }
.spec dd { margin: 0; font-size: 15px; }
.rates-head { font-family: var(--mincho); font-size: 20px; margin: 0 0 10px; }
.rates-head small { display: block; font-family: var(--gothic); font-size: 12px; color: var(--hai); }
.rates-note { font-size: 12px; color: var(--hai); }
.book-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.rc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rc-btn { background: none; border: 1px solid var(--line); color: var(--kinari); font: inherit; font-size: 13px; padding: 3px 10px; border-radius: 3px; cursor: pointer; }
.rc-btn:disabled { opacity: .3; cursor: default; }
.rc-month { font-family: var(--mincho); }
.rc-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.rc-table th { color: var(--hai); font-weight: 400; padding: 4px 0; }
.rc-table td { text-align: center; padding: 5px 0; border: 1px solid rgba(235, 227, 211, .07); height: 52px; vertical-align: top; }
.rc-day { display: block; }
.rc-price { display: block; color: var(--akari); font-size: 12px; }
.rc-past, .rc-closed { color: #5a5348; }
.rc-sun .rc-day { color: #e48a7a; } .rc-sat .rc-day { color: #8fb3d9; }
.rc-today { outline: 1px solid var(--akari); outline-offset: -1px; }

/* 6 アクセス */
.access-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); max-width: 1180px; margin: 0 auto; align-items: center; }
.access-grid figure { margin: 0; position: relative; }
.access-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.addr { font-family: var(--mincho); font-size: 18px; margin: 0 0 12px; }

/* 7 よくある質問 */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-family: var(--mincho); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "＋"; color: var(--akari); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: #d4ccbd; }

/* 8 予約と一乗谷の宿 */
.reserve { padding: 0 !important; background: var(--sumi); }
.reserve-bg { position: relative; height: clamp(320px, 50vw, 560px); overflow: hidden; }
.reserve-bg img { width: 100%; height: 100%; object-fit: cover; }
.reserve-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 20, 15, .2), var(--sumi)); }
.reserve-body { position: relative; margin-top: -180px; text-align: center; padding: 0 var(--gutter) 64px; }
.reserve-body h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: .3em; }
.ota { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.family { border-top: 1px solid var(--line); padding: 36px var(--gutter) 48px; }
.family-t { text-align: center; font-family: var(--mincho); color: var(--hai); margin: 0 0 16px; }
.family-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 980px; margin: 0 auto; background: var(--line); }
.family-list a { background: var(--sumi); padding: 18px 12px; text-align: center; text-decoration: none; font-size: 13px; color: var(--hai); }
.family-list b { display: block; font-family: var(--mincho); font-size: 20px; color: var(--kinari); }
.family-list a[aria-current] b { color: var(--akari); }

.site-foot { padding: 40px var(--gutter) 110px; text-align: center; font-size: 13px; color: var(--hai); border-top: 1px solid var(--line); }
.foot-name { font-family: var(--mincho); font-size: 16px; color: var(--kinari); display: flex; gap: 8px; justify-content: center; align-items: center; }
.foot-name img { filter: invert(1) brightness(.92); }
.sp-book { display: none; }

/* スマホ */
@media (max-width: 860px) {
  .head-nav { display: none; }
  .head-book { display: none; }
  .head-tools { margin-left: auto; }
  .brand-en { display: none; }
  .demo-bar span { font-size: 11px; }
  .pair, .pair-rev, .stay-grid, .access-grid, .around-links { grid-template-columns: 1fr; }
  .pair-rev .pair-img { order: 0; }
  .pair-img-tall { justify-self: start; max-width: 300px; }
  .hero-foot { left: var(--gutter); right: var(--gutter); justify-content: space-between; text-align: left; }
  .hero-foot .btn-akari { display: none; }
  .sec-head { gap: 14px; }
  .room { flex-basis: 78vw; }
  .row-offset { padding-left: 0; }
  .mq-card { width: 64vw; }
  .family-list { grid-template-columns: 1fr 1fr; }
  .spec div { grid-template-columns: 5.5em 1fr; }
  .sp-book { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(23, 20, 15, .94); border-top: 1px solid var(--line); }
  .sp-book a { flex: 1; text-align: center; padding: 10px; text-decoration: none; border: 1px solid var(--line); border-radius: 3px; font-size: 15px; }
  .sp-book .btn-akari { border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-on, .room figure img, .around-card img { transition: none; }
  .mq-slow, #mqCards { animation: none; }
  .mq-cards { overflow-x: auto; }
}
.ota-note { font-size: 12px; color: var(--hai); margin: 12px 0 0; }
/* 昼夜カード：夜の絵がまだ無いときは、夜を選んだときだけ仮の枠を出す。切り替えボタンは説明の下に置く */
.daynight .ph-night { opacity: 0; transition: opacity .8s; }
.daynight.is-night .ph-night { opacity: 1; }
.room-cap .dn-switch { position: static; display: inline-flex; margin-top: 8px; }
/* 英語・韓国語は見出しを横書きに */
html[data-lang="en"] .hero-name, html[data-lang="ko"] .hero-name { writing-mode: horizontal-tb; letter-spacing: .06em; font-size: clamp(34px, 5.4vw, 72px); }
html[data-lang="en"] .v-title, html[data-lang="ko"] .v-title { writing-mode: horizontal-tb; border-right: 0; border-bottom: 1px solid var(--akari); padding: 0 0 6px; letter-spacing: .08em; }
html[data-lang="en"] body { letter-spacing: .01em; }
/* スマホ：最初の画面の料金が下の予約の帯に隠れないように */
@media (max-width: 860px) {
  .hero { height: calc(100svh - 250px); min-height: 460px; }
  .hero-foot { bottom: 18px; }
}

/* v2：Aの配置と面を保ち、情報と操作を補う。色の差分はこの変数群へ集約。 */
:root { --read-surface:#221f1a; --head-surface:rgba(23,20,15,.94); --demo-surface:#3a2a14; --demo-ink:#f3d9a8; --sumi:#17140f; --susu:#241d16;  --akari:#e8a54b; --kinari:#ebe3d3; --hai:#b6aa98; --line:rgba(235,227,211,.14); }
body { font-size:14px; }
p,li,dd { text-wrap:pretty; }
button,select,summary,a { min-width:44px; min-height:44px; }
button { cursor:pointer; font:inherit; }
a { display:inline-flex; align-items:center; }
button.link-line { background:none; border:0; text-decoration:underline; padding:8px 0; }
.arrow-link { background:none; border:0; color:var(--akari); text-decoration:underline; padding:8px 0; }
.demo-bar { background:var(--demo-surface); color:var(--demo-ink); flex-wrap:wrap; }
.demo-tools { display:flex; align-items:center; gap:8px; }
.site-head,.sp-book { background:var(--head-surface); }
.head-nav { gap:14px; }
.head-nav a { white-space:nowrap; }
.brand { flex-shrink:0; }
.lang select { min-width:84px; min-height:44px; }
#menuToggle { display:none; color:var(--kinari); background:transparent; border:1px solid var(--line); }
#mobileNav { position:fixed; top:60px; right:0; z-index:25; padding:16px; background:var(--susu); max-height:calc(100svh - 140px); overflow:auto; width:min(360px,100%); box-shadow:0 20px 50px #0008; }
#mobileNav a { display:flex; padding:8px 16px; text-decoration:none; border-bottom:1px solid var(--line); }
[hidden] { display:none !important; }
.stay-summary { display:grid; grid-template-columns:.7fr 1.2fr 1.4fr; gap:24px; padding:22px var(--gutter); border-bottom:1px solid var(--line); }
.stay-summary p { margin:0; }
.hero { padding:0; }
.hero-name { font-size:clamp(40px,7vw,88px); }
.light-history { margin:14px 0 0; max-width:24em; font-family:var(--mincho); text-shadow:0 2px 8px #000; }
.light-switch { margin-top:10px; }
.hero-price span,.hero-price strong { display:block; }
.hero-price strong { font-size:24px; }
.pair-text p { font-size:14px; max-width:34em; }
.pair-text p + p { margin-top:18px; }
.lamp-fact { font-family:var(--mincho); font-size:clamp(19px,2vw,25px) !important; }
.pair-img-tall { max-width:480px; }
.room-cap small { display:block; font-size:14px; }
.row-offset { padding-left:clamp(24px,8vw,120px); }
.room-more { max-width:1000px; margin:36px auto 0; }
details { border-bottom:1px solid var(--line); }
summary { display:flex; align-items:center; justify-content:space-between; cursor:pointer; padding:14px 0; font-family:var(--mincho); font-size:16px; }
.room-more summary::after { content:'＋'; color:var(--akari); }
.room-more[open] summary::after { content:'−'; }
.room-more .plan { margin-top:24px; }
.night-tag { display:none; }
.is-night .night-tag { display:block; }
.daynight.is-night .tag:not(.night-tag) { display:none; }
.days .sec-head { flex-wrap:wrap; align-items:center; }
#mqPrev,#mqNext { border:1px solid var(--line); background:none; color:var(--kinari); }
.marquee-pause { align-self:center; }
.mq-cards { touch-action:pan-x pan-y; }
#mqCards,.mq-slow { animation:none; will-change:transform; }
.mq-card figcaption { font-size:14px; }
.stay { background:var(--read-surface); }
.stay-times { display:flex; flex-direction:column; gap:8px; }
.keep-together,.heading-phrase { display:inline-block; }
.spec div { grid-template-columns:6em 1fr; }
.spec dd { font-size:14px; }
.rate-summary { border:1px solid var(--line); padding:24px; margin-top:30px; }
.rate-lines { display:flex; flex-direction:column; gap:8px; margin:0; }
.rate-primary { display:flex; flex-direction:column; font-family:var(--mincho); font-size:clamp(26px,3vw,36px); color:var(--akari); line-height:1.5; }
.rate-primary span:first-child { font-size:18px; }
.rate-note { font-size:14px; color:var(--hai); }
.rates-head { font-size:22px; }
.rates-note { font-size:14px; }
.around-card { width:100%; padding:0; color:inherit; border:0; font:inherit; text-align:left; background:none; }
.family-list button { border:0; background:var(--sumi); color:var(--hai); padding:18px 12px; }
.family-list a { display:block; }
.family-list small { display:block; }
.btn-ghost { background:transparent; color:var(--kinari); }
dialog { background:var(--susu); color:var(--kinari); border:1px solid var(--line); border-radius:4px; max-width:calc(100% - 32px); padding:30px; }
dialog::backdrop { background:#000a; }
dialog button { background:var(--akari); color:var(--sumi); border:0; padding:8px 20px; }
.footer-links { display:flex; justify-content:center; flex-wrap:wrap; gap:20px; }
@media (max-width:1100px) {
  .head-nav,.head-book { display:none; }
  #menuToggle { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
  .head-tools { margin-left:auto; }
  .brand-en { display:none; }
}
@media (max-width:860px) {
  .demo-bar { gap:8px; }
  .demo-bar > span { width:100%; }
  .stay-summary { grid-template-columns:1fr; gap:8px; padding:18px var(--gutter); }
  .hero { height:calc(100svh - 280px); min-height:460px; }
  .hero-copy { top:28px; }
  .hero-name { font-size:48px; }
  .hero-lead { font-size:15px; margin-top:14px; }
  .light-history { max-width:21em; font-size:14px; }
  .hero-foot { bottom:94px; }
  .pair-img-tall { max-width:100%; width:100%; }
  .pair-img-tall img { aspect-ratio:4 / 3; }
  .room { flex-basis:84vw; }
  .row-offset { padding-left:24px; }
  .sec-head:has(.sec-note) { flex-direction:column; }
  .rooms .sec-head .v-title { writing-mode:horizontal-tb; border-right:0; border-bottom:1px solid var(--akari); padding:0 0 8px; }
  .spec div { grid-template-columns:5.4em 1fr; gap:12px; }
  .sp-book { min-height:68px; }
}
@media (max-width:420px) {
  .site-head { gap:8px; }
  .brand { gap:6px; }
  .brand-name { font-size:16px; letter-spacing:.04em; }
  .lang select { width:84px; }
  #menuToggle { font-size:12px; padding:6px; }
  .days .sec-head { gap:10px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; } }

/* Claude 11/04：スマホの最初の画面で、灯りのスイッチと料金が重ならないように（縦書きの宿名を少し小さく・すき間を詰める） */
@media (max-width:860px){
  .hero-copy{top:18px}
  .hero-name{font-size:34px;letter-spacing:.12em}
  .hero-lead{margin-top:10px}
  .light-switch{margin-top:12px}
}
/* Claude 11/04：パソコン幅で、最初の画面を画面の高さに収める（デモ用の帯・ヘッダー・お知らせの分を引く） */
@media (min-width:861px){ .hero{height:calc(100svh - 160px);min-height:560px} }
/* Claude 11/04：スマホで最初の画面の札（仮 N1 → N2）が宿名に重ならないよう右上へ */
@media (max-width:860px){ .hero > .hero-stage > .tag, .hero .tag{left:auto;right:8px;top:8px} }

/* 11/5：章の導入・予約・一枠のお部屋写真・見比べ */
.hero { --lx:28%; --ly:52%; }
main > section:not(.hero):not(.reserve) { padding-top:48px; padding-bottom:48px; }
.sec-head { align-items:center; margin-bottom:28px; }
.section-intro { max-width:42em; }
.section-intro h3 { font-size:clamp(20px,2vw,26px); }
.section-intro p { margin:10px 0 0; font-size:14px; }
.pair { margin-bottom:48px; }
.pair:last-child { margin-bottom:0; }
.pair-img-tall { width:68%; max-width:380px; }
.pair-img-tall img { aspect-ratio:3 / 4; object-fit:cover; }
.stay-summary { grid-template-columns:.8fr 1.4fr 1.2fr; gap:12px 24px; }
.stay-summary p:last-child { grid-column:3; }
.stay-info { max-width:1000px; margin:auto; }
.rate-summary { max-width:620px; }
.faq summary::after { flex-shrink:0; }
.demo-tools { flex-wrap:wrap; }
.demo-tools label { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.demo-tools select { background:var(--demo-surface); color:var(--demo-ink); font:inherit; padding:4px 8px; border:1px solid var(--demo-ink); max-width:100%; }
.head-book { white-space:nowrap; }
.room-showcase { max-width:1180px; margin:auto; touch-action:pan-y; }
.slide-stage { position:relative; }
.room-slide { position:relative; }
.room-slide figure { position:relative; margin:0; }
.room-slide figure > img { width:100%; height:clamp(350px,55vw,650px); object-fit:cover; }
.room-slide .dn-night { position:absolute; inset:0; opacity:0; }
.room-slide.is-night .dn-night { opacity:1; }
.room-slide.is-night .dn-day { opacity:0; }
.slide-caption { position:absolute; inset:auto 0 0; padding:70px 28px 24px; background:linear-gradient(transparent,rgba(23,20,15,.94)); color:#fff7ea; }
.slide-caption h3 { font-size:clamp(21px,3vw,32px); }
.slide-caption p { margin:8px 0 0; max-width:42em; font-size:14px; }
.slide-caption .dn-switch { position:static; display:flex; width:max-content; gap:8px; margin-top:12px; border:0; }
.dn-switch button { background:#241d16; border:1px solid var(--akari); color:#fff7ea; padding:8px 14px; }
.dn-switch button[aria-pressed="true"] { background:var(--akari); color:#17140f; }
.slide-controls { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; padding-top:14px; }
.slide-controls button { background:none; color:var(--kinari); border:1px solid var(--line); font-size:20px; }
.slide-dots { display:flex; justify-content:center; flex-wrap:wrap; }
.slide-dots button { padding:0; border:0; font-size:10px; }
.slide-dots button[aria-pressed="true"] { color:var(--akari); }
#roomCount { min-width:52px; text-align:center; }
.room-detail-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; margin-top:24px; }
.room-detail-grid figure { position:relative; margin:0 0 12px; }
.room-detail-grid img { aspect-ratio:4/3; width:100%; object-fit:cover; }
.room-detail-grid h3 { font-size:17px; }
.room-detail-grid p { font-size:14px; }
html[data-background="plain"] .lattice { background-image:none; }
html[data-background="washi"] .lattice {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.35 .08' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' opacity='.045' filter='url(%23n)' d='M0 0h200v200H0z'/%3E%3C/svg%3E");
  background-size:200px 200px;
}
@media(max-width:1100px){
  .head-book { display:inline-flex !important; align-items:center; justify-content:center; padding:8px 12px; }
  .head-tools { gap:8px; }
}
@media(max-width:860px){
  .hero { --lx:40%; --ly:52%; }
  .sec-head:has(.sec-note) { flex-direction:row; }
  .rooms .sec-head .v-title { writing-mode:vertical-rl; border-right:1px solid var(--akari); border-bottom:0; padding:0 10px 0 0; }
  .v-title { font-size:22px; letter-spacing:.14em; flex-shrink:0; }
  main > section:not(.hero):not(.reserve) { padding-top:32px; padding-bottom:32px; }
  .sec-head { gap:18px; margin-bottom:24px; }
  .stay-summary { grid-template-columns:1fr; }
  .stay-summary p:last-child { grid-column:auto; }
  .pair { margin-bottom:32px; }
  .pair-img-tall { width:68%; max-width:340px; justify-self:center; }
  .pair-img-tall img { aspect-ratio:3/4; }
  .room-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 14px; }
  .slide-caption { padding:60px 16px 18px; }
  .slide-dots { order:3; width:100%; }
  .site-head { gap:8px; padding:0 10px; }
  .brand-name { font-size:15px; letter-spacing:0; white-space:nowrap; }
  .brand img { width:24px; height:24px; }
  .lang select { width:72px; min-width:72px; }
  .hero { height:calc(100svh - 310px); }
}
@media(max-width:380px){ .brand img { display:none; } .head-book { font-size:12px; padding:6px 8px; } }
@media(max-width:600px){
  html { scroll-padding-top:124px; }
  .site-head { display:grid; grid-template-columns:1fr auto auto; height:auto; min-height:60px; gap:6px 10px; padding:6px 12px; }
  .head-tools { display:contents; }
  .site-head .brand { grid-column:1; grid-row:1; min-width:0; }
  .site-head .lang { grid-column:2; grid-row:1; }
  #menuToggle { grid-column:3; grid-row:1; }
  .head-book { grid-column:1 / -1; grid-row:2; width:100%; }
  .demo-tools { gap:8px 12px; }
  .section-intro,.sec-head > div { min-width:0; }
}
/* 開閉する補足欄も、表示中の状態を1つの記号で示す。 */
.stay-info summary::after,.access summary::after { content:'＋'; color:var(--akari); flex-shrink:0; }
.stay-info details[open] summary::after,.access details[open] summary::after { content:'−'; }

/* Claude 11/05：見出し・本文で1〜2文字だけの行を作らない（「した。」だけが落ちる等） */
h2,h3,p,li,dd,summary{text-wrap:pretty}
.lamp-fact,.sec-head h3,.pair-text h3{text-wrap:balance}

.around-embeds {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  max-width: 1080px; margin: 26px auto 0;
}
/* 画面が広いときだけ左右に並べる */
@media (min-width: 1080px) { .around-embeds { grid-template-columns: 1fr 1fr; } }

.around-embed {
  display: block;
  border: 0.5px solid var(--line);
  background: var(--susu);
  color: inherit; text-decoration: none;
  transition: border-color 0.3s;
}
.around-embed:hover, .around-embed:focus-visible { border-color: var(--akari); }

/* 枠の幅に合わせて縮尺が決まる（コンテナクエリ）。
   先方は幅760px以下でスマホ表示に切り替わるため、必ず1280pxで読み込ませる。 */
.around-embed-view {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 1280 / 540;
  container-type: inline-size;
  background: var(--susu);
}
/* 地図アプリは重く、読み込みに数秒かかる。空白に見えないよう下に敷いておく */
.around-embed-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 0.08em; color: var(--hai);
}
.around-embed-view iframe {
  position: absolute; top: 0; left: 0;
  width: 1280px; height: 540px; border: 0;
  pointer-events: none;
  transform: scale(calc(100cqw / 1280px)); transform-origin: 0 0;
}
.around-embed-bar {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 12px 18px; border-top: 0.5px solid var(--line);
}
.around-embed-text { font-size: 14px; letter-spacing: 0.1em; }
.around-embed-text::after { content: " ↗"; color: var(--akari); font-size: 12px; }
.around-embed-sub { font-size: 12px; color: var(--hai); letter-spacing: 0.04em; }

/* 狭い画面では縮小すると文字が潰れるので、等倍のまま見どころを切り出す */
@media (max-width: 760px) {
  .around-embed-view { aspect-ratio: auto; height: 240px; container-type: normal; }
  .around-embed-view iframe { transform: none; }
  /* アクティビティ：左の一覧を外して地図を見せる */
  .around-embed[data-site="activity"] .around-embed-view iframe { left: -540px; top: -120px; width: 1280px; height: 640px; }
  /* 旅しおり：題字とカードが入る位置 */
  .around-embed[data-site="routes"] .around-embed-view iframe { left: -40px; top: -60px; width: 1280px; height: 700px; }
  .around-embed-bar { padding: 11px 14px; gap: 6px; }
  .around-embed-sub { font-size: 11.5px; }
}
/* 指定の墨茶三面：周辺 #17140f・アクセス #221f1a・FAQ #241d16。 */
.access,.rooms { background-color:var(--read-surface); }
.rooms::before,.access::before,.faq::before { content:''; position:absolute; inset:0 0 auto; height:22px; pointer-events:none; background:linear-gradient(#17140f18,transparent); }
.slide-stage { display:grid; }
.room-slide { grid-area:1 / 1; opacity:0; visibility:hidden; transition:opacity .85s ease,visibility .85s; }
.room-slide[hidden] { display:block !important; }
.room-slide.is-active { opacity:1; visibility:visible; z-index:1; }
#roomPause { font-size:14px; padding:8px 12px; }
.marquee { padding-top:0; }
.around-embed iframe { opacity:0; }
.around-embed.is-loaded iframe { opacity:1; }
.around-embed.is-loaded .around-embed-loading { visibility:hidden; }
.around-embed.is-fallback .around-embed-view { display:none; }
.around-embed-sub { font-size:14px; }
@media(max-width:760px) { .around-embed-sub { font-size:14px; } }
@media(prefers-reduced-motion:reduce) { .room-slide { transition:none; } }

/* 11/5：料金カード撤去後の宿泊案内と、交通・周辺一覧。 */
.stay-info > div { display:grid; grid-template-columns:1fr 1fr; gap:0 32px; align-items:start; }
.stay-info .spec { grid-column:1 / -1; margin-bottom:18px; }
.stay-info details:last-child { grid-column:1 / -1; }
.access .access-grid { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); align-items:start; gap:32px; }
.access-info { min-width:0; }
.access-table { margin:0; }
.access-row { display:grid; grid-template-columns:5em minmax(0,1fr); gap:16px; padding:14px 0; border-bottom:1px solid var(--line); font-size:14px; }
.access-row dt { color:var(--hai); }
.access-row dd { margin:0; min-width:0; text-wrap:pretty; }
.access-address { display:block; }
.access a { color:var(--kinari); text-decoration-color:var(--akari); text-underline-offset:5px; }
.access .map-link { color:var(--akari); }
.access-nearby { margin-top:24px; }
.access-nearby h3 { font-size:18px; margin:0 0 8px; }
.access-nearby ul { list-style:none; padding:0; margin:0; }
.access-nearby li { display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--line); }
.access-nearby a { flex:1; min-width:44px; padding:8px 0; }
.access-time { white-space:nowrap; font-size:14px; color:var(--hai); }
.access-route-note { font-size:14px; color:var(--hai); margin:14px 0 0; }
.access .access-photo { position:sticky; top:100px; }
@media(max-width:860px) {
  .stay-info > div { display:block; }
  .access .access-grid { grid-template-columns:1fr; gap:24px; }
  .access .access-photo { position:relative; top:auto; }
  .access-row { grid-template-columns:4em minmax(0,1fr); gap:12px; }
}

/* ===== Claude 11/05：背景の比較「流れる墨、寄り添う明かり」墨A・B・C（比較用の静止画を区画に敷く） =====
   区画1＝燈について（絵の上部）／区画2＝過ごし方・周辺と体験（中部）／区画3＝よくある質問・予約（下部）
   上下は地の墨へ溶かす。文字・写真は前景（z-index 1）。ほかの欄は無地で読みやすさ優先。 */
html[data-background^="sumi"] .lattice { background-image:none; }
html[data-background^="sumi"] :is(#about,#days,#around,#faq) { position:relative; isolation:isolate; }
html[data-background^="sumi"] :is(#about,#days,#around,#faq)::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-repeat:no-repeat; background-size:cover; opacity:.9;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 14%,#000 86%,transparent 100%);
          mask-image:linear-gradient(to bottom,transparent 0,#000 14%,#000 86%,transparent 100%);
}
html[data-background^="sumi"] :is(#about,#days,#around,#faq) > * { position:relative; z-index:1; }
html[data-background="sumi-a"] :is(#about,#days,#around,#faq)::before { background-image:url("assets/sumi/blend-a.jpg"); }
html[data-background="sumi-b"] :is(#about,#days,#around,#faq)::before { background-image:url("assets/sumi/blend-b.jpg"); }
html[data-background="sumi-c"] :is(#about,#days,#around,#faq)::before { background-image:url("assets/sumi/blend-c.jpg"); }
/* 絵のどの高さを使うか（区画1＝上・区画2＝中・区画3＝下）。横は右寄せ（パソコンは文字が左に多いため） */
html[data-background^="sumi"] #about::before  { background-position:70% 0%; }
html[data-background^="sumi"] #days::before   { background-position:70% 45%; }
html[data-background^="sumi"] #around::before { background-position:70% 60%; }
html[data-background^="sumi"] #faq::before    { background-position:70% 100%; }
/* 墨の欄は地の色をそろえる（3色の茶の段差を消す） */
html[data-background^="sumi"] :is(#about,#days,#around,#faq) { background-color:#17140f; }
/* スマホ：絵の中央やや左の縦長の帯を使う */
@media (max-width:860px){
  html[data-background^="sumi"] :is(#about,#days,#around,#faq)::before { background-position-x:38%; opacity:.8; }
}
@media (prefers-reduced-motion: reduce){ html[data-background^="sumi"] :is(#about,#days,#around,#faq)::before { transition:none; } }
/* パソコン幅：絵の墨の流れ（絵の左寄り）が見出し・本文（左側）にかからないよう、左右反転して右側へ */
@media (min-width:861px){
  html[data-background^="sumi"] :is(#about,#days,#around,#faq)::before { transform:scaleX(-1); background-position-x:30%; }
}

/* ===== Claude 11/05：墨（A→B→C）＝上から A・B・C を順に混ぜ、墨の流れが「読んでほしい所」を通るように =====
   燈について＝墨A を3組（写真＋文）ごとに上・中・下の高さで敷き、文のある側（右→左→右）へ流れを寄せて蛇行させる
   過ごし方・周辺と体験＝墨B／よくある質問＝墨C */
html[data-background="sumi-mix"] #about { overflow-x:clip; }
html[data-background="sumi-mix"] #about::before { content:none; }
html[data-background="sumi-mix"] #about > .pair::before {
  content:""; position:absolute; z-index:0; pointer-events:none;
  top:-18%; bottom:-18%; left:calc(50% - 50vw); width:100vw;
  background:url("assets/sumi/blend-a.jpg") no-repeat; background-size:100% auto; opacity:.95;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 78%,transparent 100%);
          mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 78%,transparent 100%);
}
html[data-background="sumi-mix"] #about > .pair > * { position:relative; z-index:1; }
/* 1組目（文が右）：反転して流れを右へ／絵の上部 */
html[data-background="sumi-mix"] #about > .pair:nth-of-type(2)::before { transform:scaleX(-1); background-position:0 12%; }
/* 2組目（文が左）：そのまま左寄りの流れ／絵の中部 */
html[data-background="sumi-mix"] #about > .pair:nth-of-type(3)::before { transform:none; background-position:0 50%; }
/* 3組目（文が右）：反転して右へ／絵の下部 */
html[data-background="sumi-mix"] #about > .pair:nth-of-type(4)::before { transform:scaleX(-1); background-position:0 88%; }
html[data-background="sumi-mix"] :is(#days,#around)::before { background-image:url("assets/sumi/blend-b.jpg"); }
html[data-background="sumi-mix"] #days::before   { background-position:70% 35%; }
html[data-background="sumi-mix"] #around::before { background-position:70% 75%; }
html[data-background="sumi-mix"] #faq::before    { background-image:url("assets/sumi/blend-c.jpg"); background-position:70% 60%; }
@media (max-width:860px){
  html[data-background="sumi-mix"] #about > .pair::before { background-size:cover; top:-8%; bottom:-8%; }
  html[data-background="sumi-mix"] #about > .pair:nth-of-type(2)::before { background-position:30% 12%; }
  html[data-background="sumi-mix"] #about > .pair:nth-of-type(3)::before { background-position:30% 50%; }
  html[data-background="sumi-mix"] #about > .pair:nth-of-type(4)::before { background-position:30% 88%; }
}
/* スマホでは墨が見えにくいので、墨の濃淡を少し強める */
@media (max-width:860px){
  html[data-background="sumi-mix"] :is(#about > .pair, #days, #around, #faq)::before { filter:brightness(1.35); opacity:1; }
}

/* ===== Claude 11/05（2）：本人決定「墨で進める」。お部屋も墨／左側にも墨／欄のつなぎ目を自然に／蛍の光 ===== */
/* お部屋にも墨（A から B へ移る所＝墨B の上部） */
html[data-background="sumi-mix"] #rooms { position:relative; isolation:isolate; background-color:#17140f; }
html[data-background="sumi-mix"] #rooms::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:url("assets/sumi/blend-b.jpg") no-repeat 70% 8%; background-size:cover; opacity:.85;
}
html[data-background="sumi-mix"] #rooms > * { position:relative; z-index:1; }
/* つなぎ目：墨の欄は地の色を1つにそろえ、上下のぼかしを長く（となりの欄へ溶けるように） */
html[data-background="sumi-mix"] :is(#about,#rooms,#days,#around,#faq) { background-color:#17140f; }
html[data-background="sumi-mix"] :is(#rooms,#days,#around,#faq)::before {
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
          mask-image:linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
}
/* 左側にも墨：パソコンでは右に寄せた流れと対になるよう、左の余白にもう1枚（反転せず・薄く・横は左3割だけ） */
@media (min-width:861px){
  html[data-background="sumi-mix"] :is(#rooms,#days,#around,#faq)::after {
    content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
    background:url("assets/sumi/blend-c.jpg") no-repeat; background-size:100% auto; opacity:.7;
    -webkit-mask-image:linear-gradient(to right,#000 0,#000 18%,transparent 34%),linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
    -webkit-mask-composite:source-in;
            mask-image:linear-gradient(to right,#000 0,#000 18%,transparent 34%),linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
            mask-composite:intersect;
  }
  html[data-background="sumi-mix"] #rooms::after  { background-position:0 20%; }
  html[data-background="sumi-mix"] #days::after   { background-position:0 45%; }
  html[data-background="sumi-mix"] #around::after { background-image:url("assets/sumi/blend-a.jpg"); background-position:0 70%; }
  html[data-background="sumi-mix"] #faq::after    { background-position:0 90%; }
}
/* 蛍の光（fireflies.part.js が各欄に置く）。墨のときだけ見せる */
.fireflies { display:none; }
html[data-background^="sumi"] .fireflies { display:block; position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.firefly {
  position:absolute; left:var(--x-pc); width:var(--s); height:var(--s); border-radius:50%;
  background:radial-gradient(circle, rgba(255,214,150,.95) 0, rgba(232,165,75,.55) 40%, rgba(232,165,75,0) 72%);
  box-shadow:0 0 calc(var(--s) * 3) rgba(232,165,75,.35);
  transform:translateY(var(--sy, 0px));
  animation:firefly-drift var(--d) ease-in-out var(--delay) infinite;
  will-change:transform, opacity;
}
@keyframes firefly-drift {
  0%   { translate:0 0;      opacity:.25; }
  30%  { translate:6px -10px; opacity:.85; }
  60%  { translate:-5px -4px; opacity:.45; }
  100% { translate:0 0;      opacity:.25; }
}
@media (max-width:860px){ .firefly { left:var(--x-sp); } }
@media (prefers-reduced-motion: reduce){ .firefly { animation:none; opacity:.6; transform:none; } }
/* 蛍の光の入れ物は、欄の中身を前に出す指定（> * に position:relative）から外し、欄いっぱいに重ねる */
html[data-background^="sumi"] :is(#about,#rooms,#days,#around,#faq) > .fireflies { position:absolute; inset:0; z-index:0; }

/* ===== Claude 11/05（3）：墨の道（新）。本人「墨が弱い・メインの墨の道を力強く・今の条件で最初から作り直す」
   ページの寸法に合わせて描き直した絵（assets/sumi/v2/ink-<欄>-pc|sp.jpg）を、欄ごとに1枚ずつ欄いっぱいに敷く。
   絵の端はもともと地の色（#17140f）なので、前の墨の重ね（左右反転・左の墨・3組ごとの切り出し）は使わない。 */
html[data-background="sumi-road"] :is(#about,#rooms,#days,#around,#faq) { position:relative; isolation:isolate; background-color:#17140f; overflow-x:clip; }
html[data-background="sumi-road"] :is(#about,#rooms,#days,#around,#faq)::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-repeat:no-repeat; background-position:0 0; background-size:100% 100%;
  opacity:1; transform:none; filter:none;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 4%,#000 96%,transparent 100%);
          mask-image:linear-gradient(to bottom,transparent 0,#000 4%,#000 96%,transparent 100%);
}
html[data-background="sumi-road"] :is(#about,#rooms,#days,#around,#faq)::after,
html[data-background="sumi-road"] #about > .pair::before { content:none; }
html[data-background="sumi-road"] :is(#about,#rooms,#days,#around,#faq) > * { position:relative; z-index:1; }
html[data-background="sumi-road"] #about::before  { background-image:url("assets/sumi/v2/ink-about-pc.jpg"); }
html[data-background="sumi-road"] #rooms::before  { background-image:url("assets/sumi/v2/ink-rooms-pc.jpg"); }
html[data-background="sumi-road"] #days::before   { background-image:url("assets/sumi/v2/ink-days-pc.jpg"); }
html[data-background="sumi-road"] #around::before { background-image:url("assets/sumi/v2/ink-around-pc.jpg"); }
html[data-background="sumi-road"] #faq::before    { background-image:url("assets/sumi/v2/ink-faq-pc.jpg"); }
@media (max-width:860px){
  html[data-background="sumi-road"] #about::before  { background-image:url("assets/sumi/v2/ink-about-sp.jpg"); }
  html[data-background="sumi-road"] #rooms::before  { background-image:url("assets/sumi/v2/ink-rooms-sp.jpg"); }
  html[data-background="sumi-road"] #days::before   { background-image:url("assets/sumi/v2/ink-days-sp.jpg"); }
  html[data-background="sumi-road"] #around::before { background-image:url("assets/sumi/v2/ink-around-sp.jpg"); }
  html[data-background="sumi-road"] #faq::before    { background-image:url("assets/sumi/v2/ink-faq-sp.jpg"); }
}
/* 蛍の光：墨の道に沿って流れる（位置は fireflies.part.js が --px/--py で決める）。端では --fade で消える */
html[data-background="sumi-road"] .firefly {
  left:0; top:0 !important; margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform:translate3d(var(--px, -99px), var(--py, -99px), 0);
  opacity:calc(var(--fade, 1) * .9);
  animation:firefly-glow var(--d) ease-in-out var(--delay) infinite;
}
@keyframes firefly-glow { 0%,100% { filter:brightness(.7); } 40% { filter:brightness(1.25); } }
.firefly-guide { display:none; }
html[data-background="sumi-road"] .firefly-guide {
  display:block;
  background:radial-gradient(circle, rgba(255,228,175,1) 0, rgba(240,178,90,.75) 38%, rgba(232,165,75,0) 72%);
  box-shadow:0 0 18px 4px rgba(240,170,80,.45), 0 0 46px 10px rgba(232,165,75,.18);
}
@media (prefers-reduced-motion: reduce){ html[data-background="sumi-road"] .firefly { animation:none; } }

/* 本人 11/05：アクセスの写真は固定（スクロールに付いてこない）。上空と入口の2枚を縦に並べる */
.access .access-photo { position:static; top:auto; display:grid; gap:24px; }
.access-shot figure { margin:0; }
.access-cap { margin:8px 0 0; font-size:13px; color:var(--hai); text-wrap:pretty; }
@media (max-width:860px){ .access .access-photo { grid-template-columns:1fr 1fr; gap:12px; } .access-cap { font-size:12px; } }

/* 本人 11/05：予約ボタンをもっと格好よく（安っぽい・文字が上にずれる・オレンジが薄い）。
   色味は今の琥珀のまま少し深く。文字は明朝で上下の真ん中に。細い線の矢印を添える */
.btn-akari {
  display:inline-flex; align-items:center; justify-content:center; gap:14px;
  min-height:44px; padding:0 26px; line-height:1; box-sizing:border-box;
  font-family:var(--mincho); font-weight:600; font-size:15px; letter-spacing:.2em; text-indent:.2em;
  color:#1a1206; text-decoration:none; border:0; border-radius:2px;
  background:linear-gradient(180deg,#eeac55 0%,#d8902f 100%);
  box-shadow:inset 0 0 0 1px rgba(255,238,205,.38), inset 0 -1px 0 rgba(90,50,10,.35), 0 8px 22px -12px rgba(236,160,60,.75);
  transition:background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.btn-akari::after { content:""; width:18px; height:1px; background:currentColor; flex-shrink:0; box-shadow:0 0 0 0 currentColor; transition:width .25s ease; }
.btn-akari:hover { background:linear-gradient(180deg,#f4b866 0%,#df9838 100%); box-shadow:inset 0 0 0 1px rgba(255,238,205,.5), inset 0 -1px 0 rgba(90,50,10,.35), 0 10px 28px -10px rgba(240,170,70,.9); }
.btn-akari:hover::after { width:26px; }
.btn-akari:focus-visible { outline:2px solid #f6d7a4; outline-offset:3px; }
.head-book { min-height:40px; padding:0 18px; font-size:14px; gap:10px; }
.head-book::after { width:12px; }
.reserve .btn-cta { min-height:56px; padding:0 40px; font-size:17px; }
.reserve .cta-sub { margin:22px 0 0; font-size:14px; letter-spacing:.08em; }
.reserve .cta-sub a { color:var(--kinari); text-decoration:none; border-bottom:1px solid rgba(232,165,75,.6); padding-bottom:4px; }
.reserve .cta-sub a:hover { color:#f6d7a4; border-bottom-color:#f6d7a4; }
@media (prefers-reduced-motion: reduce){ .btn-akari, .btn-akari::after { transition:none; } }

/* 本人 11/05：右上の表示は「LANGUAGE」と三本線。言語の選択肢は今の5言語のまま（透明な選択の上に表示を重ねる） */
.lang { position:relative; display:inline-flex; }
.lang-face {
  display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 14px;
  border:1px solid var(--line); border-radius:2px; color:var(--kinari);
  font-size:11px; letter-spacing:.22em; white-space:nowrap; pointer-events:none;
}
.lang-face::after { content:""; width:6px; height:6px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:translateY(-2px) rotate(45deg); }
.lang select { position:absolute; inset:0; width:100% !important; min-width:0 !important; min-height:0; opacity:0; cursor:pointer; }
.lang:hover .lang-face, .lang:focus-within .lang-face { border-color:var(--akari); color:#f6d7a4; }
.lang:focus-within .lang-face { outline:2px solid #f6d7a4; outline-offset:2px; }
#menuToggle { width:44px; height:44px; padding:0; border:1px solid var(--line); border-radius:2px; }
.menu-bars { display:grid; gap:5px; width:20px; }
.menu-bars i { display:block; height:1px; background:var(--kinari); transition:transform .25s ease, opacity .25s ease; }
#menuToggle[aria-expanded="true"] .menu-bars i:nth-child(1) { transform:translateY(6px) rotate(45deg); }
#menuToggle[aria-expanded="true"] .menu-bars i:nth-child(2) { opacity:0; }
#menuToggle[aria-expanded="true"] .menu-bars i:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
@media (max-width:860px){
  .lang-face { min-height:44px; padding:0 10px; font-size:10px; letter-spacing:.16em; }
  /* スマホ1：予約ボタンは画面下の帯だけ（上のヘッダーには出さない） */
  .head-book { display:none !important; }
  html { scroll-padding-top:76px; }
}
/* 線だけだと「予約するー」と伸ばし棒に読めるので、先に小さな矢じりを付ける。ヘッダーと画面下の帯は文字だけ */
.btn-akari::after {
  width:20px; height:8px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8'%3E%3Cpath d='M0 4h19M15 .5 19 4l-4 3.5' fill='none' stroke='%231a1206' stroke-width='1.1'/%3E%3C/svg%3E") no-repeat right center / 20px 8px;
}
.btn-akari:hover::after { width:26px; background-size:26px 8px; }
.head-book::after, .sp-book .btn-akari::after { content:none; }
.head-book, .sp-book .btn-akari { text-indent:.2em; }
/* スマホ：ヘッダーが1段になった分（上の予約ボタンを外した）、最初の画面を高くし、背の低い画面でも料金と「灯りを消す」が重ならないように */
@media (max-width:860px){ .hero { height:calc(100svh - 250px); min-height:560px; } }

/* 本人 11/05：自動送りは記号だけ（「動かす／止める」「流す／流れを止める」の文字は出さない）。矢印の間に置く。
   ボタンの中の文字は読み上げ用にそのまま残し、画面では見えなくする。流れている時＝❚❚、止まっている時＝▶ */
#roomPause, #mqPause {
  position:relative; width:44px; height:44px; min-width:44px; padding:0; margin:0;
  font-size:0 !important; color:var(--kinari); background:none; border:1px solid var(--line); border-radius:2px; cursor:pointer;
}
#roomPause::before, #mqPause::before {
  content:""; position:absolute; left:50%; top:50%; width:10px; height:12px; transform:translate(-50%,-50%);
  background:linear-gradient(90deg,currentColor 0 34%,transparent 34% 66%,currentColor 66% 100%);
}
#roomPause[aria-pressed="true"]::before, #mqPause[aria-pressed="true"]::before {
  width:11px; height:13px; transform:translate(-40%,-50%); background:currentColor; clip-path:polygon(0 0,100% 50%,0 100%);
}
#roomPause:disabled { opacity:.45; cursor:default; }
#roomPause:hover, #mqPause:hover { border-color:var(--akari); color:#f6d7a4; }
.slide-controls #roomPrev { order:1; } .slide-controls #roomPause { order:2; } .slide-controls #roomNext { order:3; }
.slide-controls .slide-dots { order:4; } .slide-controls #roomCount { order:5; }
#days .sec-head #mqPrev { order:2; } #days .sec-head #mqPause { order:3; margin-left:0; } #days .sec-head #mqNext { order:4; }
#days .sec-head > :first-child { order:0; } #days .sec-head .section-intro, #days .sec-head > div { order:1; }
#days .sec-head #mqPrev { margin-left:auto; }

/* 本人 11/05（スマホ5）：アクティビティと旅しおりは、スマホでは小さく。地図の埋め込みはやめ、表紙の画像の上に文字を重ねる（お部屋の説明と同じ形） */
.around-embed-cover { display:none; }
@media (max-width:760px){
  .around-embeds { grid-template-columns:1fr 1fr; gap:10px; }
  .around-embed { position:relative; overflow:hidden; border-radius:2px; }
  .around-embed-view { height:124px !important; aspect-ratio:auto; }
  .around-embed-view iframe, .around-embed-loading { display:none !important; }
  .around-embed-cover { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .around-embed[data-site="routes"] .around-embed-cover { object-position:30% 30%; }
  .around-embed.is-fallback .around-embed-view { display:block; }
  .around-embed-bar {
    position:absolute; left:0; right:0; bottom:0; display:flex; flex-direction:column; align-items:flex-start; gap:2px;
    padding:28px 10px 9px; border:0; background:linear-gradient(to top, rgba(18,14,9,.92) 0, rgba(18,14,9,.7) 55%, rgba(18,14,9,0) 100%);
  }
  .around-embed-text { font-size:13px; letter-spacing:.08em; color:#fff6e6; }
  .around-embed-sub { font-size:10.5px !important; line-height:1.45; color:#e6dccb; letter-spacing:.02em; }
}
@media (max-width:760px){
  .around-embed[data-site="routes"] .around-embed-cover { object-position:50% 20%; }
  .around-embed-sub { word-break:auto-phrase; text-wrap:balance; }
}

/* ===== Claude 11/05（4）：本人「墨は前の状態（A→B→C）に戻す」「昼と夜の切り替え」「左下に灯籠のボタン」「空いた所をふわっと照らす光を手前に、立体的に」 ===== */
/* 手前の光：文字や写真より前に重ねる。ぼけた弱い光（screen で重ねる）。夜だけ */
html[data-background] :is(#about,#rooms,#days,#around,#faq) > .glows { position:absolute; inset:0; z-index:3; pointer-events:none; overflow:hidden; display:none; }
html[data-time="night"][data-background^="sumi"] :is(#about,#rooms,#days,#around,#faq) > .glows { display:block; }
.glow {
  --gs:var(--g); position:absolute; width:var(--gs); height:var(--gs); margin:calc(var(--gs) / -2) 0 0 calc(var(--gs) / -2); border-radius:50%;
  background:radial-gradient(circle, rgba(255,204,140,.20) 0, rgba(242,172,88,.10) 30%, rgba(232,165,75,.035) 52%, rgba(232,165,75,0) 70%);
  mix-blend-mode:screen; opacity:var(--a); transform:translate3d(0, var(--gy, 0px), 0);
  animation:glow-breathe var(--d) ease-in-out var(--delay) infinite; will-change:transform, opacity;
}
@keyframes glow-breathe { 0%,100% { scale:.9; opacity:calc(var(--a) * .65); } 50% { scale:1.06; opacity:var(--a); } }
@media (max-width:860px){ .glow { --gs:calc(var(--g) * .55); } }
@media (prefers-reduced-motion: reduce){ .glow { animation:none; } }
/* 昼は墨・蛍・手前の光を出さない */
html[data-time="day"] .fireflies, html[data-time="day"] .glows { display:none !important; }

/* 左下の灯籠のボタン（予約ボタンのように常に表示）。押すと昼⇔夜 */
.lantern {
  position:fixed; left:18px; bottom:18px; z-index:31; display:flex; flex-direction:column; align-items:center; gap:2px;
  width:58px; padding:9px 0 7px; border-radius:29px; cursor:pointer;
  font-family:var(--mincho); font-size:11px; letter-spacing:.18em; text-indent:.18em; line-height:1.2;
  color:#3a332a; background:rgba(250,248,243,.9); border:1px solid rgba(58,51,42,.22);
  box-shadow:0 8px 24px -12px rgba(0,0,0,.45); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  transition:background .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.lantern-icon { width:26px; height:36px; fill:currentColor; }
.lantern-fire { fill:#e9dfcc; transition:fill .5s ease, filter .5s ease; }
.lantern:hover .lantern-fire { fill:#f3c27a; }
.lantern:focus-visible { outline:2px solid #e8a54b; outline-offset:3px; }
html[data-time="night"] .lantern { color:var(--kinari); background:rgba(23,20,15,.78); border-color:rgba(232,165,75,.5); box-shadow:0 0 0 1px rgba(232,165,75,.08), 0 10px 30px -10px rgba(232,165,75,.55); }
html[data-time="night"] .lantern-fire { fill:#ffcf7a; filter:drop-shadow(0 0 4px rgba(255,190,90,.9)); animation:lantern-flicker 3.2s ease-in-out infinite; }
@keyframes lantern-flicker { 0%,100% { opacity:1; } 45% { opacity:.82; } 55% { opacity:.95; } }
@media (max-width:860px){ .lantern { left:12px; bottom:calc(80px + env(safe-area-inset-bottom)); width:52px; padding:7px 0 6px; } .lantern-icon { width:22px; height:31px; } }
@media (prefers-reduced-motion: reduce){ .lantern, .lantern-fire { transition:none; animation:none !important; } }
/* 最初の画面：灯りを消した状態は昼の写真 */
.hero-day { object-fit:cover; object-position:50% 55%; }
@media (max-width:720px){ .hero-day { object-position:38% 50%; } }
/* 調整：灯籠と最初の画面のスイッチが重ならないよう、PC は文字の列を少し右へ。スマホは灯籠を下の予約の帯の左端に収める */
@media (min-width:861px){ .hero-copy { left:calc(var(--gutter) + 44px); } }
@media (max-width:860px){
  .lantern { left:12px; bottom:calc(10px + env(safe-area-inset-bottom)); width:54px; min-height:47px; padding:4px 0 3px; border-radius:3px; gap:0; font-size:10px; }
  .lantern-icon { width:18px; height:25px; }
  .sp-book { padding-left:76px !important; }
}
/* 昼の写真の上の文字：文字のある左と上下だけ写真を少し暗くして読みやすく（夜の絵はそのまま） */
html[data-time="day"] .hero::after {
  background:
    linear-gradient(90deg, rgba(12,10,7,.5) 0%, rgba(12,10,7,.18) 38%, rgba(12,10,7,0) 62%),
    linear-gradient(180deg, rgba(10,14,22,.35) 0%, rgba(10,14,22,0) 32%, rgba(10,8,5,0) 58%, rgba(10,8,5,.68) 100%);
}
@media (max-width:720px){
  html[data-time="day"] .hero::after { background:linear-gradient(180deg, rgba(10,8,5,.5) 0%, rgba(10,8,5,.38) 45%, rgba(10,8,5,.2) 62%, rgba(10,8,5,.72) 100%); }
}
/* 手前の光を少し強く（ふわっと照らす感じ） */
.glow { background:radial-gradient(circle, rgba(255,206,145,.30) 0, rgba(244,176,92,.15) 28%, rgba(232,165,75,.055) 50%, rgba(232,165,75,0) 70%); }

/* ===== Claude 11/06：墨の筆（試作）。本人「前の墨（A→B→C）は良い・墨の道は稲妻みたい」「前の状態を保ったまま、筆の流れみたいに」
   墨（A→B→C）と同じ重ね方（切り出し・左右反転・スマホの明るさ）のまま、絵だけ「流れに沿って筆を引き足した墨A・B・C」（assets/sumi/brush/）に替える。
   絵の作り方：背景_墨3_筆uild_brush.py */
html[data-background="sumi-brush"] #about { overflow-x:clip; }
html[data-background="sumi-brush"] #about::before { content:none; }
html[data-background="sumi-brush"] #about > .pair::before {
  content:""; position:absolute; z-index:0; pointer-events:none;
  top:-18%; bottom:-18%; left:calc(50% - 50vw); width:100vw;
  background:url("assets/sumi/brush/brush-a.jpg") no-repeat; background-size:100% auto; opacity:.95;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 78%,transparent 100%);
          mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 78%,transparent 100%);
}
html[data-background="sumi-brush"] #about > .pair > * { position:relative; z-index:1; }
html[data-background="sumi-brush"] #about > .pair:nth-of-type(2)::before { transform:scaleX(-1); background-position:0 12%; }
html[data-background="sumi-brush"] #about > .pair:nth-of-type(3)::before { transform:none; background-position:0 50%; }
html[data-background="sumi-brush"] #about > .pair:nth-of-type(4)::before { transform:scaleX(-1); background-position:0 88%; }
html[data-background="sumi-brush"] :is(#days,#around)::before { background-image:url("assets/sumi/brush/brush-b.jpg"); }
html[data-background="sumi-brush"] #days::before   { background-position:70% 35%; }
html[data-background="sumi-brush"] #around::before { background-position:70% 75%; }
html[data-background="sumi-brush"] #faq::before    { background-image:url("assets/sumi/brush/brush-c.jpg"); background-position:70% 60%; }
@media (max-width:860px){
  html[data-background="sumi-brush"] #about > .pair::before { background-size:cover; top:-8%; bottom:-8%; }
  html[data-background="sumi-brush"] #about > .pair:nth-of-type(2)::before { background-position:30% 12%; }
  html[data-background="sumi-brush"] #about > .pair:nth-of-type(3)::before { background-position:30% 50%; }
  html[data-background="sumi-brush"] #about > .pair:nth-of-type(4)::before { background-position:30% 88%; }
}
@media (max-width:860px){
  html[data-background="sumi-brush"] :is(#about > .pair, #days, #around, #faq)::before { filter:brightness(1.35); opacity:1; }
}
html[data-background="sumi-brush"] #rooms { position:relative; isolation:isolate; background-color:#17140f; }
html[data-background="sumi-brush"] #rooms::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:url("assets/sumi/brush/brush-b.jpg") no-repeat 70% 8%; background-size:cover; opacity:.85;
}
html[data-background="sumi-brush"] #rooms > * { position:relative; z-index:1; }
html[data-background="sumi-brush"] :is(#about,#rooms,#days,#around,#faq) { background-color:#17140f; }
html[data-background="sumi-brush"] :is(#rooms,#days,#around,#faq)::before {
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
          mask-image:linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
}
@media (min-width:861px){
  html[data-background="sumi-brush"] :is(#rooms,#days,#around,#faq)::after {
    content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
    background:url("assets/sumi/brush/brush-c.jpg") no-repeat; background-size:100% auto; opacity:.7;
    -webkit-mask-image:linear-gradient(to right,#000 0,#000 18%,transparent 34%),linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
    -webkit-mask-composite:source-in;
            mask-image:linear-gradient(to right,#000 0,#000 18%,transparent 34%),linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
            mask-composite:intersect;
  }
  html[data-background="sumi-brush"] #rooms::after  { background-position:0 20%; }
  html[data-background="sumi-brush"] #days::after   { background-position:0 45%; }
  html[data-background="sumi-brush"] #around::after { background-image:url("assets/sumi/brush/brush-a.jpg"); background-position:0 70%; }
  html[data-background="sumi-brush"] #faq::after    { background-position:0 90%; }
}

/* ===== Claude 11/06：ギャラリー（本人「過ごし方をギャラリーに」）。試作 A＝今の流れる帯（写真18点）／B＝BYAKU のように大きさに変化・文字も流れる ===== */
.mq-card figcaption b { font-size:16px; }
.gallery-words { display:none; }
/* B：写真の大きさ（横長の大・縦長・小）と高さをずらして並べる */
html[data-gallery="b"] #mqCards { align-items:flex-start; gap:28px; padding:24px 0 40px; }
html[data-gallery="b"] .mq-card { width:auto; margin-top:0; }
html[data-gallery="b"] .mq-card img { width:100%; height:100%; aspect-ratio:auto; }
html[data-gallery="b"] .mq-card[data-shape="wide"]  { width:clamp(340px, 36vw, 540px); height:clamp(227px, 24vw, 360px); }
html[data-gallery="b"] .mq-card[data-shape="tall"]  { width:clamp(220px, 21vw, 300px); height:clamp(293px, 28vw, 400px); }
html[data-gallery="b"] .mq-card[data-shape="small"] { width:clamp(170px, 15vw, 220px); height:clamp(170px, 15vw, 220px); }
html[data-gallery="b"] .mq-card:nth-child(6n+1) { margin-top:0; }
html[data-gallery="b"] .mq-card:nth-child(6n+2) { margin-top:110px; }
html[data-gallery="b"] .mq-card:nth-child(6n+3) { margin-top:36px; }
html[data-gallery="b"] .mq-card:nth-child(6n+4) { margin-top:190px; }
html[data-gallery="b"] .mq-card:nth-child(6n+5) { margin-top:60px; }
html[data-gallery="b"] .mq-card:nth-child(6n)   { margin-top:150px; }
/* B の写真の名前は、写真の下に小さく（写真の上に影を落とさない） */
html[data-gallery="b"] .mq-card figcaption { position:static; padding:10px 2px 0; background:none; }
html[data-gallery="b"] .mq-card figcaption b { font-size:13px; letter-spacing:.12em; color:var(--hai); font-weight:500; }
html[data-gallery="b"] .mq-card { height:auto !important; }
html[data-gallery="b"] .mq-card img { display:block; }
html[data-gallery="b"] .mq-card[data-shape="wide"] img  { height:clamp(227px, 24vw, 360px); }
html[data-gallery="b"] .mq-card[data-shape="tall"] img  { height:clamp(293px, 28vw, 400px); }
html[data-gallery="b"] .mq-card[data-shape="small"] img { height:clamp(170px, 15vw, 220px); }
/* B：写真の後ろを、大きな明朝の文字がゆっくり逆向きに流れる */
html[data-gallery="b"] .marquee { position:relative; }
html[data-gallery="b"] .gallery-words { display:block; position:absolute; left:0; right:0; top:46%; z-index:0; overflow:hidden; pointer-events:none; }
html[data-gallery="b"] .mq-cards { position:relative; z-index:1; }
.gallery-words-track { display:flex; width:max-content; animation:gallery-words 160s linear infinite; }
.gallery-words-track span { padding-right:1.5em; white-space:nowrap; font-family:var(--mincho); font-size:clamp(40px, 6vw, 92px); letter-spacing:.2em; line-height:1; color:rgba(235,227,211,.09); }
@keyframes gallery-words { from { transform:translateX(-50%); } to { transform:translateX(0); } }
.marquee.paused .gallery-words-track { animation-play-state:paused; }
html[data-time="day"] .gallery-words-track span { color:rgba(41,51,44,.08); }
@media (max-width:860px){
  html[data-gallery="b"] #mqCards { gap:16px; padding:12px 0 24px; }
  html[data-gallery="b"] .mq-card[data-shape="wide"] img  { height:150px; }
  html[data-gallery="b"] .mq-card[data-shape="wide"]  { width:225px; }
  html[data-gallery="b"] .mq-card[data-shape="tall"] img  { height:200px; }
  html[data-gallery="b"] .mq-card[data-shape="tall"]  { width:150px; }
  html[data-gallery="b"] .mq-card[data-shape="small"] img { height:110px; }
  html[data-gallery="b"] .mq-card[data-shape="small"] { width:110px; }
  html[data-gallery="b"] .mq-card:nth-child(6n+2) { margin-top:60px; }
  html[data-gallery="b"] .mq-card:nth-child(6n+4) { margin-top:100px; }
  html[data-gallery="b"] .mq-card:nth-child(6n)   { margin-top:80px; }
  html[data-gallery="b"] .mq-card figcaption b { font-size:11px; }
}
@media (prefers-reduced-motion: reduce){ .gallery-words-track { animation:none; } }

/* ===== Claude 11/06（2）：墨のにじみ（試作）。本人「流れを合わせるのは難しい・ABC が気に入っている・そっち寄りのじわっとにじんでる感じで最後にトライ」
   墨の筆と同じ流れを、線ではなく紙ににじんだ墨として A・B・C に重ねた絵（assets/sumi/nijimi/）。重ね方は墨（A→B→C）と同じ。
   絵の作り方：背景_墨3_筆uild_nijimi.py */
html[data-background="sumi-nijimi"] #about { overflow-x:clip; }
html[data-background="sumi-nijimi"] #about::before { content:none; }
html[data-background="sumi-nijimi"] #about > .pair::before {
  content:""; position:absolute; z-index:0; pointer-events:none;
  top:-18%; bottom:-18%; left:calc(50% - 50vw); width:100vw;
  background:url("assets/sumi/nijimi/nijimi-a.jpg") no-repeat; background-size:100% auto; opacity:.95;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 78%,transparent 100%);
          mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 78%,transparent 100%);
}
html[data-background="sumi-nijimi"] #about > .pair > * { position:relative; z-index:1; }
html[data-background="sumi-nijimi"] #about > .pair:nth-of-type(2)::before { transform:scaleX(-1); background-position:0 12%; }
html[data-background="sumi-nijimi"] #about > .pair:nth-of-type(3)::before { transform:none; background-position:0 50%; }
html[data-background="sumi-nijimi"] #about > .pair:nth-of-type(4)::before { transform:scaleX(-1); background-position:0 88%; }
html[data-background="sumi-nijimi"] :is(#days,#around)::before { background-image:url("assets/sumi/nijimi/nijimi-b.jpg"); }
html[data-background="sumi-nijimi"] #days::before   { background-position:70% 35%; }
html[data-background="sumi-nijimi"] #around::before { background-position:70% 75%; }
html[data-background="sumi-nijimi"] #faq::before    { background-image:url("assets/sumi/nijimi/nijimi-c.jpg"); background-position:70% 60%; }
@media (max-width:860px){
  html[data-background="sumi-nijimi"] #about > .pair::before { background-size:cover; top:-8%; bottom:-8%; }
  html[data-background="sumi-nijimi"] #about > .pair:nth-of-type(2)::before { background-position:30% 12%; }
  html[data-background="sumi-nijimi"] #about > .pair:nth-of-type(3)::before { background-position:30% 50%; }
  html[data-background="sumi-nijimi"] #about > .pair:nth-of-type(4)::before { background-position:30% 88%; }
}
@media (max-width:860px){
  html[data-background="sumi-nijimi"] :is(#about > .pair, #days, #around, #faq)::before { filter:brightness(1.35); opacity:1; }
}
html[data-background="sumi-nijimi"] #rooms { position:relative; isolation:isolate; background-color:#17140f; }
html[data-background="sumi-nijimi"] #rooms::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:url("assets/sumi/nijimi/nijimi-b.jpg") no-repeat 70% 8%; background-size:cover; opacity:.85;
}
html[data-background="sumi-nijimi"] #rooms > * { position:relative; z-index:1; }
html[data-background="sumi-nijimi"] :is(#about,#rooms,#days,#around,#faq) { background-color:#17140f; }
html[data-background="sumi-nijimi"] :is(#rooms,#days,#around,#faq)::before {
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
          mask-image:linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
}
@media (min-width:861px){
  html[data-background="sumi-nijimi"] :is(#rooms,#days,#around,#faq)::after {
    content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
    background:url("assets/sumi/nijimi/nijimi-c.jpg") no-repeat; background-size:100% auto; opacity:.7;
    -webkit-mask-image:linear-gradient(to right,#000 0,#000 18%,transparent 34%),linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
    -webkit-mask-composite:source-in;
            mask-image:linear-gradient(to right,#000 0,#000 18%,transparent 34%),linear-gradient(to bottom,transparent 0,#000 24%,#000 76%,transparent 100%);
            mask-composite:intersect;
  }
  html[data-background="sumi-nijimi"] #rooms::after  { background-position:0 20%; }
  html[data-background="sumi-nijimi"] #days::after   { background-position:0 45%; }
  html[data-background="sumi-nijimi"] #around::after { background-image:url("assets/sumi/nijimi/nijimi-a.jpg"); background-position:0 70%; }
  html[data-background="sumi-nijimi"] #faq::after    { background-position:0 90%; }
}
/* B の流れる文字を少しだけ濃く（写真の後ろで読み取れる程度） */
.gallery-words-track span { color:rgba(235,227,211,.14); }
html[data-time="day"] .gallery-words-track span { color:rgba(41,51,44,.11); }

/* ===== Claude 11/06（2）：ギャラリー B を BYAKU の帯に寄せる（本人「もっと元のサイトに寄せられない？」）
   画面いっぱいの高さの帯に、写真・縦書きの言葉・英語の3層を重ね、層ごとに違う速さで左へ流す。位置は gallery-source.cjs。 */
.gallery-b { display:none; }
html[data-gallery="b"] .gallery-b { display:block; position:relative; --k:1; height:calc(var(--k) * 900px); overflow:hidden; margin:8px 0 0; }
html[data-gallery="b"] .mq-cards, html[data-gallery="b"] .gallery-words, html[data-gallery="b"] #mqPrev, html[data-gallery="b"] #mqNext { display:none !important; }
.gb-layer { position:absolute; top:0; left:0; height:100%; display:flex; width:max-content; animation:gb-loop var(--dur) linear infinite; will-change:transform; }
.gb-tile { position:relative; flex:none; width:calc(var(--k) * var(--tw) * 1px); height:100%; }
@keyframes gb-loop { from { transform:translateX(0); } to { transform:translateX(calc(-1px * var(--k) * var(--tw))); } }
.gb-photos { --dur:130s; z-index:1; }
.gb-titles { --dur:95s; z-index:2; pointer-events:none; }
.gb-ens    { --dur:108s; z-index:2; pointer-events:none; }
.gb-photo { position:absolute; margin:0; overflow:hidden; transition:filter .2s linear, opacity .2s linear; }
.gb-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.gb-title {
  position:absolute; margin:0; writing-mode:vertical-rl; white-space:nowrap;
  font-family:var(--mincho); color:var(--kinari); letter-spacing:.2em; line-height:1.7;
  text-shadow:0 1px 16px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6);
}
.gb-L { font-size:max(19px, calc(var(--k) * 44px)); }
.gb-M { font-size:max(15px, calc(var(--k) * 27px)); }
.gb-S { font-size:max(12px, calc(var(--k) * 16px)); }
.gb-en {
  position:absolute; margin:0; width:calc(var(--k) * 240px);
  font-family:"Cormorant Garamond", "Garamond", Georgia, "Times New Roman", serif; font-size:max(11px, calc(var(--k) * 17px)); line-height:1.35;
  color:rgba(235,227,211,.78); text-shadow:0 1px 10px rgba(0,0,0,.7);
}
/* 日本語以外では、言葉は横書きに */
html:not([lang="ja"]) .gb-title { writing-mode:horizontal-tb; white-space:normal; width:calc(var(--k) * 300px); letter-spacing:.04em; line-height:1.3; }
.marquee.paused .gb-layer { animation-play-state:paused; }
@media (max-width:860px){ html[data-gallery="b"] .gallery-b { --k:.56; } }
@media (prefers-reduced-motion: reduce){ .gb-layer { animation:none; } }
html[data-time="day"] .gb-title { color:#29332c; text-shadow:0 0 12px rgba(250,251,248,.9); }
html[data-time="day"] .gb-en { color:#596457; text-shadow:none; }
/* 英語は縦書きの言葉の左下に添える（右寄せで、縦書きに寄り添う） */
.gb-en { text-align:right; }

/* ===== Claude 11/07（2）：本人「デモ版を消す」「灯籠は左下に建っている感じ、火袋がぽわぽわ光る」「スライドの矢印は写真の左右に」 ===== */
/* デモの札（仮・手持ち）は出さない */
.tag { display:none !important; }
.sr { position:absolute !important; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; padding:0; }

/* 石灯籠：枠や地のない絵だけで、左下に建つ。夜は火袋の窓がぽわぽわ光る */
.lantern {
  position:fixed; left:18px; bottom:10px; z-index:31; width:62px; height:128px; padding:0; margin:0;
  display:block; background:none !important; border:0 !important; box-shadow:none !important; border-radius:0;
  -webkit-backdrop-filter:none; backdrop-filter:none; cursor:pointer;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.35));
  transition:transform .3s ease;
}
.lantern:hover { transform:translateY(-2px); }
.lantern:focus-visible { outline:2px solid #e8a54b; outline-offset:4px; border-radius:6px; }
.lantern-icon { display:block; width:100%; height:100%; overflow:visible; fill:none; }
.lantern .ls-hi { stop-color:#b9b2a6; } .lantern .ls-lo { stop-color:#6e675d; }
.lantern-shadow { fill:rgba(0,0,0,.28); }
.lantern-lattice { stroke:rgba(70,60,48,.55); stroke-width:.9; fill:none; }
.lantern .lf-core { stop-color:#efe6d4; } .lantern .lf-mid { stop-color:#ddd2bd; } .lantern .lf-edge { stop-color:#b9ad97; }
.lantern-window { transition:filter .6s ease; }
/* 火袋のまわりのやわらかな光（夜だけ）。ぽわぽわと息をするように */
.lantern::before {
  content:""; position:absolute; left:50%; top:42%; width:120px; height:120px; margin:-60px 0 0 -60px; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle, rgba(255,200,120,.55) 0, rgba(255,170,80,.22) 30%, rgba(255,160,70,0) 66%);
  opacity:0; transform:scale(.6); transition:opacity .7s ease, transform .7s ease;
}
html[data-time="night"] .lantern::before { opacity:1; transform:scale(1); animation:lantern-breathe 3.6s ease-in-out infinite; }
@keyframes lantern-breathe { 0%,100% { opacity:.75; transform:scale(.92); } 50% { opacity:1; transform:scale(1.08); } }
html[data-time="night"] .lantern .ls-hi { stop-color:#6d6457; } html[data-time="night"] .lantern .ls-lo { stop-color:#2e2a24; }
html[data-time="night"] .lantern .lf-core { stop-color:#fff4d6; } html[data-time="night"] .lantern .lf-mid { stop-color:#ffc96e; } html[data-time="night"] .lantern .lf-edge { stop-color:#e08a2e; }
html[data-time="night"] .lantern-window { filter:drop-shadow(0 0 4px rgba(255,190,90,.95)); animation:lantern-fire 2.8s ease-in-out infinite; }
html[data-time="night"] .lantern-lattice { stroke:rgba(90,52,18,.7); }
@keyframes lantern-fire { 0%,100% { opacity:1; } 40% { opacity:.86; } 60% { opacity:.97; } 80% { opacity:.9; } }
.lantern:hover .lantern-window { filter:drop-shadow(0 0 3px rgba(255,200,120,.8)); }
@media (max-width:860px){
  .lantern { left:10px; bottom:calc(4px + env(safe-area-inset-bottom)); width:42px; height:86px; min-height:0; }
  .lantern::before { width:84px; height:84px; margin:-42px 0 0 -42px; }
  .sp-book { padding-left:62px !important; }
}
@media (prefers-reduced-motion: reduce){ .lantern::before, .lantern-window { animation:none !important; } }

/* 施設案内のスライド：下の列（矢印・点・枚数・一時停止）をなくし、写真の左右にカーソルを持っていくと矢印が出る */
#roomShowcase { position:relative; }
#roomShowcase .slide-controls { position:absolute; left:0; right:0; top:0; height:100%; padding:0; margin:0; display:block; pointer-events:none; z-index:4; }
#roomShowcase .slide-dots, #roomShowcase #roomCount { display:none !important; }
#roomShowcase #roomPause { position:absolute !important; width:1px !important; height:1px !important; min-width:0 !important; overflow:hidden; clip:rect(0 0 0 0); border:0 !important; opacity:0; }
#roomShowcase #roomPause:focus-visible { clip:auto; width:44px !important; height:44px !important; left:50%; bottom:16px; opacity:1; border:1px solid var(--kinari) !important; background:rgba(20,16,10,.6); }
#roomShowcase #roomPrev, #roomShowcase #roomNext {
  position:absolute; top:0; bottom:0; width:24%; margin:0; padding:0; border:0 !important; background:none; pointer-events:auto; cursor:pointer;
  font-size:0 !important; color:#fff8ec; opacity:0; transition:opacity .25s ease;
}
#roomShowcase #roomPrev { left:0; } #roomShowcase #roomNext { right:0; }
#roomShowcase #roomPrev::after, #roomShowcase #roomNext::after {
  content:""; position:absolute; top:50%; width:52px; height:52px; margin-top:-26px; border-radius:50%;
  background:rgba(18,14,9,.5) no-repeat center / 22px 22px; border:1px solid rgba(255,248,236,.55);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
}
#roomShowcase #roomPrev::after { left:22px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 4 7 12l8 8' fill='none' stroke='%23fff8ec' stroke-width='1.6'/%3E%3C/svg%3E"); }
#roomShowcase #roomNext::after { right:22px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 4 8 8-8 8' fill='none' stroke='%23fff8ec' stroke-width='1.6'/%3E%3C/svg%3E"); }
#roomShowcase #roomPrev:hover, #roomShowcase #roomNext:hover, #roomShowcase #roomPrev:focus-visible, #roomShowcase #roomNext:focus-visible { opacity:1; }
#roomShowcase #roomPrev:focus-visible::after, #roomShowcase #roomNext:focus-visible::after { outline:2px solid #e8a54b; outline-offset:2px; }
/* タッチの画面ではカーソルがないので、細い押し場所に小さな矢印を薄く出す（真ん中は指で横に送れる） */
@media (hover:none){
  #roomShowcase #roomPrev, #roomShowcase #roomNext { width:52px; opacity:.85; }
  #roomShowcase #roomPrev::after, #roomShowcase #roomNext::after { width:36px; height:36px; margin-top:-18px; background-size:16px 16px; }
  #roomShowcase #roomPrev::after { left:8px; } #roomShowcase #roomNext::after { right:8px; }
}

/* ===== Claude 11/07（3）：本人「各欄の題目は横書きに（空間が多いのでコンパクトに）」「コンセプトは文字に対して写真が多いので調整」 ===== */
/* 題目：縦書きをやめ、細い線を添えた小さな横書きの題目を、導入の大見出しの上に置く */
html body .sec-head { flex-direction:column; align-items:flex-start; gap:12px; margin-bottom:clamp(22px, 3vw, 34px); }
html body .v-title {
  writing-mode:horizontal-tb; border:0; padding:0; margin:0; display:flex; align-items:center; gap:14px;
  font-size:clamp(14px, 1.2vw, 16px); letter-spacing:.32em; line-height:1.4; color:var(--akari); flex-shrink:0;
}
html body .v-title::before { content:""; width:34px; height:1px; background:currentColor; opacity:.8; flex-shrink:0; }
html body .rooms .sec-head .v-title { writing-mode:horizontal-tb; border:0; padding:0; }
/* ギャラリーは題目と一時停止を1行に */
html body #days .sec-head { flex-direction:row; flex-wrap:wrap; align-items:center; }
html body #days .sec-head #mqPause { margin-left:auto; }
/* 欄の上下の余白も少し詰める */
main > section:not(.hero):not(.reserve) { padding-top:clamp(40px, 6vw, 72px); padding-bottom:clamp(40px, 6vw, 72px); }
@media (max-width:860px){
  html body .v-title { font-size:13px; letter-spacing:.26em; gap:10px; }
  html body .v-title::before { width:24px; }
  html body .sec-head { gap:8px; margin-bottom:18px; }
  main > section:not(.hero):not(.reserve) { padding-top:32px; padding-bottom:32px; }
}
html[data-lang="en"] body .v-title, html[data-lang="ko"] body .v-title { letter-spacing:.14em; border:0; padding:0; }

/* コンセプト：写真を小さくし、文字と写真の釣り合いをとる（写真は列の6割弱・縦の余白を詰める） */
@media (min-width:861px){
  #about .pair { grid-template-columns:minmax(0, .9fr) minmax(0, 1fr); gap:clamp(28px, 4vw, 64px); align-items:center; margin-bottom:clamp(28px, 4vw, 48px); }
  #about .pair.pair-rev { grid-template-columns:minmax(0, 1fr) minmax(0, .9fr); }
  #about .pair .pair-img img { aspect-ratio:3 / 2; max-height:340px; width:100%; object-fit:cover; }
  #about .pair .pair-img-tall { width:auto; max-width:none; justify-self:stretch; }
  #about .pair .pair-img-tall img { aspect-ratio:3 / 2; max-height:340px; }
  #about .pair-text { max-width:30em; }
}
@media (max-width:860px){
  #about .pair { margin-bottom:28px; }
  #about .pair .pair-img img, #about .pair .pair-img-tall img { aspect-ratio:16 / 9; width:100%; object-fit:cover; }
  #about .pair .pair-img-tall { width:100%; max-width:none; }
}
/* 最初の画面：灯籠の火袋から光が広がる（起点 --lx/--ly は daynight.part.js が計算）。ともした瞬間に灯籠がふわっと明るむ */
.hero-spark {
  position:absolute; z-index:1; left:var(--lx, 54%); top:var(--ly, 54%); width:260px; height:260px; margin:-130px 0 0 -130px; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle, rgba(255,226,160,.85) 0, rgba(255,190,100,.38) 22%, rgba(255,170,80,.12) 45%, rgba(255,170,80,0) 68%);
  mix-blend-mode:screen; opacity:0; transform:scale(.3); transition:opacity .6s ease, transform .6s ease;
}
.hero.is-lit .hero-spark { animation:hero-spark-on 2.6s ease-out forwards, hero-spark-breathe 4s ease-in-out 2.6s infinite; }
@keyframes hero-spark-on { 0% { opacity:0; transform:scale(.3); } 25% { opacity:1; transform:scale(1.25); } 100% { opacity:.55; transform:scale(.8); } }
@keyframes hero-spark-breathe { 0%,100% { opacity:.55; transform:scale(.8); } 50% { opacity:.75; transform:scale(.92); } }
@media (max-width:720px){ .hero-spark { width:180px; height:180px; margin:-90px 0 0 -90px; } }
@media (prefers-reduced-motion: reduce){ .hero.is-lit .hero-spark { animation:none; opacity:.55; transform:scale(.8); } }
/* コンセプトの写真をもう一段小さく（文字の側を広く） */
@media (min-width:861px){
  #about .pair { grid-template-columns:minmax(0, .74fr) minmax(0, 1fr); max-width:1080px; }
  #about .pair.pair-rev { grid-template-columns:minmax(0, 1fr) minmax(0, .74fr); }
  #about .pair .pair-img img, #about .pair .pair-img-tall img { max-height:290px; }
}
html body .sec-head:has(.sec-note) { flex-direction:column; }

/* ===== Claude 11/07（4）：灯籠は写実の石灯籠（ChatGPT 作の絵）。画面のいちばん下を地面にして、影を付けずに建てる ===== */
.lantern {
  left:18px; bottom:0; width:88px; height:132px; filter:none !important; transform:none !important;
}
.lantern:hover { transform:none !important; }
.lantern-img { position:absolute; left:0; bottom:0; width:100%; height:100%; object-fit:contain; object-position:50% 100%; display:block; transition:opacity .7s ease, filter .3s ease; }
.lantern-img-on { opacity:0; }
html[data-time="night"] .lantern-img-on { opacity:1; }
.lantern:hover .lantern-img { filter:brightness(1.06); }
/* 火袋（絵の左右の真ん中・上から48%）のまわりのやわらかな光。夜だけ、ぽわぽわと息をするように */
.lantern::before { left:50%; top:48.4%; width:150px; height:150px; margin:-75px 0 0 -75px; z-index:-1;
  background:radial-gradient(circle, rgba(255,205,125,.6) 0, rgba(255,175,85,.24) 30%, rgba(255,160,70,0) 66%); }
html[data-time="night"] .lantern::before { animation:lantern-breathe 3.6s ease-in-out infinite; }
/* 夜の暗い地では、石の絵が沈みすぎないように少しだけ明るく */
html[data-time="night"] .lantern-img-on { filter:brightness(1.04); }
@media (max-width:860px){
  .lantern { left:8px; bottom:0; width:50px; height:75px; }
  .lantern::before { width:96px; height:96px; margin:-48px 0 0 -48px; }
  .sp-book { padding-left:66px !important; }
}
@media (prefers-reduced-motion: reduce){ .lantern-img { transition:none; } }

/* ===== Claude 11/08：本人「大きな画面（拡大）で最初の画面の下の2行が埋もれる」「灯籠に吹き出し」 ===== */
/* 最初の画面の題字：画面の高さにも合わせて大きさを決め、下の2行が灯籠と吹き出しより上に必ず収まるように（PC） */
@media (min-width:861px){
  .hero-copy { top:clamp(22px, 6vh, 80px); }
  .hero-name { font-size:clamp(34px, min(7vw, calc(17.2vh - 69px)), 96px); }
  .hero-lead { margin-top:clamp(10px, 1.6vh, 18px); }
  .light-history { margin-top:clamp(8px, 1.2vh, 14px); }
}

/* 灯籠の吹き出し：開いたとき（昼）だけ、灯籠の右に「押せる」と知らせる。灯籠の光（火袋のまわり）には重ねない */
.lantern-hint {
  position:fixed; z-index:32; left:150px; bottom:74px; display:flex; align-items:center; gap:10px;
  padding:10px 16px 10px 14px; border-radius:4px; cursor:pointer; white-space:nowrap;
  font-family:var(--mincho); font-size:14px; letter-spacing:.12em; line-height:1.3;
  color:#29332c; background:rgba(250,251,248,.96); border:1px solid rgba(135,83,30,.35);
  box-shadow:0 10px 26px -14px rgba(0,0,0,.45);
  opacity:0; transform:translateX(-6px); pointer-events:none; transition:opacity .5s ease, transform .5s ease;
}
.lantern-hint::before { /* 灯籠へ向かう小さな三角 */
  content:""; position:absolute; left:-7px; top:50%; width:12px; height:12px; margin-top:-6px; transform:rotate(45deg);
  background:inherit; border-left:1px solid rgba(135,83,30,.35); border-bottom:1px solid rgba(135,83,30,.35);
}
.lantern-hint-dot { width:7px; height:7px; border-radius:50%; background:#d8902f; box-shadow:0 0 0 0 rgba(216,144,47,.5); animation:hint-dot 2s ease-out infinite; flex-shrink:0; }
@keyframes hint-dot { 0% { box-shadow:0 0 0 0 rgba(216,144,47,.55); } 70%,100% { box-shadow:0 0 0 9px rgba(216,144,47,0); } }
.lantern-hint.is-shown { opacity:1; transform:none; pointer-events:auto; animation:hint-bob 3.2s ease-in-out 1s infinite; }
@keyframes hint-bob { 0%,100% { translate:0 0; } 50% { translate:3px 0; } }
html[data-time="night"] .lantern-hint { color:var(--kinari); background:rgba(23,20,15,.92); border-color:rgba(232,165,75,.45); }
@media (max-width:860px){
  /* スマホ：灯籠は下の予約の帯の左端。吹き出しは帯の上、灯籠の光より上に出し、三角を下へ */
  .lantern-hint { left:10px; bottom:calc(98px + env(safe-area-inset-bottom)); font-size:13px; padding:9px 14px 9px 12px; transform:translateY(6px); }
  .lantern-hint::before { left:22px; top:auto; bottom:-7px; margin-top:0; border-left:0; border-bottom:1px solid rgba(135,83,30,.35); border-right:1px solid rgba(135,83,30,.35); }
  @keyframes hint-bob { 0%,100% { translate:0 0; } 50% { translate:0 -3px; } }
}
@media (prefers-reduced-motion: reduce){ .lantern-hint, .lantern-hint.is-shown, .lantern-hint-dot { animation:none; transition:none; } }

/* 本人 11/08：ヘッダーは画面の大きさにかかわらず三本線のメニューに固定（欄の名前は並べない） */
html body .head-nav { display:none !important; }
html body #menuToggle { display:inline-flex !important; align-items:center; justify-content:center; flex-shrink:0; }
@media (min-width:861px){ html body .head-tools { margin-left:auto; } html body .site-head { gap:14px; } }

/* ===== Claude 11/08（2）：本人「題字が小さくなりすぎ。吹き出しは灯籠の上に、灯籠と同じくらいの幅で丸く」 ===== */
/* 題字は元の大きさ（最大 88px、大きな画面では 100px まで）。低い画面だけ、下の行が最初の画面からはみ出さない分だけ縮める */
@media (min-width:861px){
  .hero-copy { top:clamp(22px, 6vh, 80px); left:max(calc(var(--gutter) + 44px), 132px); }
  .hero-name { font-size:clamp(40px, min(7vw, calc(17.6vh - 52px)), 100px); }
}
/* 吹き出し：灯籠の真上に、灯籠と同じくらいの幅の丸い吹き出し。しっぽは灯籠へ。灯籠の光の円より上に置く */
.lantern-hint {
  left:12px; bottom:150px; width:100px; height:74px; padding:0; gap:0; justify-content:center; text-align:center; white-space:normal;
  border-radius:50%; font-size:12.5px; letter-spacing:.08em; line-height:1.45; transform:translateY(6px);
}
.lantern-hint::before {
  left:50%; top:auto; bottom:-6px; margin:0 0 0 -6px; border-left:0; border-bottom:1px solid rgba(135,83,30,.35); border-right:1px solid rgba(135,83,30,.35);
}
.lantern-hint-dot { display:none; }
@keyframes hint-bob { 0%,100% { translate:0 0; } 50% { translate:0 -4px; } }
@media (max-width:860px){
  .lantern-hint { left:2px; bottom:calc(94px + env(safe-area-inset-bottom)); width:70px; height:54px; font-size:10.5px; letter-spacing:.04em; line-height:1.35; padding:0; }
  .lantern-hint::before { left:50%; margin-left:-6px; }
}
/* 吹き出しの文：昼は「押すと灯ります」、夜は「押すと消えます」 */
.lantern-hint .hint-night { display:none; }
html[data-time="night"] .lantern-hint .hint-day { display:none; }
html[data-time="night"] .lantern-hint .hint-night { display:inline; }

/* ===== 本人 11/08（2）：三本線はアクティビティ・朔と共通の形 =====
   丸い濃いボタン（46px）／右から画面の高さいっぱいの引き出し（幅 min(340px,86vw)）／後ろを薄暗く／
   「このページ」「宿のサイト」の小見出し／1行48px・明朝16px／外のサイトは ↗。ヘッダー（z20）の下に敷き、ボタンは上に見える */
html body #menuToggle { width:46px; height:46px; padding:0; border:0; border-radius:50%; background:#1c2523cc; color:#fff; box-shadow:0 2px 10px #0003; }
html body .menu-bars { display:grid; gap:4px; width:20px; }
html body .menu-bars i { height:2px; background:#fff; }
html body #menuToggle[aria-expanded="true"] .menu-bars i:nth-child(1) { transform:translateY(6px) rotate(45deg); }
html body #menuToggle[aria-expanded="true"] .menu-bars i:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
html body #mobileNav { top:0 !important; bottom:0; right:0; z-index:19; width:min(340px,86vw); max-height:none; overflow-y:auto; padding:calc(var(--head-h) + 12px) 22px 32px; box-shadow:0 0 0 100vmax #1c252366, -8px 0 30px -12px #1c252366; }
html body #mobileNav .menu-head { margin:18px 0 4px; font-size:11.5px; letter-spacing:.16em; opacity:.72; }
html body #mobileNav a { display:flex; align-items:center; gap:12px; min-height:48px; padding:0 4px; border-bottom:1px solid var(--line); font-family:"Shippori Mincho","Hiragino Mincho ProN","Yu Mincho",serif; font-size:16px; letter-spacing:.08em; text-decoration:none; }
html body #mobileNav a.is-out::after { content:"↗"; margin-left:auto; font-family:var(--sans, sans-serif); font-size:13px; opacity:.7; }
html[data-time="day"] body #mobileNav { box-shadow:0 0 0 100vmax #1c252366, -8px 0 30px -12px #1c252366; }
html[data-time="day"] body #mobileNav .menu-head { color:#596457; }
/* 11/14：予約ボタンが「ご予約・お問い合わせ」になり長くなったので、日本語以外は字間を詰めて1行に収める */
html:not([lang="ja"]) .btn-akari { letter-spacing:.06em; text-indent:.06em; white-space:nowrap; }
@media (max-width:860px){ html:not([lang="ja"]) .sp-book .btn-akari { font-size:14px; } }
/* 一番下の大きなボタンは折り返してよい（狭いスマホで横にはみ出さないように） */
html:not([lang="ja"]) .reserve .btn-cta { white-space:normal; max-width:100%; text-align:center; line-height:1.3; padding-top:10px; padding-bottom:10px; }
@media (max-width:420px){ .reserve .btn-cta { padding-left:22px; padding-right:22px; font-size:15px; } }

/* 一乗谷 燈・昼。integration.css の後に連結する。
   漆喰／障子紙／庭の苔／檜。寸法・写真・文字・並びは変更しない。 */
html[data-time="day"] {
  color-scheme: light;
  --sumi: #fafbf8;
  --susu: #f2f5ee;
  --read-surface: #f0f3ed;
  --head-surface: rgba(250, 251, 248, .97);
  --demo-surface: #eee8dc;
  --demo-ink: #55452d;
  --kinari: #29332c;
  --hai: #596457;
  --akari: #87531e;
  --line: #bfc7ba;
}

/* 墨モードのIDを含む既存セレクターより優先する。 */
html[data-time="day"] :is(#about, #rooms, #days, #around, #faq) {
  background-color: var(--sumi);
  background-image: none;
}
html[data-time="day"] #rooms { background-color: #f2f5ee; }
html[data-time="day"] #around { background-color: #f2f5ee; }
html[data-time="day"] #faq { background-color: #fafbf8; }
html[data-time="day"] :is(#stay, #access) { background: var(--read-surface); }
html[data-time="day"] .lattice { background-image: none; }
html[data-time="day"] :is(#about, #rooms, #days, #around, #stay, #access, #faq)::before,
html[data-time="day"] :is(#about, #rooms, #days, #around, #stay, #access, #faq)::after,
html[data-time="day"] #about > .pair::before {
  content: none;
  display: none;
}
html[data-time="day"] .fireflies,
html[data-time="day"] .glows { display: none !important; }

html[data-time="day"] .site-head,
html[data-time="day"] .sp-book { background: var(--head-surface); }
html[data-time="day"] #mobileNav {
  background: #f2f5ee;
  box-shadow: 0 20px 50px rgba(41, 51, 44, .16);
}
html[data-time="day"] .site-foot { background: #fafbf8; }
html[data-time="day"] .brand img,
html[data-time="day"] .foot-name img { filter: none; }
html[data-time="day"] .demo-bar button { border-color: var(--demo-ink); }
html[data-time="day"] .faq details p { color: var(--kinari); }
html[data-time="day"] .mq-slow span { color: rgba(65, 84, 57, .07); }
html[data-time="day"] .ph {
  background: repeating-linear-gradient(135deg, #f2f5ee 0 14px, #e5ebdf 14px 28px);
  color: #596457;
}

/* 写真・夜景の上では、変数も夜の値に戻して文字色を保つ。 */
html[data-time="day"] .hero,
html[data-time="day"] .reserve,
html[data-time="day"] .slide-caption,
html[data-time="day"] .mq-card figcaption,
html[data-time="day"] .ac-text,
html[data-time="day"] .room-cap {
  --sumi: #17140f;
  --kinari: #ebe3d3;
  --hai: #b6aa98;
  --akari: #e8a54b;
  --line: rgba(235, 227, 211, .14);
  color: #ebe3d3;
}
html[data-time="day"] .slide-caption { color: #fff7ea; }
html[data-time="day"] .mq-card figcaption,
html[data-time="day"] .ac-text,
html[data-time="day"] .room-cap { color: #d4ccbd; }

/* 予約欄の下に続く姉妹宿の一覧は昼の面へ戻す。 */
html[data-time="day"] .reserve .family {
  --kinari: #29332c;
  --hai: #596457;
  --akari: #87531e;
  --sumi: #fafbf8;
  --line: #bfc7ba;
  background: #fafbf8;
  color: #29332c;
}
html[data-time="day"] .family-list a,
html[data-time="day"] .family-list button { background: #f2f5ee; }

/* 琥珀のボタンと濃い文字は写真上も含めて既存のまま。
   白い面のフォーカス・ホバーにだけ深い琥珀を使う。 */
html[data-time="day"] .btn-akari:focus-visible { outline-color: #87531e; }
html[data-time="day"] .lang:hover .lang-face,
html[data-time="day"] .lang:focus-within .lang-face,
html[data-time="day"] #roomPause:hover,
html[data-time="day"] #mqPause:hover { color: #87531e; }
html[data-time="day"] .lang:focus-within .lang-face { outline-color: #87531e; }
html[data-time="day"] .dn-switch button {
  background: #f2f5ee;
  color: #29332c;
  border-color: #87531e;
}
html[data-time="day"] .dn-switch button[aria-pressed="true"] {
  background: #e8a54b;
  color: #1c1407;
}
html[data-time="day"] dialog { background: #f2f5ee; color: #29332c; }
html[data-time="day"] dialog::backdrop { background: rgba(41, 51, 44, .35); }
html[data-time="day"] dialog button { background: #e8a54b; color: #1c1407; }
html[data-time="day"] .rc-table td { border-color: #bfc7ba; }
html[data-time="day"] .rc-past,
html[data-time="day"] .rc-closed { color: #596457; }
html[data-time="day"] .rc-sun .rc-day { color: #925138; }
html[data-time="day"] .rc-sat .rc-day { color: #415439; }

/* 図が表示される場合も、暗色の面を残さない。 */
html[data-time="day"] .pl-family { fill: #e5ebdf; stroke: #87937e; }
html[data-time="day"] .pl-fam-t { fill: #596457; }
html[data-time="day"] .pl-glass { stroke: #596457; }
html[data-time="day"] .pl-guest rect,
html[data-time="day"] .pl-guest-s { fill: #f2f5ee; stroke: #87531e; }
html[data-time="day"] .pl-engawa { fill: #eee8dc; stroke: #87531e; }
html[data-time="day"] .pl-t { fill: #29332c; }
html[data-time="day"] .pl-garden { fill: #415439; }

@media (max-width: 760px) {
  /* 表紙写真の上に重なるカードの文字・矢印は白系を保つ。 */
  html[data-time="day"] .around-embed-bar { --akari: #e8a54b; }
}
