/* 関金温泉 — 昭和の湯屋ポスター調 */
:root {
  --cream: #fbf1da;
  --paper: #fffaf0;
  --sun: #f6d98b;
  --red: #c63524;
  --teal: #17686a;
  --tile: #bfe3dc;
  --navy: #22386e;
  --ink: #1d1b18;
  --mute: #55504a;
  --wood: #c99a5b;
  --display: "Dela Gothic One", "Hiragino Kaku Gothic StdN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --body: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --gutter: clamp(16px, 4.5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.85; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.35; margin: 0; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

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

.tiles { height: 16px; background: conic-gradient(var(--teal) 25%, var(--tile) 0 50%, var(--teal) 0 75%, var(--tile) 0) 0 0 / 16px 16px; }

/* ヘッダー */
.site-header { background: var(--cream); border-bottom: 3px solid var(--ink); position: relative; z-index: 20; }
.bar { display: flex; align-items: center; gap: 22px; padding: 12px var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.15; display: block; }
.brand small { font-size: 11.5px; display: block; line-height: 1.4; }
.nav { display: flex; gap: 20px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 4px 0; }
.nav a:hover { color: var(--red); }
.nav-toggle { display: none; background: var(--paper); border: 2px solid var(--ink); font: inherit; font-weight: 700; font-size: 14px; padding: 4px 12px; cursor: pointer; }

.btn { display: inline-block; text-decoration: none; text-align: center; background: var(--red); color: #fff; font-family: var(--body); font-weight: 800; font-size: 19px; padding: 13px 28px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); cursor: pointer; transition: transform .1s, box-shadow .1s; line-height: 1.4; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn.alt { background: var(--paper); color: var(--ink); }
.btn.sm { font-size: 15px; padding: 7px 14px; box-shadow: 3px 3px 0 var(--ink); border-width: 2px; white-space: nowrap; }

/* 営業ステータス */
.status { background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 700; text-align: center; padding: 6px 16px; line-height: 1.6; }
.status .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #8fd18a; margin-right: 8px; }
.status.closed .dot { background: #e78a7c; }

/* ヒーロー */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding-block: clamp(26px, 5vw, 60px); }
.hero h1 { font-size: clamp(42px, 7.1vw, 92px); line-height: 1.22; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .kicker { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; padding: 2px 12px; font-size: 15px; margin-bottom: 14px; }
.hero .lead { font-size: clamp(16.5px, 1.5vw, 19px); margin: 18px 0 22px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.poster { border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--red); background: var(--sun); }
.poster img { width: 100%; }

section { padding-block: clamp(52px, 8vw, 96px); }
section.teal { background: var(--teal); color: #fff; }
section.paper { background: var(--paper); }
section.sun { background: var(--sun); }
.sec-head { margin-bottom: clamp(26px, 4vw, 42px); max-width: 44em; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 52px); }
.sec-head p { margin: 10px 0 0; font-size: 17px; }

/* 木札の料金表 */
.fuda-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fuda { position: relative; background: var(--wood) linear-gradient(90deg, #ffffff14, #0000 40%, #00000012); border: 3px solid var(--ink); padding: 34px 8px 18px; display: flex; flex-direction: column; align-items: center; color: var(--ink); text-align: center; }
.fuda::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); }
.fuda h3 { writing-mode: vertical-rl; font-size: 26px; min-height: 6.4em; letter-spacing: .06em; }
.fuda .price { font-family: var(--display); font-size: 28px; line-height: 1.2; margin-top: 12px; white-space: nowrap; }
.fuda .price small { font-size: 13px; }
.fuda .sub { font-size: 13px; line-height: 1.5; margin-top: 4px; font-weight: 700; }
.tax { margin-top: 18px; font-size: 14.5px; }

/* カード */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
.art { border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.split h3 { font-size: clamp(25px, 3vw, 36px); margin-bottom: 12px; }
.stack { display: grid; gap: clamp(48px, 7vw, 84px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.tags li { background: var(--paper); border: 2px solid var(--ink); padding: 0 11px; font-size: 14px; font-weight: 700; line-height: 1.9; }

table.spec { width: 100%; border-collapse: collapse; background: var(--paper); border: 3px solid var(--ink); font-size: 15.5px; line-height: 1.7; }
.spec th, .spec td { padding: 11px 14px; border-bottom: 2px solid var(--ink); text-align: left; vertical-align: top; color: var(--ink); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { background: var(--sun); white-space: nowrap; width: 8em; }

/* 湯治の表 */
.menu { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.menu li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 2px; border-bottom: 2px dotted var(--ink); font-weight: 700; line-height: 1.6; }
.menu span:last-child { white-space: nowrap; font-family: var(--display); font-weight: 400; }

/* クーポン */
.coupon { background: var(--paper); border: 3px dashed var(--ink); padding: clamp(22px, 4vw, 42px); display: grid; grid-template-columns: 1fr auto; gap: 20px 36px; align-items: center; color: var(--ink); }
.coupon h2, .coupon h3 { font-size: clamp(27px, 4vw, 44px); }
.coupon h2 em, .coupon h3 em { font-style: normal; color: var(--red); }
.coupon p { margin: 8px 0 0; }
.code { display: none; margin-top: 14px; background: var(--ink); color: #fff; padding: 11px 18px; font-size: 18px; font-weight: 700; letter-spacing: .02em; line-height: 1.6; }
.code.show { display: block; }
.code b { font-family: var(--display); font-weight: 400; color: var(--sun); font-size: clamp(19px, 5.6vw, 26px); letter-spacing: .04em; display: block; white-space: nowrap; }

/* FAQ */
.faq details { background: var(--paper); border: 3px solid var(--ink); margin-bottom: 12px; }
.faq summary { padding: 13px 44px 13px 16px; font-weight: 700; cursor: pointer; list-style: none; position: relative; line-height: 1.65; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 14px; top: 13px; color: var(--red); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 16px 6px; }

.cta-end { text-align: center; }
.cta-end h2 { font-size: clamp(30px, 5vw, 56px); margin-bottom: 8px; }
.cta-row { display: flex; gap: 18px; 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 1.6fr; border-top: 3px solid var(--ink); transform: translateY(100%); transition: transform .25s; padding-bottom: env(safe-area-inset-bottom); background: var(--paper); }
.sticky.on { transform: none; }
.sticky a { text-align: center; text-decoration: none; padding: 11px 6px; font-weight: 700; font-size: 16px; line-height: 1.5; }
.sticky a.main { background: var(--red); color: #fff; font-weight: 800; }

/* サブページ */
.page-head { background: var(--red); color: #fff; padding-block: 34px 40px; }
.page-head h1 { font-size: clamp(32px, 5vw, 54px); }
.page-head p { margin: 6px 0 0; }
.crumb { font-size: 13.5px; margin-bottom: 6px; line-height: 1.7; }
.crumb a { color: inherit; }
.prose { max-width: 46em; }
.prose h2 { font-size: 25px; margin: 1.8em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
section.tight { padding-block: clamp(36px, 6vw, 68px); }

.spots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.spot { background: var(--paper); border: 3px solid var(--ink); padding: 20px 22px; }
.spot h2 { font-size: 23px; }
.spot .t { display: inline-block; background: var(--teal); color: #fff; font-size: 13.5px; font-weight: 700; padding: 0 10px; margin: 6px 0 8px; font-family: var(--body); line-height: 1.8; }
.spot p { margin: 0; }

/* フォーム */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; line-height: 1.6; }
.field label em { font-style: normal; font-size: 12px; color: var(--red); margin-left: 6px; }
input, select, textarea { font: 16px/1.6 var(--body); padding: 10px 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; width: 100%; min-width: 0; }
.estimate { background: var(--sun); border: 3px solid var(--ink); padding: 16px 20px; margin-top: 24px; line-height: 1.6; }
.estimate output { display: block; font-family: var(--display); font-size: 29px; }
.form-done { background: var(--teal); color: #fff; padding: 22px; margin-top: 22px; border: 3px solid var(--ink); }
.form-done p:last-child { margin: 0; }

/* LP */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reasons article { background: var(--paper); border: 3px solid var(--ink); padding: 20px 22px; }
.reasons h2 { font-size: 23px; margin-bottom: 8px; }
.reasons p { margin: 0; }

/* フッター */
.site-footer { background: var(--ink); color: #eadfc9; padding-block: 42px 30px; font-size: 14.5px; line-height: 1.85; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.foot b { font-family: var(--display); font-weight: 400; font-size: 24px; color: #fff; }
.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: 26px; padding-top: 14px; border-top: 1px solid #ffffff2b; font-size: 12.5px; }

@media (max-width: 1020px) {
  .nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0; background: var(--paper); border-block: 3px solid var(--ink); padding: 6px var(--gutter); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 16px; border-bottom: 2px dotted var(--ink); }
  .nav-toggle { display: block; }
  .fuda-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body.has-sticky { padding-bottom: 56px; }
  .sticky { display: grid; }
  .bar .btn.sm { display: none; }
  .hero, .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero h1 { font-size: clamp(42px, 13.2vw, 64px); }
  .hero-cta .btn { width: 100%; }
  .poster { box-shadow: 6px 6px 0 var(--red); margin-right: 6px; }
  .art { box-shadow: 6px 6px 0 var(--ink); margin-right: 6px; }
  .fuda { padding-inline: 3px; }
  .fuda h3 { font-size: 22px; }
  .fuda .price { font-size: clamp(17px, 5.3vw, 23px); }
  .coupon, .reasons, .spots, .form-grid, .foot { grid-template-columns: 1fr; }
  .coupon .btn { width: 100%; }
  .spec th { width: 6.5em; padding-inline: 10px; white-space: normal; }
  .cta-row .btn { width: 100%; }
}

[hidden] { display: none !important; }
