/*
Theme Name: Ota Kogyo
Description: 株式会社太田工業 オリジナルテーマ
Version: 1.0.0
Requires PHP: 8.0
Text Domain: ota-kogyo
*/


:root {
  --navy: #0b2a5e;        /* 主色：ロゴ文字の濃紺 */
  --navy-deep: #071d42;
  --blue: #0a55c4;        /* ロゴマークの青（グラデーションの光にだけ使う） */
  --navy-soft: #eceff3;   /* 薄い面はこの1色にそろえる */
  /* 濃い面はすべてこのグラデーション（最初の画面と同じ） */
  --grad-navy:
    radial-gradient(ellipse 60% 75% at 80% 20%, rgba(140, 200, 255, .38) 0%, rgba(140, 200, 255, 0) 65%),
    linear-gradient(125deg, #1b6fe0 0%, #1158c4 40%, #0d419a 78%, #0b3477 100%);
  --accent: #db7212;      /* アクセント：ロゴのオレンジを少し落ち着かせた色 */
  --accent-hover: #bf6210;
  --text: #1d2733;
  --text-sub: #5b6775;
  --line: #dde3ea;
  --bg: #fbfbfa;          /* 真っ白ではなく、ごくわずかに灰色がかった白 */
  --surface: #fdfdfc;     /* カード・表の面 */
  --bg-tint: #eceff3;

  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: "Inter", var(--font-ja);

  --container: 1120px;
  --gutter: 24px;
  --section-y: 128px;
  --header-h: 76px;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 文字組み：行頭の「ー」「ッ」や、最終行が1〜2文字だけになる改行を避ける */
p, li, th, td, dd { line-break: strict; }
h1, h2, h3 { line-break: strict; word-break: auto-phrase; }
/* .kp：<wbr> を入れた位置（文節の切れ目）でだけ折り返す */
.kp { word-break: keep-all; overflow-wrap: anywhere; }
/* 見出しは仮名と約物を詰めて組む */
.hero-title, .section-title, .page-title, .contact-title, .cta-band-title,
.pillar-title, .plan-title, .feature-title, .flow h3, .entry-content h2 { font-feature-settings: "palt"; }

img { display: block; max-width: 100%; height: auto; }
/* 写真は彩度をわずかに落として、サイト全体の色味をそろえる（ロゴは除く） */
main img:not([src$=".svg"]), .onestop-photo img { filter: saturate(.88) contrast(.98); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: calc(880px + var(--gutter) * 2); }

.section { padding: var(--section-y) 0; }
.bg-tint { background: var(--bg-tint); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-xl { padding: 22px 56px; font-size: 18px; }

/* プラグイン側の .btn:hover（文字色が黒になる）に負けないよう、文字色まで明示する */
.btn.btn-accent,
.btn.btn-accent:hover,
.btn.btn-accent:focus-visible { color: #fff; }
.btn-accent { background: var(--accent); }
.btn.btn-accent:hover,
.btn.btn-accent:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.btn-primary,
.btn.btn-primary:hover,
.btn.btn-primary:focus-visible { color: #fff; }
.btn-primary { background: var(--navy); }
.btn.btn-primary:hover,
.btn.btn-primary:focus-visible { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn.btn-outline { background: var(--surface); color: var(--navy); border-color: var(--navy); }
.btn.btn-outline:hover,
.btn.btn-outline:focus-visible { background: var(--navy); color: #fff; border-color: var(--navy); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}
.link-arrow::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  transition: width .2s;
}
.link-arrow:hover::after { width: 40px; }

/* ---------- 見出し ---------- */
.section-head { text-align: center; margin-bottom: 72px; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  text-align: left; gap: 24px; margin-bottom: 48px;
}
.section-en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-wrap: balance;
}
.section-lead {
  margin-top: 24px;
  color: var(--text-sub);
}
.section-more { margin-top: 64px; text-align: center; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 251, 250, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 40px;
  height: 100%;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }

.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 32px; }
.global-nav a { font-size: 14px; font-weight: 500; color: var(--text); }
.global-nav a:hover,
.global-nav a[aria-current="page"] { color: var(--blue); }
.global-nav .nav-contact { display: none; }

.menu-toggle { display: none; }

/* ---------- ヒーロー（歯車の3D） ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: 96px 0;
  color: #fff;
  /* ロゴの紺と青から作った暗い青のグラデーション */
  background:
    radial-gradient(ellipse 60% 75% at 80% 20%, rgba(140, 200, 255, .38) 0%, rgba(140, 200, 255, 0) 65%),
    linear-gradient(125deg, #1b6fe0 0%, #1158c4 40%, #0d419a 78%, #0b3477 100%);
}
/* 背景の日本地図：対応エリア（山口県・九州）を青く、下関に印 */
.hero-map {
  position: absolute; z-index: 0;
  width: min(900px, 66vw); aspect-ratio: 1;
  left: 50%; top: 50%; transform: translate(-14.7%, -56.5%);
  opacity: 0; animation: map-in 1.6s cubic-bezier(.2, .7, .2, 1) .2s forwards;
}
.hero-map img { width: 100%; height: 100%; }
@keyframes map-in { from { opacity: 0; transform: translate(-14.7%, -54.5%) scale(.98); } to { opacity: 1; transform: translate(-14.7%, -56.5%); } }
.hero-map-pin { position: absolute; width: 0; height: 0; }
.hero-map-pin i {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(227, 115, 0, .25), 0 0 18px rgba(255, 150, 40, .7);
}
.hero-map-pin i::before,
.hero-map-pin i::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(255, 160, 60, .8);
  animation: pin-wave 3.2s cubic-bezier(.2, .6, .3, 1) infinite;
}
.hero-map-pin i::after { animation-delay: 1.6s; }
@keyframes pin-wave { from { transform: scale(1); opacity: .9; } to { transform: scale(7); opacity: 0; } }
.hero-map-pin b {
  position: absolute; left: 14px; top: -11px; white-space: nowrap;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #fff;
}
.hero-map-pin small {
  margin-left: 8px; font-family: var(--font-en); font-size: 10px; font-weight: 600; letter-spacing: .16em; color: rgba(255, 255, 255, .55);
}
@media (prefers-reduced-motion: reduce) {
  .hero-map { animation: none; opacity: 1; transform: translate(-14.7%, -56.5%); }
  .hero-map-pin i::before, .hero-map-pin i::after { animation: none; display: none; }
}
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s; }
.hero-gl.is-ready { opacity: 1; }
/* 粒子と周辺減光で、CGの滑らかさを抑えて写真の質感に寄せる */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 55%, rgba(3, 14, 36, .6) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .9; mix-blend-mode: overlay;
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  font-size: 14px; font-weight: 500; letter-spacing: .08em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 28px;
}
.hero-eyebrow span { font-weight: 700; color: #fff; }
.hero-title {
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .03em;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-lead { max-width: 28em; margin-top: 32px; color: rgba(255, 255, 255, .7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.btn.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn.btn-ghost:hover,
.btn.btn-ghost:focus-visible { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }
.hero-area { margin-top: 32px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.hero-area span {
  font-weight: 700; color: #fff;
  margin-right: 12px; padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, .25);
}
.hero-spec {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 32px;
  font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.8;
  color: rgba(255, 255, 255, .45); text-align: right;
}
@media (min-width: 1168px) { .hero-spec { right: calc((100vw - var(--container)) / 2); } }

/* ---------- ONE-STOP（写真が画面いっぱいに広がる） ---------- */
.onestop { position: relative; height: 240vh; }
.onestop-sticky {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h)); overflow: hidden;
  display: grid; place-items: center;
}
.onestop-photo {
  position: absolute; inset: 0; overflow: hidden;
  /* 拡大縮小だけで動かす（切り抜きを毎回描き直さないので滑らか） */
  transform: scale(.5); transform-origin: 50% 50%;
  will-change: transform;
}
.onestop-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%;
}
.onestop-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity: .7;
}
.onestop-photo::after { content: ""; position: absolute; inset: 0; background: rgb(6, 14, 30); opacity: var(--shade, 0); }
.onestop-copy {
  position: relative; z-index: 1; padding: 0 24px; will-change: opacity, transform;
  color: #fff; text-align: center;
  opacity: var(--copy, 0); transform: translateY(calc((1 - var(--copy, 0)) * 24px));
}
.onestop-title {
  margin-top: 4px;
  font-size: clamp(26px, 4vw, 52px); font-weight: 700; line-height: 1.5; letter-spacing: .04em;
}
.onestop-copy p:last-child { margin-top: 20px; color: rgba(255, 255, 255, .88); }

/* ---------- 2つの柱 ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: var(--radius); overflow: hidden;
}
.pillar { padding: 64px 56px 60px; }
.pillar-recover { background: var(--navy); color: #fff; }
.pillar-keep { background: var(--bg-tint); }
.pillar-label {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
}
.pillar-label span {
  font-family: var(--font-en); font-size: 13px; color: var(--accent);
}
.pillar-recover .pillar-label { color: rgba(255, 255, 255, .72); }
.pillar-keep .pillar-label { color: var(--text-sub); }
.pillar-title {
  font-size: 26px; font-weight: 700; line-height: 1.5; letter-spacing: .04em;
  margin: 20px 0 20px;
}
.pillar-keep .pillar-title { color: var(--navy); }
.pillar p:last-child { font-size: 15px; }
.pillar-recover p:last-child { color: rgba(255, 255, 255, .82); }
.pillar-keep p:last-child { color: var(--text-sub); }

/* ---------- 選ばれる理由 ---------- */
.reasons {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.reason-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
}
.reason-num {
  font-family: var(--font-en); font-size: 15px; font-weight: 700;
  color: var(--accent); letter-spacing: .1em;
  margin-top: 28px;
}
.reason-num::before { content: "REASON "; color: var(--text-sub); font-weight: 600; }
.reason-title { font-size: 20px; font-weight: 700; color: var(--navy); margin: 6px 0 12px; }
.reason p:last-child { color: var(--text-sub); font-size: 15px; }

/* ---------- 事業内容（画面を止めて横に送る） ---------- */
.svc-hs { position: relative; }
.svc-hs-sticky {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h)); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.svc-hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.svc-hs-side { display: flex; align-items: center; gap: 40px; }
.svc-hs-meta { display: flex; align-items: center; gap: 16px; font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--text-sub); letter-spacing: .08em; }
.svc-hs-meta b { color: var(--navy); }
.svc-hs-bar { position: relative; width: 120px; height: 1px; background: var(--line); }
.svc-hs-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--navy); }
.svc-hs-track {
  display: flex; gap: 28px;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2));
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.svc-hs-track::-webkit-scrollbar { display: none; }
.svc-hs-item { flex: 0 0 clamp(260px, 26vw, 360px); }
.svc-hs-item figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.svc-hs-item img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.svc-hs-item h3 {
  display: flex; align-items: baseline; gap: 12px;
  margin: 18px 0 8px; font-size: 18px; font-weight: 700; color: var(--navy);
}
.svc-hs-item h3 span { font-family: var(--font-en); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.svc-hs-item p { font-size: 14px; line-height: 1.8; color: var(--text-sub); }
.svc-hs + .cta-band { padding-top: 16px; }

/* ---------- 中間CTA ---------- */
.cta-band { padding: 0 0 var(--section-y); }
.cta-band + .section:not(.bg-tint) { padding-top: 0; }
.section:has(+ .cta-band) { padding-bottom: 88px; }
.cta-band-inner {
  padding: 56px 32px;
  text-align: center;
  background: var(--navy-soft); border-radius: var(--radius);
}
.cta-band-free { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.cta-band-title { margin: 8px 0 28px; font-size: 26px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; color: var(--navy); }

/* ---------- 年間保全プラン ---------- */
.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  padding: 16px 0;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 48px 40px;
}
.plan + .plan { border-left: 0; }
.plan:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.plan:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.plan-featured {
  position: relative; z-index: 1;
  margin: -16px 0;
  padding-top: 64px; padding-bottom: 64px;
  background: var(--navy); border-color: var(--navy); color: #fff;
  border-radius: var(--radius);
}
.plan-en {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-en); font-size: 13px; font-weight: 700;
  color: var(--accent); letter-spacing: .16em;
}
.plan-title { font-size: 22px; font-weight: 700; color: var(--navy); margin-top: 8px; letter-spacing: .04em; }
.plan-for {
  font-size: 14px; color: var(--text-sub);
  padding-bottom: 28px; margin: 6px 0 28px;
  border-bottom: 1px solid var(--line);
}
.plan-featured .plan-title { color: #fff; }
.plan-featured .plan-for { color: rgba(255, 255, 255, .75); border-bottom-color: rgba(255, 255, 255, .2); }
.plan-featured .plan-list li::before { border-color: var(--accent); }
.plan-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
}
.plan-list li + li { margin-top: 10px; }
.plan-list li::before {
  content: "";
  position: absolute; left: 2px; top: .62em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg);
}

