/* ==========================================================
   株式会社ラプテージ
   ロゴ：深緑 #0F3D2E＋iの点の明るい緑
   サイト：GoFundMe寄りの明るい緑 #02A95C を面に、少し深い緑 #007A47 を文字・ボタンに
   斜めの角度はロゴのTの縦画と同じ75°
   ========================================================== */

:root {
  color-scheme: light; /* 端末がダークモードでも、入力欄やスクロールバーを明るいまま表示する */
  --logo: #0F3D2E;   /* ロゴ本体の色（固定） */
  --bright: #02A95C; /* サイトの主役の緑：帯・線・アクセント */
  --forest: #007A47; /* 文字・ボタン・フッター用（白文字が読める濃さ） */
  --ink: #2B3139;
  --muted: #5D6B64;
  --line: #D6E6DC;
  --paper: #FFFFFF;
  --mist: #F2F8F4;
  --tint: #E3F5EA; /* 会社概要の背景（淡い緑） */
  --error: #B4441B; /* 送信エラーの表示 */

  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  --wrap: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
  --slant: 0.268; /* tan(15°)：75°の斜めを作る係数 */
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

/* 明朝の見出し・項目名は、かなを字幅に合わせて詰める（プロポーショナル詰め） */
.hero h1,
.section-title,
.service h3,
.brand-name,
.nav a,
.cta,
.submit,
.company-table th,
.field label {
  font-family: var(--serif);
  font-feature-settings: "palt";
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- ロゴ ---------- */

.brand {
  --dot: var(--bright);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--logo);
  text-decoration: none;
}
.brand-mark { width: 52px; height: 32px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
}
.brand--light { color: #FFFFFF; --dot: #9BEBBE; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  background: linear-gradient(var(--bright), var(--bright)) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.25s ease;
}
.nav a:hover { background-size: 100% 1.5px; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 12vw, 140px);
}
.hero-inner { position: relative; z-index: 1; }

