/* =========================================================
   Mirai Express — app.css
   ========================================================= */
:root {
  --blue: #1f3f8f;
  --blue-600: #2a52b0;
  --blue-50: #eef3fc;
  --red: #d61f4b;
  --ink: #18202e;
  --text: #333b4a;
  --muted: #5d6779;
  --line: #e2e7f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --green-line: #06c755;
  --warn: #b26a00;
  --warn-bg: #fff6e5;
  --danger: #b4202f;
  --danger-bg: #fdeeee;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 30, 60, .06), 0 6px 20px rgba(16, 30, 60, .07);
  --shadow-lg: 0 10px 40px rgba(16, 30, 60, .14);
  --container: 1180px;
  --font: "Noto Sans Thai", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
.lang-jp body, body.lang-jp { line-break: strict; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--ink); }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid #8fb0ff; outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .85em 1.5em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(214, 31, 75, .28); }
.btn-primary:hover { background: #bf1640; color: #fff; }
.btn-line { background: var(--green-line); color: #fff; box-shadow: 0 6px 18px rgba(6, 199, 85, .25); }
.btn-line:hover { background: #05b04b; color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { color: var(--blue); background: #f0f4ff; }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); margin: 0 .35rem .5rem 0; }
.btn-outline:hover { background: var(--blue); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--blue-600); }
.link-arrow .icon { transition: transform .2s; }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--blue); color: #dfe7fb; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar-tagline { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 18px; flex: none; }
.topbar-link { color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.topbar-link:hover { color: #fff; text-decoration: underline; }
.lang-switch { display: flex; gap: 2px; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px; }
.lang-switch a { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 700; font-size: .78rem; padding: 2px 9px 2px 6px; border-radius: 999px; line-height: 1.6; }
.flag { display: inline-block; width: 18px; height: 12px; border-radius: 2px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.flag svg { display: block; width: 100%; height: 100%; }
.lang-switch a.active { background: #fff; color: var(--blue); }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { width: 128px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list > li { position: relative; }
.nav-list a, .sub-toggle {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 500; font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer; line-height: 1.4;
}
.nav-list a:hover, .sub-toggle:hover { background: var(--blue-50); color: var(--blue); }
.nav-list a.active, .has-sub.active > .sub-toggle { color: var(--blue); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.sub-menu {
  position: absolute; top: 100%; right: 0; min-width: 230px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.sub-menu a { padding: 9px 12px; }
.sub-menu a.active { box-shadow: none; background: var(--blue-50); border-radius: var(--radius-sm); }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(95deg, rgba(10, 24, 62, .9) 0%, rgba(14, 33, 82, .72) 42%, rgba(14, 33, 82, .25) 100%), url("/assets/img/decor/cover_03.jpg") center 35% / cover no-repeat;
}
.hero h1, .hero-sub { text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; padding: 72px 20px 80px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero-sub { font-size: 1.1rem; color: #e1e8fa; max-width: 620px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.hero-badges .icon { color: #7ef0ad; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { background: #fff; color: var(--text); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); }
.hero-card-title { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 14px; }
.hero-rate { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.hero-rate-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.hero-rate-icon .icon { width: 24px; height: 24px; }
.hero-rate-label { font-weight: 700; color: var(--ink); line-height: 1.3; }
.hero-rate-label small, .hero-rate-price small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.hero-rate-price { font-size: 1.9rem; font-weight: 700; color: var(--red); text-align: right; line-height: 1.1; }
.hero-card-note { font-size: .85rem; color: var(--muted); margin: 10px 0 12px; }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  color: #fff; padding: 46px 0 52px;
  background: linear-gradient(95deg, rgba(10, 24, 62, .9) 0%, rgba(14, 33, 82, .74) 50%, rgba(14, 33, 82, .35) 100%), var(--hero-img) center / cover no-repeat;
}
.page-hero h1, .page-lead { text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-lead { color: #e1e8fa; font-size: 1.05rem; max-width: 820px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #c3cfee; margin-bottom: 14px; }
.breadcrumb a { color: #fff; }
.page-hero .hero-actions { margin-top: 22px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 32px; }
.section-title { margin-bottom: .4em; }
.section-title.center { text-align: center; margin-bottom: 36px; }
.section-sub { color: var(--muted); max-width: 760px; margin-bottom: 28px; }
.section-head .section-sub { margin-bottom: 0; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.content-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.side-img { border-radius: var(--radius); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.prose h2 { margin-top: 1.4em; }
.prose h2:first-child, .prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-1 { grid-template-columns: 1fr; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); color: var(--text); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; }
.card-link { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9d6f2; color: var(--text); }
.card-link .link-arrow { margin-top: auto; }
.card-icon, .feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 16px; }
.card-icon .icon, .feature-icon .icon { width: 26px; height: 26px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature { text-align: center; }
.feature-icon { margin: 0 auto 16px; background: #fff; box-shadow: var(--shadow); color: var(--red); width: 64px; height: 64px; border-radius: 50%; }
.feature p { color: var(--muted); font-size: .95rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 1em; }
.chips li { background: var(--blue-50); color: var(--blue); border-radius: 999px; padding: 4px 14px; font-size: .88rem; font-weight: 500; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 18px; box-shadow: var(--shadow); }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
.prose .steps { grid-template-columns: repeat(2, 1fr); margin: 12px 0 8px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table caption { text-align: left; font-weight: 700; color: #fff; background: var(--blue); padding: 12px 18px; font-size: 1rem; }
.table th, .table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th { background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: .88rem; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table .num strong { color: var(--red); font-size: 1.15rem; }
.rates-table .method { background: #fafbfe; color: var(--ink); white-space: nowrap; }
.rates-table .method { display: table-cell; }
.rates-table .method .icon { color: var(--blue); margin-right: 8px; width: 22px; height: 22px; vertical-align: middle; }
.rates-table .method span { display: inline-block; vertical-align: middle; line-height: 1.3; }
.rates-table .method small { display: block; color: var(--muted); font-weight: 400; }
.rates-table td[rowspan] { border-left: 1px solid var(--line); font-size: .88rem; }
.footnote { font-size: .88rem; color: var(--muted); margin-top: .8em; }

/* ---------- Lists ---------- */
.list-check { list-style: none; display: grid; gap: 10px; margin-bottom: 1em; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-check .icon { color: #12a150; margin-top: .3em; }
.list-num { padding-left: 1.4em; margin-bottom: 1em; }
.list-num li { margin-bottom: .45em; padding-left: .2em; }
.list-num li::marker { color: var(--red); font-weight: 700; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); margin: 1.2em 0; font-size: .95rem; }
.notice > .icon { width: 22px; height: 22px; margin-top: .2em; }
.notice p { margin: 0; }
.notice h2 { font-size: 1.15rem; margin: 0 0 .3em; color: inherit; }
.notice-warn { background: var(--warn-bg); color: #6b4200; border-left: 4px solid #f0a000; }
.notice-warn strong { color: #6b4200; }
.notice-danger { background: var(--danger-bg); color: var(--danger); border-left: 4px solid var(--danger); }
.notice-info { background: var(--blue-50); color: var(--blue); border-left: 4px solid var(--blue-600); }

.figure { margin: 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }

/* ---------- Contact box ---------- */
.contact-box { background: linear-gradient(160deg, var(--blue) 0%, #2a4ea8 100%); color: #e5ecfb; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.contact-box-title { color: #fff; font-size: 1.2rem; margin-bottom: .4em; }
.contact-box p { font-size: .92rem; }
.contact-box-row { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; transition: transform .2s; }
.contact-box-row:hover { transform: translateY(-2px); color: var(--ink); }
.contact-box-row small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.contact-box-row strong { font-size: 1.2rem; line-height: 1.3; }
.contact-box-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; flex: none; }
.contact-box-row.line .contact-box-icon { background: var(--green-line); }
.contact-box-icon .icon { width: 22px; height: 22px; }
.contact-box-note { font-size: .82rem !important; color: #c3cfee; margin: 12px 0 0; }

/* ---------- Method cards (shipping) ---------- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.method-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.method-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.method-body { padding: 24px; }
.method-body h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.method-body h2 .icon { color: var(--red); width: 26px; height: 26px; }
.method-meta { display: inline-block; background: var(--blue-50); color: var(--blue); font-weight: 700; padding: 3px 12px; border-radius: 999px; font-size: .88rem; }

/* ---------- Gallery / lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { display: block; border-radius: var(--radius-sm); overflow: hidden; background: #e9edf5; aspect-ratio: 1; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 30, .92); display: flex; align-items: center; justify-content: center; padding: 50px 60px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .icon { width: 26px; height: 26px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; color: var(--blue); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 6px; color: var(--muted); }

/* ---------- Calculator ---------- */
.calc { max-width: 560px; }
.calc-title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.calc-title .icon { color: var(--red); }
.field { display: block; margin-bottom: 16px; }
.field > span:first-child { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.field input { width: 100%; font: inherit; padding: 11px 14px; border: 1.5px solid #cdd5e3; border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-align: right; }
.field input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(42, 82, 176, .15); }
.input-addon { display: flex; }
.input-addon input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-addon em { font-style: normal; display: grid; place-items: center; padding: 0 14px; background: var(--blue-50); color: var(--blue); font-weight: 700; border: 1.5px solid #cdd5e3; border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.calc-result { margin-top: 18px; background: var(--blue-50); border-radius: var(--radius-sm); padding: 16px 18px; text-align: center; }
.calc-result span { display: block; color: var(--muted); font-size: .9rem; }
.calc-result strong { display: block; font-size: 2rem; color: var(--red); line-height: 1.3; }
.calc-result small { display: block; color: var(--muted); font-size: .82rem; }
.calc-error { margin: 14px 0 0; color: var(--danger); font-size: .9rem; }

/* ---------- Rate box ---------- */
.rate-box { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 20px; max-width: 560px; }
.rate-box-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex: none; }
.rate-box-icon .icon { width: 26px; height: 26px; }
.rate-box-label { display: block; font-size: .9rem; color: var(--muted); }
.rate-box-value { display: block; font-size: 1.9rem; color: var(--red); line-height: 1.25; }
.rate-box-value small { font-size: .9rem; color: var(--ink); font-weight: 500; }
.rate-box-meta { display: block; font-size: .78rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto 18px; }
.contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 24px; box-shadow: var(--shadow); color: var(--text); transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.contact-card-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; margin-bottom: 14px; }
.contact-card.line .contact-card-icon { background: var(--green-line); }
.contact-card-icon .icon { width: 34px; height: 34px; }
.contact-card h2 { font-size: 1.1rem; margin-bottom: .2em; }
.contact-card strong { font-size: 1.7rem; color: var(--ink); line-height: 1.4; }
.contact-card p { color: var(--muted); margin: 6px 0 0; font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(110deg, var(--blue) 0%, #2d55b5 100%); color: #e5ecfb; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1b38; color: #aab6d3; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 56px 20px 40px; }
.footer-logo { background: #fff; border-radius: 10px; padding: 8px 12px; width: 140px; margin-bottom: 16px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #cdd6ec; }
.site-footer a:hover { color: #fff; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: .82rem; }
.footer-bottom a { color: #8391b3; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 18px; font-size: .82rem; }
.footer-links a:hover { color: #fff; }
.footer-links + .footer-bottom-inner { padding-top: 10px; }

.mobile-bar { display: none; }

/* ---------- Error ---------- */
.error-code { font-size: 5rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: .2em; }
.error-page .cards { text-align: left; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .nav-list a, .sub-toggle { padding: 10px 9px; font-size: .9rem; }
}

@media (max-width: 1100px) {
  .features, .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

/* เมนูมือถือ (hamburger) — เปิดใช้ที่ความกว้างที่เมนูเต็มแถวไม่พอ */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; top: 0; width: min(340px, 88vw); background: #fff; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0; padding: 84px 18px 24px; overflow-y: auto;
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav-open .site-nav { display: flex; animation: nav-in .25s ease-out; }
  @keyframes nav-in { from { transform: translateX(100%); } to { transform: none; } }
  .nav-open .nav-toggle { position: fixed; right: 14px; top: 14px; z-index: 70; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(8, 14, 30, .45); z-index: 55; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a, .sub-toggle { padding: 13px 12px; font-size: 1rem; width: 100%; justify-content: space-between; }
  .nav-list a.active, .has-sub.active > .sub-toggle { box-shadow: inset 3px 0 0 var(--red); background: var(--blue-50); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
  .has-sub.open .sub-menu { display: block; }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.open:hover .sub-menu { display: block; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 52px 20px 56px; gap: 32px; }
  .content-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .content-side { position: static; }
  .cards-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; padding-bottom: 60px; }
  .container { padding: 0 16px; }
  .topbar-tagline, .topbar-link span { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .header-inner { min-height: 64px; }
  .brand img { width: 104px; }
  .section { padding: 48px 0; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .cards-3, .cards-4, .features, .steps, .prose .steps, .method-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .hero-rate-price { font-size: 1.6rem; }
  .table th, .table td { padding: 10px 12px; }
  .rates-table .method { white-space: normal; }
  .lightbox { padding: 60px 8px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-shadow: 0 -4px 18px rgba(16, 30, 60, .15); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 8px; color: #fff; font-weight: 700; }
  .mobile-bar-tel { background: var(--red); }
  .mobile-bar-line { background: var(--green-line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
