/* Peach株式会社 コーポレートサイト v3「絵が立つ白い舞台」（2026-09-24・フルスクラッチ）
 * 仕様の正: デザイン再考案v2_260924/05_監査結果…json の spec（＋検証2の修正）。値はすべて :root のトークンから。
 * 規約: 図像はヒーローのアニメ1つ（例外: iTrich カードの他サイトのスクリーンショット1枚）。
 *   白 #FFFFFF＝地／#F6F4F1＝区画の地（アニメの地面色と同値）／#333＝文字・ボタン・フッタ／
 *   紺 #3E4A5E＝英字ラベル・dt・ページ内ナビの現在地だけ／地面線 #DDD7CE＝2px は事実の表の最上段2か所だけ／
 *   オレンジ #F28B2D＝印だけ（コロフォンの罫・区画末尾リンクの→・人物像の番号・アニメ内のギフト）。面・帯・ボタン・文字色・フォーカスに使わない。
 *   太さは600まで・角3px・影なし・中央揃えなし。動くのはアニメだけ。
 */

:root {
  --bg: #ffffff;
  --bg-sub: #f6f4f1;
  --ink: #333333;
  --text: #333333;
  --text-2: #666666; /* 白地 5.74:1 */
  --text-3: #6f6f6f; /* 白地 5.03:1・#F6F4F1 地 4.58:1 */
  --navy: #3e4a5e;
  --line: #e4e1dc;
  --line-strong: #cfcac3;
  --ground-line: #ddd7ce;
  --accent: #f28b2d;
  --error: #b3261e;
  --error-bg: #fbf1ef;
  --error-ink: #7a1f14;
  --footer-muted: rgba(255, 255, 255, 0.78);
  --footer-line: rgba(255, 255, 255, 0.16);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: clamp(26px, 2.7vw, 40px);
  --h2: clamp(24px, 2.4vw, 32px);
  --vision: clamp(20px, 1.7vw, 24px);
  --h3: 20px;
  --section-title: 15px;
  --label: 13px;
  --body: 16px;
  --small: 15px;
  --meta: 13px;
  --note: 12px;
  --lh-body: 2;
  --lh-dl: 1.8;
  --lh-head: 1.5;
  --lh-h3: 1.6;
  --ls-display: 0.02em;
  --ls-head: 0.03em;
  --ls-body: 0.02em;
  --ls-label: 0.04em;
  --ls-en: 0.08em;
  --ls-since: 0.12em;
  --section: 112px;
  --band-top: 72px;
  --vv-gap: 64px;
  --block-gap: 96px;
  --wrap: 1120px; /* 外寸。内容幅は wrap − 2×gutter ＝ 1056、2列は 512 ＋ gap 32 ＋ 512 */
  --gutter: 32px;
  --spine-gap: 32px;
  --measure: 36em;
  --radius: 3px;
  --hero-h: clamp(340px, 31vw, 480px); /* 1366=423・1440=446・≥1548=480（人物 約323px） */
  --ground-ratio: 0.1306; /* 1 − (GROUND_Y+1)/VB_H＝1 − 313/360。ビルドで gift-relay.js と照合 */
  --hero-pad-top: 40px;
  --header-h: 72px; /* 固定ヘッダの高さ（≤640 は2段） */
  --subnav-h: 49px; /* ページ内ナビ（14+12 padding + 1.4 行 + 2px 罫） */
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-feature-settings: "palt";
  line-break: strict;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
}

address {
  font-style: normal;
}

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

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.seg {
  display: inline-block; /* 折り返しは文節の切れ目だけ。連結すると原文と一致（ビルドで assert） */
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip:focus {
  top: 8px;
}

/* ---------- ヘッダ（文字リンク4本・塗りボタンなし・スクロールしてもついてくる） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header-h);
}
/* ヘッダの「事業内容」など、ページ内リンクの着地は固定ヘッダの分だけ下げる */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.logo {
  display: block;
  padding: 8px 0;
}
.logo img {
  display: block;
  width: auto;
  height: 30px;
}
.gnav {
  margin-left: auto;
}
.gnav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
}
.gnav a {
  position: relative;
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.gnav a:hover {
  color: var(--text-2);
}
.gnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--ink);
}
.gnav li.contact a {
  font-weight: 600;
}

