/* ============================================================
   日本先端医療統合協会株式会社 — Design System
   Fuses soft elegant (blush/lavender/gold) + premium dark (navy/gold)
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.82rem);
  --text-sm: clamp(0.82rem, 0.78rem + 0.25vw, 0.92rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --text-lg: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.4rem);
  --text-3xl: clamp(2.6rem, 1.4rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem; --radius-xl: 1.5rem; --radius-full: 9999px;
  --transition: 320ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Wix-aligned content widths: classic editor content = 980px */
  --content-narrow: 720px;
  --content-default: 980px;
  --content-wide: 980px;

  --font-display: 'Zen Old Mincho', 'Cormorant Garamond', serif;
  --font-body: 'Zen Kaku Gothic New', 'Zen Maru Gothic', sans-serif;
  --font-latin: 'Cormorant Garamond', 'Zen Old Mincho', serif;
}

/* ---------- LIGHT MODE (elegant blush/ivory) ---------- */
:root, [data-theme="light"] {
  --color-bg: #faf7f4;
  --color-surface: #ffffff;
  --color-surface-2: #f5f0ec;
  --color-surface-soft: #f3eef4;    /* soft lavender tint */
  --color-divider: #e7ded6;
  --color-border: #ddd2c8;

  --color-text: #2b2733;
  --color-text-muted: #6e6875;
  --color-text-faint: #a79fa8;
  --color-text-inverse: #faf7f4;

  --color-navy: #1b2a4a;            /* deep navy (logo) */
  --color-navy-soft: #2f3f63;
  --color-gold: #b6893f;            /* champagne gold */
  --color-gold-soft: #cfa869;
  --color-accent: #b33a2f;          /* brand red dot */
  --color-blush: #e9c9d3;
  --color-lavender: #d8cbe4;

  --color-primary: #1b2a4a;
  --color-primary-hover: #2f3f63;

  --hero-overlay: linear-gradient(180deg, rgba(250,247,244,0) 0%, rgba(250,247,244,0.55) 70%, rgba(250,247,244,0.95) 100%);
  --card-shadow: 0 4px 24px rgba(43,39,51,0.06);
  --card-shadow-lg: 0 18px 50px rgba(43,39,51,0.12);
}

/* ---------- DARK MODE (premium navy/gold) ---------- */
[data-theme="dark"] {
  --color-bg: #12131a;
  --color-surface: #1a1c26;
  --color-surface-2: #22242f;
  --color-surface-soft: #1e2130;
  --color-divider: #2c2f3c;
  --color-border: #363a49;

  --color-text: #ece8e3;
  --color-text-muted: #9d98a3;
  --color-text-faint: #6a6675;
  --color-text-inverse: #12131a;

  --color-navy: #c9d3ec;
  --color-navy-soft: #aab4d0;
  --color-gold: #d4ab61;
  --color-gold-soft: #e0be80;
  --color-accent: #d05a4d;
  --color-blush: #e9c9d3;
  --color-lavender: #d8cbe4;

  --color-primary: #d4ab61;
  --color-primary-hover: #e0be80;

  --hero-overlay: linear-gradient(180deg, rgba(18,19,26,0.15) 0%, rgba(18,19,26,0.55) 65%, rgba(18,19,26,0.96) 100%);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.3);
  --card-shadow-lg: 0 18px 50px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #12131a; --color-surface: #1a1c26; --color-surface-2: #22242f;
    --color-surface-soft: #1e2130; --color-divider: #2c2f3c; --color-border: #363a49;
    --color-text: #ece8e3; --color-text-muted: #9d98a3; --color-text-faint: #6a6675;
    --color-text-inverse: #12131a; --color-navy: #c9d3ec; --color-navy-soft: #aab4d0;
    --color-gold: #d4ab61; --color-gold-soft: #e0be80; --color-accent: #d05a4d;
    --color-primary: #d4ab61; --color-primary-hover: #e0be80;
    --hero-overlay: linear-gradient(180deg, rgba(18,19,26,0.15) 0%, rgba(18,19,26,0.55) 65%, rgba(18,19,26,0.96) 100%);
    --card-shadow: 0 4px 24px rgba(0,0,0,0.3); --card-shadow-lg: 0 18px 50px rgba(0,0,0,0.5);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 88px;
  text-size-adjust: none; -webkit-text-size-adjust: none;
}
body {
  min-height: 100dvh; line-height: 1.75; font-family: var(--font-body);
  font-size: var(--text-base); color: var(--color-text); background: var(--color-bg);
  overflow-x: hidden; transition: background var(--transition), color var(--transition);
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { line-height: 1.25; text-wrap: balance; font-weight: 500; }
p { text-wrap: pretty; }
::selection { background: rgba(182,137,63,0.25); }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: var(--radius-sm); }

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

