@charset "UTF-8";
/* ============================================================
   BeBest株式会社 コーポレートサイト
   ------------------------------------------------------------
   デザイン: Claude Design ハンドオフ「BeBest Corporate Site.html」
   採用バリアント: Light Hero + Mega Numbers Results
   ブレークポイント: 1200px (PC小) / 960px (タブレット) / 600px (スマホ)
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Brand — 値はブライトブルー系。--navy という名前は元デザインからの踏襲。 */
  --navy:        #0077b6;   /* プライマリ。見出し / テーブル見出し / ボタン */
  --navy-deep:   #003d66;   /* 最暗色。フッター背景 / Hero 見出し */
  --white:       #ffffff;
  --offwhite:    #f7fbfd;   /* フォーム入力欄の背景 */
  --lightgray:   #eaf6fc;   /* セクション交互背景 */
  --midgray:     #7a8b99;   /* メタ情報 / セクションラベル */
  --border:      #d6e8f2;
  --accent:      #00aaff;   /* CTA 背景 / 巨大数字 / モノスペース番号 */
  --accent-soft: #66ccff;   /* Hero 線画ビル / blob */
  --text:        #0e2433;
  --text-soft:   #475866;

  /* アクセント背景の上に載せる文字色。
     元デザインの #003d66 はコントラスト比 4.4:1 で WCAG AA に僅かに届かないため、
     ハンドオフの推奨（Open Items #8）に沿って #002a4a（5.7:1）へ微調整。 */
  --on-accent:   #002a4a;

  /* エラー */
  --error:       #c24545;
  --error-bg:    #fdf4f4;

  /* レイアウト */
  --header-h:    96px;      /* スクロール時のアンカー位置補正に使用 */
  --gutter:      48px;      /* セクション左右の余白 */
  --gutter-left: 76px;      /* 左端のサイドインデックスを避けるための左余白 */
}

/* ------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* 固定ヘッダーの下にセクション先頭が潜り込まないようにする */
  scroll-padding-top: var(--header-h);
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 和文のプロポーショナル詰め。外すと句読点まわりが間延びする。 */
  font-feature-settings: "palt" 1;
  text-wrap: pretty;
}

a {
  color: var(--navy);
  text-decoration-color: color-mix(in oklab, var(--navy) 35%, transparent);
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }

::selection { background: color-mix(in oklab, var(--accent) 25%, transparent); color: var(--navy-deep); }

img, svg, iframe { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

/* キーボード操作時のみフォーカスリングを出す */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 300;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* ------------------------------------------------------------
   3. HEADER
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 16px var(--gutter);
}

.logo {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { color: var(--navy); }
.logo .mark {
  height: 30px;
  width: auto;
  transition: opacity 0.2s ease;
}
/* Light Hero が既定のため、ヘッダーは常にネイビーマーク。
   白マークはフッター専用（および将来 Dark Hero に戻す場合の予備）。 */
.site-header .mark-white { display: none; }
.site-header .mark-navy  { display: block; }

/* --- ナビゲーション --- */
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 38px;
  align-items: stretch;
}
.primary-nav a {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--navy);
  text-transform: uppercase;
  transition: color 0.3s ease, opacity 0.2s ease, background 0.3s ease;
  /* インライン要素のままだと縦 padding が背景箱を広げず、2行目がはみ出す */
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  padding-bottom: 4px;
}
.primary-nav a .jp {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.65;
  text-transform: none;
  margin-top: 4px;
}
.primary-nav a:hover { opacity: 0.65; color: var(--navy); }

.primary-nav a.cta {
  background: var(--accent);
  color: var(--on-accent);
  padding: 11px 22px 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  align-items: center;
}
.primary-nav a.cta .jp { opacity: 0.8; color: inherit; }
.primary-nav a.cta:hover {
  opacity: 1;
  background: var(--navy);
  color: var(--white);
}

/* --- ハンバーガー --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 2;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   4. SIDE INDEX
   ------------------------------------------------------------ */
