/* =========================================================
   下層ページ（お問い合わせ・プライバシーポリシー）
   トップページの style.css（色・書体・ヘッダー・フッター）の上に重ねて使う。
   見出しの組み（小見出し＋大きな英字＋リード）、青の面、細い罫線、角丸 5 をトップと揃える
   ========================================================= */
:root {
  --page-ink: #0C1D29;
  --page-line: rgba(12, 29, 41, .14);
  --page-sub: #4A5A6B;
  --page-err: #C8322F;
}
.page { background: var(--mist); color: var(--page-ink); }
/* 下層ページではヘッダーを最初から出しておく */
.page .site-header { transform: none; visibility: visible; }

/* ---------- ページ見出し（トップの About と同じ紺→青のグラデーション）
   下端は青から本文の淡い色（--mist）まで、約 300px かけてなだらかに変え、境目の線を出さない。
   背景の罫線は About の下と同じマス目（縦横 106.93 間隔・白 20%）。上と下は薄く消す ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(184px + env(safe-area-inset-top, 0px)) 0 calc(96 * var(--u) + 460px); /* グラデーションを 120 のばす */
  /* 青 → 明るいグレーは、明るさの段差が出ないよう OKLab で色を混ぜ、ゆるい S 字に沿って 10 段で刻む */
  background: linear-gradient(180deg,
    #040f26 0%, #072b66 24%, #015BB4 48%,
    #0F5FB6 53.2%, #286BBC 58.4%, #437CC5 63.6%, #6091CE 68.8%, #80A7D9 74.0%, #9FBDE3 79.2%, #BCD1EB 84.4%, #D4E1F2 89.6%, #E5EDF6 94.8%, var(--mist) 100%);
  color: #fff;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  --g: max(56px, calc(106.93 * var(--u))); /* スマホでマス目が細かくなりすぎないよう、最小 56px */
  background:
    linear-gradient(90deg, rgba(237, 239, 242, .2) 0 1px, transparent 1px) calc(50% - 580.605 * var(--u)) 0 / var(--g) var(--g),
    linear-gradient(180deg, rgba(237, 239, 242, .2) 0 1px, transparent 1px) 0 calc(17 * var(--u)) / var(--g) var(--g);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 50%, transparent 74%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 50%, transparent 74%);
}
.page-in {
  position: relative;
  max-width: calc(1180 * var(--u) + 2 * max(16px, env(safe-area-inset-left, 0px)));
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.page-crumb { display: flex; gap: 10px; font-size: 12px; letter-spacing: .06em; opacity: .75; }
.page-crumb a:hover { text-decoration: underline; text-underline-offset: .3em; }
.page-eyebrow { margin-top: 58px; /* パンくずを外したぶん（約18）を足し、見出しの位置は変えない */ font-size: 14px; font-weight: 700; }
.page-title {
  margin-top: 14px;
  font-family: "Figtree", sans-serif; font-weight: 500;
  font-size: clamp(52px, calc(100 * var(--u)), 100px); line-height: 1.05; letter-spacing: .005em;
}
.page-lead { margin-top: 28px; max-width: none; /* 1行で見せる（入りきらない画面幅だけ自然に折り返す） */ font-size: 15px; line-height: 1.64; }

/* ---------- 本文の面 ---------- */
/* 本文のカードは見出しのグラデーションの下側に重ねて始め、面の切り替わりを感じさせない */
.page-body { position: relative; margin-top: -420px; padding: 0 0 120px; } /* 見出しを 120 のばしたぶん重ねを深くし、カードの位置は変えない */
.page-card {
  max-width: 980px; margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(20px, 6vw, 72px);
  background: #fff; border-radius: 5px;
  box-shadow: 0 2px 24px rgba(0, 40, 90, .06);
}

/* ---------- お問い合わせフォーム ---------- */
.form-note { font-size: 13px; line-height: 1.7; color: var(--page-sub); }
.req { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 3px; background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; vertical-align: 2px; }
.field { display: grid; grid-template-columns: 180px 1fr; gap: 12px 32px; padding: 28px 0; border-top: 1px solid var(--page-line); }
fieldset.field { margin: 0; min-inline-size: 0; border: 0; border-top: 1px solid var(--page-line); }
.form-note { margin-bottom: 32px; }
.field-label { padding-top: 13px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.field-body { min-width: 0; }
.field-hint { margin-top: 8px; font-size: 12px; color: var(--page-sub); }
.field-err { display: none; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--page-err); }
.field.is-invalid .field-err { display: block; }
.input, .textarea {
  width: 100%; padding: 13px 16px;
  font: inherit; font-size: 15px; color: var(--page-ink);
  background: #F5F8FC; border: 1px solid rgba(12, 29, 41, .16); border-radius: 5px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.textarea { min-height: 200px; line-height: 1.64; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9AA6B2; }
.input:focus, .textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 91, 180, .15); }
.field.is-invalid .input:not(.is-ok), .field.is-invalid .textarea { border-color: var(--page-err); background: #FFF7F7; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.name-row label { display: block; }
.name-row span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--page-sub); }

