/* =========================================================
   Enagic Japan - Prototype styles
   Mobile-first. Japanese typography (JIS X 8341-3 / WCAG AA).
   ========================================================= */

@property --c {
  syntax: "<color>";
  inherits: true;
  initial-value: #2b6cc9;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body, h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

/* ---------- Base typography (Japanese) ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--ink);
  background: var(--surface);
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-head);
  font-feature-settings: "palt";
  font-weight: 700;
}
@supports (word-break: auto-phrase) {
  h1, h2, h3 { word-break: auto-phrase; }
}
.nb { display: inline-block; }
.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: var(--z-skip);
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--brand); color: var(--on-brand); text-decoration: none;
  transform: translateY(-160%); transition: transform var(--dur-1) var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.top-sentinel { position: absolute; top: 0; height: 120px; width: 1px; pointer-events: none; }

/* ---------- Shared components ---------- */
.eyebrow {
  font-family: var(--font-num);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-3);
}

.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-title { font-size: var(--fs-xl); }
.section-lead { margin-top: var(--space-4); color: var(--ink-2); max-width: 40em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 500; font-size: var(--fs-base); letter-spacing: 0.06em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .ph { font-size: 1.125em; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .ph-arrow-right { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { min-height: 40px; padding: 0 var(--space-4); font-size: var(--fs-sm); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--brand); font-weight: 500; text-decoration: none;
}
.link-arrow .ph { transition: transform var(--dur-2) var(--ease-out); }
a:hover .link-arrow .ph, .link-arrow:hover .ph { transform: translateX(3px); }

.chip {
  display: inline-block; padding: 2px 10px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--ink-2);
  font-size: var(--fs-xs); letter-spacing: 0.04em;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
}

/* ---------- Top Panoramic Banners (Modernized Enagic Slideshow) ---------- */
.top-banners {
  padding-top: var(--space-4);
  padding-bottom: var(--space-2);
  background: var(--bg);
}
.top-banners-container {
  max-width: 1040px;
}
.banner-carousel {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 4px 20px -4px rgba(12, 5, 69, 0.08);
}
.banner-track {
  position: relative;
  width: 100%;
  aspect-ratio: 950 / 184;
  overflow: hidden;
  background: #f6f8fb;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 350ms var(--ease-out), visibility 350ms var(--ease-out);
}
.banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.banner-link {
  display: block;
  width: 100%;
  height: 100%;
  outline-offset: -2px;
}
.banner-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  display: block;
}

/* Nav arrows */
.banner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink-1);
  display: grid;
  place-items: center;
  font-size: 1.125rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.banner-nav-btn:hover {
  background: var(--surface);
  color: var(--brand);
  transform: translateY(-50%) scale(1.08);
}
.banner-prev { left: 12px; }
.banner-next { right: 12px; }

/* Bottom controls bar */
.banner-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 8px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.banner-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.banner-tabs::-webkit-scrollbar { display: none; }
.banner-tab {
  flex: none;
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-1) var(--ease-out);
}
.banner-tab:hover {
  color: var(--brand);
  background: var(--brand-tint);
}
.banner-tab.is-active {
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}

.banner-dots {
  display: none;
  align-items: center;
  gap: 6px;
}
.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--line-2);
  transition: all var(--dur-1) var(--ease-out);
}
.banner-dot.is-active {
  width: 20px;
  background: var(--brand);
}

.banner-playback {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
  margin-left: auto;
}
.banner-toggle-pause {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all var(--dur-1) var(--ease-out);
}
.banner-toggle-pause:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.banner-counter {
  font-family: var(--font-num);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  min-width: 32px;
  text-align: right;
}

@media (max-width: 768px) {
  .top-banners {
    padding-top: var(--space-3);
    padding-bottom: 0;
  }
  .banner-track {
    aspect-ratio: 16 / 6;
  }
  .banner-link img {
    object-fit: cover;
    object-position: left center;
  }
  .banner-tabs {
    display: none;
  }
  .banner-dots {
    display: flex;
  }
  .banner-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .banner-slide { transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--surface); backdrop-filter: none; }
}

.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
.brand { flex: none; display: block; }
.brand img { width: 112px; height: auto; }

.global-nav { display: none; margin-left: auto; }
.global-nav ul { display: flex; gap: var(--space-1); }
.global-nav a {
  display: block; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: var(--ink-2);
  transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.global-nav a:hover { color: var(--brand); background: var(--brand-tint); }

.header-actions { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }
.global-nav + .header-actions { margin-left: 0; }

.header-tel { display: none; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--brand); }
.header-tel .ph { font-size: 1.375rem; }
.header-tel > span { display: grid; line-height: 1.25; }
.header-tel-num { font-family: var(--font-num); font-weight: 600; font-size: var(--fs-md); letter-spacing: 0.04em; }
.header-tel-note { font-size: 0.6875rem; color: var(--ink-3); }

