:root {
  --navy: #0d2433; --navy2: #14384a; --teal: #08767a;
  --ink: #10212c; --muted: #526875; --paper: #f6f9fa;
  --white: #fff; --line: #dce7eb; --soft: #eaf3f4; --max: 1120px;
  --gutter: clamp(20px, 3vw, 32px); --section-space: clamp(48px, 6vw, 72px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", Arial, sans-serif;
  font-size: 16px; color: var(--ink); background: var(--paper); line-height: 1.65; overflow-wrap: anywhere;
}
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #08767a; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: #b9f4f3; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
.container { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px;
  color: var(--navy); background: white; border: 2px solid var(--teal); border-radius: 8px; transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky; top: 0; z-index: 10; background: rgba(13,36,51,.98); backdrop-filter: blur(12px);
  color: white; border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 72px; gap: 8px 12px; }
.brand { display: flex; flex-direction: column; justify-content: center; min-height: 44px; font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.brand small { display: block; font-size: 10px; letter-spacing: .20em; color: #98cfd0; font-weight: 700; }
.menu-toggle { min-width: 64px; min-height: 44px; padding: 8px 10px; border: 1px solid #62c4c4; border-radius: 10px; color: white; background: transparent; cursor: pointer; }
.menu-toggle:hover { background: var(--navy2); }
.nav-links { display: flex; flex-direction: column; width: 100%; gap: 4px; padding-bottom: 12px; }
.nav-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; text-decoration: none; color: #d9e7ec; font-size: 16px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--navy2); text-decoration: underline; }
.hero {
  background: radial-gradient(circle at 80% 20%,rgba(20,164,167,.28),transparent 34%),linear-gradient(135deg,#0b1e2b,#12374a 58%,#0b666b);
  color: white; padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 5.6vw, 76px);
}
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #176e73; font-weight: 800; }
.hero .eyebrow, .book .eyebrow { color: #d5ffff; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 7vw, 78px); letter-spacing: -.04em; }
h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.03em; }
h3 { font-size: 22px; }
.hero p { max-width: 720px; font-size: clamp(18px, 2vw, 22px); color: #edf7fa; }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 13px 18px; border-radius: 12px; font-weight: 800; text-decoration: none; text-align: center; }
.btn.primary { background: white; color: var(--navy); }
.btn.secondary { border: 1px solid rgba(255,255,255,.6); color: white; }
.btn:hover, .line-modal__open:hover { text-decoration: underline; box-shadow: 0 0 0 2px currentColor; }
.section { padding: var(--section-space) 0; }
.section.alt { background: white; }
.lead { font-size: clamp(16px, 1.8vw, 20px); color: var(--muted); max-width: 820px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 32px; }
.card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 2.5vw, 26px); box-shadow: 0 8px 28px rgba(16,33,44,.04); }
.alt .card { background: var(--paper); }
.card p { color: var(--muted); margin-bottom: 0; }
.tag { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--soft); color: #0b6f73; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.fms-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 32px); align-items: center; margin-top: 26px; }
.book { background: linear-gradient(145deg,#0d2433,#0d6569); border-radius: 22px; padding: clamp(22px, 3vw, 34px); color: white; box-shadow: 0 24px 60px rgba(13,36,51,.18); }
.book .big { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.25; font-weight: 900; letter-spacing: -.04em; margin-top: 12px; }
.mini-list { display: grid; gap: 12px; }
.mini-item { padding: 16px 18px; border-left: 3px solid var(--teal); background: white; border-radius: 0 12px 12px 0; }
.notice { border: 1px solid #b8d9dc; background: #eff9f9; border-radius: 16px; padding: 20px; color: #31515b; }
.legal { max-width: 880px; }
.legal h1 { color: var(--navy); font-size: clamp(32px, 4.5vw, 44px); margin-top: clamp(12px, 3vw, 44px); }
.legal h2 { font-size: clamp(23px, 3vw, 26px); color: var(--navy); margin-top: 38px; }
.legal p, .legal li { color: #425864; }
.legal ul { padding-left: 22px; }
.footer { background: var(--navy); color: #d5e3e7; padding: 42px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; color: #d5e3e7; text-decoration: none; margin-right: 16px; }
.footer a:hover { text-decoration: underline; }
.small { font-size: 13px; color: var(--muted); }
.footer .small { color: #b5c8d2; }
/* Native dialog keeps background content inert. */
.line-modal { width: min(420px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 30px 90px rgba(7,22,31,.28); }
.line-modal::backdrop { background: rgba(7,22,31,.68); backdrop-filter: blur(4px); }
.line-modal__dialog { position: relative; padding: 64px clamp(20px, 3vw, 26px) 26px; text-align: center; }
.line-modal__close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; font-size: 28px; line-height: 1; color: #526b78; cursor: pointer; }
.line-modal__close:hover { background: var(--soft); }
#lineModalTitle { font-size: clamp(22px, 3vw, 26px); margin-top: 12px; }
.line-modal__qr { width: min(210px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; margin: 10px auto 12px; display: block; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: white; }
.line-modal__id { font-weight: 800; color: var(--navy); font-size: 18px; }
.line-modal__hint { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.line-modal__open { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; background: var(--teal); color: white; padding: 12px 18px; border-radius: 12px; font-weight: 800; }
body.modal-open { overflow: hidden; }
@media (min-width: 480px) { .actions { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .nav { flex-wrap: nowrap; gap: 24px; }
  .nav-links { flex-direction: row; width: auto; gap: 12px; padding-bottom: 0; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fms-panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .book { min-height: 330px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
