/* =========================================================
   株式会社 翔栄商事  — style.css
   Colors come from the SHOEI logo (sky blue) and the
   navy shop signboard. The slant (≈ the italic SHOEI
   wordmark) is the one recurring visual device.
   ========================================================= */

:root {
  --blue: #27AEFF;        /* logo blue */
  --blue-ink: #0A78C2;    /* blue for text on white (AA contrast) */
  --blue-pale: #E6F5FF;
  --navy: #0D2B4C;        /* signboard navy */
  --navy-2: #163C66;
  --paper: #F3F7FA;
  --ink: #16222E;
  --muted: #566573;
  --line: #D5E0E8;
  --signal: #FF6A13;      /* road service / emergency */
  --white: #FFFFFF;

  --ff-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif;
  --ff-latin: "Saira Condensed", "Arial Narrow", sans-serif;

  --slant: 6vw;           /* depth of the diagonal cuts */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--ff-jp);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .03em;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0; letter-spacing: .04em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sp-only { display: none; }
.num { font-family: var(--ff-latin); font-style: italic; font-weight: 800; letter-spacing: .02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 28px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-blue { background: var(--blue); color: var(--navy); }
.btn-blue:hover { background: #fff; border-color: var(--blue); }
.btn-line { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-line:hover { background: #fff; color: var(--navy); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex-shrink: 0; white-space: nowrap; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 900; font-size: 18px; letter-spacing: .08em; }
.brand-en { font-family: var(--ff-latin); font-style: italic; font-weight: 600; font-size: 12px; color: var(--blue-ink); letter-spacing: .14em; }

.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 4px; align-items: center; }
.global-nav a { display: block; white-space: nowrap; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: var(--radius); }
.global-nav a:hover { color: var(--blue-ink); background: var(--blue-pale); }
.global-nav .nav-contact a { background: var(--navy); color: #fff; padding: 8px 18px; }
.global-nav .nav-contact a:hover { background: var(--blue); color: var(--navy); }

.header-tel { white-space: nowrap; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: var(--navy); line-height: 1.15; }
.header-tel-label { font-size: 11px; color: var(--muted); }
.header-tel .num { font-size: 26px; }

.menu-toggle, .nav-tel { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(78vh, 720px);
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero-copy {
  position: relative; z-index: 2;
  align-self: center;
  padding: 72px var(--gutter) 96px max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.nw { display: inline-block; }
.hero-place { color: var(--blue); font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .06em;
}
.hero-lead { margin-top: 24px; max-width: 34em; color: #D6E4F0; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-photo {
  margin: 0; position: relative; z-index: 1;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { /* blue speed blade along the cut */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,43,76,.55), rgba(13,43,76,0) 45%);
}
.hero::after { /* thin blue slash echoing the logo */
  content: ""; position: absolute; z-index: 3; top: 0; bottom: 0;
  left: calc(51.2% - 2px); width: 10px;
  background: var(--blue);
  transform: skewX(-12.4deg); transform-origin: bottom;
}
.hero-word {
  position: absolute; z-index: 1; left: -1vw; bottom: -4.2vw;
  font-family: var(--ff-latin); font-style: italic; font-weight: 800;
  font-size: 19vw; line-height: 1; letter-spacing: .02em;
  color: rgba(39,174,255,.09);
  pointer-events: none; user-select: none;
}

/* ---------- divisions ---------- */
.divisions {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: var(--wrap); margin: -48px auto 0; padding: 0 var(--gutter);
  position: relative; z-index: 5; gap: 0;
}
.division {
  display: flex; flex-direction: column; gap: 6px;
  padding: 32px 36px 30px;
  text-decoration: none; color: var(--ink);
  background: #fff;
  border-top: 6px solid var(--blue);
  box-shadow: 0 18px 40px -24px rgba(13,43,76,.55);
  transition: background-color .2s;
}
.division-reform { border-top-color: var(--navy); border-left: 1px solid var(--line); }
.division:hover { background: var(--blue-pale); }
.division-tag { font-size: 13px; color: var(--muted); }
.division-title { font-size: 26px; font-weight: 900; color: var(--navy); }
.division-text { font-size: 15px; color: var(--muted); }
.division-more { margin-top: 10px; font-weight: 700; color: var(--blue-ink); font-size: 15px; }
.division-more::after { content: ""; display: inline-block; width: 26px; height: 2px; background: currentColor; margin-left: 10px; vertical-align: middle; transform: skewX(-30deg); transition: width .2s; }
.division:hover .division-more::after { width: 40px; }

/* ---------- section heads ---------- */
.section-head { max-width: var(--wrap); margin: 0 auto 48px; padding: 0 var(--gutter); }
.section-en {
  font-family: var(--ff-latin); font-style: italic; font-weight: 600;
  font-size: 20px; color: var(--blue-ink); letter-spacing: .06em; line-height: 1.2;
}
.section-head h2, .road h2, .contact h2 {
  font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; color: var(--navy); margin-top: 6px;
}
.section-lead { margin-top: 18px; max-width: 40em; color: var(--muted); }

/* ---------- car ---------- */
.car { padding: 112px 0 120px; }
.service-rows { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 56px; }
.service-row { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: center; }
.service-row:nth-child(even) { grid-template-columns: 8fr 4fr; }
.service-row:nth-child(even) img { order: 2; }
.service-row img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 86% 100%, 0 100%);
}
.service-body h3 { font-size: 26px; font-weight: 900; color: var(--navy); padding-left: 18px; position: relative; }
.service-body h3::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 6px; background: var(--blue); transform: skewX(-12deg); }
.service-body > p { margin-top: 14px; max-width: 36em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: 14px; padding: 4px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--navy); }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); padding-left: 1em; text-indent: -1em; }
.note::before { content: "※"; }

