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

:root {
  --beige: #FBFAF7;
  --beige-2: #F2EFE8;
  --green: #3E5C45;
  --green-dark: #2F4735;
  --orange: #D97B3F;
  --orange-dark: #C2662C;
  --ink: #2B2B2B;
  --white: #FFFFFF;
  --line: #E3DDD0;
  --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: 117px; } /* バナー＋ヘッダーの常駐分 */
/* スマホドロワー等による横スクロールの安全弁 */
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 {
  /* 追従するのはヘッダーだけ。 */
  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; /* バナーは追従しないので画面の一番上に貼り付く
             （html の overflow-x:hidden は sticky を殺すので body だけに付ける） */
  z-index: 100;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  /* backdrop-filterはposition:fixed(.nav)のcontaining blockを生成し横スクロールの原因になるため不使用 */
}
.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; }

/* --- ヒーロー（左＝写真が透ける緑の斜め板／右＝洞爺湖と重機） ---
   高さはバナー＋ヘッダーの常駐分を引いた1画面。スマホは script.js が開いた時の高さを px で固定する。 */
.hero {
  position: relative;
  height: calc(100svh - 117px);
  min-height: 560px;
  overflow: hidden;
  background: var(--white);
}
@media (max-width: 1040px) { .hero { height: calc(100svh - 108px); } html { scroll-padding-top: 108px; } }
@media (max-width: 510px) { .hero { height: calc(100svh - 134px); } html { scroll-padding-top: 134px; } }
.hero-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.1);
  animation: heroPhoto 1.8s .2s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  background:
    linear-gradient(120deg, rgba(38, 58, 44, .92) 0%, rgba(62, 92, 69, .78) 55%, rgba(62, 92, 69, .35) 100%),
    url(images/site-wide.jpg) center / cover;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
  transform: translateX(-100%);
  animation: heroSlide 1.1s cubic-bezier(.7, 0, .2, 1) forwards;
}
.hero-copy {
  position: absolute;
  z-index: 3;
  left: max(6vw, calc((100vw - 1160px) / 2 + 24px));
  top: 50%;
  transform: translateY(-50%);
  max-width: 560px;
  color: var(--white);
}
.hero-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(46px, 6vw, 84px);
  letter-spacing: .18em;
  line-height: 1.15;
  opacity: 0;
  animation: fadeUp .9s .9s forwards;
}
.hero-name-en {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  margin: 12px 0 30px;
  opacity: 0;
  animation: fadeUp .9s 1.1s forwards;
}
.hero-name-en::before, .hero-name-en::after { content: ""; height: 1px; width: 48px; background: rgba(255, 255, 255, .7); }
.hero-catch {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.6;
  letter-spacing: .1em;
}
.hero-catch span {
  display: inline-block;
  border-bottom: 2px solid var(--orange);
  margin: 2px 0;
  clip-path: inset(0 100% 0 0);
  animation: wipe .8s 1.3s forwards;
}
.hero-catch span:nth-of-type(2) { animation-delay: 1.55s; }
.hero-lead {
  margin-top: 22px;
  font-size: clamp(14px, 1.3vw, 16px);
  letter-spacing: .12em;
  opacity: 0;
  animation: fadeUp .9s 1.9s forwards;
}
.hero-badge {
  position: absolute;
  z-index: 4;
  right: 5vw;
  bottom: 6vh;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--orange);
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--orange-dark);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  opacity: 0;
  transform: scale(.6);
  animation: pop .6s 2.2s cubic-bezier(.3, 1.6, .5, 1) forwards;
}
.hero-badge small { display: block; font-family: var(--num-font); font-size: 12px; letter-spacing: .2em; }
@keyframes heroSlide { to { transform: none; } }
@keyframes heroPhoto { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes pop { to { opacity: 1; transform: none; } }

/* --- セクション共通 --- */
.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(251, 250, 247, 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); }
  body.menu-open .menu-toggle span { background: var(--white); } /* 開いた時の×が緑の板に沈んで見えなかった */
  .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; /* 閉じた状態で画面外幅が横スクロールに計上されるのを防ぐ */
    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) {
  .header-inner { padding: 10px 16px; gap: 12px; }
  .logo-name { font-size: 17px; }
  .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; }
}


/* ================================================================
   タップ領域 44x44px の確保（Apple HIG / Android 48dp）
   実測（375px幅）：フッターメニュー 15〜20px／ハンバーガー内ナビ 15〜27px
   ／ハンバーガーのボタン 34〜39px／ヘッダー屋号 38px。
   inline-flex を使うのは、横並びのフッターメニューで幅いっぱいに
   伸びてしまうのを避けつつ、行の高さだけ 44px にするため。
   ================================================================ */
