/* 株式会社ネクストコンサル ─ 第六轮「高级感」重构：地图与结构（Map & Structure）
   浅灰白点阵画布 × 深藍 × 桔梗紫。浮起的白色路线图卡（首屏署名）＋等轴测三层结构图（YonBIP 署名）＋深藍页脚。
   紫色只做点睛与选中状态；大面积用白卡与深藍。
   字体：Murecho 可变字体 1 个文件覆盖全部字重（SIL OFL 1.1，自托管子集，无外部请求）。 */

@font-face { font-family: "Murecho"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/murecho-variable.woff2?v=26bdab3509") format("woff2"); }

:root {
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --navy: #132A5E;
  --navy-2: #1B3772;
  --navy-deep: #0C1C42;
  --ink: #182238;
  --muted: #4A5570;
  --violet: #4F4DA0;
  --violet-dark: #3E3C85;
  --violet-light: #A9A7E8;
  --tint: #ECEBF6;
  --tint-2: #F6F5FC;
  --tint-line: #E3E1F3;
  --line: #DCE1EA;
  --line-strong: #C8CFDD;
  --f: "Murecho", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "YuGothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --gutter: clamp(20px, 4.5vw, 48px);
  --wrap: 1200px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --sh-1: 0 1px 2px rgba(19, 42, 94, .05), 0 6px 18px -6px rgba(19, 42, 94, .10);
  --sh-2: 0 2px 6px rgba(19, 42, 94, .06), 0 30px 60px -24px rgba(19, 42, 94, .30), 0 60px 120px -40px rgba(19, 42, 94, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dots: radial-gradient(circle at 1px 1px, rgba(19, 42, 94, .14) 1px, transparent 1.6px);
  --dots-light: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .16) 1px, transparent 1.6px);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%233E3C85' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mark-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='3' width='17' height='17' fill='none' stroke='white' stroke-width='2'/%3E%3Ccircle cx='21' cy='21' r='8' fill='%23A9A7E8'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-tap-highlight-color: rgba(79, 77, 160, .14); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f); font-size: 1rem; line-height: 1.9; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; line-break: strict; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; text-autospace: normal;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-dark); text-underline-offset: .22em; }
@media (hover: hover) { a:hover { color: var(--navy); } }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
h1, h2, h3 { word-break: auto-phrase; font-feature-settings: "palt" 1; text-spacing-trim: trim-start; }
p { margin: 0 0 1em; }
p, li, dd { text-wrap: pretty; }
p, dd, ul:not([class]) > li, ol:not([class]) > li { max-width: 42em; }
table, dl { font-variant-numeric: tabular-nums; }
.phrase { display: inline-block; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }
.container { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
:is(button, a, input, textarea, select, summary) { touch-action: manipulation; scroll-margin-top: 100px; }

/* ボタン（クラス名は従来の pill を流用） */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; letter-spacing: .04em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), translate .2s var(--ease);
}
.pill-violet { background: var(--violet); color: #fff; box-shadow: 0 1px 2px rgba(19, 42, 94, .25), 0 12px 24px -12px rgba(19, 42, 94, .55), inset 0 1px 0 rgba(255, 255, 255, .12); }
.pill-violet::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: translate .2s var(--ease); }
@media (hover: hover) { .pill-violet:hover { background: var(--violet-dark); color: #fff; } .pill-violet:hover::after { translate: 3px 0; } }
.pill-outline { border-color: var(--line-strong); color: var(--navy); background: #fff; box-shadow: 0 1px 2px rgba(19, 42, 94, .05); }
@media (hover: hover) { .pill-outline:hover { border-color: var(--navy); color: var(--navy); } }

/* ヘッダー：スマホは簡素なバー＋下部の操作バー、デスクトップは半透明の固定バー */
.site-header { position: relative; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px var(--gutter); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 56px; max-width: 1240px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); text-decoration: none; font-weight: 700; white-space: nowrap; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; color: var(--navy); flex: none; }
.brand-name { font-size: 1rem; letter-spacing: .06em; }
.bar-cta { display: none; min-height: 44px; padding: 0 20px; font-size: .9rem; }
.site-nav { width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; }
@media (hover: hover) { .site-nav a:hover { color: var(--violet-dark); } }
.js .site-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 60;
  background: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -18px 40px -12px rgba(19, 42, 94, .22);
  padding: 18px var(--gutter) 14px; max-height: 70vh; overflow-y: auto; overscroll-behavior: contain;
}
.js .site-nav.is-open { display: block; }
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(19, 42, 94, .18);
}
.js .action-bar { grid-template-columns: 1fr 1.7fr; }
.action-menu { display: none; min-height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; }
.js .action-menu { display: block; }
.action-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--r-sm); background: var(--violet); color: #fff; font-weight: 600; text-decoration: none; }
@media (hover: hover) { .action-cta:hover { background: var(--violet-dark); color: #fff; } }
@media (max-width: 1279px) {
  html { scroll-padding-bottom: 90px; }
  :is(a, button, input, textarea, select, summary, [tabindex]) { scroll-margin-bottom: 96px; }
  .js .site-nav { max-height: calc(100dvh - 100px); }
  .action-cta { font-size: .93rem; }
}
@media (min-width: 1280px) {
  body { padding-bottom: 0; }
  html { scroll-padding-top: 88px; }
  .action-bar { display: none; }
  .site-header { position: sticky; top: 0; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid rgba(19, 42, 94, .08); padding: 0 var(--gutter); }
  .bar { flex-wrap: nowrap; min-height: 72px; }
  .site-nav, .js .site-nav { display: block; position: static; width: auto; background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; gap: 0; }
  .site-nav a { min-height: 44px; padding: 0 12px; border: 0; font-size: .9rem; font-weight: 500; white-space: nowrap; position: relative; }
  .site-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; border-radius: 1px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
  @media (hover: hover) { .site-nav a:hover::after { transform: scaleX(1); } }
  .bar-cta { display: inline-flex; margin-left: 8px; }
}

/* ヒーロー：点阵画布＋浮起的路线图卡 */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(44px, 7vw, 104px) 0 clamp(72px, 9vw, 132px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--dots); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 65%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 65%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(48% 58% at 80% 38%, rgba(79, 77, 160, .13), transparent 72%); }
.hero-grid { display: grid; gap: 52px; align-items: center; }
.hero-label { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px 7px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: .86rem; font-weight: 600; color: var(--violet-dark); }
.hero-label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); flex: none; }
.hero h1 { font-size: clamp(2.35rem, 1.1rem + 3.5vw, 4rem); line-height: 1.22; font-weight: 800; color: var(--navy); letter-spacing: .01em; margin: 26px 0 26px; }
.hero h1 .accent { color: var(--violet); }
.hero-lead { color: var(--muted); font-size: 1.0625rem; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 34px; }
.hero-action-note { margin: 18px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.8; max-width: 35em; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
@media (max-width: 699px) {
  .hero-actions > .pill { flex: 1 1 100%; padding-inline: 20px; }
  .hero-action-note { font-size: .82rem; }
}

.route-panel { position: relative; padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid rgba(19, 42, 94, .06); border-radius: var(--r-lg); box-shadow: 14px 14px 0 0 #E2E0F4, var(--sh-2); }
.route-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.route-title::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--violet); box-shadow: 0 0 0 5px var(--tint); }
.route-lead { margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); max-width: 34em; font-size: .92rem; line-height: 1.8; color: var(--muted); }
.route { list-style: none; margin: 0; padding: 0; }
.station { position: relative; padding: 0 0 22px 58px; }
.station:last-child { padding-bottom: 0; }
.station:not(:last-child)::before { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px; border-radius: 1px; background: linear-gradient(var(--violet-light), var(--line)); }
.st-no { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--violet); color: var(--violet-dark); font-size: .95rem; font-weight: 700; line-height: 1; box-shadow: 0 0 0 5px var(--tint-2); }
.station:last-child .st-no { background: var(--violet); color: #fff; }
.station h3 { margin: 0 0 2px; font-size: 1.1rem; font-weight: 700; line-height: 1.6; color: var(--navy); letter-spacing: .04em; }
.station > p { margin: 0; font-size: .92rem; line-height: 1.75; color: var(--muted); }
.station > .st-out { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 10px; padding: 5px 12px; border-radius: 8px; background: var(--tint-2); border: 1px solid var(--tint-line); color: var(--navy); font-weight: 600; font-size: .86rem; line-height: 1.7; }
.st-out span { font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--violet-dark); }
.station > .st-gate { position: relative; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 12px 0 0; padding: 6px 12px; border: 1.5px dashed var(--violet); border-radius: 8px; background: #fff; font-size: .84rem; font-weight: 600; color: var(--navy); line-height: 1.7; }
.st-gate::before { content: ""; position: absolute; left: -40px; top: 50%; width: 38px; border-top: 1.5px dashed var(--violet-light); }
.st-gate span { font-size: .74rem; font-weight: 700; color: var(--violet-dark); }
@media (max-width: 699px) { .route-panel { box-shadow: 8px 8px 0 0 #E2E0F4, var(--sh-1); } }

/* セクション共通 */
.section { padding-block: clamp(84px, 10vw, 140px); }
.issues, .services, .flow, .closing { background: var(--surface); }
.yonbip, .subsidy, .faq { background: var(--bg); }
.h2 { font-size: clamp(1.85rem, 1.05rem + 2.3vw, 2.8rem); line-height: 1.32; color: var(--navy); font-weight: 800; margin: 0 0 18px; letter-spacing: .01em; }
.h2::before { content: ""; display: block; width: 30px; height: 4px; border-radius: 2px; background: var(--violet); margin-bottom: 24px; }
.section-head { display: grid; gap: 16px 64px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head .h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }
@media (min-width: 1000px) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .section-head p { justify-self: end; max-width: 34em; }
}

/* 課題：左に大見出し（追従）、右に 2×2 のカード */
.issues .h2 { margin-bottom: 36px; }
.issue-grid { display: grid; gap: 16px; }
.issue { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; padding: 26px; background: var(--tint-2); border: 1px solid var(--tint-line); border-radius: var(--r-md); transition: translate .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease); }
.issue svg { grid-row: span 2; width: 56px; height: 56px; padding: 11px; background: #fff; border-radius: 14px; box-shadow: var(--sh-1); }
.issue h3 { font-size: 1.1rem; color: var(--navy); margin: 0; line-height: 1.6; align-self: end; }
.issue p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (hover: hover) { .issue:hover { translate: 0 -3px; background: #fff; box-shadow: var(--sh-1); } }
@media (min-width: 760px) { .issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) {
  .issues .container { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .issues .h2 { margin: 0; position: sticky; top: 120px; }
}

/* YonBIP：等轴测三层结构图（署名元素） */
.system { position: relative; isolation: isolate; overflow: hidden; margin: 0; display: grid; gap: 32px; padding: clamp(22px, 3.5vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.system::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--dots); background-size: 20px 20px; -webkit-mask-image: radial-gradient(45% 60% at 50% 45%, #000 10%, transparent 80%); mask-image: radial-gradient(45% 60% at 50% 45%, #000 10%, transparent 80%); }
.sys-title { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.sys-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sys-col li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 600; color: var(--navy); font-size: .95rem; box-shadow: 0 1px 2px rgba(19, 42, 94, .05); }
.sys-use li { background: var(--tint-2); border-color: var(--tint-line); }
.sys-core { display: grid; gap: 18px; justify-items: center; text-align: center; }
.sys-core-name { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: .04em; line-height: 1.3; }
.stack { width: min(100%, 320px); height: auto; overflow: visible; }
.stack .guide { stroke: #C9CEE0; stroke-width: 1.2; stroke-dasharray: 3 4; fill: none; }
.plate .top { fill: #FFFFFF; stroke: #B6BED5; stroke-width: 1.2; stroke-linejoin: round; transition: fill .35s var(--ease), stroke .35s var(--ease); }
.plate .left { fill: #DCE0EC; transition: fill .35s var(--ease); }
.plate .right { fill: #C7CDDE; transition: fill .35s var(--ease); }
.stack .shadow { fill: rgba(19, 42, 94, .16); }
.plate .mesh { fill: none; stroke: #DDE1EC; stroke-width: 1; transition: stroke .35s var(--ease); }
.system[data-active="apps"] .plate-apps .top, .system[data-active="ai"] .plate-ai .top, .system[data-active="data"] .plate-data .top { fill: var(--violet); stroke: var(--violet-dark); }
.system[data-active="apps"] .plate-apps .left, .system[data-active="ai"] .plate-ai .left, .system[data-active="data"] .plate-data .left { fill: #3E3C85; }
.system[data-active="apps"] .plate-apps .right, .system[data-active="ai"] .plate-ai .right, .system[data-active="data"] .plate-data .right { fill: #302E6C; }
.system[data-active="apps"] .plate-apps .mesh, .system[data-active="ai"] .plate-ai .mesh, .system[data-active="data"] .plate-data .mesh { stroke: rgba(255, 255, 255, .28); }
.layers { display: grid; gap: 8px; width: 100%; }
.layer {
  width: 100%; min-height: 50px; padding: 10px 16px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--navy);
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.5;
}
.layer::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--violet-light); flex: none; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
@media (hover: hover) { .layer:hover { border-color: var(--violet-light); } }
.layer[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 4px 10px -4px rgba(19, 42, 94, .4); }
.layer[aria-pressed="true"]::before { background: #fff; border-color: #fff; }
.layer:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.system figcaption { font-size: .82rem; line-height: 1.75; color: var(--muted); }
@media (min-width: 1000px) {
  .system { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 52px; }
  .system figcaption { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
  .sys-now li::after, .sys-use li::before { content: ""; position: absolute; top: 50%; width: 52px; border-top: 1.5px dashed var(--violet-light); }
  .sys-now li::after { left: calc(100% + 1px); }
  .sys-use li::before { right: calc(100% + 1px); }
}
.layer-panels { margin-top: 20px; display: grid; gap: 12px; }
.layer-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 26px; box-shadow: var(--sh-1); }
.layer-panel h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--violet-dark); margin: 0 0 6px; }
.layer-panel h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--violet); flex: none; }
.layer-panel p { margin: 0; }
.check-box { margin-top: 24px; background: var(--tint); border: 1px solid #DEDCF1; border-radius: var(--r-md); padding: 26px clamp(22px, 3vw, 34px) 14px; }
.check-box h3 { font-size: 1.1rem; color: var(--navy); margin: 0 0 12px; }
.check-box ul { margin: 0 0 8px; padding-left: 1.2em; }
.check-box li { margin-bottom: .5em; }
.check-box li::marker { color: var(--violet); }

/* 支援内容：不等大的便当格，第一张深藍 */
.service-grid { display: grid; gap: 18px; }
.service { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(26px, 3vw, 38px); background: var(--tint-2); border: 1px solid var(--tint-line); border-radius: var(--r-lg); transition: translate .3s var(--ease), box-shadow .3s var(--ease); }
@media (hover: hover) { .service:hover { translate: 0 -3px; box-shadow: var(--sh-1); } }
.service-phase { align-self: flex-start; margin: 0 0 26px; padding: 4px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--violet-dark); }
.service h3 { font-size: 1.3rem; color: var(--navy); margin: 0 0 10px; line-height: 1.5; }
.service p { color: var(--muted); }
.service ul { list-style: none; margin: auto 0 0; padding: 20px 0 0; border-top: 1px solid var(--tint-line); display: grid; gap: 10px; }
.service li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--navy); line-height: 1.7; }
.service li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: .14em; border-radius: 50%; background: #fff var(--check) center / 12px no-repeat; border: 1px solid var(--tint-line); }
.service:first-child { background: linear-gradient(165deg, var(--navy-2), var(--navy-deep) 75%); border-color: transparent; color: #fff; }
.service:first-child::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--dots-light); background-size: 18px 18px; -webkit-mask-image: radial-gradient(70% 60% at 100% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 100% 0%, #000, transparent 75%); }
.service:first-child h3, .service:first-child li { color: #fff; }
.service:first-child p { color: #CBD2EA; }
.service:first-child .service-phase { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.service:first-child ul { border-top-color: rgba(255, 255, 255, .16); }
.service:first-child li::before { background: rgba(255, 255, 255, .12) var(--check-white) center / 12px no-repeat; border-color: transparent; }
@media (min-width: 900px) {
  .service-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .service:first-child { grid-row: span 2; }
}
@media (min-width: 1200px) {
  .service-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .service:first-child { grid-row: auto; }
}

/* 補助金 */
.subsidy-grid { display: grid; gap: 24px; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts > div { display: grid; gap: 4px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--violet-dark); }
.facts dd { margin: 0; color: var(--ink); }
.facts > div:nth-child(4) dd, .facts > div:nth-child(5) dd { font-weight: 700; color: var(--navy); font-size: 1.04rem; }
@media (min-width: 700px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:first-child, .facts > div:last-child { grid-column: 1 / -1; }
}
.checklist { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 14px; box-shadow: var(--sh-1); }
.checklist h3 { font-size: 1.1rem; color: var(--navy); margin: 0 0 12px; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 12px 0 12px 36px; border-top: 1px solid var(--line); font-size: .95rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 16px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--violet-light); background: #fff; }
@media (min-width: 1000px) { .subsidy-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; } }
.disclaimer { position: relative; margin: 28px 0 6px; padding: 16px 20px 16px 56px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.disclaimer::before { content: "i"; position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; font-style: normal; line-height: 1; }
.policy-source { width: min(var(--wrap), 100% - var(--gutter) * 2); margin: 28px auto 0; font-size: .88rem; color: var(--muted); }
.policy-source a { display: inline-flex; align-items: center; min-height: 44px; }

/* 進め方：役割分担表（白卡） */
.duties { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.duty { display: grid; gap: 8px; padding: 22px 24px; border-top: 1px solid var(--line); transition: background-color .2s var(--ease); }
.duty-head { display: none; }
.duty-head + .duty { border-top: 0; }
.duty h3 { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 1.05rem; color: var(--navy); line-height: 1.5; }
.duty-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--violet-dark); font-weight: 700; font-size: .95rem; flex: none; }
.duty p { margin: 0; font-size: .95rem; }
.duty p::before { content: attr(data-label); display: block; font-size: .76rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
@media (hover: hover) { .duty:not(.duty-head):hover { background: var(--tint-2); } }
@media (min-width: 900px) {
  .duty { grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 30px; }
  .duty-head { display: grid; background: var(--bg); color: var(--muted); font-weight: 700; font-size: .78rem; letter-spacing: .08em; padding: 14px 30px; border-top: 0; }
  .duty p::before { content: none; }
}

/* FAQ */
.faq { padding-block: clamp(72px, 8vw, 112px); }
.faq-grid { display: grid; gap: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 24px; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.faq-list details[open] { box-shadow: var(--sh-1); border-color: var(--line-strong); }
.faq-list summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; min-height: 48px; font-weight: 600; color: var(--navy); line-height: 1.65; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--violet); transition: transform .25s var(--ease); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { margin: 0; padding: 0 0 22px; color: var(--muted); }
@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
  .faq-grid > .h2 { position: sticky; top: 120px; }
}

/* 会社概要・相談メモ */
.closing-grid { display: grid; gap: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 46px); box-shadow: var(--sh-1); }
.h3 { font-size: clamp(1.45rem, 1rem + 1.1vw, 1.9rem); font-weight: 800; color: var(--navy); margin: 0 0 20px; line-height: 1.4; }
.company.panel { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(165deg, var(--navy-2), var(--navy-deep) 75%); border-color: transparent; color: #fff; }
.company.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--dots-light); background-size: 18px 18px; -webkit-mask-image: radial-gradient(80% 60% at 100% 100%, #000, transparent 72%); mask-image: radial-gradient(80% 60% at 100% 100%, #000, transparent 72%); }
.company .h3 { color: #fff; }
.company dl { margin: 0; }
.company dl > div { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.company dt { font-weight: 600; color: #B9C1DE; font-size: .82rem; letter-spacing: .08em; }
.company dd { margin: 0; }
.company .text-link { color: var(--violet-light); }
@media (hover: hover) { .company .text-link:hover { color: #fff; } }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: grid; gap: 6px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: .94rem; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(79, 77, 160, .2); }
fieldset[disabled] .field input, fieldset[disabled] .field select, fieldset[disabled] .field textarea { background: #F7F8FA; border-color: #D6DBE6; cursor: not-allowed; }
@media (min-width: 1000px) { .closing-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }

/* 相談用メモ（第四轮的准备工具，样式随新视觉调整） */
:root { --prep-accent: #4F4DA0; --prep-line: #DCE1EA; }
.prep-intro { margin: 0 0 12px; font-size: 1rem; line-height: 1.85; }
.prep-privacy { color: var(--muted); font-size: .875rem; padding-bottom: 24px; border-bottom: 1px solid var(--prep-line); margin-bottom: 24px; }
.prep-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.prep-form .field :is(input, select, textarea) { font-size: 1rem; line-height: 1.7; min-width: 0; }
.prep-form textarea { resize: vertical; }
.required { font-size: .76rem; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--tint); color: var(--violet-dark); font-weight: 700; }
.field-hint { margin: 0 0 4px; font-size: .875rem; color: var(--muted); line-height: 1.8; }
.prep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.prep-actions :is(button, a) { min-height: 48px; white-space: normal; padding-block: 10px; touch-action: manipulation; }
.prep-actions .pill-violet::after { content: none; }
.prep-secondary { color: var(--prep-accent); background: transparent; border: 0; padding: 8px 2px; font: inherit; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.prep-error { color: #9C301B; margin: 0; font-size: .875rem; }
.prep-error:empty, .prep-status:empty { display: none; }
.prep-form [aria-invalid="true"] { border-width: 2px; border-color: #9C301B; }
.prep-result { border-top: 2px solid var(--prep-line); padding-top: 24px; margin-top: 28px; }
.prep-result h3 { font-family: inherit; font-size: 1.25rem; color: var(--navy); margin: 0 0 10px; }
.prep-result p { font-size: .92rem; }
.prep-result textarea { display: block; width: 100%; padding: 16px; margin-bottom: 16px; background: var(--tint-2); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.8; border: 1px solid var(--prep-line); border-radius: var(--r-sm); }
.prep-status { margin-top: 16px; font-size: .92rem; font-weight: 600; }
@media (max-width: 699px) {
  .prep-actions { gap: 8px 18px; }
  .prep-actions > :first-child { width: 100%; }
}
#contact { scroll-margin-top: 100px; }

/* フッター：深藍＋点阵 */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: #C3CAE3; padding-top: 80px; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--dots-light); background-size: 22px 22px; -webkit-mask-image: radial-gradient(55% 80% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(55% 80% at 100% 0%, #000, transparent 70%); }
.footer-grid { display: grid; gap: 32px; padding-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand::before { content: ""; width: 30px; height: 30px; flex: none; background: var(--mark-white) center / contain no-repeat; }
.footer-grid p { color: #C3CAE3; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; color: #DDE2F2; text-decoration: none; font-size: .95rem; }
@media (hover: hover) { .footer-links a:hover { color: #fff; text-decoration: underline; } }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 28px; font-size: .84rem; color: #AEB6D3; }
.footer-bottom p { margin: 0 0 .4em; }
.footer-bottom small { font-size: .84rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

/* 第七轮：700–1279px（平板、窄笔记本）把「メニュー／相談」放到页头右上，菜单从页头下拉；1280px 起才显示横向导航 */
@media (min-width: 700px) and (max-width: 1279px) {
  body { padding-bottom: 0; }
  html { scroll-padding-bottom: 0; }
  :is(a, button, input, textarea, select, summary, [tabindex]) { scroll-margin-bottom: 0; }
  .action-bar { position: absolute; top: 10px; right: var(--gutter); left: auto; bottom: auto; display: flex; gap: 10px; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .action-bar { grid-template-columns: none; }
  .action-menu { padding: 0 20px; }
  .action-cta { padding: 0 22px; }
  .js .site-nav { position: absolute; top: 100%; bottom: auto; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 24px 48px -16px rgba(19, 42, 94, .25); max-height: calc(100dvh - 96px); }
}

/* 动效：首屏路线图卡上浮（只动位移，不推迟首屏绘制）；其余区块随滚动浮现（scroll-driven，不支持的浏览器直接显示） */
@keyframes nc-float-in { from { translate: 0 22px; } to { translate: 0 0; } }
@keyframes nc-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .route-panel { animation: nc-float-in .9s var(--ease) both; }
  @supports (animation-timeline: view()) {
    .section-head, .issue, .system, .layer-panels, .check-box, .service, .facts > div, .checklist, .duties, .faq-list details, .panel {
      animation: nc-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 220px;
    }
  }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* 渐变底的纯色兜底；浮起层只用阴影、不再叠细边框（impeccable：细边框＋大扩散阴影是生成式 UI 的典型特征） */
.service:first-child, .company.panel { background-color: var(--navy-2); }
.system { border-color: transparent; }
.route-panel { border: 0; }
.skip:hover { color: #fff; }

/* ==== 第八轮：多页面（自动生成，勿手改） ==== */
:root { --more-wrap: var(--wrap); --more-gutter: var(--gutter); --more-ink: var(--violet-dark); }
.panel.company .more-link { color: #FFFFFF; }
.footer-title { margin: 0 0 10px; font-size: .84rem; font-weight: 600; letter-spacing: .12em; color: #FFFFFF; }
.site-nav a[aria-current] { color: var(--violet-dark); }
.site-nav a[aria-current]::after { transform: scaleX(1); }
.more-row { width: min(var(--more-wrap), 100% - var(--more-gutter) * 2); margin: clamp(28px, 4vw, 44px) auto 0; }
.more-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--more-ink); font-weight: 700;
  text-decoration: none; border-bottom: 1px solid currentColor; }
.more-link::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: translate .2s ease-out; }
.more-link:hover::after { translate: 3px 0; }
@media (prefers-reduced-motion: reduce) { .more-link::after { transition: none; } }
@media (min-width: 900px) { .footer-grid.footer-grid-3 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.footer-grid-3 .footer-links { grid-template-columns: minmax(0, 1fr); }
/* ==== 第八轮：多页面 结束 ==== */
.more-inline { margin: 18px 0 0; }

/* ご相談フォーム：送信対応（2026-10-08） */
.prep-form { position: relative; }
.prep-form [hidden] { display: none !important; }
.prep-form .field-check label { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; line-height: 1.7; cursor: pointer; }
.prep-form .field-check input[type="checkbox"] { flex: none; width: 20px !important; height: 20px !important; min-width: 0 !important; min-height: 0 !important; margin: 4px 0 0; padding: 0; accent-color: var(--prep-accent, currentColor); cursor: pointer; }
.prep-form .field-check input[aria-invalid="true"] { outline: 2px solid #9C301B; outline-offset: 2px; }
.prep-form .hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.prep-form [data-send][disabled] { opacity: .7; cursor: progress; }
.prep-send-error { margin: 0 0 14px; }
.prep-privacy a, .prep-result a, .hero-action-note a, .prep-form noscript a { overflow-wrap: anywhere; }
.site-footer a[href^="mailto:"] { color: inherit; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
main a[href^="mailto:"], .site-footer a[href^="mailto:"] { padding-block: 4px; }