/* ロゴを淡い緑で大きく敷き、右端は画面の外へ見切れさせる */
.hero-mark {
  --dot: var(--bright);
  position: absolute;
  z-index: 0;
  left: calc(50% - 120px);
  top: clamp(64px, 8vw, 110px);
  width: min(1180px, 88vw);
  height: auto;
  aspect-ratio: 858 / 503;
  color: var(--tint);
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.55;
  letter-spacing: 0.05em;
  color: var(--forest);
  word-break: auto-phrase;
}
.lead {
  word-break: auto-phrase;
  margin: 32px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.cta,
.submit {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 40px;
  background: var(--forest);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.cta,
.submit { transition: background-color 0.2s ease, transform 0.1s ease; }
.cta:hover,
.submit:hover { background: #00864D; } /* 白文字とのコントラスト 4.5:1 以上 */
.cta:active,
.submit:active { transform: translateY(1px); }

/* 名刺と同じ深緑の帯。左端をロゴと同じ75°で切り、明るい緑の細帯を添える */
.hero-band {
  --h: clamp(40px, 6vw, 64px);
  --x: 32px; /* ほぼ画面の左端から右端まで。左端だけ斜めに切る */
  position: relative;
  z-index: 1;
  height: var(--h);
  margin-top: clamp(72px, 10vw, 120px);
}
.hero-band::before,
.hero-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
}
.hero-band::after {
  left: var(--x);
  right: 0;
  background: var(--bright);
  clip-path: polygon(calc(var(--h) * var(--slant)) 0, 100% 0, 100% 100%, 0 100%);
}
.hero-band::before {
  left: calc(var(--x) - 18px);
  width: calc(10px + var(--h) * var(--slant));
  background: var(--logo);
  clip-path: polygon(calc(var(--h) * var(--slant)) 0, 100% 0, calc(100% - var(--h) * var(--slant)) 100%, 0 100%);
}

/* ページを開いたときに1回だけ：
   ロゴがTの斜めと同じ向きにすっと上がり、帯が左から右へ斜めの端ごと走り込む。
   見出しや文章は最初から表示したまま動かさない */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark {
    animation: mark-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-band::after {
    animation: band-in 0.9s 0.3s cubic-bezier(0.3, 0.8, 0.2, 1) both;
  }
  .hero-band::before {
    animation: slash-in 0.5s 1.05s ease-out both;
  }
}
@keyframes mark-in {
  from { opacity: 0; transform: translate(-16px, 60px); } /* 75°の向き */
  to   { opacity: 1; transform: none; }
}
@keyframes band-in {
  from { clip-path: polygon(calc(var(--h) * var(--slant)) 0, calc(var(--h) * var(--slant)) 0, 0 100%, 0 100%); }
  to   { clip-path: polygon(calc(var(--h) * var(--slant)) 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes slash-in {
  from { opacity: 0; transform: translate(4px, -14px); }
  to   { opacity: 1; transform: none; }
}

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

.section { padding: clamp(80px, 11vw, 128px) 0 0; }

.section-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
}

/* 名刺のロゴ下と同じ、短い深緑の線 */
.section-title {
  margin: 0;
  padding-bottom: 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--forest);
  align-self: start;
  justify-self: start;
  width: fit-content;
  position: relative;
}
/* 見出しの文字幅いっぱいに線を引く（末尾の字間ぶんは除く） */
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.08em;
  bottom: 0;
  height: 2px;
  background: var(--bright);
}

.section-lead {
  word-break: auto-phrase;
  margin: 0 0 40px;
  max-width: 36em;
}

/* ---------- 私たちについて：深い緑の面に、大きな一言と説明文 ---------- */

.about {
  margin-top: clamp(80px, 10vw, 120px);
  padding-block: clamp(80px, 9vw, 150px);
  background: var(--forest);
  color: #FFFFFF;
}
/* 会社紹介だけは、ほかのセクションより横に広く使う */
.about .wrap {
  max-width: 1800px;
  padding-left: max(var(--gutter), 6vw);
  padding-right: max(var(--gutter), 6vw);
}
/* 左上に小さめの見出し */
.about .section-title {
  font-size: 16px;
  letter-spacing: 0.1em;
  padding-bottom: 12px;
}
.section-title--light { color: #FFFFFF; }
.section-title--light::after { background: #9BEBBE; height: 1.5px; }
/* 左に大きな一言。右は上に会社の説明、下に3つの考え方を離して置き、
   右下の文の下端を左の一言の下端にそろえる */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 540px);
  grid-template-rows: auto auto;
  column-gap: 8vw;
  row-gap: 40px;
  margin-top: clamp(48px, 5.5vw, 104px);
}
.about-statement {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  font-family: var(--serif);
  font-feature-settings: "palt";
  font-weight: 600;
  font-size: clamp(28px, 3.9vw, 76px);
  line-height: 2;
  letter-spacing: 0.05em;
}
.about-statement span { display: inline-block; white-space: nowrap; } /* 言葉の途中で改行しない */
.about-lead {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 0.6em 0 0;
  font-family: var(--serif);
  font-feature-settings: "palt";
  font-weight: 600;
  font-size: clamp(18px, 1.5vw, 26px);
  line-height: 2;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  word-break: auto-phrase;
}
.about-points {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  padding-bottom: 0.4em;
}
.about-points p {
  margin: 0 0 8px;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.9);
  word-break: auto-phrase;
}
.about-points p:last-child { margin-bottom: 0; }

@media (max-width: 1000px) {
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 32px;
    margin-top: 48px;
  }
  .about-statement,
  .about-lead,
  .about-points { grid-column: 1; grid-row: auto; align-self: start; }
  .about-lead { margin-top: 8px; }
  .about-points { padding-bottom: 0; }
}

/* ---------- サービス（ロゴのiの点のような丸の中に書く） ---------- */

.services-wrap { container-type: inline-size; }
/* 見出しが左にある幅では、丸の三角形をページ全体の中央に置く */
@media (min-width: 1001px) {
  .services-wrap { margin-left: calc(-220px - 48px); }
}

/* 狭い幅：丸を縦に、左右に少しずつずらして重ねる */
.services {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  isolation: isolate;
}
.service {
  position: relative;
  width: min(290px, 100%);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 32px;
  text-align: center;
  border-radius: 50%;
  background: var(--c);
}
.service + .service { margin-top: 12px; }
.service:nth-child(2) { align-self: flex-end; }
.service:nth-child(3) { align-self: center; }
.service:nth-child(1) { --c: #E3F5EA; }
.service:nth-child(2) { --c: #D3EFDE; }
.service:nth-child(2) h3 { color: #007443; } /* 少し濃い丸の上でも 4.5:1 以上 */
.service:nth-child(3) { --c: #E8F3DA; }

/* 十分な幅があれば、上に2つ・下に1つの三角形に並べる（丸どうしは重ねない）
   丸の直径 --d は幅に合わせて 290px〜380px で伸び縮みする */
@container (min-width: 604px) {
  .services {
    --d: clamp(290px, (100cqi - 24px) / 2, 380px);
    display: block;
    position: relative;
    width: calc(var(--d) * 2 + 24px);
    height: calc(var(--d) * 1.907);
    margin: 0 auto;
  }
  .service {
    position: absolute;
    width: var(--d);
    padding: calc(var(--d) * 0.12) calc(var(--d) * 0.11);
  }
  .service + .service { margin-top: 0; }
  .service:nth-child(1) { left: 0; top: 0; }
  .service:nth-child(2) { left: calc(var(--d) + 24px); top: 0; }
  .service:nth-child(3) { left: calc((var(--d) + 24px) / 2); top: calc(var(--d) * 0.907); }
  .service h3 { font-size: clamp(18px, var(--d) * 0.055, 21px); }
  .service p { font-size: clamp(14px, var(--d) * 0.041, 15.5px); }
}
/* iの点と同じ、明るい緑の小さな丸 */
.service::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--bright);
  transition: transform 0.3s ease;
}
.service:hover::before { transform: scale(1.8); }
.service h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--forest);
}
.service p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  /* 改行は<br>の位置だけ。収まらない幅のときだけ途中で折り返す */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- 進め方：ヒーローと同じ帯を、ロゴと同じ75°で4つに区切る。
   進むほど色が濃くなる ---------- */