/* ---------- Layout helpers ---------- */
/* 980px content + horizontal padding so full-width backgrounds still bleed edge-to-edge */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.wrap-wide { max-width: 1200px; }
.wrap-narrow { max-width: var(--content-narrow); }
.wrap-default { max-width: var(--content-default); }
section { position: relative; }
.section-pad { padding-block: clamp(4rem, 9vw, 9rem); }

.latin { font-family: var(--font-latin); letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-latin); font-size: var(--text-sm); letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--color-gold); font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--color-gold); opacity: 0.7; }

.section-title {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500;
  letter-spacing: 0.06em; color: var(--color-text); margin-top: var(--space-4);
}
.section-lead {
  color: var(--color-text-muted); font-size: var(--text-base); max-width: 60ch;
  margin-top: var(--space-5); line-height: 1.95;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1.25rem, 5vw, 4rem);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
/* Scrim for legibility over hero before scroll */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(250,247,244,0.97) 0%, rgba(250,247,244,0.78) 50%, rgba(250,247,244,0.15) 100%);
  opacity: 1; transition: opacity var(--transition);
}
[data-theme="dark"] .site-header::before {
  background: linear-gradient(180deg, rgba(18,19,26,0.97) 0%, rgba(18,19,26,0.78) 50%, rgba(18,19,26,0.15) 100%);
}
.site-header.scrolled::before { opacity: 0; }
.site-header.scrolled {
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 var(--color-divider);
  padding-block: 0.65rem;
}
.brand-lockup { display: flex; align-items: center; gap: 0.7rem; }
.brand-lockup img { width: 40px; height: 40px; object-fit: contain; transition: width var(--transition); }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text .jp { font-family: var(--font-display); font-size: 1rem; line-height: 1.1; letter-spacing: 0.12em; color: var(--color-text); font-weight: 600; }
.brand-text .en { font-family: var(--font-latin); font-size: 0.68rem; line-height: 1.15; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text); font-weight: 500; opacity: 0.85; }

.nav-desktop { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.nav-desktop a { font-size: var(--text-sm); letter-spacing: 0.08em; color: var(--color-text-muted); position: relative; padding-block: 0.3rem; }
.nav-desktop a::after { content:""; position:absolute; left:0; bottom:0; width:0; height:1px; background: var(--color-gold); transition: width var(--transition); }
.nav-desktop a:hover { color: var(--color-text); } .nav-desktop a:hover::after { width: 100%; }
.nav-desktop a .sub { display:block; font-family: var(--font-latin); font-size:0.58rem; letter-spacing:0.18em; text-transform:uppercase; color: var(--color-text-faint); text-align:center; margin-top:3px; line-height:1; }
.nav-desktop a { line-height: 1.2; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-full); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.theme-toggle:hover { color: var(--color-gold); border-color: var(--color-gold); }

/* Language toggle (JP / EN) */
.lang-toggle { display: inline-flex; align-items: center; gap: 0.3rem; height: 40px; padding: 0 0.9rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); font-family: var(--font-latin); font-size: 0.82rem; letter-spacing: 0.1em; color: var(--color-text-muted); transition: border-color var(--transition), color var(--transition); }
.lang-toggle:hover { border-color: var(--color-gold); }
.lang-toggle .lang-opt { font-weight: 600; transition: color var(--transition); }
.lang-toggle .lang-opt.is-active { color: var(--color-gold); }
.lang-toggle .lang-sep { color: var(--color-text-faint); }
.lang-toggle.mobile-lang { height: 42px; }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; color: var(--color-text); }

