/* =============================================================
   天帝建設株式会社 — Static Build (Weasy)
   style.css : design tokens + base + components
   ============================================================= */

/* ---------- 1. Design tokens (Color Lock) ---------- */
:root {
  /* Navy scale */
  --navy-900: #16203a;   /* near-black navy : section box / NEWS label */
  --navy-800: #1e2a44;   /* footer */

  /* Slate (subpage header band / CTA band) */
  --slate-600: #445b7a;

  /* Steel blue (EN display headings on light bg) */
  --display-blue: #7b90ac;

  /* Accent (orange / gold) */
  --accent: #eda73b;
  --accent-strong: #e0982a;

  /* Tints & neutrals */
  --tint-blue: #eaf4fd;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --ink: #232733;
  --ink-soft: #5a6270;
  --ink-mute: #8a929c;
  --line: #e2e6ec;
  --white: #ffffff;

  /* Typography */
  --font-serif-jp: "Noto Serif TC", "Shippori Mincho", "Yu Mincho", serif;   /* Noto Serif TC は「天」1文字のみ読込（text= サブセット） */
  --font-sans-jp: "Noto Sans TC", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;   /* 同上 */
  --font-display: "Poppins", sans-serif;   /* 中抜き（-webkit-text-stroke）で使うため、輪郭が交差しないフォントを選定。Montserrat は a/e/n/r/t/u/v が崩れる（2026-07-16 検査） */

  /* Layout */
  --container: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;

  /* Sticky header measured height (site-header.is-stuck) */
  --header-h-stuck: 61px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 15px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.4; }
p { margin: 0; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }

/* Screen-reader-only utility (SEO用 h1/h2 の視覚非依存配置) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Image placeholder (real photos dropped in later) */
.ph {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #e8edf3 0%, #dbe3ec 100%);
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: "IMAGE";
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .25em;
  color: #a9b6c6;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--dark { background: linear-gradient(135deg, #3a4a63 0%, #26314f 100%); }
.ph--dark::after { color: rgba(255,255,255,.35); }

/* 画像差し込み済みスロット。"IMAGE" ラベルの
   lazy 読み込み中ちらつきを抑制する。background は
   読み込み中・404 のフォールバックとして残す（§8-0） */
.ph--img::after { content: none; }

/* CTA帯：カンプの意図＝足元中心。見出しのスレート帯が画像上部を覆うため、
   bottom では瓦礫しか露出しない。55% で作業員の足元＋瓦礫が入る（§8-2） */
.cta-band__bg .ph img { object-position: center 55%; }

/* §8-2 hero：既定 50% では空が余り、地面・重機が切れる。60% で下寄せ */
.hero__media .ph img { object-position: center 60%; }

/* ---------- 4. Display / eyebrow typography ---------- */
.en-head {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--display-blue);
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: .01em;
  line-height: 1.1;
}
.jp-sub {
  font-family: var(--font-sans-jp);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink);
  margin-top: 14px;
  display: flex; align-items: center; gap: .5em;
}
.jp-sub::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--slate-600); flex: none;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 2.5em;
  min-width: 240px;
  padding: 15px 26px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--slate-600);
  border-radius: var(--radius);
  background-color: var(--white);
  background-image: linear-gradient(var(--slate-600), var(--slate-600));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  color: var(--ink);
  transition: background-size .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .arrow { position: relative; width: 39px; height: 1px; background: currentColor; flex: none; }
