/* 株式会社湖陵建設（架空・採用サンプル）スタイル
   配色A案：生成り #F5F1E8 × 深緑 #3E5C45 × 土色オレンジ #D97B3F */

:root {
  --beige: #F5F1E8;
  --beige-2: #ECE5D6;
  --green: #3E5C45;
  --green-dark: #2F4735;
  --orange: #D97B3F;
  --orange-dark: #C2662C;
  --ink: #2B2B2B;
  --white: #FFFFFF;
  --line: #D8D0BF;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --num-font: "Oswald", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
/* スマホドロワー等による横スクロールの安全弁（Codex QA指摘） */
html, body { overflow-x: hidden; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--beige);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* --- サンプル注記バー --- */
.sample-bar {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: 12px;
  padding: 6px 12px;
  letter-spacing: 0.05em;
}

.sample-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .04em;
}

/* --- ヘッダー --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.96);
  border-bottom: 1px solid var(--line);
  /* backdrop-filterはposition:fixed(.nav)のcontaining blockを生成し横スクロールの原因になるため不使用（Codex QA指摘） */
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { text-decoration: none; line-height: 1.3; }
.logo-name {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--green-dark);
  letter-spacing: 0.06em;
}
.logo-sub { display: block; font-size: 11px; color: #6b6455; letter-spacing: 0.1em; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--orange); }
.header-cta { display: flex; gap: 10px; align-items: center; }

/* --- ボタン --- */
.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--white); font-size: 15px; }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-outline { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn-lg { padding: 16px 40px; font-size: 17px; border-radius: 6px; }

/* --- ハンバーガー --- */
.menu-toggle { display: none; }

/* --- ヒーロー（フルスクリーン・3枚スライド＋ズーム） --- */
/* 100svh のままだと上に載るサンプルバー＋ヘッダーの分（108〜134px）だけ画面をはみ出し、
   ヒーロー下部が最初の画面から欠けていた。引く値は幅ごとの実測値
   （1041px〜:43+74／511-1040:43+65／〜510:69+65）。 */
.hero {
  position: relative;
  height: calc(100svh - 117px);
  min-height: 540px;
  overflow: hidden;
}
@media (max-width: 1040px) { .hero { height: calc(100svh - 108px); } }
@media (max-width: 510px) { .hero { height: calc(100svh - 134px); } }
.hero .hero-slides, .hero .hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
}
.hero .hero-slide {
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08); /* 非アクティブ時も拡大位置を維持し、切替時のガタつきを防ぐ */
}
.hero-slide.is-active img { animation: heroZoom 8s ease-out forwards; }
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img { animation: none; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* 旧値では見出しのコントラストが2.41〜2.52と大見出し基準3.0に未達だった。
     下からの1枚を文字帯まで届かせ、左からの1枚を重ねて補う（スマホは745行で別途上書き）。 */
  background:
    linear-gradient(to top, rgba(30, 38, 30, 0.72) 0%, rgba(30, 38, 30, 0.46) 34%, rgba(30, 38, 30, 0.24) 56%, rgba(30, 38, 30, 0.14) 78%, rgba(30, 38, 30, 0.20) 100%),
    linear-gradient(90deg, rgba(30, 38, 30, 0.46) 0%, rgba(30, 38, 30, 0.24) 44%, rgba(30, 38, 30, 0.06) 68%, transparent 84%);
}
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--white);
}
.hero-tag {
  display: inline-block;
  background: rgba(217, 123, 63, 0.92);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-shadow: none;
}
.hero-catch {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero-lead {
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: 0.14em;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.hero-btns { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* --- セクション共通 --- */
.section { padding: 88px 0; }
.inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sec-num {
  font-family: var(--num-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.3em;
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.1em;
  margin: 4px 0 18px;
}
.sec-lead { max-width: 700px; margin-bottom: 40px; }
.sub-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--green-dark);
  letter-spacing: 0.08em;
  margin: 56px 0 24px;
  padding-left: 14px;
  border-left: 4px solid var(--orange);
}
.section-green { background: var(--green); color: var(--white); }
.section-green .sec-title, .section-green .sub-title { color: var(--white); }
.section-green .sec-num { color: #EBB58C; }
.section-beige { background: var(--beige-2); }

/* --- 斜めカット境界（白川田・中原風の動き。画像加工不要・CSSのみ） --- */
.section-slant {
  /* 上辺のみの片斜め。マイナスマージンを廃止し、直前セクションとの重なり事故を回避 */
  clip-path: polygon(0 2.6vw, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(88px + 2.6vw);
}

/* --- 事業内容 --- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.biz-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(43, 43, 43, 0.07);
}
.biz-card .ph { aspect-ratio: 4 / 3; }
.biz-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.biz-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--green-dark);
  letter-spacing: 0.08em;
  padding: 18px 20px 0;
}
.biz-card p { padding: 8px 20px 22px; font-size: 14px; }

/* --- 数字 --- */
.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.num-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 30px 12px 22px;
}
.num-card .num {
  font-family: var(--num-font);
  font-size: clamp(46px, 5vw, 64px);
  font-weight: 600;
  color: #EBB58C;
  line-height: 1;
}
.num-card .unit {
  font-family: var(--serif);
  font-size: 20px;
  margin-left: 4px;
  color: #EBB58C;
}
.num-card p { margin-top: 10px; font-size: 14px; }

/* --- 採用：キャッチ --- */
.recruit-catch {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 32px);
  color: var(--orange-dark);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 12px;
}

/* --- 採用：仲間・現場の写真 --- */
.recruit-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 8px 0 8px;
}
.recruit-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}
.recruit-photo img { width: 100%; height: 100%; object-fit: cover; }
.recruit-photo figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 32px 18px 14px;
  background: linear-gradient(to top, rgba(47, 71, 53, 0.88), transparent);
  color: var(--white);
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

