/* Mconnect（エムコネクト）サイト v5 */
:root {
  --bg: #f4f2ed;         /* ウォームホワイト */
  --ink: #202824;        /* チャコール */
  --ink-2: #454d49;
  --ink-3: #5f6763;
  --green: #234a42;      /* 主操作・ブランド */
  --green-2: #19382f;
  --stone: #e5e3dc;      /* 明るい補助面 */
  --stage: #e7e6df;      /* 模型の舞台（静止画の床色に合わせる。ビルド時に上書き） */
  --stage-sp: #e7e5de;   /* スマホ・タブレット用の静止画の床色 */
  --accent: #a64b2a;     /* テラコッタ：印だけに使う */
  --line: rgba(32, 40, 36, 0.16);
  --on-green: #f4f2ed;
  --on-green-2: #c9d6d1;
  --index-h: 116px;
  --note-h: 0px;
  --header-h: 76px;
  --shell: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --font: "Mconnect Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-system: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
/* Noto Sans JP（SIL OFL 1.1）をサイトの文字だけに絞ったもの。太さ400〜700の可変フォント */
@font-face {
  font-family: "Mconnect Noto Sans JP";
  src: url("fonts/noto-sans-jp-sub.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
[data-mode="test"] { --note-h: 28px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-feature-settings: "palt" 1; letter-spacing: 0.02em; }
h1 span, h2 span, h3 span { display: inline-block; } /* 句の途中で改行しない */
p, li, figcaption, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.pc { display: inline; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--green); }
.no { font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* 確認用の注記（公開版には入れない） */
.review-note {
  margin: 0; height: var(--note-h);
  padding: 5px var(--gutter);
  background: var(--ink); color: #f4f2ed;
  font-size: 12px; line-height: 1.5; text-align: center;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ---- ヘッダー ---- */
.site-header { position: relative; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header.is-overlay { position: absolute; top: var(--note-h); left: 0; right: 0; background: transparent; border-bottom: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-name { display: flex; flex-direction: column; font-size: 17px; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; }
.brand-name small { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--ink-3); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; padding-block: 10px; }
.nav a:not(.btn):hover, .nav a[aria-current]:not(.btn) { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.menu { display: none; position: relative; }
.menu summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(300px, calc(100vw - 32px));
  display: flex; flex-direction: column; padding: 8px; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(32, 40, 36, 0.12);
}
.menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; font-weight: 500; border-radius: 6px; }
.menu-panel a:not(.btn):hover { background: var(--bg); }
.menu-panel .btn { margin-top: 6px; }

/* ---- ボタン・リンク ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border-radius: 6px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; white-space: nowrap; cursor: pointer; font-family: inherit;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-quiet { border-color: rgba(35, 74, 66, 0.4); color: var(--green); background: transparent; }
.btn-quiet:hover { background: rgba(35, 74, 66, 0.06); }
.btn-light { background: var(--on-green); color: var(--green); }
.btn-light:hover { background: #fff; }
.btn:disabled { opacity: 0.65; cursor: wait; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--green); font-weight: 600; font-size: 15px;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
}
.link-arrow::after { content: "→"; text-decoration: none; display: inline-block; }

/* ---- ホーム：最初の画面〜説明の入口（模型の舞台を固定し、上を文章が流れる） ---- */
.intro { position: relative; }
.intro-stage {
  position: sticky; top: 0; z-index: 0;
  height: 100svh; margin-bottom: -100svh;
  background: var(--stage);
  overflow: hidden;
}
.intro-stage picture, .intro-stage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-stage img { object-fit: cover; object-position: 60% 50%; }
.stage-scene { will-change: opacity; }
.stage-live { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.5s ease; }
.stage-live.is-on { opacity: 1; }
.stage-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.stage-pins .pin { opacity: 0; transition: opacity 0.2s linear; }
/* 見出しの読みやすさ：左側だけ紙の色を薄くかける */
.intro-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--stage) 86%, transparent) 0%,
    color-mix(in srgb, var(--stage) 70%, transparent) 30%,
    color-mix(in srgb, var(--stage) 0%, transparent) 54%);
}