.btn .arrow::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 8px; height: 1px; background: currentColor;
  transform: rotate(45deg); transform-origin: right bottom;
}
.btn--light { border-color: var(--line); color: var(--ink-soft); }
.btn--accent {
  background-color: var(--accent);
  background-image: linear-gradient(var(--accent-strong), var(--accent-strong));
  border-color: var(--accent); color: #fff; font-weight: 700;
  justify-content: center; gap: 0;
}
@media (hover: hover) {
  .btn:hover { background-size: 100% 100%; color: var(--white); border-color: var(--slate-600); }
  .btn--accent:hover { border-color: var(--accent-strong); color:#fff; }
}
@media (hover: none) {
  .btn { transition: none; }
  .btn:active { background-size: 100% 100%; color: var(--white); border-color: var(--slate-600); }
  .btn--accent:active { border-color: var(--accent-strong); }
}
.btn--block { width: 100%; }

/* =============================================================
   HEADER (floating pill over hero)
   ============================================================= */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  padding-top: 26px;
  transition: padding .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.header-inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.header-bar {
  background: #fff;
  border-radius: 60px;
  box-shadow: 0 14px 40px rgba(22, 32, 58, .16);
  display: flex; align-items: center;
  padding: 12px clamp(24px, 6.25vw, 90px);
  gap: clamp(16px, 2.5vw, 40px);
  /* Transition every property that flips between floating <-> stuck state,
     both directions (add + remove of .is-stuck). No transform — avoids GPU
     compositor layer that would resample text. */
  transition:
    padding .3s var(--ease),
    background .3s var(--ease),
    box-shadow .3s var(--ease),
    border-radius .3s var(--ease);
}

/* Sentinel used by IntersectionObserver to toggle sticky state */
.header-sentinel {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 120px;
  pointer-events: none;
  z-index: -1;
}

/* Sticky state — activated when sentinel scrolls out of viewport.
   State change driven by transitions (defined on .site-header /
   .header-bar), not @keyframes, so add + remove interpolate
   symmetrically. No transforms anywhere — keeps text crisp. */
.site-header.is-stuck {
  position: fixed;
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 18px rgba(22, 32, 58, .08);
  transform: none;
}
/* Stuck: flatten the pill into a full-width white bar
   — bar decoration is delegated to .site-header.is-stuck (bg + shadow).
   Horizontal alignment inherits from .header-inner (container-wide + gutter). */
.site-header.is-stuck .header-bar {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 4px 0;
  transform: none;
}
.site-header.is-stuck .header-cta .pill {
  padding: 10px 20px;
  font-size: 13px;
}
.brand {
  font-family: var(--font-serif-jp);
  font-weight: 700;
  font-size: clamp(19px, 1.9vw, 25px);
  letter-spacing: .06em;
  color: var(--ink);
  white-space: nowrap;
}
.brand { display: inline-flex; align-items: center; gap: .45em; }
.brand__mark { display: block; height: 1.6em; width: auto; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); }
.gnav a {
  font-size: 14px; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0; letter-spacing: .04em; white-space: nowrap;
}
.gnav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--slate-600); transition: right .3s var(--ease);
}
.gnav a:hover::after, .gnav a[aria-current="page"]::after { right: 0; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 11.5em;
  padding: 13px 26px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), padding .3s var(--ease);
}
.pill--ghost { border: 1px solid var(--slate-600); color: var(--ink); }
.pill--ghost:hover { background: var(--slate-600); color: #fff; }
.pill--accent { background: var(--accent); color: #fff; font-weight: 700; }
.pill--accent:hover { background: var(--accent-strong); }

/* hamburger (SP) */
.nav-toggle { display: none; width: 46px; height: 46px; margin-left: auto; border: none; background: transparent; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 24px; height: 2px; background: var(--ink); transition: .3s var(--ease);
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }

/* =============================================================
   HERO (TOP)
   ============================================================= */
/* hero + NEWS バーで1画面。newsbar の高さが変わっても CSS が自動で引き算する
   （案A の calc(100svh - 74px) は newsbar の高さ変更に追従できず、
   ズレても目視で気づけないため不採用）。SP は対象外 */
.hero-viewport { height: 100svh; min-height: 560px; display: flex; flex-direction: column; }
.hero-viewport .hero { flex: 1; height: auto; }
.hero-viewport .newsbar { flex: none; }

.hero { position: relative; height: clamp(560px, 82vh, 820px); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,42,68,.32) 0%, rgba(30,42,68,.05) 40%, rgba(30,42,68,.18) 100%);
}
.hero__copy {
  position: absolute; left: 0; right: 0; bottom: clamp(40px, 7.8%, 90px);   /* カンプ実測：文字下端から hero 下端まで hero 高さの 7.8% */
  padding-inline: var(--gutter);   /* 装飾のためコンテンツ幅に収めない。カンプは画面左端 2.6%（§8-2 hero 参照） */
}
.hero__title {
  font-family: var(--font-display); font-weight: 800; font-style: normal;
  font-size: clamp(56px, 9.5vw, 148px); line-height: .98; letter-spacing: .01em;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(255,255,255,.92);
  text-stroke: 1.3px rgba(255,255,255,.92);
  text-transform: none;
}

/* NEWS ticker bar */
.newsbar { display: flex; align-items: stretch; }
.newsbar__label {
  background: var(--navy-900); color: #fff; font-family: var(--font-display);
  letter-spacing: .22em; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  width: clamp(140px, 15vw, 220px); flex: none;
}
.newsbar__body {
  flex: 1; display: flex; align-items: center;
}
.newsbar__inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 22px clamp(20px, 4vw, 48px);
}
.newsbar__text { font-size: 15px; color: var(--ink); }
/* NEWS ticker rotation（JS無効時は1件目のみ静的表示） */
.newsbar__ticker { flex: 1; position: relative; }
.newsbar__ticker .newsbar__text:not(:first-child) { display: none; }
.newsbar__ticker.is-ready { align-self: stretch; display: flex; align-items: center; }
.newsbar__ticker.is-ready .newsbar__text {
  display: block; position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
}
.newsbar__text .tchar {
  display: inline-block; white-space: pre;
  opacity: 0;
  transform: perspective(400px) translateY(.6em) rotateX(-90deg);
  transform-origin: center bottom;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.newsbar__text.is-active .tchar {
  opacity: 1;
  transform: perspective(400px) translateY(0) rotateX(0);
}
.newsbar__text.is-leaving .tchar {
  opacity: 0;
  transform: perspective(400px) translateY(-.6em) rotateX(90deg);
}
.newsbar__more {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .16em; color: var(--ink-soft);
  white-space: nowrap; position: relative; transition: color .3s var(--ease);
}
.newsbar__more:hover { color: var(--slate-600); }

/* =============================================================
   ABOUT
   ============================================================= */
.about { position: relative; }
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start;
}
.about__body { max-width: 480px; }
.about__text { margin-top: 26px; color: var(--ink-soft); font-size: 14px; line-height: 2.05; }
.about__body .btn { margin-top: 34px; }
.about__media .ph { aspect-ratio: 16 / 11; border-radius: 2px; }

