/* ===== Design tokens ===== */
:root {
  --blue:        #0046d5;
  --blue-dark:   #00329b;
  --blue-bright: #2f7bff;
  --ink:         #16213a;
  --ink-soft:    #4a5570;
  --line:        #e4e8f1;
  --bg:          #ffffff;
  --bg-alt:      #f5f8ff;
  --bg-deep:     #0a1330;
  --radius:      14px;
  --shadow:      0 18px 40px -22px rgba(10, 30, 80, .35);
  --max:         1140px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { width: 92%; max-width: var(--max); margin-inline: auto; }

/* ===== Brand mark (CSS logo) ===== */
.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 3px;
  flex: 0 0 auto;
}
.brand-mark .sq { background: var(--blue); border-radius: 2px; }
.brand-mark .sq-a { background: var(--ink); }
.brand-mark .sq-p { background: var(--blue-bright); }
.brand-mark .sq-i { grid-column: 1 / 3; background: var(--blue); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: "Montserrat", sans-serif; font-size: 1.35rem;
  letter-spacing: .06em; color: var(--blue);
}
.brand-text small { font-size: .62rem; letter-spacing: .14em; color: var(--ink-soft); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--blue); }
.nav .nav-cta {
  padding: 9px 20px; border-radius: 999px;
  background: var(--blue); color: #fff;
}
.nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(47,123,255,.55), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(0,70,213,.5), transparent 60%),
    linear-gradient(135deg, #061238 0%, #0a1f5e 55%, #0c2b8a 100%);
}
.hero-map {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  opacity: .9; pointer-events: none;
}
/* keep left side dark so the headline stays legible over the map */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(95deg,
    rgba(6,14,46,.9) 0%, rgba(6,14,46,.7) 28%, rgba(6,14,46,.32) 52%, rgba(6,14,46,0) 74%);
}
.hero-inner { position: relative; z-index: 3; padding: 96px 0 104px; max-width: 800px; }
.hero-eyebrow { font-family: "Montserrat", sans-serif; font-size: .78rem; letter-spacing: .25em; color: #9fc0ff; margin-bottom: 22px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.3; letter-spacing: .01em; }
.hero-title .nowrap { white-space: nowrap; }
.hero-title .accent {
  background: linear-gradient(90deg, #6ea8ff, #b8d2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: 24px; font-size: 1.05rem; color: #c8d6f5; max-width: 620px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn-primary { background: #fff; color: var(--blue-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255,255,255,.5); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.hero-stats { list-style: none; display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: "Montserrat", sans-serif; font-size: 1.7rem; color: #fff; }
.hero-stats span { font-size: .78rem; letter-spacing: .08em; color: #9fc0ff; }

/* ===== AI highlight band ===== */
.ai-band {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, #0046d5 0%, #2f7bff 55%, #4f93ff 100%);
  color: #fff;
}
.ai-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 120px at 12% 0%, rgba(255,255,255,.18), transparent 70%),
    radial-gradient(360px 120px at 92% 120%, rgba(255,209,102,.25), transparent 70%);
}
.ai-band-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 22px; padding: 22px 0; flex-wrap: wrap; text-align: center;
}
.ai-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  font-family: "Montserrat", sans-serif; font-weight: 700; letter-spacing: .1em; font-size: .9rem;
  flex: 0 0 auto;
}
.ai-chip svg { width: 20px; height: 20px; fill: #ffd166; }
.ai-band-text { font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.28rem); line-height: 1.6; }
.ai-band-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  background: #fff; color: var(--blue-dark);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.ai-band-cta::after { content: "→"; }
.ai-band-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0,0,0,.4); }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  font-family: "Montserrat", sans-serif; font-size: .72rem; letter-spacing: .22em;
  color: var(--blue); text-transform: uppercase;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; margin-top: 10px; }
.section-title::after {
  content: ""; display: block; width: 46px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright)); margin: 16px auto 0;
}
.section-sub { margin-top: 18px; color: var(--ink-soft); }