/* ---------- ラベル「和文　English」（罫・ティックなし） ---------- */
.lbl {
  display: block;
  margin: 0 0 12px;
  font-size: var(--label);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: var(--ls-label);
  color: var(--text);
}
.lbl span[lang="en"],
.lbl .en {
  margin-left: 0.6em;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: var(--ls-en);
  color: var(--navy);
}
.lbl .solo {
  margin-left: 0;
}
h2.lbl {
  font-size: var(--section-title);
  font-weight: 600;
  margin-bottom: 32px;
}
h2.lbl span[lang="en"] {
  font-size: 13px;
}

/* ---------- 見出し・本文 ---------- */
.h2 {
  font-size: var(--h2);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
}
.h3 {
  font-size: var(--h3);
  font-weight: 600;
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-head);
}
.body {
  max-width: var(--measure);
}
.body p + p {
  margin-top: 1em;
}
.body p,
.prose p,
.statement-lead,
.contact-rows p {
  word-break: auto-phrase;
  text-wrap: pretty;
}
.lead-2 {
  color: var(--text-2);
}

/* ---------- リンク ---------- */
.link {
  display: inline-block;
  padding: 10px 0;
  font-size: var(--small);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.link:hover {
  text-decoration-thickness: 2px;
}
.link .arrow {
  display: inline-block;
  margin-left: 0.35em;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.15em;
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
}
.inline-link {
  display: inline-block; /* 文中のリンク: 当たり判定だけ広げる */
  padding: 10px 0;
  margin: -10px 0;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.inline-link:hover {
  text-decoration-thickness: 2px;
}

/* ---------- ボタン（#333 の塗り1色・矢印なし・1区画に1つ） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: var(--small);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: #1f1f1f;
  border-color: #1f1f1f;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- 区画と背骨（左ラベル／右本文・2列 512+32+512） ---------- */
.section {
  padding: var(--section) 0;
}
.section-sub {
  background: var(--bg-sub);
}
.spine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px var(--spine-gap);
  align-items: start;
}
.spine .side .link,
.spine .side .more {
  margin-top: 4px;
}
.spine .side h2.lbl {
  margin-bottom: 0;
}
.spine .side h2.lbl + .more {
  margin-top: 8px;
}
.spine + .spine {
  margin-top: var(--block-gap);
}
.section > .wrap > h2.lbl {
  margin-bottom: 32px;
}

/* ---------- ヒーロー: 題字は左（512px）・アニメは右列から画面右端まで。文字塊の最終行を絵の地面線に揃える ---------- */
.kv {
  overflow-x: clip;
  background: var(--bg);
}
.kv .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--spine-gap);
  align-items: end;
}
.kv-text {
  padding: var(--hero-pad-top) 0 calc(var(--hero-h) * var(--ground-ratio));
}
.kv h1 {
  font-size: var(--display);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-display);
  margin: 0 0 16px;
}
.kv h1 .seg {
  display: block; /* 「出会えてよかった、」／「と思っていただける仕事を。」の2行に固定（Q2 回答待ち・既定） */
}
.kv-sub {
  font-size: var(--body);
  line-height: 1.9;
  margin: 0 0 20px;
}
.colophon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--meta);
  line-height: 1.6;
  color: var(--text-2);
  white-space: nowrap;
}
.colophon::before {
  content: "";
  flex: none;
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.colophon .en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: var(--ls-since);
  color: var(--navy);
}
.stage {
  position: relative;
  display: block;
  height: var(--hero-h);
  margin-right: calc(-1 * (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter)));
}
.stage gift-relay {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  --gift-relay-ground: var(--bg-sub);
}
.stage-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to right, transparent 12%, #000 30%);
  mask-image: linear-gradient(to right, transparent 12%, #000 30%);
}
gift-relay:defined + .stage-still {
  display: none;
}
/* ---------- Vision＋Values（ヒーローの地面がそのまま続く区画・区画題なし） ---------- */
.mvv-band {
  background: var(--bg-sub);
  padding: var(--band-top) 0 var(--section);
}
.mvv-band .vision h2,
.mvv-band .values h2 {
  font-weight: 600;
  letter-spacing: var(--ls-head);
}
.mvv-band .vision h2 {
  font-size: var(--vision);
  line-height: 1.6;
}
.mvv-band .values h2 {
  font-size: var(--h2);
  line-height: var(--lh-head);
}
.mvv-band h2 .lbl,
.philosophy h3 .lbl {
  display: block;
  font-size: var(--label);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: var(--ls-label);
  margin-bottom: 12px;
}
.mvv-band .values {
  margin-top: var(--vv-gap);
}
.mvv-body {
  line-height: var(--lh-body);
}
.mvv-body + .mvv-body {
  margin-top: 1em;
}
.more {
  margin-top: 28px;
}

