/* =========================================================================
   Bharat Boeki (バーラト貿易) — B2B Wholesale Website Wireframe
   Mid-fidelity, brand-styled. Dual language (JP primary / EN secondary).
   Corporate navy-led palette with the Indian saffron kept as the accent.
   Brand tokens are CSS variables — swap in the real hex / fonts / logo later.
   ========================================================================= */

:root {
  /* Brand palette — navy is the primary; saffron/green are Indian accents */
  --saffron:       #FF9933;
  --saffron-dark:  #F4811F;
  --india-green:   #138808;
  --green-dark:    #0E6606;
  --navy:          #0A3D62;
  --navy-dark:     #072B45;
  --sale-red:      #D32F2F;
  --crimson:       #D72028;  /* emblem red */

  /* Surfaces & ink */
  --bg:      #F5F8FA;
  --surface: #FFFFFF;
  --surface-2: #EDF2F6;
  --ink:     #16202B;
  --muted:   #5F6E7B;
  --line:    #DFE7ED;
  --ph:      #E4EBF1;  /* image-placeholder fill */
  --ph-ink:  #93A5B4;

  /* Type */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Poppins", "Segoe UI", system-ui, sans-serif;

  --maxw: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 22px rgba(10, 61, 98, .10);
  --shadow-sm: 0 2px 8px rgba(10, 61, 98, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
html[lang="en"] body { font-family: var(--font-en); }
/* Japanese line breaking: never start a line with ー or a small kana */
html[lang="ja"] body { line-break: strict; word-break: normal; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-en); line-height: 1.25; margin: 0 0 .4em; text-wrap: balance; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 { font-family: var(--font-jp); }
/* Even out short label/lead text so no single character is orphaned on its own line */
.section-sub, .cat-name, .value-title, .value-text, .stat-label, .hero-text { text-wrap: balance; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: .18s ease;
  font-family: inherit;
}
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-dark); }
.btn-outline { background: transparent; border-color: var(--saffron); color: var(--saffron-dark); }
.btn-outline:hover { background: var(--saffron); color: #fff; }
.btn-green { background: var(--india-green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-ghost { background: rgba(255,255,255,.15); color:#fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background:#fff; color: var(--navy); }

/* ---------- Image placeholder ---------- */
.ph {
  background:
    repeating-linear-gradient(45deg, var(--ph) 0 14px, #eef3f7 14px 28px);
  border: 1px dashed var(--ph-ink);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ph-ink); font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; min-height: 120px; text-align:center; padding: 8px;
}
/* The frame occupies exactly the box the placeholder did; the image is absolutely positioned
   inside it so its own aspect ratio can never dictate the row height. Without this a portrait
   photograph in a landscape slot stretches the section it sits in. */
.ph-frame { position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.ph-photo { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; }

/* =========================================================================
   HEADER
   ========================================================================= */
.utilbar { background: var(--navy); color: #fff; font-size: .8rem; }
.utilbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 20px; max-width: var(--maxw); margin: 0 auto; }
.util-hours { display: flex; align-items: center; gap: 8px; opacity: .95; }
.util-right { display: flex; align-items: center; gap: 16px; }
.util-pill {
  background: var(--saffron); color: #fff; font-weight: 700; font-size: .7rem;
  letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.util-phone { color:#fff; font-weight:600; display:inline-flex; align-items:center; gap:5px; }
.util-phone-ic { display:block; }
.util-social { display: flex; gap: 8px; }
.social-link {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; font-weight: 700;
  background: rgba(255,255,255,.15); color:#fff;
}
.social-link:hover { background: var(--saffron); }

.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; overflow: hidden; }
.lang-btn {
  background: transparent; color: #fff; border: 0; cursor: pointer;
  padding: 3px 10px; font-size: .75rem; font-family: inherit; font-weight: 600;
}
.lang-btn.is-active { background: var(--saffron); color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; }

/* Logo — inline SVG lockup (no official Bharat Boeki artwork yet; see shell.js) */
.brand { display: flex; align-items: center; gap: 10px; line-height: 1; }
.brand-logo-img { height: 44px; width: auto; display: block; }
.brand-emblem { display: block; flex-shrink: 0; }
.brand-divider { width: 2px; height: 34px; background: var(--crimson); border-radius: 2px; }
.brand-words { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-en); font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; color: var(--crimson); white-space: nowrap; }

/* Primary nav */
.main-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-link {
  display: inline-block; padding: 10px 10px; font-weight: 600; font-size: .86rem;
  border-radius: var(--radius-sm); color: var(--ink); position: relative; white-space: nowrap;
}
.nav-link:hover { color: var(--navy); background: var(--surface-2); }
.nav-item.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 8px; display: none; z-index: 60;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.open .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .9rem; }
.dropdown a:hover { background: var(--surface-2); color: var(--navy); }

.header-cta { margin-left: 8px; white-space: nowrap; }
.hamburger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; font-size: 1.2rem;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: #fff;
  box-shadow: -10px 0 40px rgba(0,0,0,.18); transform: translateX(100%);
  transition: transform .25s ease; z-index: 80; padding: 20px; overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: .25s; z-index: 70; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); font-weight: 600; }
/* The quote CTA inside the drawer must read as a button, not another nav link */
.mobile-drawer a.btn { padding: .7rem 1.4rem; border-bottom: 0; text-align: center; justify-content: center; }
.drawer-close { float: right; border: 0; background: none; font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* =========================================================================
   HERO CAROUSEL
   ========================================================================= */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero-track { display: flex; transition: transform .5s ease; }
.hero-slide { min-width: 100%; position: relative; min-height: 460px; display: grid; place-items: center; padding: 60px 20px; text-align: center; color: #fff; }
.hero-slide.s1 { background: linear-gradient(120deg, var(--navy-dark) 0%, #14618F 100%); }
.hero-slide.s2 { background: linear-gradient(120deg, #0B4A4A 0%, var(--navy) 100%); }
.hero-slide.s3 { background: linear-gradient(120deg, var(--navy) 0%, #1C5E3A 100%); }
.hero-content { max-width: 760px; }
.hero-eyebrow { display:inline-block; background: rgba(255,255,255,.18); padding: 5px 14px; border-radius: 999px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.hero-title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .4em; }
.hero-text { font-size: 1.05rem; opacity: .95; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.25); color: #fff; font-size: 1.4rem;
}
.hero-arrow:hover { background: rgba(255,255,255,.5); }
.hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 5; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dot.is-active { background: #fff; width: 26px; border-radius: 6px; }

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-eyebrow { color: var(--saffron-dark); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 6px 0 .3em; }
.section-sub { color: var(--muted); margin: 0; }
.divider-leaf { width: 60px; height: 4px; border-radius: 4px; background: var(--saffron); margin: 14px auto 0; }

/* Our Brand intro */
.brandintro { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.brandintro .ph { min-height: 320px; }
.brandintro h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.brandintro .tag { color: var(--saffron-dark); font-weight: 700; }

/* Category showcase */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 10px; text-align: center; transition: .18s; box-shadow: var(--shadow-sm); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--saffron); }
.cat-icon { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--surface-2); }
.cat-name { font-weight: 600; font-size: .9rem; }
/* contain, not cover: a logo or pictogram must not be cropped to fill the circle. */
.cat-icon img { width: 72%; height: 72%; object-fit: contain; display: block; }

/* Vision / Mission band */
.vm-band { background: linear-gradient(120deg, var(--navy), #11507f); color: #fff; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.vm-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 32px; }
.vm-label { color: var(--saffron); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.vm-card h3 { font-size: 1.5rem; margin-top: 6px; }

/* Values */
.value-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.value-card { text-align: center; padding: 24px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value-icon { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: var(--surface-2); color: var(--saffron-dark); }
.value-title { font-weight: 700; margin-bottom: 4px; }
.value-text { font-size: .85rem; color: var(--muted); }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow-sm); }
.why-card .num { font-family: var(--font-en); font-size: 1.6rem; font-weight: 800; color: var(--saffron); }
.why-card h3 { font-size: 1.1rem; margin: 8px 0 6px; }
.why-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Brands */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-logo { aspect-ratio: 3/2; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-en); font-weight: 700; color: var(--muted); transition: .18s; }
.brand-logo:hover { color: var(--saffron-dark); border-color: var(--saffron); }
/* Logos arrive at every aspect ratio, so they are fitted inside the 3:2 tile rather than
   filling it, with padding so nothing touches the border. */
.brand-logo img { max-width: 78%; max-height: 70%; object-fit: contain; display: block; }

/* =========================================================================
   B2B COMPONENTS
   ========================================================================= */

/* Trust-number strip under the hero */
.stat-band { background: var(--navy); color: #fff; padding: 30px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.18); }
.stat-num { font-family: var(--font-en); font-size: 2rem; font-weight: 800; color: var(--saffron); line-height: 1.1; }
.stat-label { font-size: .85rem; opacity: .9; margin-top: 4px; }

/* Product specification tables (品名 / 規格 / 入数 / 原産国) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.spec-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.spec-table caption { text-align: left; font-weight: 700; padding: 16px 18px 0; color: var(--navy); }
.spec-table th, .spec-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table thead th { background: var(--surface-2); color: var(--navy); font-weight: 700; font-size: .82rem; letter-spacing: .04em; white-space: nowrap; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover { background: var(--surface-2); }
.spec-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* お取引の流れ — numbered step flow */
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: flow; }
.flow-steps.flow-4 { grid-template-columns: repeat(4, 1fr); }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px 20px; position: relative; box-shadow: var(--shadow-sm); }
.flow-step .step-num {
  position: absolute; top: -16px; left: 18px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 800; font-size: .95rem;
}
.flow-step h3 { font-size: 1rem; margin: 6px 0 6px; }
.flow-step p { font-size: .85rem; color: var(--muted); margin: 0; }

/* 会社概要 profile table */
.profile-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.profile-table th, .profile-table td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .92rem; }
.profile-table th { width: 220px; background: var(--surface-2); color: var(--navy); font-weight: 700; white-space: nowrap; }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: 0; }

/* FAQ accordion (native details/summary) */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item > summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: .95rem;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "＋"; color: var(--saffron-dark); font-weight: 800; flex-shrink: 0; }
.faq-item[open] > summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--muted); font-size: .9rem; }

/* Catalogue / price-list request cards */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.doc-card .ic { font-size: 1.8rem; }
.doc-card h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.doc-card p { font-size: .88rem; color: var(--muted); }

/* Visit us / offices */
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: stretch; }
.visit-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.info-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { font-size: 1.1rem; }
.info-row .lbl { font-weight: 700; font-size: .85rem; }
.map-placeholder { min-height: 320px; }

/* Closing call-to-action band (replaces the old consumer newsletter band) */
.cta-band { background: var(--navy-dark); }
.cta-band .section-title { color: #fff; }
.cta-band .section-sub { color: #B9CEDD; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.cta-phone { color: #fff; font-family: var(--font-en); font-size: 1.5rem; font-weight: 800; display: inline-block; margin-top: 18px; }
.cta-phone:hover { color: var(--saffron); }

/* Page hero (interior pages) */
.page-hero { background: linear-gradient(120deg, var(--navy-dark) 0%, #14618F 100%); color: #fff; padding: 48px 0; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.breadcrumb { font-size: .85rem; opacity: .9; margin-top: 8px; }
.breadcrumb a:hover { color: var(--saffron); }

/* Story / about */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.story-grid .ph { min-height: 300px; }

/* Awards */
.award-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.award-card { text-align: center; padding: 28px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.award-card .ic { font-size: 2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-field { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: #fff;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field .req { display: inline-block; background: var(--sale-red); color: #fff; font-size: .65rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.form-note { font-size: .82rem; color: var(--muted); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: #0A2A42; color: #C3D5E2; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; padding: 56px 20px 32px; max-width: var(--maxw); margin: 0 auto; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; color: #A9BFCF; }
.footer-links a { font-size: .9rem; color: #A9BFCF; }
.footer-links a:hover { color: var(--saffron); }
.footer-about p { font-size: .9rem; color: #A9BFCF; }
.footer-brand { margin-bottom: 4px; }
.site-footer .brand-logo-img { background: transparent; padding: 0; }
/* Crimson would fall to ~3.3:1 on the dark navy footer — keep the wordmark white there
   and let the emblem carry the brand colour. The divider stays crimson, as in the header. */
.site-footer .brand-name { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social .social-link { background: rgba(255,255,255,.12); color: #fff; }
.footer-social .social-link:hover { background: var(--saffron); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; font-size: .82rem; color: #8FA9BC; }
.footer-credit { color: #8FA9BC; text-align: right; }
.footer-credit a { color: var(--saffron); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* Cookie bar */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); color: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; z-index: 90; font-size: .88rem; }
.cookie-bar.hidden { display: none; }

/* Utility */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.hide-mobile { } /* toggled below */

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  /* Seven nav items plus the quote CTA no longer fit — switch to the drawer here */
  .main-nav, .header-cta, .util-hours { display: none; }
  .hamburger { display: block; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps, .flow-steps.flow-4 { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .brandintro, .vm-grid, .visit-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat-item:nth-child(odd) { border-left: 0; }
  .flow-steps, .flow-steps.flow-4 { grid-template-columns: 1fr; row-gap: 30px; }
  .award-grid, .doc-grid { grid-template-columns: 1fr; }
  .profile-table th { width: 150px; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .util-right { gap: 10px; }
  .util-pill { display: none; }
  .hero-slide { min-height: 400px; }
  /* Stack the 会社概要 label above its value on the narrowest screens */
  .profile-table, .profile-table tbody, .profile-table tr, .profile-table th, .profile-table td { display: block; width: 100%; }
  .profile-table th { border-bottom: 0; padding-bottom: 6px; }
  .profile-table td { padding-top: 0; }
}

/* Server-side validation summary on the enquiry form */
.form-errors { background:#fdecec; color:#a31d1d; border:1px solid #f3c9c9;
  padding:11px 15px; border-radius:8px; margin-bottom:16px; font-size:.88rem; }
.form-errors ul { margin:0; padding-left:18px; }
.field-validation-error { display:block; color:#a31d1d; font-size:.8rem; margin-top:4px; }
.input-validation-error { border-color:#e0a0a0 !important; }