/* Mobile nav — must sit ABOVE the fixed header */
.nav-mobile {
  position: fixed; inset: 0; z-index: 200; background: var(--color-bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.4rem;
  opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.nav-mobile.open { opacity: 1; visibility: visible; }
/* When menu is open, hide the underlying header controls to avoid overlap */
body:has(.nav-mobile.open) .site-header,
body.menu-open .site-header { opacity: 0; pointer-events: none; }
.nav-mobile a { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.08em; color: var(--color-text); padding: 0.5rem; }
.nav-mobile a .sub { display:block; font-family: var(--font-latin); font-size:0.7rem; letter-spacing:0.2em; text-transform:uppercase; color: var(--color-gold); text-align:center; margin-top:2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
[data-theme="dark"] .hero-bg img { opacity: 0.72; }
.hero-content { position: relative; z-index: 2; padding-top: 6rem; }
.hero-content .eyebrow { color: var(--color-gold-soft); }
[data-theme="light"] .hero-content .eyebrow { color: #8a6a2f; }
.hero-title {
  font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 500;
  letter-spacing: 0.04em; line-height: 1.28; margin-top: var(--space-5);
  color: #221d2b;
}
[data-theme="dark"] .hero-title { color: #f4efe9; }
.hero-title .nb { display: inline-block; }
.hero-title .accent { color: var(--color-gold); }
[data-theme="light"] .hero-title .accent { color: #9a7328; }
.hero-sub {
  margin-top: var(--space-6); max-width: 42ch; font-size: var(--text-lg);
  color: #4a4453; line-height: 1.9; font-weight: 400;
}
[data-theme="dark"] .hero-sub { color: #d9d4ce; }
.hero-en { margin-top: var(--space-4); font-family: var(--font-latin); font-style: italic; font-size: var(--text-base); color: var(--color-text-muted); letter-spacing: 0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--space-10); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.95rem 2rem;
  font-size: var(--text-sm); letter-spacing: 0.1em; border-radius: var(--radius-full);
  transition: all var(--transition); font-weight: 500;
}
.btn-primary { background: var(--color-navy); color: #faf7f4; }
[data-theme="dark"] .btn-primary { background: var(--color-gold); color: #12131a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-lg); background: var(--color-primary-hover); }
[data-theme="dark"] .btn-primary:hover { background: var(--color-gold-soft); }
.btn-ghost { border: 1px solid var(--color-navy); color: var(--color-navy); }
[data-theme="dark"] .btn-ghost { border-color: var(--color-gold); color: var(--color-gold); }
.btn-ghost:hover { background: var(--color-navy); color: #faf7f4; }
[data-theme="dark"] .btn-ghost:hover { background: var(--color-gold); color: #12131a; }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--font-latin); font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-text-muted);
}
.scroll-hint .line { width: 1px; height: 40px; background: linear-gradient(var(--color-gold), transparent); animation: scrollpulse 2.2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100%{opacity:0.3; transform: scaleY(0.6);} 50%{opacity:1; transform: scaleY(1);} }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { border-block: 1px solid var(--color-divider); background: var(--color-surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: clamp(1.5rem,3vw,2.5rem) 1rem; text-align: center; border-right: 1px solid var(--color-divider); }
.trust-item:last-child { border-right: none; }
.trust-item .num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-gold); font-weight: 500; }
.trust-item .lbl { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.08em; margin-top: 0.4rem; }
.trust-item .lbl .en { display:block; font-family: var(--font-latin); font-size:0.6rem; letter-spacing:0.16em; text-transform:uppercase; color: var(--color-text-faint); margin-top:2px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--color-bg); position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-visual { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--card-shadow-lg); }
.about-visual img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.about-visual .badge {
  position: absolute; bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  background: color-mix(in srgb, var(--color-surface) 82%, transparent); backdrop-filter: blur(10px);
  border-radius: var(--radius-md); padding: 1rem 1.25rem; border: 1px solid var(--color-border);
}
.about-visual .badge .t { font-family: var(--font-display); font-size: var(--text-base); color: var(--color-text); }
.about-visual .badge .d { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.about-body p { color: var(--color-text-muted); line-height: 2; margin-top: var(--space-5); }
.about-body p strong { color: var(--color-text); font-weight: 600; }
.philosophy { margin-top: var(--space-8); display: grid; gap: var(--space-4); }
.philosophy .row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--color-divider); }
.philosophy .row .icn { flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--radius-full); border: 1px solid var(--color-gold); color: var(--color-gold); display: grid; place-items: center; }
.philosophy .row .txt .h { font-family: var(--font-display); font-size: var(--text-base); color: var(--color-text); }
.philosophy .row .txt .p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 3px; }

/* Section head center helper */
.section-head-center { max-width: 62ch; margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .section-lead { margin-inline: auto; }

/* ============================================================
   MANUFACTURING (100% Japan — 3 pillars)
   ============================================================ */
.mfg { background: var(--color-surface-soft); }
.mfg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-12); }
.mfg-card .mfg-icon { width: 58px; height: 58px; border-radius: var(--radius-full); border: 1px solid var(--color-gold); color: var(--color-gold); display: grid; place-items: center; margin-bottom: var(--space-4); }
.mfg-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(1.75rem,3vw,2.75rem); position: relative; overflow: hidden; }
.mfg-card .flag { font-size: 2.4rem; line-height: 1; }
.mfg-card .pct { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-gold); font-weight: 500; margin-top: var(--space-3); }
.mfg-card .cty { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text); margin-top: var(--space-2); letter-spacing: 0.05em; display: flex; flex-direction: column; }
.mfg-card .cty .en { font-family: var(--font-latin); font-size: var(--text-sm); color: var(--color-text-muted); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; }
.mfg-card .desc { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-4); line-height: 1.9; }
.mfg-card .bar { height: 6px; border-radius: var(--radius-full); background: var(--color-surface-2); margin-top: var(--space-5); overflow: hidden; }
.mfg-card .bar span { display: block; height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--color-gold-soft), var(--color-gold)); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { background: var(--color-bg); }
.product-list { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 6rem); margin-top: var(--space-16); }
.product-note { text-align: center; font-size: var(--text-xs); color: var(--color-text-faint); line-height: 1.8; margin-top: var(--space-12); max-width: 70ch; margin-inline: auto; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.product:nth-child(even) .product-media { order: 2; }
.product-media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--card-shadow-lg); position: relative; }
.product-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.product-media:hover img { transform: scale(1.04); }
.product-cat { font-family: var(--font-latin); font-size: var(--text-xs); letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-gold); }
.product-name { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-text); margin-top: var(--space-2); letter-spacing: 0.03em; }
.product-name .jp { display: block; font-size: var(--text-base); color: var(--color-text-muted); letter-spacing: 0.14em; margin-top: 4px; font-family: var(--font-body); }
.product-tagline { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-gold); margin-top: var(--space-4); font-style: normal; }
.product-desc { color: var(--color-text-muted); line-height: 2; margin-top: var(--space-4); }
.product-feats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-6); }
.product-feats span { font-size: var(--text-xs); letter-spacing: 0.06em; padding: 0.45rem 1rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); color: var(--color-text-muted); background: var(--color-surface); }
.product-meta { display: flex; gap: 2rem; margin-top: var(--space-6); flex-wrap: wrap; }
.product-meta .m .k { font-family: var(--font-latin); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-faint); }
.product-meta .m .v { font-family: var(--font-display); font-size: var(--text-base); color: var(--color-text); margin-top: 2px; }