/* ---------- 事業内容（iTrich カード1枚＝カード全体がリンク・ビジュアル半分・得意なことはカードの中） ---------- */
.service-card {
  position: relative; /* 「iTrichのサイトを見る」の ::after をカード全面に広げる（stretched link） */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.service-visual {
  border-bottom: 1px solid var(--line);
  background: var(--bg-sub);
}
.service-visual img {
  display: block;
  width: 100%;
  height: auto; /* itrich.jp のヒーローをそのまま（1.99:1・切らない＝人物の全身） */
}
.service-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--spine-gap);
  padding: 32px 32px 28px;
}
.service-name {
  margin: 0 0 14px;
  font-size: var(--small);
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-2);
}
.service-strength {
  font-size: var(--h2);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
  margin: 0;
}
.service-strength .seg {
  display: block; /* 「困りごとを、一緒に解く。」／「案件が決まってからがスタート。」の2行に固定 */
}
.service-text {
  font-size: var(--small);
  line-height: 1.9;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.service-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  font-size: var(--small);
  font-weight: 500;
  line-height: 1.6;
}
.service-fact::before {
  content: "";
  flex: none;
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.service-cta {
  margin: 22px 0 0;
}
.service-cta .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.service-card:hover {
  border-color: var(--ink);
}
.service-card:hover .btn {
  background: #1f1f1f;
  border-color: #1f1f1f;
}
.service-card:has(.btn:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.service-card .btn:focus-visible {
  outline: none;
}
.section > .wrap > .service-card + .more {
  margin-top: 24px;
}

/* ---------- 事実の表（トップ5行・会社概要12行） ---------- */
.facts {
  display: grid;
  grid-template-columns: 10em minmax(0, 1fr);
  border-top: 2px solid var(--ground-line);
  font-size: var(--small);
  line-height: var(--lh-dl);
}
.facts dt,
.facts dd {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.section-sub .facts dt,
.section-sub .facts dd {
  border-bottom-color: var(--ground-line);
}
.facts dt {
  font-weight: 500;
  color: var(--navy);
  padding-right: 16px;
  white-space: nowrap;
}
.facts dd small {
  display: block;
  color: var(--text-2);
}
.facts dd a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.facts dd a.tel {
  text-decoration: none;
}

/* ---------- 採用の帯・お問い合わせ（トップ） ---------- */
.recruit-band .big {
  font-size: var(--display);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-display);
  margin: 0 0 28px;
}
.contact-rows > div {
  padding: 8px 0 32px;
}
.contact-rows > div + div {
  padding-top: 32px;
  border-top: 1px solid var(--ground-line);
}
.contact-rows .h3 {
  margin: 0 0 6px;
}
.contact-rows p {
  font-size: var(--small);
  line-height: 1.9;
  color: var(--text-2);
  margin: 0 0 16px;
}

/* ---------- 下層の見出し帯・パンくず・ページ内ナビ ---------- */
.page-head {
  padding: 40px 0 0;
}
.page-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 20px;
}
.page-title h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-label);
}
.page-title .en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-en);
  color: var(--navy);
}
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.subnav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
}
.subnav a {
  display: block;
  padding: 14px 0 12px;
  font-size: var(--label);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
body:not(:has(:target)) .subnav a[href="#profile"],
body:has(#profile:target) .subnav a[href="#profile"],
body:has(#access:target) .subnav a[href="#access"],
body:has(#philosophy:target) .subnav a[href="#philosophy"],
body:has(#message:target) .subnav a[href="#message"] {
  border-bottom-color: var(--navy);
}
#profile,
#access,
#philosophy,
#message {
  scroll-margin-top: calc(var(--header-h) + var(--subnav-h));
}
#talk {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ---------- 代表メッセージ（写真 4:5 の枠＋見出し1行＋本文3段落＋署名。写真が届くまで Coming Soon） ---------- */
.spine .side .portrait {
  width: 200px;
  margin-top: 8px; /* 区画題（margin-bottom 32px）の下 */
}
.portrait {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-lines {
  width: 200px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
}
.profile-lines li {
  word-break: auto-phrase; /* 「トレン｜ドマイクロ」で割れない */
  text-wrap: pretty;
}
.profile-lines li + li {
  margin-top: 2px;
}
.portrait-soon {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-en);
  color: var(--navy);
}
.message-head {
  font-size: var(--h2);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
  margin: 0 0 20px;
}
.sign {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 28px;
  font-size: var(--small);
  line-height: 1.6;
}
.sign-name {
  font-size: var(--body);
  font-weight: 600;
}

/* ---------- 企業理念（4ブロック・背骨と同じ列） ---------- */
.philosophy .spine + .spine {
  margin-top: var(--block-gap);
}
.philosophy h3 {
  font-size: var(--h2);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
  margin: 0 0 16px;
}

/* ---------- アクセス ---------- */
.access address {
  font-weight: 500;
  margin: 0 0 20px;
}
.stations {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  max-width: 480px;
  border-top: 1px solid var(--ground-line);
}
.stations li {
  padding: 12px 0;
  border-bottom: 1px solid var(--ground-line);
  font-size: var(--small);
  line-height: 1.7;
}
.stations strong {
  display: block;
  font-weight: 600;
}
.stations span {
  font-size: var(--meta);
  color: var(--text-2);
}
.access .more {
  margin-top: 16px;
}

/* ---------- 採用ページ ---------- */
.statement {
  font-size: var(--display);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-display);
  margin: 0 0 32px;
}
.statement-lead {
  max-width: var(--measure);
  margin: 0 0 16px;
}
.statement-note {
  max-width: var(--measure);
  font-size: var(--small);
  line-height: 1.9;
  color: var(--text-2);
}
.people-h {
  margin: 0 0 12px;
}
.people-note {
  max-width: var(--measure);
  margin-top: 28px;
  line-height: var(--lh-body);
  word-break: auto-phrase;
  text-wrap: pretty;
}
.num-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--ground-line);
}
.num-list li {
  display: grid;
  grid-template-columns: 3.5em minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--ground-line);
}
.num-list .num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.num-list h3 {
  font-size: var(--h3);
  font-weight: 600;
  line-height: var(--lh-h3);
}
.closing .h2 {
  margin: 0 0 40px;
}
.closing .h3 {
  margin: 0 0 20px;
}