.side-index {
  position: fixed;
  left: 24px; top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side-index a {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--midgray);
  text-decoration: none;
  writing-mode: vertical-rl;
  padding: 10px 4px;
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.side-index a:hover { opacity: 1; }
.side-index a.active { opacity: 1; color: var(--navy); font-weight: 500; }

/* ------------------------------------------------------------
   5. HERO  (Light variant)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter) 0 var(--gutter-left);
  color: var(--text);
  background: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 80% 20%, rgba(102,204,255,0.35), transparent 60%),
    radial-gradient(ellipse 900px 700px at 10% 90%, rgba(204,238,255,0.6), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #eaf6fc 60%, #d6edf7 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,119,182,0.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg,  rgba(0,119,182,0.04) 0 1px, transparent 1px 80px);
}

.hero-buildings {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  z-index: 1;
  opacity: 0.7;
}
.hero-buildings svg { width: 100%; height: 100%; }

.hero-blob {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
}
.hero-blob.blob-1 {
  top: -120px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0,170,255,0.18) 0%, transparent 65%);
}
.hero-blob.blob-2 {
  bottom: -180px; left: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(102,204,255,0.22) 0%, transparent 65%);
}

.hero-watermark {
  position: absolute;
  right: -120px; bottom: -100px;
  width: min(720px, 70vw);
  height: auto;
  z-index: 1;
  opacity: 0.06;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 4;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 152px 0 120px 56px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 36px;
}
.hero-eyebrow::before {
  content: "";
  width: 48px; height: 1px;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 5.8vw, 84px);
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--navy-deep);
  margin-bottom: 36px;
  text-wrap: balance;
}
/* 元デザインでは accent (#00aaff) だったが、明るい背景の上でコントラスト 2.6:1 と
   判読性が低いため --navy (4.9:1) を採用。 */
.hero h1 .en {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: 0.25em;
  color: var(--navy);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 17px;
  line-height: 2;
  max-width: 580px;
  color: var(--text-soft);
  margin-bottom: 56px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px; right: var(--gutter);
  z-index: 5;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(0,61,102,0.55);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(0,61,102,0.55), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 36px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn .jp {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: none;
}
.btn:hover {
  background: color-mix(in oklab, var(--accent) 82%, var(--navy));
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in oklab, var(--accent) 32%, transparent);
}
.btn .arrow {
  width: 20px; height: 1px;
  background: currentColor;
  position: relative;
  flex: none;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(0,119,182,0.3);
}
.btn-outline:hover {
  background: rgba(0,119,182,0.06);
  color: var(--navy);
  box-shadow: none;
}

.btn[disabled], .btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

/* ------------------------------------------------------------
   7. SECTION SHARED
   ------------------------------------------------------------ */
/* 左余白は --gutter-left。サイドインデックスが表示される幅では本文を右に逃がす。 */
section {
  position: relative;
  padding: 160px var(--gutter) 160px var(--gutter-left);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 96px;
}
.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--midgray);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}
.section-label .num { color: var(--accent); font-weight: 500; }

.section-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.section-title .jp {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--midgray);
  margin-top: 18px;
}

/* ------------------------------------------------------------
   8. CONCEPT
   ------------------------------------------------------------ */
#concept { background: var(--white); }

.concept-grid {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.concept-subtitle {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.concept-body p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-soft);
}
.concept-body p + p { margin-top: 20px; }

.concept-image {
  grid-column: 2 / -1;
  margin-top: 80px;
  aspect-ratio: 16 / 7;
  position: relative;
  overflow: hidden;
  /* 写真が読み込めない場合はデザイン既定のストライプ地が透けて見える */
  background:
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(0,119,182,0.08) 16px 17px),
    var(--lightgray);
}
.concept-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* 読み込み失敗時は壊れた画像アイコンを出さず、上のストライプ地に委ねる */
.concept-image.img-failed img { display: none; }

/* ------------------------------------------------------------
   9. SERVICE
   ------------------------------------------------------------ */
#service { background: var(--lightgray); }

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 48px 36px 44px;
  position: relative;
  border-top: 3px solid var(--navy);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(26, 46, 90, 0.08);
}
.service-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 28px;
  display: block;
}
.service-icon {
  width: 56px; height: 56px;
  margin-bottom: 28px;
  color: var(--navy);
}
.service-card h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.5;
}
.service-card h3 .en {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--midgray);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.service-card .desc {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-soft);
  margin-bottom: 32px;
}
.service-card .more {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--navy);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.service-card .more::after {
  content: "→";
  transition: transform 0.2s ease;
}
.service-card:hover .more::after { transform: translateX(4px); }

/* ------------------------------------------------------------
   10. RESULTS  (Mega Numbers variant)
   ------------------------------------------------------------ */
#results {
  background: var(--white);
  color: var(--text);
  padding-top: 200px;
  padding-bottom: 200px;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.result-item {
  display: grid;
  grid-template-columns: 180px 1fr 280px;
  gap: 48px;
  align-items: baseline;
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.result-item:last-child { border-bottom: 1px solid var(--border); }

.result-item .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--midgray);
  text-transform: uppercase;
  align-self: center;
}
.result-item .num {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
}
.result-item .num .unit {
  font-size: 0.22em;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0;
  margin-left: 4px;
}
.result-item .num .num-text {
  font-size: 0.3em;
  line-height: 1.15;
  display: inline-block;
  letter-spacing: -0.01em;
  text-align: right;
}
.result-item .cap {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  align-self: center;
}