.header-contact { display: none; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font-size: 1.375rem; cursor: pointer;
}

@media (min-width: 768px) { .header-contact { display: inline-flex; } }
@media (min-width: 1080px) {
  .global-nav { display: block; }
  .menu-toggle { display: none; }
}
@media (min-width: 1240px) { .header-tel { display: inline-flex; } }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgb(12 5 69 / 0.38);
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
}
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(88vw, 380px);
  display: flex; flex-direction: column; gap: var(--space-5);
  padding: var(--space-4) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom));
  background: var(--surface); box-shadow: var(--shadow-2); overflow-y: auto;
  transform: translateX(100%); transition: transform var(--dur-2) var(--ease-out);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.drawer-title { font-weight: 700; letter-spacing: var(--ls-head); }
.drawer-close {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent;
  font-size: 1.25rem; cursor: pointer;
}
.drawer-nav li + li { border-top: 1px solid var(--line); }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; text-decoration: none; font-weight: 500;
}
.drawer-nav .ph { color: var(--ink-3); }
.drawer-tel {
  display: flex; gap: var(--space-3); padding: var(--space-4);
  border-radius: var(--r-lg); background: var(--brand-tint); color: var(--brand); text-decoration: none;
}
.drawer-tel .ph { font-size: 1.5rem; margin-top: 4px; }
.drawer-tel > span { display: grid; line-height: 1.5; }
.drawer-tel-label { font-size: var(--fs-xs); color: var(--ink-2); }
.drawer-tel-num { font-family: var(--font-num); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.04em; }
.drawer-tel-note { font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-6) var(--space-8); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero-title { font-size: var(--fs-2xl); letter-spacing: 0.04em; }
.hero-lead { margin-top: var(--space-5); font-size: var(--fs-md); color: var(--ink-2); max-width: 32em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.hero-visual figcaption { margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--ink-3); text-align: right; }
.hero-plate {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 3.4; border-radius: var(--r-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  display: grid; place-items: center;
  padding: var(--space-5);
}
.hero-product {
  width: auto; max-width: 90%; max-height: 90%;
  object-fit: contain;
}

@media (min-width: 960px) {
  .hero { padding-block: var(--space-7) var(--space-8); }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8);
    min-height: min(calc(100dvh - var(--header-h) - 6rem), 680px);
  }
  .hero-plate { aspect-ratio: 4 / 4.4; }
}

/* ---------- Facts ---------- */
.facts { border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.fact {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-1);
  padding: var(--space-5) var(--space-4);
}
.fact:nth-child(odd) { padding-left: 0; }
.fact:nth-child(even) { border-left: 1px solid var(--line); }
.fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
.fact dt { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
.fact-note { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.fact dd { display: flex; align-items: baseline; gap: 4px; color: var(--brand); }
.fact-num { font-family: var(--font-num); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 500; letter-spacing: 0.02em; line-height: 1.1; }
.fact-num-sm { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); font-weight: 600; line-height: 1.6; }
.fact-unit { font-size: var(--fs-sm); font-weight: 500; }

@media (min-width: 900px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .fact { padding: var(--space-6) var(--space-5); }
  .fact:nth-child(n) { border-top: 0; border-left: 1px solid var(--line); padding-left: var(--space-5); }
  .fact:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Water selector ---------- */
.water { background: var(--surface-2); }
.water-ui { display: grid; gap: var(--space-5); }

.ph-scale {
  display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) var(--space-2);
  scrollbar-width: none;
}
.ph-scale::-webkit-scrollbar { display: none; }

.ph-tab {
  flex: none; scroll-snap-align: start;
  display: grid; gap: 2px; text-align: left; min-width: 132px;
  padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 4px);
  position: relative; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.ph-tab::before {
  content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 4px;
  border-radius: 2px; background: var(--c);
}
.ph-tab:hover { border-color: var(--line-strong); }
.ph-tab:active { transform: scale(0.98); }
.ph-tab[aria-selected="true"] { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), var(--shadow-1); }
.ph-tab-value { font-family: var(--font-num); font-size: var(--fs-xs); font-weight: 500; color: var(--ink-3); letter-spacing: 0.04em; }
.ph-tab-name { font-weight: 700; letter-spacing: var(--ls-head); }

