/* ============================================================
   磯部工業株式会社 LP — スタイル
   F3トークン: ネイビー#16336E / 水色#3984C8 / 淡青みグレー#F6F8FB
   明朝=Noto Serif JP(格式) / ゴシック=Noto Sans JP(本文) / 数字=Barlow
   8pxグリッド / 角丸0〜4px / フラット影 / palt / line-height 1.7
   ============================================================ */

:root {
  --navy: #16336E;
  --navy-deep: #11295A;
  --blue: #3984C8;
  --blue-soft: #5E9DD4;
  --bg-tint: #F6F8FB;
  --ink: #2A2F36;
  --muted: #6B7177;
  --line: #DCE3EE;
  --line-navy: rgba(255, 255, 255, 0.18);
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", sans-serif;
  --num: "Barlow", "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-feature-settings: "palt";
  color: var(--ink);
  line-height: 1.7;
  background: #FFFFFF;
  letter-spacing: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

section { scroll-margin-top: 88px; }

/* ---- 日本語組版(jp-typography): 語中改行(末尾1字泣き別れ)を防ぐ ---- */
/* 大型ディスプレイ見出し: 語中で割らない(サイズ/コピーで行数を制御) */
.hero-title, .philosophy-title, .history-title {
  word-break: keep-all;
  line-break: strict;
}
/* ラベル/名称/タイトル類: keep-allで語中分割を禁止、溢れる時のみ折る */
.section-title, .service-name, .work-title, .qual-title, .youkou-title,
.stat-label, .milestone-title, .jobs-list li, .footer-nav-col-title,
.qual-list dt, .youkou-list dt, .company-facts dt, .cta-panel-label,
.service-desc, .milestone-desc, .section-lede, .youkou-list dd, .qual-note,
.work-meta-row dd, .hero-lead, .philosophy-text, .footer-address, .youkou-note {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: normal;
}

/* ---- 装飾素材(共通) ---- */
/* 端を放射状にフェードさせ、セクションの overflow:hidden 端で矩形に切れる
   「枠が付いて見える」現象を全装飾で一括に解消(出血+端フェード) */
.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  /* ★既定opacityのフロア。section別ルール(.works .deco-strata 等)は specificity で上書きされ
     意図値(0.06〜0.28)を保持。ルール不一致で素通りした装飾が opacity:1 で本文に被る不具合を
     根本で解消(沿革のstrata/各業種のpipe-svc/理念のripple-co 等が全不透明で文字に被っていた)。 */
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 56%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 56%, transparent 85%);
}
.deco-white { filter: brightness(0) invert(1); }

/* 熟語・数値+助数詞・括弧句を行内で割らせない */
.nw { white-space: nowrap; }

/* ---- ボタン規律: 矩形(2px)・主CTA=塗り・二次=テキストリンク ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-fill {
  background: var(--blue);
  color: #FFFFFF;
  padding: 14px 40px;
}
.btn-fill:hover { background: var(--navy); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 6px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.text-link img { width: 28px; height: auto; }
.text-link:hover { color: var(--blue); border-color: var(--blue); }
.text-link:hover img { filter: none; }
.text-link.on-navy { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }
.text-link.on-navy:hover { color: #BFD9F0; }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}
.brand-mark {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-mark img { width: 20px; height: auto; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: #FFFFFF;
  letter-spacing: 0.06em;
}
.global-nav { display: flex; gap: 36px; }
.global-nav a {
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.global-nav a:hover { border-color: var(--blue-soft); color: #CFE2F4; }
.header-cta { padding: 12px 28px; font-size: 14px; }

/* モバイルナビ(ハンバーガー/ドロワー)— 既定=デスクトップ(非表示・素通し)。
   .nav-drawer は display:contents でラッパが存在しないかのように振る舞い、
   デスクトップのヘッダーflexレイアウトを一切変えない。 */
.nav-toggle { display: none; }
.nav-drawer { display: contents; }
.nav-backdrop { display: none; }
.drawer-tel { display: none; }