/* --- 先輩の声 --- */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
/* 先輩の声ページ（3枚）は1カラムでゆったり見せ、3枚目の孤立を防ぐ */
.voice-grid-page { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.voice-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(43, 43, 43, 0.07);
  display: grid;
  grid-template-columns: 42% 58%;
}
.voice-photo { aspect-ratio: 3 / 4; height: 100%; }
.voice-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.voice-body { padding: 22px 22px 20px; }
.voice-meta { font-size: 12px; color: #6b6455; letter-spacing: 0.06em; }
.voice-quote {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--green-dark);
  margin: 10px 0;
  line-height: 1.8;
}
.voice-text { font-size: 13.5px; }

/* --- 中間CTA --- */
.mid-cta {
  text-align: center;
  margin: 48px 0 8px;
  padding: 36px 20px;
  background: var(--beige-2);
  border-radius: 8px;
}
.mid-cta p { margin-bottom: 18px; font-weight: 500; }

/* --- 1日の流れ（写真つき） --- */
.day-flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.day-flow li {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(43, 43, 43, 0.07);
}
.day-photo { aspect-ratio: 4 / 3; }
.day-photo img { width: 100%; height: 100%; object-fit: cover; }
.day-text { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px 18px; }
.day-flow .time {
  font-family: var(--num-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--orange);
  min-width: 58px;
}
.day-text p { font-size: 14px; }