/* ---------- フォーム（トークンから。旧CSSは引き継がない） ---------- */
.narrow {
  max-width: 820px;
}
.form-intro {
  max-width: var(--measure);
  margin: 0 0 40px;
}
.form-intro .lead-2 {
  display: block;
}
.form {
  display: grid;
  gap: 28px;
  max-width: 720px;
}
.recruit-form {
  margin-top: 32px;
}
.field {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.field label,
.field legend,
.field .label {
  display: block;
  padding: 0;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.req,
.opt {
  margin-left: 0.5em;
  font-size: var(--note);
  font-weight: 500;
  letter-spacing: var(--ls-label);
}
.req {
  color: var(--ink);
}
.opt {
  color: var(--text-2);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}
.field textarea {
  min-height: 200px;
  resize: vertical;
}
.recruit-form .field textarea {
  min-height: 120px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: none;
}
.field-hint {
  margin-top: 8px;
  font-size: var(--meta);
  line-height: 1.7;
  color: var(--text-2);
}
.field-error {
  margin-top: 8px;
  font-size: var(--meta);
  font-weight: 600;
  line-height: 1.7;
  color: var(--error);
}
.is-invalid input[type="text"],
.is-invalid input[type="email"],
.is-invalid input[type="tel"],
.is-invalid textarea,
.is-invalid .choice span.box {
  border-color: var(--error);
}
.form-status {
  padding: 14px 18px;
  border-left: 4px solid var(--error);
  background: var(--error-bg);
  color: var(--error-ink);
  font-size: 14px;
  line-height: 1.8;
}
.form-status a {
  color: inherit;
  font-weight: 600;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.choice {
  position: relative;
  display: block;
  margin: 0;
  font-weight: 400;
}
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.choice span.box {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 16px 18px 16px 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
}
.choice span.box::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--text-3);
  border-radius: 50%;
  background: var(--bg);
}
.choice input:checked + span.box {
  border-color: var(--ink);
  background: var(--bg-sub);
}
.choice input:checked + span.box::before {
  border-color: var(--ink);
  background: radial-gradient(circle, var(--ink) 0 4px, transparent 4.5px);
}
.choice input:focus-visible + span.box {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.choice strong {
  display: block;
  font-size: var(--small);
  font-weight: 600;
  line-height: 1.5;
}
.choice small {
  display: block;
  margin-top: 2px;
  font-size: var(--meta);
  line-height: 1.6;
  color: var(--text-2);
}
.consent {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg-sub);
}
.consent > p {
  font-size: 14px;
  line-height: 1.8;
}
.consent details {
  margin-top: 12px;
}
.consent summary {
  display: inline-block;
  padding: 12px 0;
  font-size: var(--meta);
  line-height: 1.6;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.consent .prose {
  max-height: 320px;
  overflow: auto;
  margin-top: 8px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: var(--meta);
}
.consent .agree {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.consent .agree input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}
.form-actions {
  margin-top: 4px;
}
.btn-submit {
  min-height: 56px;
  min-width: 260px;
}
.form-done {
  padding: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.form-done h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: var(--lh-head);
  margin: 0 0 12px;
}
.form-done p {
  color: var(--text-2);
}
.form-done .more {
  margin-top: 20px;
}
.form-noscript {
  margin-top: 16px;
}

/* ---------- 規程文（個人情報保護方針・同意の全文） ---------- */
.prose {
  font-size: var(--small);
  line-height: var(--lh-body);
}
.privacy .prose {
  max-width: 44em;
}
.prose > * + * {
  margin-top: 16px;
}
.prose h2 {
  margin-top: 56px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
  line-height: var(--lh-h3);
  text-wrap: balance;
}
.prose h3 {
  margin-top: 32px;
  font-size: 16px;
  font-weight: 600;
}
.prose .terms-h {
  margin-top: 20px;
  padding: 0;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  text-wrap: auto;
}
.prose ol,
.prose ul {
  padding-left: 1.6em;
}
.prose ol {
  list-style: decimal;
}
.prose ul {
  list-style: disc;
}
.prose li + li {
  margin-top: 8px;
}
.prose li > ul,
.prose li > p {
  margin-top: 8px;
}
.prose a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
  line-height: 1.6;
  text-underline-offset: 3px;
}
.nowrap {
  white-space: nowrap;
}

/* ---------- 404 ---------- */
.notfound {
  padding: var(--section) 0;
}
.notfound .inner {
  max-width: var(--measure);
}
.notfound h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: var(--lh-head);
  margin: 0 0 16px;
}
.notfound p {
  margin: 0 0 28px;
  color: var(--text-2);
}
.notfound .routes {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

/* ---------- フッタ ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 28px;
}
.site-footer :focus-visible {
  outline-color: #fff;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.footer-top .logo img {
  height: 28px;
}
.footer-top address {
  margin-top: 12px;
  font-size: var(--meta);
  line-height: 1.9;
  color: var(--footer-muted);
}
/* プライバシーマーク: 濃い地なので白抜き版（使用規約 JIP-PMK600「背景色が濃い色の場合」）。
   交付データをそのまま等倍比で縮小するだけ・枠線や角丸を付けない・登録番号が読める大きさ（96px） */
.footer-top .pmark {
  display: inline-block;
  margin-top: 20px;
  line-height: 0;
}
.footer-top .pmark img {
  width: 96px;
  height: 96px;
}
.pmark-print {
  display: none;
}
.fnav {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.fnav h2 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 8px;
}
.fnav ul {
  list-style: none;
  padding: 0;
}
.fnav a,
.footer-bottom a {
  display: inline-block;
  padding: 11px 0;
  line-height: 1.6;
  color: #fff;
  text-decoration: none;
}
.fnav h2 a {
  padding: 8px 0;
}
.fnav li a {
  font-size: var(--meta);
  color: var(--footer-muted);
}
.fnav a:hover,
.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-line);
  font-size: var(--note);
}
.footer-bottom small {
  font-size: var(--note);
  color: var(--footer-muted);
}