/* ===== Icon sprite ===== */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; margin-bottom: 40px; }
.about-lead h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.5; margin-bottom: 20px; }
.about-lead p { color: var(--ink-soft); margin-bottom: 16px; }
.about-figure { margin: 0; }
.about-figure img { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 40px rgba(10,40,120,.16)); }
.about-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-cards li {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow); transition: transform .25s var(--ease);
}
.about-cards li:hover { transform: translateY(-4px); }
.ac-icon { font-size: 1.7rem; }
.about-cards h4 { margin: 10px 0 6px; font-size: 1.1rem; }
.about-cards p { color: var(--ink-soft); font-size: .92rem; }

/* ===== Services ===== */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.service-card {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 26px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: linear-gradient(var(--blue), var(--blue-bright));
  transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-card h4 { font-size: 1.08rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: .9rem; }

.svc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 16px;
  background: linear-gradient(135deg, #eaf1ff, #d6e6ff);
  color: var(--blue); transition: background .25s var(--ease), color .25s, transform .25s var(--ease);
}
.svc-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .svc-ico { background: linear-gradient(135deg, var(--blue), var(--blue-bright)); color: #fff; transform: translateY(-2px); }

/* ===== Delivery / BCP ===== */
.pillar-grid { grid-template-columns: repeat(3, 1fr); }
.bcp-note {
  max-width: 920px; margin: 36px auto 0;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 28px; border-radius: var(--radius);
  background: linear-gradient(100deg, #eef4ff, #e2ecff);
  border: 1px solid #d4e2ff; color: var(--ink);
  font-size: .96rem; line-height: 1.75;
}
.bcp-badge {
  flex: 0 0 auto; align-self: flex-start;
  font-family: "Montserrat", sans-serif; font-weight: 800; letter-spacing: .08em; font-size: .82rem;
  background: var(--blue); color: #fff; padding: 7px 13px; border-radius: 9px;
}

/* ===== Trust & Quality ===== */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.trust-card {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow);
}
.tcheck {
  grid-column: 1; grid-row: 1 / span 2; align-self: start;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.trust-card h4 { grid-column: 2; font-size: 1.08rem; }
.trust-card p { grid-column: 2; color: var(--ink-soft); font-size: .92rem; }
.trust-card a { color: var(--blue); text-decoration: underline; white-space: nowrap; }

/* ===== Clients ===== */
.client-grid {
  list-style: none; max-width: 1020px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px;
}
.client-grid li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 86px; padding: 18px 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  font-weight: 700; color: var(--ink); font-size: .96rem; line-height: 1.5;
  box-shadow: 0 10px 24px -20px rgba(10,30,80,.4);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.client-grid li:hover { transform: translateY(-3px); border-color: var(--blue-bright); box-shadow: var(--shadow); }
.client-grid .client-etc { font-weight: 500; color: var(--ink-soft); border-style: dashed; background: transparent; box-shadow: none; }

/* ===== Profile / Recruit table ===== */
.profile-wrap { max-width: 860px; margin-inline: auto; }
.profile-split { max-width: 1040px; display: grid; grid-template-columns: 0.78fr 1fr; gap: 48px; align-items: center; }
.profile-figure { margin: 0; }
.profile-figure img { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 40px rgba(10,40,120,.16)); }
.profile-split .recruit-note { grid-column: 1 / -1; }
.profile-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.profile-table th, .profile-table td { padding: 18px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: 0; }
.profile-table th {
  width: 220px; background: var(--bg-alt); font-weight: 700; color: var(--ink);
  border-right: 1px solid var(--line);
}
.profile-table td { color: var(--ink-soft); }
.profile-table a { color: var(--blue); text-decoration: underline; }
.recruit-note { margin-top: 18px; text-align: center; font-size: .85rem; color: var(--ink-soft); }

/* ===== Contact ===== */
.contact-figure { margin: 0 auto 40px; max-width: 340px; }
.contact-figure img { width: 100%; height: auto; display: block; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.contact-card {
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 22px; transition: transform .25s var(--ease), box-shadow .25s;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cc-label { font-family: "Montserrat", sans-serif; font-size: .72rem; letter-spacing: .18em; color: var(--blue); }
.cc-value { font-size: 1.25rem; color: var(--ink); }
.cc-note { font-size: .8rem; color: var(--ink-soft); }
.contact-help { max-width: 720px; margin: 30px auto 0; text-align: center; color: var(--ink-soft); font-size: .9rem; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-deep); color: #c7d2ec; padding-top: 56px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark .sq-a { background: #fff; }
.footer-brand strong { display: block; color: #fff; font-size: 1rem; line-height: 1.35; }
.footer-brand small { display: block; margin-top: 4px; font-size: .68rem; line-height: 1.3; letter-spacing: .12em; color: #8fa6d8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.footer-nav a { font-size: .86rem; color: #aebbdb; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-addr { flex-basis: 100%; font-size: .82rem; color: #8fa6d8; }

.privacy { padding: 40px 0 8px; }
.privacy h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.privacy p { font-size: .86rem; color: #9fb0d6; margin-bottom: 14px; }
.privacy ol { padding-left: 1.2em; display: grid; gap: 8px; }
.privacy li { font-size: .85rem; color: #9fb0d6; }
.privacy li b { color: #cfdaf3; }

.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding: 22px 0; }
.copyright .container { font-size: .76rem; color: #7e92bd; text-align: center; }

/* ===== To-top ===== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-dark); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-figure { max-width: 380px; margin-inline: auto; order: -1; }
  .about-cards { grid-template-columns: 1fr; }
  .profile-split { grid-template-columns: 1fr; gap: 28px; }
  .profile-figure { max-width: 340px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .profile-table th { width: 140px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .bcp-note { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    margin: 0; padding: 8px 0; transform: translateY(-120%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 14px 28px; }
  .nav .nav-cta { border-radius: 0; background: var(--blue-alt, var(--blue)); color: #fff; text-align: center; margin: 6px 28px; border-radius: 999px; }
  .hero-inner { padding: 72px 0 80px; }
  .section { padding: 72px 0; }
  .hero-stats { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Recruit: allow room for detailed qualifications ===== */
#recruit .profile-split {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
#recruit .profile-figure {
  width: min(100%, 280px);
  margin-inline: auto;
}
#recruit .profile-table { table-layout: fixed; min-width: 0; }
#recruit .profile-table th { width: 190px; }
#recruit .profile-table td { overflow-wrap: anywhere; }
#recruit .recruit-note { margin-top: 0; }
@media (max-width: 600px) {
  #recruit .profile-figure { width: min(100%, 220px); }
  #recruit .profile-table,
  #recruit .profile-table tbody,
  #recruit .profile-table tr,
  #recruit .profile-table th,
  #recruit .profile-table td { display: block; width: 100%; }
  #recruit .profile-table th {
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 0;
  }
  #recruit .profile-table td { padding: 14px 18px 20px; }
  #recruit .profile-table tr:last-child td { border-bottom: 0; }
}

/* ===== Contact form ===== */
#contact .contact-form {
  max-width: 800px; margin-inline: auto; padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); box-shadow: var(--shadow);
}
#contact .form-guide { margin-bottom: 28px; color: var(--ink-soft); font-size: .9rem; }
#contact .form-field { margin-bottom: 24px; }
#contact .form-field label { display: block; font-weight: 700; margin-bottom: 9px; }
#contact .required-mark {
  display: inline-block; margin-inline: 6px; padding: 1px 7px;
  border-radius: 4px; background: #eaf1ff; color: var(--blue-dark);
  font-size: .75rem; font-weight: 700; vertical-align: middle;
}
#contact .form-field input, #contact .form-field textarea {
  display: block; width: 100%; min-width: 0; padding: 12px 14px;
  border: 1px solid #aebbd1; border-radius: 7px; background: #fff;
  color: var(--ink); font: inherit; line-height: 1.7;
}
#contact .form-field textarea { resize: vertical; min-height: 180px; }
#contact input:focus-visible, #contact textarea:focus-visible,
#contact button:focus-visible, #contact a:focus-visible {
  outline: 3px solid #8ab4ff; outline-offset: 3px;
}
#contact .form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 28px 0 20px; }
#contact .form-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 5px; accent-color: var(--blue); }
#contact .form-consent a, #contact noscript a { color: var(--blue-dark); text-decoration: underline; }
#contact .form-honeypot { display: none; }
#contact .form-status { margin-bottom: 20px; overflow-wrap: anywhere; }
#contact .form-status:empty { display: none; }
#contact .form-status[data-state="error"] { color: #a21d2b; }
#contact .form-status[data-state="success"] { color: #12613c; }
#contact .contact-submit { border: 0; background: var(--blue); color: #fff; cursor: pointer; font-family: inherit; }
#contact .contact-submit:disabled { opacity: .65; cursor: wait; }
@media (max-width: 600px) { #contact .contact-submit { width: 100%; } }

/* ===== Privacy policy dialog ===== */
html { scrollbar-gutter: stable; }
.privacy-modal {
  width: min(760px, calc(100% - 32px)); max-width: none;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: 16px;
  background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.28);
  overflow: hidden;
}
.privacy-modal::backdrop { background: rgba(6,18,56,.65); }
.privacy-modal[open] { display: flex; flex-direction: column; }
.privacy-modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.privacy-modal-header h2 { font-size: clamp(1.1rem, 4vw, 1.4rem); line-height: 1.5; }
.privacy-modal-close {
  flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-alt);
  color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer;
}
.privacy-modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 30px 30px; }
.privacy-modal-body p { margin-bottom: 20px; }
.privacy-modal-body ol { padding-left: 1.4em; display: grid; gap: 16px; }
.privacy-modal-body li { overflow-wrap: anywhere; }
.privacy-modal :focus-visible { outline: 3px solid #6ea8ff; outline-offset: 3px; }
.privacy-modal-body:focus-visible { outline-offset: -4px; }
@media (max-width: 600px) {
  .privacy-modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .privacy-modal-header { padding: 14px 16px; gap: 10px; }
  .privacy-modal-body { padding: 20px; font-size: .94rem; }
}

/* ===== Consistent company name in the header ===== */
.site-header .brand { flex-shrink: 0; }
.site-header .brand-text strong {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: clamp(.82rem, 2.7vw, 1.02rem);
  letter-spacing: .01em; white-space: nowrap;
}
.site-header .brand-text small { margin-top: 5px; letter-spacing: .06em; }
@media (max-width: 1100px) {
  .site-header .nav-toggle { display: flex; margin-left: auto; }
  .site-header .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    margin: 0; padding: 8px 0; transform: translateY(-120%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .site-header .nav.open { transform: translateY(0); }
  .site-header .nav a { width: 100%; padding: 14px 28px; }
  .site-header .nav .nav-cta { width: calc(100% - 56px); border-radius: 999px; background: var(--blue); color: #fff; text-align: center; margin: 6px 28px; }
}

/* ===== Contact submission complete ===== */
#contact .contact-form[hidden], #contact .contact-complete[hidden] { display: none; }
#contact .contact-complete {
  max-width: 800px; margin-inline: auto; padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); text-align: center;
}
#contact .contact-complete-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px;
  border-radius: 50%; background: #e7f5ee; color: #12613c; font-size: 2rem;
}
#contact .contact-complete h3 { font-size: clamp(1.25rem, 4vw, 1.6rem); margin-bottom: 20px; }
#contact .contact-complete p { color: var(--ink-soft); margin-bottom: 18px; overflow-wrap: anywhere; }
#contact .contact-complete .btn { margin-top: 12px; }

/* ===== Mobile header and hero gutters ===== */
@media (max-width: 600px) {
  .site-header .header-inner { width: calc(100% - 32px); gap: 12px; }
  .site-header .brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .site-header .brand-text { min-width: 0; }
  .site-header .brand-text strong { font-size: clamp(.72rem, 3.25vw, 1rem); white-space: normal; overflow-wrap: anywhere; }
  .site-header .brand-text small { font-size: clamp(.5rem, 2.2vw, .62rem); letter-spacing: .03em; }
  .site-header .nav-toggle { flex: 0 0 36px; min-height: 44px; align-items: center; justify-content: center; }
  .hero .hero-inner { width: calc(100% - 40px); max-width: 800px; margin-inline: auto; padding-top: 64px; padding-bottom: 64px; }
  .hero-title { font-size: clamp(1.8rem, 7.4vw, 2.5rem); overflow-wrap: anywhere; }
  .hero-title .nowrap { white-space: normal; }
  .hero-eyebrow { letter-spacing: .12em; }
  .hero-lead { font-size: 1rem; overflow-wrap: anywhere; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { padding: 13px 20px; max-width: 100%; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 1.45rem; }
}