:root {
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --ink: #2f2a25;
  --muted: #6d655c;
  --line: #e3ddd2;
  --wood: #a0703f;
  --sage: #5f6f4e;
  --lavender: #7a6a9c;
  --serif: "Noto Serif JP", "Noto Serif TC", serif;
  --sans: "Noto Sans JP", "Noto Sans TC", "Noto Sans Thai", system-ui, sans-serif;
  --max: 1120px;
}
html:lang(zh-Hant-TW) { --serif: "Noto Serif TC", "Noto Sans TC", serif; --sans: "Noto Sans TC", system-ui, sans-serif; }
html:lang(th) { --serif: "Noto Sans Thai", sans-serif; --sans: "Noto Sans Thai", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
html:lang(th) body { line-height: 1.9; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .04em; line-height: 1.4; margin: 0; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.6rem; }
h2::before { content: ""; display: block; width: 28px; height: 2px; background: var(--lavender); margin-bottom: .9rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem clamp(16px, 4vw, 40px);
  background: rgba(247, 244, 238, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-weight: 600; text-decoration: none; letter-spacing: .06em; white-space: nowrap; }
.nav { display: flex; gap: 1.3rem; margin-left: auto; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang button {
  border: 0; background: none; font: inherit; font-size: .8rem; padding: .35rem .75rem; cursor: pointer; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--sage); color: #fff; }

/* hero */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 26, 22, .7), rgba(30, 26, 22, .15) 70%); }
.hero-text { position: relative; z-index: 1; color: #fff; padding: clamp(24px, 6vw, 72px); max-width: 980px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.eyebrow { margin: 0 0 .4rem; letter-spacing: .2em; font-size: .85rem; opacity: .9; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.lead { font-size: clamp(1rem, 1.8vw, 1.2rem); margin: .6rem 0 1.6rem; }
.btn {
  display: inline-block; background: var(--surface); color: var(--ink); text-decoration: none;
  padding: .75rem 1.8rem; border-radius: 999px; font-weight: 500; letter-spacing: .06em;
}
.btn:hover { background: #fff; }

/* sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 104px) clamp(16px, 4vw, 40px) 0; }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about-text p { color: var(--muted); margin: 0; }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .4rem 1.4rem; }
.facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }

.unset { background: #fff3b0; color: #6b5300; padding: 0 .4em; border-radius: 4px; font-size: .9em; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.gallery figure { margin: 0; grid-column: span 2; }
.gallery figure.wide { grid-column: span 4; }
.gallery figure.tall { grid-column: span 1; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--line); }
.gallery .wide img { aspect-ratio: 16 / 9; }
.gallery .tall img { aspect-ratio: 3 / 4; }
.gallery figcaption { font-size: .85rem; color: var(--muted); padding: .5rem .1rem 0; line-height: 1.6; }

/* facilities */
.fac { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fac div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; }
.fac dt { font-family: var(--serif); font-weight: 600; color: var(--sage); margin-bottom: .3rem; }
.fac dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* rules */
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: .2rem; }
.rules li { counter-increment: r; position: relative; padding: .9rem 0 .9rem 2.6rem; border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(r); position: absolute; left: 0; top: .9rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; color: var(--lavender); line-height: 1; }

/* access */
.address { margin: 0 0 1.2rem; }
.address .label { color: var(--muted); font-size: .9rem; margin-right: .8rem; }
.map { aspect-ratio: 16 / 7; border-radius: 12px; border: 1px dashed var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.map.has-map { border: 0; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* booking */
.booking { padding-bottom: clamp(56px, 9vw, 104px); }
.booking > p { color: var(--muted); margin: -.6rem 0 1.2rem; }
.ota { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 3rem; }
.ota a { flex: 1 1 200px; text-align: center; padding: 1rem; border-radius: 10px; background: var(--sage); color: #fff; text-decoration: none; font-weight: 500; }
.ota a:hover { filter: brightness(1.08); }
.ota a.pending { background: var(--surface); color: var(--muted); border: 1px dashed var(--line); cursor: default; }
.booking h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.contact { margin: 0; }
.contact div { display: flex; gap: 1.2rem; padding: .4rem 0; }
.contact dt { color: var(--muted); min-width: 6em; font-size: .9rem; }
.contact dd { margin: 0; }

.site-footer { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .8rem; padding: 1.6rem 16px; }
.site-footer p { margin: 0; }

/* responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; gap: .5rem; padding: .6rem 16px; }
  .brand { font-size: .95rem; }
  .lang { margin-left: 0; width: 100%; }
  .lang button { flex: 1; padding: .4rem .2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery figure, .gallery figure.wide { grid-column: span 2; }
  .gallery figure.tall { grid-column: span 1; }
  .fac { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 7em 1fr; }
  .map { aspect-ratio: 4 / 3; }
}

/* map link / mail */
.map-link { margin: .8rem 0 0; font-size: .9rem; }
.map-link a { color: var(--sage); }
.mail-btn { font: inherit; font-size: .9rem; padding: .45rem 1.1rem; border-radius: 999px; border: 1px solid var(--sage); background: var(--surface); color: var(--sage); cursor: pointer; }
.mail-btn:hover { background: var(--sage); color: #fff; }
.contact-note { margin: 1.4rem 0 0; padding: .9rem 1.1rem; font-size: .85rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