/* decorative outline watermark */
.watermark {
  font-family: var(--font-display); font-weight: 700; font-style: normal;
  font-size: clamp(70px, 14vw, 200px); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(123,144,172,.28);
  margin-top: clamp(24px, 5vw, 64px); overflow: hidden; user-select: none;
}
.watermark__track {
  display: inline-flex;
  animation: watermark-scroll 40s linear infinite;
  will-change: transform;
}
.watermark__track > span { padding-right: .5em; }
@keyframes watermark-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   TOP MESSAGE
   ============================================================= */
.message__grid {
  display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(36px, 6vw, 96px); align-items: center;
}
.message__media .ph { aspect-ratio: 3 / 4; }
.message__body .en-head { margin-bottom: 22px; }
.message__lead { font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; line-height: 1.9; color: var(--ink); }
.message__body .btn { margin-top: 44px; }

/* =============================================================
   OUR BUSINESS
   ============================================================= */
.business__head {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.business__desc { color: var(--ink-soft); font-size: 14px; line-height: 2.05; padding-top: 8px; }
.biz-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.8vw, 24px); }
/* カンプの非対称配置。1・4番目が大（span 4）、2・3番目が小（span 2）。
   大小の割り当ては工種の重要度ではなく左右交互の視覚リズムなので、
   位置（nth-child）で指定するのが意味的に正しい。カードを並び替えると崩れるが、
   崩れは目視で分かる（サイレント故障ではない）。§8-2 biz 参照 */
.biz-card:nth-child(1), .biz-card:nth-child(4) { grid-column: span 4; aspect-ratio: 796 / 334; }
.biz-card:nth-child(2), .biz-card:nth-child(3) { grid-column: span 2; }
.biz-card { position: relative; overflow: hidden; border-radius: 2px; }
.biz-card .ph { position: absolute; inset: 0; }
.biz-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,42,68,.05), rgba(30,42,68,.45));
}
.biz-card__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; text-align: center;
  color: #fff; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: .04em;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.biz-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.biz-card:hover .biz-card__img { transform: scale(1.06); }
.business__foot { display: flex; justify-content: flex-end; margin-top: clamp(22px, 3vw, 34px); }

/* =============================================================
   RECRUIT (TOP)
   ============================================================= */
.recruit__head {
  margin-bottom: clamp(28px, 4vw, 44px);
}
.recruit__desc { color: var(--ink-soft); font-size: 14px; line-height: 2.05; padding-top: 8px; }
.recruit__banner {
  position: relative; height: clamp(300px, 24vw, 335px); overflow: hidden;
  max-width: var(--container); margin-inline: auto;
}
.recruit__banner .ph { position: absolute; inset: 0; }
.recruit__banner::after { content:""; position:absolute; inset:0; background: rgba(30,42,68,.28); }
.recruit__banner .btn {
  position: absolute; right: clamp(20px, 4vw, 56px); top: 50%; transform: translateY(-50%);
  background-color: #fff; z-index: 2;
}

/* =============================================================
   CTA BAND (未来を創造する始まりのシゴト)
   ============================================================= */