/* ---------- トップの採用の帯（案A「次の人が待っている」・9/25 代表決定）: 事実の1行＋アニメの別のコマ（t=7.5・静止） ---------- */
.recruit-band .rb-sub {
  margin: -8px 0 12px;
  font-size: var(--h3);
  font-weight: 600;
  line-height: var(--lh-h3);
  color: var(--text);
}
.recruit-band .rb-fact {
  margin: -12px 0 28px;
  font-size: var(--small);
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-2);
}
/* 同じアニメの別のコマ（t=7.5・静止）を右列の先頭に。
   背骨・見出し・ボタンは現状のまま。絵は箱も罫も地面の灰も無く白地に直接立つ ---------- */
.rb-frame-still {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 512px;                 /* 右列いっぱい。小さくするなら 440px（人 181px） */
  aspect-ratio: 600 / 286;          /* 窓＝切り出し 600×360 のうち y 40〜326（頭上の空を詰め・地面帯と小石は入れない） */
  margin: 0 0 32px;                 /* 窓 → 見出し */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); /* 両端を白へ溶かす（.stage-still の左フェードと同じ手） */
}
.rb-frame-still img {
  position: absolute;
  left: 0;
  top: calc(-100% * 40 / 286);
  display: block;
  width: 100%;
  max-width: none;
  height: calc(100% * 360 / 286);
}
@media (max-width: 800px) {
  .rb-frame-still {
    margin-bottom: 24px;            /* max-width 512px は全幅共通。全幅ブリードにしない（641〜800 で人がヒーローより大きくなる） */
  }
}
@media print {
  .rb-frame-still {
    display: none;                  /* .stage と同じ扱い */
  }
}