.hero { position: relative; z-index: 1; display: flex; align-items: center; min-height: calc(100svh - var(--note-h) - var(--index-h)); padding-top: var(--header-h); }
.hero-copy { padding-block: 24px 56px; }
.hero-copy > * { max-width: 600px; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: calc(var(--index-h) + var(--note-h) + 14px); z-index: 2; margin: 0; text-align: right; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.hero-caption span, .hero-caption a { display: inline-block; }
.hero-caption a { margin-left: 1em; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hero-caption a::after { content: " →"; }
.hero { pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-area { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hero-area-mark { font-weight: 700; color: var(--ink); padding-right: 12px; border-right: 1px solid var(--ink-3); line-height: 1; }
.hero-area-mark::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
h1 { margin: 0; font-weight: 600; line-height: 1.26; }
.hero h1 { font-size: clamp(38px, 4.9vw, 76px); }
.hero h1 span, .hero-lead span { display: block; }
.hero-lead { margin: 28px 0 0; font-size: 18px; line-height: 1.9; color: var(--ink-2); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; }
.hero-hint { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
/* PC：長い説明の途中でも相談へ進めるボタン（スマホは下部の固定バー） */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 15;
  box-shadow: 0 8px 24px rgba(32, 40, 36, 0.18);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, background-color 0.15s;
}
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* 主なご相談の目次（最初の画面の下端） */
.hero-index { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line); }
.hero-index-inner { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: var(--index-h); }
.hero-index-title { margin: 0; padding: 24px 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-2); }
.hero-index ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.hero-index a {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline;
  height: 100%; padding: 22px 20px 24px;
  border-left: 1px solid var(--line);
  text-decoration: none;
}
.hero-index a:hover .name { text-decoration: underline; text-underline-offset: 5px; }
.hero-index .name { font-size: 17px; font-weight: 600; line-height: 1.5; }
.hero-index .sub { grid-column: 2; font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }

/* 説明の入口 */
.focus-intro { position: relative; z-index: 1; display: flex; align-items: center; min-height: 100svh; }
.focus-head > * { max-width: 520px; }
.focus-head h2 { margin: 0; font-size: clamp(32px, 3.9vw, 56px); font-weight: 600; line-height: 1.3; }
.focus-lead { margin: 20px 0 0; font-size: 16px; color: var(--ink-2); }

/* ---- 主力3分野 ---- */
.focus { position: relative; z-index: 1; background: var(--bg); padding-top: clamp(24px, 3vw, 48px); }
.chapter { padding-block: clamp(48px, 7vw, 96px); }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head fig" "detail fig";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.chapter-head { grid-area: head; }
.chapter-figure { grid-area: fig; margin: 0; align-self: center; }
.chapter-detail { grid-area: detail; }
.rail { display: flex; gap: 22px; margin: 0 0 44px; padding: 0; list-style: none; font-size: 13px; color: var(--ink-3); }
.rail li { display: flex; gap: 6px; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.rail li span { font-variant-numeric: tabular-nums; }
.rail li[aria-current] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.chapter-service { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 16px; font-weight: 700; color: var(--green); }
.chapter-service .no { font-size: 14px; }
.chapter h3 { margin: 10px 0 0; font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; line-height: 1.3; }
.chapter-body { margin: 26px 0 0; max-width: 34em; color: var(--ink-2); line-height: 1.95; }
.chapter-list, .check-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 34em; }
.chapter-list li, .check-list li { padding: 11px 0 11px 20px; border-bottom: 1px solid var(--line); font-size: 15px; position: relative; }
.chapter-list li::before, .check-list li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 8px; height: 1px; background: var(--ink-3); }
.chapter-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; }
.figure-frame { position: relative; background: var(--stage); }
.figure-frame img { width: 100%; aspect-ratio: 4 / 3; }
.chapter-figure figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }

/* 模型上の注記：点と短い引き出し線 */
.pin { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; }
.pin::before {
  content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.pin::after {
  content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 1px; background: var(--ink);
  transform-origin: 0 0; transform: rotate(-45deg);
}
.pin > span {
  position: absolute; left: 17px; bottom: 17px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.pin-left::after { transform: rotate(-135deg); }
.pin-left > span { left: auto; right: 17px; }

/* ---- 共通のセクション ---- */
.section { position: relative; z-index: 1; background: var(--bg); padding-block: clamp(72px, 9vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; line-height: 1.32; }
.section-lead { margin: 18px 0 0; color: var(--ink-2); }
.section-more { margin: 28px 0 0; }

/* できること一覧（ホーム） */
.svc-index { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); }
.svc-index-group h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
.svc-index ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.svc-index-group:last-child ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.svc-index li { border-bottom: 1px solid var(--line); }
.svc-index a {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline;
  padding: 16px 0 18px; text-decoration: none;
}
.svc-index a::after { content: "→"; color: var(--green); font-weight: 600; transition: transform 0.15s; }
.svc-index a:hover::after { transform: translateX(3px); }
.svc-index a:hover .name { text-decoration: underline; text-underline-offset: 5px; }
.svc-index .name { font-size: 17px; font-weight: 600; line-height: 1.5; }
.svc-index .short { grid-column: 2; font-size: 13.5px; color: var(--ink-3); line-height: 1.65; margin-top: 2px; }

/* 役割の図 */
.roles-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.roles-text h2 { margin: 0 0 22px; font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; line-height: 1.32; }
.roles-text p { margin: 0 0 14px; color: var(--ink-2); max-width: 34em; }
.roles-diagram { margin: 0; padding: clamp(24px, 3vw, 40px); background: var(--stage); }
.roles-diagram ol { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: stretch; gap: 36px; margin: 0; padding: 0; list-style: none; position: relative; }
.node { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 150px; padding: 18px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.node:not(:last-child)::after {
  content: ""; position: absolute; right: -30px; top: 50%; width: 24px; height: 2px; background: var(--ink-3);
}
.node:not(:last-child)::before {
  content: ""; position: absolute; right: -31px; top: calc(50% - 4px); width: 8px; height: 8px;
  border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: rotate(45deg);
}
.node-hub { background: var(--green); border-color: var(--green); color: var(--on-green); }
.node-title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.node-sub { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.node-hub .node-sub { color: var(--on-green-2); }
.roles-diagram figcaption { margin-top: 18px; font-size: 13px; color: var(--ink-2); }

/* ご依頼の流れ */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { padding-top: 18px; border-top: 2px solid var(--ink); }
.step-no { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 6px 0 8px; font-size: 19px; font-weight: 600; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }
.cost-note { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cost-note h3 { margin: 0; font-size: 16px; font-weight: 700; }
.cost-note p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 46em; }

/* よくある質問（開かなくても読める） */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
.faq-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.faq-list > div { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.faq-list dt { font-weight: 700; font-size: 16px; line-height: 1.6; }
.faq-list dt::before { content: "Q"; margin-right: 10px; color: var(--accent); font-weight: 700; }
.faq-list dd { margin: 8px 0 0 0; font-size: 15px; color: var(--ink-2); }

/* 相談の帯とフッター（深いグリーンでまとめる） */
.cta-band { position: relative; z-index: 1; background: var(--green); color: var(--on-green); padding-block: clamp(64px, 8vw, 112px); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.cta-band .kicker { color: var(--on-green-2); }
.cta-band h2 { margin: 0; font-size: clamp(28px, 3.4vw, 48px); font-weight: 600; line-height: 1.35; }
.cta-text p { margin: 20px 0 0; color: var(--on-green-2); max-width: 36em; }
.cta-actions p { margin: 14px 0 0; font-size: 14px; color: var(--on-green-2); }
.cta-actions .btn { width: 100%; }
.cta-mail a { color: var(--on-green); }
.site-footer { position: relative; z-index: 1; background: var(--green-2); color: var(--on-green-2); padding-block: 56px 28px; font-size: 14px; }
.site-footer .brand-name, .site-footer a { color: var(--on-green); }
.site-footer .brand-name small { color: var(--on-green-2); }
.site-footer .brand img { background: #fff; border-radius: 4px; padding: 2px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 40px; }
.footer-brand p { margin: 16px 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-facts { margin: 0; display: grid; gap: 10px; }
.footer-facts div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.footer-facts dt { color: var(--on-green-2); }
.footer-facts dd { margin: 0; color: var(--on-green); }
.footer-other { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 32px; font-size: 13.5px; }
.footer-other span { color: var(--on-green-2); }
.footer-other a { color: var(--on-green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(244, 242, 237, 0.18); }

/* ---- 下層ページの見出し ---- */
.page-head { background: var(--stage); overflow: hidden; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: 420px; }
.page-head-text { padding-block: 48px 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.page-head h1, .contact-head h1, .prose-page h1, .status-page h1 { font-size: clamp(32px, 3.6vw, 52px); }
.page-lead { margin: 18px 0 0; font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; line-height: 1.6; font-feature-settings: "palt" 1; }
.page-lead span { display: inline-block; }
.page-sub { margin: 16px 0 0; color: var(--ink-2); max-width: 36em; }
.page-area { display: flex; align-items: center; gap: 4px; margin: 22px 0 0; font-size: 14px; color: var(--ink-2); }
.page-head-figure { margin: 0; align-self: stretch; position: relative; min-height: 280px; }
.page-head-note { align-self: center; justify-self: end; display: grid; gap: 10px; padding: 32px; }
.page-head-note span { display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; color: var(--ink-3); font-feature-settings: "palt" 1; }
.page-head-note span::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.page-head-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }

/* ---- できることページ ---- */
.services-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-block: clamp(48px, 6vw, 88px); }
.services-toc { position: sticky; top: 24px; align-self: start; }
.toc-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
.toc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.toc-list a { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.toc-list a:hover, .toc-list a[aria-current] { color: var(--green); font-weight: 700; }
.toc-list a[aria-current] .no { color: var(--accent); }
.svc { padding-block: 0 clamp(56px, 7vw, 96px); scroll-margin-top: 16px; }
.svc + .svc { padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.svc-tag { display: flex; gap: 12px; align-items: baseline; margin: 0; font-size: 14px; color: var(--ink-3); }
.svc h2 { margin: 6px 0 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.3; }
.svc-lead { margin: 16px 0 0; max-width: 40em; color: var(--ink-2); }
.svc-figure { margin: 28px 0 0; max-width: 760px; background: var(--stage); }
.svc-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-figure figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--ink-3); background: var(--bg); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 32px; }
.svc-grid h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--green); }
.svc-grid h3 + p, .svc-grid .example { margin: 8px 0 22px; }
.svc-grid .check-list { margin-top: 10px; }
.example { padding: 14px 18px; background: #fff; border-left: 3px solid var(--accent); font-size: 15px; }
.svc-note { font-size: 13.5px; color: var(--ink-3); }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.link-top { font-size: 14px; color: var(--ink-3); }
.not-sure { margin-top: 24px; padding: clamp(28px, 4vw, 48px); background: var(--stage); }

/* ---- 屋上・陸屋根の防水 ---- */
.page-head h1 span { display: inline-block; }
.page-head .hero-actions { margin-top: 28px; }
.sign-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.sign-list li { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.sign-list h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.sign-list h3::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.sign-list p { margin: 0; font-size: 15px; color: var(--ink-2); }
.type-list { margin: 0; border-top: 1px solid var(--ink); }
.type-list div { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.type-list dt { font-size: 18px; font-weight: 700; }
.type-list dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.roles-diagram img { width: 100%; }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* LINE（アカウントを載せたときだけ表示） */
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05b34c; }
.line-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 0; font-size: 14px; color: var(--ink-2); }
.cta-actions .btn-line { margin-top: 10px; }
.not-sure h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
.not-sure p { margin: 12px 0 24px; color: var(--ink-2); }

/* ---- Mconnectについて ---- */
.point-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.point-list li { padding-top: 18px; border-top: 2px solid var(--ink); }
.point-list h3 { margin: 6px 0 8px; font-size: 19px; font-weight: 600; }
.point-list p { margin: 0; font-size: 15px; color: var(--ink-2); }
.operator-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
.biz-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.biz-list li { display: flex; flex-direction: column; align-items: flex-start; padding-top: 18px; border-top: 2px solid var(--ink); }
.biz-list h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.biz-list p { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); flex: 1; }
.biz-list.is-stack { grid-template-columns: minmax(0, 1fr); gap: 0; }
.biz-list.is-stack li { padding: 18px 0 14px; border-top: 1px solid var(--line); }
.biz-list.is-stack li:first-child { border-top: 2px solid var(--ink); }
.it-proof { padding: 12px 16px; background: var(--stage); font-size: 14.5px; }
.contact-other { margin: 20px 0 0; padding: 12px 14px; background: var(--stone); font-size: 14px; color: var(--ink-2); }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; font-size: 15px; }
.facts dd { margin: 0; color: var(--ink-2); }

/* ---- 相談ページ ---- */
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head form" "aside form"; grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 80px); padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 112px); align-items: start;
}
.contact-head { grid-area: head; }
.form-card { grid-area: form; }
.contact-aside { grid-area: aside; }
.contact-points { margin: 24px 0 0; padding: 0; list-style: none; }
.contact-points li { position: relative; padding: 6px 0 6px 26px; font-size: 15px; }
.contact-points li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 12px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.contact-aside { margin-top: 32px; padding: 24px; background: var(--stage); align-self: start; }
.contact-aside h2 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.mini-steps { margin: 0; padding: 0; list-style: none; }
.mini-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 6px 0; font-size: 14.5px; }
.mini-steps span { color: var(--accent); font-weight: 700; font-size: 13px; }
.contact-mail { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-2); }
.form-card { padding: clamp(24px, 3.5vw, 48px); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.form-title { margin: 0; font-size: 22px; font-weight: 600; }
.form-lead { margin: 6px 0 20px; font-size: 14px; color: var(--ink-3); }
.field { display: block; margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 0; font-weight: 700; font-size: 15px; }
.req, .opt { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 11.5px; font-weight: 700; line-height: 1.6; letter-spacing: 0.04em; }
.req { background: var(--accent); color: #fff; }
.opt { background: var(--stone); color: var(--ink-2); }
.form-lead .req { margin-right: 4px; }
.consult-form input:not([type="file"]):not([type="hidden"]), .consult-form select, .consult-form textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid rgba(32, 40, 36, 0.32); border-radius: 6px; background: #fff; color: var(--ink);
  font: inherit; font-family: var(--font-system); font-size: 16px; line-height: 1.6;
}
.consult-form textarea { min-height: 150px; resize: vertical; }
.consult-form input:focus, .consult-form select:focus, .consult-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.consult-form input[type="file"] { font: inherit; font-size: 15px; max-width: 100%; }
.consult-form ::placeholder { color: #8a908c; }
.help { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.contact-pair .help { margin: 0 0 10px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pair label { display: block; font-size: 14px; font-weight: 600; }
.pair input { margin-top: 6px; }
.honeypot { display: none !important; }
.form-policy { margin: 16px 0; font-size: 13px; color: var(--ink-3); }
.form-policy a { color: var(--green); }
.form-status { margin: 0 0 16px; padding: 14px 16px; background: var(--stone); border-left: 3px solid var(--accent); font-size: 14px; }
.form-submit { width: 100%; }

/* ---- 文章のページ・完了・404 ---- */
.prose-page { max-width: calc(760px + var(--gutter) * 2); padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 112px); }
.prose h2 { margin: 40px 0 10px; font-size: 20px; font-weight: 700; }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose a { color: var(--green); }
.prose-meta { margin-top: 32px !important; font-size: 14px; }
.status-page { max-width: calc(720px + var(--gutter) * 2); padding-block: clamp(64px, 12vh, 140px); }
.status-page p { color: var(--ink-2); }
.status-page a:not(.btn) { color: var(--green); }
.status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }

.mobile-bar { display: none; }

/* ---- 動く模型のとき（PC）：説明は左の列だけ。模型は固定した舞台の上で動く ---- */
@media (min-width: 961px) {
  .live-ok .focus { background: transparent; padding-top: 0; }
  .live-ok .chapter { display: flex; align-items: center; min-height: 100svh; padding-block: 64px; }
  .live-ok .chapter + .chapter { border-top: 0; }
  .live-ok .chapter-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "detail" "fig"; }
  .live-ok .chapter-grid > * { max-width: 470px; }
  .live-ok .figure-frame { display: none; }
  .live-ok .chapter-figure { margin-top: 18px; align-self: start; }
  .live-ok .chapter-figure figcaption { margin-top: 0; }
  .live-ok .rail { margin-bottom: 32px; }
  .live-ok .chapter-body { margin-top: 20px; }
  .live-ok .chapter-list { margin-top: 20px; }
  .live-ok .chapter-links { margin-top: 22px; }
}

@media (max-width: 1180px) {
  .hero-index-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-index-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero-index li:first-child a { border-left: 0; padding-left: 0; }
  .roles-diagram ol { gap: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-facts { grid-column: 1 / -1; }
}

/* スマホで動く模型を使うときの舞台（上半分に固定し、説明は下を流れる） */
.focus-stage { display: none; }

/* ---- タブレット・スマホ：固定の舞台をやめ、文章→模型→目次の縦積みに ---- */
@media (max-width: 960px) {
  .site-header.is-overlay { position: relative; top: 0; background: var(--stage-sp); }
  .intro { display: flex; flex-direction: column; background: var(--stage-sp); }
  .hero { order: 1; min-height: 0; padding-top: 0; display: block; }
  .intro-stage { order: 2; position: relative; height: auto; margin-bottom: 0; background: var(--stage-sp); aspect-ratio: 4 / 3; }
  .intro-stage img { object-position: 50% 55%; }
  .intro-stage::after { content: none; }
  .hero-caption { bottom: 8px; text-align: left; }
  .hero-caption a { margin-left: 0; }
  .hero-copy { padding-block: 32px 12px; }
  .hero-index { order: 3; }
  .hero-index-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-index-title { position: static; width: auto; height: auto; overflow: visible; clip-path: none; padding: 20px 0 4px; }
  .hero-index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-index li { border-top: 1px solid var(--line); }
  .hero-index li:first-child a, .hero-index li:nth-child(odd) a { border-left: 0; padding-left: 0; }
  .hero-index { border-top: 0; }
  .focus-intro { order: 4; min-height: 0; background: var(--bg); padding-block: 72px 8px; }
  .focus { order: 5; }
  .live-sp .focus-stage { display: block; position: sticky; top: 0; z-index: 3; height: 46svh; background: var(--stage-sp); overflow: hidden; border-bottom: 1px solid var(--line); }
  .focus-posters img, .live-sp .focus-live { position: absolute; inset: 0; width: 100%; height: 100%; }
  .focus-posters img { object-fit: cover; opacity: 0; }
  .focus-posters img:first-child { opacity: 1; }
  .live-sp .focus-live { display: block; opacity: 0; transition: opacity 0.4s ease; }
  .live-sp .focus-live.is-on { opacity: 1; }
  .live-sp .focus-pins .pin { opacity: 0; transition: opacity 0.2s linear; }
  .live-sp .figure-frame { display: none; }
  .live-sp .chapter { min-height: 78svh; padding-block: 28px 48px; }
  .live-sp .chapter + .chapter { border-top: 0; }
  .live-sp .chapter-figure { grid-area: auto; margin-top: 18px; }
  .live-sp .chapter-grid { grid-template-areas: "head" "detail" "fig"; }
  .svc-index, .roles-grid, .faq-grid, .cta-inner, .operator-grid, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .steps, .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .sign-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .point-list, .biz-list { grid-template-columns: minmax(0, 1fr); }
  .page-head-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .page-head-text { padding-block: 32px 24px; }
  .page-head-figure { min-height: 0; aspect-ratio: 16 / 9; margin-inline: calc(var(--gutter) * -1); }
  .page-head-note { display: none; }
  .services-layout { grid-template-columns: minmax(0, 1fr); }
  .services-toc { position: static; }
  .toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .contact-layout { grid-template-areas: "head" "form" "aside"; }
  .contact-head { margin-bottom: 24px; }
}

/* ---- スマホ ---- */
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .nav { display: none; }
  .menu { display: block; }
  .chapter-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "fig" "detail"; }
  .chapter-figure { margin-top: 24px; }
  .rail { display: none; }
  .svc-index-group:last-child ol { grid-template-columns: minmax(0, 1fr); }
  .faq-list { grid-template-columns: minmax(0, 1fr); }
  .cost-note { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .roles-diagram ol { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .node { min-height: 0; }
  .node:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -24px; width: 2px; height: 18px; }
  .node:not(:last-child)::before { right: auto; left: calc(50% - 4px); top: auto; bottom: -25px; transform: rotate(135deg); }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244, 242, 237, 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar a:not(.btn) {
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    border: 1px solid rgba(35, 74, 66, 0.4); border-radius: 6px;
    color: var(--green); font-size: 15px; font-weight: 600; text-decoration: none;
  }
  .mobile-bar .btn { min-height: 48px; }
  .mobile-bar a.is-line { background: #06c755; border-color: #06c755; color: #fff; }
  .float-cta { display: none; }
  body:has(.mobile-bar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .pc { display: none; }
}

@media (max-width: 640px) {
  .intro-stage { aspect-ratio: 1170 / 1000; }
  .hero-copy { padding-block: 26px 0; }
  .hero-area { margin-bottom: 16px; font-size: 13px; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 44px); line-height: 1.3; }
  .hero-lead { margin-top: 16px; font-size: 15.5px; line-height: 1.85; }
  .hero .hero-actions { display: none; } /* 同じ2つの導線を下部の固定バーに置く（ホームの最初の画面だけ） */
  .hero-hint { margin-top: 10px; font-size: 13.5px; }
  .hero-index .name { font-size: 15px; }
  .hero-index a { padding: 14px 12px 16px; column-gap: 8px; }
  .hero-index .sub { font-size: 12px; }
  .pin > span { font-size: 12px; padding: 3px 8px; }
  .steps, .steps-5, .sign-list { grid-template-columns: minmax(0, 1fr); }
  .toc-list { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .brand-name { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
/* 確認用：動く模型の状態表示（公開版には表示しない） */
.live-status { display: none; }
[data-mode="test"] .live-status { display: block; position: fixed; left: 12px; bottom: 12px; z-index: 20; padding: 4px 10px; border-radius: 4px; background: rgba(32, 40, 36, 0.82); color: #f4f2ed; font-size: 11px; line-height: 1.6; pointer-events: none; }
@media (max-width: 960px) { [data-mode="test"] .live-status { left: 8px; right: auto; top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); } }