/* ============================================================
   SCIENCE band
   ============================================================ */
.science { position: relative; overflow: hidden; }
.science-bg { position: absolute; inset: 0; z-index: 0; }
.science-bg img { width: 100%; height: 100%; object-fit: cover; }
.science-bg::after { content:""; position:absolute; inset:0; background: color-mix(in srgb, var(--color-bg) 55%, transparent); }
[data-theme="dark"] .science-bg::after { background: rgba(18,19,26,0.72); }
.science .wrap { position: relative; z-index: 2; }
.science-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); margin-top: var(--space-12); }
.science-card { background: color-mix(in srgb, var(--color-surface) 78%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(1.5rem,3vw,2.25rem); }
.science-card .n { font-family: var(--font-latin); font-size: var(--text-lg); color: var(--color-gold); }
.science-card .h { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text); margin-top: var(--space-3); }
.science-card .h .en { display:block; font-family: var(--font-latin); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-faint); margin-top: 3px; }
.science-card .p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.9; margin-top: var(--space-3); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { position: relative; overflow: hidden; color: #ece8e3; }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(18,19,26,0.9), rgba(27,42,74,0.75)); }
.contact .wrap { position: relative; z-index: 2; }
.contact .eyebrow { color: var(--color-gold-soft); }
.contact .section-title { color: #f4efe9; }
.contact-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); margin-top: var(--space-10); align-items: start; }
.company-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: clamp(1.75rem,3vw,2.5rem); backdrop-filter: blur(10px); }
.company-card .row { display: flex; flex-direction: column; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.company-card .row:last-child { border-bottom: none; }
.company-card .row .k { font-family: var(--font-latin); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-gold-soft); }
.company-card .row .v { font-size: var(--text-base); color: #ece8e3; margin-top: 4px; line-height: 1.7; }
.company-card .row .v.jp-name { font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: 0.04em; }
.contact-copy p { color: #c9c5d0; line-height: 2; margin-top: var(--space-4); }
.contact-copy .btn-primary { margin-top: var(--space-8); background: var(--color-gold); color: #12131a; }
.contact-copy .btn-primary:hover { background: var(--color-gold-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-divider); padding-block: var(--space-16) var(--space-8); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-8); }
.footer-brand { max-width: 340px; }
.footer-brand .brand-lockup { margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.9; }
.footer-nav { display: flex; gap: clamp(2rem,5vw,4rem); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-latin); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--space-4); }
.footer-col a { display: block; font-size: var(--text-sm); color: var(--color-text-muted); padding: 0.35rem 0; }
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--color-divider); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); }
.footer-bottom p { font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.04em; }
.disclaimer { margin-top: var(--space-6); font-size: var(--text-xs); color: var(--color-text-faint); line-height: 1.8; max-width: 90ch; }