@media (max-width: 767px) {
  footer nav a,
  footer .fnav a, footer .f-nav a, footer .footer-nav a,
  header nav a, header .nav a,
  .mobile-nav a, .sp-nav a, .drawer a,
  nav.gnav a, nav.global a, nav.main-nav a, nav.nav a, nav.footer-nav a, nav.fnav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* ハンバーガーのボタン本体（34x36〜38px だった） */
  /* ハンバーガー。cafe-tart は <button> ではなく <label role="button"> の
     チェックボックス方式なので、要素名ではなく aria-controls で拾う。 */
  .nav-toggle, .menu-btn, .menu-toggle, .mnav-btn, .hamburger, .burger,
  [aria-controls][role="button"], button[aria-controls] {
    min-width: 44px;
    min-height: 44px;
  }
  /* ヘッダー内のアイコンボタン（cafe の LINE 💬 が 45x39 だった） */
  header a.line, header a.icon, header .header-actions a, header .contact-quick a {
    min-height: 44px;
    min-width: 44px;
  }
  /* nav で囲われていないフッターのリンク（cafe / reform / hamada-seibi /
     hidamari-piano / painter / pokke-dental 等は ul や div 直下に置いている）。
     制作者クレジットのリンクも 15〜19px しかなく同じ扱いにする。 */
  footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* ヘッダーの屋号・ロゴ（36〜40px。押せるのに一回り小さい） */
  /* shurou-b の .name（209x20）は除外：44pxにするとヘッダーが69→91pxへ
     22pxも伸びてしまう。横209pxあり隣接リンクも無いため誤タップの実害が薄い。 */
  header .logo, header .logo-wrap, header .brand-logo, header .brand,
  header h1 a {
    min-height: 44px;
  }
}

/* ===== 押せる合図の帯 ===== */
.link-card { flex-direction: column; align-items: stretch; padding: 18px 20px 0; }
.link-row { display: flex; align-items: center; gap: 16px; }
.link-card .go {
  margin: auto -20px 0; padding: 11px 12px; display: flex; align-items: center;
  justify-content: center; gap: 8px; background: var(--beige-2);
  border-top: 1px solid var(--line); border-radius: 0 0 7px 7px;
  font-size: 13px; font-weight: 700; color: var(--green-dark);
  transition: background .2s, color .2s;
}
.link-card .go::after { content: '\25b6'; font-size: 10px; }
.link-card:hover .go { background: var(--green-dark); color: #fff; border-top-color: var(--green-dark); }

/* ================================================================
   見せ方の引き出し
   ・見出しの後ろの大きな英字（明朝・輪郭だけ）が横から来て大きくなる
   ・写真の後ろに緑の板をずらして重ねる／カードを順番に下から出す
   ・数字が増える／斜めの段の切り替え／採用は写真と文章が左右から入る
   動きは prefers-reduced-motion で全部止める（末尾）
   ================================================================ */
.section, .page-header { overflow-x: clip; }

/* --- 見出し：大きな英字＋オレンジの飾り線 --- */
.sec-head { position: relative; text-align: center; padding: 18px 0 6px; margin-bottom: 44px; }
.sec-head.reveal { opacity: 1; transform: none; }
.big-en {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(64px, 12vw, 170px);
  line-height: 1;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(62, 92, 69, .2);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translate(-90%, -50%) scale(.6);
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1), opacity 1.4s;
}
.sec-head.is-visible .big-en { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sec-head .sec-num, .sec-head .sec-title { position: relative; z-index: 1; }
.sec-head .sec-title { margin: 2px 0 0; }
.sec-head .sec-title::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin: 14px auto 0;
  background: var(--orange);
  transition: width .8s .6s;
}
.sec-head.is-visible .sec-title::after { width: 48px; }
.sec-head + .sec-lead { margin: -16px auto 44px; text-align: center; }
.section-green .big-en { -webkit-text-stroke-color: rgba(255, 255, 255, .16); }

/* --- 下層ページの見出し帯：ヒーローと同じ「写真が透ける緑」＋斜めの裾 --- */
.page-header {
  position: relative;
  background:
    linear-gradient(120deg, rgba(38, 58, 44, .93) 0%, rgba(62, 92, 69, .82) 60%, rgba(62, 92, 69, .62) 100%),
    url(images/site-wide.jpg) center / cover;
  padding: 84px 0 calc(64px + 3vw);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%);
}
.page-header .inner { position: relative; z-index: 1; }
.page-header .big-en {
  left: auto;
  right: -1vw;
  top: auto;
  bottom: 2vw;
  font-size: clamp(64px, 11vw, 160px);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .2);
  transform: translateX(30%) scale(.7);
  transform-origin: right bottom;
  animation: bigEnIn 1.4s .2s cubic-bezier(.2, .7, .2, 1) forwards;
  transition: none;
}
@keyframes bigEnIn { to { opacity: 1; transform: none; } }
.page-header h1 { font-weight: 900; margin: 0 0 18px; }
.page-header h1::after { content: ""; display: block; width: 0; height: 3px; margin-top: 12px; background: var(--orange); animation: lineIn .8s .6s forwards; }
@keyframes lineIn { to { width: 48px; } }
.page-header p { animation: fadeUp .9s .5s both; }

