/* Beppu Onsen — site styles */

:root {
  --paper: #f7f2e8;
  --paper-deep: #efe6d4;
  --ink: #1f2522;
  --ink-soft: #4a524d;
  --moss: #2f4a43;
  --moss-deep: #1d302b;
  --spring: #4fa3a0;
  --spring-pale: #d8ece9;
  --vermilion: #b5452b;
  --gold: #b8924f;
  --line: rgba(31, 37, 34, 0.14);
  --radius: 4px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
  --sans: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', 'YuGothic', Meiryo, system-ui, sans-serif;
  --shadow: 0 18px 40px -24px rgba(29, 48, 43, 0.45);
}

html[lang='en'] {
  --serif: 'Cormorant Garamond', 'Shippori Mincho', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

html[lang='en'] body { line-height: 1.7; letter-spacing: 0; font-size: 17px; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--vermilion); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin: 0 0 0.6em;
  color: var(--moss-deep);
}
html[lang='en'] h1, html[lang='en'] h2, html[lang='en'] h3 { letter-spacing: 0.01em; font-weight: 600; line-height: 1.2; }

h1 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
html[lang='en'] h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
html[lang='en'] h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
html[lang='en'] h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }

p { margin: 0 0 1.2em; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--moss-deep); color: #fff; padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header ------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,0.4); }

.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--moss-deep); margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: 'Cormorant Garamond', var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.04em; }
.brand-sub { font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.18em; }

.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; text-decoration: none; color: var(--ink);
  font-size: 0.92rem; border-radius: var(--radius);
}
.nav a:hover { color: var(--vermilion); }
.nav a[aria-current='page'] { color: var(--vermilion); box-shadow: inset 0 -2px 0 var(--vermilion); border-radius: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  font-size: 0.8rem; text-decoration: none; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; transition: transform 0.25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius); font-size: 0.95rem;
  text-decoration: none; letter-spacing: 0.08em; cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--vermilion); color: #fff; }
.btn-primary:hover { background: #9a3822; color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--moss-deep); background: transparent; }
.btn-ghost:hover { background: var(--moss-deep); color: var(--paper); border-color: var(--moss-deep); }
.btn-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--moss-deep); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Hero --------------------------------------------------------------- */

.hero { position: relative; color: #fff; overflow: hidden; background: var(--moss-deep); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,32,29,0.1) 0%, rgba(20,32,29,0.25) 45%, rgba(20,32,29,0.78) 100%);
}
.hero-inner {
  position: relative; z-index: 1; min-height: min(88vh, 760px);
  display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px);
}
.hero h1 { color: #fff; max-width: 18em; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero .lead { max-width: 36em; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hero-vertical {
  position: absolute; z-index: 1; right: var(--gutter); top: 110px;
  writing-mode: vertical-rl; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.4em; color: rgba(255,255,255,0.9); text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--vermilion); margin-bottom: 14px; font-family: var(--sans);
}
.hero .eyebrow { color: #f3d9b8; }

.page-hero { position: relative; background: var(--moss-deep); color: #fff; overflow: hidden; }
.page-hero .hero-art { opacity: 0.55; }
.page-hero-inner { position: relative; z-index: 1; padding: clamp(72px, 12vw, 140px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.9); max-width: 40em; margin: 0; }
.page-hero .eyebrow { color: #f3d9b8; }

.breadcrumb { font-size: 0.8rem; margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; opacity: 0.7; }
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* Sections ----------------------------------------------------------- */

.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--paper-deep); }
.section-dark { background: var(--moss-deep); color: #e9e4d8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #f3d9b8; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); }
.section-dark .section-head p { color: #cfd6d0; }

.prose { max-width: 720px; }
.prose-center { margin: 0 auto; text-align: center; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card-media { aspect-ratio: 4 / 3; background: var(--spring-pale); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; }
.card-body .btn, .card-body .more { margin-top: auto; align-self: flex-start; }
.more { font-size: 0.9rem; text-decoration: none; letter-spacing: 0.08em; }
.more::after { content: ' →'; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.12); }
.stat { background: var(--moss-deep); padding: 28px 20px; text-align: center; }
.stat-value { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: #fff; line-height: 1.2; }
.stat-label { display: block; font-size: 0.82rem; color: #bcc7c0; margin-top: 6px; }

.tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; padding: 2px 10px;
  border: 1px solid var(--spring); color: var(--moss); border-radius: 999px; margin: 0 6px 8px 0; background: var(--spring-pale);
}

.price { font-family: var(--serif); font-size: 1.15rem; color: var(--vermilion); margin: 4px 0 12px; }
.price small { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 1.4em; font-size: 0.94rem; }
.facts dt { color: var(--ink-soft); font-weight: 500; }
.facts dd { margin: 0; }
.section-dark .facts dt { color: #bcc7c0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; background: #fffdf8; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--moss); color: #fff; font-weight: 500; letter-spacing: 0.06em; }
.table td:last-child { white-space: nowrap; }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.menu-list .dish { flex: 1; }
.menu-list .dish strong { display: block; font-family: var(--serif); font-size: 1.08rem; color: var(--moss-deep); font-weight: 600; }
.menu-list .dish span { font-size: 0.88rem; color: var(--ink-soft); }
.menu-list .cost { font-family: var(--serif); color: var(--vermilion); white-space: nowrap; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 4px 64px; min-height: 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem;
  background: var(--spring-pale); color: var(--moss-deep); border: 1px solid var(--spring);
}
.steps strong { display: block; color: var(--moss-deep); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--moss-deep);
}
html[lang='en'] .faq summary { font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 8px; top: 16px; font-size: 1.5rem; color: var(--vermilion); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-soft); }

.note {
  border-left: 3px solid var(--spring); background: var(--spring-pale);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.4em;
}
.note p:last-child { margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.check-list li::before { content: ''; position: absolute; left: 4px; top: 0.7em; width: 10px; height: 10px; border-radius: 50%; background: var(--spring); }

.cta-band { position: relative; background: var(--vermilion); color: #fff; text-align: center; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 36em; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--vermilion); }
.cta-band .btn-primary:hover { background: var(--moss-deep); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.map-frame { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-deep); }

/* Form --------------------------------------------------------------- */

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fffdf8; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--spring); outline-offset: 1px; border-color: var(--spring); }
.form textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

/* Footer ------------------------------------------------------------- */

.site-footer { background: #15211e; color: #b9c3bc; padding: clamp(56px, 8vw, 88px) 0 28px; font-size: 0.9rem; }
.site-footer a { color: #e9e4d8; text-decoration: none; }
.site-footer a:hover { color: #f3d9b8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 0.8rem; letter-spacing: 0.24em; color: #8fa198; font-family: var(--sans); font-weight: 500; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-sub { color: #8fa198; }
.footer-brand address { font-style: normal; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: #8fa198; }

/* Reveal ------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-media img, .btn { transition: none; }
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 8px 8px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none; padding: 8px var(--gutter) 20px;
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a[aria-current='page'] { box-shadow: none; }
  .header-actions .btn { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-vertical { display: none; }
}

@media (max-width: 600px) {
  .grid-2, .grid-4, .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .hero-inner { min-height: 82vh; }
}