/* ============================================================
   ヒーロー(面分割)
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 640px;
}
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 61%;
  height: 82%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 42%);
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    animation: heroZoom 18s var(--ease) forwards;
  }
  @keyframes heroZoom {
    from { transform: scale(1.07); }
    to { transform: scale(1); }
  }
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 88px 32px 72px;
  max-width: 660px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 57px;
  line-height: 1.26;
  letter-spacing: 0.05em;
  color: #FFFFFF;
}
.hero-title .hero-accent {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.55em;
  letter-spacing: 0.04em;
}
.hero-lead {
  margin-top: 32px;
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero-tel { display: flex; align-items: center; gap: 12px; }
.hero-tel-icon { width: 36px; height: auto; opacity: 0.9; }
.hero-tel-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.hero-tel-num {
  font-family: var(--num);
  font-weight: 600;
  font-size: 26px;
  color: #FFFFFF;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

/* ヒーロー装飾(B=水/地勢:等高線を主役に1点) */
.hero .deco-contour {
  bottom: -48px;
  left: -64px;
  width: 540px;
  opacity: 0.16;
}
.hero .deco-contour2 {
  top: 44px;
  left: -24px;
  width: 260px;
  opacity: 0.11;
}

/* ============================================================
   数値バッジ帯
   ============================================================ */