/* --- 事業内容：写真の後ろに緑の板をずらして重ねる --- */
.biz-grid { gap: 56px 40px; }
.biz-card { background: none; border-radius: 0; overflow: visible; box-shadow: none; }
.biz-card .ph { margin: 0 14px 26px 0; }
.biz-card .ph::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: 0;
  background: var(--green);
  transform: translate(-14px, -14px);
  transition: transform .9s .3s cubic-bezier(.2, .7, .2, 1);
}
.biz-card.is-visible .ph::before { transform: none; }
.biz-card .ph img { position: relative; z-index: 1; }
.biz-no {
  position: absolute;
  z-index: 2;
  left: -4px;
  top: -24px;
  font-family: var(--num-font);
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  color: var(--orange);
}
.biz-card h3 { padding: 0; margin: 4px 0 6px; font-size: 20px; }
.biz-card p { padding: 0; font-size: 14.5px; }

/* --- 数字：上下とも斜めの段 --- */
#numbers { clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%); padding: calc(88px + 4vw) 0; }
.num-card { background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, .25); border-radius: 0; }

/* --- 採用：写真と文章が左右から入る --- */
.recruit-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-bottom: 20px; }
.recruit-split-photo { aspect-ratio: 3 / 2; margin: 0; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.recruit-split-photo img { width: 100%; height: 100%; object-fit: cover; }
.recruit-en { font-family: var(--num-font); font-weight: 600; letter-spacing: .3em; color: var(--green); font-size: 13px; }
.recruit-split .recruit-catch { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.6; margin: 6px 0 18px; }
.recruit-note { margin-top: 14px; font-size: 13.5px; color: #6b6455; }

/* --- 社長：写真の後ろに緑の板 --- */
.president-photo { overflow: visible; border-radius: 0; margin: 0 14px 14px 0; }
.president-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--green); transform: translate(-14px, -14px); transition: transform .9s .3s cubic-bezier(.2, .7, .2, 1); }
.president.is-visible .president-photo::before { transform: none; }
.president-photo img { position: relative; z-index: 1; }

/* --- 下から／左右から出る --- */
.reveal { transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); transform: translateY(40px); }
.reveal.from-left { transform: translateX(-80px); }
.reveal.from-right { transform: translateX(80px); }
.reveal.is-visible { transform: none; }
.link-card.reveal.is-visible:hover { transform: translateY(-2px); }

@media (max-width: 800px) {
  /* スマホ：上＝緑の板に文字、下＝縦用の写真を斜めに切って見せる（写真と文字を分ける） */
  .hero { height: var(--hero-h, calc(100svh - 134px)); min-height: 0; }
  .hero-photo { inset: 44% 0 0 0; clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); }
  .hero-photo img { object-position: center 20%; }
  .hero-panel { width: 100%; height: 60%; clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); transform: translateY(-100%); }
  .hero-copy { left: 22px; right: 22px; top: 30px; transform: none; max-width: none; }
  .hero-name { font-size: clamp(40px, 12vw, 54px); letter-spacing: .12em; }
  .hero-name-en { margin: 6px 0 16px; font-size: 11px; letter-spacing: .26em; }
  .hero-name-en::before, .hero-name-en::after { width: 28px; }
  .hero-catch { font-size: clamp(22px, 6.2vw, 27px); }
  .hero-lead { margin-top: 10px; font-size: 13px; letter-spacing: .06em; }
  .hero-badge { width: 100px; height: 100px; right: 14px; bottom: 14px; font-size: 12px; }
  .hero-badge small { font-size: 10px; }
  .sec-head { margin-bottom: 32px; }
  .big-en { font-size: clamp(54px, 17vw, 96px); }
  .sec-head + .sec-lead { text-align: left; }
  .recruit-split { grid-template-columns: 1fr; gap: 28px; }
  .biz-grid { gap: 48px; }
  .page-header { padding: 56px 0 calc(44px + 3vw); }
  .page-header .big-en { font-size: clamp(54px, 16vw, 96px); }
  .reveal.from-left { transform: translateX(-40px); }
  .reveal.from-right { transform: translateX(40px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-panel, .hero-name, .hero-name-en, .hero-lead, .hero-badge,
  .page-header .big-en, .page-header p { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-catch span { animation: none !important; clip-path: none !important; }
  .page-header h1::after { animation: none; width: 48px; }
  .big-en, .sec-title::after, .biz-card .ph::before, .president-photo::before, .reveal { transition: none !important; }
  .big-en { opacity: 1; transform: translate(-50%, -50%); }
  .page-header .big-en { transform: none; }
  .sec-title::after { width: 48px !important; }
  .biz-card .ph::before, .president-photo::before { transform: none; }
}