/* ---------- 採用ページ（9/25 代表確定: 募集の一行・考え方・営業の仕事・人物像×仲間に対して・募集の内容） ---------- */
/* 呼びかけ（採用ページの冒頭）: 前提の1行 → 大きく1行 → 呼びかけ2行 */
.rp-call {
  padding-bottom: 56px;
}
.rp-call-pre {
  margin: 0 0 10px;
  font-size: var(--h3);
  font-weight: 600;
  line-height: var(--lh-h3);
  color: var(--text-2);
}
.rp-call-main {
  margin: 0 0 20px;
  font-size: var(--display);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-display);
}
.rp-call-main .seg {
  display: inline-block;
}
.rp-call-post {
  position: relative;
  padding-left: 36px; /* flex にすると <br> が効かず2行が横に並ぶ（実測） */
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.8;
}
.rp-call-post::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 24px;
  height: 2px;
  background: var(--accent);
}
/* 組織像（チームの定義） */
.rp-team-body {
  max-width: var(--measure);
  line-height: var(--lh-body);
  word-break: auto-phrase;
  text-wrap: pretty;
}
.rp-now {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rp-now p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 24px;
  padding: 16px 0;
  font-size: var(--body);
  font-weight: 600;
  line-height: 1.7;
}
.rp-now .link {
  font-size: var(--small);
  font-weight: 500;
}
.rp-note-up {
  font-size: var(--body);
  color: var(--text);
}
.rp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.rp-h {
  margin: 0 0 16px;
}
.rp-h .seg {
  display: inline-block;
}
.rp-intro {
  max-width: var(--measure);
  line-height: var(--lh-body);
}

