:root {
  --blue: #0057c8;
  --blue-dark: #003b8f;
  --blue-soft: #edf6ff;
  --ink: #1d1d1f;
  --muted: #626873;
  --line: #e8edf5;
  --paper: #ffffff;
  --bg: #f6f9fc;
  --shadow: 0 18px 50px rgba(5, 42, 93, 0.07);
  --radius: 20px;
  --max: 1180px;
  --narrow: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding-left: 1.1em; }
li + li { margin-top: 0.72em; }
img { display: block; max-width: 100%; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
}
.container.narrow { max-width: var(--narrow); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(231,237,245,0.72);
}
.nav-shell {
  width: min(calc(100% - 64px), var(--max));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #1b2a3c;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0b77df, #0051bc 68%, #0b3f91);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  clip-path: polygon(24% 0, 100% 0, 100% 36%, 61% 36%, 61% 62%, 100% 62%, 100% 100%, 24% 100%, 0 76%, 0 24%);
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.1vw, 18px);
  font-size: 13px;
  color: #1f2933;
  font-weight: 600;
}
.primary-nav { flex-wrap: nowrap; white-space: nowrap; }
.primary-nav a:not(.nav-primary):not(.nav-ghost) { opacity: 0.86; }
.primary-nav a:hover { opacity: 1; color: var(--blue); }
.nav-ghost, .nav-primary {
  border-radius: 999px;
  padding: 9px 13px;
  line-height: 1;
  transition: 180ms ease;
}
.nav-ghost { border: 1px solid var(--line); background: #fff; }
.nav-primary { background: var(--blue); color: white; box-shadow: 0 8px 20px rgba(0,87,200,0.18); }
.nav-primary:hover { color: white !important; transform: translateY(-1px); }
.nav-toggle { display: none; }

.section-white { background: #fff; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 74px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -12% auto auto;
  width: 64vw;
  height: 64vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(circle at center, rgba(0, 105, 210, 0.08), rgba(0,105,210,0.02) 42%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}
.hero-copy h1 {
  margin: 0 0 30px;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.18;
  letter-spacing: -0.055em;
  font-weight: 800;
}
.hero-copy p {
  max-width: 600px;
  margin: 0;
  color: #3c4550;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2.05;
  font-weight: 500;
}
.hero-actions, .cta-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: 180ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 15px 32px rgba(0,87,200,0.18); }
.button-secondary { background: #fff; color: #26303b; border-color: var(--line); box-shadow: 0 12px 32px rgba(17, 43, 77, 0.05); }
.hero-visual {
  position: relative;
  border-radius: 32px;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% 0 0;
  border-radius: 36px;
  background:
    radial-gradient(circle at 76% 18%, rgba(0,87,200,0.08), transparent 28%),
    radial-gradient(circle at 20% 85%, rgba(0,87,200,0.06), transparent 34%),
    linear-gradient(180deg, rgba(244,250,255,0.9), rgba(255,255,255,0));
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  filter: drop-shadow(0 24px 44px rgba(25, 58, 96, 0.10));
}

.section {
  padding: 88px 0;
  background: linear-gradient(180deg, #f8fbfe 0%, #fff 100%);
}
.section + .section { border-top: 1px solid rgba(232,237,245,0.55); }
.section-head {
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.25;
  font-weight: 760;
  letter-spacing: 0.04em;
}
.section-head p {
  margin: 12px 0 0;
  color: #76808d;
  font-size: 13px;
}
.card-grid.four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.service-card, .tile-card, .pricing-card, .step-card, .case-card, .model-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(15, 45, 85, 0.04);
}
.service-card {
  min-height: 250px;
  padding: 34px 32px;
}
.round-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  margin-bottom: 22px;
}
.round-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 {
  margin: 0 0 26px;
  color: var(--blue-dark);
  font-size: 24px;
  line-height: 1;
}
.service-card ul {
  color: #26323f;
  line-height: 1.55;
  font-size: 14px;
  font-weight: 500;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.reason-item {
  text-align: center;
  padding: 20px 34px 18px;
  min-height: 260px;
  border-right: 1px solid var(--line);
}
.reason-item:last-child { border-right: 0; }
.line-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 24px;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reason-item h3 {
  margin: 0 0 20px;
  font-size: 18px;
  color: #1f2e3e;
  line-height: 1.55;
  font-weight: 750;
}
.reason-item p {
  margin: 0 auto;
  max-width: 210px;
  color: #687381;
  font-size: 13px;
  line-height: 1.9;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}
.tile-card {
  min-height: 152px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px 18px;
}
.tile-card svg, .case-card svg, .step-card svg, .model-card svg {
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-card svg { width: 54px; height: 54px; margin-bottom: 16px; }
.tile-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #2e3a48;
}

.model-flow {
  display: grid;
  grid-template-columns: 1fr 70px 1fr 70px 1fr;
  align-items: center;
  gap: 0;
}
.model-card {
  min-height: 180px;
  padding: 30px 24px;
  text-align: center;
  background: linear-gradient(180deg, #fff, #f9fbfe);
}
.model-card.active { background: linear-gradient(180deg, #f2f8ff, #fff); }
.model-card.green { background: linear-gradient(180deg, #f2fbf6, #fff); }
.model-card svg { width: 48px; height: 48px; margin: 0 auto 14px; }
.model-card h3 { margin: 0 0 14px; font-size: 18px; line-height: 1.5; color: var(--blue-dark); }
.model-card p { margin: 0; color: #526071; line-height: 1.7; font-size: 13px; }
.flow-arrow {
  height: 2px;
  background: #8d9aaa;
  position: relative;
  margin: 0 18px;
}
.flow-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #8d9aaa;
  border-right: 2px solid #8d9aaa;
  transform: translateY(-50%) rotate(45deg);
}

.pricing-head { display: grid; gap: 8px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  padding: 42px 38px 34px;
  min-height: 360px;
  overflow: hidden;
}
.pricing-card.recommended {
  border-color: rgba(0,87,200,0.36);
  box-shadow: 0 22px 60px rgba(0, 87, 200, 0.10);
}
.ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: var(--blue);
  font-size: 13px;
}
.pricing-card.recommended { padding-top: 60px; }
.pricing-card h3 { margin: 0 0 28px; font-size: 19px; text-align: center; color: #26323f; }
.price { text-align: center; color: var(--blue-dark); font-size: 18px; font-weight: 700; }
.price strong { font-size: 46px; letter-spacing: -0.04em; }
.plan-meta { margin: 12px 0 5px; text-align: center; color: #334155; font-weight: 700; }
.plan-copy { margin: 0 0 26px; text-align: center; color: #697386; font-size: 13px; line-height: 1.65; }
.pricing-card ul { list-style: none; padding: 0; margin-top: 26px; color: #314154; font-size: 14px; line-height: 1.6; }
.pricing-card li { position: relative; padding-left: 26px; margin-top: 14px; }
.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 900;
}
.note { margin: 26px 0 0; text-align: center; color: #7a8491; font-size: 13px; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.step-card {
  position: relative;
  min-height: 170px;
  padding: 26px 24px 28px;
}
.step-card + .step-card::before {
  content: "›";
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7380;
  font-size: 42px;
  line-height: 1;
  font-weight: 300;
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.step-card svg { width: 40px; height: 40px; margin-bottom: 12px; }
.step-card h3 { margin: 0 0 12px; font-size: 17px; color: #213142; line-height: 1.45; }
.step-card p { margin: 0; color: #647182; font-size: 13px; line-height: 1.8; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.case-card { min-height: 222px; padding: 28px 22px; }
.case-card svg { width: 50px; height: 50px; margin-bottom: 18px; }
.case-card h3 { margin: 0 0 15px; color: var(--blue-dark); font-size: 16px; line-height: 1.45; }
.case-card p { margin: 0; color: #637083; font-size: 12.5px; line-height: 1.9; }

.cta {
  padding: 62px 0;
  color: #fff;
  background:
    radial-gradient(circle at 10% 100%, rgba(52,154,255,0.38), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(40,114,224,0.42), transparent 36%),
    linear-gradient(135deg, #003077 0%, #004aa8 52%, #002e73 100%);
  position: relative;
  overflow: hidden;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
}
.cta::before { bottom: -100px; }
.cta::after { bottom: -70px; transform: rotate(-3deg); opacity: 0.7; }
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 42px); letter-spacing: 0.03em; }
.cta p { margin: 0; color: rgba(255,255,255,0.78); font-weight: 600; }
.cta-actions { justify-content: center; margin-top: 28px; }
.button-light { background: #fff; color: var(--blue-dark); min-width: 210px; }
.button-outline-light { border-color: rgba(255,255,255,0.58); color: #fff; background: rgba(255,255,255,0.06); min-width: 210px; }
.button span { margin-left: 12px; }

.footer {
  background: #fff;
  padding: 44px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 52px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { margin: 20px 0 0; color: #667085; line-height: 1.85; max-width: 270px; font-size: 13px; }
.footer-col h3 { margin: 0 0 18px; font-size: 13px; color: #2a3644; }
.footer-col a { display: block; color: #667085; font-size: 13px; line-height: 1.8; margin: 5px 0; }
.footer-col a:hover { color: var(--blue); }
.contact-col a { color: #344154; }
.copyright { margin: 22px 0 0; text-align: center; color: #8b95a1; font-size: 12px; }



/* Language switcher - compact flag-only UI at the far right */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 0;
  padding: 2px;
  margin-left: 2px;
  border: 1px solid rgba(232,237,245,0.78);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 16px rgba(17, 43, 77, 0.035);
  white-space: nowrap;
  order: 99;
}
.lang-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #334155;
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  line-height: 1;
  transition: 180ms ease;
}
.lang-button:hover { background: #f1f6fc; color: var(--blue); transform: translateY(-1px); }
.lang-button.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(0,87,200,0.16);
}
.flag { font-size: 15px; line-height: 1; }
.lang-code { display: none !important; }

@media (max-width: 1080px) {
  .primary-nav { gap: 10px; font-size: 12px; flex-wrap: nowrap; white-space: nowrap; }
  .nav-ghost, .nav-primary { padding: 9px 12px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-copy p { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .card-grid.four, .reason-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .target-grid, .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-flow { grid-template-columns: 1fr; gap: 18px; }
  .flow-arrow { width: 2px; height: 36px; margin: 0 auto; }
  .flow-arrow::after { right: auto; top: auto; left: 50%; bottom: -2px; transform: translateX(-50%) rotate(135deg); }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-card + .step-card::before { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .container, .nav-shell { width: min(calc(100% - 40px), var(--max)); }
  .nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .nav-toggle span { width: 20px; height: 2px; background: #1f2933; border-radius: 2px; }
  .primary-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 14px 12px; }
  .nav-ghost, .nav-primary { text-align: center; margin-top: 10px; }
  .hero { padding: 64px 0 62px; }
  .hero-copy h1 { font-size: clamp(38px, 10vw, 58px); }
  .hero-visual { min-height: auto; }
  .section { padding: 70px 0; }
  .service-card { min-height: auto; }
}

@media (max-width: 860px) {
  .primary-nav .lang-switcher {
    justify-content: center;
    margin: 12px auto 2px;
    width: auto;
    align-self: center;
    order: 99;
  }
  .lang-button { width: 34px; min-width: 34px; height: 34px; flex: 0 0 auto; }
  .flag { font-size: 18px; }
}

@media (max-width: 680px) {
  .container, .nav-shell { width: min(calc(100% - 28px), var(--max)); }
  .brand span:last-child { font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .card-grid.four, .reason-grid, .pricing-grid, .target-grid, .case-grid, .step-grid { grid-template-columns: 1fr; }
  .reason-item { padding: 24px 18px; }
  .target-grid { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-card, .pricing-card, .case-card, .step-card, .tile-card, .model-card { border-radius: 18px; }
}


/* 2026-05 clean hero update: remove residual text, use HD hero image as background, prevent title wrapping */
@media (min-width: 1081px) {
  .hero {
    min-height: 620px;
    padding: 72px 0 96px;
  }

  .hero::before {
    inset: -24% -10% auto auto;
    width: 72vw;
    height: 72vw;
    max-width: 940px;
    max-height: 940px;
  }

  .hero-grid {
    display: block;
    min-height: 520px;
    position: relative;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
    width: min(62%, 760px);
    max-width: 760px;
    padding-top: 66px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 4.15vw, 58px);
    line-height: 1.18;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .hero-copy p {
    max-width: 620px;
  }

  .hero-visual {
    position: absolute;
    z-index: 1;
    top: 8px;
    right: clamp(-96px, -5.5vw, -36px);
    width: min(78vw, 1040px);
    height: 590px;
    min-height: 0;
    border-radius: 0;
    display: block;
    pointer-events: none;
  }

  .hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 0;
    background:
      linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.98) 12%, rgba(255,255,255,0.86) 24%, rgba(255,255,255,0.35) 44%, rgba(255,255,255,0) 66%);
    pointer-events: none;
  }

  .hero-visual img {
    position: absolute;
    z-index: 1;
    inset: 0 0 0 auto;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 24px 44px rgba(25, 58, 96, 0.10));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.04) 5%, rgba(0,0,0,0.36) 17%, #000 34%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.04) 5%, rgba(0,0,0,0.36) 17%, #000 34%, #000 100%);
  }
}

@media (max-width: 1080px) {
  .hero-copy h1 {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .hero-visual img {
    width: min(100%, 720px);
  }
}

@media (max-width: 680px) {
  .hero-copy h1 {
    white-space: normal;
    word-break: keep-all;
  }
}


/* 2026-05 final update: official logo + larger readable copy */
.brand-image {
  gap: 0;
  flex: 0 0 auto;
}
.brand-logo {
  width: 178px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}
.footer-logo {
  width: 168px;
  max-height: 40px;
}
.primary-nav {
  gap: clamp(10px, 1vw, 17px);
  font-size: 13.5px;
}
.nav-ghost, .nav-primary {
  padding: 9px 12px;
}
.lang-switcher {
  margin-left: 8px;
  padding: 2px;
  gap: 1px;
}
.lang-button {
  width: 26px;
  min-width: 26px;
  height: 26px;
}
.hero-copy h1 {
  font-size: clamp(44px, 5.35vw, 74px);
}
.hero-copy p {
  font-size: clamp(17px, 1.35vw, 20px);
}
.button {
  font-size: 17px;
  min-height: 56px;
  padding: 0 34px;
}
.service-card li,
.pricing-card li,
.case-card p,
.step-card p,
.reason-item p,
.model-card p,
.tile-card h3 {
  font-size: calc(1em + 2px);
}
@media (min-width: 1081px) {
  .hero-copy { width: min(66%, 820px); max-width: 820px; }
  .hero-copy h1 {
    font-size: clamp(42px, 4.25vw, 60px);
    white-space: nowrap;
    word-break: keep-all;
    letter-spacing: -0.052em;
  }
  .hero-copy p { font-size: 20px; line-height: 2.05; }
  .hero-visual {
    right: clamp(-118px, -6.5vw, -48px);
    width: min(80vw, 1080px);
    height: 600px;
  }
  .hero-visual::before {
    background:
      linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.99) 10%, rgba(255,255,255,0.9) 22%, rgba(255,255,255,0.52) 39%, rgba(255,255,255,0.12) 58%, rgba(255,255,255,0) 72%);
  }
  .hero-visual img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.08) 8%, rgba(0,0,0,0.46) 20%, #000 38%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.08) 8%, rgba(0,0,0,0.46) 20%, #000 38%, #000 100%);
  }
}
@media (max-width: 1180px) and (min-width: 861px) {
  .nav-shell { width: min(calc(100% - 36px), var(--max)); gap: 16px; }
  .brand-logo { width: 158px; }
  .primary-nav { gap: 9px; font-size: 12.5px; }
  .nav-ghost, .nav-primary { padding: 8px 10px; }
}
@media (max-width: 860px) {
  .brand-logo { width: 154px; max-height: 38px; }
  .primary-nav { font-size: 15px; }
  .hero-copy p { font-size: 17px; }
}
@media (max-width: 680px) {
  .brand-logo { width: 142px; }
  .hero-copy h1 { font-size: clamp(38px, 10vw, 58px); }
  .button { font-size: 16px; }
}


/* Contact form */
.contact-section .section-head p {
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
}
.contact-form {
  margin: 38px auto 0;
  padding: clamp(24px, 4vw, 48px);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(13, 71, 161, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 39, 86, 0.10);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  align-items: start;
}
.contact-form label {
  display: grid;
  grid-template-rows: 28px auto;
  gap: 9px;
  min-width: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
}
.contact-form label.full { grid-column: 1 / -1; }
.contact-form .field-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  line-height: 1.35;
  white-space: nowrap;
}
.contact-form .field-title em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 87, 200, .09);
  color: var(--blue);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  flex: 0 0 auto;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(13, 71, 161, .18);
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  padding: 15px 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6a7480 50%), linear-gradient(135deg, #6a7480 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 87, 200, .12);
}
.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}
.form-submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.form-message {
  margin: 28px auto 0;
  padding: 16px 20px;
  border-radius: 18px;
  font-weight: 800;
  text-align: center;
}
.form-message.success {
  color: #075e2d;
  background: #e9f8ef;
  border: 1px solid #bfe8cd;
}
.form-message.error {
  color: #8a1f11;
  background: #fff0ed;
  border: 1px solid #ffd0c7;
}
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-form label { grid-template-rows: auto auto; }
  .contact-form .field-title { min-height: 24px; }
  .form-submit-row { align-items: stretch; flex-direction: column; }
  .form-submit-row .button { width: 100%; }
}