.stats-band {
  position: relative;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 56px 0;
}
.stat {
  padding: 8px 40px;
  border-left: 1px solid var(--line);
  text-align: center;
}
.stat:first-child { border-left: none; }
.stat-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.12em;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 6px;
  margin-bottom: 18px;
}
.stat-value {
  font-family: var(--num);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.stat-value .unit {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  margin-left: 4px;
}
.stat-value.stat-license {
  font-size: 30px;
  padding-top: 16px;
  letter-spacing: 0;
  white-space: nowrap;
}
.stat-value.stat-license .kanji {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
}
.stat-value.stat-region {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 27px;
  padding-top: 18px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.stat-caption {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
/* 数値帯装飾(A=管材:フランジ1点) */
.stats-band .deco-flange {
  top: 50%;
  right: -28px;
  width: 230px;
  transform: translateY(-50%);
  opacity: 0.12;
}

/* ============================================================
   セクション共通
   ============================================================ */
.section { position: relative; padding: 104px 0; overflow: hidden; }
.section-head { position: relative; }
.section-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.08em;
  color: var(--navy);
  line-height: 1.4;
}
.section-title-bar {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--blue);
  margin-top: 16px;
}
.section-lede {
  margin-top: 24px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
}
.section-link { margin-top: 32px; }

/* 左見出しカラム型レイアウト */
.split-layout {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 48px;
  align-items: start;
}

/* ============================================================
   事業案内
   ============================================================ */
.services { background: #FFFFFF; }
/* 事業案内装飾(A=管材:T字管1点・控えめ) */
.services .deco-pipe-svc {
  top: 40px;
  right: 24px;
  width: 210px;
  opacity: 0.07;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
.service-card { padding: 0; }
.service-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s var(--ease);
}
.service-card:hover .service-photo img { opacity: 0.85; }
.service-name {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: 0.06em;
}
.service-name img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: none;
  padding: 11px;
  box-sizing: content-box;
  background: var(--navy);
  border-radius: 50%;
}
.service-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* ============================================================
   施工実績
   ============================================================ */
.works { background: var(--bg-tint); }
/* 施工実績装飾(B=水/地層:地層ライン1点) */
.works .deco-strata {
  bottom: 8px;
  right: 40px;
  width: 240px;
  opacity: 0.28;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(22, 51, 110, 0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.work-card:hover {
  box-shadow: 0 10px 32px rgba(22, 51, 110, 0.13);
  transform: translateY(-3px);
}
.work-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.work-photo img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.work-title {
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--navy);
  letter-spacing: 0.02em;
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-meta { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }
.work-meta-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.6;
}
.work-meta-row dt {
  flex: none;
  width: 56px;
  text-align: center;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  padding: 2px 0 2px 0.2em;
  border-radius: 2px;
}
.work-meta-row dd { color: var(--ink); }
.works-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* ============================================================
   会社案内・沿革
   ============================================================ */
.company { background: #FFFFFF; }
/* 会社案内装飾(B=水:波紋1点・控えめ) */
.company .deco-ripple-co {
  bottom: 40px;
  left: 38%;
  width: 230px;
  opacity: 0.06;
}
.company-layout {
  display: grid;
  grid-template-columns: 248px 1fr 296px;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.company-facts {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.company-facts div {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
}
.company-facts dt { flex: none; width: 64px; color: var(--muted); font-weight: 500; }
.company-facts dd { color: var(--ink); }

.history-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 0.06em;
}
.history-title .num {
  font-family: var(--num);
  font-weight: 600;
  font-size: 30px;
  color: var(--blue);
  margin: 0 2px;
}
.history-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
/* 縦タイムライン:1946→2026 を貫く1本の連結線 + 年比例の縦間隔 */
.timeline {
  margin-top: 28px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--navy) 0%, var(--blue) 100%);
}
.timeline .milestone {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: start;
  column-gap: 18px;
  padding-left: 30px;
  /* 年差に比例した縦間隔(2年差で潰れないよう下限18px) */
  margin-top: max(18px, calc(var(--gap) * 3.2px));
}
.timeline .milestone:first-child { margin-top: 0; }
.timeline .milestone::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 4px rgba(57, 132, 200, 0.12);
}
.milestone-year {
  font-family: var(--num);
  font-weight: 600;
  font-size: 25px;
  line-height: 1;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.milestone-body { padding-top: 2px; }
.milestone-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.milestone-desc {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.qual-panel {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 28px 24px;
}
.qual-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.qual-title .num {
  font-family: var(--num);
  font-weight: 600;
  font-size: 32px;
  color: var(--blue);
  margin: 0 2px;
}
.qual-list { margin-top: 16px; }
.qual-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.qual-list dt { color: var(--ink); }
.qual-list dd {
  font-family: var(--num);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  white-space: nowrap;
}
.qual-list dd .unit { font-family: var(--sans); font-size: 12px; font-weight: 500; margin-left: 2px; }
.qual-note {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================
   採用情報
   ============================================================ */
.recruit {
  background: var(--navy);
  color: #FFFFFF;
}
/* 採用装飾(A=管材:管路+バルブをfooterと同系統で1ユニット) */
.recruit .deco-pipe-rec {
  bottom: -28px;
  left: -20px;
  width: 240px;
  opacity: 0.12;
}
.recruit .deco-valve-rec {
  bottom: 78px;
  left: 158px;
  width: 86px;
  opacity: 0.11;
}
.recruit .section-title { color: #FFFFFF; }
.recruit .section-lede { color: rgba(255, 255, 255, 0.85); }
.recruit-layout {
  display: grid;
  grid-template-columns: 224px 1fr 320px;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.recruit-middle { display: grid; gap: 24px; }
.recruit-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.recruit-photos figure {
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
  border-radius: 2px;
}
.recruit-photos img { width: 100%; height: 100%; object-fit: cover; }
.jobs-panel {
  border: 1px solid var(--line-navy);
  border-radius: 4px;
  padding: 24px 28px;
}
.jobs-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #9FC4E8;
}
.jobs-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}
.jobs-list li {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-navy);
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  word-break: keep-all;
}
.jobs-list li:last-child { border-bottom: none; }
.jobs-list li img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 1;
  flex: none;
  padding: 11px;
  background: #2F6FD6;
  border: none;
  border-radius: 50%;
  box-sizing: content-box;
}

.youkou-panel {
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 4px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.youkou-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: 0.06em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.youkou-list { margin-top: 4px; }
.youkou-list div {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
}
.youkou-list dt {
  flex: none;
  width: 64px;
  font-weight: 700;
  color: var(--navy);
}
.youkou-list dd { color: var(--ink); }
.youkou-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.youkou-note img { width: 32px; height: auto; flex: none; margin-top: 1px; }

/* ============================================================
   理念・CTA
   ============================================================ */
.philosophy { background: var(--bg-tint); }
/* 理念装飾(B=水/地勢:等高線+波紋・他セクションと同じ抑えた帯に統一) */
.philosophy .deco-contour3 {
  top: -40px;
  left: -56px;
  width: 360px;
  opacity: 0.14;
}
.philosophy .deco-ripple {
  bottom: 28px;
  right: 40px;
  width: 200px;
  opacity: 0.12;
}
.philosophy-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.philosophy-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--blue);
}
.philosophy-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--blue);
}
.philosophy-title {
  margin-top: 20px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.philosophy-text {
  margin-top: 24px;
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--ink);
  max-width: 600px;
}
.cta-panel {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 4px;
  padding: 36px 36px 32px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(22, 51, 110, 0.08);
}
.cta-panel-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.cta-panel .btn { width: 100%; margin-top: 20px; padding: 16px 0; font-size: 16px; }
.cta-tel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.cta-tel-label { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.cta-tel-num {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--num);
  font-weight: 600;
  font-size: 28px;
  color: var(--navy);
  line-height: 1.2;
}
.cta-tel-num img { width: 30px; height: auto; }
.cta-tel-hours { margin-top: 2px; font-size: 11.5px; color: var(--muted); }

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--navy-deep);
  color: #FFFFFF;
  overflow: hidden;
}
/* フッター装飾(A=管材:管路+バルブ・本ページの装飾基準・存在感を確保) */
.site-footer .deco-pipes {
  bottom: 48px;
  right: 196px;
  width: 200px;
  opacity: 0.17;
}
.site-footer .deco-valve {
  bottom: 108px;
  right: 52px;
  width: 120px;
  opacity: 0.16;
}
.footer-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 80px;
  padding: 72px 0 56px;
}
.footer-brand .brand-name { font-size: 21px; }
.footer-address {
  margin-top: 24px;
  font-size: 13px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}