/* ---------- 施工実績 ---------- */
.works {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.work-img { overflow: hidden; border-radius: var(--radius); }
.work-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .4s;
}
.work:hover .work-img img { transform: scale(1.04); }
.work-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; font-size: 13px; color: var(--text-sub);
}
.work-meta time { font-family: var(--font-en); }
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px; font-weight: 500;
  color: var(--navy); background: var(--navy-soft);
  border-radius: 2px;
}
.work-title { font-size: 17px; font-weight: 700; line-height: 1.6; margin-top: 10px; }
.work:hover .work-title { color: var(--navy); }

/* ---------- 会社紹介 ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px; align-items: center;
}
.about-media img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  border-radius: var(--radius);
}
.about-text .section-title { margin-bottom: 32px; }
.about-text p:not(.section-en) { color: var(--text-sub); }
.about-text p + p { margin-top: 16px; }
.about-text .link-arrow { margin-top: 40px; }

/* ---------- お知らせ ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: flex; gap: 40px;
  padding: 28px 8px;
}
.news-list time { font-family: var(--font-en); font-size: 14px; color: var(--text-sub); flex-shrink: 0; }
.news-list a:hover .news-title { color: var(--navy); text-decoration: underline; }

/* ---------- 問い合わせ ---------- */
.contact { padding: 128px 0 112px; color: #fff; background: var(--navy-deep); text-align: center; }
.contact-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700; line-height: 1.5; letter-spacing: .04em;
}
.contact-lead { margin: 24px 0 48px; color: rgba(255, 255, 255, .78); }

.contact-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  width: min(100%, 480px); padding: 26px 32px;
  background: var(--accent); color: #fff; border-radius: var(--radius);
  transition: background-color .2s;
}
.contact-btn:hover { background: var(--accent-hover); }
.contact-btn-label { font-size: 19px; font-weight: 700; letter-spacing: .08em; }
.contact-btn-arrow { width: 22px; height: 22px; position: relative; flex-shrink: 0; transition: transform .2s; }
.contact-btn-arrow::before {
  content: ""; position: absolute; left: 0; right: 2px; top: 50%; height: 2px; background: currentColor; transform: translateY(-50%);
}
.contact-btn-arrow::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.contact-btn:hover .contact-btn-arrow { transform: translateX(4px); }

.contact-flow {
  display: flex; justify-content: center; gap: 0;
  list-style: none; padding: 0; margin: 48px auto 0;
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .8);
}
.contact-flow li { display: flex; align-items: baseline; gap: 10px; }
.contact-flow li + li::before {
  content: ""; align-self: center;
  width: 40px; height: 1px; margin: 0 20px; background: rgba(255, 255, 255, .25);
}
.contact-flow span { font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }

/* ---------- フッター ---------- */
.site-footer { background: var(--bg-tint); padding: 80px 0 32px; font-size: 14px; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 48px;
}
.footer-logo { margin-bottom: 24px; }
.footer-logo img { height: 40px; width: auto; }
.footer-info p { color: var(--text-sub); }
.footer-info p + p { margin-top: 8px; }
.footer-sns {
  display: inline-block; margin-top: 20px;
  font-family: var(--font-en); font-weight: 600; color: var(--navy);
  border-bottom: 1px solid currentColor;
}
.footer-nav ul {
  display: grid; grid-template-columns: repeat(2, auto);
  gap: 12px 48px;
}
.footer-nav a:hover { color: var(--navy); }
.copyright {
  text-align: center; margin-top: 64px;
  font-family: var(--font-en); font-size: 12px; color: var(--text-sub);
}

.sp-fixed-cta { display: none; }

/* ==========================================================
   タブレット
   ========================================================== */
@media (max-width: 1024px) {
  :root { --section-y: 104px; }
  .header-inner { gap: 24px; }
  .global-nav ul { gap: 20px; }
  .about { gap: 48px; }
}

/* ==========================================================
   スマホ
   ========================================================== */
@media (max-width: 860px) {
  :root { --gutter: 20px; --section-y: 88px; --header-h: 64px; }
  body { font-size: 15px; }
  .pc-only { display: none; }

  .header-cta { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; margin-left: auto; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) {
    display: block; height: 2px; background: var(--navy); transition: transform .2s;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

  .global-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

  /* スマホは上に歯車と地図の帯、その下に文字（重ならないよう縦に分ける） */
  .hero { --hero-visual: min(86vw, 360px); display: block; min-height: 0; padding: var(--hero-visual) 0 56px; }
  .hero-gl { bottom: auto; height: var(--hero-visual); }
  .hero-eyebrow { font-size: 12px; margin-bottom: 18px; }
  .hero-title { font-size: 29px; }
  .hero-lead { font-size: 15px; margin-top: 20px; }
  .hero-actions { flex-direction: column; margin-top: 32px; }
  .hero-actions .btn { width: 100%; }
  .hero-area { margin-top: 24px; font-size: 13px; }
  .hero-spec { display: none; }
  .hero-map {
    width: 118vw; left: 0; top: 0; transform: translate(-5.7%, -25.5%); animation-name: map-in-sp;
    /* 帯の下端で地図を消す */
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 96%);
            mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 96%);
  }

  @keyframes map-in-sp { from { opacity: 0; } to { opacity: 1; } }

  .onestop { height: 200vh; }

  .svc-hs-head { margin-bottom: 24px; }
  .svc-hs-side .link-arrow { display: none; }
  .svc-hs-bar { width: 56px; }
  .svc-hs-track { gap: 16px; }
  .svc-hs-item { flex-basis: 70vw; }
  .svc-hs-item img { aspect-ratio: 4 / 4.2; }
  .svc-hs-item p { font-size: 13px; }

  .section-head { margin-bottom: 48px; }
  .section-head-row { margin-bottom: 32px; }
  .section-lead { text-align: left; }
  .section-more { margin-top: 48px; }

  .pillars,
  .reasons,
  .plans,
  .works { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 40px 24px 36px; }
  .pillar-title { font-size: 22px; margin: 14px 0; }
  .reasons { gap: 56px; }
  .plans { padding: 0; gap: 16px; }
  .plan,
  .plan + .plan,
  .plan:first-child,
  .plan:last-child { padding: 36px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
  .plans .plan-featured { margin: 0; padding: 40px 24px; border-color: var(--navy); }
  .works { gap: 40px; }

  .section:has(+ .cta-band) { padding-bottom: 64px; }
  .cta-band-inner { padding: 40px 20px; }
  .cta-band-free { font-size: 13px; }
  .cta-band-title { font-size: 20px; margin-bottom: 24px; }
  .cta-band-inner .btn { width: 100%; }

  .about { grid-template-columns: 1fr; gap: 40px; }

  .news-list a { flex-direction: column; gap: 4px; padding: 22px 4px; }

  .contact { padding: 88px 0; }
  .contact-lead { margin: 20px 0 36px; }
  .contact-btn { padding: 22px 20px; gap: 14px; }
  .contact-btn-label { font-size: 17px; }
  .contact-flow { flex-direction: column; align-items: center; gap: 10px; margin-top: 36px; }
  .contact-flow li + li::before { display: none; }
  .btn-xl { width: 100%; padding: 20px 16px; font-size: 16px; }

  .footer-inner { flex-direction: column; }
  .site-footer { padding-bottom: 104px; }

  .sp-fixed-cta {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line);
    /* 最初の画面を過ぎてから下から出す（main.js が is-shown を付ける） */
    transform: translateY(105%); visibility: hidden;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s;
  }
  .sp-fixed-cta.is-shown { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .sp-fixed-cta .btn { width: 100%; padding: 14px; font-size: 16px; }
}



/* ==========================================================
   WordPress 化で追加した部品
   ========================================================== */

.section-tight { padding: 88px 0 var(--section-y); }
.section-more-pair { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px; }
.section-head-sub { margin-top: 112px; margin-bottom: 40px; }
.note { margin-top: 24px; font-size: 13px; color: var(--text-sub); }
.empty { text-align: center; color: var(--text-sub); padding: 40px 0; }
.nowrap { white-space: nowrap; }

.plan { position: relative; }
.plan-badge {
  display: inline-block;
  font-family: var(--font-ja); font-size: 12px; font-weight: 700; line-height: 1;
  letter-spacing: .1em;
  color: var(--accent);
}
.plan .plan-badge { color: #fff; }

/* ---------- 下層ページ見出し ---------- */
.page-head {
  background: var(--bg-tint);
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.page-head.has-img { padding: 72px 0; }
.page-head-inner {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.page-head.has-img .page-head-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.page-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700; line-height: 1.4;
  color: var(--navy); letter-spacing: .05em;
}
.page-lead { margin-top: 24px; color: var(--text-sub); }
.page-head-media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- 事業内容ページ ---------- */
.svc-rows { display: grid; gap: 112px; }
.svc-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px; align-items: center;
  scroll-margin-top: calc(var(--header-h) + 32px);
}
.svc-row:nth-child(even) .svc-row-media { order: 2; }
.svc-row-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
}
.svc-row-num {
  font-family: var(--font-en); font-size: 15px; font-weight: 700; line-height: 1;
  color: var(--accent); letter-spacing: .08em;
  display: flex; align-items: center; gap: 14px;
}
.svc-row-num span {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-sub);
}
.svc-row-title { font-size: 28px; font-weight: 700; color: var(--navy); margin: 20px 0 20px; letter-spacing: .04em; }
.svc-row-text p { color: var(--text-sub); }
.svc-row-text .link-arrow { margin-top: 32px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface); border-radius: var(--radius);
}
.feature { padding: 56px 44px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature-title { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 16px; letter-spacing: .04em; }
.feature p { color: var(--text-sub); font-size: 15px; }

.products {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; margin-top: 88px;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.product { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product p { font-size: 14px; color: var(--text-sub); }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; }
.flow li { padding-right: 32px; }
.flow li:last-child { padding-right: 0; }
.flow-num {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 40px; font-weight: 600; line-height: 1;
  color: var(--navy); letter-spacing: .02em;
}
.flow-num span {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); align-self: flex-start; margin-top: 2px;
}
/* 番号の右から次の番号の手前まで線を引く */
.flow li:not(:last-child) .flow-num::after {
  content: ""; flex: 1; height: 1px; margin-left: 14px;
  background: var(--line);
}
.flow h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 28px 0 12px; letter-spacing: .04em; }
.flow-body p { font-size: 14px; color: var(--text-sub); }