.water-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: var(--space-6) var(--space-5);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: --c var(--dur-3) var(--ease-out);
}
.water-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, color-mix(in srgb, var(--c) 8%, transparent), transparent 70%);
}
.water-panel > * { transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.water-panel.is-switching > * { opacity: 0; transform: translateY(6px); }

.water-panel-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.water-icon { font-size: 2.5rem; color: var(--c); }
.badge .ph-check-circle { color: var(--ph-070); }
.badge .ph-prohibit { color: var(--ph-025); }
.water-ph { margin-top: var(--space-6); font-family: var(--font-num); font-size: clamp(2.5rem, 2rem + 2.5vw, 3.75rem); font-weight: 500; line-height: 1.1; color: var(--c); letter-spacing: 0.02em; }
.water-name { margin-top: var(--space-2); font-size: var(--fs-lg); }
.water-use { margin-top: var(--space-1); font-weight: 500; color: var(--ink-2); }
.water-desc { margin-top: var(--space-4); max-width: 34em; }
.water-note { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-3); max-width: 38em; }

.fine-print { margin-top: var(--space-5); font-size: var(--fs-xs); color: var(--ink-3); }

@media (min-width: 900px) {
  .water-ui { grid-template-columns: 300px 1fr; gap: var(--space-6); align-items: stretch; }
  .ph-scale { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .ph-tab { min-width: 0; padding-block: var(--space-4); }
  .water-panel { padding: var(--space-7); }
}

/* ---------- Lineup ---------- */
.lineup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.product > a {
  display: flex; flex-direction: column; gap: var(--space-3); height: 100%;
  padding: var(--space-3) var(--space-3) var(--space-4);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.product > a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.product-plate {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  padding: var(--space-3); border-radius: var(--r-sm); background: var(--plate);
}
.product-plate img { width: auto; max-height: 100%; max-width: min(100%, 165px); object-fit: contain; mix-blend-mode: multiply; }
.product-name { font-size: var(--fs-sm); line-height: 1.5; padding-inline: var(--space-1); }
.product .chip { align-self: flex-start; margin-inline: var(--space-1); }
.product-desc { font-size: var(--fs-sm); color: var(--ink-2); }

.product-featured, .product-wide { grid-column: span 2; }
.product-featured .product-plate { aspect-ratio: 1 / 0.8; }
.product-featured .product-plate img { max-width: min(78%, 420px); }
.product-featured .product-body { display: grid; gap: var(--space-3); padding: var(--space-2) var(--space-3) var(--space-2); }
.product-featured .product-name { font-size: var(--fs-lg); padding: 0; }

.product-wide > a { flex-direction: row; align-items: center; gap: var(--space-4); }
.product-wide .product-plate { flex: none; width: 120px; aspect-ratio: 1; }
.product-wide .product-body { display: grid; gap: var(--space-2); }
.product-wide .product-name { font-size: var(--fs-base); padding: 0; }

@media (min-width: 1024px) {
  .lineup-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
  .product-featured { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .product-featured > a { padding: var(--space-4); }
  .product-featured .product-plate { aspect-ratio: auto; flex: 1; }
  .product-wide .product-plate { width: 140px; }
}

/* ---------- Factory ---------- */
.factory { background: var(--surface-2); }
.factory-grid { display: grid; gap: var(--space-7); align-items: center; }
.factory-visual img { width: 100%; max-width: 520px; border-radius: var(--r-lg); }
.factory-visual figcaption { margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--ink-3); }

.process { margin-top: var(--space-6); display: grid; gap: 0; }
.process li {
  display: flex; align-items: center; gap: var(--space-4);
  padding-block: var(--space-3); position: relative; font-weight: 500;
}
.process li + li::before {
  content: ""; position: absolute; left: 21px; top: -12px; height: 24px; width: 1px; background: var(--line-strong);
}
.process .ph {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
  color: var(--brand); font-size: 1.375rem;
}
.cert { display: flex; align-items: center; gap: var(--space-2); margin-block: var(--space-6) var(--space-5); font-size: var(--fs-sm); color: var(--ink-2); }
.cert .ph { color: var(--brand); font-size: 1.25rem; }

@media (min-width: 900px) {
  .factory-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

/* ---------- Experience band ---------- */
.experience { position: relative; isolation: isolate; overflow: hidden; }
.experience-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.experience-inner { padding-block: var(--space-6) var(--space-7); }
.experience-copy { max-width: 30rem; display: grid; gap: var(--space-4); justify-items: start; }
.experience-copy p { color: var(--ink-2); }

@media (min-width: 900px) {
  .experience { min-height: 560px; display: grid; align-items: center; }
  .experience-img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; z-index: -2; object-position: 70% 50%; }
  .experience::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 94%, transparent) 0%, color-mix(in srgb, var(--surface) 78%, transparent) 38%, transparent 64%);
  }
  .experience-inner { padding-block: var(--space-8); }
}