/* ============================================================
   RESPONSIVE — aligned to Wix Studio breakpoints
   Desktop ≥ 1001px  |  Tablet 751–1000px  |  Mobile ≤ 750px
   ============================================================ */

/* ---- TABLET: 751px – 1000px ---- */
@media (max-width: 1000px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: grid; }
  .mfg-grid { grid-template-columns: 1fr; }
  .science-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 3rem; }
}

/* ---- MOBILE: ≤ 750px (Wix mobile canvas 320–750px) ---- */
@media (max-width: 750px) {
  html { scroll-padding-top: 74px; }
  .about-grid, .contact-body { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: var(--space-6); }
  .product:nth-child(even) .product-media { order: 0; }
  .science-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--color-divider); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .footer-top { flex-direction: column; }
  .product-meta { gap: 1.25rem; }
  /* Clear the taller wrapped header on mobile */
  .hero-content { padding-top: 8.5rem; }
  /* Mobile-safe legibility: keep body ≥ 15px, small text ≥ 13px */
  body { font-size: 15px; }
  .product-desc, .about-body p, .contact-copy p { font-size: 15px; }
  .section-lead { font-size: 15px; }
  .mfg-card .desc, .science-card .p, .philosophy .row .txt .p { font-size: 13.5px; }
  .footer-col a, .footer-brand p { font-size: 13.5px; }
}

/* ---- SMALL PHONES: ≤ 480px (down to 320px design base) ---- */
@media (max-width: 480px) {
  .site-header { padding-inline: 1.1rem; }
  .brand-lockup img { width: 34px; height: 34px; }
  .brand-lockup { gap: 0.5rem; }
  .brand-text .jp { font-size: 0.72rem; letter-spacing: 0.04em; line-height: 1.25; max-width: 8.5em; }
  .brand-text .en { display: none; }
  .header-actions { gap: 0.3rem; }
  .theme-toggle { display: none; }
  .hero-content { padding-top: 8.5rem; }
  .hero-title { font-size: 2.3rem; line-height: 1.32; }
  .theme-toggle, .lang-toggle { height: 38px; }
  .lang-toggle { padding: 0 0.7rem; font-size: 0.78rem; }
  .wrap { padding-inline: 1.1rem; }
  .trust-item { padding: 1.4rem 0.6rem; }
  .product-name { font-size: 1.7rem; }
  .nav-mobile a { font-size: 1.35rem; }
}