/* チェックボックス（お問い合わせ種別は 2 列。サービス番号を添える） */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid rgba(12, 29, 41, .14); border-radius: 5px; background: #F5F8FC; cursor: pointer; font-size: 14px; line-height: 1.5; transition: border-color .2s, background-color .2s; }
.check:hover { border-color: rgba(1, 91, 180, .5); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; position: relative; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid rgba(12, 29, 41, .35); border-radius: 4px; background: #fff; transition: background-color .2s, border-color .2s; }
.check-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s; }
.check input:checked + .check-box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .check-box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 3px rgba(1, 91, 180, .25); }
.check:has(input:checked) { border-color: var(--blue); background: #EEF5FD; }
.check-num { display: block; font-family: "Figtree", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--blue); }
.field.is-invalid .check { border-color: rgba(200, 50, 47, .45); }

/* 同意と送信 */
.agree-field { padding-top: 40px; border-top: 1px solid var(--page-line); }
.agree { display: flex; justify-content: center; }
.agree .check { background: none; border: 0; padding: 0; font-size: 14px; }
.agree a { text-decoration: underline; text-underline-offset: .3em; color: var(--blue); font-weight: 700; }
.agree a:hover { text-decoration-thickness: 2px; }
.agree-err { text-align: center; }
.submit-wrap { margin-top: 32px; text-align: center; }
.submit {
  min-width: 300px; padding: 20px 48px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .06em;
  background: var(--navy); color: #fff;
  transition: background-color .25s, opacity .25s;
}
.submit:hover:not(:disabled) { background: #0C1D29; }
.submit:disabled { cursor: not-allowed; opacity: .35; }
.submit-hint { margin-top: 14px; font-size: 12.5px; color: var(--page-sub); }

/* 送信後（デモのため実際には送らない） */
.done { text-align: center; padding: 24px 0; }
.done-mark { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--blue); position: relative; }
.done-mark::after { content: ""; position: absolute; left: 24px; top: 15px; width: 13px; height: 26px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.done h2 { margin-top: 28px; font-size: 22px; font-weight: 700; }
.done p { margin-top: 16px; font-size: 15px; line-height: 1.64; color: var(--page-sub); }
.done a { display: inline-block; margin-top: 32px; padding: 16px 40px; border-radius: 999px; border: 1px solid var(--navy); color: var(--navy); font-weight: 700; font-size: 14px; transition: background-color .25s, color .25s; }
.done a:hover { background: var(--navy); color: #fff; }

/* ---------- プライバシーポリシー ---------- */
.policy { font-size: 15px; line-height: 1.8; }
.policy > p { margin-top: 0; }
.policy h2 {
  display: flex; align-items: baseline; gap: 14px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--page-line);
  font-size: 19px; font-weight: 700; line-height: 1.5;
}
.policy h2 .num { font-family: "Figtree", sans-serif; font-weight: 500; font-size: 22px; color: var(--blue); }
.policy h3 { margin-top: 24px; font-size: 15px; font-weight: 700; }
.policy h2 + p, .policy h3 + p, .policy h2 + ol, .policy h3 + ol { margin-top: 12px; }
.policy p + p, .policy ol + p, .policy p + ol { margin-top: 12px; }
.policy ol { display: grid; gap: 6px; padding: 18px 22px; border-radius: 5px; background: #F5F8FC; }
.policy ol li { display: grid; grid-template-columns: 3.2em 1fr; }
.policy ol li > span { color: var(--blue); font-weight: 700; }
.policy-contact { margin-top: 16px; padding: 22px 24px; border-left: 3px solid var(--blue); background: #F5F8FC; }
.policy-contact strong { display: block; font-weight: 700; }
.policy-date { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--page-line); text-align: right; font-size: 14px; color: var(--page-sub); }


@media (max-width: 760px) {
  .page-hero { padding: calc(120px + env(safe-area-inset-top, 0px)) 0 260px; }
  .page-eyebrow { margin-top: 46px; font-size: 13px; }
  .page-lead { margin-top: 20px; font-size: 14px; }
  .page-body { margin-top: -210px; padding: 0 0 72px; }
  .field { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .field-label { padding-top: 0; }
  .checks { grid-template-columns: 1fr; }
  .submit { width: 100%; min-width: 0; }
  .policy { font-size: 14px; line-height: 1.75; }
  .policy h2 { margin-top: 40px; font-size: 17px; gap: 10px; }
  .policy h2 .num { font-size: 19px; }
  .policy ol { padding: 14px 14px; }
  .policy ol li { grid-template-columns: 2.8em 1fr; }
}
/* リード文は 1行に（文字の幅 約860px が入る 960px 以上の画面。それより狭い画面では自然に折り返す） */
@media (min-width: 960px) { .page-lead { white-space: nowrap; } }
