/* 小川温泉 — 藍と生成りの木版画調 */
:root {
  --ai: #16233f;
  --ai-2: #22365c;
  --paper: #f5efe3;
  --paper-2: #ebe3d2;
  --ink: #20242f;
  --mute: #565a64;
  --line: #d6ccb6;
  --moss: #4a5837;
  --lamp: #e8ae55;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 2; font-feature-settings: "palt"; letter-spacing: .03em; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.5; margin: 0; letter-spacing: .08em; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.small { font-size: 14px; color: var(--mute); line-height: 1.8; }
.nowrap { white-space: nowrap; }

/* ヘッダー */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: #fff; }
.site-header.solid { position: static; background: var(--ai); }
.bar { display: flex; align-items: center; gap: 24px; padding: 16px var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 1px #ffffff40; }
.brand b { font-size: 21px; font-weight: 600; letter-spacing: .14em; line-height: 1.2; }
.brand small { display: block; font-size: 11px; letter-spacing: .1em; opacity: .85; line-height: 1.5; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: currentColor; }
.btn-head { text-decoration: none; background: var(--lamp); color: #1b1a17; font-size: 15px; font-weight: 600; padding: 9px 20px; border-radius: 2px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid #ffffff80; color: inherit; font: inherit; font-size: 14px; padding: 5px 13px; border-radius: 2px; cursor: pointer; line-height: 1.7; }

/* ヒーロー */
.hero { position: relative; min-height: min(100svh, 920px); background: var(--ai); color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 100%; }
.hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to bottom, #0b142800, #0b1428e6 72%); }
.hero-tag { position: absolute; z-index: 2; top: clamp(96px, 15vh, 150px); right: clamp(20px, 11vw, 190px); writing-mode: vertical-rl; font-size: clamp(32px, min(4.4vw, 5.6vh), 62px); letter-spacing: .24em; line-height: 1.4; margin: 0; white-space: nowrap; text-shadow: 0 1px 18px #0b142899; font-weight: 500; }
.hero-body { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(32px, 6vh, 64px); display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; max-width: 1400px; margin-inline: auto; }
.hero-body h1 { font-size: clamp(19px, 2vw, 25px); font-weight: 500; }
.hero-body p { margin: 8px 0 0; font-size: 16px; line-height: 1.9; max-width: 34em; }
.offer { display: block; font-size: 14px; letter-spacing: .06em; margin-bottom: 8px; text-align: center; }
.offer strong { color: var(--lamp); font-size: 24px; font-weight: 600; letter-spacing: .02em; }

.btn { display: inline-block; text-decoration: none; text-align: center; background: var(--lamp); color: #1b1a17; font-family: inherit; font-size: 18px; font-weight: 600; letter-spacing: .1em; padding: 15px 34px; border: 0; border-radius: 2px; cursor: pointer; transition: background .2s; line-height: 1.5; }
.btn:hover { background: #f3c177; }
.btn.line { background: none; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn.line:hover { background: #0000000f; }

/* セクション */
section { position: relative; padding-block: clamp(64px, 10vw, 128px); }
.alt { background: var(--paper-2); }
.dark { background: var(--ai); color: #f1ece0; }
.sec-head { position: relative; margin-bottom: clamp(32px, 5vw, 56px); padding-left: clamp(76px, 11vw, 150px); min-height: clamp(64px, 9vw, 120px); display: flex; flex-direction: column; justify-content: center; }
.sec-head .mark { position: absolute; left: 0; top: 50%; translate: 0 -50%; font-size: clamp(64px, 10vw, 128px); line-height: 1; color: var(--ai); font-weight: 500; letter-spacing: 0; }
.dark .sec-head .mark { color: var(--lamp); }
.sec-head h2 { font-size: clamp(23px, 3vw, 34px); }
.sec-head p { margin: 6px 0 0; color: var(--mute); font-size: 15px; line-height: 1.8; }
.dark .sec-head p { color: #cfc9bb; }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.art { border: 1px solid var(--line); }
.dark .art { border-color: #ffffff30; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-block: 1px solid var(--line); }
.facts div { padding: 22px 12px; text-align: center; line-height: 1.5; }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; color: var(--ai); }
.facts span { font-size: 14px; color: var(--mute); }

.intro { max-width: 40em; }
.intro p { font-size: clamp(17px, 1.6vw, 19px); }

table.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.75; }
.spec th, .spec td { padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 7.5em; font-weight: 600; white-space: nowrap; padding-right: 14px; }

/* 客室 */
.rooms { border-top: 1px solid var(--line); }
.room { display: grid; grid-template-columns: 4em 1fr 1.5fr auto; gap: 8px 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.room .kana { font-size: 14px; color: var(--moss); }
.room h3 { font-size: 24px; }
.room p { margin: 0; font-size: 16px; line-height: 1.9; }
.room .price { text-align: right; font-size: 21px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.room .price small { display: block; font-size: 12px; font-weight: 400; color: var(--mute); }

/* プラン */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #ffffff2e; border: 1px solid #ffffff2e; }
.plan { background: var(--ai); padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; }
.plan .tag { color: var(--lamp); font-size: 14px; margin: 0 0 4px; }
.plan .yen { font-size: 32px; font-weight: 600; margin: 12px 0 2px; line-height: 1.4; letter-spacing: .02em; }
.plan .yen small { font-size: 14px; font-weight: 400; }
.plan p.d { font-size: 15.5px; line-height: 1.9; color: #ddd8ca; flex: 1; margin-bottom: 18px; }
.plan a { align-self: flex-start; color: var(--lamp); font-size: 16px; text-underline-offset: 5px; }
.note { font-size: 14px; line-height: 1.9; margin-top: 22px; color: #cfc9bb; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: 18px 30px 18px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; position: relative; line-height: 1.7; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 2px; top: 18px; color: var(--moss); }
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 16px; line-height: 1.95; padding-bottom: 8px; }

/* 導線 */
.cta-end { text-align: center; }
.cta-end h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 14px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.sticky { position: fixed; inset: auto 0 0; z-index: 30; display: none; grid-template-columns: 1fr 2fr; background: var(--ai); box-shadow: 0 -2px 14px #0003; transform: translateY(100%); transition: transform .25s; padding-bottom: env(safe-area-inset-bottom); }
.sticky.on { transform: none; }
.sticky a { text-align: center; text-decoration: none; padding: 13px 8px; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; font-family: var(--serif); }
.sticky a.main { background: var(--lamp); color: #1b1a17; }

/* サブページ */
.page-head { background: var(--ai); color: #fff; padding-block: 44px 52px; }
.page-head h1 { font-size: clamp(27px, 4vw, 40px); }
.page-head p { margin: 8px 0 0; color: #d8d3c6; font-size: 16px; }
.crumb { font-size: 13px; color: #cfc9bb; margin-bottom: 10px; line-height: 1.8; }
.crumb a { color: inherit; }
.prose { max-width: 46em; }
.prose h2 { font-size: 23px; margin: 2em 0 .6em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
section.tight { padding-block: clamp(44px, 7vw, 80px); }

.spots { display: grid; gap: 0; border-top: 1px solid var(--line); }
.spot { display: grid; grid-template-columns: 11em 1fr; gap: 6px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.spot h2 { font-size: 21px; }
.spot .t { display: block; font-size: 14px; font-weight: 400; color: var(--moss); letter-spacing: .04em; margin-top: 2px; }
.spot p { margin: 0; font-size: 16px; line-height: 1.95; }

/* フォーム */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; line-height: 1.6; }
.field label em { font-style: normal; font-size: 12px; color: #a83f1b; margin-left: 6px; font-weight: 400; }
input, select, textarea { font: 16px/1.6 var(--sans); padding: 11px 12px; border: 1px solid #a89d84; background: #fffdf8; color: var(--ink); border-radius: 2px; width: 100%; min-width: 0; }
.estimate { background: var(--paper-2); padding: 20px 24px; margin-top: 26px; line-height: 1.7; }
.estimate output { display: block; font-size: 29px; font-weight: 600; color: var(--ai); }
.form-done { background: var(--ai); color: #fff; padding: 24px; margin-top: 24px; }
.form-done p:last-child { margin: 0; }

/* LP */
.lp .hero { min-height: min(86svh, 760px); }
.lp-head { position: absolute; inset: 0 0 auto; z-index: 20; color: #fff; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.reasons h2 { font-size: 21px; margin-bottom: 10px; }
.reasons p { font-size: 16px; line-height: 1.95; margin: 0; }
.reasons .n { font-size: 40px; color: var(--moss); line-height: 1.2; display: block; }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; background: var(--ai); color: #fff; padding: clamp(26px, 4vw, 46px); }
.ticket h2 { font-size: clamp(22px, 2.6vw, 28px); }
.ticket ul { margin: 12px 0 0; padding-left: 1.2em; font-size: 16px; line-height: 1.95; color: #e3ded1; }
.ticket .yen { font-size: clamp(34px, 4.4vw, 46px); font-weight: 600; color: var(--lamp); line-height: 1.3; letter-spacing: .02em; }
.ticket .yen small { display: block; font-size: 14px; color: #e3ded1; font-weight: 400; }

/* フッター */
.site-footer { background: #0e1830; color: #d8d3c6; padding-block: 48px 36px; font-size: 14.5px; line-height: 1.9; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.foot b { font-size: 20px; color: #fff; font-weight: 600; letter-spacing: .14em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.foot p { margin: 0; }
.foot a { text-underline-offset: 3px; }
.copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid #ffffff24; font-size: 12.5px; }

@media (max-width: 960px) {
  .nav { display: none; position: absolute; inset: 72px 16px auto; flex-direction: column; gap: 0; background: var(--ai); padding: 8px 20px; border: 1px solid #ffffff30; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; font-size: 16px; border-bottom: 1px solid #ffffff1f; }
  .nav-toggle { display: block; }
  .site-header.solid .nav { top: 72px; }
  .site-header.solid { position: relative; }
  .room { grid-template-columns: 1fr auto; }
  .room .kana { grid-column: 1 / -1; }
  .room p { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  body.has-sticky { padding-bottom: 54px; }
  .sticky { display: grid; }
  .btn-head { display: none; }
  .hero { min-height: min(100svh, 780px); background: #0b1428; }
  .hero > img { inset: 38px 0 auto; height: 68%; }
  .hero::after { inset: 32% 0 0; background: linear-gradient(to bottom, #0b142800, #0b1428 56%); }
  .lp .hero > img { height: 60%; }
  .hero-tag { top: 84px; right: 20px; font-size: 34px; }
  .hero-body { grid-template-columns: 1fr; }
  .hero-body .btn { width: 100%; }
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .plans, .reasons, .form-grid, .foot { grid-template-columns: 1fr; }
  .spot { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; }
  .spec th { width: 6em; }
  .cta-row .btn { width: 100%; }
}

[hidden] { display: none !important; }