/* 営業の仕事: 途中に「決まる」の点が1つある、終わらない一本の罫 */
.rp-work .spine {
  margin-bottom: 40px;
}
.rp-line {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "pic pic"
    "rule rule"
    "before after";
  column-gap: var(--spine-gap);
}
.rp-point-pic {
  grid-area: pic;
  justify-self: center;
  width: 260px;
  margin: 0 0 -6px;
  transform: translateX(calc(var(--spine-gap) / -2 + 0px));
}
.rp-point-pic img {
  display: block;
  width: 100%;
  height: auto;
}
.rp-rule {
  grid-area: rule;
  position: relative;
  height: 44px;
  margin-right: calc(-1 * (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter))); /* 右は画面の端まで＝終わらない */
}
.rp-rule::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 2px solid var(--ground-line);
}
.rp-rule::after {
  content: "";
  position: absolute;
  left: 0;
  width: calc((100% - (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter))) / 2 - var(--spine-gap) / 2);
  top: 0;
  border-top: 2px solid var(--text-3, #999);
}
.rp-dot {
  position: absolute;
  top: -6px;
  left: calc((100% - (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter))) / 2 - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}
.rp-dot-label {
  position: absolute;
  top: 14px;
  left: calc((100% - (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter))) / 2);
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.rp-before {
  grid-area: before;
}
.rp-after {
  grid-area: after;
}
.rp-phase {
  margin: 0 0 12px;
  font-size: var(--label);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: var(--ls-label);
}
.rp-after-h {
  margin: 0 0 12px;
  font-size: var(--h3);
  font-weight: 600;
  line-height: var(--lh-h3);
}
.rp-after-p {
  padding: 12px 0;
  border-top: 1px solid var(--ground-line);
  line-height: 1.9;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.rp-after-p + .rp-after-p {
  padding-top: 12px;
}
.rp-line ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rp-line li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-top: 1px solid var(--ground-line);
  line-height: 1.8;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.rp-line li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 8px;
  height: 1px;
  background: var(--text-2);
}
/* 人物像 × 一緒に働く仲間に対して（同じ番号の行を横に揃える） */
.rp-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(6, auto);
  column-gap: var(--spine-gap);
}
.rp-col {
  display: grid;
  grid-row: 1 / 7;
  grid-template-rows: subgrid;
}
.rp-col .lbl {
  margin: 0 0 8px;
}
.rp-list {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--ground-line);
}
.rp-list li {
  display: grid;
  grid-template-columns: 3.5em minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--ground-line);
}
.rp-list .num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.rp-give .num {
  color: var(--text);
}
.rp-give .rp-list {
  grid-row: span 4; /* 会社側は4行（04＝ビジネスパートナー選び）。人物像側は3行＋補足文で、補足文の横に04 */
}
.rp-give .rp-list li:nth-child(4) {
  align-self: start; /* 補足文の行は背が高い。04 を行いっぱいに伸ばすと下の罫線が離れる */
}

.rp-ask-txt {
  font-size: var(--h3);
  font-weight: 600;
  line-height: var(--lh-h3);
}
.rp-give-txt {
  display: grid;
  gap: 4px;
}
.rp-ask-txt,
.rp-give-txt strong,
.rp-give-txt span {
  word-break: auto-phrase; /* スマホで「お任せし｜ています」「始｜めます」と語の途中で割れない */
  text-wrap: pretty;
}
.rp-give-txt strong {
  font-size: var(--h3);
  font-weight: 600;
  line-height: var(--lh-h3);
}
.rp-give-txt span {
  font-size: var(--small);
  line-height: 1.8;
  color: var(--text-2);
}
.rp-ask .people-note {
  margin-top: 24px;
}

/* 募集の内容 */
.rp-facts {
  margin-top: 8px;
}
.rp-small {
  margin-top: 16px;
  font-size: var(--small);
  color: var(--text-2);
}


@media (max-width: 800px) {
  .rp-line {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "before"
      "pic"
      "rule"
      "after";
  }
  .rp-point-pic {
    justify-self: start;
    width: 220px;
    margin-top: 24px;
    transform: none;
  }
  .rp-rule {
    margin: 0 calc(-1 * var(--gutter)) 0 0;
  }
  .rp-rule::after {
    width: 40px;
  }
  .rp-dot {
    left: 40px;
  }
  .rp-dot-label {
    left: 47px;
    transform: none;
  }
  .rp-after {
    margin-top: 8px;
  }
  .rp-pair {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: 48px;
  }
  .rp-col {
    display: block;
    grid-row: auto;
  }
  .rp-list {
    display: block;
  }
}

