/* ==========================================================
   HIGH-ROAD 共通スタイル
   ----------------------------------------------------------
   ・色を変えたいときは、すぐ下の「1. 色と基本設定」だけ直せば
     サイト全体に反映されます。
   ・目次
     1. 色と基本設定      6. カード・一覧
     2. 土台              7. 各ページの部品
     3. ボタン            8. フォーム
     4. ヘッダー          9. フッター
     5. セクション共通   10. スマホ・タブレット対応
   ========================================================== */

/* ---------- 1. 色と基本設定（EDIT: 色はここで変える） ---------- */
:root {
  --navy: #10283F;        /* メインの色（ネイビー） */
  --ocean: #167D91;       /* サブの色（オーシャンブルー） */
  --bg: #F3F6F8;          /* 背景の色（ライトグレー） */
  --gold: #E5A84B;        /* アクセントの色（ゴールド） */
  --text: #1F2937;        /* 文字の色 */

  /* 上の5色から作った補助の色 */
  --navy-deep: #0B1D2F;
  --ocean-text: #116677;  /* 小さい文字用に少し濃くしたブルー */
  --ocean-soft: #E3F1F4;
  --gold-dark: #C98F33;
  --white: #FFFFFF;
  --muted: #566373;       /* 補足の文字 */
  --line: #D9E1E8;        /* 枠線 */
  --error: #B42318;       /* 入力エラー */

  --font-head: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(16, 40, 63, 0.08);
  --container: 1160px;
  --header-h: 72px;
}

/* ---------- 2. 土台 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

a { color: var(--ocean-text); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

/* キーボードで操作したときに、今どこにいるかを見せる枠 */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 画面には出さず、読み上げソフトにだけ伝える文字 */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* キーボード利用者が本文へ飛ぶためのリンク（Tabキーで現れる） */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- 3. ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }

/* いちばん目立たせるボタン（ゴールド） */
.btn--primary { background: var(--gold); color: var(--navy-deep); }
.btn--primary:hover { background: var(--gold-dark); color: var(--navy-deep); }

/* 濃い背景の上に置く、枠だけのボタン */
.btn--outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }

/* 白い背景の上に置く、枠だけのボタン */
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1.08rem; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; }

.btn[disabled],
.btn[aria-disabled="true"] {
  background: #C9D2DA;
  color: #5B6676;
  cursor: not-allowed;
  transform: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 4. ヘッダー（中身は js/layout.js が入れる） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.logo svg { width: 38px; height: 38px; flex: none; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a:not(.btn) {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
}
.nav a:not(.btn):hover { background: var(--bg); }
.nav a[aria-current="page"]:not(.btn) {
  color: var(--ocean-text);
  box-shadow: inset 0 -2px 0 var(--ocean);
  border-radius: 0;
}
.nav .nav-cta { margin-left: 10px; }

/* スマホ用のメニューボタン（三本線）。パソコン幅では隠す */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* JavaScript が動かない環境向けの、予備のメニュー */
.noscript-nav { padding: 12px 24px; background: var(--bg); font-size: 0.95rem; }
.noscript-nav a { margin-right: 14px; }

/* ---------- 5. セクション共通 ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg); }
.section--navy { background: var(--navy); color: #DCE6EE; }
.section--navy h2,
.section--navy h3 { color: var(--white); }

/* 見出しの上に付ける小さなラベル */
.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean-text);
}
.section--navy .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }
.section--navy .lead { color: #C3D2DE; }

/* スクロールでふわっと出す動き（控えめ）。js/layout.js が is-visible を付ける */
html.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 6. カード・一覧 ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  background: var(--ocean-soft);
  color: var(--ocean-text);
  border-radius: 12px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* 文章と画像を左右に並べる */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.media-frame {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* チェックマーク付きの箇条書き */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 0 0 18px 34px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ocean) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.check-list strong { display: block; color: var(--navy); font-family: var(--font-head); }

/* 対応メーカーのカード */
.brand-card { position: relative; padding-top: 30px; }
.brand-card h3 { margin-bottom: 6px; font-size: 1.3rem; }
.brand-card .brand-sub { margin-bottom: 12px; color: var(--muted); font-size: 0.95rem; }
.tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--muted);
}
.tag--primary { background: var(--gold); color: var(--navy-deep); }
.tag--planned { background: var(--ocean-soft); color: var(--ocean-text); }
.brand-card--primary { border-top: 4px solid var(--gold); }

