/* Simptech 次期サイト — 共通スタイル
   ブランド色は実サイトから採取: 黄 #F2C800 / 文字 #333 / 紺 #024286 */

:root {
  --yellow: #f2c800;
  --ink: #333333;
  --ink-strong: #111111;
  --navy: #024286;
  --gray: #6c6c6c;
  --line: #e6e6e6;
  --bg-soft: #f7f7f5;
  --max: 1120px;
  --pad: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 固定ヘッダー(68px)の下にアンカー先が潜らないように */
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yellow);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav a {
  text-decoration: none;
  color: #000;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}

.nav a:hover { border-color: #000; }

/* ハンバーガー（640px以下でのみ表示） */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px var(--pad);
  color: #fff;
  background:
    radial-gradient(120% 90% at 50% 0%, #3a3a3a 0%, #1a1a1a 55%, #0d0d0d 100%);
  overflow: hidden;
}

.hero::after {
  /* うっすら斜めのハイライト（画像差し替えまでの仮） */
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.05) 50%, transparent 58%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(26px, 4.6vw, 52px);
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero h1 .rule {
  display: block;
  width: min(560px, 78%);
  height: 4px;
  margin: 22px auto 0;
  background: var(--yellow);
}

.hero p {
  position: relative;
  margin: 20px 0 0;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 500;
  opacity: .92;
}

/* ---------- セクション共通 ---------- */

section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }

.sec-head {
  text-align: center;
  margin-bottom: 48px;
}

.sec-head .en {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gray);
}

.sec-head h2 {
  margin: 10px 0 0;
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--ink-strong);
  letter-spacing: 0.02em;
}

.sec-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--yellow);
  margin: 16px auto 0;
}

.lead {
  text-align: center;
  margin: 0 auto;
  max-width: 44em;
}

.note {
  margin: 28px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--gray);
}

/* ---------- お取引実績（社名） ---------- */

.clients { padding-bottom: 72px; }

.client-grid {
  --cols: 4;
  --gap: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-grid li {
  /* 段が変わっても箱幅は一定。端数の段は中央寄せ */
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 16px 10px;
  text-align: center;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  font-size: clamp(14px, 1.7vw, 19px);
  letter-spacing: 0.02em;
  color: var(--ink-strong);
}

/* ---------- 数字 ---------- */

.numbers {
  background: var(--ink-strong);
  color: #fff;
}

.numbers .sec-head h2 { color: #fff; }
.numbers .sec-head .en { color: rgba(255,255,255,.6); }

.num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.num-grid .item {
  padding: 28px 16px;
}

.num-grid .label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.72);
}

.num-grid .value {
  display: block;
  margin-top: 10px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--yellow);
}

.num-grid .unit {
  font-size: .5em;
  font-weight: 700;
  margin-left: 2px;
}

.num-grid .sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
}

/* ---------- About ---------- */

.about { text-align: center; }

.about .brandline {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gray);
  margin: 0;
}

.about .brandline b { color: var(--ink-strong); }

.about h2 {
  margin: 18px 0 0;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
}

.about h2 mark {
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  color: inherit;
  padding: 0 .1em;
}

.about .body {
  margin: 36px auto 0;
  max-width: 40em;
  text-align: left;
}

.about .body p { margin: 0 0 1.1em; }
.about .body p:last-child { margin-bottom: 0; font-weight: 700; }

/* ---------- サービス ---------- */

.svc-list {
  display: grid;
  gap: 20px;
}

.svc {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
}

.svc h3 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 800;
  color: var(--ink-strong);
}

.svc .target {
  display: inline-block;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.svc p.desc {
  margin: 14px 0 0;
  max-width: 46em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 13px 26px;
  border: 1.5px solid var(--ink-strong);
  background: #fff;
  color: var(--ink-strong);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.btn:hover { background: var(--ink-strong); color: #fff; }

.btn.solid {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
}

.btn.solid:hover { background: #000; border-color: #000; color: #fff; }

/* ---------- 事例 ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case {
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink-strong);
}

.case .name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-strong);
}

.case p.what {
  margin: 12px 0 0;
  font-size: 14.5px;
}

.center { text-align: center; }
.mt40 { margin-top: 40px; }

/* ---------- MISSION / VISION ---------- */

.mission {
  background: var(--ink-strong);
  color: #fff;
  text-align: center;
}

.mv + .mv { margin-top: 56px; }

.mv .en {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--yellow);
}

.mv .ja {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.66);
}

.mv p {
  margin: 18px auto 0;
  max-width: 30em;
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.75;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--yellow);
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: #000;
}

.cta p { margin: 14px 0 30px; color: #3a3200; }

.cta .btn {
  background: #000;
  border-color: #000;
  color: #fff;
  padding: 16px 40px;
}

.cta .btn:hover { background: #fff; color: #000; }

/* ---------- フッター ---------- */

.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,.72);
  padding: 56px 0 40px;
  font-size: 13.5px;
}

.site-footer .fnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 12.5px;
}