/* ---------- Locations ---------- */
.locations-grid { display: grid; gap: var(--space-5); }
.region { border-top: 2px solid var(--brand); padding-top: var(--space-4); }
.region-name { font-size: var(--fs-md); margin-bottom: var(--space-3); }
.sites { display: grid; gap: var(--space-4); }
.site + .site { padding-top: var(--space-4); border-top: 1px solid var(--line); }
.site-name { font-weight: 700; letter-spacing: var(--ls-head); }
.site-addr { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
.site-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-1); font-size: var(--fs-sm); color: var(--ink-3); }
.site-meta a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  font-family: var(--font-num); font-weight: 500; color: var(--brand); text-decoration: none;
}
.site-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

.callcenter {
  display: grid; gap: var(--space-2); align-content: start;
  padding: var(--space-5); border-radius: var(--r-lg); background: var(--brand-tint);
}
.callcenter-label { font-weight: 700; letter-spacing: var(--ls-head); }
.callcenter-num {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-num); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); font-weight: 600;
  letter-spacing: 0.04em; color: var(--brand); text-decoration: none; line-height: 1.3;
}
.callcenter-note { font-size: var(--fs-sm); color: var(--ink-2); }

@media (min-width: 700px) {
  .locations-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .region-okinawa { grid-row: span 2; }
  .callcenter { grid-column: 1 / -1; grid-template-columns: auto auto 1fr auto; align-items: center; gap: var(--space-5); }
}
@media (min-width: 1024px) {
  .locations-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- News ---------- */
.news { background: var(--surface-2); }
.news-inner { display: grid; gap: var(--space-5); }
.news-list li + li { border-top: 1px solid var(--line); }
.news-list a {
  display: grid; grid-template-columns: auto auto; justify-content: start; gap: var(--space-1) var(--space-4);
  padding-block: var(--space-4); text-decoration: none;
}
.news-list time { font-family: var(--font-num); font-size: var(--fs-sm); color: var(--ink-3); letter-spacing: 0.04em; }
.news-cat { align-self: center; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font-size: 0.75rem; color: var(--ink-2); }
.news-title { grid-column: 1 / -1; transition: color var(--dur-1) var(--ease-out); }
.news-list a:hover .news-title { color: var(--brand); }

@media (min-width: 900px) {
  .news-inner { grid-template-columns: 240px 1fr; gap: var(--space-7); align-items: start; }
  .news-list a { grid-template-columns: 7rem 6rem 1fr; align-items: baseline; }
  .news-cat { justify-self: start; }
  .news-title { grid-column: auto; }
}

/* ---------- Distributors ---------- */
.distributors { padding-block: var(--space-7); background: var(--brand-tint); }
.dist-inner { display: grid; gap: var(--space-5); }
.dist-title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.dist-inner p { color: var(--ink-2); }
.dist-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.distributors .btn-ghost { background: var(--surface); }

@media (min-width: 900px) {
  .dist-inner { grid-template-columns: 1fr auto; align-items: center; gap: var(--space-7); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-top: var(--space-8); }
.footer-grid { display: grid; gap: var(--space-7); }
.footer-brand img { width: 112px; }
.footer-company { margin-top: var(--space-4); font-weight: 700; letter-spacing: var(--ls-head); }
.footer-brand address { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.8; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.footer-head { font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--space-3); letter-spacing: var(--ls-head); }
.footer-nav li + li { margin-top: var(--space-2); }
.footer-nav a { font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: grid; gap: var(--space-2); margin-top: var(--space-7);
  padding-block: var(--space-5) calc(var(--space-5) + 64px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-3);
}

@media (min-width: 768px) {
  .footer-bottom { padding-bottom: var(--space-6); grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1.6fr; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bottombar);
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgb(18 8 95 / 0.06);
}
.action-bar a {
  display: grid; justify-items: center; gap: 2px; padding: 8px 4px 10px;
  min-height: 60px; text-decoration: none; font-size: 0.6875rem; font-weight: 500; color: var(--ink-2);
}
.action-bar a:first-child { color: var(--brand); }
.action-bar .ph { font-size: 1.375rem; }
.action-bar a + a { border-left: 1px solid var(--line); }
@media (min-width: 768px) { .action-bar { display: none; } }

/* ---------- Page top ---------- */
.page-top {
  position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: var(--z-header);
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1); color: var(--brand); font-size: 1.25rem; text-decoration: none;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.page-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
@media (min-width: 768px) { .page-top { bottom: 24px; right: 24px; } }

/* ---------- Reveal (motion motivated: reading hierarchy) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .hero-copy > * { animation: rise var(--dur-3) var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .js .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .js .hero-visual { animation: rise 900ms var(--ease-out) 120ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