/* よくある質問（クリックで開く） */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  padding: 22px 48px 22px 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ocean);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 48px 22px 4px; color: var(--muted); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 7. 各ページの部品 ---------- */

/* HOME のメインビジュアル
   EDIT: 写真に差し替えるときは、下の url(...) のファイル名を変える */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(78vh, 720px);
  padding: 96px 0;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(11, 29, 47, 0.94) 0%, rgba(16, 40, 63, 0.80) 48%, rgba(22, 125, 145, 0.35) 100%),
    url("../images/hero-placeholder.svg") center / cover no-repeat,
    var(--navy);
}
.hero h1 { max-width: 13em; margin-bottom: 20px; color: var(--white); }
.hero h1 span { white-space: nowrap; }
.hero h1 .accent { color: var(--gold); }
.hero .hero-sub { max-width: 34em; margin-bottom: 34px; font-size: 1.2rem; color: #DCE6EE; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.95rem;
  color: #C9D8E3;
}
.hero-points li { position: relative; padding-left: 18px; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* HOME 以外のページの、上部の帯 */
.page-hero {
  padding: 76px 0 68px;
  color: #DCE6EE;
  background:
    linear-gradient(100deg, rgba(11, 29, 47, 0.96) 0%, rgba(16, 40, 63, 0.86) 55%, rgba(22, 125, 145, 0.5) 100%),
    url("../images/hero-placeholder.svg") center / cover no-repeat,
    var(--navy);
}
.page-hero h1 { margin-bottom: 16px; color: var(--white); font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero p { max-width: 42em; margin: 0; font-size: 1.12rem; }

/* HOME の「調達の流れ」5ステップ（短い版） */
.steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps-row li {
  position: relative;
  padding: 26px 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}
.steps-row li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ocean);
}
.steps-row strong { display: block; margin-bottom: 6px; font-family: var(--font-head); color: var(--navy); line-height: 1.3; }
.steps-row span { font-size: 0.93rem; color: var(--muted); line-height: 1.55; display: block; }

/* HOW IT WORKS の5ステップ（くわしい版・縦の図） */
.timeline { max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding-bottom: 36px;
}
.timeline > li::before {            /* 番号をつなぐ縦の線 */
  content: "";
  position: absolute;
  left: 35px; top: 72px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::before { display: none; }
.timeline-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  line-height: 1;
}
.timeline-num small { font-size: 0.6rem; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 3px; }
.timeline-num b { font-size: 1.5rem; font-weight: 800; }
.timeline-body {
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline-body h3 { font-size: 1.35rem; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.who div { padding: 14px 16px; background: var(--bg); border-radius: 8px; font-size: 0.95rem; }
.who b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocean-text);
}