.footer-address .num { font-family: var(--num); letter-spacing: 0.03em; }
.footer-license {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-nav { display: flex; gap: 56px; }
.footer-nav-col-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-navy);
}
.footer-nav-col-title a:hover { color: #BFD9F0; }
.footer-nav-col ul { display: grid; gap: 8px; }
.footer-nav-col ul a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s var(--ease);
}
.footer-nav-col ul a:hover { color: #FFFFFF; }
.footer-contact { text-align: right; }
.footer-contact .btn { padding: 14px 36px; }
.footer-contact-mail {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--num);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.footer-contact-mail img { width: 24px; height: auto; opacity: 0.8; }
.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-navy);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
}
.footer-bottom .num { font-family: var(--num); }

/* ============================================================
   出現モーション(控えめ)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1180px) {
  /* —— モバイル/タブレット: 6項目ナビをハンバーガー+右スライドのドロワーに —— */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(84vw, 340px);
    box-sizing: border-box;
    padding: 92px 26px 40px;
    background: var(--navy-deep);
    box-shadow: -24px 0 60px rgba(8, 18, 40, 0.45);
    transform: translateX(100%);
    transition: transform 0.34s var(--ease);
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-header.is-nav-open .nav-drawer { transform: translateX(0); }
  .global-nav { display: flex; flex-direction: column; gap: 0; }
  .global-nav a {
    font-size: 16px;
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .global-nav a:hover { color: #CFE2F4; }
  .global-nav a.is-current { color: var(--blue-soft); }
  .nav-drawer .header-cta {
    margin-top: 24px;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 15px;
  }
  .drawer-tel {
    display: flex;
    flex-direction: column;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
  }
  .drawer-tel-label { font-size: 12px; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.06em; }
  .drawer-tel-num { font-family: var(--num); font-weight: 600; font-size: 24px; letter-spacing: 0.03em; margin-top: 4px; }
  /* 開いた時: ハンバーガーを×に変形し、ドロワーより前面へ(閉じる操作を確保) */
  .site-header.is-nav-open .nav-toggle { position: relative; z-index: 210; }
  .site-header.is-nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .site-header.is-nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 40, 0.5);
    z-index: 150;
    opacity: 0;
    pointer-events: none;            /* 閉じている間はクリックを透過(ハンバーガーを塞がない) */
    transition: opacity 0.3s var(--ease);
  }
  .site-header.is-nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .service-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .service-card:nth-child(4) { border-left: none; padding-left: 0; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .company-layout { grid-template-columns: 1fr 1fr; }
  .company-intro { grid-column: 1 / -1; max-width: 560px; }
  .recruit-layout { grid-template-columns: 1fr; }
  .philosophy-layout { grid-template-columns: 1fr; gap: 48px; }
  .cta-panel { max-width: 440px; }
}