/* strengths */
.strengths { max-width: var(--wrap); margin: 112px auto 0; padding: 0 var(--gutter); }
.strengths-title, .others-title, .flow-title { font-size: 22px; font-weight: 900; color: var(--navy); margin-bottom: 28px; }
.strength-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.strength img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius); }
.strength h4 { margin-top: 18px; font-size: 19px; font-weight: 900; color: var(--navy); }
.strength p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* others */
.others { max-width: var(--wrap); margin: 96px auto 0; padding: 0 var(--gutter); }
.others-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); }
.others-grid section { padding: 22px 22px 24px 0; border-bottom: 1px solid var(--line); }
.others-grid section + section { padding-left: 22px; border-left: 1px solid var(--line); }
.others-grid h4 { font-size: 16px; font-weight: 900; color: var(--blue-ink); margin-bottom: 8px; }
.others-grid li { font-size: 15px; padding: 2px 0; }

/* warranty */
.warranty {
  max-width: var(--wrap); margin: 96px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.warranty figure { margin: 0; background: var(--paper); padding: 20px; border-radius: var(--radius); }
.warranty-body h3 { font-size: 24px; font-weight: 900; color: var(--navy); }
.warranty-body p { margin-top: 14px; }
.text-link { display: inline-block; margin-top: 18px; font-weight: 700; text-underline-offset: 5px; }

/* ---------- road service ---------- */
.road {
  background: var(--navy); color: #fff;
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  padding: calc(var(--slant) + 72px) 0 calc(var(--slant) + 72px);
}
.road-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 8fr 4fr; gap: 56px; align-items: center; }
.road .section-en { color: var(--blue); }
.road h2 { color: #fff; }
.road-copy > p { margin-top: 18px; color: #D6E4F0; max-width: 34em; }
.road-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.road-list li { font-size: 14px; padding: 4px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.road-tel {
  display: inline-flex; flex-direction: column; margin-top: 32px;
  padding: 14px 32px 12px; background: var(--signal); color: #fff; text-decoration: none;
  border-radius: var(--radius); line-height: 1.2;
}
.road-tel-label { font-weight: 700; font-size: 14px; }
.road-tel .num { font-size: 40px; }
.road-tel:hover { background: #fff; color: var(--signal); }
.road-photo { margin: 0; }
.road-photo img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--blue); }

/* ---------- gallery ---------- */
.gallery { padding: 104px 0 112px; }
.gallery-grid { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* ---------- reform ---------- */
.reform { background: var(--paper); padding: 112px 0 120px; border-top: 6px solid var(--navy); }
.reform .section-head { padding: 0; }
.reform-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.reform-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reform-list li { background: #fff; padding: 28px 28px 30px; }
.reform-list h3 { font-size: 19px; font-weight: 900; color: var(--navy); }
.reform-list p { margin-top: 8px; font-size: 15px; color: var(--muted); }

.flow { margin-top: 80px; }
.flow-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: none; }
.flow-list li { position: relative; padding: 0 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.flow-list li:not(:last-child)::after { /* connector */
  content: ""; position: absolute; top: 30px; left: 70px; right: 14px; height: 2px; background: var(--blue);
}
.flow-num {
  display: grid; place-items: center; width: 60px; height: 60px;
  background: var(--navy); color: #fff;
  font-family: var(--ff-latin); font-style: italic; font-weight: 800; font-size: 30px;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  margin-bottom: 10px;
}
.flow-list strong { font-size: 17px; color: var(--navy); }
.flow-list span:last-child { font-size: 14px; color: var(--muted); }

.reform-tel {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  margin-top: 72px; padding: 28px 36px; background: var(--navy); color: #fff; text-decoration: none; border-radius: var(--radius);
}
.reform-tel-label { font-weight: 700; }
.reform-tel .num { font-size: 44px; color: var(--blue); line-height: 1; }
.reform-tel:hover .num { color: #fff; }

/* ---------- company ---------- */
.company { padding: 112px 0 96px; }
.company-body { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 260px; gap: 64px; align-items: start; }
.company-table { margin: 0; border-top: 2px solid var(--navy); }
.company-table > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.company-table dt { font-weight: 700; color: var(--navy); }
.company-table dd { margin: 0; }
.company-logo { margin: 0; padding: 8px 20px; }

/* ---------- access ---------- */
.access { padding: 0 0 120px; }
.access-grid { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.access-item h3 { font-size: 18px; font-weight: 900; color: var(--navy); }
.access-item p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.map { margin-top: 14px; aspect-ratio: 4 / 3; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- contact ---------- */
.contact { background: var(--blue-pale); padding: 112px 0 120px; }
.contact-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.contact-intro > p:not(.section-en) { margin-top: 16px; }
.contact-tel { display: inline-flex; flex-direction: column; margin-top: 28px; text-decoration: none; color: var(--navy); line-height: 1.15; }
.contact-tel-label { font-size: 14px; font-weight: 700; }
.contact-tel .num { font-size: 46px; }
.contact-fax { margin-top: 4px; color: var(--muted); font-size: 15px; }

.contact-form { background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: 0 20px 40px -30px rgba(13,43,76,.5); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font-weight: 700; color: var(--navy); font-size: 15px; padding: 0; }
.field legend { margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.req { display: inline-block; margin-left: 6px; padding: 0 8px; font-size: 12px; line-height: 1.7; background: var(--signal); color: #fff; border-radius: 3px; vertical-align: 2px; }
.contact-form input[type="text"], .contact-form input[type="tel"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(39,174,255,.3); }
.contact-form [aria-invalid="true"] { border-color: var(--signal); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 15px; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.choices input, .agree input { accent-color: var(--blue-ink); width: 18px; height: 18px; }
.agree label { font-weight: 500; display: flex; gap: 8px; align-items: center; }
.form-error { color: #C2410C; font-weight: 700; font-size: 15px; }
.btn-submit { width: 100%; font-size: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #C9D8E6; font-size: 14px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; gap: 24px; align-items: center; }
.footer-brand img { width: 72px; }
.footer-name { color: #fff; font-weight: 900; font-size: 18px; margin-bottom: 4px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; align-content: start; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { color: var(--blue); }
.copyright { text-align: center; padding: 16px; border-top: 1px solid var(--navy-2); }

.sp-bar { display: none; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 55;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  width: 64px; height: 64px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-family: var(--ff-latin); font-style: italic; font-weight: 800; font-size: 14px; letter-spacing: .08em; line-height: 1;
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);   /* the SHOEI slant */
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .4s cubic-bezier(.16,1,.3,1), visibility .3s, background-color .2s, color .2s;
}
.to-top svg { margin-bottom: -2px; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); color: var(--navy); }
.to-top:hover svg { transform: translateY(-3px); }
.to-top:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; clip-path: none; }
html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }

.header-home { margin-left: auto; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--navy); padding: 8px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.header-home:hover { border-color: var(--blue); color: var(--blue-ink); }

/* =========================================================
   Responsive
   ========================================================= */
/* medium desktops: tighten the header so the menu stays on one line */
@media (max-width: 1320px) {
  .header-inner { gap: 16px; }
  .global-nav a { padding: 8px 9px; font-size: 14px; }
  .global-nav .nav-contact a { padding: 8px 14px; }
  .header-tel .num { font-size: 22px; }
}
@media (max-width: 1100px) {
  .header-tel { display: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; height: 46vw; min-height: 220px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%); }
  .hero-photo::after { background: linear-gradient(180deg, rgba(13,43,76,0) 50%, rgba(13,43,76,.5)); }
  .hero::after { display: none; }
  .hero-copy { padding: 32px var(--gutter) 88px; }
  .hero-word { font-size: 30vw; bottom: -6vw; }

  .divisions { grid-template-columns: 1fr; margin-top: -40px; }
  .division-reform { border-left: 0; }
  .division { padding: 26px 24px; }

  .service-row { grid-template-columns: 1fr; gap: 20px; }
  .service-row img { aspect-ratio: 4 / 3; }
  .strength img, .road-photo img { aspect-ratio: 4 / 3; }
  .service-row:nth-child(even) { grid-template-columns: 1fr; }
  .service-row:nth-child(even) img { order: 0; }
  .strength-list { grid-template-columns: 1fr; gap: 40px; }
  .others-grid { grid-template-columns: 1fr 1fr; }
  .others-grid section:nth-child(3) { padding-left: 0; border-left: 0; }
  .warranty { grid-template-columns: 1fr; gap: 28px; }
  .road-inner { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .reform-list { grid-template-columns: 1fr 1fr; }
  .flow-list { grid-template-columns: 1fr; gap: 20px; }
  .flow-list li { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 0; }
  .flow-list li:not(:last-child)::after { top: 64px; left: 29px; right: auto; width: 2px; height: 16px; }
  .flow-num { margin: 0; width: 52px; height: 52px; font-size: 26px; }
  .flow-list strong { min-width: 6em; }
  .flow-list span:last-child { flex-basis: 100%; padding-left: 68px; margin-top: -18px; }
  .company-body { grid-template-columns: 1fr; gap: 24px; }
  .company-logo { display: none; }
  .access-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  /* fixed bottom bar for phones */
  .sp-bar {
    display: grid; grid-template-columns: 1.2fr 1fr 1.2fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -6px 18px rgba(13,43,76,.18);
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
  }
  .sp-bar a { display: grid; place-items: center; min-height: 58px; font-weight: 700; font-size: 15px; text-decoration: none; }
  .sp-bar-tel { background: var(--blue); color: var(--navy); }
  .sp-bar-road { background: var(--signal); color: #fff; }
  .sp-bar-mail { background: var(--navy); color: #fff; }
  body { padding-bottom: 58px; }
  .to-top { right: 14px; bottom: calc(58px + 14px + env(safe-area-inset-bottom)); width: 54px; height: 54px; font-size: 12px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .sp-only { display: inline; }
  .brand-name { font-size: 16px; }
  .brand img { width: 38px; height: 38px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .car, .gallery, .reform, .company, .contact { padding-top: 80px; padding-bottom: 88px; }
  .access { padding-bottom: 88px; }
  .service-body h3 { font-size: 22px; }
  .others-grid { grid-template-columns: 1fr; }
  .others-grid section + section { padding-left: 0; border-left: 0; }
  .reform-list { grid-template-columns: 1fr; }
  .reform-list li { padding: 22px 20px; }
  .reform-tel { padding: 24px; }
  .reform-tel .num { font-size: 38px; }
  .road-tel { width: 100%; }
  .company-table > div { grid-template-columns: 1fr; gap: 2px; }
  .contact-form { padding: 24px 18px; }
  .field-row, .choices { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* =========================================================
   Motion
   The slant from the SHOEI wordmark drives every movement:
   things enter on a diagonal, from left to right, like a car
   passing. Only applied when JS is running (html.js) and the
   visitor has not asked for reduced motion.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-swift: cubic-bezier(.65, 0, .35, 1);
}

/* header shrinks after scrolling */
.site-header { transition: box-shadow .3s, background-color .3s; }
.header-inner { transition: padding .3s var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(13,43,76,.35); }
.site-header.is-scrolled .header-inner { padding-top: 6px; padding-bottom: 6px; }

/* scroll progress line in logo blue */
.scroll-line {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: var(--blue); transform-origin: left; transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {

  /* ----- 1. hero load sequence (one orchestrated moment) ----- */
  .js .hero::after { transform: skewX(-12.4deg) scaleY(0); transition: transform .9s var(--ease-swift) .1s; }
  .js .hero-photo { clip-path: polygon(100% 0, 100% 0, 100% 100%, 78% 100%); transition: clip-path 1.1s var(--ease-swift) .35s; }
  .js .hero-photo img { transform: scale(1.12) translateX(4%); transition: transform 2.4s var(--ease-out) .35s; }
  .js .hero-place,
  .js .hero h1 .nw,
  .js .hero-lead,
  .js .hero-actions { opacity: 0; transform: translateX(-40px) skewX(-8deg); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
  .js .hero-word { opacity: 0; transform: translateX(-12vw); transition: opacity 1.2s ease .5s, transform 1.8s var(--ease-out) .5s; }
  .js .divisions { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease-out) 1.25s, transform 1s var(--ease-out) 1.25s; }

  .js.is-loaded .hero::after { transform: skewX(-12.4deg) scaleY(1); }
  .js.is-loaded .hero-photo { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
  .js.is-loaded .hero-photo img { transform: none; }
  .js.is-loaded .hero-place,
  .js.is-loaded .hero h1 .nw,
  .js.is-loaded .hero-lead,
  .js.is-loaded .hero-actions { opacity: 1; transform: none; }
  .js.is-loaded .hero-place { transition-delay: .45s; }
  .js.is-loaded .hero h1 .nw:nth-child(1) { transition-delay: .55s; }
  .js.is-loaded .hero h1 .nw:nth-child(2) { transition-delay: .65s; }
  .js.is-loaded .hero h1 .nw:nth-child(4) { transition-delay: .78s; }
  .js.is-loaded .hero h1 .nw:nth-child(5) { transition-delay: .88s; }
  .js.is-loaded .hero h1 .nw:nth-child(6) { transition-delay: .98s; }
  .js.is-loaded .hero-lead { transition-delay: 1.08s; }
  .js.is-loaded .hero-actions { transition-delay: 1.18s; }
  .js.is-loaded .hero-word { opacity: 1; transform: none; }
  .js.is-loaded .divisions { opacity: 1; transform: none; }

  /* ----- 2. scroll reveals ----- */
  .js [data-reveal] { opacity: 0; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), clip-path 1s var(--ease-swift); transition-delay: var(--d, 0s); }
  .js [data-reveal="up"] { transform: translateY(32px); }
  .js [data-reveal="slide"] { transform: translateX(-36px) skewX(-6deg); }
  .js [data-reveal="wipe"] { opacity: 1; clip-path: polygon(0 0, 0 0, -20% 100%, 0 100%); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="wipe"].is-in { clip-path: polygon(0 0, 120% 0, 100% 100%, 0 100%); }
  /* service images keep their cut corner once revealed */
  .js .service-row img[data-reveal="wipe"].is-in { clip-path: polygon(0 0, 100% 0, 100% 90%, 86% 100%, 0 100%); }

  /* section label: blue slash draws in front of the English name */
  .js .section-en::before {
    content: ""; display: inline-block; width: 22px; height: 3px; margin-right: 10px; vertical-align: middle;
    background: currentColor; transform: skewX(-30deg) scaleX(0); transform-origin: left;
    transition: transform .6s var(--ease-out) .15s;
  }
  .js .is-in .section-en::before, .js .section-en.is-in::before { transform: skewX(-30deg) scaleX(1); }

  /* service heading bar grows */
  .js .service-body h3::before { transform: skewX(-12deg) scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out) .3s; }
  .js .service-body.is-in h3::before { transform: skewX(-12deg) scaleY(1); }

  /* flow: connectors draw after each step appears */
  .js .flow-list li::after { transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); transition-delay: calc(var(--d, 0s) + .35s); }
  .js .flow-list li.is-in::after { transform: scaleX(1); }

  /* road band: the diagonal opens like a ramp */
  .js .road { clip-path: polygon(0 calc(var(--slant) * 2), 100% calc(var(--slant) * 2), 100% calc(100% - var(--slant) * 2), 0 calc(100% - var(--slant) * 2)); transition: clip-path 1.1s var(--ease-swift); }
  .js .road.is-in { clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%); }

  /* tow-truck line: a beacon pulse so it is noticed (stops after a few cycles) */
  .road-tel { position: relative; }
  .road.is-in .road-tel::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(255,106,19,.7);
    animation: beacon 1.8s ease-out 1.2s 4;
    pointer-events: none;
  }
  @keyframes beacon {
    0% { box-shadow: 0 0 0 0 rgba(255,106,19,.65); }
    100% { box-shadow: 0 0 0 18px rgba(255,106,19,0); }
  }

  /* ----- 3. responses to the visitor ----- */
  .btn { position: relative; overflow: hidden; isolation: isolate; }
  .btn::before { /* a light streak passes on hover */
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg); transition: left .6s var(--ease-out);
  }
  .btn:hover::before { left: 120%; }

  .service-row img, .strength img, .gallery-grid img, .road-photo img { transition: transform .6s var(--ease-out), clip-path 1s var(--ease-swift); }
  .gallery-grid li:hover img { transform: scale(1.06); }
  .gallery-grid li { overflow: hidden; border-radius: var(--radius); }

  .division-title { transition: transform .4s var(--ease-out); }
  .division:hover .division-title { transform: translateX(6px); }

  .tags li, .road-list li { transition: background-color .2s, color .2s, transform .2s; }
  .tags li:hover { background: var(--blue); color: var(--navy); transform: translateY(-2px); }

  .reform-list li { transition: background-color .3s; }
  .reform-list li:hover { background: var(--blue-pale); }

}

@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .js .hero-photo { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
  .js.is-loaded .hero-photo { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%); }
  .js .divisions { transition-delay: .9s; }
}

/* reduced motion or no JS: everything simply visible */
@media (prefers-reduced-motion: reduce) {
  .scroll-line { display: none; }
}

@media (max-width: 900px) { .to-top.is-home-link { bottom: 16px; } }

/* =========================================================
   Mobile menu — slanted SHOEI button + full-height navy panel
   ========================================================= */
@media (max-width: 1080px) {
  .menu-toggle {
    display: flex; align-items: center; gap: 10px;
    margin-left: auto; height: 44px; padding: 0 22px 0 20px;
    background: var(--navy); color: #fff; border: 0; cursor: pointer;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    transition: background-color .25s;
  }
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--blue); color: var(--navy); }
  .menu-toggle:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; clip-path: none; }
  .menu-label { font-family: var(--ff-latin); font-style: italic; font-weight: 800; font-size: 14px; letter-spacing: .12em; line-height: 1; }

  /* three speed lines of different length, slanted like the wordmark */
  .menu-icon { position: relative; width: 22px; height: 14px; transform: skewX(-18deg); }
  .menu-icon i { position: absolute; right: 0; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .35s cubic-bezier(.16,1,.3,1), width .35s cubic-bezier(.16,1,.3,1), opacity .2s, top .35s cubic-bezier(.16,1,.3,1); }
  .menu-icon i:nth-child(1) { top: 0; width: 22px; }
  .menu-icon i:nth-child(2) { top: 6px; width: 15px; }
  .menu-icon i:nth-child(3) { top: 12px; width: 9px; }
  .menu-toggle:hover .menu-icon i:nth-child(2), .menu-toggle:hover .menu-icon i:nth-child(3) { width: 22px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { transform: none; }
  .menu-toggle[aria-expanded="true"] .menu-icon i { width: 22px; top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: rotate(-45deg); }

  /* the panel */
  .global-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h, 64px); bottom: 0; z-index: 49;
    margin: 0; overflow-y: auto; overscroll-behavior: contain;
    background: var(--navy); color: #fff;
    padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    visibility: hidden;
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transition: clip-path .55s cubic-bezier(.65,0,.35,1), visibility 0s linear .55s;
  }
  .global-nav.is-open {
    visibility: visible;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path .55s cubic-bezier(.65,0,.35,1), visibility 0s;
  }
  .global-nav ul { display: block; padding: 0; }
  .global-nav li { border-bottom: 1px solid rgba(255,255,255,.14); }
  .global-nav a {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 20px 4px; border-radius: 0;
    color: #fff; font-size: 19px; font-weight: 700; background: none;
  }
  .global-nav a:hover { background: none; color: var(--blue); }
  .global-nav a[data-en]::after {
    content: attr(data-en);
    font-family: var(--ff-latin); font-style: italic; font-weight: 600; font-size: 14px; letter-spacing: .08em;
    color: var(--blue);
  }
  .global-nav .nav-contact { border-bottom: 0; margin-top: 24px; }
  .global-nav .nav-contact a { justify-content: center; background: var(--blue); color: var(--navy); border-radius: var(--radius); padding: 16px; font-size: 17px; }
  .global-nav .nav-contact a:hover { background: #fff; color: var(--navy); }

  .nav-tel { display: grid; gap: 10px; margin-top: 14px; }
  .nav-tel a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border: 1.5px solid rgba(255,255,255,.3); border-radius: var(--radius); color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
  .nav-tel .num { font-size: 26px; line-height: 1; }
  .nav-tel-road { border-color: var(--signal) !important; }
  .nav-tel-road .num { color: var(--signal); }

  /* items slide in on the diagonal after the panel opens */
  .global-nav li, .nav-tel a { opacity: 0; transform: translateX(28px) skewX(-6deg); transition: opacity .3s, transform .5s cubic-bezier(.16,1,.3,1); }
  .global-nav.is-open li, .global-nav.is-open .nav-tel a { opacity: 1; transform: none; }
  .global-nav.is-open li:nth-child(1) { transition-delay: .18s; }
  .global-nav.is-open li:nth-child(2) { transition-delay: .23s; }
  .global-nav.is-open li:nth-child(3) { transition-delay: .28s; }
  .global-nav.is-open li:nth-child(4) { transition-delay: .33s; }
  .global-nav.is-open li:nth-child(5) { transition-delay: .38s; }
  .global-nav.is-open li:nth-child(6) { transition-delay: .43s; }
  .global-nav.is-open .nav-tel a { transition-delay: .5s; }

  /* backdrop-filter would trap the fixed panel inside the header */
  .site-header { backdrop-filter: none; background: #fff; }
  html.menu-open { overflow: hidden; }
  html.menu-open .sp-bar, html.menu-open .to-top { opacity: 0; visibility: hidden; }
  .sp-bar { transition: opacity .3s, visibility .3s; }
}
@media (max-width: 1080px) and (prefers-reduced-motion: reduce) {
  .global-nav, .global-nav li, .nav-tel a { transition: none; clip-path: none; transform: none; opacity: 1; }
}
@media (max-width: 380px) {
  .menu-label { display: none; }
  .menu-toggle { padding: 0 18px; }
}
