/* ==========================================================================
   AquaLock X 製品LP — style.css
   --------------------------------------------------------------------------
   - 配色: 白と淡いアイスブルーのセクションを交互に使い、見出し・本文は濃紺、
     補助アクセントは落ち着いたブルー。オレンジ（ロゴと同系色）は主要 CTA ボタンだけに使う
   - 書体は製品カタログ／技術仕様書と同じ Noto Sans JP
   - モバイルファースト。ブレークポイント: 560 / 640 / 768 / 900 / 960 / 1024 / 1280px
   ========================================================================== */

/* ---------- Fonts（Noto Sans JP / SIL OFL 1.1。tools/build_fonts.py でページ使用文字にサブセット） ---------- */
@font-face {
  font-family: "Noto Sans JP Web";
  src: url("../assets/fonts/noto-sans-jp-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans JP Web";
  src: url("../assets/fonts/noto-sans-jp-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans JP Web";
  src: url("../assets/fonts/noto-sans-jp-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #22313f;          /* 見出し・本文・ヘッダー（濃紺） */
  --navy-deep: #1a2632;
  --navy-band: linear-gradient(120deg, #22313f 0%, #243a4f 62%, #284560 100%); /* 濃紺の帯（ごく浅いグラデーション） */
  --ink: #252f3a;           /* 本文（濃） */
  --ink-2: #3e4955;         /* 本文 */
  --ink-3: #5c6874;         /* 補足・キャプション（白・淡いブルー上で 4.5:1 以上） */
  --line: #d5e3ec;          /* 罫線（淡いブルーグレー） */
  --line-2: #b3c8d6;        /* 強めの罫線 */
  --ice: #f2f7fa;           /* セクション背景（淡いアイスブルー） */
  --ice-2: #eaf3f8;         /* セクション背景・パネル（少し濃い） */
  --ice-3: #dbeaf2;         /* パネルの境界 */
  --blue: #6f96ae;          /* 補助アクセント（線・装飾） */
  --blue-strong: #5a87a1;   /* 番号・アイコン（白・淡いブルー上で 3:1 以上） */
  --blue-ink: #3d6a85;      /* 小さな青文字・バッジ（白・淡いブルー上で 4.5:1 以上） */
  --blue-soft: #a9cde2;     /* 濃紺の帯の上のアクセント */
  --photo: #eef1f4;         /* 製品写真の台の色（画像に合成済みの色と同じ。変更しない） */
  --orange-btn: #c4531a;    /* 主要 CTA ボタンだけに使う（ロゴのオレンジを濃くした色。白文字で 4.5:1 以上） */
  --orange-btn-hover: #a8461a;
  --field-border: #7f93a3;  /* 入力欄・選択肢の枠（白地で 3:1 以上） */
  --error: #b3261e;
  --focus: #1f63d6;
  --focus-invert: #a9d0e6;  /* 濃紺の帯の上のフォーカス枠 */
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-card: 0 1px 2px rgb(34 49 63 / .05), 0 8px 24px rgb(34 49 63 / .07);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 60px;
  --font: "Noto Sans JP Web", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

@media (min-width: 960px) {
  :root { --header-h: 72px; }
}

@media (min-width: 1280px) {
  :root { --gutter: 40px; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html.is-scroll-locked {
  overflow: hidden;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: .02em;
  line-break: strict;
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
}

img, svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: var(--navy);
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ---------- Utilities ---------- */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.nowrap {
  white-space: nowrap;
}

/* 改行位置の出し分け（指定幅未満では改行しない） */
@media (max-width: 1023.98px) {
  .br-lg { display: none; }
}
@media (max-width: 1279.98px) {
  .br-xl { display: none; }
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon__spray {
  stroke-width: 1.35;
  stroke-dasharray: 2.2 1.7;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(880px + var(--gutter) * 2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--primary {
  background: var(--orange-btn);
  color: #fff;
  box-shadow: 0 1px 2px rgb(20 30 40 / .12);
}

.btn--primary:hover {
  background: var(--orange-btn-hover);
}

.btn--secondary {
  background: #fff;
  border-color: var(--navy);
  color: var(--navy);
}

.btn--secondary:hover {
  background: var(--ice-2);
}

.btn--lg {
  min-height: 56px;
  padding: 14px 26px;
  font-size: 1rem;
}

.btn--sm {
  min-height: 40px;
  padding: 7px 14px;
  font-size: .8125rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--wide {
  width: 100%;
  max-width: 360px;
}

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.btn__icon {
  width: 20px;
  height: 20px;
}

.btn__label {
  min-width: 0;
}

@media (max-width: 419.98px) {
  .btn__tag { display: none; }
}

.btn__tag {
  flex: none;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: .625rem;
  line-height: 1.6;
  letter-spacing: .08em;
}

/* ---------- Section frame ---------- */
.section {
  padding-block: 64px;
}

.section--tint {
  background: var(--ice);
}

.section--tint-2 {
  background: var(--ice-2);
}

@media (min-width: 768px) {
  .section { padding-block: 88px; }
}

@media (min-width: 1024px) {
  .section { padding-block: 104px; }
}

.section-head {
  margin-bottom: 36px;
}

.section-head--center {
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}

@media (min-width: 768px) {
  .section-head { margin-bottom: 48px; }
}

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .16em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue);
}

.eyebrow span {
  color: var(--ink-3);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
}

.eyebrow--invert {
  color: #fff;
}

.eyebrow--invert span {
  color: rgb(255 255 255 / .72);
}

.eyebrow--invert::before {
  background: var(--blue-soft);
}

.section-title {
  color: var(--navy);
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.25rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section-head__lead {
  margin-top: 16px;
  color: var(--ink-2);
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section-head__aside {
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-2);
  font-size: .875rem;
}

.section-head__aside strong {
  color: var(--navy);
  letter-spacing: .06em;
}

/* ==========================================================================
   Exhibition banner（?from=exhibition のときだけ表示）
   ========================================================================== */
.exhibition {
  background: var(--navy-band);
  color: #fff;
}

.exhibition__inner {
  position: relative;
  display: grid;
  gap: 18px 40px;
  padding-block: 22px 24px;
}

.exhibition .eyebrow {
  margin-bottom: 6px;
  padding-right: 40px;
}

.exhibition__title {
  margin-bottom: 8px;
  padding-right: 40px;
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: .06em;
}

.exhibition__body {
  color: rgb(255 255 255 / .88);
  font-size: .875rem;
  line-height: 1.85;
}

.exhibition__actions {
  display: grid;
  gap: 10px;
}

.exhibition__actions .btn--secondary {
  border-color: #fff;
}

.exhibition__close {
  position: absolute;
  top: 14px;
  right: calc(var(--gutter) - 10px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: #fff;
  cursor: pointer;
}

.exhibition__close:hover {
  background: rgb(255 255 255 / .1);
}

.exhibition__close .icon {
  width: 22px;
  height: 22px;
}

.exhibition :focus-visible {
  outline-color: var(--focus-invert);
}

@media (min-width: 560px) {
  .exhibition__actions {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .exhibition__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-block: 26px;
    padding-right: calc(var(--gutter) + 48px);
  }

  .exhibition .eyebrow,
  .exhibition__title {
    padding-right: 0;
  }

  .exhibition__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .exhibition__close {
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgb(20 30 40 / .08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.site-header__brand {
  display: block;
  flex: none;
  margin-right: auto;
  border-radius: 2px;
}

.site-header__brand img {
  width: auto;
  height: 28px;
}

.site-header__cta {
  display: none;
}

@media (min-width: 360px) {
  .site-header__cta { display: inline-flex; }
}

/* mobile menu */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.is-nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.is-nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 4px var(--gutter) 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 100vmax rgb(20 30 40 / .4);
  clip-path: inset(0 0 -100vmax 0);
}

.is-nav-open .site-nav {
  display: block;
}

.site-nav__list {
  list-style: none;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.site-nav__actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 960px) {
  .site-header__inner { gap: 20px; }
  .site-header__brand img { height: 34px; }

  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    clip-path: none;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .site-nav__list a {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius);
    font-size: .9375rem;
    font-weight: 500;
    position: relative;
  }

  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform .2s ease;
  }

  .site-nav__list a:hover::after {
    transform: scaleX(1);
  }

  .site-nav__actions { display: none; }

  .site-header__cta {
    min-height: 44px;
    padding-inline: 18px;
    font-size: .875rem;
  }
}

@media (min-width: 1100px) {
  .site-nav__list a { padding: 0 16px; }
  .site-nav__list a::after { left: 16px; right: 16px; }
}

/* ==========================================================================
   Hero（製品概要）
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, #fbfdfe 0%, #f0f6fa 58%, #e3eef5 100%);
}

.hero__stage {
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-areas:
    "head"
    "media"
    "body";
  padding-block: 28px 28px;
}

.hero__head { grid-area: head; }
.hero__media { grid-area: media; }
.hero__body { grid-area: body; }

.hero__title {
  font-weight: 700;
}

.hero__category {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .12em;
}

.hero__category::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--blue);
}

.hero__logo {
  width: min(78%, 320px);
  margin-top: 12px;
}

.hero__copy {
  margin-top: 18px;
  color: var(--navy);
  font-size: clamp(1.875rem, 1.15rem + 3vw, 3.125rem);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: .05em;
  font-feature-settings: "palt";
}

.hero__media {
  margin: 22px calc(var(--gutter) * -1) 24px;
}

.hero__media img {
  width: 100%;
}

.hero__lead {
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.9;
}

.hero__actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.hero__facts {
  padding-bottom: 36px;
}

@media (min-width: 560px) {
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "head media"
      "body media";
    column-gap: 36px;
    align-content: center;
    padding-block: 44px 40px;
  }

  .hero__head { align-self: end; }
  .hero__body { align-self: start; margin-top: 22px; }

  .hero__media {
    align-self: center;
    margin: 0;
  }

  .hero__media img {
    -webkit-mask-image: radial-gradient(ellipse 72% 70% at 55% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 70% at 55% 50%, #000 62%, transparent 100%);
  }

  .hero__lead { font-size: 1rem; }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .hero__actions {
    flex-direction: row;
  }
}

@media (min-width: 1280px) {
  .hero__grid {
    display: block;
    min-height: 580px;
    padding-block: 64px 84px;
  }

  .hero__head,
  .hero__body {
    position: relative;
    z-index: 1;
    max-width: 540px;
  }

  .hero__body { margin-top: 26px; }
  .hero__logo { width: 380px; margin-top: 16px; }
  .hero__copy { margin-top: 22px; }

  .hero__actions {
    flex-wrap: nowrap;
    width: max-content;
  }

  /* 写真は右半分に全面配置。左端をなだらかに背景へなじませる */
  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: calc(50% - 100px);
    align-self: stretch;
    justify-self: stretch;
    margin: 0;
  }

  .hero__media picture,
  .hero__media img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero__media img {
    object-fit: cover;
    object-position: 100% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(0deg, transparent 0, #000 12%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(0deg, transparent 0, #000 12%);
    mask-composite: intersect;
  }

  .hero__facts {
    position: relative;
    z-index: 2;
    margin-top: -44px;
    padding-bottom: 48px;
  }
}

/* key specs */
.keyspecs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 3px 0 var(--blue), var(--shadow-card);
}

.keyspecs__item {
  min-width: 0;
  padding: 14px 14px 16px;
  border-bottom: 1px solid var(--line);
}

.keyspecs__item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.keyspecs__item:nth-child(n + 3) {
  border-bottom: 0;
}

.keyspecs dt {
  color: var(--ink-3);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .08em;
}

.keyspecs dd {
  margin-top: 4px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.keyspecs__num {
  font-size: clamp(1.25rem, .95rem + 1.5vw, 2.125rem);
  letter-spacing: .01em;
}

.keyspecs__unit {
  font-size: .8125rem;
  letter-spacing: .02em;
}

.keyspecs__mark {
  position: relative;
  top: -.6em;
  margin-left: 1px;
  font-size: .625rem;
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 16px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  list-style: none;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.6;
}

.hero__points .icon {
  width: 22px;
  height: 22px;
  color: var(--blue-strong);
}

.hero__note {
  color: var(--ink-3);
  font-size: .75rem;
}

@media (min-width: 768px) {
  .keyspecs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .keyspecs__item {
    padding: 16px 14px 18px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .keyspecs__item:last-child {
    border-right: 0;
  }
}

@media (min-width: 1024px) {
  .keyspecs__item { padding: 20px 28px 22px; }
  .keyspecs__unit { font-size: .9375rem; }
}

@media (max-width: 359.98px) {
  .keyspecs__item { padding-inline: 10px; }
}

/* ==========================================================================
   Problems → Solution
   ========================================================================== */
.problems {
  padding-bottom: 0;
}

.problems__list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.problem {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  background: var(--ice-2);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 3px 0 var(--blue);
}

.problem__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.problem__num {
  color: var(--blue-strong);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
}

.problem__icon {
  width: 46px;
  height: 46px;
  color: var(--blue-strong);
  stroke-width: 2;
}

.problem__text {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.75;
  font-feature-settings: "palt";
  letter-spacing: .04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .problems__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .problems__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .problem {
    gap: 18px;
    padding: 26px 22px 28px;
  }
}

.solution {
  position: relative;
  margin-top: 64px;
  background: var(--navy-band);
  color: #fff;
}

/* 課題 → 解決 をつなぐ下向きの切り欠き */
.solution::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 22px 0;
  border-color: #fff transparent transparent;
  transform: translateX(-50%);
}

.solution__inner {
  padding-block: 60px 56px;
  text-align: center;
}

.solution__title {
  font-size: clamp(1.25rem, .95rem + 1.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .05em;
  font-feature-settings: "palt";
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.solution__keys {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  max-width: 920px;
  margin: 32px auto 28px;
}

.solution__key {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 4px 12px;
  border: 1px solid rgb(169 205 226 / .4);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / .04);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.solution__key .icon {
  width: 30px;
  height: 30px;
  color: var(--blue-soft);
  stroke-width: 2;
}

.solution__x {
  flex: none;
  align-self: center;
  color: var(--blue-soft);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.solution__text {
  max-width: 44em;
  margin-inline: auto;
  color: rgb(255 255 255 / .86);
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.solution :focus-visible {
  outline-color: var(--focus-invert);
}

@media (min-width: 640px) {
  .solution__keys { gap: 14px; }

  .solution__key {
    gap: 12px;
    padding: 22px 8px 18px;
    font-size: 1.0625rem;
  }

  .solution__key .icon {
    width: 46px;
    height: 46px;
  }

  .solution__x { font-size: 1.625rem; }
}

@media (min-width: 1024px) {
  .solution { margin-top: 88px; }
  .solution__inner { padding-block: 76px 72px; }
  .solution__key { font-size: 1.25rem; padding-block: 26px 22px; }
}

/* ==========================================================================
   Features
   ========================================================================== */
.features__list {
  display: grid;
  gap: 56px;
}

.feature {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .feature {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 32px;
  }

  .feature:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }

  .feature:nth-child(even) .feature__media {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .features__list { gap: 80px; }
  .feature { gap: 64px; }
}

/* 写真＋引き出し線 */
.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--photo);
}

.shot img {
  width: 100%;
}

.shot__leader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.shot__leader polyline {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.shot__leader .halo {
  stroke: #fff;
  stroke-width: 4;
  opacity: .85;
}

.shot__dot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgb(255 255 255 / .8);
}

.shot__label {
  position: absolute;
  top: var(--y);
  left: var(--x);
  padding: 3px 10px;
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* 引き出し線の位置（画像 1200×800 に対する %。SVG の points と対応） */
.shot--seal .shot__dot { --x: 75.67%; --y: 55.88%; }
.shot--seal .shot__label { --x: 84.17%; --y: 80%; }
.shot--pushlock .shot__dot { --x: 30.58%; --y: 15.38%; }
.shot--pushlock .shot__label { --x: 45.58%; --y: 10.25%; }
.shot--lock .shot__dot { --x: 56.75%; --y: 25.63%; }
.shot--lock .shot__label { --x: 41.67%; --y: 19.5%; }

.shot__label--below { transform: translate(-70%, 0); }
.shot__label--right { transform: translate(0, -50%); }
.shot__label--left { transform: translate(-100%, -50%); }

@media (min-width: 768px) {
  .shot__label { font-size: .8125rem; padding: 4px 12px; }
}

.feature__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 12px;
}

.feature__en {
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.feature__num {
  color: var(--blue-strong);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
}

.feature__tag {
  align-self: center;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: var(--radius);
  background: var(--ice-2);
  color: var(--blue-ink);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .06em;
}

.feature__title {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.3125rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.5;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.feature__text {
  margin-bottom: 22px;
  color: var(--ink-2);
}

.minispec {
  border-top: 1px solid var(--line);
}

.minispec > div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.6;
}

.minispec dt {
  color: var(--ink-3);
}

.minispec dd {
  color: var(--navy);
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Applications
   ========================================================================== */
.applications__list {
  display: grid;
  gap: 20px;
}

.app {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.app__media {
  position: relative;
  overflow: hidden;
}

.app__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.app__caption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 1px 8px;
  background: rgb(26 38 50 / .82);
  color: #fff;
  font-size: .6875rem;
  line-height: 1.7;
  letter-spacing: .04em;
}

.app__body {
  padding: 20px 20px 24px;
}

.app__label {
  margin-bottom: 4px;
  color: var(--ink-3);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.app__label span {
  color: var(--blue-ink);
}

.app__title {
  color: var(--navy);
  font-size: 1.375rem;
  line-height: 1.45;
  letter-spacing: .04em;
}

.app__sub {
  margin: 4px 0 12px;
  color: var(--navy);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.6;
}

.app__text {
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.85;
}

.applications__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

.applications__more {
  color: var(--ink);
  font-weight: 500;
}

.applications__note {
  color: var(--ink-3);
  font-size: .8125rem;
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .app {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  }

  .app__media img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 240px;
  }

  .app__body {
    align-self: center;
    padding: 24px 26px;
  }
}

@media (min-width: 1024px) {
  .applications__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .app__body { padding: 24px 26px 30px; }
}

/* ==========================================================================
   Structure / details
   ========================================================================== */
.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  list-style: none;
}

.detail {
  min-width: 0;
}

.detail__media {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  background: var(--photo);
}

.detail__media img {
  width: 100%;
  aspect-ratio: 1;
}

.detail__num {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 44px;
  padding: 6px 10px;
  border-bottom-right-radius: var(--radius);
  background: #fff;
  color: var(--blue-strong);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  letter-spacing: .02em;
}

.detail__title {
  margin-bottom: 4px;
  font-feature-settings: "palt";
  padding-top: 12px;
  border-top: 2px solid var(--blue);
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: .03em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.detail__text {
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .details { gap: 36px 24px; }
  .detail__title { font-size: 1.125rem; }
  .detail__text { font-size: .9375rem; }
}

@media (min-width: 1024px) {
  .details {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Specifications
   ========================================================================== */
.specs__layout {
  display: grid;
  gap: 28px;
}

.specs__figure {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  padding: 14px 14px 12px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.specs__figure img {
  width: 100%;
  border-radius: var(--radius);
}

.specs__figure figcaption {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: .8125rem;
  text-align: right;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: .9375rem;
  line-height: 1.6;
}

.spec-table thead th {
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: left;
}

.spec-table tbody th {
  width: 34%;
  padding: 13px 16px;
  background: var(--ice-2);
  border-bottom: 1px solid #fff;
  color: var(--navy);
  font-weight: 700;
  text-align: left;
  vertical-align: top;
}

.spec-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}

.spec-table tbody tr:last-child th {
  border-bottom-color: var(--ice-2);
}

.spec-table__note {
  color: var(--ink-3);
  font-size: .8125rem;
  font-feature-settings: "palt";
}

.specs__disclaimer {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.specs__action {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 28px;
}

.specs__action-note {
  color: var(--ink-3);
  font-size: .8125rem;
}

@media (max-width: 479.98px) {
  .spec-table { font-size: .875rem; }
  .spec-table thead th { padding: 9px 12px; }
  .spec-table tbody th { width: 36%; padding: 12px 10px 12px 12px; }
  .spec-table td { padding: 12px 12px; }
  .specs__action .btn { width: 100%; }
}

@media (min-width: 960px) {
  .specs__layout {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 48px;
    align-items: start;
  }

  .specs__figure {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-width: none;
    padding: 20px 20px 16px;
  }
}

@media (min-width: 1280px) {
  .specs__layout { gap: 64px; }
}

/* ==========================================================================
   Lineup
   ========================================================================== */
.lineup__list {
  display: grid;
  gap: 16px;
  list-style: none;
}

.model {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-2);
  border-radius: var(--radius-lg);
}

.model--standard {
  border-color: #c3d9e7;
  border-top-color: var(--blue-strong);
  background: linear-gradient(180deg, var(--ice-2) 0, #fff 96px);
  box-shadow: var(--shadow-card);
}

.model__name {
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: .06em;
}

.model__badge {
  position: absolute;
  top: 24px;
  right: 18px;
  padding: 1px 7px;
  border: 1px solid var(--blue-ink);
  border-radius: 2px;
  background: #fff;
  color: var(--blue-ink);
  font-size: .625rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .1em;
}

.model__spec {
  margin-top: 14px;
}

.model__spec > div {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.6;
}

.model__spec dt {
  color: var(--ink-3);
}

.model__spec dd {
  color: var(--navy);
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.model__spec .model__poles {
  align-items: center;
}

.model__poles dd {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.375rem;
  line-height: 1.3;
}

.pins {
  flex: none;
}

.pins rect {
  fill: var(--navy);
}

.pins .pins__body {
  fill: none;
  stroke: var(--navy);
  stroke-width: .7;
}

.lineup__note {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: .8125rem;
  text-align: right;
}

.consult-bar {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  padding: 22px 22px 24px;
  background: var(--ice);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.consult-bar__text {
  color: var(--ink-2);
  font-size: .9375rem;
}

.consult-bar__text strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 1.0625rem;
}

@media (min-width: 560px) {
  .lineup__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .consult-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 24px 32px;
  }
}

@media (min-width: 1024px) {
  .lineup__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

/* ==========================================================================
   Downloads
   ========================================================================== */
.downloads__list {
  display: grid;
  gap: 20px;
}

.doc {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-areas:
    "thumb head"
    "desc desc"
    "action action";
  align-items: center;
  gap: 16px 18px;
  padding: 22px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.doc__thumb { grid-area: thumb; }
.doc__head { grid-area: head; min-width: 0; }
.doc__desc { grid-area: desc; min-width: 0; }
.doc__action { grid-area: action; }

.doc__thumb img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgb(34 49 63 / .12);
}

.doc__type {
  margin-bottom: 4px;
  color: var(--blue-ink);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.doc__title {
  color: var(--navy);
  font-size: 1.1875rem;
  line-height: 1.5;
  letter-spacing: .04em;
}

.doc__text {
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.8;
}

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.7;
}

.doc__meta li + li::before {
  content: "｜";
  margin-inline: 4px;
  color: var(--line-2);
}

@media (min-width: 480px) {
  .doc {
    grid-template-columns: 136px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "thumb head"
      "thumb desc"
      "thumb action";
    align-items: start;
    gap: 12px 26px;
    padding: 28px;
  }

  .doc__desc { margin-bottom: 6px; }
}

@media (min-width: 960px) {
  .downloads__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1280px) {
  .doc {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px 32px;
    padding: 32px;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__list {
  display: grid;
  gap: 10px;
}

.qa {
  overflow: hidden;
  background: var(--ice);
  border: 1px solid var(--ice-3);
  border-radius: var(--radius-lg);
}

.qa__q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.qa__q::-webkit-details-marker {
  display: none;
}

.qa__q:hover {
  background: var(--ice-2);
}

.qa__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--navy);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.qa__mark--a {
  background: #fff;
  border: 1.5px solid var(--blue);
  color: var(--blue-ink);
}

.qa__text {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.qa__toggle {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 5px;
  color: var(--navy);
}

.qa__toggle::before,
.qa__toggle::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 4px;
  width: 14px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease;
}

.qa__toggle::after {
  transform: rotate(90deg);
}

.qa[open] .qa__toggle::after {
  transform: rotate(0deg);
}

.qa__a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 2px 18px 22px;
}

.qa__body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
  color: var(--ink-2);
  line-height: 1.85;
}

.qa__link {
  margin-top: 8px;
}

.qa__link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 4px;
}

.qa__link .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 399.98px) {
  .qa__q { gap: 10px; padding: 16px 14px; }
  .qa__a { gap: 10px; padding: 2px 14px 20px; }
}

@media (min-width: 768px) {
  .qa__q { padding: 22px 26px; font-size: 1.0625rem; }
  .qa__a { padding: 2px 26px 26px; }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta {
  background: var(--navy-band);
  color: #fff;
}

.cta__inner {
  display: grid;
  align-items: center;
  gap: 32px;
  padding-block: 64px;
}

.cta__title {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.375rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .05em;
  font-feature-settings: "palt";
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cta__text {
  max-width: 36em;
  color: rgb(255 255 255 / .86);
}

.cta__text + .cta__text {
  margin-top: 8px;
}

.cta__actions {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.cta__visual {
  display: none;
  justify-self: center;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: #fff;
}

.cta__visual img {
  border-radius: var(--radius);
}

.cta :focus-visible {
  outline-color: var(--focus-invert);
}

@media (min-width: 560px) {
  .cta__actions {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 900px) {
  .cta__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 64px;
    padding-block: 100px;
  }

  .cta__visual {
    display: block;
    width: min(100%, 400px);
    padding: 14px;
  }
}

/* ==========================================================================
   Contact（デモフォーム）
   ========================================================================== */
.form-card {
  padding: 24px 18px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.demo-note {
  display: grid;
  gap: 2px;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--ice-2);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.75;
}

.demo-note strong {
  color: var(--blue-ink);
  letter-spacing: .06em;
}

.form {
  display: grid;
  gap: 26px;
}

.form__grid {
  display: grid;
  gap: 26px;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0;
  color: var(--navy);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.5;
}

.badge {
  display: inline-block;
  padding: 0 7px;
  border-radius: 2px;
  background: var(--ice-2);
  color: var(--ink-3);
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .04em;
}

.badge--req {
  background: var(--blue-ink);
  color: #fff;
}

.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color .15s ease;
}

.input::placeholder {
  color: #6b7580;
  opacity: 1;
}

.input:hover {
  border-color: var(--navy);
}

.input:focus {
  border-color: var(--navy);
}

.input:focus-visible {
  outline-offset: 1px;
}

.input[aria-invalid="true"] {
  border-color: var(--error);
  background: #fff8f7;
}

.input--textarea {
  min-height: 168px;
  resize: vertical;
}

.field__hint {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.6;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  color: var(--error);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.6;
}

.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: .75rem;
  line-height: 1;
}

/* inquiry type */
.choices {
  display: grid;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.choice:hover {
  border-color: var(--navy);
}

.choice:has(input:checked) {
  border-color: var(--navy);
  background: var(--ice);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.choice__title {
  display: block;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.5;
}

.choice__desc {
  display: block;
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.6;
}

.field[aria-invalid="true"] .choice,
.field.is-invalid .choice,
.field.is-invalid .chip span {
  border-color: var(--error);
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  display: block;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.chip span::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--field-border);
  border-radius: 50%;
  background: #fff;
}

.chip:hover span {
  border-color: var(--navy);
}

.chip input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.chip input:checked + span::before {
  border-color: #fff;
  background: radial-gradient(circle, var(--navy) 0 3px, #fff 3.5px);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.form-errors {
  padding: 14px 16px;
  border: 1.5px solid var(--error);
  border-radius: var(--radius);
  background: #fff8f7;
  color: var(--error);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.6;
}

.form-errors ul {
  margin-top: 6px;
  padding-left: 1.2em;
  font-size: .875rem;
  font-weight: 500;
}

.form-errors a {
  color: inherit;
  text-underline-offset: 3px;
}

.form__submit {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.form__submit-note,
.form__noscript {
  color: var(--ink-3);
  font-size: .8125rem;
  text-align: center;
}

.form-done {
  padding: 20px 0 8px;
  text-align: center;
}

.form-done__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  color: var(--navy);
  stroke-width: 2.4;
}

.form-done__title {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: .04em;
}

.form-done__title:focus {
  outline: none;
}

.form-done__text {
  margin-bottom: 28px;
  color: var(--ink-2);
  line-height: 1.9;
}

@media (min-width: 560px) {
  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 768px) {
  .form-card { padding: 40px 48px 44px; }
}

#contact-title:focus {
  outline: none;
}

/* ==========================================================================
   Footer / Portfolio note
   ========================================================================== */
.site-footer {
  padding-top: 48px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer__top {
  display: grid;
  gap: 28px;
  padding-bottom: 36px;
}

.site-footer__brand img {
  width: 184px;
}

.site-footer__product {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: .875rem;
}

.site-footer__product strong {
  color: var(--navy);
}

.site-footer__nav {
  display: grid;
  gap: 14px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
  list-style: none;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  color: var(--navy);
  font-size: .875rem;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__links--sub a {
  color: var(--ink-2);
  font-size: .8125rem;
  letter-spacing: .04em;
}

.site-footer__links .icon {
  width: 17px;
  height: 17px;
}

.portfolio {
  display: grid;
  gap: 12px;
  padding: 22px 20px;
  background: var(--ice);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
}

.portfolio__label {
  justify-self: start;
  padding: 4px 12px;
  border: 1.5px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .18em;
}

.portfolio__text p {
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.9;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 18px 26px;
}

.site-footer__copy {
  color: var(--ink-3);
  font-size: .75rem;
}

.site-footer__totop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--navy);
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer__totop .icon {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 56px;
  }

  .site-footer__nav {
    justify-items: end;
  }

  .site-footer__links {
    justify-content: flex-end;
  }

  .portfolio {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding: 26px 30px;
  }
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  min-height: 60vh;
}

.notfound__text {
  margin: 20px 0 32px;
  color: var(--ink-2);
}