.site-footer .fnav a { text-decoration: none; color: rgba(255,255,255,.85); }
.site-footer .fnav a:hover { color: var(--yellow); }

.site-footer .company { color: #fff; font-weight: 800; font-size: 15px; }
.site-footer .biz { margin: 6px 0 0; }
.site-footer .addr { margin: 6px 0 0; }

.site-footer .copy {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* ==========================================================
   下層ページ用
   ========================================================== */

/* ---------- ページ見出し帯 ---------- */

.page-head {
  padding: 76px 0 64px;
  background: var(--ink-strong);
  color: #fff;
  text-align: center;
}

.page-head .en {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--yellow);
}

.page-head h1 {
  margin: 12px 0 0;
  font-size: clamp(23px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-head .sub {
  margin: 20px auto 0;
  max-width: 40em;
  font-size: clamp(14px, 1.6vw, 16.5px);
  color: rgba(255,255,255,.82);
}

/* パンくず */

.crumb {
  padding: 14px 0;
  font-size: 12.5px;
  color: var(--gray);
  border-bottom: 1px solid var(--line);
}

.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin: 0 8px; opacity: .55; }

/* 直後のセクションが黒いページ用（白い帯が挟まって見えるのを防ぐ） */
.crumb.on-dark {
  background: var(--ink-strong);
  color: rgba(255,255,255,.6);
  border-bottom-color: rgba(255,255,255,.14);
}

.crumb.on-dark a { color: rgba(255,255,255,.8); }

/* ---------- メリット（番号つき3枚） ---------- */

.merits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: merit;
}

.merit {
  position: relative;
  padding: 34px 26px 30px;
  background: #fff;
  border: 1px solid var(--line);
  counter-increment: merit;
}

.merit::before {
  content: "0" counter(merit);
  display: block;
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: -0.02em;
}

.merit p {
  margin: 0;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink-strong);
  line-height: 1.8;
}

/* ---------- 箇条書き（こんな会社へ 等） ---------- */

.bullets {
  max-width: 46em;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink-strong);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 27px;
  width: 10px;
  height: 10px;
  background: var(--yellow);
}

/* ---------- 本文（長文） ---------- */

.prose {
  max-width: 42em;
  margin: 0 auto;
}

.prose p { margin: 0 0 1.3em; }
.prose p:last-child { margin-bottom: 0; }

.prose h3 {
  margin: 2em 0 .8em;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-strong);
}

.prose .quote {
  margin: 0 0 1.6em;
  padding: 18px 22px;
  background: var(--bg-soft);
  border-left: 4px solid var(--yellow);
  font-size: 14.5px;
  color: var(--gray);
}

/* ---------- サービスの流れ ---------- */

.flow {
  max-width: 46em;
  margin: 0 auto;
  counter-reset: step;
}

.flow .step {
  position: relative;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  counter-increment: step;
}

.flow .step + .step { margin-top: 34px; }

.flow .step + .step::before {
  /* 下向きの矢印 */
  content: "";
  position: absolute;
  left: 50%;
  top: -25px;
  width: 2px;
  height: 16px;
  background: #c9c9c9;
}

.flow .step + .step::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #c9c9c9;
}

.flow .step h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink-strong);
}

.flow .step h3::before {
  content: "STEP " counter(step);
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gray);
}

.flow .step p { margin: 10px 0 0; font-size: 14.5px; }

.flow .goal {
  margin-top: 34px;
  padding: 20px;
  text-align: center;
  font-weight: 800;
  color: #000;
  background: var(--yellow);
}

/* ---------- タグ（対応ツール・手配領域） ---------- */

.tag-block + .tag-block { margin-top: 30px; }

.tag-block .label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gray);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-strong);
}

/* ---------- 事例（実績ページの詳細） ---------- */

.case-full + .case-full {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.case-full .name {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 800;
  color: var(--ink-strong);
}

.case-full .what {
  margin: 10px 0 26px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.voice {
  margin: 28px 0 0;
  padding: 26px 28px;
  background: var(--bg-soft);
  border-left: 4px solid var(--yellow);
}

.voice .who {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-strong);
}

.voice .who small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 3px;
}

.voice p { margin: 0; font-size: 14.5px; }

/* ---------- 会社概要テーブル ---------- */

.info-table {
  width: 100%;
  max-width: 46em;
  margin: 0 auto;
  border-collapse: collapse;
  text-align: left;
}

.info-table th,
.info-table td {
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 15px;
}

.info-table th {
  width: 30%;
  font-weight: 800;
  color: var(--ink-strong);
  white-space: nowrap;
}