.cta-band {
  position: relative; overflow: hidden;
  max-width: var(--container); margin-inline: auto;
  margin-block-end: clamp(56px, 8vw, 104px);
}
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg .ph { position: absolute; inset: 0; }
.cta-band__bg::after { content:""; position:absolute; inset:0; background: rgba(30,42,68,.7); }
.cta-band__inner { position: relative; z-index: 2; }
.cta-band__title {
  text-align: center; color: #fff; font-weight: 700; letter-spacing: .08em;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.4;
  padding: clamp(18px, 2.4vw, 27px); background: rgba(68,91,122,.85);
}
.cta-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: clamp(34px, 5vw, 60px) clamp(20px, 4vw, 40px);
  max-width: var(--container); margin-inline: auto;
}
.cta-col { text-align: center; padding-inline: clamp(10px, 1.6vw, 20px); position: relative; }
.cta-col + .cta-col::before {
  content: ""; position: absolute; left: 0; top: 6%; bottom: 6%; width: 1px; background: rgba(255,255,255,.28);
}
.cta-col__main { color: #fff; font-weight: 700; letter-spacing: .02em; font-size: clamp(20px, 2.2vw, 28px); }
.cta-col:nth-child(n+2) .cta-col__main { font-size: clamp(18px, 2vw, 26px); }
.cta-col a.cta-col__main { transition: color .3s var(--ease); }
.cta-col a.cta-col__main:hover { color: var(--accent); }
.cta-col__sub { color: rgba(255,255,255,.72); font-size: 13px; margin-top: 12px; letter-spacing: .04em; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--navy-800); color: rgba(255,255,255,.86); padding-block: clamp(48px, 6vw, 72px) 0; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 64px); }
.footer-brand { font-family: var(--font-serif-jp); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: .06em; color: #fff; }
.footer-info { margin-top: 22px; font-size: 13px; line-height: 1.85; color: rgba(255,255,255,.78); }
.footer-license { margin-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.66); }
.footer-license dl { display: grid; grid-template-columns: 130px 1fr; row-gap: 6px; }
.footer-license dt { font-weight: 500; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; align-content: start; }
.footer-nav a { font-size: 13.5px; color: rgba(255,255,255,.86); display: inline-flex; align-items: center; gap: .5em; transition: color .3s var(--ease); }
.footer-nav a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; gap: 36px; padding-block: 20px; font-size: 12.5px; color: rgba(255,255,255,.66); }
.footer-bottom a:hover { color: #fff; }

/* =============================================================
   Scroll reveal (Layer 2 motion)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* =============================================================
   Responsive
   ============================================================= */
/* ヘッダー：ロゴ追加に伴う幅調整（広い順に3段階。後のブロックが優先） */
/* 全幅共通：header-inner が 1360px で頭打ちのため、広い画面でも同じ詰めが必要 */
.header-bar { gap: 24px; }
.gnav ul { gap: 20px; }
.header-cta .pill { min-width: 10em; }
@media (max-width: 1280px) {
  .header-bar { padding-inline: 36px; gap: 18px; }
  .gnav ul { gap: 14px; }
  .header-cta .pill { min-width: 0; padding: 12px 18px; }
}
@media (max-width: 1080px) {
  .header-bar { padding-inline: 28px; gap: 14px; }
  .brand { font-size: 18px; }
  .brand__mark { height: 1.5em; }
  .gnav ul { gap: 12px; }
  .header-cta .pill { padding: 12px 14px; }
}
@media (max-width: 1024px) {
  .gnav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .header-bar { border-radius: 40px; padding: 14px 16px 14px 26px; }
  /* Stuck on tablet/SP inherits the flat full-width bar from the desktop rule
     (no border-radius, padding 4px 0). Drawer button stays inside via
     .header-inner's gutter padding — no override needed. */
  .about__grid, .message__grid, .msg-grid, .business__head, .recruit__head, .footer-top { grid-template-columns: 1fr; }
  .message__grid { gap: 32px; }
  .cta-cols { grid-template-columns: 1fr; row-gap: 34px; }
  .cta-col + .cta-col::before { display: none; }
  .cta-col + .cta-col { padding-top: 34px; border-top: 1px solid rgba(255,255,255,.2); }
  .site-header, .header-bar { transition: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .hero { height: 78vh; min-height: 480px; }
  /* SP は hero だけで1画面。newsbar は2段になり高さが倍増するため含めない */
  .hero-viewport { height: auto; min-height: 0; display: block; }
  .hero-viewport .hero { height: 78vh; }
  .hero__media .ph img { object-position: center 55%; }
  .newsbar { flex-direction: column; }
  .newsbar__label { width: 100%; padding: 12px 0; }
  .newsbar__body { flex-wrap: wrap; gap: 12px; }
  .biz-grid { grid-template-columns: 1fr; }
  /* SP は1列・全カード同サイズ。PC の span と aspect-ratio をリセットする。
     span が残ると暗黙カラムが生成され、aspect-ratio を持たない 2・3番目が高さ0で消える。
     SP のカンプは存在しないため、非対称配置は PC/タブレットのみとする */
  .biz-card:nth-child(1), .biz-card:nth-child(2),
  .biz-card:nth-child(3), .biz-card:nth-child(4) { grid-column: auto; aspect-ratio: 16 / 9; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-license dl { grid-template-columns: 1fr; row-gap: 2px; }
  .footer-license dt:not(:first-child) { margin-top: 10px; }
  .footer-license dd { margin: 0; }
  .footer-bottom-inner { flex-direction: column; gap: 10px; }
  .btn { min-width: 0; width: 100%; }
}

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60; background: rgba(22,32,58,.98);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 40px var(--gutter); transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-nav.is-open { transform: none; }
.mobile-nav a { color: #fff; font-size: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-nav .m-cta { display: flex; gap: 12px; margin-top: 24px; }
.mobile-nav .m-cta a { flex: 1; text-align: center; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; }
.mobile-nav .m-cta a.accent { background: var(--accent); border-color: var(--accent); }
.mobile-nav__close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; background: none; border: none; }
.mobile-nav__close::before, .mobile-nav__close::after { content:""; position: absolute; left: 10px; top: 21px; width: 24px; height: 2px; background: #fff; }
.mobile-nav__close::before { transform: rotate(45deg); } .mobile-nav__close::after { transform: rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .biz-card__img { transition: none !important; }
  /* Sticky header: keep fixed positioning, disable all state transitions */
  .site-header, .header-bar, .header-cta .pill { transition: none !important; }
  .site-header.is-stuck .header-bar { transform: none !important; }
  .watermark__track { animation: none !important; }
  .newsbar__text .tchar { transition: none !important; }
  .btn { transition: none !important; }
}

/* =============================================================
   SUBPAGE HEADER BAND (下層ヘッダー帯)
   ============================================================= */
.subhead-band {
  position: relative;
  background: var(--slate-600);
  color: #fff;
  overflow: hidden;
  padding-top: clamp(120px, 15vw, 170px);
  padding-bottom: clamp(50px, 7vw, 90px);
}
.subhead-band__inner { position: relative; z-index: 2; }
.subhead-band__crumbs {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .16em;
  color: rgba(255,255,255,.7); text-transform: lowercase;
}
.subhead-band__crumbs a { color: inherit; transition: color .3s var(--ease); }
.subhead-band__crumbs a:hover { color: #fff; }
.subhead-band__en {
  font-family: var(--font-display); font-style: normal; font-weight: 700;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1; letter-spacing: .04em;
  margin: 14px 0 0;
}
.subhead-band__jp {
  color: #fff; font-size: clamp(14px, 1.4vw, 16px); font-weight: 500;
  margin-top: 12px; display: flex; align-items: center; gap: .55em; letter-spacing: .06em;
}
.subhead-band__jp::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
}
.subhead-band__media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 42%; z-index: 1;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
.subhead-band__media .ph { position: absolute; inset: 0; }
.subhead-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(68,91,122,.85) 40%, rgba(68,91,122,.2) 100%);
  pointer-events: none;
}

/* =============================================================
   2-COLUMN PAGE LAYOUT (下層 会社案内・実績・お知らせ)
   ============================================================= */
.page-2col__grid {
  display: grid; grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.side-nav {
  background: var(--navy-900); color: #fff;
  padding: 30px 26px;
  position: sticky; top: calc(var(--header-h-stuck) + 24px);
}
.side-nav__label {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  color: var(--display-blue); font-size: 22px; letter-spacing: .04em;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.side-nav ul { margin-top: 4px; }
.side-nav li a,
.side-nav li .side-nav__filter {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 2px;
  font-size: 13px; color: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(255,255,255,.14);
  letter-spacing: .04em; transition: color .3s var(--ease);
}
.side-nav li .side-nav__filter {
  width: 100%;
  background: transparent;
  border-top: 0; border-left: 0; border-right: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.side-nav li a::after,
.side-nav li .side-nav__filter::after {
  content: ""; width: 6px; height: 6px;
  border-top: 1px solid var(--accent); border-right: 1px solid var(--accent);
  transform: rotate(45deg); margin-left: 12px;
}
.side-nav li a:hover,
.side-nav li .side-nav__filter:hover { color: #fff; }
.side-nav li .side-nav__filter[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
.side-nav li:last-child a,
.side-nav li:last-child .side-nav__filter { border-bottom: none; }

/* Category filter (news.html): hide non-matching cards, show empty message */
.news-card.is-filtered-out { display: none; }
.news-empty {
  margin: 24px 0 0;
  padding: 32px 16px;
  color: var(--ink-soft);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.page-block { scroll-margin-top: calc(var(--header-h-stuck) + 40px); }
.page-block + .page-block { margin-top: clamp(64px, 8vw, 104px); }
.page-block > .jp-sub { margin-bottom: clamp(24px, 3vw, 36px); }

/* Message (会社案内 代表挨拶) */
.msg-grid {
  display: grid; grid-template-columns: minmax(0, 340px) 1fr; /* 2026-10-15 縦写真に合わせ2カラム化 */
  gap: clamp(28px, 5vw, 56px); align-items: start;
}
.msg-grid__media .ph { aspect-ratio: 3 / 4; }
@media (max-width: 1024px) {
  .msg-grid { grid-template-columns: 1fr; } /* 2026-10-29 基本指定(.msg-grid)より後に置かないと1列化が効かないため */
}
.msg-grid__lead {
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; line-height: 1.9; color: var(--ink);
}
.msg-grid__text { margin-top: 22px; font-size: 14px; line-height: 2.05; color: var(--ink-soft); }
.msg-grid__sign { margin-top: 30px; text-align: right; }
.msg-grid__sign span { display: block; font-size: 13px; color: var(--ink-soft); letter-spacing: .06em; }
.msg-grid__name {
  font-family: var(--font-serif-jp); font-size: 22px; color: var(--ink);
  font-weight: 700; margin-top: 6px !important; letter-spacing: .12em;
}

/* Profile table (会社概要) */
.profile-table { border-top: 1px solid var(--line); }
.profile-table > div {
  display: grid; grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 20px 4px; align-items: baseline; gap: 16px;
}
.profile-table dt {
  font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: .06em;
}
.profile-table dd { font-size: 14px; color: var(--ink); line-height: 1.9; }
.phrase { display: inline-block; max-width: 100%; } /* 2026-10-29 改行させない語のまとまり。幅を超える場合のみ内部で折り返す */
.office { display: block; } /* 2026-10-29 会社概要の営業所1件分 */
.office .sp-block { display: block; } /* 2026-11-10 営業所は PC でも 名称／〒／住所 の行分けに（先方指示）。SP は住所が幅に応じてさらに2行に分かれる */
.office + .office { margin-top: .9em; }

/* Profile table (会社概要) — 許可概要セル内の 工種名/許可番号 リスト */
.license-heading {
  margin: 0 0 10px;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.license-list { display: flex; flex-direction: column; gap: 6px; }
.license-list > li {
  display: grid;
  grid-template-columns: minmax(140px, 170px) 1fr;
  gap: 12px; align-items: baseline;
}
.license-list__type { color: var(--ink); font-size: 14px; }
.license-list__no { color: var(--ink-soft); font-size: 13px; }

/* Profile table modifier (沿革) — 年月列を詰めて縦テーブル化 */
.profile-table--history > div {
  grid-template-columns: 120px 1fr;
  padding: 14px 4px;
}
.profile-table--history dt {
  font-size: 13px; color: var(--ink-soft); letter-spacing: .04em;
  white-space: nowrap;
}
.map {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: clamp(28px, 4vw, 40px);
  border-radius: 2px;
  overflow: hidden;
}
.map .ph { position: absolute; inset: 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.page-block > .jp-sub + .map { margin-top: 0; }

/* ISO stack (縦積みフルワイド) */
.iso-stack { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.iso-block__title {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--slate-600);
  letter-spacing: .08em;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.iso-block__lead {
  margin: 0 0 14px;
  font-size: 14px; line-height: 2;
  color: var(--ink-soft);
}
.iso-list {
  margin: 4px 0 0;
  padding-left: 1.8em;
  font-size: 14px; line-height: 2;
  color: var(--ink-soft);
}
.iso-list > li { margin-top: 6px; padding-left: 4px; }
.iso-list > li:first-child { margin-top: 0; }
.iso-list--dot > li::before { content: "・"; }
.iso-list--num { counter-reset: iso-num; }
.iso-list--num > li { counter-increment: iso-num; }
.iso-list--num > li::before { content: counter(iso-num) "."; }
.iso-list--dot > li,
.iso-list--num > li { position: relative; padding-left: 1.6em; }
.iso-list--dot > li::before,
.iso-list--num > li::before { position: absolute; left: 0; top: 0; }
.iso-sublist {
  list-style: none;
  margin: 8px 0 4px;
  padding-left: 0;
}
.iso-sublist > li {
  position: relative;
  padding-left: 1.8em;
  margin-top: 4px;
}
.iso-sublist > li::before {
  position: absolute; left: 0; top: 0;
  color: var(--slate-600);
  font-feature-settings: "palt";
}
.iso-sublist > li:nth-child(1)::before { content: "①"; }
.iso-sublist > li:nth-child(2)::before { content: "②"; }
.iso-sublist > li:nth-child(3)::before { content: "③"; }
.iso-sublist > li:nth-child(4)::before { content: "④"; }

/* =============================================================
   ACHIEVEMENTS — Implementation Results (実績カード)
   ============================================================= */
.works-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}
.work-card { position: relative; background: #fff; }
.work-card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px;
}
.work-card__media .ph { position: absolute; inset: 0; }
.work-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work-card:hover .work-card__img { transform: scale(1.06); }
.work-card__body { padding: 18px 2px 0; }
.work-card__cat {
  display: inline-block; background: var(--slate-600); color: #fff;
  font-size: 11px; letter-spacing: .14em; padding: 5px 12px;
  border-radius: 2px; font-weight: 500;
}
.work-card__place {
  margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--ink);
  letter-spacing: .04em; line-height: 1.6;
}
.work-card__date {
  margin-top: 6px; font-size: 12px; color: var(--ink-mute);
  font-family: var(--font-display); letter-spacing: .1em;
}
.works-more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
/* 2026-11-12 施工実績カードは4枚ずつ表示（main.js が5枚目以降のカードに hidden を付ける）。工事経歴と同じ方式で、属性セレクタで display: flex より強くしてある */
.works-grid > .work-card[hidden] { display: none; }
.works-more[hidden] { display: none; }
.works-more .btn { line-height: inherit; letter-spacing: inherit; }

/* =============================================================
   ACHIEVEMENTS — Construction History (工事経歴テーブル)
   ============================================================= */
.history-table {
  width: 100%; border-collapse: collapse;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.history-table th, .history-table td {
  padding: 16px 12px; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline; line-height: 1.7;
}
.history-table thead th {
  font-size: 12px; letter-spacing: .1em; color: var(--ink-soft);
  font-weight: 500; background: var(--bg-soft);
}
.history-table .col-date {
  width: 130px; font-family: var(--font-display);
  font-size: 12.5px; color: var(--ink-mute);
  letter-spacing: .06em; white-space: nowrap;
}
.history-table .col-area { width: 140px; color: var(--ink-soft); font-size: 13px; }
.history-table .col-type { width: 160px; color: var(--ink-soft); font-size: 13px; }
.history-table td.col-name { color: var(--ink); }
/* 2026-11-10 工事経歴は10件ずつ表示（main.js が11件目以降の行に hidden を付ける）。属性セレクタで SP の display: block より強くしてある */
.history-table tr[hidden] { display: none; }
.history-more[hidden] { display: none; }
.history-more .btn { line-height: inherit; letter-spacing: inherit; }

/* 3-column variant — 施工機械（機種／容量／種別） */
.history-table--3col .col-model { color: var(--ink); }
.history-table--3col td.col-model { font-weight: 500; }
.history-table--3col .col-capacity {
  width: 160px; font-family: var(--font-display);
  font-size: 13px; color: var(--ink-soft);
  letter-spacing: .04em; white-space: nowrap;
}
.history-table--3col .col-kind { width: 200px; color: var(--ink-soft); font-size: 13px; }
.history-table__note {
  margin-top: 12px; font-size: 12px; color: var(--ink-mute);
  text-align: right; letter-spacing: .02em;
}

/* =============================================================
   FORM — contact / entry で共通利用
   ============================================================= */
.form-wrap { max-width: 900px; margin-inline: auto; }
.form-lead {
  font-size: 15px; line-height: 2; color: var(--ink);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.form-rows {
  display: flex; flex-direction: column;
  gap: clamp(20px, 2.4vw, 28px);
}
.form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.form-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding-top: 14px;
  letter-spacing: .04em;
}
.badge-required, .badge-optional {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: 3px 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  border-radius: 2px; color: #fff;
  font-family: var(--font-sans-jp); line-height: 1.4;
  flex: none;
}
.badge-required { background: #E60012; }
.badge-optional { background: var(--slate-600); }

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: inherit; font-size: 14px; color: var(--ink);
  line-height: 1.7;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.form-control::placeholder { color: #6b7480; }
.form-control:focus {
  outline: none;
  border-color: var(--slate-600);
  background: #fff;
}
textarea.form-control { min-height: 200px; resize: vertical; line-height: 1.9; }

.form-radios {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  padding-top: 10px;
}
.form-radio {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 14px; color: var(--ink);
}
.form-radio input {
  accent-color: var(--slate-600);
  width: 18px; height: 18px; margin: 0;
}

.form-note {
  margin-top: clamp(28px, 4vw, 40px);
  text-align: center; font-size: 13.5px; line-height: 2;
  color: var(--ink-soft);
}
.form-submit {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex; justify-content: center;
}
.form-submit .btn { min-width: 300px; padding: 18px 32px; font-size: 15px; }

@media (max-width: 1024px) {
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .form-label { padding-top: 0; }
}

/* =============================================================
   RECRUIT — 募集要項パネル（Tint Blue）
   ============================================================= */
.recruit-panel {
  background: var(--tint-blue);
  padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 72px);
  border-radius: 4px;
}
.recruit-panel > .jp-sub { margin-bottom: clamp(24px, 3vw, 32px); }
.recruit-panel__lead {
  font-size: 15px; line-height: 1.95; color: var(--ink);
  margin-bottom: clamp(28px, 4vw, 40px);
}
.recruit-panel .profile-table { border-top-color: rgba(30,42,68,.14); }
.recruit-panel .profile-table > div { border-bottom-color: rgba(30,42,68,.14); }
.recruit-panel__cta {
  display: flex; justify-content: center;
  margin-top: clamp(36px, 5vw, 56px);
}
.recruit-panel__cta .btn { min-width: 320px; padding: 18px 32px; font-size: 15px; }

/* =============================================================
   SIDE-NAV — year / month archive (お知らせ用)
   ============================================================= */
.side-nav__label--sub {
  margin-top: 26px;
  font-size: 16px;
  text-transform: lowercase;
}
.side-nav__archive li a {
  padding: 12px 2px;
  font-size: 12px;
  font-family: var(--font-display);
  letter-spacing: .08em;
}

/* =============================================================
   NEWS — 記事カード3列グリッド
   ============================================================= */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.6vw, 34px) clamp(20px, 2.4vw, 30px);
}
.news-card { background: #fff; }
.news-card__media {
  display: block; position: relative;
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px;
}
.news-card__media .ph { position: absolute; inset: 0; }
.news-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.news-card:hover .news-card__img { transform: scale(1.06); }
.news-card__body { padding-top: 16px; }
.news-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.news-card__cat {
  display: inline-block; background: var(--slate-600); color: #fff;
  font-size: 11px; letter-spacing: .14em; padding: 4px 10px;
  border-radius: 2px; font-weight: 500;
}
.news-card__date {
  font-family: var(--font-display); font-size: 12px;
  color: var(--ink-mute); letter-spacing: .1em;
}
.news-card__title {
  margin-top: 12px; font-size: 15px; font-weight: 700;
  color: var(--ink); line-height: 1.7;
}
.news-card__excerpt {
  margin-top: 10px; font-size: 13px; color: var(--ink-soft);
  line-height: 1.85;
}
.news-card__more {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-display); font-size: 12px;
  color: var(--slate-600); letter-spacing: .1em;
  transition: color .3s var(--ease);
}
.news-card__more:hover { color: var(--accent); }

/* Responsive for 2-col pages */
@media (max-width: 1024px) {
  .page-2col__grid { grid-template-columns: 1fr; gap: 28px; }
  .page-2col__grid > * { min-width: 0; }
  .side-nav { position: static; }
  .subhead-band__media { width: 55%; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }

  /* side-nav → 帯直下の横スクロールチップ列（SPはナビの縦積み占有を避ける） */
  .side-nav { background: transparent; color: var(--ink); padding: 0; }
  .side-nav__label { display: none; }
  .side-nav__label--sub { display: none; }
  .side-nav .side-nav__archive { display: none; }   /* year/month はSP非表示（href=#ダミー・WP化後実装）。.side-nav ul(0,1,1)に勝つため詳細度0,2,0で指定 */
  .side-nav ul,
  .side-nav__filters {
    display: flex; gap: 8px; margin: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .side-nav ul::-webkit-scrollbar { display: none; }
  .side-nav li { flex: none; }
  .side-nav li a,
  .side-nav li .side-nav__filter {
    display: inline-flex; align-items: center;
    padding: 9px 16px;
    border: 1px solid var(--line); border-radius: 999px; border-bottom-width: 1px;
    color: var(--ink-soft); font-size: 13px; white-space: nowrap;
    background: var(--white);
  }
  .side-nav li a::after,
  .side-nav li .side-nav__filter::after { content: none; }
  .side-nav li .side-nav__filter[aria-pressed="true"] {
    background: var(--slate-600); border-color: var(--slate-600);
    color: #fff; font-weight: 700;
  }
  /* news の「すべて」行と category 行を1本のチップ列に見せる */
  .side-nav__filters--reset { margin-bottom: 8px; }
}
@media (max-width: 640px) {
  .subhead-band { padding-top: 110px; padding-bottom: 44px; }
  .subhead-band__media { display: none; }
  .subhead-band::after { background: rgba(68,91,122,.35); }
  .iso-list { padding-left: 1.6em; }
  .iso-list > li { padding-left: 2px; }
  .iso-list--dot > li, .iso-list--num > li { padding-left: 1.6em; }
  .iso-sublist > li { padding-left: 1.6em; }
  .profile-table > div { grid-template-columns: 110px 1fr; padding: 16px 2px; gap: 12px; }
  .license-list > li { grid-template-columns: 1fr; gap: 2px; }
  .profile-table--history > div { grid-template-columns: 1fr; padding: 12px 2px; gap: 4px; }
  .profile-table--history dt { color: var(--display-blue); font-weight: 700; font-size: 12px; letter-spacing: .06em; }
  .recruit-panel .profile-table > div { grid-template-columns: 1fr; padding: 14px 2px; gap: 4px; } /* 2026-10-29 募集要項はSPで項目名を上・内容を下に */
  .recruit-panel .profile-table dt { color: var(--display-blue); font-weight: 700; font-size: 12px; letter-spacing: .06em; }
  .sp-block { display: block; } /* 2026-10-29 SPでのみ1行として独立させる */
  .office + .office { margin-top: .9em; }
  .works-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .history-table thead { display: none; }
  .history-table, .history-table tbody, .history-table tr, .history-table td { display: block; width: auto; }
  .history-table tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .history-table td { border: none; padding: 3px 2px; }
  .history-table .col-date { font-size: 11.5px; }
  .history-table .col-name { font-size: 15px; font-weight: 700; margin-top: 4px; color: var(--ink); }
  .history-table--3col .col-model { font-size: 15px; font-weight: 700; color: var(--ink); }
  .history-table--3col .col-capacity { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; white-space: normal; }
  .history-table--3col .col-kind { font-size: 12px; color: var(--ink-soft); }
  .history-table--3col td:empty { display: none; }
  .history-table__note { text-align: left; }
  .form-submit .btn, .recruit-panel__cta .btn { min-width: 0; width: 100%; }
}

/* =============================================================
   PRIVACY POLICY (下層 1カラム・独立スコープ)
   ============================================================= */
.privacy { max-width: 880px; }
.privacy__lead {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.9;
  color: var(--ink);
  margin: 0 0 clamp(40px, 5vw, 56px);
}
.privacy__item + .privacy__item { margin-top: 40px; }
.privacy__item .jp-sub { margin-bottom: 14px; }
.privacy__item p {
  font-size: clamp(14px, 1.4vw, 15.5px);
  line-height: 1.9;
  color: var(--ink);
  margin: 0;
}
.privacy__item p + p { margin-top: .6em; }
.privacy__meta {
  margin-top: clamp(56px, 7vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-mute);
  text-align: right;
}