/* ---------- 1600px 以上: コロフォンと事業1行を一段上げる ---------- */
@media (min-width: 1600px) {
  .colophon {
    font-size: 14px;
  }
  .colophon .en {
    font-size: 13px;
  }
}

/* ---------- 801〜1024px: 縦積みのヒーロー・背骨は 4/8 ---------- */
@media (max-width: 1024px) {
  :root {
    --section: 80px;
    --block-gap: 64px;
  }
  .spine {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
  .kv .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .kv-text {
    padding: 32px 0 24px; /* 縦積みでは地面線に揃えない */
  }
  .kv h1 .seg {
    display: inline-block;
  }
  .stage {
    height: clamp(270px, 40vw, 340px);
    margin: 0 calc(-1 * var(--gutter));
  }
  .service-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .fnav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

/* ---------- 641〜800px ---------- */
@media (max-width: 800px) {
  :root {
    --gutter: 24px;
  }
  .spine {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .spine .side[aria-hidden="true"] {
    display: none;
  }
  .spine .side .portrait {
    width: 160px;
    margin: 0 0 8px;
  }
  .profile-lines {
    width: auto;
    margin: 0 0 8px;
  }
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .form {
    max-width: none;
  }
}

/* ---------- ≤640px: スマホ ---------- */
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --display: clamp(22px, 6.9vw, 25px);
    --h2: 21px;
    --vision: 19px;
    --h3: 18px;
    --body: 15px;
    --section: 64px;
    --band-top: 48px;
    --vv-gap: 44px;
    --hero-pad-top: 28px;
  }
  :root {
    --header-h: 91px; /* 6 + ロゴ行 42 + ナビ行 43（ビルド後に実測して合わせる） */
  }
  .site-header .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    height: var(--header-h);
    padding-top: 6px;
  }
  .logo img {
    height: 26px;
  }
  .gnav {
    margin: 0 calc(-1 * var(--gutter));
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gnav::-webkit-scrollbar {
    display: none;
  }
  .gnav ul {
    gap: 24px;
    padding: 0 var(--gutter);
  }
  .gnav a {
    padding: 14px 0 15px;
    font-size: 14px;
  }
  .kv-text {
    padding: var(--hero-pad-top) 0 16px;
  }
  .kv h1 {
    margin-bottom: 12px;
  }
  .kv h1 .seg {
    display: block;
  }
  .kv-sub {
    margin-bottom: 16px;
  }
  .stage {
    height: 270px;
  }
  .mvv-band .values {
    margin-top: var(--vv-gap);
  }
  .service-body {
    padding: 24px 20px 22px;
  }
  .subnav {
    position: static; /* 2段のヘッダに加えて固定すると画面の2割が動かなくなる */
  }
  #profile,
  #access,
  #philosophy,
  #message {
    scroll-margin-top: calc(var(--header-h) + 16px);
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts dt {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: var(--meta);
    white-space: normal;
  }
  .facts dd {
    padding-top: 2px;
  }
  .facts dd a.tel {
    text-decoration: underline;
  }
  .page-title h1 {
    font-size: 24px;
  }
  .subnav ul {
    gap: 20px;
  }
  .num-list li {
    grid-template-columns: 3em minmax(0, 1fr);
    padding: 18px 0;
  }
  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .consent,
  .form-done {
    padding: 24px 20px;
  }
  .btn-submit {
    width: 100%;
    min-width: 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


@media (max-width: 359px) {
  .gnav a {
    font-size: 13px;
  }
}

/* ---------- 動きを減らす・印刷 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .link,
  .inline-link {
    transition: none;
  }
}

@media print {
  .skip,
  .gnav,
  .subnav,
  .stage {
    display: none;
  }
  .site-footer {
    background: #fff;
    color: #000;
  }
  .footer-top .pmark .pmark-screen {
    display: none; /* 印刷では地が白になるので基本カラー版に替える */
  }
  .footer-top .pmark .pmark-print {
    display: inline;
  }
  .site-footer a,
  .footer-top address,
  .fnav li a,
  .footer-bottom small {
    color: #000;
  }
  .consent .prose {
    max-height: none;
    overflow: visible;
  }
  .section {
    padding: 32px 0;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 11px;
  }
}
