/* ==========================================================
   平出製作所 デザイン案 site01 「誠実・堅実」
   白 × 紺 × アクセントの赤（設備カラー）
   ========================================================== */

:root {
  --navy: #14233c;
  --navy-2: #1e3354;
  --ink: #1f2933;
  --muted: #5b6673;
  --line: #e1e6ec;
  --soft: #f3f5f8;
  --white: #ffffff;
  --accent: #c8102e;
  --accent-dark: #a00d24;

  --container: 1120px;
  --radius: 6px;
  --header-h: 76px;

  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Barlow", "Noto Sans JP", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.sp-only { display: none; }
@media (max-width: 600px) { .sp-only { display: inline; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(20,35,60,.08); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); line-height: 1.2; margin-right: auto; }
.logo small { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.logo strong { font-size: 22px; font-weight: 700; letter-spacing: .1em; }
.logo span { font-family: var(--font-en); font-size: 11px; letter-spacing: .3em; color: var(--accent); font-weight: 600; }

.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.gnav a {
  display: block; padding: 8px 12px; text-decoration: none; color: var(--ink);
  font-size: 15px; font-weight: 500; border-radius: var(--radius);
}
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--accent); }
.gnav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.gnav .gnav-cta a {
  background: var(--accent); color: #fff; padding: 9px 18px; margin-left: 8px;
}
.gnav .gnav-cta a:hover { background: var(--accent-dark); color: #fff; }

.header-tel { text-align: right; line-height: 1.3; }
.header-tel a { font-family: var(--font-en); font-size: 22px; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: .03em; }
.header-tel small { display: block; font-size: 11px; color: var(--muted); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; line-height: 1.4;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn::after { content: "→"; font-family: var(--font-en); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Hero (top) ---------- */
.hero {
  position: relative; color: #fff;
  min-height: min(78vh, 680px);
  display: flex; align-items: center;
  background: var(--navy) url(../images/acies.jpg) center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,25,44,.92) 0%, rgba(14,25,44,.75) 45%, rgba(14,25,44,.25) 100%);
}
.hero .container { position: relative; padding-block: 80px; }
.hero-eyebrow { font-family: var(--font-en); letter-spacing: .3em; font-weight: 600; font-size: 14px; color: #ff6b7f; margin: 0 0 16px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 54px); line-height: 1.4; margin: 0 0 24px; letter-spacing: .04em; }
.hero-lead { max-width: 34em; font-size: clamp(15px, 1.8vw, 17px); color: rgba(255,255,255,.9); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Page header (sub pages) ---------- */
.page-header {
  position: relative; color: #fff; background: var(--navy);
  background-size: cover; background-position: center;
  padding: 72px 0 64px;
}
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(14,25,44,.82); }
.page-header .container { position: relative; }
.page-header .en { font-family: var(--font-en); font-size: clamp(36px, 6vw, 60px); font-weight: 700; letter-spacing: .08em; line-height: 1; margin: 0 0 12px; opacity: .95; }
.page-header h1 { font-size: 18px; margin: 0; font-weight: 500; letter-spacing: .12em; }
.page-header h1::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 12px; }

.breadcrumb { background: var(--soft); font-size: 13px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-navy { background: var(--navy); color: #fff; }

.sec-title { margin: 0 0 48px; }
.sec-title .en { display: block; font-family: var(--font-en); color: var(--accent); font-weight: 600; letter-spacing: .25em; font-size: 14px; margin-bottom: 6px; }
.sec-title h2 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.45; letter-spacing: .05em; color: var(--navy); }
.section-navy .sec-title h2 { color: #fff; }
.sec-title.center { text-align: center; }
.sec-lead { max-width: 46em; color: var(--muted); }
.sec-title.center + .sec-lead { margin: -24px auto 48px; text-align: center; }

.h3 { font-size: 22px; color: var(--navy); margin: 0 0 20px; padding-left: 14px; border-left: 4px solid var(--accent); line-height: 1.4; }

.more { text-align: center; margin-top: 48px; }

/* ---------- News ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 10em 1fr; gap: 24px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.news-list time { font-family: var(--font-en); font-weight: 600; color: var(--navy); letter-spacing: .05em; }
.news-list p { margin: 0; }
.news-list .news-media { margin-top: 16px; max-width: 400px; }
.news-list .news-media figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

.top-news { padding: 0; }
.top-news .container {
  display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px;
  background: #fff; box-shadow: 0 10px 30px rgba(20,35,60,.12);
  padding: 22px 32px; margin-top: -44px; position: relative; border-radius: var(--radius);
}
.top-news h2 { margin: 0; font-family: var(--font-en); font-size: 15px; letter-spacing: .2em; color: var(--accent); }
.top-news h2 span { display: block; font-family: var(--font-ja); color: var(--navy); font-size: 13px; letter-spacing: .1em; }
.top-news ul { list-style: none; margin: 0; padding: 0; }
.top-news li { display: flex; gap: 20px; font-size: 15px; }
.top-news li + li { margin-top: 4px; }
.top-news time { font-family: var(--font-en); font-weight: 600; color: var(--navy); white-space: nowrap; }
.top-news .link { font-size: 14px; white-space: nowrap; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: feat; }
.feature { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 var(--line); border: 1px solid var(--line); }
.feature figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.feature figure img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 26px 26px 30px; }
.feature-body .num { counter-increment: feat; font-family: var(--font-en); font-weight: 700; color: var(--accent); font-size: 14px; letter-spacing: .2em; }
.feature-body .num::before { content: "POINT 0" counter(feat); }
.feature h3 { font-size: 20px; color: var(--navy); margin: 6px 0 12px; line-height: 1.5; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
.numbers div { padding: 12px 16px; }
.numbers div + div { border-left: 1px solid rgba(255,255,255,.18); }
.numbers dt { font-size: 14px; color: rgba(255,255,255,.75); letter-spacing: .1em; }
.numbers dd { margin: 4px 0 0; font-family: var(--font-en); font-weight: 700; font-size: clamp(40px, 5vw, 56px); line-height: 1.1; }
.numbers dd small { font-family: var(--font-ja); font-size: 16px; font-weight: 500; margin-left: 4px; }
.numbers-note { text-align: center; color: rgba(255,255,255,.6); font-size: 12px; margin: 24px 0 0; }

/* ---------- Machine cards ---------- */
.machines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.machines.cols-3 { grid-template-columns: repeat(3, 1fr); }
.machine { text-decoration: none; color: inherit; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.machine figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.machine figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.machine:hover figure img { transform: scale(1.04); }
.machine-body { padding: 16px 18px 20px; }
.machine .maker { font-family: var(--font-en); font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.machine h3 { font-size: 16px; margin: 2px 0 6px; color: var(--navy); line-height: 1.5; }
.machine p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }
.machine .video { aspect-ratio: 3 / 4; background: #000; }
.machine .video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split figure { margin: 0; }
.split figure img { border-radius: var(--radius); width: 100%; }
.split figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.split h3 { font-size: clamp(20px, 2.6vw, 26px); color: var(--navy); line-height: 1.5; margin: 0 0 20px; }

/* small source photos: show them at native-ish size, never blown up */
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 16px; justify-content: start; }
.photo-pair img { border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }

/* ---------- Banner (original goods) ---------- */
.banner-goods {
  display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 40px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 40px;
  text-decoration: none; color: inherit;
}
.banner-goods img { border-radius: 4px; }
.banner-goods .en { font-family: var(--font-en); color: var(--accent); letter-spacing: .2em; font-weight: 600; font-size: 13px; }
.banner-goods h2 { margin: 4px 0 8px; color: var(--navy); font-size: 24px; line-height: 1.5; }
.banner-goods p { margin: 0; color: var(--muted); }
.banner-goods .btn { white-space: nowrap; }

/* もみじちゃん（箕輪町とのコラボ） */
.local-goods {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 40px; margin-top: 24px;
}
.local-goods figure { margin: 0; }
.local-goods img { border-radius: 4px; width: 100%; }
.local-goods .en { font-family: var(--font-en); color: var(--accent); letter-spacing: .2em; font-weight: 600; font-size: 13px; }
.local-goods h2 { margin: 4px 0 12px; color: var(--navy); font-size: 24px; line-height: 1.5; }
.local-goods p { margin: 0; color: var(--muted); }

/* ---------- Placeholder (追加撮影が必要な写真) ---------- */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 16 / 9; width: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 12px, transparent 12px 24px),
    #c9ced5;
  color: #3d4652; text-align: center; padding: 20px; border-radius: var(--radius);
  border: 2px dashed #9aa3ae;
}
.ph-label { font-size: 14px; font-weight: 700; letter-spacing: .05em; }
.ph-what { font-size: 18px; font-weight: 700; color: var(--navy); }
.ph-size { font-size: 13px; }
.ph.r-4x3 { aspect-ratio: 4 / 3; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { border-bottom: 1px solid var(--line); padding: 16px 20px; text-align: left; vertical-align: top; }
.spec thead th { background: var(--navy); color: #fff; font-weight: 500; border-bottom: 0; }
.spec tbody th { width: 28%; background: var(--soft); color: var(--navy); font-weight: 700; }
.spec td.num { text-align: right; white-space: nowrap; font-family: var(--font-en); font-weight: 600; width: 6em; }
.spec.equip tbody th { width: auto; }

/* ---------- Flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: flow; }
.flow li { position: relative; background: #fff; border: 1px solid var(--line); padding: 22px 12px 18px; text-align: center; font-weight: 700; color: var(--navy); }
.flow li + li { border-left: 0; }
.flow li::before { counter-increment: flow; content: "STEP " counter(flow); display: block; font-family: var(--font-en); font-size: 12px; color: var(--accent); letter-spacing: .15em; margin-bottom: 4px; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 50%; z-index: 1;
  width: 16px; height: 16px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5.5em; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 5.5em 1fr; gap: 32px; padding: 10px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(5.5em - 5px); top: 20px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.timeline time { font-family: var(--font-en); font-weight: 700; color: var(--navy); font-size: 18px; }

/* ---------- Greeting ---------- */
.greeting { background: #fff; border-left: 4px solid var(--accent); padding: 32px 36px; }
.greeting .sign { text-align: right; margin: 16px 0 0; font-weight: 700; color: var(--navy); }

/* ---------- Clients ---------- */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.clients.cols-2 { grid-template-columns: repeat(2, 1fr); }
.clients li { background: #fff; border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius); text-align: center; font-weight: 500; }

/* ---------- Eco ---------- */
.eco { display: flex; gap: 32px; align-items: center; }
.eco img { width: 120px; flex-shrink: 0; }

/* ---------- Map ---------- */
.map { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); display: block; }

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 20px; color: var(--navy); margin: 48px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose ul { padding-left: 1.4em; }

/* ---------- Contact CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 80px 0; }
.cta .sec-title h2 { color: #fff; }
.cta-lead { color: rgba(255,255,255,.85); margin: -28px 0 40px; }
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cta-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 26px 24px; color: #fff; text-decoration: none; display: block; }
a.cta-item:hover { background: rgba(255,255,255,.14); color: #fff; }
.cta-item .label { font-size: 13px; color: rgba(255,255,255,.7); letter-spacing: .1em; }
.cta-item .value { font-family: var(--font-en); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: .03em; line-height: 1.3; display: block; margin-top: 4px; }
.cta-item .value.mail { font-size: clamp(18px, 2vw, 22px); }
.cta-item .note { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 6px; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #0d1729; color: rgba(255,255,255,.75); font-size: 14px; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 40px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo small { color: rgba(255,255,255,.6); }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a, .site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-nav a:hover, .site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-eco { text-align: center; font-size: 12px; }
.footer-eco img { width: 92px; margin: 0 auto 8px; background: #fff; border-radius: 4px; padding: 4px; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.5); font-family: var(--font-en); letter-spacing: .05em; }

.pagetop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; text-decoration: none;
  display: grid; place-items: center; font-family: var(--font-en); font-size: 18px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.pagetop.is-show { opacity: 1; pointer-events: auto; }
.pagetop:hover { background: var(--accent); color: #fff; }

/* mobile bottom bar */
.sp-bar { display: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .header-tel { display: none; }
  .machines { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .logo strong { font-size: 19px; }

  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 24px; height: 2px; background: var(--navy); position: relative; transition: transform .25s, background .25s;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -7px; }
  .nav-toggle span::after { top: 7px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

  .gnav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    padding: 16px 16px 120px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav-open .gnav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav li { border-bottom: 1px solid var(--line); }
  .gnav a { padding: 16px 8px; font-size: 16px; }
  .gnav a[aria-current="page"] { box-shadow: none; }
  .gnav .gnav-cta { border: 0; margin-top: 24px; }
  .gnav .gnav-cta a { margin: 0; text-align: center; padding: 16px; }

  .section { padding: 64px 0; }
  .sec-title { margin-bottom: 32px; }

  .top-news .container { grid-template-columns: 1fr; gap: 10px; padding: 20px; margin-top: -32px; }
  .top-news li { flex-direction: column; gap: 0; }
  .top-news li + li { margin-top: 10px; }

  .features { grid-template-columns: 1fr; gap: 24px; }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .numbers div:nth-child(3) { border-left: 0; }
  .machines.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
  .banner-goods { grid-template-columns: 1fr; padding: 24px; gap: 20px; text-align: center; }
  .banner-goods img { max-width: 200px; margin: 0 auto; }
  .local-goods { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .flow { grid-template-columns: 1fr; }
  .flow li + li { border-left: 1px solid var(--line); border-top: 0; }
  .flow li:not(:last-child)::after { right: 50%; top: auto; bottom: -9px; transform: translateX(50%) rotate(135deg); }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-eco { text-align: left; }
  .footer-eco img { margin: 0 0 8px; }

  /* 下部固定の電話・メールバー */
  .sp-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    box-shadow: 0 -4px 14px rgba(0,0,0,.12);
  }
  .sp-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
  .sp-bar .tel { background: var(--accent); }
  .sp-bar .mail { background: var(--navy); }
  body { padding-bottom: 52px; }
  .pagetop { bottom: 68px; right: 14px; width: 42px; height: 42px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero { min-height: 560px; }
  .hero .container { padding-block: 56px 80px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .page-header { padding: 48px 0 40px; }
  .news-list li { grid-template-columns: 1fr; gap: 4px; }
  .machines, .machines.cols-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery figcaption { font-size: 13px; padding: 8px 10px; }
  .photo-pair { grid-template-columns: repeat(2, 1fr); }
  .clients, .clients.cols-2 { grid-template-columns: 1fr; }
  .spec th, .spec td { padding: 12px 12px; font-size: 14px; }
  .spec.info tbody th, .spec.info tbody td { display: block; width: 100%; }
  .spec.info tbody th { border-bottom: 0; padding-bottom: 6px; }
  .timeline::before { left: 4.2em; }
  .timeline li { grid-template-columns: 4.2em 1fr; gap: 24px; }
  .timeline li::before { left: calc(4.2em - 5px); }
  .timeline time { font-size: 16px; }
  .greeting { padding: 24px 20px; }
  .eco { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ph-what { font-size: 16px; }
}