/* --- テーブル --- */
.table-wrap { overflow-x: auto; }
.recruit-table, .company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(43, 43, 43, 0.07);
}
.recruit-table th, .company-table th {
  width: 160px;
  text-align: left;
  vertical-align: top;
  background: var(--green);
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.recruit-table td, .company-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.recruit-table .note, .company-table .note { font-size: 12px; color: #6b6455; }
.map-wrap { margin-top: 18px; aspect-ratio: 16/7; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 14px rgba(43, 43, 43, 0.07); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 720px) { .map-wrap { aspect-ratio: 4/3; } }
.map-note { margin-top: 8px; font-size: 12px; color: #6b6455; }
.table-note { font-size: 12.5px; color: #6b6455; margin-top: 10px; }
.section-green .table-note { color: rgba(255, 255, 255, 0.8); }

/* --- 施工実績（手描きライン＋大きい写真バンド・中原組風） --- */
.works-line { line-height: 0; padding: 0 24px; max-width: 1160px; margin: 0 auto 8px; }
.works-line svg { width: 100%; height: 56px; display: block; overflow: visible; }
.works-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 32px;
}
.works-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0;
}
.works-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.works-shot:hover img { transform: scale(1.04); }
.works-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 40px 22px 16px;
  background: linear-gradient(to top, rgba(47, 71, 53, 0.9) 0%, rgba(47, 71, 53, 0.4) 60%, transparent 100%);
  color: var(--white);
}
.works-title {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.04em;
}
.works-client { display: block; font-size: 12px; opacity: 0.92; margin-top: 2px; }

/* --- 社長メッセージ --- */
.president {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}
.president-photo { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; }
.president-photo img { width: 100%; height: 100%; object-fit: cover; }
.president-quote {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--green-dark);
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.06em;
}
.president-name { margin-top: 16px; font-size: 14px; color: #6b6455; }

/* --- 問い合わせ --- */
.contact-tel {
  font-family: var(--num-font);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  margin-bottom: 36px;
}
.contact-tel a { color: var(--white); text-decoration: none; }
.contact-tel span {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.contact-form { max-width: 560px; }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--orange);
}
.form-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.85); margin-bottom: 14px; }
.form-msg { min-height: 1.6em; font-size: 14px; font-weight: 700; color: #FFD9BC; margin-bottom: 10px; }

/* --- フッター --- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 110px;
  text-align: center;
  font-size: 13px;
}
.footer-name { font-family: var(--serif); font-size: 18px; letter-spacing: 0.1em; }
.footer-addr { margin-top: 6px; }
.footer-note {
  margin-top: 20px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
}
.footer-credit { margin-top: 18px; }
.footer-credit a { color: rgba(255, 255, 255, 0.75); }

/* --- スマホ固定CTAバー --- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  grid-template-columns: 6fr 4fr;
  gap: 10px;
  padding: 8px 14px max(6px, env(safe-area-inset-bottom));
  background: rgba(245, 241, 232, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s;
}
.mobile-cta.is-hidden { transform: translateY(110%); }
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--white);
}
.cta-apply { background: var(--orange); }
.cta-tel { background: var(--green); }

/* --- トースト --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 120;
  max-width: 92vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- reveal --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- 画像未配置プレースホルダ --- */
.ph { background: var(--beige-2); position: relative; }
.ph::after {
  content: attr(data-file);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #9a9077;
  letter-spacing: 0.05em;
}
.ph.is-loaded::after { content: none; }
.ph img.img-missing { visibility: hidden; }

/* --- サブページ：見出し帯・パンくず --- */
.page-header {
  background: var(--green);
  color: var(--white);
  padding: 64px 0 48px;
}
.page-header .inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.page-header .en {
  font-family: var(--num-font);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #EBB58C;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: 0.1em;
  margin: 6px 0 14px;
}
.page-header p { max-width: 720px; font-size: 15px; }
.breadcrumb {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 12.5px;
  color: #6b6455;
}
.breadcrumb a { color: var(--green-dark); }

/* --- トップ：もっと見る・採用リンクカード・CTA帯 --- */
.more-link { text-align: center; margin-top: 36px; }
.recruit-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  text-decoration: none;
  box-shadow: 0 2px 14px rgba(43, 43, 43, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.link-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(43, 43, 43, 0.12); }
.link-num {
  font-family: var(--num-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--orange);
  min-width: 30px;
}
.link-body strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--green-dark);
  letter-spacing: 0.04em;
}
.link-body span { display: block; font-size: 12.5px; color: #6b6455; margin-top: 2px; }
.cta-band { text-align: center; }
.cta-band .sec-lead { margin-left: auto; margin-right: auto; }

/* --- 資格取得支援 --- */
.shikaku-box {
  background: var(--white);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  padding: 28px 30px;
  box-shadow: 0 2px 14px rgba(43, 43, 43, 0.07);
  max-width: 760px;
}
.shikaku-box h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.shikaku-box ul { list-style: none; margin-top: 12px; }
.shikaku-box li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.shikaku-box li::before { content: "✓"; position: absolute; left: 4px; color: var(--orange); font-weight: 700; }
.shikaku-note { font-size: 12px; color: #6b6455; }

/* --- レスポンシブ --- */
@media (max-width: 1000px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-grid { grid-template-columns: 1fr; }
  .day-flow { grid-template-columns: repeat(2, 1fr); }
}
/* 屋号＋ナビ5本＋電話＋応募ボタンを1行に収めるには約1040px要る。800pxまでPCナビを引っぱると
   801〜1040pxでナビ全項目と電話番号が2行に折り返し、ヘッダーが74→102pxに膨らんでいた。
   ハンバーガーへの切り替えを1040pxに引き上げる（ヒーローや固定バーの調整は800pxのまま）。 */
@media (max-width: 1040px) {
  .header-cta { display: none; }
  .menu-toggle {
    position: relative;
    z-index: 96;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--green-dark); transition: transform 0.25s, opacity 0.25s; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(75vw, 320px);
    background: var(--green-dark);
    flex-direction: column;
    gap: 0;
    padding: 90px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.3s, visibility 0.3s;
    visibility: hidden; /* 閉じた状態で画面外幅が横スクロールに計上されるのを防ぐ（Codex QA指摘） */
    z-index: 95;
  }
  body.menu-open .nav { transform: none; visibility: visible; }
  .nav a { color: var(--white); padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.15); }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 64px; }
  .header-inner { padding: 10px 16px; gap: 12px; }
  .logo-name { font-size: 17px; }
  /* 上の .hero で幅ごとに引いた height を打ち消さないよう min-height は指定しない */
  /* §2.4：スマホは上寄せ＋テキスト最小・CTAは固定バーに担わせ、上部の空き／人物隠れを防ぐ */
  .hero-copy { justify-content: flex-start; padding-top: 44px; padding-bottom: 0; }
  /* PC用オーバーレイは下重視（テキスト中央〜下寄り想定）だが、スマホは文字が上部にあるため
     上部を重点的に暗くする専用グラデーションに差し替える（2026-07-17 kensetsu：文字ゾーンと
     人物の顔が数値上重なっていたため、写真は差し替えず上部の可読性オーバーレイで対応） */
  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(20, 26, 20, 0.62) 0%, rgba(20, 26, 20, 0.28) 38%, transparent 60%),
      linear-gradient(to top, rgba(20, 26, 20, 0.3) 0%, transparent 28%);
  }
  .hero-catch { font-size: clamp(28px, 8vw, 34px); letter-spacing: 0.08em; }
  /* この写真は人物の顔が画像上部30%付近まで来ており、タグ＋見出し2行＋リード文の
     合計高が顔の位置を超えて重なる（2026-07-17 kensetsu：Codex QAで指摘）。
     リード文はスマホでは非表示にし、タグ・見出しだけを顔より上の余白に収める */
  .hero-lead { display: none; }
  .hero-btns { display: none; }
  .hero-btns .btn-lg { padding: 14px 26px; font-size: 15px; }
  .section { padding: 64px 0; }
  .biz-grid { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .voice-card { grid-template-columns: 1fr; }
  .voice-photo { aspect-ratio: 4 / 3; }
  .works-band { grid-template-columns: 1fr; }
  .works-line svg { height: 40px; }
  .day-flow { grid-template-columns: 1fr; }
  .recruit-photos { grid-template-columns: 1fr; }
  .recruit-links { grid-template-columns: 1fr; }
  .page-header { padding: 44px 0 34px; }
  .president { grid-template-columns: 1fr; gap: 20px; }
  .president-photo { max-width: 240px; }
  .recruit-table th, .company-table th { width: 110px; padding: 12px; }
  .mobile-cta { display: grid; }
  .site-footer { padding-bottom: 130px; }
}