/* ---------- 表 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare, .spec-table, .profile-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  font-size: 15px;
}
.compare { min-width: 560px; }
.compare th, .compare td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
  padding: 20px 12px; position: relative;
}
.compare thead th:first-child { background: transparent; }
.compare thead th.is-featured { background: var(--blue); }
.compare thead .plan-badge { display: block; width: max-content; margin: 0 auto 6px; color: #fff; opacity: .85; font-size: 11px; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); padding-left: 20px; }
.compare td.is-featured { background: #f2f6fd; font-weight: 700; color: var(--navy); }
.compare th, .compare td,
.spec-table th, .spec-table td { word-break: keep-all; overflow-wrap: anywhere; }
.mark-o { color: var(--blue); font-size: 20px; line-height: 1; font-weight: 700; }
.mark-x { color: #b5bdc8; }

.spec-table { min-width: 560px; }
.spec-table th, .spec-table td { padding: 20px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table thead th { background: var(--navy-soft); color: var(--navy); font-size: 14px; }
.spec-table tbody th { font-weight: 700; color: var(--navy); min-width: 10em; }
.spec-table td:last-child { color: var(--text-sub); }

.profile-table { border-top: 1px solid var(--navy); }
.profile-table th, .profile-table td { padding: 24px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.profile-table th { width: 200px; font-weight: 700; color: var(--navy); }
.profile-table a { color: var(--blue); text-decoration: underline; }

/* ---------- プラン：含まれるもの ---------- */
.scope {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.scope-box { padding: 44px 40px; background: var(--surface); }
.scope-box.is-muted { background: var(--bg-tint); border-left: 1px solid var(--line); }
.scope-box.is-muted .scope-title { color: var(--text-sub); }
.scope-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.check-list li, .dot-list li { position: relative; padding-left: 24px; font-size: 15px; }
.check-list li + li, .dot-list li + li { margin-top: 8px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.dot-list li::before {
  content: ""; position: absolute; left: 6px; top: .8em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-sub);
}

/* ---------- 会社概要 ---------- */
.greeting .section-title { margin-bottom: 40px; }
.greeting-body p + p { margin-top: 20px; }
.greeting-sign { margin-top: 40px !important; text-align: right; color: var(--text-sub); }
.greeting-sign span { font-size: 20px; font-weight: 700; color: var(--navy); }
.map { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-note { margin-top: 24px; color: var(--text-sub); font-size: 15px; }

/* ---------- お問い合わせ ---------- */
.contact-layout {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  gap: 72px; align-items: start;
}
.contact-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-aside-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.contact-steps { list-style: none; padding: 0; margin: 0 0 40px; }
.contact-steps { border-top: 1px solid var(--navy); }
.contact-steps li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500;
}
.contact-steps span {
  flex-shrink: 0;
  font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em;
}
.contact-aside-note { font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.contact-form {
  background: var(--surface); padding: 56px 56px 48px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-form .wpcf7-form p { margin: 0 0 28px; font-weight: 700; font-size: 15px; color: var(--navy); }
.contact-form .wpcf7-form br { display: none; }
.contact-form .wpcf7-form-control-wrap { display: block; margin-top: 10px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%; padding: 14px 16px;
  font: inherit; font-weight: 400; color: var(--text);
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, background-color .2s;
}
.contact-form textarea { min-height: 200px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue); background: var(--surface); }
.contact-form input[type="submit"] {
  display: block; width: 100%; max-width: 360px; margin: 16px auto 0;
  padding: 20px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: #fff;
  font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .06em;
  cursor: pointer; transition: background-color .2s;
}
.contact-form input[type="submit"]:hover { background: var(--accent-hover); }
.contact-form .wpcf7-spinner { display: block; margin: 12px auto 0; }
.contact-form .wpcf7-not-valid-tip { font-size: 13px; font-weight: 500; margin-top: 6px; }
.contact-form .wpcf7-response-output { margin: 24px 0 0 !important; padding: 16px !important; font-size: 14px; font-weight: 500; border-radius: var(--radius); }
.form-privacy { margin-top: 32px; font-size: 13px; color: var(--text-sub); }
.form-privacy a { color: var(--blue); text-decoration: underline; }
.form-tel { margin-top: 12px; font-size: 13px; color: var(--text-sub); }

/* ---------- 一覧 ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.filter a {
  display: inline-block; padding: 8px 18px;
  font-size: 14px; font-weight: 500; color: var(--navy);
  border: 1px solid var(--line); border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.filter a:hover { border-color: var(--navy); }
.filter a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.pagination { margin-top: 72px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-en); font-size: 14px; font-weight: 600; color: var(--navy);
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- 記事詳細 ---------- */
.single-head { padding: 88px 0 48px; }
.single-head .work-meta { margin-top: 0; }
.single-title {
  font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.5;
  color: var(--navy); margin-top: 16px; letter-spacing: .03em;
}
.single-thumb { margin-bottom: 56px; }
.single-thumb img { width: 100%; border-radius: var(--radius); }
.single-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  margin: 96px 0 var(--section-y); padding-top: 40px; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 500;
}
.single-nav a:not(.btn) { color: var(--navy); }
.single-nav-next { text-align: right; }

/* 本文（ブロックエディターで書いた内容） */
.entry-content { font-size: 16px; line-height: 2; }
.entry-content > * + * { margin-top: 1.6em; }
.entry-content h2 {
  font-size: 24px; font-weight: 700; line-height: 1.5; color: var(--navy);
  margin-top: 2.6em; padding-top: 1.2em; border-top: 1px solid var(--line); letter-spacing: .04em;
}
.entry-content h3 {
  font-size: 19px; font-weight: 700; color: var(--navy);
  margin-top: 2.2em; line-height: 1.5;
}
.entry-content h4 { font-size: 17px; font-weight: 700; margin-top: 2em; }
.entry-content > h2:first-child, .entry-content > h3:first-child { margin-top: 0; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 13px; color: var(--text-sub); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th, .entry-content thead td { background: var(--bg-tint); color: var(--navy); font-weight: 700; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-gallery { gap: 12px; }

/* ==========================================================
   追加部品のレスポンシブ
   ========================================================== */
@media (max-width: 1024px) {
  .logo img { height: 38px; }
  .global-nav ul { gap: 18px; }
  .global-nav a { font-size: 13px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .flow li:nth-child(2) .flow-num::after { display: none; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; }
}

@media (max-width: 860px) {
  .logo img { height: 34px; }
  .global-nav .nav-contact { display: block; }
  .global-nav a[aria-current="page"] { color: var(--blue); }

  .page-head, .page-head.has-img { padding: 48px 0 56px; }
  .page-head.has-img .page-head-inner { grid-template-columns: 1fr; gap: 32px; }
  .page-head-media { order: -1; }
  .page-lead { font-size: 15px; }

  .section-tight { padding-top: 56px; }
  .section-head-sub { margin-top: 80px; }

  .svc-rows { gap: 72px; }
  .svc-row { grid-template-columns: 1fr; gap: 28px; }
  .svc-row:nth-child(even) .svc-row-media { order: 0; }

  .svc-row-title { font-size: 22px; margin: 14px 0; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature { padding: 36px 24px; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .products { grid-template-columns: 1fr; margin-top: 56px; }
  .product { padding: 24px 20px; }
  /* スマホ：番号を左に置き、縦の線で次の番号へつなぐ */
  .flow { grid-template-columns: 1fr; row-gap: 0; }
  .flow li {
    position: relative;
    display: grid; grid-template-columns: 64px minmax(0, 1fr);
    padding: 0 0 40px;
  }
  .flow li:last-child { padding-bottom: 0; }
  .flow-num { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 30px; }
  .flow-num span { font-size: 11px; margin-top: 0; }
  .flow li:not(:last-child) .flow-num::after { display: none; }
  .flow li:not(:last-child)::after {
    content: ""; position: absolute; left: 16px; top: 64px; bottom: 12px;
    width: 1px; background: var(--line);
  }
  .flow h3 { margin: 0 0 8px; }

  .scope { grid-template-columns: 1fr; }
  .scope-box { padding: 32px 24px; }
  .scope-box.is-muted { border-left: 0; border-top: 1px solid var(--line); }
  .compare, .spec-table { font-size: 14px; }
  .profile-table th, .profile-table td { display: block; width: 100%; padding: 14px 16px; }
  .profile-table th { border-bottom: 0; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-aside { position: static; }
  .contact-form { padding: 32px 20px; }
  .contact-form .wpcf7-form p { margin-bottom: 22px; }
  .contact-form input[type="submit"] { max-width: none; }

  .single-head { padding: 56px 0 32px; }
  .single-thumb { margin-bottom: 40px; }
  .single-nav { grid-template-columns: 1fr 1fr; margin-top: 72px; }
  .single-nav .btn { grid-column: 1 / -1; grid-row: 2; }
  .entry-content { font-size: 15px; }
  .entry-content h2 { font-size: 21px; }
  .filter { margin-bottom: 40px; }
}

@media (max-width: 600px) {
  .compare { min-width: 0; font-size: 12px; }
  .compare th, .compare td { padding: 12px 4px; }
  .compare tbody th { padding-left: 8px; }
  .compare thead th { font-size: 12px; padding: 14px 4px; }
  .compare thead .plan-badge { font-size: 10px; padding: 4px 6px; }
}

/* 比較表：3プランの列幅をそろえる */
.compare { table-layout: fixed; }
.compare th:first-child { width: 34%; }
.compare th:not(:first-child),
.compare td { width: 22%; }
@media (max-width: 600px) {
  .compare th:first-child { width: 31%; }
  .compare th:not(:first-child),
  .compare td { width: 23%; }
}
@media (max-width: 600px) {
  .compare thead th { font-size: 11px; letter-spacing: 0; white-space: nowrap; }
}

/* お知らせのアイキャッチは控えめに（実績は写真を大きく見せる） */
.single-thumb.is-small { max-width: 480px; margin: 0 0 48px; }
.single-thumb.is-small img { max-height: 300px; width: auto; max-width: 100%; }
@media (max-width: 860px) {
  .single-thumb.is-small { max-width: 100%; margin-bottom: 32px; }
  .single-thumb.is-small img { max-height: 200px; }
}

/* ---------- サイトマップ ---------- */
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; }
.sitemap-title { font-size: 18px; font-weight: 700; color: var(--navy); padding-bottom: 12px; margin-bottom: 0; border-bottom: 1px solid var(--navy); }
.sitemap-list li { border-bottom: 1px solid var(--line); }
.sitemap-list a { display: block; padding: 14px 4px; font-size: 15px; }
.sitemap-list a:hover { color: var(--blue); }

/* reCAPTCHAのマークがスマホでフォームの送信ボタンにかからないように */
@media (max-width: 860px) {
  .grecaptcha-badge { bottom: 16px !important; }
}


/* ==========================================================
   サイト全体の統一（色・面・カード）
   ========================================================== */

/* 濃い面：すべて最初の画面と同じ紺のグラデーション */
.contact,
.pillar-recover,
.plan-featured,
.page-head { background: var(--grad-navy); }
.compare thead th { background: #0b2a5e; }
.compare thead th.is-featured { background: #163d80; }
.compare td.is-featured { background: #eef1f6; }

/* 下層ページの見出し：最初の画面と同じ紺に白文字 */
.page-head { color: #fff; border-bottom: 0; padding: 104px 0; }
.page-head.has-img { padding: 80px 0; }
.page-title { color: #fff; }
.page-lead { color: rgba(255, 255, 255, .72); }
.page-head-media img { box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .45); }
.page-head + .section-tight { padding-top: var(--section-y); }

/* 色は紺とオレンジの2色に絞る（明るい青はやめる） */
.global-nav a:hover,
.global-nav a[aria-current="page"] { color: var(--navy); }
.global-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.mark-o { color: var(--navy); }
.check-list li::before { border-color: var(--navy); }
.profile-table a,
.form-privacy a,
.entry-content a { color: var(--navy); text-underline-offset: 3px; }
.contact-form textarea:focus,
.contact-form input:focus { border-color: var(--navy); }
.sitemap-list a:hover { color: var(--navy); }
.spec-table thead th { background: var(--bg-tint); }

/* カード：白い面・細い線・同じ角丸にそろえる */
.plan,
.feature-grid,
.contact-form,
.scope { border: 1px solid var(--line); border-radius: var(--radius); }
.plans { gap: 0; }
.feature-grid { overflow: hidden; }
.products { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cta-band-inner { border: 1px solid var(--line); background: var(--bg-tint); }

/* 写真の角丸と質感を全ページでそろえる */
.svc-row-media img,
.reason-img img,
.about-media img,
.svc-hs-item img,
.page-head-media img { border-radius: var(--radius); }

@media (max-width: 860px) {
  .page-head, .page-head.has-img { padding: 48px 0 56px; }
  .plans { gap: 16px; }
}

/* 明るい青の上でも文字がはっきり読めるように */
.hero-lead, .page-lead, .contact-lead { color: rgba(255, 255, 255, .88); }
.hero-area { color: rgba(255, 255, 255, .8); }
.pillar-recover p:last-child { color: rgba(255, 255, 255, .9); }
.plan-featured .plan-for { color: rgba(255, 255, 255, .85); }
/* 青い面の上の小さなオレンジ文字は、明るいオレンジにして読みやすく */
.page-head .section-en,
.contact .section-en,
.onestop-copy .section-en,
.plan-featured .plan-en,
.pillar-recover .pillar-label span,
.contact-flow span { color: #ffb36b; }
.compare thead th { background: #0d419a; }
.compare thead th.is-featured { background: #1158c4; }
/* 最初の画面だけは濃い紺のグラデーション（ほかの青い面は明るい青のまま） */
.hero {
  background:
    radial-gradient(ellipse 55% 70% at 72% 45%, rgba(10, 85, 196, .38) 0%, rgba(10, 85, 196, 0) 70%),
    linear-gradient(160deg, #0b2a5e 0%, #08214b 45%, #051634 100%);
}
.hero .hero-lead { color: rgba(255, 255, 255, .72); }
.hero .hero-area { color: rgba(255, 255, 255, .6); }
/* グラデーションは最初の画面だけ。ほかの青い面はロゴの青の単色 */
:root { --grad-navy: #1158c4; }
.contact, .pillar-recover, .plan-featured, .page-head { background: var(--grad-navy); }
.compare thead th { background: #0b2a5e; }
.compare thead th.is-featured { background: #1158c4; }

/* ---------- プラン比較表（見やすさの調整） ---------- */
.compare-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { line-height: 1.5; }
.compare thead th {
  padding: 18px 8px; font-size: 15px; letter-spacing: .06em;
}
.compare thead th:first-child { background: var(--surface); }
.compare thead th.is-featured { background: var(--grad-navy); }
.compare thead .plan-badge { color: #ffb36b; opacity: 1; }
.compare tbody th, .compare td { padding: 14px 10px; }
.compare td.is-featured { background: #eef3fb; }
/* グループの見出し行 */
.compare .compare-group th {
  padding: 22px 20px 8px; text-align: left; background: var(--surface);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent);
  border-bottom: 1px solid var(--navy);
}
.compare tbody:first-of-type .compare-group th { padding-top: 16px; }
/* 印：含まれる＝塗りつぶしのチェック、含まれない＝灰色の短い線 */
.mark-o {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); position: relative; vertical-align: middle;
}
.mark-o::after {
  content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.compare td.is-featured .mark-o { background: var(--grad-navy); }
.mark-o.mark-sm { width: 16px; height: 16px; }
.mark-o.mark-sm::after { left: 5px; top: 3px; width: 4px; height: 8px; }
.mark-x { display: inline-block; width: 14px; height: 2px; background: #b3bbc6; vertical-align: middle; }
.mark-t { font-weight: 700; color: var(--navy); }
.note .mark-o, .note .mark-x { margin: 0 2px 0 0; }

@media (max-width: 600px) {
  .compare thead th { font-size: 12px; padding: 14px 4px; }
  .compare tbody th { font-size: 12px; padding: 12px 6px 12px 10px; }
  .compare td { padding: 12px 2px; font-size: 12px; }
  .compare .compare-group th { padding: 18px 10px 6px; font-size: 11px; }
  .mark-o { width: 18px; height: 18px; }
  .mark-o::after { left: 6px; top: 3px; width: 5px; height: 9px; }
  .mark-x { width: 10px; }
}

.compare tbody th { word-break: keep-all; overflow-wrap: anywhere; }
/* 左上の「項目」見出し */
.compare thead th.compare-corner {
  background: var(--bg-tint); color: var(--navy); text-align: left; padding-left: 20px;
  border-bottom: 1px solid var(--navy);
}
/* 行の交互の色（グループごとに1行目から数える） */
.compare tbody tr:nth-child(odd):not(.compare-group) th,
.compare tbody tr:nth-child(odd):not(.compare-group) td { background: #f4f6f9; }
.compare tbody tr:nth-child(odd):not(.compare-group) td.is-featured { background: #e4ebf6; }
.compare tbody tr:nth-child(even) th,
.compare tbody tr:nth-child(even) td { background: var(--surface); }
.compare tbody tr:nth-child(even) td.is-featured { background: #eef3fb; }
@media (max-width: 600px) { .compare thead th.compare-corner { padding-left: 10px; } }

/* ---------- 比較表：見慣れた料金表の形に寄せる ---------- */
.compare thead th { background: var(--navy); }
.compare thead th.is-featured { background: var(--grad-navy); }
.compare thead th.compare-corner { background: var(--navy); color: #fff; border-bottom: 0; }
/* グループ見出しは薄い灰色の帯に紺の文字 */
.compare .compare-group th {
  padding: 10px 20px; background: var(--bg-tint) !important;
  color: var(--navy); font-size: 13px; letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
}
.compare tbody:first-of-type .compare-group th { padding-top: 10px; }
/* 行の交互の色は付けず、細い罫線だけで区切る */
.compare tbody tr:not(.compare-group) th,
.compare tbody tr:not(.compare-group) td { background: var(--surface) !important; }
.compare tbody tr:not(.compare-group) td.is-featured { background: #f3f6fb !important; }
/* チェックは丸なしの紺の線だけ */
.mark-o, .compare td.is-featured .mark-o { background: none; width: 18px; height: 18px; border-radius: 0; }
.mark-o::after { left: 5px; top: 0; width: 7px; height: 13px; border-color: var(--navy); border-width: 0 2.5px 2.5px 0; }
.mark-o.mark-sm { width: 12px; height: 12px; }
.mark-o.mark-sm::after { left: 3px; top: -1px; width: 5px; height: 9px; border-width: 0 2px 2px 0; }
.mark-t { font-weight: 500; }
@media (max-width: 600px) {
  .compare .compare-group th { padding: 8px 10px; font-size: 12px; }
  .mark-o { width: 16px; height: 16px; }
  .mark-o::after { left: 5px; top: 0; width: 6px; height: 11px; }
}

/* ==========================================================
   ボタンの統一：1つの形（文字＋右端の矢印の丸）にそろえる
   ========================================================== */
.btn, .contact-btn, .contact-form input[type="submit"] {
  --arrow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.btn {
  gap: 16px; padding: 14px 14px 14px 26px;
  border-radius: 999px; font-size: 15px; letter-spacing: .06em;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn::after {
  content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .2) var(--arrow) center / 0 0 no-repeat;
  -webkit-mask: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
  position: relative;
  transition: transform .25s;
}
/* 矢印本体（文字色で塗る） */
.btn { position: relative; }
.btn::before {
  content: ""; position: absolute; right: 14px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  background: currentColor;
  -webkit-mask: var(--arrow) center / 14px no-repeat; mask: var(--arrow) center / 14px no-repeat;
  transition: transform .25s; z-index: 1;
}
.btn:hover::before, .btn:hover::after { transform: translateX(3px); }
.btn-lg { padding: 16px 16px 16px 30px; font-size: 16px; }
.btn-lg::before { right: 16px; }
.btn.btn-outline::after { background-color: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.btn.btn-ghost::after { background-color: transparent; }
/* ヘッダーの小さいボタンは矢印なし */
.header-cta { padding: 11px 22px; }
.header-cta::before, .header-cta::after { display: none; }

/* ページ下部の大きいボタンも同じ形 */
.contact-btn { border-radius: 999px; padding: 18px 18px 18px 36px; justify-content: space-between; gap: 24px; width: min(100%, 420px); }
.contact-btn-label { font-size: 18px; }
.contact-btn-arrow {
  width: 40px; height: 40px; border-radius: 50%; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .18);
}
.contact-btn-arrow::before { display: none; }
.contact-btn-arrow::after {
  content: ""; position: absolute; inset: 0; width: auto; height: auto; border: 0; transform: none;
  background: #fff; -webkit-mask: var(--arrow) center / 16px no-repeat; mask: var(--arrow) center / 16px no-repeat;
}
.contact-btn:hover .contact-btn-arrow { transform: translateX(4px); }

/* フォームの送信ボタン */
.contact-form input[type="submit"] { border-radius: 999px; letter-spacing: .1em; }

/* テキストリンク：文字＋小さな矢印の丸 */
.link-arrow { gap: 14px; }
.link-arrow::after {
  width: 34px; height: 34px; border-radius: 50%;
  background: currentColor;
  -webkit-mask:
    var(--arrow-c, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'><circle cx='17' cy='17' r='16.25' fill='none' stroke='black' stroke-width='1'/><path d='M12 17h9M17.5 13.5 21 17l-3.5 3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>")) center / contain no-repeat;
          mask:
    var(--arrow-c, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'><circle cx='17' cy='17' r='16.25' fill='none' stroke='black' stroke-width='1'/><path d='M12 17h9M17.5 13.5 21 17l-3.5 3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>")) center / contain no-repeat;
  transition: transform .25s;
}
.link-arrow:hover::after { width: 34px; transform: translateX(4px); }

@media (max-width: 860px) {
  .hero-actions .btn, .cta-band-inner .btn, .sp-fixed-cta .btn { justify-content: space-between; padding-left: 26px; }
  .sp-fixed-cta .btn { padding: 10px 10px 10px 24px; }
  .sp-fixed-cta .btn::before { right: 10px; }
}

/* 矢印は丸なしの「>」だけにする */
.btn, .contact-btn, .link-arrow {
  --chev: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.btn { padding: 14px 22px 14px 28px; gap: 14px; }
.btn-lg { padding: 17px 26px 17px 32px; }
.btn::after { display: none; }
.btn::before {
  position: static; margin: 0; width: 12px; height: 12px; order: 2; flex-shrink: 0;
  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
}
.header-cta::before { display: none; }
.contact-btn { padding: 22px 32px 22px 36px; }
.contact-btn-arrow { width: 14px; height: 14px; background: none; box-shadow: none; }
.contact-btn-arrow::after { -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.link-arrow { gap: 8px; }
.link-arrow::after {
  width: 11px; height: 11px; border-radius: 0;
  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
}
.link-arrow:hover::after { width: 11px; }
@media (max-width: 860px) {
  .hero-actions .btn, .cta-band-inner .btn { padding-left: 26px; padding-right: 22px; }
  .sp-fixed-cta .btn { padding: 13px 20px 13px 24px; }
}

/* 文字はボタンの中央、「>」は右端に置く */
.btn { justify-content: center !important; padding-left: 44px; padding-right: 44px; }
.btn-lg { padding-left: 48px; padding-right: 48px; }
.btn::before { position: absolute; right: 20px; top: 50%; margin-top: -6px; }
.header-cta { padding: 11px 22px; }
.contact-btn { justify-content: center; padding-left: 48px; padding-right: 48px; position: relative; }
.contact-btn-arrow { position: absolute; right: 28px; top: 50%; margin-top: -7px; }
@media (max-width: 860px) {
  .hero-actions .btn, .cta-band-inner .btn, .sp-fixed-cta .btn { padding-left: 44px; padding-right: 44px; }
}

/* 文字と「>」をひとまとまりにして中央に置く（左右の余白をそろえる） */
.btn { justify-content: center !important; gap: 14px; padding-left: 38px; padding-right: 34px; }
.btn-lg { padding-left: 44px; padding-right: 40px; }
.btn::before, .btn-lg::before { position: static; margin: 0; order: 2; }
.header-cta { padding: 11px 22px; }
@media (max-width: 860px) {
  .hero-actions .btn, .cta-band-inner .btn, .sp-fixed-cta .btn { padding-left: 38px; padding-right: 34px; }
}

/* ヘッダーのボタンと送信ボタンにも「>」を付ける */
.btn.header-cta { gap: 10px; padding: 11px 20px 11px 24px; }
.btn.header-cta::before { display: block; width: 10px; height: 10px; }
.contact-form input[type="submit"] {
  --chev-w: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  /* 文字を少し左へ寄せ、空いたところに「>」を置く（文字と「>」で中央） */
  padding-left: 20px; padding-right: 46px;
  background-image: var(--chev-w); background-repeat: no-repeat; background-size: 12px 12px;
  background-position: calc(50% + 88px) 50%;
}
.contact-form input[type="submit"]:hover { background-image: var(--chev-w); background-repeat: no-repeat; background-size: 12px 12px; background-position: calc(50% + 91px) 50%; }

/* 全体のざらつきは「汚く見える」ため撤去（2026-10-04） */

/* スクロールでふわっと表示（main.js が is-in を付ける） */
.js-rv :is(.section-head > *, .pillar, .reason, .plans > *, .about > *, .feature, .product, .flow > li, .svc-row,
  .cta-band-inner, .contact-inner > *, .page-head-text > *, .news-list > li, .scope-box, .compare-wrap, .table-scroll,
  .greeting, .profile-table, .map, .contact-layout > *, .works > *, .section-more) {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--rv-d, 0s);
}
.js-rv :is(.section-head > *, .pillar, .reason, .plans > *, .about > *, .feature, .product, .flow > li, .svc-row,
  .cta-band-inner, .contact-inner > *, .page-head-text > *, .news-list > li, .scope-box, .compare-wrap, .table-scroll,
  .greeting, .profile-table, .map, .contact-layout > *, .works > *, .section-more).is-in {
  opacity: 1; transform: none;
}
/* 写真は少し大きい状態から、ゆっくり元の大きさに */
.js-rv :is(.reason-img, .svc-row-media, .about-media) img { transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.js-rv :is(.reason, .svc-row, .about-media):not(.is-in) img { transform: scale(1.08); }
.js-rv :is(.reason-img, .svc-row-media, .about-media) { overflow: hidden; border-radius: var(--radius); }

/* ==========================================================
   v2：直線的で余白の多い、英字の見出しが主役のデザイン
   ========================================================== */
:root {
  --radius: 0px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --vline: rgba(11, 42, 94, .07);
}

/* 背景のうすい縦線（ページの区切りの目安になる） */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--vline), var(--vline)) calc(50% - min(560px, 50vw - 24px)) 0 / 1px 100% no-repeat,
    linear-gradient(var(--vline), var(--vline)) calc(50% - min(280px, 25vw - 12px)) 0 / 1px 100% no-repeat,
    linear-gradient(var(--vline), var(--vline)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--vline), var(--vline)) calc(50% + min(280px, 25vw - 12px)) 0 / 1px 100% no-repeat,
    linear-gradient(var(--vline), var(--vline)) calc(50% + min(560px, 50vw - 24px)) 0 / 1px 100% no-repeat;
}
.bg-tint { background: rgba(236, 239, 243, .72); }

/* 見出し：英字を大きく主役に、日本語は下に添える */
.section-head { text-align: left; margin-bottom: 80px; }
.section-head-row { align-items: flex-end; }
.section-en {
  font-family: var(--font-serif); font-weight: 500; text-transform: none;
  font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: 0;
  color: var(--navy); margin-bottom: 20px;
}
.section-title {
  font-size: clamp(18px, 1.9vw, 22px); letter-spacing: .08em; line-height: 1.7;
  color: var(--text); text-wrap: pretty;
}
.section-title::before {
  content: ""; display: inline-block; width: 28px; height: 1px; background: var(--accent);
  vertical-align: middle; margin: -4px 14px 0 0;
}
.section-lead { margin-top: 28px; max-width: 46em; }

/* 濃い面の上の英字は白 */
.page-head .section-en, .contact .section-en, .onestop-copy .section-en, .cta-band .section-en { color: #fff; }

/* ヘッダー：横いっぱい、細い縦線で区切り、右端に四角い問い合わせ */
.site-header { background: rgba(251, 251, 250, .97); }
.site-header .header-inner { max-width: none; padding: 0; gap: 0; }
.site-header .logo { height: 100%; padding: 0 40px; border-right: 1px solid var(--line); }
.site-header .global-nav { margin-left: 48px; margin-right: auto; }
.site-header .global-nav ul { gap: 36px; }
.site-header .global-nav a { font-size: 13px; letter-spacing: .06em; }
.btn.header-cta {
  align-self: stretch; height: auto; border-radius: 0; padding: 0 40px 0 44px; gap: 14px;
  font-size: 14px; letter-spacing: .08em;
}
.site-header .menu-toggle { margin-right: 20px; }

/* 角をなくす（ボタンは角丸のまま） */
.pillar, .pillars, .plan, .plans, .scope-box, .cta-band-inner, .compare-wrap, .table-scroll,
.contact-form input, .contact-form textarea, .contact-form select, .feature, .product, .map iframe,
.svc-hs-item img, .svc-row-media img, .reason-img img, .about-media img, .page-head-media img { border-radius: 0 !important; }

/* 選ばれる理由：写真と紺のパネルをずらして重ね、左右交互に */
.reasons { display: flex; flex-direction: column; gap: 120px; }
.reason { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.reason .reason-img { grid-column: 1 / 9; grid-row: 1; }
.reason .reason-img img { aspect-ratio: 16 / 10; }
.reason .reason-body {
  grid-column: 7 / 13; grid-row: 1; position: relative; z-index: 1; margin-top: 160px;
  background: var(--navy); color: #fff; padding: 52px 52px 56px;
}
.reason:nth-child(even) .reason-img { grid-column: 5 / 13; }
.reason:nth-child(even) .reason-body { grid-column: 1 / 7; }
.reason .reason-num { margin-top: 0; font-family: var(--font-serif); font-size: 44px; font-weight: 500; line-height: 1; color: var(--accent); letter-spacing: 0; }
.reason .reason-num::before { content: "Reason "; font-style: italic; font-size: 22px; color: rgba(255, 255, 255, .6); font-weight: 500; margin-right: 6px; }
.reason .reason-title { color: #fff; font-size: 22px; margin: 20px 0 16px; }
.reason .reason-body p:last-child { color: rgba(255, 255, 255, .82); }

/* ギャラリー：暗めの現場写真を格子に、横に大きな英字 */
.gallery { position: relative; padding: 120px 0; overflow: hidden; }
.gallery::before { content: ""; position: absolute; top: 0; bottom: 0; left: 38%; right: 0; background: var(--navy); }
.gallery-inner { position: relative; width: min(1120px, calc(100% - 48px)); margin: 0 auto; display: flex; align-items: center; }
.gallery-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255, 255, 255, .12); }
.gallery-grid figure { margin: 0; aspect-ratio: 1; overflow: hidden; background: #000; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.78) contrast(1.08); transition: filter .5s, transform .8s; }
.gallery-grid figure:hover img { filter: none; transform: scale(1.04); }
.gallery-en {
  writing-mode: vertical-rl; font-family: var(--font-serif); font-size: clamp(80px, 11vw, 168px); line-height: 1;
  color: rgba(255, 255, 255, .16); margin: 0 -0.12em 0 24px; letter-spacing: .02em; user-select: none;
}
.js-rv .gallery-grid > figure { opacity: 0; transform: translateY(20px); transition: opacity .9s, transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rv-d, 0s); }
.js-rv .gallery-grid > figure.is-in { opacity: 1; transform: none; }

/* About：写真を端まで寄せる */
.about-media img { aspect-ratio: 4 / 5; object-fit: cover; }

/* フッター：濃紺の面にサイトマップ */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); padding: 96px 0 40px; }
.footer-logo img { filter: brightness(0) invert(1); opacity: .95; }
.footer-info p { color: rgba(255, 255, 255, .7); }
.footer-sns { color: #fff; }
.footer-nav ul { grid-template-columns: repeat(2, minmax(160px, auto)); gap: 18px 72px; }
.footer-nav a { color: #fff; font-size: 14px; letter-spacing: .06em; }
.footer-nav a::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 12px; vertical-align: middle; }
.footer-nav a:hover { color: #fff; opacity: .7; }
.copyright { color: rgba(255, 255, 255, .5); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 32px; margin-top: 72px; }

@media (max-width: 860px) {
  body::before { display: none; }
  .section-head { margin-bottom: 48px; }
  .section-en { margin-bottom: 14px; }
  .site-header .logo { padding: 0 16px; border-right: 0; }
  .reasons { gap: 64px; }
  .reason { display: block; }
  .reason .reason-body { margin: -40px 0 0 24px; padding: 32px 24px 36px; }
  .reason:nth-child(even) .reason-body { margin: -40px 24px 0 0; }
  .reason .reason-num { font-size: 36px; }
  .gallery { padding: 72px 0; }
  .gallery::before { left: 20%; }
  .gallery-inner { width: calc(100% - 32px); }
  .gallery-en { font-size: 72px; margin-left: 12px; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
}

/* 色のある面だけに細かい粒子を重ねる（白い面には付けない）。
   紺の上に明暗の粒を overlay で混ぜ、写真のフィルムのような質感にする */
:root {
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='linear' slope='.55'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.reason .reason-body, .site-footer, .pillar-recover, .contact, .page-head {
  background-image: var(--grain), radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .10), transparent 60%);
  background-blend-mode: overlay, normal;
  background-size: 240px 240px, 100% 100%;
}
.gallery::before {
  background-image: var(--grain), linear-gradient(120deg, #0b2a5e 0%, #0a3f8c 100%);
  background-blend-mode: overlay, normal; background-size: 240px 240px, 100% 100%;
}
.section-en, .reason .reason-num, .gallery-en { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* 調整 a2 */
.site-header { background: #fbfbfa; }
.gallery::before { left: 0; right: 30%; }
.gallery-en { order: 2; color: rgba(11, 42, 94, .14); margin: 0 -0.1em 0 32px; }
.footer-logo { display: inline-block; background: #fff; padding: 14px 20px; }
.footer-logo img { filter: none; opacity: 1; }
@media (max-width: 860px) {
  .gallery::before { right: 16%; }
  .gallery-en { margin-left: 8px; font-size: 64px; }
}
/* 調整 a3：ギャラリーの重なりとスマホのサイズ */
.gallery { padding: 120px 0 140px; }
.gallery::before { top: 0; bottom: 60px; }
.gallery-grid img { filter: saturate(.7) brightness(.72) contrast(1.1); }
.footer-nav li { white-space: nowrap; }
@media (max-width: 860px) {
  .gallery { padding: 56px 0 72px; }
  .gallery::before { right: 12%; bottom: 36px; }
  .gallery-inner { width: calc(100% - 32px); }
  .gallery-grid { gap: 1px; }
  .gallery-en { font-size: 56px; margin-left: 6px; }
  .footer-nav ul { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 860px) {
  .gallery-inner { flex-direction: column; align-items: stretch; }
  .gallery-en { writing-mode: horizontal-tb; order: 0; color: #fff; font-size: 48px; margin: 0 0 24px; }
  .gallery-grid { margin-right: 0; }
}

/* ==========================================================
   v2 a4：建設×テックの雰囲気。英字は日本語のゴシックに合う
   幾何学的なサンセリフ、番号や小さなラベルは等幅フォント
   ========================================================== */
:root {
  --font-serif: "Inter Tight", "Inter", var(--font-ja);   /* 旧セリフ指定の置き換え */
  --font-head: "Inter Tight", "Inter", var(--font-ja);
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
main { counter-reset: sec; }
.section-head:not(.section-head-sub) { counter-increment: sec; }

.section-en {
  font-family: var(--font-head); font-weight: 600; letter-spacing: -.03em; line-height: .95;
  font-size: clamp(42px, 6vw, 84px);
}
.section-en::before {
  content: "/" counter(sec, decimal-leading-zero); display: block;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 22px;
}
.section-title { font-weight: 700; letter-spacing: .06em; }
.section-title::before { width: 32px; background: var(--navy); }

/* 番号・ラベル類は等幅 */
.reason .reason-num { font-family: var(--font-head); font-weight: 600; font-size: 48px; letter-spacing: -.02em; color: #fff; }
.reason .reason-num::before {
  content: "REASON_"; font-family: var(--font-mono); font-style: normal; font-size: 12px; font-weight: 500;
  letter-spacing: .12em; color: var(--accent); vertical-align: top; margin-right: 10px; position: relative; top: 6px;
}
.svc-hs-item h3 span, .svc-hs-meta, .contact-flow span, .news-list time, .news-date, .plan-en, .hero-map-pin small, .flow-num, .svc-row-num {
  font-family: var(--font-mono) !important; letter-spacing: .08em;
}
.gallery-en { font-family: var(--font-head); font-weight: 600; letter-spacing: -.03em; }

/* 写真の四隅にトンボ（図面の目印のような細い角） */
.about-media, .reason-img { position: relative; }
.about-media::after, .reason-img::after {
  content: ""; position: absolute; inset: -10px; pointer-events: none; z-index: 2;
  --c: var(--navy); --l: 14px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--l) no-repeat;
}
.js-rv .about-media, .js-rv .reason-img { overflow: visible; }

/* ---------- 表示の動き：要素ごとに出方を変える ---------- */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-wipe: cubic-bezier(.75, 0, .2, 1); }

/* 1. 英字見出し：下から切り抜きでせり上がる */
.js-rv .section-head > .section-en {
  opacity: 1; transform: none; clip-path: inset(0 0 100% 0); translate: 0 .35em;
  transition: clip-path 1s var(--ease-out), translate 1s var(--ease-out);
}
.js-rv .section-head > .section-en.is-in { clip-path: inset(-20% -5% -25% -5%); translate: 0 0; }

/* 2. 日本語見出しの前の線：左から引かれる */
.js-rv .section-head > .section-title::before { transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out) .35s; }
.js-rv .section-head > .section-title.is-in::before { transform: none; }

/* 3. 写真：横から幕が開くように現れる */
.js-rv :is(.reason, .svc-row) { opacity: 1; transform: none; }
.js-rv .about > .about-media, .js-rv .gallery-grid > figure { opacity: 1; transform: none; }
.js-rv :is(.reason-img, .svc-row-media, .about > .about-media, .gallery-grid > figure) {
  transition: clip-path 1.3s var(--ease-wipe); transition-delay: var(--rv-d, 0s);
}
.js-rv .reason:not(.is-in) .reason-img,
.js-rv .svc-row:not(.is-in) .svc-row-media,
.js-rv .about > .about-media:not(.is-in),
.js-rv .gallery-grid > figure:not(.is-in) { clip-path: inset(0 100% 0 0); }
.js-rv .reason:nth-child(even):not(.is-in) .reason-img { clip-path: inset(0 0 0 100%); }
.js-rv .reason.is-in .reason-img, .js-rv .about > .about-media.is-in { clip-path: inset(-20px); }
.js-rv .svc-row.is-in .svc-row-media, .js-rv .gallery-grid > figure.is-in { clip-path: inset(0); }

/* 4. 紺のパネル：写真のあとに横から滑り込む */
.js-rv .reason .reason-body { transition: opacity .9s var(--ease-out) .45s, translate 1s var(--ease-out) .45s; }
.js-rv .reason:not(.is-in) .reason-body { opacity: 0; translate: 64px 0; }
.js-rv .reason:nth-child(even):not(.is-in) .reason-body { translate: -64px 0; }
/* （本文・カードなどは従来どおり下からふわっと） */
/* 番号は英字見出しを持つ要素ごとに数える */
.section-head:not(.section-head-sub) { counter-increment: none; }
:where(main) :has(> .section-en):not(.section-head-sub) { counter-increment: sec; }

/* ==========================================================
   v2 a5：背景の縦線をやめ、写真の位置と隙間を整理
   ========================================================== */
body::before { display: none; }
.about-media::after, .reason-img::after { display: none; }

/* 理由：パネルの下端を写真の下端にそろえる */
.reason { align-items: end; }
.reason .reason-body { margin-top: 0; align-self: end; }
.reason .reason-img img { display: block; }

/* ギャラリー：紺の帯の中に、見出しと隙間のない3×3の写真 */
.gallery { padding: 0; background: var(--navy); }
.gallery::before { display: none; }
.gallery {
  background-image: var(--grain), linear-gradient(120deg, #0b2a5e 0%, #0a3f8c 100%);
  background-blend-mode: overlay, normal; background-size: 240px 240px, 100% 100%;
}
.gallery-inner { width: min(1120px, calc(100% - 48px)); padding: 120px 0; display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.gallery-en {
  order: 0; writing-mode: horizontal-tb; margin: 0; color: #fff;
  font-size: clamp(44px, 5vw, 72px); line-height: .95;
}
.gallery-en::before {
  content: "/WORKSITE"; display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 22px;
}
.gallery-grid { gap: 0; background: none; }
.gallery-grid figure { background: #061a3a; }
@media (max-width: 860px) {
  .gallery-inner { width: calc(100% - 32px); padding: 64px 0; grid-template-columns: 1fr; gap: 28px; }
  .gallery-en { font-size: 44px; }
}

/* ==========================================================
   v2 a6：スクロールのカクつき対策。
   clip-path の変化は毎フレーム描き直しになるため、
   「幕」は transform（GPUで処理できる）で動かす
   ========================================================== */
.js-rv :is(.reason-img, .svc-row-media, .about > .about-media, .gallery-grid > figure) { clip-path: none !important; transition: none; }
:is(.reason-img, .svc-row-media, .about-media, .gallery-grid > figure) { position: relative; overflow: hidden; }
.js-rv :is(.reason-img, .svc-row-media, .about > .about-media, .gallery-grid > figure)::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--navy); transform-origin: right center;
  transition: transform 1.1s var(--ease-wipe); transition-delay: var(--rv-d, 0s);
}
.js-rv .reason.is-in .reason-img::before,
.js-rv .svc-row.is-in .svc-row-media::before,
.js-rv .about > .about-media.is-in::before,
.js-rv .gallery-grid > figure.is-in::before { transform: scaleX(0); }
.js-rv .reason:nth-child(even) .reason-img::before { transform-origin: left center; }
.gallery-grid > figure::before { background: #061a3a !important; }

/* 英字見出し：clip-path をやめ、内側の文字を下からせり上げる（main.js が span で包む） */
.js-rv .section-head > .section-en, .js-rv .section-head > .section-en.is-in { clip-path: none; translate: none; }
.section-en > .rv-line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.section-en > .rv-line > span { display: block; }
.js-rv .section-en > .rv-line > span { transform: translateY(105%); transition: transform 1s var(--ease-out); }
.js-rv .is-in > .rv-line > span { transform: none; }
/* ONE-STOP の写真は拡大しながら動くので、重ね合わせ（ブレンド）をやめて描画を軽くする */
.onestop-photo { will-change: transform; }
.onestop-photo::before { mix-blend-mode: normal; opacity: .12; }

/* ==========================================================
   v2 a7：下層ページ
   ========================================================== */
/* グラデーションは最初の画面だけ（決定事項）。色の面は単色＋粒子にする */
.reason .reason-body, .site-footer, .pillar-recover, .contact, .page-head {
  background-image: var(--grain); background-blend-mode: overlay; background-size: 240px 240px;
}
.gallery { background-color: var(--navy); background-image: var(--grain); background-blend-mode: overlay; background-size: 240px 240px; }

/* 下層の見出し帯：左に大きな英字、右に写真を画面の端まで */
.page-head, .page-head.has-img { position: relative; overflow: hidden; padding: 112px 0 96px; }
.page-head.has-img .page-head-inner { display: block; }
.page-head-text { position: relative; z-index: 1; max-width: 52%; }
.page-head .section-en { font-size: clamp(48px, 7vw, 104px); margin-bottom: 28px; }
.page-head .section-en::before { display: none; }
.page-crumb {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); margin-bottom: 40px;
}
.page-crumb a { color: #fff; }
.page-crumb span { margin: 0 10px; color: var(--accent); }
.page-head .page-title { font-size: clamp(18px, 1.9vw, 22px); letter-spacing: .08em; }
.page-head .page-title::before {
  content: ""; display: inline-block; width: 32px; height: 1px; background: #fff; vertical-align: middle; margin: -4px 14px 0 0;
}
.page-head .page-lead { margin-top: 28px; max-width: 34em; color: rgba(255, 255, 255, .85); }
.page-head-media { position: absolute !important; top: 0; right: 0; bottom: 0; width: 42%; margin: 0; }
.page-head-media img { width: 100%; height: 100% !important; object-fit: cover; box-shadow: none !important; aspect-ratio: auto !important; }
.js-rv .page-head-media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; background: var(--navy); transform-origin: right center;
  animation: ota-curtain 1.2s var(--ease-wipe) .2s both;
}
@keyframes ota-curtain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 860px) {
  .page-head, .page-head.has-img { padding: 0 0 56px; }
  .page-head-text { max-width: none; }
  .page-head-media { position: relative !important; width: auto; height: 220px; margin: 0 -16px 40px; }
  .page-head.has-img .page-head-inner { display: flex; flex-direction: column; }
  .page-head:not(.has-img) { padding-top: 56px; }
  .page-crumb { margin-bottom: 24px; }
}
@media (max-width: 860px) {
  .page-head-media { width: calc(100% + 32px) !important; max-width: none !important; align-self: stretch; }
  .page-head-media img { width: 100% !important; max-width: none !important; height: 100% !important; }
}

/* スマホの最初の画面：1画面ぴったり。上に歯車と地図、下に文字（帯の高さは front.js が計算） */
@media (max-width: 860px) {
  .hero {
    --hero-visual: 300px;
    height: calc(100svh - var(--header-h)); min-height: 540px; padding: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
  }
  .hero-inner { padding-bottom: 28px; }
  .hero-title { font-size: 28px; line-height: 1.45; }
  .hero-lead { font-size: 14px; line-height: 1.85; margin-top: 14px; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .btn-lg { padding-top: 13px; padding-bottom: 13px; }
  .hero-area { margin-top: 18px; }
}
@media (max-width: 860px) {
  /* 地図も帯の高さに合わせて縮め、下関の印が文字にかからないようにする */
  .hero-map { width: min(118vw, calc(var(--hero-visual) * 1.45)); }
}

/* ==========================================================
   v2 a8：余白をそろえる（基準＝セクションの上下 128px／スマホ 88px）
   ========================================================== */
.contact { padding-bottom: var(--section-y); }
.gallery-inner { padding: var(--section-y) 0; }
/* 事業内容（画面に留まる部分）：中央寄せだと見出しが上の区切りに寄るので、上から一定の余白で並べる */
.svc-hs-sticky { justify-content: flex-start; padding-top: clamp(72px, 12vh, 128px); }
.svc-hs-item img { aspect-ratio: auto; height: clamp(200px, calc(100svh - var(--header-h) - 490px), 400px); }
@media (max-width: 860px) {
  .svc-hs-sticky { padding-top: 72px; }
  .svc-hs-item img { height: clamp(160px, calc(100svh - var(--header-h) - 480px), 340px); }
}

/* ==========================================================
   v2 a9：最初の画面＝工場設備の線画、日本地図は About へ
   ========================================================== */
.hero-gl { top: 0; bottom: 0; height: 100% !important; }
/* 文字の下は線を薄くして読みやすく */
.hero-gl {
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .55) 35%, #000 70%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .55) 35%, #000 70%);
}
@media (max-width: 860px) {
  .hero-gl {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0, 0, 0, .3) 70%);
            mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0, 0, 0, .3) 70%);
  }
}

/* About：紺の面に西日本を大きく、下関の印と対応エリア */
.about-map { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background-color: var(--navy); background-image: var(--grain); background-blend-mode: overlay; background-size: 240px 240px; }
.about-map-fig { position: absolute; width: 160%; aspect-ratio: 1; left: 4.6%; top: 0; margin-top: -48.6%; }
.about-map-fig img { width: 100%; height: 100%; aspect-ratio: auto !important; display: block; }
.about-map .hero-map-pin b { color: #fff; }
.about-map-label {
  position: absolute; left: 28px; right: 28px; bottom: 24px; margin: 0;
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25);
}
.about-map-label span { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--accent); margin-bottom: 6px; }
@media (max-width: 860px) { .about-map { aspect-ratio: 1; } .about-map-fig { margin-top: -62%; } }
.hero-gl {
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .3) 40%, #000 72%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .3) 40%, #000 72%);
}
.js-rv .about-media.about-map, .about-map { overflow: hidden !important; }
.about-map-fig { width: 200%; left: -3%; margin-top: -86%; }
@media (max-width: 860px) {
  .hero-gl {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0, 0, 0, .3) 70%);
            mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0, 0, 0, .3) 70%);
  }
  .about-map-fig { margin-top: -110%; }
}
@media (max-width: 860px) { .about-map { aspect-ratio: 4 / 5; } .about-map-fig { width: 170%; left: 6%; margin-top: -82%; } }

/* ==========================================================
   v2 a10：About の地図は枠なしで、背景に大きく重ねる
   ========================================================== */
#about { position: relative; overflow: hidden; }
.about-map {
  all: unset; display: block; position: relative; min-height: 560px;
}
.about-map-fig {
  position: absolute; width: 1100px; aspect-ratio: 1; margin: 0;
  left: 50%; top: 50%; transform: translate(-37%, -70%);
  -webkit-mask-image: radial-gradient(closest-side at 22% 72%, #000 45%, transparent 100%);
          mask-image: radial-gradient(closest-side at 22% 72%, #000 45%, transparent 100%);
}
.about-map-fig img { width: 100%; height: 100%; display: block; }
.about-map .hero-map-pin b { color: var(--navy); }
.about-map .hero-map-pin small { color: rgba(11, 42, 94, .5) !important; }
.about-map-label {
  position: absolute; left: 0; bottom: 8px; margin: 0;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--navy);
}
.about-map-label span { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--accent); margin-bottom: 6px; }
@media (max-width: 860px) {
  .about-map { min-height: 340px; }
  .about-map-fig { width: 760px; transform: translate(-36%, -71%); }
}
.js-rv .about-map, .about-map { overflow: visible !important; }
.about-map-fig {
  width: 1300px; transform: translate(-29%, -82%);
  -webkit-mask-image: radial-gradient(circle 500px at 19% 76%, #000 35%, transparent 100%);
          mask-image: radial-gradient(circle 500px at 19% 76%, #000 35%, transparent 100%);
}
.about-map-label { bottom: 0; }
@media (max-width: 860px) {
  .about-map-fig { width: 900px; transform: translate(-27%, -80%);
    -webkit-mask-image: radial-gradient(circle 380px at 19% 76%, #000 35%, transparent 100%);
            mask-image: radial-gradient(circle 380px at 19% 76%, #000 35%, transparent 100%); }
}
/* 最初の画面：文字の後ろはさらに控えめに */
.hero-gl {
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .24) 42%, #000 75%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .24) 42%, #000 75%);
}
@media (max-width: 860px) {
  .hero-gl {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0, 0, 0, .25) 65%);
            mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0, 0, 0, .25) 65%);
  }
}

/* ==========================================================
   v2 a11：About の地図＝西日本のドット地図＋下関の印と座標
   ========================================================== */
.about-map { min-height: 520px; }
.about-map-fig {
  width: 860px; aspect-ratio: 1000 / 760; left: 50%; top: 50%;
  transform: translate(-46%, -52%);
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 32% 52%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 70% at 32% 52%, #000 55%, transparent 100%);
}
.map-pin { position: absolute; width: 0; height: 0; }
.map-pin i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(219, 114, 18, .18); }
.map-pin::before, .map-pin::after {
  content: ""; position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%;
  border: 1px solid rgba(219, 114, 18, .55); animation: map-ping 3.2s cubic-bezier(.2, .7, .2, 1) infinite;
}
.map-pin::after { animation-delay: 1.6s; }
@keyframes map-ping { from { transform: scale(.15); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
/* 引き出し線と座標 */
.map-tag {
  position: absolute; margin: -78px 0 0 64px; padding-left: 0; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: rgba(11, 42, 94, .6);
}
.map-tag b { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--navy); margin-bottom: 2px; }
.map-tag::before {
  content: ""; position: absolute; left: -64px; top: 78px; width: 58px; height: 1px; background: var(--navy);
  transform-origin: left; transform: rotate(-38deg) scaleX(1.27);
}
@media (prefers-reduced-motion: reduce) { .map-pin::before, .map-pin::after { animation: none; display: none; } }
@media (max-width: 860px) {
  .about-map { min-height: 330px; }
  .about-map-fig { width: 560px; transform: translate(-44%, -52%); }
}
/* 地図：座標の札は海側（左上）に、対応エリアは地図の下に */
.map-tag { margin: -128px 0 0 -228px; padding: 6px 10px; background: var(--bg); }
.map-tag::before { left: auto; right: -60px; top: 50px; width: 70px; transform: rotate(48deg); transform-origin: left top; }
.about-map-label { bottom: -24px; padding: 8px 12px 8px 0; background: var(--bg); }
@media (max-width: 860px) { .about-map-label { bottom: -8px; } .map-tag { margin: -120px 0 0 -200px; } }

/* ==========================================================
   v2 a12：About の地図は a10 の線の地図に戻し、細部だけ整える
   （点の地図は不採用）
   ========================================================== */
.about-map { min-height: 560px; }
.about-map-fig {
  width: 1300px; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-29%, -82%);
  -webkit-mask-image: radial-gradient(circle 500px at 19% 76%, #000 35%, transparent 100%);
          mask-image: radial-gradient(circle 500px at 19% 76%, #000 35%, transparent 100%);
}
/* 経緯線のような細い格子を、地図の下にうっすら */
.about-map-fig::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(11, 42, 94, .07) 0 1px, transparent 1px 65px),
    repeating-linear-gradient(0deg, rgba(11, 42, 94, .07) 0 1px, transparent 1px 65px);
}
.about-map .hero-map-pin b { color: var(--navy); }
.about-map .hero-map-pin small { color: rgba(11, 42, 94, .5) !important; }
.map-coord {
  position: absolute; margin: 22px 0 0 18px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: rgba(11, 42, 94, .5);
}
.about-map-label { bottom: 0; padding: 0; background: none; }
@media (max-width: 860px) {
  .about-map { min-height: 340px; }
  .about-map-fig { width: 900px; transform: translate(-27%, -80%);
    -webkit-mask-image: radial-gradient(circle 380px at 19% 76%, #000 35%, transparent 100%);
            mask-image: radial-gradient(circle 380px at 19% 76%, #000 35%, transparent 100%); }
  .about-map-fig::before { background-size: 45px 45px, 45px 45px; }
}
.about-map-fig::before {
  -webkit-mask-image: radial-gradient(circle 360px at 19% 76%, #000 20%, transparent 100%);
          mask-image: radial-gradient(circle 360px at 19% 76%, #000 20%, transparent 100%);
}
.map-coord { margin: -34px 0 0 -168px; }
@media (max-width: 860px) {
  .about-map-fig::before {
    -webkit-mask-image: radial-gradient(circle 260px at 19% 76%, #000 20%, transparent 100%);
            mask-image: radial-gradient(circle 260px at 19% 76%, #000 20%, transparent 100%);
  }
  .map-coord { margin: -30px 0 0 -150px; }
}
.map-coord { margin: -62px 0 0 -150px; }
@media (max-width: 860px) { .map-coord { display: none; } }
@media (min-width: 861px) { .hero-lead { max-width: none; } }
/* 最初の画面：粒子の重ね（overlay）が線を明るく光らせて見せるため外す。周辺の暗さだけ残す */
.hero::after { background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 55%, rgba(3, 14, 36, .55) 100%); mix-blend-mode: normal; opacity: 1; }
/* 地図は a10 の状態に戻す（格子なし） */
.about-map-fig::before { display: none; }

/* ヘッダーのボタンも、ほかのボタンと同じ角丸の形にそろえる */
.btn.header-cta {
  align-self: center; height: auto; border-radius: 999px;
  padding: 12px 22px 12px 26px; gap: 10px; margin-right: 32px; font-size: 14px;
}
/* 送信ボタンも角丸（入力欄の角をなくす指定から外す） */
.contact-form input[type="submit"] { border-radius: 999px !important; }

/* スマホのメニュー：ヘッダーの下から画面の下まで、横幅いっぱいに開く */
@media (max-width: 860px) {
  .site-header .global-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0;
    padding: 8px 24px calc(32px + env(safe-area-inset-bottom)); overflow-y: auto;
    background: var(--bg); border-top: 1px solid var(--line);
  }
  .site-header .global-nav ul { gap: 0; }
  .site-header .global-nav a { padding: 20px 0; font-size: 16px; letter-spacing: .06em; }
  .site-header .global-nav .nav-contact { display: block; margin-top: 32px; }
  .site-header .global-nav .nav-contact a {
    display: flex; justify-content: center; border: 0; border-radius: 999px; padding: 18px;
    background: var(--accent); color: #fff; font-weight: 700;
  }
  /* 背面のスクロール停止は html で行う（body で止めるとヘッダーの sticky が外れて上部が消える） */
  html:has(.global-nav.is-open) { overflow: hidden; }
  body:has(.global-nav.is-open) .sp-fixed-cta { display: none; }
}

/* スマホ：About は文章が先、日本地図はその下 */
@media (max-width: 860px) {
  .about > .about-map { order: 2; margin-top: 8px; }
}

/* ==========================================================
   広告用LP（/lp/○○/）
   ========================================================== */
.lp-header .header-inner { max-width: none; padding: 0 0 0 0; }
.lp-header .btn.header-cta { margin-left: auto; }
@media (max-width: 860px) {
  .lp-header .btn.header-cta { display: inline-flex; margin-right: 16px; padding: 9px 16px 9px 18px; font-size: 13px; }
}

/* 最初の画面：左に紺の面と文字、右に写真を端まで */
.lp-hero { position: relative; overflow: hidden; color: #fff; background-color: var(--navy); background-image: var(--grain); background-blend-mode: overlay; background-size: 240px 240px; }
.lp-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; margin: 0; }
.lp-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-hero-inner { position: relative; padding: 104px 0 96px; }
.lp-hero-inner > * { max-width: 600px; }
.lp-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); margin-bottom: 24px; }
.lp-eyebrow::before { content: "/"; margin-right: 6px; }
.lp-title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.45; letter-spacing: .04em; }
.lp-title span { display: block; }
.lp-lead { margin-top: 28px; color: rgba(255, 255, 255, .82); line-height: 1.95; }
.lp-points { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.lp-points li { position: relative; padding-left: 30px; font-weight: 700; letter-spacing: .04em; }
.lp-points li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transform-origin: left top; margin-top: 2px;
}
.lp-hero-cta { margin-top: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-hero-note { font-size: 13px; color: rgba(255, 255, 255, .7); line-height: 1.8; }

/* こんなご相談 */
.lp-problem-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lp-problem-list li { display: flex; gap: 14px; align-items: baseline; padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 700; color: var(--navy); background: var(--surface); }
.lp-problem-list span { font-family: var(--font-mono); font-size: 12px; color: var(--accent); flex-shrink: 0; }

/* 対応できる作業 */
.lp-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.lp-service-img { margin: 0 0 24px; overflow: hidden; }
.lp-service-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lp-service h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.lp-service p { color: var(--text-sub); font-size: 15px; }

/* 製作できるもの */
.lp-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lp-product { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.lp-product-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; }
.lp-product h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.lp-product p { font-size: 15px; color: var(--text-sub); }
.lp-note { margin-top: 32px; font-size: 14px; color: var(--text-sub); }
.lp-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; margin-left: 8px; }

/* 理由 */
.lp-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.lp-reason { padding: 40px 36px 44px; background-color: var(--navy); background-image: var(--grain); background-blend-mode: overlay; background-size: 240px 240px; color: #fff; }
.lp-reason + .lp-reason { border-left: 1px solid rgba(255, 255, 255, .14); }
.lp-reason-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); margin-bottom: 18px; }
.lp-reason h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.lp-reason p { color: rgba(255, 255, 255, .8); font-size: 15px; }

/* 流れ */
.lp-flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--navy); }
.lp-flow li { padding: 28px 24px 8px 0; position: relative; }
.lp-flow li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.lp-flow-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); margin-bottom: 12px; }
.lp-flow h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.lp-flow p:last-child { font-size: 14px; color: var(--text-sub); }

/* よくある質問 */
.lp-faq { border-top: 1px solid var(--line); }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary {
  list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: baseline; padding: 24px 40px 24px 0; position: relative;
  font-weight: 700; color: var(--navy);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-family: var(--font-mono); font-size: 20px; color: var(--navy); }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq summary span, .lp-faq p span { font-family: var(--font-head); font-size: 18px; color: var(--accent); flex-shrink: 0; }
.lp-faq details p { display: flex; gap: 16px; align-items: baseline; padding: 0 0 26px; color: var(--text-sub); }
.lp-faq details p span { color: var(--navy); }

/* フォーム */
.lp-form { background: var(--bg-tint); }
.lp-form .contact-form { background: var(--surface); }

/* フッター */
.lp-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .72); padding: 64px 0 32px; font-size: 13px; }
.lp-footer-inner { display: grid; gap: 16px; }
.lp-footer-logo img { height: 40px; width: auto; background: #fff; padding: 10px 14px; box-sizing: content-box; }
.lp-footer-links { display: flex; gap: 24px; }
.lp-footer-links a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.lp-footer .copyright { color: rgba(255, 255, 255, .45); margin-top: 40px; text-align: center; }

@media (max-width: 860px) {
  .lp-hero-media { position: relative; width: auto; height: 220px; }
  .lp-hero-inner { padding: 40px 0 56px; }
  .lp-title { font-size: 26px; }
  .lp-lead { font-size: 15px; margin-top: 20px; }
  .lp-points { margin-top: 24px; }
  .lp-hero-cta { margin-top: 32px; }
  .lp-hero-cta .btn { width: 100%; }
  .lp-problem-list, .lp-products { grid-template-columns: 1fr; }
  .lp-problem-list li { padding: 20px 18px; }
  .lp-services, .lp-reasons { grid-template-columns: 1fr; gap: 40px; }
  .lp-reasons { gap: 0; }
  .lp-reason + .lp-reason { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .lp-flow { grid-template-columns: 1fr; }
  .lp-flow li, .lp-flow li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .is-lp .site-footer { display: none; }
}
/* LPではスクロール表示の対象を追加 */
.js-rv :is(.lp-problem-list > li, .lp-service, .lp-product, .lp-reason, .lp-flow > li) { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rv-d, 0s); }
.js-rv :is(.lp-problem-list > li, .lp-service, .lp-product, .lp-reason, .lp-flow > li).is-in { opacity: 1; transform: none; }

/* ---------- 2.1.1 ---------- */

/* 下層ページの見出し帯：写真の有無にかかわらず高さをそろえる */
.page-head, .page-head.has-img { min-height: 460px; padding: 0; display: flex; align-items: center; }
.page-head .page-head-inner { padding-block: 72px; }
@media (max-width: 860px) {
  /* スマホは写真を出さない */
  .page-head-media { display: none !important; }
  .page-head, .page-head.has-img { min-height: 0; display: block; }
  .page-head .page-head-inner { padding-block: 56px 52px; }
}
@media (min-width: 861px) {
  .page-head, .page-head.has-img { min-height: 560px; }
  .page-head .section-en { font-size: clamp(44px, 5.2vw, 80px); }
  .page-head .page-head-inner { padding-block: 64px; }
}
/* 写真は見出し帯の右端まで（基準を帯そのものにする） */
.page-head .page-head-inner { position: static; }
.page-head-text { position: relative; z-index: 1; }

/* ---------- LP 2.2：信頼の帯・問い合わせ帯・送信後の流れ ---------- */
.lp-trust { background: var(--navy-deep); color: #fff; }
.lp-trust ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-trust li { padding: 22px 20px; font-size: 14px; color: rgba(255, 255, 255, .85); border-left: 1px solid rgba(255, 255, 255, .12); }
.lp-trust li:last-child { border-right: 1px solid rgba(255, 255, 255, .12); }
.lp-trust b { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--accent); margin-bottom: 4px; }

.lp-cta { padding: 0 0 var(--section-y); }
.section.bg-tint + .lp-cta, .lp-problems + .lp-cta { padding-top: 0; }
.lp-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--line);
}
.lp-cta-free { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.lp-cta-free::before { content: "/"; margin-right: 6px; }
.lp-cta-title { font-size: clamp(19px, 2vw, 24px); font-weight: 700; color: var(--navy); line-height: 1.5; letter-spacing: .04em; }
.lp-cta-sub { margin-top: 8px; font-size: 14px; color: var(--text-sub); }
.lp-cta-action { flex-shrink: 0; text-align: center; }
.lp-cta-micro { margin-top: 10px; font-size: 12px; color: var(--text-sub); }

.lp-after { list-style: none; margin: 0 0 32px; padding: 0; display: flex; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.lp-after li { flex: 1; padding: 16px 18px; font-size: 14px; font-weight: 700; color: var(--navy); }
.lp-after li + li { border-left: 1px solid var(--line); }
.lp-after span { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--accent); margin-bottom: 2px; }

@media (max-width: 860px) {
  .lp-trust ul { grid-template-columns: 1fr 1fr; }
  .lp-trust li { padding: 16px 16px; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .lp-trust li:nth-child(odd) { border-left: 0; }
  .lp-trust li:last-child { border-right: 0; }
  .lp-cta-inner { flex-direction: column; align-items: stretch; gap: 24px; padding-top: 36px; padding-bottom: 36px; }
  .lp-cta-action .btn { width: 100%; }
  .lp-after { flex-direction: column; }
  .lp-after li + li { border-left: 0; border-top: 1px solid var(--line); }
}
/* LP：左右の余白を container のまま保つ（上下だけ指定） */
.lp-hero-inner { padding: 0 var(--gutter); padding-block: 104px 96px; }
.lp-trust ul { padding: 0 var(--gutter); }
.lp-hero-inner > * { max-width: 680px; }
.lp-title { font-size: clamp(30px, 3.2vw, 44px); }
@media (min-width: 861px) { .lp-title span { white-space: nowrap; } }
@media (max-width: 860px) {
  .lp-hero-inner { padding-block: 40px 56px; }
  .lp-title { font-size: 25px; }
}
.lp-lead { max-width: 560px; }
@media (max-width: 860px) { .lp-trust li { font-size: 12px; letter-spacing: 0; padding: 14px 12px; } }

/* ==========================================================
   事業内容の詳しいページ（/service/○○/）
   ========================================================== */
.sd-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.sd-intro-text p { line-height: 2.05; }
.sd-intro-text p + p { margin-top: 1.4em; }
.sd-spec { margin: 0; border-top: 1px solid var(--navy); }
.sd-spec div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sd-spec dt { font-weight: 700; color: var(--navy); font-size: 14px; }
.sd-spec dd { margin: 0; font-size: 14px; color: var(--text-sub); }

.sd-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sd-scope-item { padding: 36px 36px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.sd-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.sd-scope-item h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.sd-scope-item p:last-child { font-size: 15px; color: var(--text-sub); }

.sd-sign-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.sd-sign-list li { position: relative; padding: 18px 0 18px 32px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.sd-sign-list li::before {
  content: ""; position: absolute; left: 2px; top: 26px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.sd-works { margin-top: 40px; }

.sd-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sd-related-item { display: block; background: var(--surface); border: 1px solid var(--line); color: var(--navy); transition: border-color .25s; }
.sd-related-item:hover { border-color: var(--navy); }
.sd-related-item figure { margin: 0; overflow: hidden; }
.sd-related-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .6s; }
.sd-related-item:hover img { transform: scale(1.04); }
.sd-related-en { display: block; padding: 20px 24px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.sd-related-title { display: block; padding: 6px 24px 22px; font-weight: 700; font-size: 17px; }
.sd-related-all { display: flex; flex-direction: column; justify-content: center; background-color: var(--navy); background-image: var(--grain); background-blend-mode: overlay; background-size: 240px 240px; color: #fff; border-color: var(--navy); }
.sd-related-all .sd-related-title { color: #fff; }
.js-rv :is(.sd-scope-item, .sd-sign-list > li, .sd-related-item) { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rv-d, 0s); }
.js-rv :is(.sd-scope-item, .sd-sign-list > li, .sd-related-item).is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .sd-intro { grid-template-columns: 1fr; gap: 40px; }
  .sd-spec div { grid-template-columns: 6.5em minmax(0, 1fr); }
  .sd-scope, .sd-sign-list, .sd-related { grid-template-columns: 1fr; }
  .sd-scope-item { padding: 28px 22px 30px; }
  .sd-related { gap: 16px; }
  .sd-related-all { padding: 20px 0; }
}
/* LP：見出し内の b は太さだけ引き継ぐ */
.lp-problem-list b, .lp-faq summary b { font-weight: inherit; }
/* LP：短い文は行の長さをそろえ、最後の行に2〜3文字だけ残らないようにする */



/* トップ事業内容の最後：その他のご相談 */
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 32px 28px;
  height: clamp(200px, calc(100svh - var(--header-h) - 490px), 400px); box-sizing: border-box;
  background-color: var(--navy); background-image: var(--grain); background-blend-mode: overlay; background-size: 240px 240px; color: #fff;
}
/* 短い補足文は行の長さをそろえる */

.sd-note { margin-top: 28px; font-size: 14px; color: var(--text-sub); }

.sp-only { display: none; }
@media (max-width: 860px) { .sp-only { display: inline; } }
@media (min-width: 861px) {
  .page-head-text { max-width: 56%; }
  .page-head .page-lead { max-width: none; }
}
@media (min-width: 861px) { .page-head .page-lead { font-size: 15px; } }
/* その他のご相談：画面が低いときも文字が切れないよう、高さは最低値だけ決める */
.svc-hs-item .link-arrow { margin-top: 12px; font-size: 14px; }
/* 事業内容の横送り：画面が低くても1画面に収める（写真の高さを画面の高さから決める） */
.svc-hs-item img { height: clamp(140px, calc(100svh - var(--header-h) - 540px), 400px); }
@media (min-width: 861px) and (max-height: 820px) {
  .svc-hs-sticky { padding-top: 48px; }
  .svc-hs .section-en { font-size: 52px; margin-bottom: 12px; }
  .svc-hs .section-en::before { margin-bottom: 12px; }
  .svc-hs-head { margin-bottom: 24px; }
}
@media (max-width: 860px) {
  .svc-hs-sticky { padding-top: 40px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .svc-hs .section-en { font-size: 40px; }
  .svc-hs-item p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
/* その他カード：低い画面では英字ラベルを省き、中央にまとめる */

/* 事業内容の横送り：カードの高さをそろえ、リンクは下端にそろえる */
.svc-hs-track { align-items: stretch; }
.svc-hs-item { display: flex; flex-direction: column; }
.svc-hs-item p { flex: 1; }
.svc-hs-item .link-arrow { margin-top: 14px; align-self: flex-start; }
/* その他のご相談：写真の位置に紺の面（写真と同じ高さ） */
.svc-hs-other > a.svc-hs-other-box {
  flex-shrink: 0; display: flex; align-items: center; justify-content: flex-start; padding: 0 28px; gap: 0; min-height: 0; overflow: hidden;
  height: clamp(140px, calc(100svh - var(--header-h) - 540px), 400px);
  background-color: var(--navy); background-image: var(--grain); background-blend-mode: overlay; background-size: 240px 240px; color: #fff;
}
.svc-hs-other-box .svc-hs-other-title { font-size: 20px; font-weight: 700; line-height: 1.6; }
@media (min-width: 861px) and (max-height: 820px) { .svc-hs-other > a.svc-hs-other-box { height: clamp(140px, calc(100svh - var(--header-h) - 440px), 400px); } }
@media (max-width: 860px) {
  .svc-hs-other > a.svc-hs-other-box { height: clamp(130px, calc(100svh - var(--header-h) - 470px), 340px); padding: 0 20px; }
  .svc-hs-other-box .svc-hs-other-title { font-size: 17px; }
}
/* 事業内容の横送り：写真と「その他」の面は同じ高さ（--svc-v）を使う */
.svc-hs { --svc-v: clamp(140px, calc(100svh - var(--header-h) - 480px), 420px); }
@media (min-width: 861px) and (max-height: 820px) { .svc-hs { --svc-v: clamp(140px, calc(100svh - var(--header-h) - 400px), 420px); } }
@media (max-width: 860px) { .svc-hs { --svc-v: clamp(130px, calc(100svh - var(--header-h) - 420px), 360px); } }
.svc-hs-item figure, .svc-hs-item img, .svc-hs-other > a.svc-hs-other-box { height: var(--svc-v) !important; aspect-ratio: auto !important; flex-shrink: 0; }
.svc-hs-other h3 { margin-top: 18px; }
.svc-hs-item img { width: 100%; object-fit: cover; display: block; }
.svc-hs-item h3 { align-items: baseline; margin-bottom: 0; }
.svc-hs-item .link-arrow { margin-top: 10px; }

/* スマホで横にずれないように：理由の紺パネルは横からではなく下から出す。
   はみ出す演出はセクション内で切る（sticky を壊さない clip を使う） */
#reason, .gallery, #about { overflow-x: clip; }
html, body { overflow-x: clip; }
@media (max-width: 860px) {
  .js-rv .reason:not(.is-in) .reason-body,
  .js-rv .reason:nth-child(even):not(.is-in) .reason-body { translate: 0 32px; }
}

/* ---------- お問い合わせ（2026-10-13）：フォームを先に、文章は短く ---------- */
.contact-page { padding-top: 48px; }
.contact-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
.contact-form { padding: 44px 48px 40px; }
.contact-form .f-row { display: block; margin-bottom: 22px; font-weight: 700; font-size: 15px; color: var(--navy); }
.contact-form .req, .contact-form .opt { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 4px; vertical-align: 2px; }
.contact-form .req { background: #c8102e; color: #fff; }
.contact-form .opt { background: var(--bg-tint); color: var(--text-sub); border: 1px solid var(--line); }
.contact-form ::placeholder { color: #a9afba; }
.contact-form textarea { min-height: 150px; }
.form-privacy { margin-top: 16px; text-align: center; font-size: 12px; }
.contact-aside .form-tel { margin-top: 24px; font-size: 13px; line-height: 1.8; }
@media (max-width: 860px) {
  .contact-page { padding-top: 24px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-aside { position: static; }
  .contact-form { padding: 26px 20px; }
  .contact-form .f-row { margin-bottom: 18px; }
}
.grecaptcha-badge { visibility: hidden; }
.form-privacy { line-height: 1.8; }

/* 2026-10-13 写真の幕ずれ対策：拡大中の写真が枠の外にはみ出さないよう、枠で切り取る */
.js-rv .reason-img, .js-rv .about > .about-media, .js-rv .svc-row-media { overflow: hidden !important; }