@media (max-width: 1060px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
  .hero-inner { min-height: 0; }
  .hero-photo {
    position: relative;
    width: 100%;
    height: 300px;
    /* 下端を斜めに切り、navy地がせり上がる=PC版の面分割をモバイルに翻案 */
    clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  }
  .hero-photo::after {            /* 写真下端をnavyへ馴染ませ、斜めの継ぎ目を柔らかく */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 52%, rgba(17, 41, 90, 0.6) 100%);
    pointer-events: none;
  }
  .hero-copy {
    padding: 22px 24px 60px;   /* 上を詰め、斜めのnavyにスローガンをかぶせる */
    margin-top: -34px;
  }
  .hero-title { font-size: 48px; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat:nth-child(3) { border-left: none; }
  .split-layout { grid-template-columns: 1fr; gap: 40px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { border-left: none; padding: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .company-layout { grid-template-columns: 1fr; }
  .jobs-list li { font-size: 19px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .philosophy-title { font-size: 32px; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* フッターナビ: 4列フレックスは狭幅で4列目が画面外に出るため2×2グリッドへ */
@media (max-width: 680px) {
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; }
}

/* ============================================================
   ナローモバイル(≤520px)— 見出しの画面外溢れ・窮屈さの最終調整
   (375/390/414px を一括カバー。line-break:strict の禁則は維持)
   ============================================================ */
@media (max-width: 520px) {
  /* ヘッダー: 余白を詰め、ロゴ「磯部工業株式会社」の泣き別れを防ぐ */
  .header-inner { padding: 0 16px; gap: 12px; }
  .brand { gap: 11px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 16.5px; letter-spacing: 0.03em; }

  /* ヒーロー: 斜めnavyにスローガンを乗せる。見出しサイズは画面内に収める */
  .hero-copy { padding: 18px 20px 52px; margin-top: -34px; }
  .hero-title { font-size: 33px; line-height: 1.26; letter-spacing: 0.04em; overflow-wrap: anywhere; }
  .hero-title .hero-accent { font-size: 1.55em; margin-top: 4px; letter-spacing: 0.06em; }
  .hero-lead { margin-top: 20px; font-size: 14.5px; line-height: 1.95; }
  .hero-actions { gap: 22px; margin-top: 32px; }
  .hero-tel-num { font-size: 22px; }

  /* 数値帯: 信頼指標は全部見せたい→2×2(スワイプで隠さない)。
     2列で「特-6 第3082号」等が溢れるのは字サイズ調整で解消。 */
  .stats-grid { grid-template-columns: 1fr 1fr; padding: 30px 0; }
  .stat { padding: 18px 10px; border-top: none; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-label { margin-bottom: 12px; font-size: 12px; }
  .stat-value { font-size: 44px; }
  .stat-value .unit { font-size: 22px; }
  .stat-value.stat-license { font-size: 22px; padding-top: 10px; }
  .stat-value.stat-license .kanji { font-size: 16px; }
  .stat-value.stat-region { font-size: 20px; padding-top: 12px; }
  .stat-caption { margin-top: 10px; font-size: 11.5px; }

  /* セクション見出し/リード: ナローでは禁則維持のまま語間で折り返す */
  .section-title { font-size: 25px; word-break: normal; overflow-wrap: anywhere; }
  .section-lede { word-break: normal; overflow-wrap: anywhere; }
  .section { padding: 60px 0; }
}