/* 注意書きの枠（保証しないこと、案件ごとに確認すること など） */
.notice {
  padding: 26px 28px;
  background: #FFF8EC;
  border: 1px solid #F0D9AE;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}
.notice h2, .notice h3 { font-size: 1.2rem; margin-bottom: 10px; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice--info { background: var(--ocean-soft); border-color: #BFDDE3; border-left-color: var(--ocean); }

/* Kawasaki ULTRA を強調する枠 */
.feature-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 52px;
  border-radius: 16px;
  color: #DCE6EE;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, #14506A);
}
.feature-band h2 { color: var(--white); }
.feature-band .pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature-band .pill-list li {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}
.feature-band .panel { padding: 28px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; }
.feature-band .panel h3 { color: var(--gold); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.feature-band .panel ul { margin: 0; padding-left: 1.1em; }
.feature-band .panel li { margin-bottom: 6px; }

/* 表（対応メーカー、会社情報） */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.data-table th, .data-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table thead th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.data-table tbody th { width: 30%; font-family: var(--font-head); color: var(--navy); }

/* まだ決まっていない情報（あとで書き換える場所） */
.is-placeholder { color: var(--muted); font-style: italic; }

/* ページ下部の、依頼へ誘導する帯 */
.cta-band {
  padding: 80px 0;
  text-align: center;
  color: #DCE6EE;
  background:
    linear-gradient(180deg, rgba(11, 29, 47, 0.93), rgba(16, 40, 63, 0.90)),
    url("../images/hero-placeholder.svg") center bottom / cover no-repeat,
    var(--navy);
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { max-width: 36em; margin: 0 auto 30px; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }

/* 文章中心のページ（プライバシーポリシーなど） */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2em; font-size: 1.45rem; }
.prose li { margin-bottom: 0.4em; }

/* 404 ページ */
.not-found { padding: 120px 0; text-align: center; }
.not-found .code { font-family: var(--font-head); font-size: 5rem; font-weight: 800; line-height: 1; color: var(--ocean); margin-bottom: 12px; }
.not-found .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- 8. フォーム（REQUEST A PART） ---------- */
.request-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.request-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.request-aside .quote {
  margin: 0 0 28px;
  padding: 0 0 0 20px;
  border-left: 4px solid var(--gold);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
}

.form {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.form fieldset { margin: 0 0 32px; padding: 0; border: 0; }
.form legend {
  width: 100%;
  margin-bottom: 18px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.97rem; color: var(--navy); }
.req { color: var(--error); margin-left: 2px; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.hint { margin: 6px 0 0; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #B8C4CF;
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  font-size: 1rem;       /* 16px以上にして、スマホで勝手に拡大されないようにする */
  color: var(--text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input[type="file"] { width: 100%; font: inherit; font-size: 0.95rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(22, 125, 145, 0.35);
  outline-offset: 0;
  border-color: var(--ocean);
}
.field [aria-invalid="true"] { border-color: var(--error); background: #FFF6F5; }
.field-error { margin: 6px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--error); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--ocean); }
.consent label { font-size: 0.97rem; }

/* フォームがまだつながっていないことを知らせる枠 */
.form-notice {
  margin-bottom: 28px;
  padding: 18px 20px;
  background: #FFF8EC;
  border: 1px solid #F0D9AE;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  font-size: 0.97rem;
}
.form-notice strong { display: block; margin-bottom: 4px; font-family: var(--font-head); color: var(--navy); }
.form-notice p { margin: 0; }

/* 送信の結果や、入力まちがいのまとめを出す場所 */
.form-status:empty { display: none; }
.form-status {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.form-status--error { background: #FFF1F0; border: 1px solid #F3B8B2; color: var(--error); }
.form-status--success { background: #ECF8F1; border: 1px solid #A9DBBF; color: #17603A; }

.form-actions { margin-top: 28px; }
.form-actions .btn { width: 100%; }
.form-actions .hint { text-align: center; margin-top: 12px; }

/* ---------- 9. フッター（中身は js/layout.js が入れる） ---------- */
.site-footer { padding: 64px 0 28px; background: var(--navy-deep); color: #B9C8D5; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.site-footer .logo { color: var(--white); margin-bottom: 16px; }
.site-footer h2 {
  margin-bottom: 14px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #DCE6EE; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .is-placeholder { color: #A9BAC8; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  line-height: 1.6;
  color: #93A6B6;
}
.footer-bottom p { margin: 0 0 8px; }

/* ---------- 10. スマホ・タブレット対応 ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .feature-band { grid-template-columns: 1fr; padding: 40px; }
  .request-layout { grid-template-columns: 1fr; }
  .request-aside { position: static; }
}

@media (max-width: 860px) {
  /* メニューを三本線ボタンに切り替える */
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    padding: 12px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16, 40, 63, 0.12);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a:not(.btn) { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--bg); }
  .nav a[aria-current="page"]:not(.btn) { box-shadow: inset 3px 0 0 var(--ocean); padding-left: 14px; }
  .nav .nav-cta { margin: 14px 0 0; }
  .nav .nav-cta .btn { width: 100%; min-height: 52px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 0; padding: 72px 0 64px; }
  .hero .hero-sub { font-size: 1.08rem; }
  .who { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .grid-4, .steps-row { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .hero-points { flex-direction: column; }
  .timeline > li { grid-template-columns: 52px 1fr; gap: 14px; }
  .timeline > li::before { left: 25px; top: 52px; }
  .timeline-num { width: 52px; height: 52px; }
  .timeline-num small { display: none; }
  .timeline-num b { font-size: 1.2rem; }
  .timeline-body { padding: 20px; }
  .feature-band { padding: 28px 22px; }
  .form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .data-table th, .data-table td { padding: 12px 14px; }
  .data-table tbody th { width: 38%; }
  .cta-band { padding: 60px 0; }
  .not-found { padding: 80px 0; }
}

/* 端末で「動きを減らす」設定にしている人には、動きを出さない */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
