/* =========================================================
   Infra Intelligence — site.css (v3: quiet, rounded, editorial)
   Rules: full-bleed photos have no radius; photos inside the
   container use 28px; controls are pills or circles. Light and
   dark sections alternate with hard edges. Icons only for actions.
   ========================================================= */

:root {
  --white:      #FFFFFF;
  --alt:        #F5F5F4;
  --text:       #1A1B1E;
  --mute:       #6B6D72;
  --line:       rgba(26,27,30,.10);
  --ink:        #0B0C0E;
  --ink-card:   #17181B;
  --on-dark:    #F5F5F3;
  --on-dark-2:  rgba(245,245,243,.72);
  --on-dark-3:  rgba(245,245,243,.52);
  /* 色は意味で使い分ける。青=操作・行き先・注目点（NOT A HOTEL の資料請求と同じ #0171E3）、赤=損傷・危険、緑=対応済み。ロゴとアイコンの点はオレンジ */
  --accent:     #0171E3;
  --accent-ink: #015DBB;
  --accent-soft:#E5F1FD;
  --accent-on-dark: #6FB2FF;
  --warn:       #C23B2A;
  --done:       #2E6B3A;
  --done-soft:  #E6F0E5;

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans:  "Hiragino Sans", "Hiragino Kaku Gothic ProN", -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --pill: 999px;
  --maxw: 1260px;
  --container: min(var(--maxw), 87.5%);
  --gutter: calc((100% - var(--container)) / 2);
  --sec-y: clamp(96px, 12vw, 160px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --hd-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--sans); font-size: 15.5px; line-height: 2; letter-spacing: .03em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; text-wrap: pretty;
}
body.locked { overflow: hidden; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--ink); color: var(--white); padding: 8px 16px; border-radius: var(--pill); }
.skip:focus { left: 8px; }
.wrap { width: var(--container); margin-inline: auto; }
.wrap > * { min-width: 0; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Type ---------- */
.h { font-family: var(--serif); font-weight: 400; letter-spacing: .05em; word-break: auto-phrase; text-wrap: balance; }
.h-hero { font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.3; }
.h-hero .ln { display: block; }
.ph { display: inline-block; max-width: 100%; }
.h-xl { font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.6; }
.h-lg { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.65; }
.h-md { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.7; }
.h-quiet { font-family: var(--sans); font-weight: 500; font-size: 20px; letter-spacing: .06em; }
.label { font-size: 12px; letter-spacing: .18em; color: var(--mute); margin-bottom: 20px; }
.on-dark .label { color: var(--on-dark-3); }
.lead { font-size: clamp(15.5px, 1.2vw, 17px); line-height: 2.1; color: var(--mute); }
.on-dark .lead { color: var(--on-dark-2); }
.on-dark p:not(.label):not(.lead) { color: var(--on-dark-2); }
.on-dark .h, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }
.note { font-size: 12.5px; line-height: 1.9; color: var(--mute); margin-top: 20px; }
.note a, .cap a, .prose a, .fact a, .caution a { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; text-decoration-color: var(--accent); }
.cap { font-size: 12px; letter-spacing: .04em; color: var(--mute); line-height: 1.8; margin-top: 12px; }
.tag { font-size: 11px; letter-spacing: .06em; border: 1px solid var(--line); border-radius: var(--pill); padding: 2px 10px; color: var(--mute); }
.num { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--mute); }
.on-dark .num { color: var(--on-dark-3); }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.cta-sub { font-size: 12.5px; color: var(--mute); line-height: 1.8; flex-basis: 100%; }
.on-dark .cta-sub { color: var(--on-dark-3); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 26px;
  font-size: 14px; font-weight: 500; letter-spacing: .04em; border-radius: var(--pill); border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-fill { background: var(--ink); color: var(--white); }
.btn-fill:hover { background: #2A2B2F; }
.btn-line { border-color: var(--line); color: var(--text); background: transparent; }
.btn-line:hover { background: var(--alt); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #E9E9E6; }
.btn-glass { background: rgba(0,0,0,.28); color: #fff; border-color: rgba(255,255,255,.16); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.btn-glass:hover { background: rgba(0,0,0,.42); }
.link-arrow { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--text); }
.link-arrow .i { box-sizing: content-box; width: 16px; height: 16px; padding: 11px; border-radius: 50%; border: 1.5px solid currentColor; order: 2;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.link-arrow:hover .i, .link-arrow:focus-visible .i { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateX(6px); }
.link-arrow:hover { color: var(--accent-ink); }
.on-dark .link-arrow { color: var(--on-dark); }
.on-dark .link-arrow:hover { color: var(--accent-on-dark); }
.on-dark .link-arrow:hover .i { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.circle-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(26,27,30,.06); color: var(--text); transition: background .3s var(--ease), opacity .3s var(--ease);
}
.circle-btn:hover { background: rgba(26,27,30,.12); }
.circle-btn:disabled { opacity: .35; cursor: default; }
.circle-btn .i { width: 18px; height: 18px; }
.on-dark .circle-btn { background: rgba(245,245,243,.12); color: var(--on-dark); }
.on-dark .circle-btn:hover { background: rgba(245,245,243,.22); }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec-y); background: var(--white); }
.sec--tight-top { padding-top: clamp(8px, 2vw, 24px); }
.svc-name { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.35; letter-spacing: .04em; }
.svc-row p.svc-catch:not(.lead) { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.8; margin: 16px 0 18px; color: var(--text); }
/* ニュース */
.news-list { border-top: 1px solid var(--line); max-width: 920px; }
.news-item { display: grid; grid-template-columns: 140px 1fr; gap: 8px 32px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.news-date { font-family: var(--mono); font-size: 13px; color: var(--mute); padding-top: 3px; }
.news-title { font-size: 16px; font-weight: 500; line-height: 1.8; }
.news-title a { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; text-decoration-color: var(--accent); }
.news-body { font-size: 14.5px; line-height: 2; color: var(--mute); margin-top: 6px; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; padding-block: 22px; } }
.sec--alt { background: var(--alt); }
.sec--dark, .on-dark { background: var(--ink); color: var(--on-dark); }
.grid-2 { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.grid-2 > .label { margin-bottom: 0; }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- Header ---------- */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--hd-h);
  color: var(--text); background: transparent;
  transition: transform .45s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.hd.on-photo { color: #fff; }
.hd.is-scrolled { background: rgba(255,255,255,.72); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.hd.is-hidden { transform: translateY(-100%); }
.hd-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 22px; height: 22px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-word { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .2em; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-block; font-size: 13px; letter-spacing: .04em; padding: 6px 12px; border-radius: var(--pill); opacity: .8; transition: opacity .3s var(--ease), background .3s var(--ease); }
.nav a:hover, .nav a[aria-current] { opacity: 1; background: rgba(127,127,127,.12); }
.hd-cta { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: var(--pill); font-size: 13px; font-weight: 500; letter-spacing: .04em; background: var(--ink); color: var(--white); transition: background .3s var(--ease), color .3s var(--ease); }
.hd.on-photo:not(.is-scrolled) .hd-cta { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.18); }
.hd-cta .i { width: 16px; height: 16px; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; z-index: 130; }
.burger span { position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] { color: var(--text); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 120; background: var(--white); display: flex; align-items: center; opacity: 0; pointer-events: none; }
.drawer[hidden] { display: flex; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.drawer.open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .4s var(--ease); }
.drawer-nav { width: var(--container); margin-inline: auto; display: flex; flex-direction: column; }
.drawer-nav a { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(22px, 6vw, 30px); transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.drawer.open .drawer-nav a { transform: none; opacity: 1; }
.drawer.open .drawer-nav a:nth-child(2) { transition-delay: .05s; } .drawer.open .drawer-nav a:nth-child(3) { transition-delay: .1s; }
.drawer.open .drawer-nav a:nth-child(4) { transition-delay: .15s; } .drawer.open .drawer-nav a:nth-child(5) { transition-delay: .2s; } .drawer.open .drawer-nav a:nth-child(6) { transition-delay: .25s; }
.drawer-no { font-family: var(--mono); font-size: 11px; color: var(--mute); }

/* ---------- Full-bleed hero / bands ---------- */
.hero-full { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero-full--short { min-height: 78svh; }
.hero-full .bg { position: absolute; inset: 0; z-index: -1; }
.hero-full .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-full .bg::after { content: ""; position: absolute; inset: 0;
  /* 写真全体は暗くしない。文字が乗る左と下、ヘッダーの乗る上だけを落とす */
  background: linear-gradient(to right, rgba(0,0,0,.58) 0%, rgba(0,0,0,.38) 40%, rgba(0,0,0,.12) 66%, rgba(0,0,0,0) 82%),
              linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%),
              linear-gradient(to bottom, rgba(0,0,0,.34) 0%, rgba(0,0,0,0) 22%); }
/* 明るい写真（曇り空など）は、文字とヘッダーが乗る左と上をもう少し落とす */
.hero-full--bright .bg::after {
  background: linear-gradient(to right, rgba(11,12,14,.72) 0%, rgba(11,12,14,.52) 42%, rgba(11,12,14,.2) 72%, rgba(11,12,14,.08) 100%),
              linear-gradient(to top, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 55%),
              linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 24%); }
.hero-full .wrap { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 840px) auto; justify-content: space-between; align-items: end; gap: 24px; }
.hero-full .label { color: rgba(255,255,255,.7); }
.hero-full .lead { color: rgba(255,255,255,.78); margin-top: 22px; max-width: 34em; }
.hero-full .cap { color: rgba(255,255,255,.62); justify-self: end; text-align: right; margin: 0; white-space: nowrap; }
.hero-full .crumbs { margin-bottom: 20px; }
.hero-full .crumbs ol, .hero-full .crumbs a, .hero-full .crumbs [aria-current] { color: rgba(255,255,255,.7); }
.hero-full .h-hero { text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.hero-full .lead, .hero-full .label, .hero-full .crumbs { text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.band { position: relative; height: clamp(360px, 70vh, 720px); overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.band .bg { position: absolute; inset: 0; z-index: -1; will-change: transform; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.band.in .bg img { transform: scale(1); }
.band .wrap { text-align: center; }
.band .h { max-width: 18em; margin-inline: auto; }
.band--light { color: var(--text); }
.band--sky { align-items: flex-start; padding-top: clamp(40px, 10%, 110px); }  /* 地平線より上（空）に見出しを置く */
.band--dark { color: #fff; }
.band--dark .bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); }

/* ---------- Hero slideshow ---------- */
.slides .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s linear; will-change: transform, opacity; }
.slides .slide.is-on { opacity: 1; }
.slides .slide.ken { animation: ken 10s linear both; }
@keyframes ken { from { transform: scale(1.08) translate(1%, 1%); } to { transform: scale(1.0) translate(0, 0); } }
.slide-nav { position: absolute; right: var(--gutter); top: calc(var(--hd-h) + 20px); z-index: 2; display: flex; gap: 10px; }
.slide-dot { width: 22px; height: 22px; padding: 0; position: relative; }
.slide-dot::after { content: ""; position: absolute; left: 8px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.slide-dot.is-on::after { background: #fff; }
.slide-dot svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 63; stroke-dashoffset: 63; transform: rotate(-90deg); opacity: 0; }
.slide-dot.is-on svg { opacity: 1; animation: ring 9s linear both; }
@keyframes ring { from { stroke-dashoffset: 63; } to { stroke-dashoffset: 0; } }

/* ---------- Floating CTA ---------- */
.float-cta { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translate(-50%, 0); z-index: 90; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.float-cta.is-off { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }
.float-cta .btn { height: 50px; padding: 0 26px; font-size: 13.5px; background: var(--ink); color: #fff; border-color: rgba(255,255,255,.18); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.float-cta .btn:hover { background: #26272B; }
.js .float-cta { opacity: 0; transform: translate(-50%, 16px); }
.js .float-cta.is-ready { opacity: 1; transform: translate(-50%, 0); }
.js .float-cta.is-ready.is-off, .js .float-cta.is-ready.is-down { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }

/* ---------- Inset photos ---------- */
.photo { border-radius: var(--r-lg); overflow: hidden; background: var(--alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s var(--ease); }
.photo:hover img { transform: scale(1.01); opacity: .9; }
.photo--169 img { aspect-ratio: 16 / 9; }
.photo--43 img { aspect-ratio: 4 / 3; }
.photo--45 img { aspect-ratio: 4 / 5; }
.photo--sm { border-radius: var(--r-sm); }
.on-dark .photo { background: var(--ink-card); }

/* ---------- Manifesto / stat ---------- */
.manifesto-body p + p { margin-top: 1.4em; }
.stat { margin-top: 44px; padding: 28px 32px; border-radius: var(--r-md); background: var(--alt); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-cell { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-cell:last-child .stat-num { color: var(--accent-ink); }
.stat-lab { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--mute); }
.stat .cap { margin-top: 18px; }

.values { margin-top: clamp(64px, 8vw, 104px); }
.value-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.value { background: var(--alt); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.value .num { display: block; margin-bottom: 28px; }
.value h3 { margin-bottom: 10px; }
.value p { font-size: 14.5px; color: var(--mute); line-height: 1.95; }
@media (max-width: 900px) { .value-list { grid-template-columns: 1fr; } }

/* ---------- Product intro (dark) ---------- */
.prod-name { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 600; letter-spacing: .14em; display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.prod-icon { width: 30px; height: 30px; flex: none; align-self: center; }
.prod-icon svg { width: 100%; height: 100%; display: block; }
.prod-name { align-items: center; }
.prod-name-en { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; color: var(--mute); font-weight: 400; }
.on-dark .prod-icon { width: 30px; height: 30px; flex: none; align-self: center; }
.prod-icon svg { width: 100%; height: 100%; display: block; }
.prod-name { align-items: center; }
.prod-name-en { color: var(--on-dark-3); }
.prod-photo { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.prod-photo .btn { position: absolute; right: 24px; bottom: 24px; }
.prod-below { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.points { border-top: 1px solid rgba(245,245,243,.14); }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid rgba(245,245,243,.1); }
.points h3 { font-family: var(--sans); font-weight: 500; font-size: 16px; margin-bottom: 4px; }
.points p { font-size: 14px; line-height: 1.95; }
.sec:not(.on-dark) .points { border-top-color: var(--text); }
.sec:not(.on-dark) .points li { border-bottom-color: var(--line); }

/* ---------- Karte ---------- */
.karte-wrap { max-width: 640px; }
.karte { background: var(--white); color: var(--text); border-radius: var(--r-md); padding: 22px 26px 20px; font-size: 13px; line-height: 1.7; position: relative; overflow: hidden; }
.karte-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--text); padding-bottom: 12px; margin-bottom: 18px; }
.karte-label { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .1em; }
.karte-no { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .1em; }
.karte-grid { display: grid; grid-template-columns: 150px 1fr; gap: 20px; }
.karte-photo { aspect-ratio: 4 / 3; background: var(--alt); border-radius: var(--r-sm); position: relative; overflow: hidden; }
.karte-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.karte-photo-tag { position: absolute; left: 8px; bottom: 8px; font-family: var(--mono); font-size: 10px; background: rgba(255,255,255,.88); padding: 2px 8px; border-radius: var(--pill); }
.karte-fields > div { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.karte-fields dt { font-family: var(--mono); font-size: 10.5px; color: var(--mute); letter-spacing: .08em; }
.karte-sub { display: block; font-size: 10.5px; color: var(--mute); }
.karte-state { display: inline-block; height: 1.6em; overflow: hidden; vertical-align: bottom; }
.karte-state i { display: block; font-style: normal; height: 1.6em; line-height: 1.6em; padding: 0 10px; border-radius: var(--pill); background: var(--alt); color: var(--mute); transition: transform .6s var(--ease); font-size: 12px; margin-bottom: 4px; }
.karte-state i[data-s="2"] { background: var(--done-soft); color: var(--done); }
.karte-state i[data-s="1"] { background: var(--accent-soft); color: var(--accent-ink); }
.karte-state[data-state="1"] i { transform: translateY(calc(-1.6em - 4px)); }
.karte-state[data-state="2"] i { transform: translateY(calc(-3.2em - 8px)); }
.karte-map { margin-top: 18px; position: relative; border-radius: var(--r-sm); background: var(--alt); height: 120px; overflow: hidden; }
.karte-map svg { width: 100%; height: 100%; color: var(--text); opacity: .9; }
.karte-map-cap { position: absolute; right: 8px; top: 6px; font-family: var(--mono); font-size: 10px; color: var(--mute); background: rgba(245,245,244,.92); padding: 1px 8px; border-radius: var(--pill); }
.karte-foot { margin-top: 18px; }
.karte-timeline { display: flex; justify-content: space-between; position: relative; padding-top: 10px; }
.karte-timeline::before { content: ""; position: absolute; left: 6px; right: 6px; top: 3px; height: 1px; background: var(--line); }
.karte-timeline li { position: relative; font-family: var(--mono); font-size: 10.5px; color: var(--mute); }
.karte-timeline li::before { content: ""; position: absolute; left: 50%; top: -10px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--white); border: 1px solid var(--mute); transition: background .4s var(--ease), border-color .4s var(--ease); }
.karte.play .karte-timeline li:nth-child(-n+2)::before { background: var(--text); border-color: var(--text); }
.karte[data-focus] [data-k] { transition: opacity .5s var(--ease); }
.karte[data-focus="report"] [data-k]:not([data-k="report"]), .karte[data-focus="map"] [data-k]:not([data-k="map"]),
.karte[data-focus="verify"] [data-k]:not([data-k="verify"]), .karte[data-focus="record"] [data-k]:not([data-k="record"]) { opacity: .28; }
.karte[data-focus="record"] .karte-timeline li::before { background: var(--text); border-color: var(--text); }
.karte[data-focus="record"] .karte-timeline li:last-child::before { background: var(--done); border-color: var(--done); }
.karte-wrap .cap { margin-top: 12px; }
.on-dark .karte-wrap .cap { color: var(--on-dark-3); }

/* ---------- Services (asymmetric rows) ---------- */
.svc-row { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.svc-row + .svc-row { margin-top: clamp(56px, 8vw, 112px); }
.svc-row--flip { grid-template-columns: 1fr 2fr; }
.svc-row--flip .photo { order: 2; }
.process { margin-top: clamp(96px, 12vw, 160px); }
.svc-row h2 { margin: 8px 0 14px; }
.svc-row .lead { margin-bottom: 12px; }
.svc-row p:not(.lead):not(.label) { font-size: 14.5px; color: var(--mute); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { padding-top: 20px; border-top: 1px solid var(--line); }
.on-dark .step { border-top-color: rgba(245,245,243,.14); }
.step-no { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--mute); display: block; margin-bottom: 22px; }
.step-title { font-family: var(--sans); font-weight: 500; font-size: 16px; margin-bottom: 8px; }
.step-body { font-size: 14px; color: var(--mute); line-height: 1.95; }
.outputs { justify-self: end; }
.outputs-label { font-size: 12px; letter-spacing: .12em; color: var(--mute); margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12.5px; border-radius: var(--pill); padding: 5px 14px; background: var(--white); border: 1px solid var(--line); }
.sec--alt .tags li { background: var(--white); }

/* ---------- Rail (horizontal scroll) ---------- */
.rail-sec { padding-block: var(--sec-y); }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.rail-nav { display: flex; gap: 8px; }
.rail {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none; padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail-card { flex: 0 0 min(400px, 82vw); scroll-snap-align: start; border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.rail-card img { transition: transform .5s var(--ease), opacity .3s var(--ease); }
.rail-card:hover img { transform: scale(1.03); opacity: .85; }
.on-dark .rail-card { background: var(--ink-card); }
.rail-card a { display: flex; flex-direction: column; height: 100%; }
.rail-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rail-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rail-cat { font-size: 12px; font-weight: 600; color: var(--mute); letter-spacing: .06em; }
.rail-title { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.6; letter-spacing: .02em; }
.rail-date { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); margin-top: auto; padding-top: 10px; font-variant-numeric: tabular-nums; }
.rail-date .i { width: 15px; height: 15px; }
.rail-card--more { background: var(--ink); color: var(--on-dark); }
.rail-card--more a { align-items: flex-start; justify-content: space-between; padding: 24px; min-height: 100%; }
.rail-card--more .h { max-width: 9em; }
.rail-card--more .circle-btn { background: var(--white); color: var(--ink); margin-top: 24px; }

/* ---------- Posts grid (journal index) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-grid .rail-card { flex: none; }

/* ---------- Facts / about ---------- */
.facts { border-top: 1px solid var(--text); }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: 12px; letter-spacing: .1em; color: var(--mute); padding-top: .3em; }
.fact dd { font-size: 14.5px; line-height: 1.9; }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.about-grid .photo { max-width: 440px; }
.about-grid p:not(.label) + p { margin-top: 1.2em; }
.about-grid h2 { margin-bottom: 18px; }

/* ---------- Contact (full-bleed dark) ---------- */
.contact { position: relative; padding-block: clamp(120px, 16vw, 200px); color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.contact .bg { position: absolute; inset: 0; z-index: -1; }
.contact .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.contact .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,12,14,.35), rgba(11,12,14,.75)); }
.contact-in { max-width: 760px; }
.contact .label { color: rgba(255,255,255,.62); }
.contact .lead { color: rgba(255,255,255,.78); margin-top: 22px; }
.contact .cta-sub { color: rgba(255,255,255,.55); }

/* ---------- Footer ---------- */
.ft { background: var(--ink); color: var(--on-dark); padding: clamp(96px, 12vw, 160px) 0 40px; text-align: center; }
.ft-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: clamp(64px, 8vw, 120px); }
.ft-brand .brand-mark { width: 34px; height: 34px; }
.ft-word { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .26em; }
.ft-tag { font-size: 12px; color: var(--on-dark-3); }
.ft-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 22px 0; border-top: 1px solid rgba(245,245,243,.2); border-bottom: 1px solid rgba(245,245,243,.2); }
.ft-links a { font-size: 12px; letter-spacing: .04em; color: var(--on-dark-2); }
.ft-links a:hover { color: var(--on-dark); }
.ft-svc { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid rgba(245,245,243,.2); }
.ft-svc-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--on-dark-3); }
.ft-svc a { font-size: 12px; letter-spacing: .04em; color: var(--on-dark-2); }
.ft-svc a:hover { color: var(--on-dark); }
.ft-note { font-size: 12px; line-height: 1.9; color: var(--on-dark-3); max-width: 40em; margin: 28px auto 0; }
.ft-copy { margin-top: 24px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--on-dark-3); }

/* ---------- Sub-page heads ---------- */
.phead { padding-block: calc(var(--hd-h) + clamp(40px, 6vw, 80px)) clamp(48px, 7vw, 96px); background: var(--white); }
.phead .h-hero { max-width: 20em; }
.phead .lead { margin-top: 24px; max-width: 40em; }
.crumbs { margin-bottom: clamp(24px, 4vw, 40px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; letter-spacing: .04em; color: var(--mute); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { max-width: min(60vw, 30em); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); }
.post-meta time { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.post-meta .i { width: 15px; height: 15px; }

/* ---------- Prose ---------- */
.prose-lg p { font-size: clamp(15.5px, 1.25vw, 17.5px); line-height: 2.1; }
.prose-lg p + p { margin-top: 1.4em; }
.article-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.article-side { position: sticky; top: calc(var(--hd-h) + 24px); }
.toc { padding: 20px 22px; border-radius: var(--r-md); background: var(--alt); }
.toc-label { font-size: 11.5px; letter-spacing: .12em; color: var(--mute); margin-bottom: 10px; }
.toc ol { counter-reset: toc; display: flex; flex-direction: column; gap: 6px; }
.toc li { counter-increment: toc; display: flex; gap: 10px; font-size: 12.5px; line-height: 1.7; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 10px; color: var(--mute); padding-top: .35em; }
.toc a { color: var(--mute); } .toc a:hover { color: var(--text); }
.prose { max-width: 720px; font-size: 15.5px; line-height: 2.1; }
.prose > * + * { margin-top: 1.5em; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.6; margin-top: 3em; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin-top: 2.2em; }
.prose h2 + p, .prose h3 + p { margin-top: .9em; }
.prose ul, .prose ol { padding-left: 1.4em; } .prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-top: .4em; } .prose li::marker { color: var(--mute); }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1.2em; color: var(--mute); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 3em; }
.prose strong { font-weight: 600; }
.prose a { word-break: break-all; }
.prose figure img { width: 100%; border-radius: var(--r-md); } .prose figcaption { font-size: 12px; color: var(--mute); margin-top: 8px; }
.prose figure.fig { margin-block: 2.2em; } .prose figure.fig img { background: var(--alt); padding: clamp(16px, 3vw, 28px); } .prose figure.fig figcaption { font-size: 13px; line-height: 1.8; margin-top: 10px; }
.table-wrap { overflow-x: auto; border-radius: var(--r-md); }
.prose table, .cmp { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.9; }
.prose th, .prose td, .cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.prose th, .cmp thead th { font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--mute); }
.cmp { background: var(--white); border-radius: var(--r-md); overflow: hidden; min-width: 560px; }
.cmp tbody th { font-weight: 500; font-size: 13.5px; color: var(--mute); width: 130px; }
.compare .table-wrap { margin-top: 36px; }
.prose--page { max-width: 760px; }
.article-cta { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; background: var(--alt); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); margin-bottom: clamp(48px, 6vw, 72px); }
.article-cta p + p { margin-top: 8px; font-size: 14px; color: var(--mute); }

/* ---------- Model Lab (公開しているモデル) ---------- */
.mgrid-lead { margin-top: 12px; font-size: 14.5px; color: var(--mute); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.mpanel { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: var(--r-md); overflow: hidden; }
.mpanel .mthumb img { transition: transform .5s var(--ease); }
.mpanel:hover .mthumb img { transform: scale(1.03); }
.mpanel:hover .circle-btn { background: var(--text); color: var(--white); }
.mpanel-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.mpanel-target { font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.mpanel-name { font-weight: 600; font-size: 15.5px; line-height: 1.6; margin-top: 4px; }
.mpanel-line { font-size: 14px; line-height: 1.8; color: var(--mute); margin-top: 8px; }
.mpanel-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; }
.mthumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alt); }
.mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mthumb-box { position: absolute; border: 2px solid var(--accent); border-radius: 4px; }
.mthumb--warn .mthumb-box { border-color: var(--warn); }
.mthumb-tag { position: absolute; left: -2px; bottom: calc(100% + 5px); white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #fff; background: var(--accent); padding: 1px 7px; border-radius: 4px; }
.mthumb--warn .mthumb-tag { background: var(--warn); }
.mdetail-top { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.mdetail-top .mthumb { border-radius: var(--r-lg); }
.mdetail-top .cap { margin-top: 8px; }
.model { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
.model-id { font-family: var(--mono); font-size: 13px; color: var(--text); letter-spacing: .02em; word-break: break-all; }
.model-status { display: inline-block; font-size: 12px; line-height: 1.6; border-radius: var(--pill); padding: 4px 14px; border: 1px solid var(--line); color: var(--mute); }
.spec > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.9; }
.spec > div:first-child { border-top: 1px solid var(--line); }
.spec dt { color: var(--mute); font-size: 13px; }
.model-sub { font-size: 12px; letter-spacing: .12em; color: var(--mute); margin: 28px 0 10px; }
.mdetail-top .model-sub:first-child { margin-top: 0; }
.model-eval { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.model-eval th, .model-eval td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.model-eval thead th { font-weight: 500; font-size: 12px; color: var(--mute); }
.model-eval tbody th { font-weight: 400; }
.model-eval td { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.model-text { font-size: 14.5px; }
.model-limits { font-size: 14.5px; }
.model-limits li { position: relative; padding-left: 1.1em; }
.model-limits li + li { margin-top: 4px; }
.model-limits li::before { content: ""; position: absolute; left: 0; top: .95em; width: 5px; height: 1px; background: var(--mute); }
.model-limits + .link-arrow { margin-top: 32px; }
.lab-hf { margin-top: 20px; }

/* モデルのページ: 実際に試した結果（枠は画像の上に % で重ねる。標識は青、損傷は赤） */
.lab-items { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); margin-top: clamp(36px, 5vw, 56px); }
.lab-item:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.lab-item figcaption { font-size: 14.5px; line-height: 1.9; margin-top: 14px; }
.lab-item:last-child:nth-child(odd) figcaption { margin-top: 0; }
.lab-kind { display: block; font-size: 12px; letter-spacing: .12em; color: var(--mute); margin-bottom: 4px; }
.lab-shot { --tone: var(--accent); position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.lab-shot--warn { --tone: var(--warn); }
.lab-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lab-box { position: absolute; border: 2px solid var(--tone); border-radius: 3px; }
.lab-box--gt, .lab-box--miss { border: 2px dashed #fff; }
.lab-tag { position: absolute; left: -2px; bottom: calc(100% + 4px); white-space: nowrap; font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1.6; color: #fff; background: var(--tone); padding: 0 6px; border-radius: 3px; }
.lab-box--r .lab-tag { left: auto; right: -2px; }
.lab-box--miss .lab-tag { font-family: var(--sans); background: var(--ink); }
.lab-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 13px; color: var(--mute); }
.lab-legend li { display: flex; align-items: center; gap: 8px; }
.lab-key { width: 22px; height: 14px; border-radius: 3px; border: 2px solid var(--warn); }
.lab-key--gt { border: 2px dashed var(--text); }
.lab-steps-head { max-width: 46em; margin-top: clamp(64px, 8vw, 104px); }
.lab-steps-head p { font-size: 14.5px; line-height: 1.9; color: var(--mute); margin-top: 10px; }
.lab-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); margin-top: 28px; }
.lab-steps .lab-shot { border-radius: var(--r-sm); }
.lab-time { font-family: var(--mono); font-size: 13px; margin-top: 12px; }
.lab-mode { font-size: 13.5px; color: var(--mute); }
.lab-how li { display: grid; grid-template-columns: 2.4em 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lab-how li:first-child { border-top: 1px solid var(--line); }
.lab-how-n { font-family: var(--mono); font-size: 13px; color: var(--mute); padding-top: 3px; }
.lab-how-t { font-weight: 600; font-size: 15.5px; }
.lab-how-d { font-size: 14.5px; line-height: 1.9; color: var(--mute); margin-top: 4px; }
.lab-window-wrap { margin-top: 32px; }
.lab-window { width: 100%; max-width: 440px; height: auto; display: block; }
.lab-window .lw-frame { fill: var(--alt); stroke: var(--text); stroke-width: 1; }
.lab-window .lw-road { fill: none; stroke: var(--mute); stroke-width: 1; }
.lab-window .lw-win { fill: none; stroke: var(--accent); stroke-width: 2; }
.lab-window .lw-label { font-family: var(--sans); font-size: 11px; fill: var(--accent); }
.lab-window .lw-sub { font-family: var(--sans); font-size: 10.5px; fill: var(--mute); }
@media (max-width: 900px) {
  .mdetail-top { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; }
  .model-eval th, .model-eval td { padding: 10px 8px; }
  .lab-items { grid-template-columns: 1fr; }
  .lab-item:last-child:nth-child(odd) { display: block; }
  .lab-item:last-child:nth-child(odd) figcaption { margin-top: 14px; }
}
@media (max-width: 600px) {
  .lab-steps { grid-template-columns: 1fr 1fr; }
  .lab-steps li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .mgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mpanel-body { padding: 12px 12px 14px; }
  .mpanel-target { font-size: 11px; letter-spacing: .06em; }
  .mpanel-name { font-size: 13.5px; line-height: 1.5; }
  .mpanel-line { font-size: 12.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .mpanel-foot { display: none; }
  .mthumb-tag { font-size: 10px; padding: 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .mpanel .mthumb img { transition: none; }
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); }
.sec:not(.sec--alt) .faq-item { background: var(--alt); border-color: transparent; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 18px 22px; font-size: 15px; font-weight: 500; line-height: 1.8; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; }
.faq-x { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(26,27,30,.06); margin-top: .1em; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; background: var(--text); transition: transform .4s var(--ease); }
.faq-x::before { left: 8px; top: 13.5px; width: 12px; height: 1px; } .faq-x::after { left: 13.5px; top: 8px; width: 1px; height: 12px; }
.faq-item[open] .faq-x::after { transform: scaleY(0); }
.faq-a { padding: 0 22px 20px; font-size: 14.5px; color: var(--mute); }
.faq-item[open] .faq-a { animation: faqIn .5s var(--ease) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Audiences (product) ---------- */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aud { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 44px); }
.aud h2 { margin-bottom: 14px; }
.aud > p:not(.label):not(.note) { font-size: 14.5px; color: var(--mute); }
.checks { margin-top: 20px; }
.checks li { padding: 10px 0 10px 24px; border-top: 1px solid var(--line); font-size: 14px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); }
.caution { margin-top: 20px; display: flex; gap: 14px; align-items: flex-start; font-size: 13px; line-height: 1.9; color: var(--mute); background: var(--white); border-radius: var(--r-md); padding: 16px 20px; }
.caution-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--warn); color: var(--warn); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; margin-top: .2em; }

/* ---------- Pillars (service points) ---------- */
.pillar-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.sec:not(.sec--alt) .pillar { background: var(--alt); }
.pillar-no { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--mute); display: block; margin-bottom: 28px; }
.pillar h2 { margin-bottom: 12px; }
.pillar p { font-size: 14.5px; color: var(--mute); }
.notfound { min-height: 60svh; }

/* ---------- Reveal ----------
   最初の画面に入っている要素は隠さない（ページの切り替えはクロスフェードの1段だけにする）。
   site.js が画面の外にある要素にだけ .wait を付け、画面に入ったら .in で出す。 */
.js .rv.wait { opacity: 0; transform: translateY(32px); }
.js .rv.wait.in { opacity: 1; transform: none; transition: opacity .8s ease-in-out calc(var(--d, 0) * .08s), transform .8s ease-in-out calc(var(--d, 0) * .08s); }
.js .rv-img.wait img { opacity: 0; transform: scale(1.04); }
.js .rv-img.wait.in img { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.6s var(--ease); }

/* ---------- View transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .3s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .5s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .nav a { padding: 6px 9px; font-size: 12.5px; } .hd-in { gap: 18px; } }
@media (max-width: 900px) {
  :root { --sec-y: clamp(64px, 14vw, 96px); }
  /* 狭い画面では写真と文字を分ける。写真は上に暗くせずに見せ、文字は下の黒地に置く */
  .hero-full { display: block; min-height: 0; --hero-img: min(62svh, 118vw); }
  .hero-full--short { --hero-img: min(50svh, 100vw); }
  .hero-full .bg { position: relative; inset: auto; z-index: 0; height: var(--hero-img); }
  .hero-full .bg::after, .hero-full--bright .bg::after { background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) calc(var(--hd-h) + 56px)); }
  .hero-full .wrap { padding-block: 32px 52px; }
  .hero-full .lead { color: rgba(255,255,255,.8); }
  .hero-full .h-hero, .hero-full .lead, .hero-full .label, .hero-full .crumbs { text-shadow: none; }
  .slide-nav { top: calc(var(--hero-img) - 46px); bottom: auto; }
  .js .rv.wait { transform: translateY(16px); }
  .js .rv.wait.in { transform: none; transition-duration: .55s; transition-delay: calc(var(--d, 0) * .05s); }
  .js .rv-img.wait.in img { transition-duration: .7s, 1s; }
  .nav, .hd-cta { display: none; } .burger { display: block; }
  .grid-2, .prod-below, .about-grid, .aud-grid, .svc-row, .svc-row--flip { grid-template-columns: 1fr; }
  .svc-row--flip .photo { order: 0; }
  .hero-full .wrap { grid-template-columns: 1fr; } .hero-full .cap { justify-self: start; text-align: left; }
  .steps, .steps--5, .steps--3 { grid-template-columns: 1fr 1fr; }
  .pillar-list, .post-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; } .article-side { position: static; }
  .ft-cols { grid-template-columns: 1fr; }
  .outputs { justify-self: start; }
  .karte-grid { grid-template-columns: 120px 1fr; }
  .sec-head { margin-bottom: 32px; }
  .rail-nav { display: none; }
  .prod-photo .btn { position: static; margin-top: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; line-height: 1.95; }
  :root { --hd-h: 60px; }
  .steps, .steps--5, .steps--3 { grid-template-columns: 1fr; }
  .stat-row { gap: 10px; } .stat { padding: 22px 20px; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .article-cta { grid-template-columns: 1fr; }
  .karte { padding: 16px 16px 14px; }
  .cta-row .btn { width: 100%; justify-content: space-between; }
  .toc { display: none; }
  .prose .table-wrap { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-radius: 0; }
  .prose table { min-width: 560px; font-size: 13.5px; line-height: 1.8; }
  .prose th, .prose td { padding: 10px 14px 10px 0; }
  .prose .table-wrap::after { content: "横にスクロールできます →"; display: block; font-size: 11px; color: var(--mute); margin-top: 8px; }
  .photo { border-radius: var(--r-md); }
  .band { height: 60vh; }
  .float-cta { bottom: calc(14px + env(safe-area-inset-bottom)); }
  /* touch targets */
  .ft-links { gap: 0 8px; padding: 12px 0; }
  .ft-links a { display: inline-block; padding: 13px 8px; font-size: 13px; }
  .crumbs ol { align-items: center; }
  .crumbs a, .crumbs [aria-current] { display: inline-block; padding: 8px 0; vertical-align: middle; }
  .crumbs [aria-current] { max-width: 52vw; }
  .link-arrow { padding-block: 10px; margin-top: 14px; }
  .ft { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .float-cta .btn { height: 44px; padding: 0 20px; font-size: 13px; }
  .slide-nav { top: calc(var(--hero-img) - 44px); bottom: auto; right: calc(var(--gutter) - 8px); gap: 2px; }
  .slide-dot { width: 36px; height: 36px; }
  .slide-dot::after { left: 15px; top: 15px; }
  .slide-dot svg { inset: 7px; width: 22px; height: 22px; }
  /* tables become stacked cards */
  .compare .table-wrap { overflow: visible; }
  .cmp { min-width: 0; background: transparent; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { background: var(--white); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 12px; border: 1px solid var(--line); }
  .cmp tbody th { width: auto; padding: 0 0 8px; border: 0; font-size: 12px; letter-spacing: .1em; }
  .cmp td { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cmp td:last-child { border-bottom: 0; padding-bottom: 0; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 11.5px; letter-spacing: .08em; color: var(--mute); margin-bottom: 2px; }
  /* compact karte */
  .karte-grid { grid-template-columns: 96px 1fr; gap: 14px; }
  .karte-photo { aspect-ratio: 1 / 1; }
  .karte-photo-tag { display: none; }
  .karte-fields > div { grid-template-columns: 36px 1fr; }
  .karte-map { height: 96px; }
  .karte-timeline li { font-size: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .rv-img img { opacity: 1 !important; transform: none !important; transition: none !important; }
  .band .bg img { transform: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .karte-state i { transition: none !important; }
  .faq-item[open] .faq-a { animation: none !important; }
  .rail-card, .btn .i, .link-arrow .i { transition: none !important; }
  .hd { transition: none; }
  .slides .slide.ken { animation: none; }
  .slide-dot.is-on svg { animation: none; stroke-dashoffset: 0; }
  .float-cta { transition: none; }
}

/* ---------- 設計図ふうの平面図（partials/plan.html） ----------
   細い線だけで描く。段階（data-step）で、記録→地図→確認→補修 の見た目に切り替える */
.plan { display: block; width: 100%; height: auto; color: #2B2C30; font-family: var(--mono); --paper: var(--alt); }
.plan text { font-size: 9px; letter-spacing: .06em; fill: currentColor; }
.plan .pl-grid line { stroke: currentColor; stroke-width: .5; opacity: .07; }
.plan .pl-ticks line, .plan .pl-frame, .plan .pl-crop path { fill: none; stroke: currentColor; stroke-width: .75; opacity: .45; }
.plan .pl-bld rect { fill: none; stroke: currentColor; stroke-width: .75; opacity: .5; }
.plan .pl-bld .pl-ghost { opacity: .2; }
.plan .pl-walk path { fill: none; stroke: currentColor; stroke-width: .75; opacity: .45; }
.plan .pl-edge path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.plan .pl-center path { fill: none; stroke: currentColor; stroke-width: .9; stroke-dasharray: 8 6; opacity: .65; }
.plan .pl-stop path { fill: none; stroke: currentColor; stroke-width: 2.2; opacity: .7; }
.plan .pl-zebra rect { fill: currentColor; opacity: .5; }
.plan .pl-label text { opacity: .7; }
.plan .pl-north circle { fill: none; stroke: currentColor; stroke-width: .75; }
.plan .pl-north path { fill: currentColor; }
.plan .pl-north text { text-anchor: middle; font-size: 8px; }
.plan .pl-scale rect { fill: none; stroke: currentColor; stroke-width: .75; }
.plan .pl-scale rect.f { fill: currentColor; }
.plan .pl-scale text, .plan .pl-title text { font-size: 8px; }
.plan .pl-title rect, .plan .pl-title line { fill: none; stroke: currentColor; stroke-width: .75; opacity: .6; }
.plan .pl-others circle { fill: var(--paper); stroke: currentColor; stroke-width: 1.2; }
.plan .pl-others text { font-size: 7.5px; opacity: .7; }
.plan .pl-dot { fill: var(--warn); transition: fill .5s var(--ease); }
.plan .pl-cross { fill: none; stroke: var(--warn); stroke-width: 1; transition: stroke .5s var(--ease); }
.plan .pl-ring { fill: none; stroke: var(--warn); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.plan .pl-check { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 2.5; }
.plan .pl-patch { color: var(--done); stroke: var(--done); stroke-width: 1; }
.plan .pl-lead path { fill: none; stroke: currentColor; stroke-width: .75; }
.plan .pl-lead circle { fill: currentColor; }
.plan .pl-tag rect { fill: var(--paper); stroke: currentColor; stroke-width: .75; }
.plan .pl-tag-id { font-weight: 600; }
.plan .pl-tag-s { display: none; font-weight: 600; }
.plan .pl-tag .s1 { fill: var(--warn); } .plan .pl-tag .s3 { fill: var(--accent); } .plan .pl-tag .s4 { fill: var(--done); }
.plan .pl-others, .plan .pl-check, .plan .pl-patch, .plan .pl-ring { opacity: 0; transition: opacity .5s var(--ease); }
[data-step="1"] .plan .pl-ring { opacity: 1; animation: pl-pulse 1.8s ease-out infinite; }
[data-step="2"] .plan .pl-others, [data-step="3"] .plan .pl-others, [data-step="4"] .plan .pl-others { opacity: 1; }
[data-step="3"] .plan .pl-check { opacity: 1; }
[data-step="4"] .plan .pl-patch { opacity: 1; }
[data-step="4"] .plan .pl-dot { fill: var(--done); }
[data-step="4"] .plan .pl-cross { stroke: var(--done); }
[data-step="1"] .plan .s1, [data-step="2"] .plan .s2, [data-step="3"] .plan .s3, [data-step="4"] .plan .s4 { display: inline; }
@keyframes pl-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { [data-step="1"] .plan .pl-ring { animation: none; opacity: .6; } .plan .pl-others, .plan .pl-check, .plan .pl-patch { transition: none; } }

/* カルテの中の小さな地図: 図の周りの枠や文字は省き、道路と記録だけを見せる */
.karte-map .plan { width: 100%; height: 100%; }
.karte-map .plan .pl-hide-mini, .karte-map .plan .pl-ticks, .karte-map .plan .pl-frame, .karte-map .plan .pl-crop, .karte-map .plan .pl-grid { display: none; }

/* ---------- 開いて読む（details.more）: 見たい人だけが詳しく読めるように ---------- */
.more { margin-top: 18px; }
.more-sum { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; letter-spacing: .04em; padding: 6px 0; min-height: 44px; }
.more-sum::-webkit-details-marker { display: none; }
.more-i { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease); }
.more-i::before, .more-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: currentColor; transition: transform .4s var(--ease); }
.more-i::after { transform: rotate(90deg); }
.more[open] > .more-sum .more-i::after { transform: rotate(0deg); }
.more-sum:hover .more-i { background: var(--accent); border-color: var(--accent); color: #fff; }
.more-sum:hover { color: var(--accent-ink); }
.on-dark .more-sum:hover { color: var(--accent-on-dark); }
.more[open] > .more-body { animation: more-in .45s var(--ease) both; }
@keyframes more-in { from { opacity: 0; transform: translateY(-6px); } }
.more--block { margin-top: clamp(32px, 4vw, 48px); padding-top: 18px; border-top: 1px solid var(--line); }
.more--block > .more-sum { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .more[open] > .more-body { animation: none; } .more-i, .more-i::before, .more-i::after { transition: none; } }

/* ---------- よくある質問（partials/faq-flow.html）: 3段の質問が左右に流れ、選ぶと下に答えが出る ---------- */
.faqx-sec .sec-head { margin-bottom: clamp(28px, 3.5vw, 44px); }
.faqx-sec--page { padding-top: clamp(24px, 3vw, 40px); }
.faqx-sec--page .wrap > .lead { margin-bottom: 28px; }
.faqx-rows { display: grid; gap: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.faqx-track { display: flex; gap: 12px; width: max-content; }
.js .faqx-row--fwd .faqx-track { animation: faqx-fwd var(--dur, 60s) linear infinite; }
.js .faqx-row--rev .faqx-track { animation: faqx-rev var(--dur, 60s) linear infinite; }
.faqx-row:hover .faqx-track, .faqx-row:focus-within .faqx-track, .faqx.hold .faqx-track { animation-play-state: paused; }
@keyframes faqx-fwd { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes faqx-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.faqx-q { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--pill); background: var(--white); border: 1px solid var(--line); font-size: 14px; letter-spacing: .02em; color: var(--text); white-space: nowrap; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.sec:not(.sec--alt) .faqx-q { background: var(--alt); border-color: transparent; }
.faqx-q:hover { border-color: var(--accent); color: var(--accent-ink); }
.faqx-q.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.faqx-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--mute); }
.faqx-q.is-on .faqx-tag { color: rgba(255,255,255,.62); }
.faqx-panel { margin-top: clamp(24px, 3vw, 36px); max-width: 820px; min-height: 9em; }
.faqx-a { background: var(--white); border-radius: var(--r-md); padding: clamp(22px, 3vw, 32px); }
.sec:not(.sec--alt) .faqx-a { background: var(--alt); }
.js .faqx-a:not(.is-on) { display: none; }
.faqx-a + .faqx-a { margin-top: 12px; }
.js .faqx-a + .faqx-a { margin-top: 0; }
.faqx-a.is-on { animation: more-in .4s var(--ease) both; }
.faqx-aq { font-weight: 600; font-size: 15.5px; line-height: 1.8; display: flex; gap: 14px; align-items: baseline; }
.faqx-aq .num { flex: none; }
.faqx-at { margin-top: 10px; font-size: 14.5px; line-height: 2; color: var(--mute); }
@media (max-width: 560px) { .faqx-q { font-size: 13.5px; padding: 10px 18px; } .faqx-rows { gap: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .js .faqx-row--fwd .faqx-track, .js .faqx-row--rev .faqx-track { animation: none; }
  .faqx-rows { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .faqx-track { flex-wrap: wrap; width: auto; }
  .faqx-q[aria-hidden="true"] { display: none; }
  .faqx-a.is-on { animation: none; }
}
.on-dark .more--block { border-top-color: rgba(245,245,243,.14); }
.more--block > .prod-below { margin-top: 28px; }

/* ---------- 検知モデルのサンプル（受託のページ） ---------- */
.sample { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.sample-main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-card); }
.sample-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sample-main img + img { display: none; }
.sample-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.sample-thumb { flex: 1; border-radius: var(--r-sm); overflow: hidden; opacity: .5; outline: 1.5px solid transparent; outline-offset: 2px; transition: opacity .3s var(--ease), outline-color .3s var(--ease); cursor: pointer; padding: 0; }
.sample-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sample-thumb:hover { opacity: .8; }
.sample-thumb.is-on { opacity: 1; outline-color: var(--on-dark); }
.sample-cap { margin-top: 12px; font-size: 12px; color: var(--on-dark-3); }
.sample-case { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.7; margin-bottom: 18px; }
.on-dark .spec { border-top: 1px solid rgba(245,245,243,.14); }
.on-dark .spec > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-top: 0; border-bottom: 1px solid rgba(245,245,243,.14); font-size: 14px; line-height: 1.85; }
.on-dark .spec dt { color: var(--on-dark-3); font-size: 12.5px; letter-spacing: .06em; padding-top: 2px; }
.on-dark .spec dd { color: var(--on-dark-2); }
.sample-crops { display: flex; gap: 12px; margin-top: 18px; }
.sample-crops figure { flex: 1; }
.sample-crops img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); display: block; background: var(--ink-card); }
.sample-crops figcaption { font-size: 12px; color: var(--on-dark-3); margin-top: 6px; }
.pipe-wrap { margin-top: clamp(40px, 5vw, 64px); background: var(--alt); border-radius: var(--r-lg); padding: clamp(14px, 2vw, 24px); color: #2B2C30; }
.pipe-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--mute); padding: 2px 4px 12px; }
.pipe { display: block; width: 100%; height: auto; font-family: var(--mono); }
.pipe text { fill: currentColor; }
.pipe .pp-frame rect, .pipe .pp-frame line, .pipe .pp-crop path { fill: none; stroke: currentColor; stroke-width: .75; opacity: .4; }
.pipe .pp-box { fill: none; stroke: currentColor; stroke-width: 1; }
.pipe .pp-ghost { fill: none; stroke: currentColor; stroke-width: .75; opacity: .22; }
.pipe .pp-rule { stroke: currentColor; stroke-width: .75; opacity: .35; }
.pipe .pp-no { font-size: 11px; opacity: .6; }
.pipe .pp-t { font-size: 13px; font-family: var(--sans); font-weight: 600; }
.pipe .pp-sub { font-size: 10px; letter-spacing: .08em; opacity: .65; }
.pipe .pp-lab { font-size: 10px; font-family: var(--sans); }
.pipe .pp-draw path, .pipe .pp-draw rect, .pipe .pp-draw circle { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.pipe .pp-draw .thin, .pipe .pp-draw .thin path { stroke-width: .75; opacity: .7; }
.pipe .pp-draw .hit { stroke: var(--accent); stroke-width: 1.6; }
.pipe .pp-draw .dot { fill: var(--accent); stroke: none; }
.pipe .pp-draw .mark rect, .pipe .pp-draw .mark circle { fill: var(--accent); stroke: none; }
.pipe .pp-arrow path { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.example { background: var(--ink-card); border-radius: var(--r-md); padding: 22px 24px; }
.example h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.example p { font-size: 13.5px; line-height: 1.9; color: var(--on-dark-2); }
@media (max-width: 900px) {
  .sample, .examples { grid-template-columns: 1fr; }
  .pipe-wrap { overflow-x: auto; }
  .pipe { min-width: 720px; }
}
.sample-about { font-size: 14px; line-height: 2; color: var(--on-dark-2); margin-bottom: 18px; }
.sample-main img.is-on { display: block; }
.js .sample-main img { display: none; }
.js .sample-main img.is-on { display: block; }
.sample-main img:first-child { display: block; }
.js .sample-main img:first-child:not(.is-on) { display: none; }
.on-dark .spec--more { border-top: 0; }
.faqx-row--static .faqx-track { flex-wrap: wrap; width: auto; }
.faqx-rows:has(.faqx-row--static) { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }

/* ---------- トップ「考えていること」: 大きな写真、設計図ふうの図、写真つきの3項目 ---------- */
.mf-head { align-items: end; }
.mf-head .lead { max-width: 34em; }
.mf-photo { margin-top: clamp(40px, 5vw, 64px); position: relative; }
.mf-photo img { aspect-ratio: 21 / 9; }
.mf-photo figcaption { position: absolute; right: 18px; bottom: 14px; font-size: 11px; color: rgba(255,255,255,.8); letter-spacing: .04em; }
.mf-data { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.mf-chart { background: var(--alt); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); }
.mf-chart-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--mute); padding-bottom: 14px; }
.mf-chart-head span:last-child { font-family: var(--sans); letter-spacing: .04em; color: var(--text); }
.mf-chart .cap { margin-top: 12px; }
.mf-body { font-size: clamp(15px, 1.2vw, 16.5px); line-height: 2.1; color: var(--mute); }
.agechart { display: block; width: 100%; height: auto; font-family: var(--mono); color: #2B2C30; }
.agechart text { fill: currentColor; font-size: 10px; letter-spacing: .04em; }
.agechart .ac-grid line { stroke: currentColor; stroke-width: .6; opacity: .18; }
.agechart .ac-grid text { text-anchor: middle; opacity: .6; font-size: 9px; }
.agechart .ac-crop path { fill: none; stroke: currentColor; stroke-width: .75; opacity: .45; }
.agechart .ac-half { stroke: currentColor; stroke-width: .75; stroke-dasharray: 3 3; opacity: .55; }
.agechart .ac-half-t { font-size: 9px; opacity: .7; }
.agechart .ac-lab { font-family: var(--sans); font-size: 11px; }
.agechart .ac-track { fill: none; stroke: currentColor; stroke-width: .6; opacity: .3; }
.agechart .ac-bar { fill: currentColor; transform-box: fill-box; transform-origin: left center; transition: transform 1.1s var(--ease); }
.agechart .ac-bar.is-key { fill: var(--accent); }
.agechart .ac-val { font-size: 12px; font-weight: 500; }
.agechart .ac-val.is-key { fill: var(--accent-ink); }
.js .mf-chart:not(.in) .ac-bar { transform: scaleX(0); }
.mf-values { margin-top: clamp(64px, 8vw, 112px); }
.mf-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.mf-item:nth-child(2) { margin-top: clamp(0px, 5vw, 64px); }
.mf-item .photo { margin-bottom: 20px; }
.mf-item .num { display: block; margin-bottom: 8px; }
.mf-item h3 { margin-bottom: 10px; }
.mf-item p { font-size: 14.5px; line-height: 2; color: var(--mute); }
@media (max-width: 900px) {
  .mf-data { grid-template-columns: 1fr; }
  .mf-photo img { aspect-ratio: 16 / 10; }
  .mf-list { grid-template-columns: 1fr; gap: 36px; }
  .mf-item:nth-child(2) { margin-top: 0; }
  .mf-item .photo { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .agechart .ac-bar { transition: none; } .js .mf-chart:not(.in) .ac-bar { transform: none; } }

/* ---------- キロポストの設計図（partials/kp-fig.html。キロポストのページ・ホーム・サービス一覧） ---------- */
.kpf { display: block; width: 100%; height: auto; font-family: var(--mono); color: #2B2C30; }
.kpf text { fill: currentColor; font-size: 11px; letter-spacing: .04em; }
.kpf .kpf-grid { fill: none; stroke: currentColor; stroke-width: .5; opacity: .07; }
.kpf .kpf-frame { fill: none; stroke: currentColor; stroke-width: .75; opacity: .45; }
.kpf .kpf-div { fill: none; stroke: currentColor; stroke-width: .75; opacity: .3; }
.kpf .kpf-sec { font-size: 11px; letter-spacing: .14em; opacity: .6; }
.kpf .kpf-t { font-family: var(--sans); font-size: 11.5px; opacity: .8; }
.kpf .kpf-note { font-family: var(--sans); font-size: 11px; opacity: .55; }
.kpf .kpf-road path { fill: none; stroke: currentColor; }
.kpf .kpf-road .edge { stroke-width: 1.3; }
.kpf .kpf-road .line { stroke-width: .9; opacity: .7; }
.kpf .kpf-road .dash { stroke-width: .9; opacity: .6; stroke-dasharray: 22 30; }
.kpf .kpf-road .barrier { stroke-width: .75; opacity: .45; }
.kpf .kpf-cl { fill: none; stroke: currentColor; stroke-width: .75; opacity: .55; stroke-dasharray: 26 5 3 5; }
.kpf .kpf-bg { fill: var(--alt); }
.kpf .kpf-rail { fill: none; stroke: currentColor; stroke-width: .9; }
.kpf .kpf-arrow { fill: none; stroke: currentColor; stroke-width: .9; opacity: .6; stroke-linecap: round; stroke-linejoin: round; }
.kpf .kpf-plate rect { fill: var(--alt); stroke: currentColor; stroke-width: .9; }
.kpf .kpf-plate circle { fill: currentColor; }
.kpf .kpf-plate text { font-size: 12px; }
.kpf .kpf-plate.is-key rect { stroke: var(--accent); stroke-width: 1.3; }
.kpf .kpf-plate.is-key text { fill: var(--accent); }
.kpf .kpf-dim path { fill: none; stroke: currentColor; stroke-width: .75; opacity: .7; }
.kpf .kpf-dim text { font-size: 11px; }
.kpf .kpf-lead { fill: none; stroke: currentColor; stroke-width: .75; opacity: .6; }
.kpf .kpf-detail { fill: none; stroke: currentColor; stroke-width: .75; stroke-dasharray: 3 3; opacity: .6; }
.kpf .kpf-proj, .kpf .kpf-link { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 4; }
.kpf .kpf-sq { fill: none; stroke: var(--accent); stroke-width: .75; }
.kpf .kpf-ring { fill: none; stroke: var(--accent); stroke-width: .75; opacity: .55; }
.kpf .kpf-dot { fill: var(--accent); }
.kpf .kpf-key { fill: var(--accent); opacity: 1; }
.kpf .kpf-scale path { fill: none; stroke: currentColor; stroke-width: .9; }
.kpf .kpf-el path { fill: none; stroke: currentColor; stroke-width: 1; }
.kpf .kpf-el .thin { stroke-width: .6; opacity: .4; }
.kpf .kpf-el .fill { fill: var(--alt); stroke: none; }
.kpf .kpf-el .plate { fill: #fff; stroke: currentColor; stroke-width: 1.2; }
.kpf .kpf-el .plate-t { font-size: 28px; letter-spacing: .02em; }
.kpf .kpf-rec .rule { fill: none; stroke: currentColor; stroke-width: .6; opacity: .3; }
.kpf .kpf-rec .rh { font-size: 10.5px; opacity: .55; }
.kpf .kpf-rec .ghost { opacity: .4; }
.kpf .kpf-rec .v { font-size: 12.5px; }
.kpf .kpf-rec .sans { font-family: var(--sans); }
.kpf .kpf-rec .key-bar { fill: var(--accent); }
/* 出現: 中心線の点と記録の行は、図が見えてから（data-kpf の要素に .in が付いたら） */
.kpf .kpf-proj, .kpf .kpf-link, .kpf .kpf-dot, .kpf .kpf-rec .key-bar, .kpf .kpf-key { transition: opacity .6s var(--ease) .5s; }
.js [data-kpf]:not(.in) .kpf .kpf-proj, .js [data-kpf]:not(.in) .kpf .kpf-link, .js [data-kpf]:not(.in) .kpf .kpf-dot,
.js [data-kpf]:not(.in) .kpf .kpf-ring, .js [data-kpf]:not(.in) .kpf .kpf-rec .key-bar { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .kpf .kpf-proj, .kpf .kpf-link, .kpf .kpf-dot, .kpf .kpf-rec .key-bar, .kpf .kpf-key { transition: none; } }
.bp-fig { background: var(--alt); border-radius: var(--r-lg); padding: clamp(14px, 2vw, 24px); margin: 0; }

/* ---------- 写真に重ねる検出の枠（build.py の box_overlay）。画像の画素座標で描き、cover と同じに切り抜く ---------- */
.photo { position: relative; }
.pbox { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero-full .bg .pbox { z-index: 1; }
.pbox-r { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.pbox-accent .pbox-r { stroke: var(--accent); }
.pbox-warn .pbox-r { stroke: var(--warn); }
.pbox-accent .pbox-t { fill: var(--accent); }
.pbox-warn .pbox-t { fill: var(--warn); }
.pbox text { fill: #fff; font-family: var(--sans); font-weight: 600; letter-spacing: .04em; }
.photo:has(.pbox):hover img { transform: none; }
/* 枠は写真と同じ動きで出す（写真だけ縮むと、読み込み中に枠がずれる） */
.js .rv-img.wait .pbox { opacity: 0; transform: scale(1.04); }
.js .rv-img.wait.in .pbox { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
@media (max-width: 900px) { .js .rv-img.wait.in .pbox { transition-duration: .7s, 1s; } }
@media (prefers-reduced-motion: reduce) { .js .rv-img .pbox { opacity: 1; transform: none; transition: none; } }
/* 「詳しく見る」の中身: 項目と説明の表 */
.spec--detail { margin-top: 4px; }
.spec--detail > div { grid-template-columns: 8em 1fr; font-size: 14px; }
.spec--detail > div:first-child { border-top: 0; }
@media (max-width: 600px) { .spec--detail > div { grid-template-columns: 1fr; gap: 2px; } }

