/* 株式会社フォーアライド — 「みえる消防設備」と同じ配色・部品（赤のアクセント・白いカード・細い罫線） */
:root {
  --accent: #c8102e;
  --accent-dark: #a90c25;
  --accent-soft: #fff1f3;
  --ink: #263342;
  --ink2: #3c4654;
  --muted: #687585;
  --line: #e0e5ec;
  --chip: #f7f8fa;
  --bg: #ffffff;
  --gray: #f4f6f9;
  --radius: 12px;
  --shadow: 0 6px 24px #2633420d;
  --wrap: 1160px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px; line-height: 1.9; font-feature-settings: "palt" 1; letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0; letter-spacing: .01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #e78b9b; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

/* ---------- ボタン・小部品 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-red { background: var(--accent); color: #fff; }
.btn-red:hover { background: var(--accent-dark); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: #c9d0d8; color: var(--accent); }
.btn-lg { min-height: 54px; padding: 12px 30px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 14px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.lead { color: var(--muted); font-size: 16px; }
.num { font-family: Inter, "Noto Sans JP", sans-serif; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.arrow::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .2s; }
a:hover .arrow::after, .arrow:hover::after { width: 28px; }
.more { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 9px; border-radius: 5px; background: var(--chip); color: var(--muted); }
.tag-news { background: var(--accent-soft); color: #b01831; }
.tag-column { background: #eef3f8; color: #3f5a76; }
.note { font-size: 13px; color: var(--muted); line-height: 1.8; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.chips li { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink2); line-height: 1.6; }

/* ---------- ヘッダー ---------- */
.preview-bar { position: sticky; top: 0; z-index: 60; background: #273342; color: #fff; font-size: 13px; text-align: center; padding: 8px 12px; }
.preview-bar a { color: #ffd0d8; margin-left: 12px; }
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.preview-bar + .skip + .hd { top: 37px; }
.hd-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt b { font-family: Inter, "Noto Sans JP", sans-serif; font-size: 18px; letter-spacing: .08em; }
.brand-txt small { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.gnav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.gnav ul { display: flex; gap: 4px; }
.gnav li a { display: block; padding: 8px 12px; border-radius: 7px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink2); white-space: nowrap; }
.gnav li a:hover { background: var(--chip); color: var(--accent); }
.gnav li a[aria-current] { color: var(--accent); }
.gnav .ext { font-size: 11px; margin-left: 3px; color: var(--muted); }
.hd-cta { min-height: 42px; padding: 8px 18px; font-size: 14px; }
.menu-btn { display: none; }

/* ---------- トップ：ヒーロー ---------- */
.hero { background: radial-gradient(circle at 86% 8%, #3a1020 0%, transparent 36%), linear-gradient(180deg, #0c1118 0%, #121821 100%); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero .eyebrow { color: #ff8a9a; }
.hero h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.4; letter-spacing: -.03em; margin-bottom: 22px; }
.hero .lead { font-size: 17px; margin-bottom: 30px; color: #c5ced8; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero .btn-line { background: transparent; color: #fff; border-color: #ffffff44; }
.hero .btn-line:hover { border-color: #fff; color: #fff; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips a { display: block; font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid #ffffff22; background: #ffffff0d; text-decoration: none; color: #d5dde6; }
.hero-chips a:hover { border-color: #ff8a9a; color: #fff; }

/* ---------- 二本柱 ---------- */
.works-bar { background: #0a0e14; border-top: 1px solid #ffffff12; }
.works-bar-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 28px 0 36px; }
.works-bar a { display: block; padding: 24px 22px; border: 1px solid #ffffff18; border-radius: 18px; background: linear-gradient(160deg, #1a222c 0%, #121821 100%); text-decoration: none; color: #fff; transition: border-color .2s, transform .2s; }
.works-bar a:hover { border-color: #c8102e; transform: translateY(-3px); }
.works-bar .eyebrow { color: #ff8a9a; margin-bottom: 10px; }
.works-bar b { display: block; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; margin-bottom: 10px; }
.works-bar span { display: block; color: #b7c2ce; font-size: 14px; line-height: 1.8; }
.hero[data-scrub] .hero-game { transform: perspective(1400px) rotateY(calc(var(--p, 0) * -10deg)) translateZ(calc(var(--p, 0) * -80px)); transform-origin: center left; }
.hero-game { position: relative; min-height: 520px; height: min(70vh, 640px); border-radius: 18px; overflow: hidden; background: #0a0a18; box-shadow: 0 24px 60px #26334224; cursor: none; touch-action: none; user-select: none; will-change: transform; }
.hero-game.fire-done { cursor: auto; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-detector { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: #ddd; box-shadow: 0 4px 15px #0008; }
.hero-detector-led { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #e63946; box-shadow: 0 0 8px #e63946; animation: heroLed 1s infinite; }
.hero-detector-led.safe { background: #2ecc71; box-shadow: 0 0 8px #2ecc71; animation: none; }
@keyframes heroLed { 50% { opacity: .25; } }
.hero-ext { position: absolute; z-index: 5; pointer-events: none; display: none; transform: translate(-50%, -50%) rotate(-28deg); filter: drop-shadow(0 4px 10px #0008); }
.hero-ext.active { display: block; }
.hero-ext.spraying { animation: heroShake .1s infinite alternate; }
@keyframes heroShake {
  0% { transform: translate(-50%, -50%) rotate(-32deg); }
  100% { transform: translate(-50%, -50%) rotate(-24deg); }
}
.hero-prompt { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; text-align: center; pointer-events: none; color: #fff; text-shadow: 0 2px 10px #000c; padding: 20px; transition: opacity .6s; }
.hero-prompt p { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.hero-prompt small { color: rgba(255,255,255,.75); font-size: 13px; }
.hero-spray { display: none; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 6; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.hero-cleared { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 24px; background: radial-gradient(ellipse at center, rgba(10,10,18,.55) 0%, rgba(10,10,18,.92) 100%); color: #fff; opacity: 0; pointer-events: none; transition: opacity .8s; }
.hero-cleared.visible { opacity: 1; pointer-events: auto; }
.hero-cleared-badge { display: inline-block; margin: 0 0 16px; padding: 6px 16px; border-radius: 99px; border: 1px solid rgba(46,204,113,.45); background: rgba(46,204,113,.16); color: #2ecc71; font-size: 13px; font-weight: 700; }
.hero-cleared-txt { margin: 0 0 22px; max-width: 28em; color: rgba(255,255,255,.8); }
.hero-replay { margin-top: 14px; background: none; border: 0; color: rgba(255,255,255,.8); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* ---------- お知らせ帯 ---------- */
.news-strip { border-bottom: 1px solid #ffffff12; background: #0a0e14; color: #d5dde6; }
.news-strip-in { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.news-strip-h { margin: 0; font-family: Inter, sans-serif; font-weight: 700; letter-spacing: .14em; color: #ff8a9a; font-size: 14px; display: flex; flex-direction: column; line-height: 1.3; flex: none; }
.news-strip-h span { font-family: "Noto Sans JP", sans-serif; font-size: 11px; color: #8f9bab; letter-spacing: .06em; font-weight: 500; }
.news-strip ul { flex: 1; min-width: 0; display: grid; gap: 2px; }
.news-strip li a { display: flex; gap: 18px; font-size: 14px; text-decoration: none; padding: 4px 0; color: #d5dde6; }
.news-strip li a:hover span { color: #fff; text-decoration: underline; }
.news-strip time { color: #8f9bab; flex: none; font-variant-numeric: tabular-nums; }
.news-strip li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-strip .more { color: #ffb3be; }

/* ---------- セクション共通 ---------- */
.sec { padding: 96px 0; }
.sec-tight { padding: 56px 0 80px; }
.sec-gray { background: var(--gray); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 40px; max-width: 760px; }
.sec-head h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.5; }
.sec-head .lead { margin: 16px 0 0; }
.sec-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.sec-row .sec-head { margin-bottom: 40px; }
.sec-row .more { margin-bottom: 44px; }
.h-sub { font-size: 18px; margin-bottom: 18px; }

/* ---------- 私たちについて・特徴 ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.about-body { margin-bottom: 28px; color: var(--ink2); }
.features { display: grid; gap: 16px; }
.feature { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.feature h3 { font-size: 18px; margin: 4px 0 6px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.85; }

/* ---------- 事業内容 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-card { display: flex; flex-direction: column; height: 100%; padding: 26px 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; position: relative; transition: border-color .2s, box-shadow .2s, transform .2s; }
.svc-card::before { content: ""; position: absolute; left: -1px; top: 24px; bottom: 24px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.svc-card:hover { border-color: #dca1ae; box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-card h3 { font-size: 19px; margin: 6px 0 10px; }
.svc-card p { font-size: 14px; color: var(--muted); line-height: 1.85; flex: 1; }
.svc-list { display: grid; gap: 20px; }
.svc-row { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); align-items: center; }
.svc-row-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.svc-row h2 { font-size: 22px; margin: 4px 0 8px; }
.svc-row h2 a { text-decoration: none; }
.svc-row h2 a:hover { color: var(--accent); }
.svc-row p { color: var(--muted); margin: 0; }
.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.svc-items { position: sticky; top: 96px; padding: 26px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.svc-items h2 { font-size: 17px; margin-bottom: 14px; }
.checks { display: grid; gap: 8px; margin-bottom: 16px; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.7; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.svc-mini { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-mini a { display: block; padding: 10px 18px; border: 1px solid var(--line); background: #fff; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; }
.svc-mini a:hover { color: var(--accent); border-color: #dca1ae; }

/* ---------- 記事カード ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card a { display: block; height: 100%; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post-card a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card a:hover h3 { color: var(--accent); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--chip); overflow: hidden; display: grid; place-items: center; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-noimg { font-family: Inter, sans-serif; font-weight: 700; letter-spacing: .14em; color: #c9d0d8; font-size: 18px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 18px 20px 0; font-variant-numeric: tabular-nums; }
.post-card h3 { font-size: 16px; line-height: 1.6; padding: 8px 20px 0; transition: color .15s; }
.post-card p { font-size: 13px; color: var(--muted); line-height: 1.8; padding: 8px 20px 20px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tabs { display: flex; gap: 6px; margin-bottom: 28px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 11px; width: fit-content; }
.tabs a { padding: 8px 20px; border-radius: 7px; text-decoration: none; font-size: 14px; font-weight: 700; }
.tabs a[aria-current] { background: var(--accent); color: #fff; }
.tabs a:not([aria-current]):hover { background: var(--chip); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 700; }
.pager a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 記事ページ ---------- */
.article-hd { background: var(--gray); border-bottom: 1px solid var(--line); padding: 40px 0 36px; margin-bottom: 40px; }
.article-hd .post-meta { padding: 0; margin: 18px 0 12px; }
.article-hd h1 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.55; }
.article-cover { margin: 0 0 36px; }
.article-cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: 14px; line-height: 1.6; }
.article-nav a:hover { border-color: #dca1ae; color: var(--accent); }
.article-nav small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.article-nav .next { text-align: right; grid-column: 2; }
.back { text-align: center; margin-top: 28px; }
.back a { color: var(--accent); font-weight: 700; font-size: 14px; }

/* 本文（管理画面で書いた文章） */
.prose { font-size: 16px; line-height: 2; color: var(--ink2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose h2 { font-size: 22px; color: var(--ink); margin: 2.2em 0 .9em; padding: 0 0 12px; border-bottom: 2px solid var(--line); position: relative; }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--accent); }
.prose h3 { font-size: 18px; color: var(--ink); margin: 1.9em 0 .7em; padding-left: 12px; border-left: 3px solid var(--accent); }
.prose h4 { font-size: 16px; margin: 1.6em 0 .6em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose img { border-radius: 10px; border: 1px solid var(--line); }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: 14px 18px; background: #fbf6f7; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--gray); }

/* ---------- 下層ページの見出し ---------- */
.phero { background: var(--gray); border-bottom: 1px solid var(--line); }
.phero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.phero.has-img .phero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.phero h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.45; margin-bottom: 16px; }
.phero .lead { margin: 0; max-width: 720px; }
.phero-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #c0c7d0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- 会社概要 ---------- */
.mvv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mvv-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.mvv-card h3 { font-size: 20px; margin-bottom: 12px; }
.mvv-card p:last-child { margin: 0; color: var(--ink2); font-size: 15px; }
.values div { padding: 8px 0; border-bottom: 1px solid #edf0f4; }
.values div:last-child { border: 0; }
.values dt { font-weight: 700; }
.values dd { margin: 0; font-size: 14px; color: var(--muted); }
.profile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.profile div { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.profile div:last-child { border: 0; }
.profile dt { padding: 18px 24px; background: #fafbfc; font-weight: 700; font-size: 15px; border-right: 1px solid var(--line); }
.profile dd { margin: 0; padding: 18px 24px; font-size: 15px; }

/* ---------- 採用 ---------- */
.subnav { position: sticky; top: 72px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; gap: 12px; height: 56px; }
.subnav ul { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li a { display: block; padding: 6px 12px; font-size: 14px; text-decoration: none; white-space: nowrap; border-radius: 6px; color: var(--ink2); }
.subnav li a:hover { background: var(--chip); color: var(--accent); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split p { color: var(--ink2); }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.stats b { display: block; font-family: Inter, "Noto Sans JP", sans-serif; font-size: clamp(28px, 3vw, 38px); color: var(--accent); line-height: 1.3; letter-spacing: -.01em; }
.stats span { font-size: 14px; color: var(--muted); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 20px; }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.card h3 { font-size: 18px; margin: 0 4px 8px; }
.card p { font-size: 14px; color: var(--muted); margin: 0 4px; line-height: 1.85; }
.boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.boxes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.box { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 22px 24px; }
.box h3, .box h4 { font-size: 17px; margin-bottom: 8px; }
.box p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.85; }
.contact-line { margin: 22px 0 0; font-size: 14px; color: var(--ink2); }
.contact-line a { color: var(--accent); font-weight: 700; }
.b2b { margin-top: 48px; padding: 32px; background: var(--gray); border: 1px solid var(--line); border-radius: var(--radius); }
.b2b h3 { font-size: 20px; margin-bottom: 8px; }
.b2b > p { color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.people li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 16px; text-align: center; }
.people-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.people b { display: block; font-size: 15px; }
.people span { font-size: 13px; color: var(--muted); }

/* ---------- アクセス ---------- */
.access { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.access-area { color: var(--ink2); }
.access-dl { margin: 24px 0 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.access-dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.access-dl div:last-child { border: 0; }
.access-dl dt { font-weight: 700; color: var(--muted); font-size: 14px; }
.access-dl dd { margin: 0; }
.access-dl a { color: var(--accent); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9edf2; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 相談案内 ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 48px 52px; background: linear-gradient(135deg, #fff 0%, #fff4f6 55%, #fff 100%); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 10px; }
.cta p:last-child { margin: 0; color: var(--muted); }
.cta-act { display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
.cta-tel { font-family: Inter, "Noto Sans JP", sans-serif; font-size: 22px; font-weight: 700; text-decoration: none; }
.cta-mail { font-size: 14px; color: var(--muted); }

/* ---------- お問い合わせ ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.form { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.f-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.f-row > span, .f-row legend { font-size: 14px; font-weight: 700; padding: 0; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.req, .opt { display: inline-block; font-size: 11px; line-height: 1; padding: 4px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; font-weight: 700; }
.req { background: var(--accent); color: #fff; }
.opt { background: var(--chip); color: var(--muted); border: 1px solid var(--line); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; background: #fcfcfd; border: 1px solid #d5dbe3; border-radius: 8px; padding: 12px 14px; font-size: 16px; line-height: 1.6;
}
.form textarea { resize: vertical; min-height: 180px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #c8102e1f; background: #fff; }
.form [aria-invalid] { border-color: var(--accent) !important; background: #fff8f9 !important; }
.f-radios { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.f-radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 15px; }
.f-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.f-radio input, .f-check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.f-check { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 6px 0 6px; cursor: pointer; }
.f-check a { color: var(--accent); }
.f-err { color: var(--accent); font-size: 13px; margin: 0; font-weight: 500; }
.f-alert { padding: 12px 16px; border-radius: 8px; background: #fff1f3; border: 1px solid #f0c4cc; color: #9f1027; font-size: 14px; }
.f-submit { width: 100%; margin-top: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-side .box { border-left-width: 3px; }
.contact-side h2 { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.contact-side p { margin: 0 0 18px; font-size: 15px; }
.contact-side p:last-child { margin: 0; }
.contact-side a { color: var(--accent); word-break: break-all; }
.contact-side .note { margin-top: 16px; }

/* ---------- スクロール演出 ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 80; background: var(--accent); transform-origin: left; pointer-events: none; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

[data-tilt], .reveal.is-in[data-tilt] { transform: perspective(900px) rotateY(var(--tx, 0deg)) rotateX(var(--ty, 0deg)); transform-style: preserve-3d; transition: transform .15s ease-out; }
[data-scrub] { --p: 0; }

/* ---------- スクロール3D：建物 ---------- */
.stage { height: 280vh; background: radial-gradient(circle at 72% 18%, #2a1218 0%, #0c1118 46%, #080b10 100%); color: #fff; }
.stage-sticky { position: sticky; top: 72px; height: calc(100vh - 72px); overflow: visible; }
.stage-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; height: 100%; padding-top: 20px; padding-bottom: 28px; }
.stage-copy { min-width: 0; }
.stage .eyebrow { color: #ff8a9a; }
.stage-title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.35; letter-spacing: -.03em; margin: 6px 0 14px; }
.stage-lead { margin: 0 0 22px; color: #c5ced8; font-size: 16px; max-width: 28em; }
.stage-beats { display: grid; gap: 8px; margin: 0 0 24px; }
.stage-beats li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid #ffffff12; background: #ffffff08; opacity: .42; transform: translateX(-6px); transition: opacity .35s, transform .35s, border-color .35s, background .35s; }
.stage-beats b { display: block; font-size: 15px; margin-bottom: 2px; }
.stage-beats p { margin: 0; font-size: 13px; color: #b7c2ce; line-height: 1.7; }
.stage:not([data-step]) .stage-beats li[data-on="0"],
.stage[data-step="0"] .stage-beats li[data-on="0"],
.stage[data-step="1"] .stage-beats li[data-on="1"],
.stage[data-step="2"] .stage-beats li[data-on="2"],
.stage[data-step="3"] .stage-beats li[data-on="3"] { opacity: 1; transform: none; border-color: #c8102e88; background: #c8102e22; }
.stage .btn { margin-top: 4px; }
.iso-world { position: relative; perspective: 1400px; height: min(58vh, 480px); display: grid; place-items: center; align-content: center; }
.iso-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #ffb3be; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.stage:not([data-step]) .iso-cap[data-on="0"],
.stage[data-step="0"] .iso-cap[data-on="0"],
.stage[data-step="1"] .iso-cap[data-on="1"],
.stage[data-step="2"] .iso-cap[data-on="2"],
.stage[data-step="3"] .iso-cap[data-on="3"] { opacity: 1; transform: none; }
.iso-floor { opacity: .55; transition: opacity .4s; }
.stage:not([data-step]) .iso-floor,
.stage[data-step="0"] .iso-floor,
.stage[data-step="3"] .iso-floor { opacity: 1; }
.stage[data-step="1"] .f2,
.stage[data-step="2"] .f1,
.stage[data-step="2"] .f0 { opacity: 1; }
.stage[data-step="1"] .f2 .iso-deck,
.stage[data-step="2"] .f1 .iso-deck,
.stage[data-step="2"] .f0 .iso-deck { box-shadow: inset 0 0 0 1px #ffffff28, 0 0 28px #ff4d5a55; }
.iso { position: relative; width: 240px; height: 240px; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(calc(-42deg + var(--p) * 22deg)); }
.iso-shadow { position: absolute; inset: 18% 8% -8%; background: #0006; filter: blur(18px); transform: translateZ(-40px); }
.iso-scan { position: absolute; inset: 8px; background: linear-gradient(90deg, transparent 0%, #ff4d5a55 48%, transparent 100%); transform: translate3d(calc(-70% + var(--p) * 180%), 0, 80px); pointer-events: none; filter: blur(2px); }
.iso-floor { position: absolute; inset: 18px; transform-style: preserve-3d; }
.iso-deck { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(160deg, #3a4656, #232c38); box-shadow: inset 0 0 0 1px #ffffff18, 0 12px 28px #0006; }
.iso-floor.f1 .iso-deck { background: linear-gradient(160deg, #4a5564, #2b3440); }
.iso-floor.f2 .iso-deck { background: linear-gradient(160deg, #c8102e, #8d0c20); }
.iso-skirt { position: absolute; left: 0; right: 0; top: 100%; height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; transform-origin: top center; transform: rotateX(-90deg); background: linear-gradient(180deg, #5a6574, #242c36); box-shadow: inset 0 1px 0 #ffffff22; }
.iso-skirt i { display: block; width: 18px; height: 26px; border-radius: 2px; background: #ffd27a99; box-shadow: 0 0 10px #ffd27a55; }
.iso-floor.f2 .iso-skirt { background: linear-gradient(180deg, #e23a52, #7a1022); }
.iso-skirt-side { position: absolute; top: 0; bottom: 0; width: 56px; left: 100%; transform-origin: left; transform: rotateY(90deg); background: linear-gradient(180deg, #3a4450, #161c24); }
.iso-floor.f2 .iso-skirt-side { background: linear-gradient(180deg, #9a1428, #4a0812); }
.iso-door { width: 22px; height: 36px; margin: 0; background: #11181f; border-radius: 3px 3px 0 0; }
.iso-floor.f0 { transform: translateZ(calc(-8px - var(--p) * 10px)); }
.iso-floor.f1 { transform: translateZ(calc(52px + var(--p) * 46px)); }
.iso-floor.f2 { transform: translateZ(calc(118px + var(--p) * 96px)); }
.iso-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; }
.iso-dot.det { right: 28px; top: 22px; background: #ff4d5a; box-shadow: 0 0 16px #ff4d5a; animation: heroLed 1s infinite; }
.iso-panel { position: absolute; left: 24px; top: 40px; width: 34px; height: 46px; border-radius: 4px; background: #11181f; box-shadow: inset 0 0 0 1px #fff2; }
.iso-ext { position: absolute; right: 30px; bottom: 18px; width: 16px; height: 34px; border-radius: 3px; background: #e63946; box-shadow: 2px 0 0 #b42332; }
.iso-label { position: absolute; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #fff; text-shadow: 0 2px 10px #000a; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.iso-label.l-det { right: 8px; top: -8px; }
.iso-label.l-int { left: 8px; top: 8px; }
.iso-label.l-ext { right: 8px; bottom: 52px; }
.stage[data-step="1"] .l-det,
.stage[data-step="2"] .l-ext,
.stage[data-step="2"] .l-int,
.stage[data-step="3"] .iso-label { opacity: 1; transform: none; }

/* ---------- 見える消防 ---------- */
.mieru { background: radial-gradient(circle at 78% 30%, #4a1424 0%, #121821 42%, #080b10 100%); color: #fff; padding: 120px 0; overflow: hidden; }
.mieru .eyebrow { color: #ff8a9a; }
.mieru-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.mieru h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.3; letter-spacing: -.03em; margin: 8px 0 18px; }
.mieru .lead { color: #c5ced8; font-size: 17px; max-width: 34em; }
.mieru-points { display: grid; gap: 10px; margin: 28px 0 32px; }
.mieru-points li { padding: 12px 16px; border-radius: 12px; border: 1px solid #ffffff18; background: #ffffff08; color: #d5dde6; transform: translateX(-8px); opacity: .45; transition: opacity .4s, transform .4s, border-color .4s; }
.mieru[data-step="0"] li[data-on="0"],
.mieru[data-step="1"] li[data-on="1"],
.mieru[data-step="2"] li[data-on="2"] { opacity: 1; transform: none; border-color: #c8102e88; background: #c8102e22; }
.mieru .btn-line { background: transparent; color: #fff; border-color: #ffffff44; }
.mieru .btn-line:hover { border-color: #fff; }
.cube-world { perspective: 900px; height: 380px; display: grid; place-items: center; }
.cube-spin { transform-style: preserve-3d; animation: cube-turn 14s linear infinite; }
.cube { --s: 168px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(calc(-28deg + var(--p) * 22deg)) rotateY(calc(-24deg + var(--p) * 50deg)); }
.cube-face { position: absolute; inset: 0; display: grid; place-items: center; font-family: Inter, "Noto Sans JP", sans-serif; font-weight: 800; letter-spacing: .16em; font-size: 18px; backface-visibility: hidden; border: 1px solid #ffffff22; background: linear-gradient(160deg, #c8102ecc, #1f2a37ee); }
.c-front { transform: translateZ(calc(var(--s) / 2)); }
.c-back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.c-right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.c-left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.c-top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(160deg, #ff5a70, #c8102e); }
.c-bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes cube-turn { to { transform: rotateY(360deg); } }

/* ---------- 流れ ---------- */
.sec-flow { background: #0c1118; color: #fff; }
.sec-flow .eyebrow { color: #ff8a9a; }
.sec-flow h2 { color: #fff; }
.sec-flow .lead { color: #b7c2ce; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flow li { position: relative; padding: 28px 24px 24px; background: #161c24; border: 1px solid #ffffff14; border-radius: 16px; overflow: hidden; transform: translateY(16px) scale(.98); opacity: .4; transition: opacity .4s, transform .4s, border-color .4s; }
.flow li.is-on { opacity: 1; transform: none; border-color: #c8102e88; box-shadow: 0 16px 40px #0006; }
.flow li .num { color: #ff8a9a; }
.flow h3 { color: #fff; }
.flow p { color: #9aa6b4; }
.flow li::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; border-top: 2px solid #d7dde5; border-right: 2px solid #d7dde5; transform: translateY(-50%) rotate(45deg); }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: 18px; margin: 8px 0 10px; }
.flow p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- 事業ベントー ---------- */
.svc-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-bento .is-wide { grid-column: span 2; }
.svc-tile { display: grid; grid-template-rows: 180px minmax(0, 1fr); height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.svc-bento .is-wide .svc-tile { grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr; min-height: 280px; }
.svc-tile:hover { transform: translateY(-6px); box-shadow: 0 22px 50px #2633421a; }
.svc-tile-img { overflow: hidden; background: #111; }
.svc-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.svc-tile:hover .svc-tile-img img { transform: scale(1.06); }
.svc-tile-txt { display: flex; flex-direction: column; padding: 22px 24px 20px; }
.svc-tile-txt h3 { font-size: 20px; margin: 6px 0 10px; }
.svc-tile-txt p { font-size: 14px; color: var(--muted); line-height: 1.8; flex: 1; }

/* ---------- 対応エリアマップ ---------- */
.area-sec { background: #1f2a37; color: #e8edf3; border: 0; }
.area-sec .eyebrow { color: #ff8a9a; }
.area-sec h2 { color: #fff; }
.area-sec .lead, .area-sec .access-area { color: #b7c2ce; }
.area-note { font-size: 14px; color: #8f9bab; }
.area-legend { display: grid; gap: 8px; margin: 20px 0 24px; font-size: 13px; color: #c9d1db; }
.area-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; }
.area-legend .core { background: var(--accent); }
.area-legend .wide { background: #4a5666; }
.area-sec .access-dl { background: #273342; border-color: #364453; }
.area-sec .access-dl div { border-color: #364453; }
.area-sec .access-dl dt { color: #8f9bab; }
.area-sec .access-dl a { color: #ffb3be; }
.area-map { margin: 0; padding: 18px; background: #273342; border: 1px solid #364453; border-radius: 18px; }
.area-map svg { width: 100%; height: auto; display: block; }
.area-map .pref path { stroke: #1f2a37; stroke-width: 3; transition: fill .2s, filter .2s; }
.area-map .is-core path { fill: var(--accent); }
.area-map .is-wide path { fill: #4a5666; }
.area-map .pref:hover path { filter: brightness(1.15); }
.area-map text { fill: #fff; font-size: 16px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.area-map figcaption { margin: 14px 8px 4px; font-size: 14px; color: #b7c2ce; line-height: 1.8; }
.area-map figcaption strong { display: block; color: #fff; margin-bottom: 4px; }

/* ---------- 事業詳細 ---------- */
.svc-hero { position: relative; min-height: 420px; display: grid; align-items: end; color: #fff; overflow: hidden; }
.svc-hero-bg { position: absolute; inset: 0; }
.svc-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.svc-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #1f2a37aa 0%, #1f2a37d8 70%, #1f2a37 100%); }
.svc-hero-in { position: relative; z-index: 1; padding: 72px 24px 56px; }
.svc-hero .crumbs { color: #c9d1db; }
.svc-hero .crumbs a { color: #ffb3be; }
.svc-hero .eyebrow { color: #ff8a9a; }
.svc-hero h1 { font-size: clamp(32px, 4vw, 52px); margin: 8px 0 16px; letter-spacing: -.02em; }
.svc-hero .lead { color: #d5dde6; max-width: 36em; }
.svc-hero .hero-act { margin-top: 22px; }
.svc-hi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-hi li { padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.svc-hi h2 { font-size: 18px; margin: 8px 0 10px; }
.svc-hi p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.85; }
.sec-top { padding-top: 12px; }
.svc-items .btn { width: 100%; margin-top: 8px; }
.svc-mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-auto-rows: 220px; gap: 12px; }
.svc-mosaic li { overflow: hidden; border-radius: 16px; }
.svc-mosaic li:first-child { grid-row: span 2; }
.svc-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc-mosaic li:hover img { transform: scale(1.04); }

/* ---------- フッター ---------- */
.ft { background: #1f2a37; color: #c9d1db; margin-top: 0; }
.ft-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.brand-ft .brand-logo { background: #fff; border-radius: 8px; padding: 3px; }
.brand-ft .brand-txt b { color: #fff; }
.brand-ft .brand-txt small { color: #9aa6b4; }
.ft-co p { margin: 16px 0 10px; font-size: 14px; }
.ft address { font-style: normal; font-size: 13px; line-height: 1.9; color: #9aa6b4; }
.ft-h { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .08em; margin-bottom: 12px; }
.ft-nav li a { display: inline-block; font-size: 14px; padding: 4px 0; text-decoration: none; color: #c9d1db; }
.ft-nav li a:hover { color: #fff; text-decoration: underline; }
.copy { margin: 0; text-align: center; font-size: 12px; color: #8492a3; padding: 18px; border-top: 1px solid #ffffff14; }
.page-html { min-height: 20vh; }
.contact-extra { margin: 0 0 36px; }

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 1024px) {
  .hero-game { cursor: auto; }
  .hero-spray { display: block; }
}
@media (max-width: 1080px) {
  .gnav li a { padding: 8px 8px; font-size: 13px; }
  .gnav { gap: 10px; }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 72px; }
  .hd-in { height: 64px; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; }
  .menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .menu-btn em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px #26334214; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; max-height: calc(100dvh - 64px); overflow: auto; }
  .gnav.open { display: flex; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li a { padding: 15px 4px; font-size: 16px; border-bottom: 1px solid #edf0f4; border-radius: 0; }
  .hd-cta { margin-top: 16px; min-height: 52px; font-size: 16px; }
  .subnav { top: 64px; }
  .hero-in, .about, .access, .split, .svc-detail, .contact, .phero.has-img .phero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .area-map { order: -1; }
  .works-bar-in { grid-template-columns: minmax(0, 1fr); }
  .hero-in { padding-top: 40px; padding-bottom: 48px; }
  .hero-game { order: -1; min-height: 380px; height: 52vh; cursor: auto; }
  .hero-spray { display: block; }
  .svc-grid, .post-grid, .cards3, .boxes, .mvv, .flow, .svc-hi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-in, .mieru-in { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stage { height: 240vh; }
  .stage-sticky { top: 64px; height: calc(100vh - 64px); }
  .stage-title { font-size: 24px; }
  .stage-lead { font-size: 14px; margin-bottom: 12px; }
  .stage-beats { gap: 6px; margin-bottom: 14px; }
  .stage-beats li { padding: 8px 10px; }
  .stage-beats p { display: none; }
  .iso-world { order: -1; height: min(34vh, 240px); }
  .cube-world { order: -1; height: 220px; }
  .svc-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-bento .is-wide { grid-column: span 2; }
  .svc-bento .is-wide .svc-tile { grid-template-columns: 1fr; grid-template-rows: 200px minmax(0, 1fr); min-height: 0; }
  .flow li::after { display: none; }
  .svc-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .svc-mosaic li:first-child { grid-row: auto; }
  .stats, .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-items { position: static; }
  .svc-row { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 36px 32px; gap: 24px; }
  .ft-in { grid-template-columns: 1fr 1fr; }
  .ft-co { grid-column: 1 / -1; }
  .sec { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 18px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-txt b { font-size: 16px; }
  .hero h1 { font-size: 27px; }
  .hero .lead { font-size: 15px; }
  .hero-act .btn { flex: 1 1 100%; }
  .news-strip-in { flex-wrap: wrap; gap: 8px 16px; }
  .news-strip ul { flex-basis: 100%; order: 3; }
  .mieru { padding: 72px 0; }
  .mieru h2 { font-size: 28px; }
  .cube { --s: 132px; }
  .cube-world { height: 220px; }
  .news-strip li a { flex-direction: column; gap: 0; padding: 6px 0; }
  .news-strip li span { white-space: normal; }
  .news-strip .more { margin-left: auto; }
  .sec { padding: 56px 0; }
  .sec-tight { padding: 36px 0 56px; }
  .sec-head { margin-bottom: 28px; }
  .sec-row { display: block; }
  .sec-row .more { display: block; margin: -12px 0 24px; }
  .feature { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .feature h3 { font-size: 16px; }
  .feature p { font-size: 13px; }
  .svc-grid, .post-grid, .cards3, .boxes, .boxes-2, .mvv, .flow, .svc-hi, .svc-bento, .svc-mosaic { grid-template-columns: minmax(0, 1fr); }
  .svc-bento .is-wide { grid-column: auto; }
  .svc-hero { min-height: 360px; }
  .svc-hero-in { padding: 48px 18px 36px; }
  .svc-row { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 14px; }
  .profile div { grid-template-columns: minmax(0, 1fr); }
  .profile dt { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 18px; font-size: 14px; }
  .profile dd { padding: 12px 18px 16px; }
  .phero-in { padding-top: 28px; padding-bottom: 36px; }
  .crumbs ol { margin-bottom: 18px; }
  .form { padding: 22px 18px; }
  .f-grid { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 28px 22px; border-left-width: 3px; }
  .b2b { padding: 22px 18px; }
  .article-nav { grid-template-columns: minmax(0, 1fr); }
  .article-nav .next { grid-column: 1; }
  .tabs { width: 100%; }
  .tabs a { flex: 1; text-align: center; padding: 8px 6px; }
  .ft-in { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 48px; }
  .subnav .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .stage, .mieru, .hero[data-scrub] .hero-game, .iso, .cube, .cube-spin { transform: none !important; animation: none !important; }
  .stage { height: auto; }
  .stage-sticky { position: static; height: auto; }
  .stage-beats li, .iso-cap { opacity: 1; transform: none; }
  .flow li, .mieru-points li { opacity: 1; transform: none; }
}