.info-table td { font-weight: 500; }

/* ---------- 経歴 ---------- */

.history {
  max-width: 42em;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.history li {
  position: relative;
  padding: 0 0 26px 30px;
  border-left: 2px solid var(--line);
}

.history li:last-child { padding-bottom: 0; border-left-color: transparent; }

.history li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border: 2px solid #fff;
  border-radius: 50%;
}

.history .year {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.history p { margin: 6px 0 0; font-size: 14.5px; }

/* ---------- フォーム ---------- */

.form { max-width: 42em; margin: 0 auto; }

.field { margin-bottom: 28px; }

.field > label,
.field > .lbl {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-strong);
}

.req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--yellow);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}

.opt {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 16px; /* iOSで拡大されないように16px以上 */
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}

.field textarea { min-height: 190px; resize: vertical; line-height: 1.8; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink-strong);
  box-shadow: 0 0 0 3px rgba(242,200,0,.4);
}

.field .hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--gray);
}

.field .hint a { color: var(--navy); }

.files { display: grid; gap: 10px; }

/* ブラウザ既定のファイル選択ボタンはラベルが出ない環境があるので使わず、
   input を隠して label を自前のボタンにする（表示は全ブラウザで同じになる） */

.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 13px;
  border: 1px dashed #c2c2c2;
  background: #fff;
}

.file-row input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.file-btn {
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 1px solid var(--ink-strong);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-strong);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.file-btn:hover { background: var(--ink-strong); color: #fff; }

/* キーボード操作でも選択できるように、input にフォーカスが来たら枠を出す */
.file-row input[type="file"]:focus-visible + .file-btn {
  outline: 3px solid rgba(242,200,0,.85);
  outline-offset: 2px;
}

.file-name {
  font-size: 13.5px;
  color: var(--gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name.has-file { color: var(--ink-strong); font-weight: 700; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-strong);
  cursor: pointer;
}

.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: #000; }

.form .submit {
  margin-top: 32px;
  text-align: center;
}

.form button[type="submit"] {
  min-width: 260px;
  padding: 18px 40px;
  border: 0;
  background: var(--ink-strong);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .15s;
}

.form button[type="submit"]:hover { background: var(--navy); }

/* 送信先が未確定のあいだ出す注意書き（公開前に消す） */
.form-notice {
  max-width: 42em;
  margin: 0 auto 36px;
  padding: 18px 22px;
  background: #fff8dc;
  border: 1px solid #e5cf6a;
  font-size: 14px;
}

.form-notice b { color: var(--ink-strong); }

/* ---------- 規約・要件ページ ---------- */

.legal { max-width: 46em; margin: 0 auto; font-size: 15px; }

.legal h2 {
  margin: 2.2em 0 .7em;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-strong);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow);
}

.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 1.1em; }
.legal p:last-child { margin-bottom: 0; }

.legal .box {
  margin: 0 0 1.1em;
  padding: 16px 20px;
  background: var(--bg-soft);
  font-size: 14px;
}

.legal .box b { color: var(--ink-strong); }

/* 拡張子一覧 */

.ext-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.ext-grid .g {
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.ext-grid .g .t {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-strong);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* 拡張子は1つずつを要素にして折り返す。
   テキストの折り返しに任せると「.p / ptx」と割れたり、はみ出したりする */
.ext-grid .g .list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--gray);
}

.ext-grid .g .list li { white-space: nowrap; }

/* ---------- レスポンシブ ---------- */

@media (max-width: 900px) {
  .client-grid { --cols: 2; }
  .num-grid { grid-template-columns: 1fr; gap: 0; }
  .num-grid .item + .item { border-top: 1px solid rgba(255,255,255,.14); }
  .case-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 20px; }
  .svc .btn { justify-self: start; }
  .merits { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { min-height: 54vh; padding: 72px var(--pad); }

  .nav-toggle { display: block; }

  /* ナビはヘッダー下に開くパネルになる */
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--pad) 14px;
    background: var(--yellow);
    border-top: 1px solid rgba(0,0,0,.12);
    box-shadow: 0 12px 20px rgba(0,0,0,.12);
    font-size: 14px;
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 14px 2px;
    border-bottom: 1px solid rgba(0,0,0,.12);
  }

  .nav a:last-child { border-bottom: 0; }
  .nav a:hover { border-color: rgba(0,0,0,.12); }

  .page-head { padding: 56px 0 48px; }

  /* 会社概要テーブルは縦積みにする */
  .info-table th,
  .info-table td { display: block; width: auto; }
  .info-table th { padding: 18px 8px 4px; border-bottom: 0; }
  .info-table td { padding: 0 8px 18px; }

  .form button[type="submit"] { width: 100%; min-width: 0; }
}