/* ------------------------------------------------------------
   11. COMPANY
   ------------------------------------------------------------ */
#company { background: var(--white); }

.company-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  align-items: start;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table tr { border-bottom: 1px solid var(--border); }
.company-table tr:first-child { border-top: 1px solid var(--border); }
.company-table th,
.company-table td {
  text-align: left;
  padding: 28px 0;
  font-size: 15px;
  vertical-align: top;
  line-height: 1.8;
}
.company-table th {
  width: 240px;
  font-weight: 600;
  color: var(--navy);
  font-family: "Noto Sans JP", sans-serif;
}
.company-table th .en {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--midgray);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.company-table td { color: var(--text-soft); }

.company-map {
  margin-top: 60px;
  aspect-ratio: 21 / 7;
  background: var(--lightgray);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.company-map iframe {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100%; height: 100%;
  filter: grayscale(0.15) contrast(0.95);
  transition: filter 0.4s ease;
}
.company-map:hover iframe { filter: none; }
.company-map .map-link {
  position: absolute;
  right: 16px; bottom: 16px;
  background: var(--white);
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  text-decoration: none;
  border: 1px solid var(--border);
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}
.company-map .map-link:hover { background: var(--navy); color: var(--white); }

/* ------------------------------------------------------------
   12. CONTACT
   ------------------------------------------------------------ */
#contact {
  background: var(--lightgray);
  padding-bottom: 80px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-intro {
  font-size: 15px;
  line-height: 2;
  color: var(--text-soft);
  margin-bottom: 32px;
}
.contact-meta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.contact-meta .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--midgray);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-meta .value {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.contact-meta .value .ph { background: var(--lightgray); padding: 2px 8px; }
.contact-meta .hours {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 6px;
}

/* --- フォーム --- */
.form {
  background: var(--white);
  padding: 56px 52px;
}
.field { margin-bottom: 28px; }
.field label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.field label .req {
  font-size: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 2px 7px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.field label .opt {
  font-size: 10px;
  background: var(--border);
  color: var(--text-soft);
  padding: 2px 7px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.field input,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--offwhite);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  border-radius: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.field textarea { min-height: 160px; resize: vertical; }

.field.error input,
.field.error textarea {
  border-color: var(--error);
  background: var(--error-bg);
}
.err-msg {
  display: none;
  color: var(--error);
  font-size: 12px;
  margin-top: 6px;
}
.field.error .err-msg { display: block; }

/* hCaptcha */
.field-captcha { margin-bottom: 24px; }
.hcaptcha-widget { min-height: 78px; }
.hcaptcha-widget:empty { min-height: 0; }

/* ハニーポット（視覚・支援技術の双方から隠す） */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-error {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
  font-size: 13px;
  line-height: 1.7;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.form-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.privacy {
  font-size: 12px;
  color: var(--midgray);
  flex: 1;
  min-width: 220px;
}
.privacy a { color: var(--navy); text-decoration: underline; }

.form .btn { background: var(--navy); color: var(--white); }
.form .btn:hover { background: var(--navy-deep); color: var(--white); }
.form .btn .btn-label { display: inline-flex; align-items: center; gap: 16px; }

.form-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.form-success.shown { display: block; }
.form-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
  font-size: 24px;
  font-weight: 700;
}
.form-success h3 {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.form-success p { color: var(--text-soft); font-size: 14px; }

/* ------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------ */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 60px var(--gutter) 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
footer .logo { color: var(--white); }
footer .logo:hover { color: var(--white); }
footer .logo .mark-white { display: block; }
footer .logo .mark-navy  { display: none; }

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--white); }

.copyright {
  width: 100%;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
}

/* ------------------------------------------------------------
   14. REVEAL ANIMATION
   ------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   15. RESPONSIVE
   ------------------------------------------------------------ */

/* --- PC小 / 横向きタブレット (≤1200px) --- */
@media (max-width: 1200px) {
  :root { --gutter: 40px; --gutter-left: 68px; }

  section { padding-top: 132px; padding-bottom: 132px; }
  #results { padding-top: 160px; padding-bottom: 160px; }
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .site-header.scrolled { padding-top: 14px; padding-bottom: 14px; }
  .hero-inner { padding-left: 40px; }
  .primary-nav ul { gap: 26px; }
  .section-head { grid-template-columns: 140px 1fr; gap: 28px; margin-bottom: 72px; }
  .concept-grid { grid-template-columns: 140px 1fr 1fr; gap: 40px; }
  .company-grid { grid-template-columns: 140px 1fr; gap: 40px; }
  .result-item { grid-template-columns: 140px 1fr 240px; gap: 32px; }
  .contact-grid { gap: 48px; }
  .form { padding: 44px 40px; }
  footer { padding-top: 56px; padding-bottom: 36px; }
}

/* --- タブレット縦 (≤960px)：ナビをオーバーレイ化、1カラムへ --- */
@media (max-width: 960px) {
  /* サイドインデックス非表示のため、左右の余白を揃える */
  :root { --header-h: 80px; --gutter: 24px; --gutter-left: 24px; }

  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .site-header.scrolled { padding-top: 14px; padding-bottom: 14px; }

  .menu-toggle { display: flex; }

  /* ナビゲーションをフルスクリーンオーバーレイに */
  .primary-nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
  }
  .primary-nav.open { opacity: 1; visibility: visible; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: min(340px, calc(100% - 48px));
  }
  .primary-nav a {
    color: var(--navy);
    font-size: 16px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .primary-nav a .jp { font-size: 11px; }
  .primary-nav a.cta {
    justify-content: center;
    align-items: center;
    border-bottom: none;
    margin-top: 16px;
    padding: 20px 22px;
  }
  body.nav-open { overflow: hidden; }

  .side-index { display: none; }

  section { padding-top: 100px; padding-bottom: 100px; }
  #results { padding-top: 100px; padding-bottom: 100px; }

  .hero-inner { padding: 120px 0 88px; }
  .hero-scroll { bottom: 24px; }
  .hero-watermark { right: -80px; bottom: -60px; width: 90vw; }

  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }

  .concept-grid { grid-template-columns: 1fr; gap: 32px; }
  .concept-grid .spacer { display: none; }
  .concept-image { grid-column: 1; margin-top: 20px; }

  .service-cards { grid-template-columns: 1fr; }

  .result-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 40px 0;
    align-items: start;
  }
  .result-item .num { justify-content: flex-start; }
  .result-item .num .num-text { text-align: left; }

  .company-grid { grid-template-columns: 1fr; gap: 32px; }
  .company-grid .spacer { display: none; }
  .company-table th { width: 140px; font-size: 13px; }
  .company-table td { font-size: 14px; }
  .company-map { aspect-ratio: 4 / 3; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form { padding: 36px 24px; }

  footer { padding-top: 48px; padding-bottom: 32px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-nav { justify-content: center; }
  .copyright { text-align: center; }
}

/* --- タブレット小 / 大型スマホ (≤768px) --- */
@media (max-width: 768px) {
  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td { display: block; width: 100%; }
  .company-table th { padding: 24px 0 6px; }
  .company-table td { padding: 0 0 24px; }
}

/* --- スマートフォン (≤600px) --- */
@media (max-width: 600px) {
  :root { --gutter: 20px; --gutter-left: 20px; }

  section { padding-top: 80px; padding-bottom: 80px; }
  #results { padding-top: 80px; padding-bottom: 80px; }

  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .site-header.scrolled { padding-top: 12px; padding-bottom: 12px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo .mark { height: 26px; }

  .hero { min-height: 640px; }
  .hero-inner { padding: 108px 0 80px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.2em; gap: 12px; margin-bottom: 28px; }
  .hero-eyebrow::before { width: 28px; }
  .hero h1 { margin-bottom: 28px; }
  .hero-sub { font-size: 15px; line-height: 1.9; margin-bottom: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-scroll { display: none; }

  .btn { padding: 18px 24px; justify-content: center; gap: 12px; font-size: 12px; }

  .section-title .jp { font-size: 13px; margin-top: 14px; }

  .service-card { padding: 36px 24px 32px; }
  .service-icon { width: 48px; height: 48px; margin-bottom: 22px; }

  .result-item { padding: 32px 0; }
  .result-item .num { font-size: clamp(64px, 22vw, 110px); }

  .company-map { aspect-ratio: 1 / 1; margin-top: 40px; }

  .contact-meta .value { font-size: 19px; }
  .form { padding: 28px 20px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form .btn { justify-content: center; }

  .footer-nav { gap: 20px; }
}

/* ------------------------------------------------------------
   16. MOTION / PRINT
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .side-index, .hero-scroll, .hero-blob,
  .menu-toggle, .form-actions, .company-map .map-link { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  section { padding: 32px 0; break-inside: avoid; }
  body { color: #000; }
}