.flow {
  --band-h: 64px;
  --cut: calc(var(--band-h) * var(--slant)); /* 斜めの切り込みの横幅 */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
/* 見出しが左にある幅では、見出しの下に横幅いっぱいで並べる */
@media (min-width: 1001px) {
  .flow { margin-left: calc(-220px - 48px); margin-top: 88px; }
}
.flow-step { min-width: 0; }
.flow-band {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--band-h);
  padding: 0 calc(var(--cut) + 12px) 0 calc(var(--cut) + 16px);
  background: var(--band);
  color: var(--band-text);
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
/* 隣の帯とのすき間を10pxにそろえる */
.flow-step + .flow-step .flow-band { margin-left: calc(10px - var(--cut)); }
.flow-step:first-child .flow-band {
  padding-left: 24px;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
.flow-step:last-child .flow-band {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%);
}
.flow-step:nth-child(1) { --band: #E3F5EA; --band-text: #007A47; }
.flow-step:nth-child(2) { --band: #A8E6C3; --band-text: #0F3D2E; }
.flow-step:nth-child(3) { --band: #02A95C; --band-text: #082A1F; } /* 明るい緑の上で 4.5:1 以上 */
.flow-step:nth-child(4) { --band: #007A47; --band-text: #FFFFFF; }
.flow-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
}
.flow-band h3 {
  margin: 0;
  font-family: var(--serif);
  font-feature-settings: "palt";
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.flow-step p {
  margin: 18px 0 0;
  padding: 0 24px 0 calc(var(--cut) + 6px);
  font-size: 14.5px;
  line-height: 1.85;
  word-break: auto-phrase;
}
.flow-step:first-child p { padding-left: 24px; }

/* 狭い幅：帯を縦に積む（左端はそろえ、右端だけ斜めに切る） */
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; row-gap: 28px; }
  .flow-step + .flow-step .flow-band { margin-left: 0; }
  .flow-step .flow-band,
  .flow-step:first-child .flow-band,
  .flow-step:last-child .flow-band {
    padding-left: 20px;
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  }
  .flow-step p,
  .flow-step:first-child p { margin-top: 12px; padding: 0 4px; }
}

/* ---------- 会社概要（なみなみの背景） ---------- */

.section--wave {
  position: relative;
  margin-top: clamp(96px, 12vw, 144px);
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--tint);
  --line: #BFE0CB;
}
.section--wave::before,
.section--wave::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(20px, 3vw, 40px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
/* 上の縁：ゆるい折れ線の山 */
.section--wave::before {
  bottom: calc(100% - 1px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpolygon fill='%23E3F5EA' points='0,24 250,31 560,5 880,19 1150,9 1440,23 1440,40 0,40'/%3E%3C/svg%3E");
}
/* 下の縁：上とは形を変えて、反転に見えないように */
.section--wave::after {
  top: calc(100% - 1px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpolygon fill='%23E3F5EA' points='0,0 1440,0 1440,13 1190,31 930,19 640,36 330,15 0,27'/%3E%3C/svg%3E");
}
.section--wave + .section { padding-top: clamp(104px, 13vw, 152px); }


.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}
.company-table th,
.company-table td {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
.company-table a {
  color: var(--forest);
  text-underline-offset: 4px;
}
.company-table th {
  width: 160px;
  padding-right: 24px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--forest);
}

/* ---------- お問い合わせ ---------- */

/* 淡い緑の角丸の面に、項目名を中に入れた白い丸い入力欄を1行ずつ並べる */
.form {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-left: -40px;
  padding: 40px;
  background: var(--tint);
  border-radius: 32px;
}
.field {
  background: var(--paper);
  border: 1px solid transparent;
}
.field:focus-within {
  border-color: var(--bright);
  box-shadow: 0 0 0 1px var(--bright);
}
.field label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--forest);
}
.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
}
.field input:focus,
.field textarea:focus { outline: none; }

/* 1行の欄：左に項目名、細い区切り線、右に入力 */
.field--inline {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 8px 0 28px;
  border-radius: 999px;
}
.field--inline label {
  flex: none;
  width: 148px;
  margin-right: 20px;
  border-right: 1px solid #C9D9CF;
  line-height: 28px;
}
.field--inline input { flex: 1; padding: 16px 20px 16px 0; }

/* ご相談内容：角丸の箱の左上に項目名 */
.field--area {
  display: grid;
  gap: 8px;
  padding: 20px 28px 16px;
  border-radius: 28px;
}
.field--area textarea {
  resize: vertical;
  min-height: 140px;
  padding: 0;
}

/* 必須の印 */
.req {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  color: var(--bright);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form-note {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 8px;
  padding-left: 4px;
  font-size: 13px;
  color: var(--muted);
}
.submit {
  margin-top: 8px;
  padding: 16px 48px;
  border-radius: 28px;
  justify-self: start;
}
/* 送信中：ボタンを押せなくする（contact.jsで disabled を付ける） */
.submit:disabled {
  background: #7DBB9C;
  cursor: wait;
  transform: none;
}

/* 送信後のお知らせ（contact.jsで data-state="success" / "error" を付ける） */
.form-status { margin: 0; font-size: 15px; }
.form-status:empty { display: none; }
.form-status:not(:empty) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: var(--paper);
  border-radius: 20px;
  line-height: 1.6;
}
.form-status[data-state]::before {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
}
.form-status[data-state="success"]::before { content: "✓"; background: var(--bright); }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="error"]::before { content: "!"; background: var(--error); }

/* スパム対策の隠し欄 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- フッター（名刺の裏と同じ深緑） ---------- */

.site-footer {
  margin-top: clamp(96px, 12vw, 144px);
  background: var(--forest);
  color: rgba(255, 255, 255, 0.9); /* 小さい文字でも 4.5:1 以上 */
}
.footer-inner {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.copyright { font-size: 13px; letter-spacing: 0.04em; }

/* ---------- 404ページ：ヘッダーとフッターはそのまま、間にロゴと案内だけ ---------- */

.page--error {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.error {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.page--error .site-footer { margin-top: 0; }
.error-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(64px, 10vw, 120px);
}
.error-code,
.error-title {
  font-family: var(--serif);
  font-feature-settings: "palt";
  color: var(--forest);
}
.error-code {
  margin: 0 0 20px;
  font-weight: 600;
  font-size: clamp(56px, 8vw, 88px);
  line-height: 1;
  letter-spacing: 0.04em;
}
.error-title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.error-text {
  margin: 16px 0 0;
  color: var(--muted);
  word-break: auto-phrase;
}
.error-title--large { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.5; }
.error-title span { display: inline-block; } /* 言葉の途中で改行しない */
.error-contact {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 28em;
  font-size: 15px;
}
.error-contact a {
  color: var(--forest);
  font-weight: 500;
  text-underline-offset: 4px;
}

/* ---------- タブレット以下：見出しを上に置く ---------- */

@media (max-width: 1000px) {
  .section-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- スマートフォン ---------- */

@media (max-width: 760px) {
  .brand-mark { width: 44px; height: 27px; }
  .brand-name { font-size: 14px; }
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
  .nav a[href="#services"],
  .nav a[href$="#flow"] { display: none; }

  .lead br { display: none; }
  .hero-band { --x: 24px; }
  .hero-mark { left: 28%; top: auto; bottom: 0; width: 150vw; }


  .section-lead br { display: none; }


  .company-table th { width: 7em; white-space: nowrap; }
  .form { margin-left: 0; padding: 24px 16px; border-radius: 28px; }
  /* 狭い幅では、項目名を欄の上の行に */
  .field--inline {
    flex-wrap: wrap;
    padding: 14px 22px 4px;
    border-radius: 24px;
  }
  .field--inline label {
    width: 100%;
    margin: 0;
    border-right: 0;
    font-size: 14px;
  }
  .field--inline input { flex: 1 1 100%; padding: 4px 0 10px; }
  .field--area { padding: 14px 22px; border-radius: 24px; }

  .footer-inner { grid-template-columns: 1fr; justify-content: start; gap: 16px; }
}

@media (max-width: 420px) {
  .site-header .brand-name { display: none; }
  .page--maintenance .site-header .brand-name { display: inline; } /* ナビがないので社名を出す */
  .nav a[href="#services"] { display: inline; }
}

/* ロゴのSVGスプライト（CSPでstyle属性が使えないためここで指定） */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
