/* 盛金合同会社 ─ 米白×石墨灰×銅／非対称・章立て・実写
   auteur-allow: CREAM_BG -- 客户需求明确指定「米白＋石墨灰＋克制铜色」，米白底为指定色 */

/* 自托管子集字体（SIL OFL 1.1，许可证见 fonts/ 目录；无外部请求）。见出しのみ明朝、本文は端末のゴシック */
@font-face { font-family: "Zen Old Mincho"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/zen-old-mincho-600.woff2?v=dbf0b4ee9d") format("woff2"); }

:root {
  --bg: #F4F1EA;
  --surface: #FBFAF6;
  --graphite: #2A2D31;
  --graphite-2: #212327;
  --ink: #24272B;
  --muted: #5E6369;
  --copper: #9C5E36;
  --copper-deep: #8A5230;
  --copper-light: #C9935F;
  --line: #D9D2C5;
  --stone: #B9B4AA;
  --paper-ink: #EDE8DF;
  --rail: 208px;
  --f: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "YuGothic", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --f-display: "Zen Old Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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.95; letter-spacing: .03em;
  line-break: strict; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--copper-deep); text-underline-offset: .24em; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { color: var(--ink); } }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
h1, h2, h3 { word-break: auto-phrase; }
h1, h2, .yonbip-statement, .footer-mark, .wordmark { font-family: var(--f-display); font-weight: 600; font-feature-settings: "palt" 1; }
p { margin: 0 0 1em; }
.phrase { display: inline-block; }
.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: 200; background: var(--graphite); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: min(1080px, 100% - var(--gutter) * 2); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 2px; border: 1px solid transparent;
  font: inherit; letter-spacing: .1em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out;
}
.btn-graphite { background: var(--graphite); color: #fff; }
@media (hover: hover) { .btn-graphite:hover { background: #3A3E44; color: #fff; } }
.btn-line { border-color: var(--graphite); color: var(--graphite); }
@media (hover: hover) { .btn-line:hover { background: var(--graphite); color: #fff; } }
.btn-copper { background: var(--copper-deep); color: #fff; }

/* 目次：スマホは全画面、デスクトップは左の章レール */
.chapters { padding: 24px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.chapters-title { font-size: .92rem; letter-spacing: .3em; color: var(--copper-deep); margin-bottom: 12px; }
.chapters ol { list-style: none; margin: 0; padding: 0; }
.chapters li a { display: flex; align-items: baseline; gap: 16px; min-height: 52px; padding: 10px 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.chapters-cta { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 24px; background: var(--copper-deep); color: #fff; text-decoration: none; letter-spacing: .1em; }
@media (hover: hover) { .chapters-cta:hover { color: #fff; background: #75452A; } }
.chapters-close { display: none; }
.chapters-open { display: none; }
.js .chapters { display: none; position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: var(--graphite); color: var(--paper-ink); padding: 76px var(--gutter) 40px; border: 0; }
.js .chapters.is-open { display: block; }
.js .chapters .chapters-title { color: var(--copper-light); }
.js .chapters li a { border-bottom-color: rgba(237, 232, 223, .18); font-size: 1.12rem; }
.js .chapters-close {
  display: inline-flex; align-items: center; position: absolute; top: 16px; right: var(--gutter);
  min-height: 44px; padding: 0 18px; background: transparent; color: var(--paper-ink);
  border: 1px solid rgba(237, 232, 223, .5); border-radius: 2px; font: inherit; letter-spacing: .2em; cursor: pointer;
}
.js .chapters-open {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--graphite); border-radius: 2px; background: transparent; color: var(--graphite);
  font: inherit; letter-spacing: .24em; cursor: pointer;
}
@media (min-width: 1200px) {
  .chapters, .js .chapters {
    display: block; position: fixed; top: 0; left: 0; bottom: 0; right: auto; width: var(--rail); z-index: 10;
    background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); border-bottom: 0;
    padding: 120px 24px 32px; overflow-y: auto;
  }
  .js .chapters .chapters-title { color: var(--copper-deep); }
  .chapters li a, .js .chapters li a { min-height: 44px; padding: 8px 0 8px 14px; gap: 12px; border: 0; border-left: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
  @media (hover: hover) { .chapters li a:hover { color: var(--ink); } }
  .chapters li a[aria-current="true"] { color: var(--ink); font-weight: 700; border-left: 2px solid var(--copper); padding-left: 13px; }
  .chapters-cta { min-height: 44px; padding: 6px 8px; font-size: .84rem; letter-spacing: .04em; text-align: center; background: var(--graphite); }
  @media (hover: hover) { .chapters-cta:hover { background: #3A3E44; } }
  .js .chapters-close, .js .chapters-open { display: none; }
  .page { margin-left: var(--rail); }
}

/* ヘッダー */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1.15rem; letter-spacing: .24em; white-space: nowrap; }
@media (hover: hover) { .wordmark:hover { color: var(--ink); } }
.wordmark-mark { width: 12px; height: 12px; background: var(--copper); transform: rotate(45deg); flex: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; min-height: 44px; padding: 0 20px; font-size: .9rem; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* ヒーロー（非対称、写真は右端まで） */
.hero { display: grid; gap: 40px; padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(64px, 9vw, 120px); }
.hero-label { color: var(--copper-deep); letter-spacing: .22em; font-size: .92rem; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2rem, 3.7vw, 3.2rem); line-height: 1.5; letter-spacing: .08em; margin: 0 0 28px; color: var(--graphite); }
.hero-lead { color: var(--muted); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.78) contrast(1.03); }
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 64px; padding-right: 0; }
  .hero-photo img { aspect-ratio: 5 / 4; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: photo-in 1s cubic-bezier(.2, .7, .2, 1) .1s both; }
}
@keyframes photo-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* 章の見出し（番号は付けず、銅の短い罫で章の始まりを示す） */
.chapter { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.chapter-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.chapter-head::before { content: ""; display: block; width: 40px; height: 2px; margin-bottom: 22px; background: var(--copper); }
.chapter-head h2 { font-size: clamp(1.6rem, 3.1vw, 2.3rem); letter-spacing: .1em; line-height: 1.45; margin: 0; color: var(--graphite); }
.chapter-head p { color: var(--muted); margin: 10px 0 0; }

/* 01 課題 */
.issues-grid { display: grid; gap: 36px; }


.issue { padding: 22px 0; border-top: 1px solid var(--line); }
.issue h3 { font-weight: 500; font-size: 1.2rem; letter-spacing: .06em; margin: 0 0 6px; color: var(--graphite); }
.issue h3::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--copper); transform: rotate(45deg); margin-right: 14px; vertical-align: .22em; }
.issue p { margin: 0; color: var(--muted); }
.issues-close { margin: 12px 0 0; padding-top: 22px; border-top: 1px solid var(--graphite); font-size: 1.05rem; }
@media (min-width: 900px) {
  .issues-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; align-items: start; }
  .issues-close { grid-column: 1 / -1; }
}

/* 02 支援内容（段差のある3段階） */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.stage { border-top: 1px solid var(--copper); padding-top: 20px; }
.stage-label { color: var(--copper-deep); font-size: .9rem; letter-spacing: .22em; margin: 0 0 6px; }
.stage h3 { font-weight: 500; font-size: 1.25rem; letter-spacing: .06em; margin: 0 0 10px; color: var(--graphite); }
.stage > p:not(.stage-label) { color: var(--muted); }
.stage ul { list-style: none; margin: 14px 0 0; padding: 0; }
.stage li { padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
@media (min-width: 900px) {
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
  .stage:nth-child(2) { margin-top: 40px; }
  .stage:nth-child(3) { margin-top: 80px; }
}

/* 03 補助金 */
.subsidy-grid { display: grid; gap: 36px; }
.subsidy-photo { margin: 0; }
.subsidy-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.7) contrast(1.03); }
.subsidy-cols { display: grid; gap: 36px; }
.subsidy-cols h3 { font-weight: 500; font-size: 1.15rem; letter-spacing: .08em; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--graphite); color: var(--graphite); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 14px 24px; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .95em; width: 12px; height: 1px; background: var(--copper); }
@media (min-width: 760px) { .subsidy-cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (min-width: 1000px) {
  .subsidy-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 56px; align-items: start; }
  .subsidy-photo img { aspect-ratio: 3 / 4; }
}
.ledger { width: 100%; border-collapse: collapse; margin-top: 48px; background: var(--surface); }
.ledger caption { text-align: left; font-size: .95rem; color: var(--muted); padding-bottom: 10px; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 16px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger th { width: 160px; font-weight: 500; color: var(--copper-deep); white-space: nowrap; }
@media (max-width: 699px) {
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto; }
  .ledger caption { display: block; }
  .ledger th { border-bottom: 0; padding-bottom: 2px; }
  .ledger td { border-top: 0; padding-top: 0; }
}
.source { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }
.source a { display: inline-flex; align-items: center; min-height: 44px; }
.ch-yonbip .source a { display: inline; }

/* 04 YonBIP */
.yonbip-grid { display: grid; gap: 32px; }
.yonbip-statement { font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.7; letter-spacing: .08em; margin: 0; color: var(--graphite); word-break: auto-phrase; text-wrap: balance; }
.spec { margin: 28px 0 0; border-top: 1px solid var(--graphite); }
.spec > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--copper-deep); font-weight: 500; font-size: .95rem; }
.spec dd { margin: 0; }
@media (min-width: 900px) {
  .yonbip-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .yonbip-statement { position: sticky; top: 40px; }
  .spec > div { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
}

/* 05 流れ（帳簿のように番号・見出し・内容を一行ずつ並べる） */
.flow-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--graphite); }
.flow-ledger li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fl-no { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; line-height: 1.2; color: var(--copper); }
.flow-ledger h3 { font-weight: 500; font-size: 1.15rem; letter-spacing: .06em; margin: 2px 0 4px; color: var(--graphite); }
.flow-ledger p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .flow-ledger li { grid-template-columns: 72px minmax(0, 1fr); padding: 22px 0; }
  .flow-ledger li > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: baseline; }
  .flow-ledger h3 { margin: 0; }
}

/* 06 FAQ */
.faq-list { max-width: 880px; margin-left: auto; border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; position: relative; padding: 22px 52px 22px 0; min-height: 44px; font-size: 1.08rem; font-weight: 500; letter-spacing: .04em; color: var(--graphite); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 1px solid var(--copper); border-bottom: 1px solid var(--copper); transform: rotate(45deg); transition: transform .2s ease-out; }
.faq-list details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq-list details p { margin: 0; padding: 0 0 24px; color: var(--muted); max-width: 40em; }

/* 07 会社概要 */
.company-grid { display: grid; gap: 36px; }
.company-table { margin: 0; border-top: 1px solid var(--graphite); }
.company-table > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.company-table dt { color: var(--copper-deep); font-weight: 500; }
.company-table dd { margin: 0; }
.company-table a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; }
.company-photo { margin: 0; }
.company-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.75) contrast(1.03); }
@media (min-width: 900px) {
  .company-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: end; }
  .company-table > div { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
}

/* お問い合わせ（石墨の面） */
.contact { background: var(--graphite); color: var(--paper-ink); padding-block: clamp(72px, 10vw, 120px); }
.contact-grid { display: grid; gap: 36px; }
.contact h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: .1em; line-height: 1.45; margin: 0 0 12px; color: #fff; }
.contact-head p { color: var(--stone); }
.form-status { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--copper-light); color: #F1DCC6; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { color: var(--paper-ink); font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid #6F737A; border-radius: 2px; }
fieldset[disabled] .field input, fieldset[disabled] .field select, fieldset[disabled] .field textarea { background: #E4DFD5; cursor: not-allowed; }
.contact :focus-visible { outline-color: var(--copper-light); }
.btn-submit { width: 100%; }
.btn-submit:disabled { background: #6F737A; cursor: not-allowed; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; } }

/* フッター */
.site-footer { background: var(--graphite-2); color: var(--stone); border-top: 1px solid var(--copper); }
.site-footer a { color: var(--paper-ink); text-decoration: none; }
@media (hover: hover) { .site-footer a:hover { color: #fff; text-decoration: underline; } }
.footer-grid { display: grid; gap: 28px; padding: 56px 0 28px; }
.footer-mark { font-size: 1.45rem; letter-spacing: .24em; color: #fff; margin-bottom: 10px; }
.footer-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.footer-index a { display: flex; align-items: center; min-height: 44px; font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(237, 232, 223, .16); padding: 18px 0 28px; font-size: .86rem; }
.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; } }

/* 第三轮：节奏与排版细节（auteur build.md） */
/* 纵向节奏按内容密度分三档：密（列表/问答）、基准、疏（签名附近的陈述段） */
.ch-flow, .ch-faq, .ch-company { padding-block: clamp(52px, 6.5vw, 88px); }
.ch-yonbip { padding-block: clamp(88px, 12vw, 156px); }
/* 段落末行不留孤字 */
p, li, dd { text-wrap: pretty; }

/* Fourth review: preserve the site identity, improve reading and preparation. */
:root { --prep-accent:#8A5230; --prep-line:#6F737A; }
[hidden] { display:none !important; }
.hero-action-note { margin:16px 0 0; color:var(--muted); font-size:.875rem; line-height:1.8; max-width:35em; }
.hero-actions { gap:12px 20px; }
.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 { margin-bottom:22px; }
.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:.8rem; margin-left:8px; }
.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-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; margin:0 0 10px; }
.prep-result p { font-size:.92rem; }
.prep-result textarea { display:block; width:100%; padding:16px; margin-bottom:16px; background:#fff; color:#182238; font:inherit; font-size:1rem; line-height:1.8; border:1px solid var(--prep-line); border-radius:2px; }
.prep-status { margin-top:16px; font-size:.92rem; font-weight:600; }
.policy-source { width:min(1080px,calc(100% - 40px)); margin:28px auto 0; font-size:.9rem; color:var(--muted); }
.policy-source a { display:inline-flex; align-items:center; min-height:44px; }
:is(button,a,input,textarea,select,summary){touch-action:manipulation;scroll-margin-top:100px;}
.is-open { overscroll-behavior:contain; }
@media(max-width:699px){
 .hero-actions > :is(.btn,.pill) { padding-inline:20px; }
 .prep-actions { gap:8px 18px; }
 .prep-actions > :first-child { width:100%; }
 .hero-action-note { font-size:.82rem; }
}
@media(prefers-reduced-motion:reduce){ *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }

.contact .prep-intro,.contact .prep-result p,.contact .prep-secondary {color:var(--paper-ink);} .contact .prep-privacy,.contact .field-hint {color:#CBC7BF;} .contact .prep-error {color:#FFD3BC;} .contact .prep-result h3 {color:#fff;} .contact .prep-status {color:#F1DCC6;}
@media(max-width:699px){.hero-copy{padding-top:36px;}}

#contact { scroll-margin-top:100px; }

/* 第五轮：Vercel Web Interface Guidelines ＋ 日文排版（JLREQ）细节 */
html { -webkit-tap-highlight-color: rgba(156, 94, 54, .14); } /* 点按高亮用品牌色，替代默认灰块 */
body { text-autospace: normal; } /* 和文与英数字之间自动留约 1/8em（Chrome 140+／Safari 18.4+，旧浏览器忽略） */
h1, h2, h3, blockquote { text-spacing-trim: trim-start; } /* 行首「」括号去掉半角空白，与左边线视觉对齐 */
p, dd, ul:not([class]) > li, ol:not([class]) > li { max-width: 42em; } /* 日文正文每行不超过约 42 字 */
table, dl { font-variant-numeric: tabular-nums; }
#chapters { overscroll-behavior: contain; } /* 菜单/目录内滚动到底时不带动页面 */


/* ============================================================
   第六轮「高级感」：章节编号＋纸卡层次＋错位铜线框照片＋石墨面颗粒
   配色不变（米白・石墨・铜，铜仍只做点睛）；直角系，圆角只到 4px。
   ============================================================ */
:root {
  --r: 4px;
  --sh-1: 0 1px 2px rgba(33, 35, 39, .05), 0 6px 18px -6px rgba(33, 35, 39, .10);
  --sh-1h: 0 2px 4px rgba(33, 35, 39, .06), 0 10px 18px -8px rgba(33, 35, 39, .14);
  --sh-2: 0 2px 6px rgba(33, 35, 39, .08), 0 36px 72px -32px rgba(33, 35, 39, .42);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --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.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.btn { gap: 12px; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), translate .2s var(--ease); }
.btn-graphite { box-shadow: 0 1px 2px rgba(33, 35, 39, .25), 0 12px 24px -14px rgba(33, 35, 39, .7); }
.btn-graphite::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) { .btn-graphite:hover { translate: 0 -1px; } .btn-graphite:hover::after { translate: 3px 0; } }

/* 首屏：标题放大；照片加高，背后错位一圈铜色细线框 */
.hero { position: relative; isolation: isolate; }
.hero h1 { font-size: clamp(2.2rem, 1rem + 3.6vw, 3.9rem); line-height: 1.45; }
.hero-label { display: inline-flex; align-items: center; gap: 14px; }
.hero-label::before { content: ""; width: 32px; height: 1px; background: var(--copper); }
.hero-photo { position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 18px -14px -18px 18px; border: 1px solid var(--copper-light); z-index: -1; }
.hero-photo img { box-shadow: var(--sh-2); }
@media (min-width: 1000px) {
  .hero-photo::before { inset: 24px 24px -24px -24px; }
  .hero-photo img { aspect-ratio: 4 / 5; max-height: 680px; }
}

/* 章标题：加 01–07 章号（真实的目录顺序），字号放大 */
main { counter-reset: ch; }
.chapter { counter-increment: ch; }
.chapter-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; align-items: start; max-width: 860px; }
.chapter-head::before { grid-row: 1 / span 2; content: counter(ch, decimal-leading-zero); width: auto; height: auto; margin: 0; padding-top: 2px; background: none; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, .9rem + .6vw, 1.4rem); letter-spacing: .14em; color: var(--copper); border-top: 2px solid var(--copper); padding-top: 12px; line-height: 1; }
.chapter-head h2 { font-size: clamp(1.85rem, 1rem + 2.4vw, 2.85rem); }

/* 课题：纸卡 2×2 */
.issues-list { display: grid; gap: 14px; }
.issue { padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); transition: translate .3s var(--ease), box-shadow .3s var(--ease); }
@media (hover: hover) { .issue:hover { translate: 0 -3px; box-shadow: var(--sh-1h); } }
@media (min-width: 900px) { .issues-list { column-gap: 16px; row-gap: 16px; } }
.issues-close { border-top: 0; padding: 22px 28px; background: var(--graphite); color: var(--paper-ink); border-radius: var(--r); margin-top: 16px; }

/* 支援内容：三段阶梯卡片（保留错落） */
.stage { padding: 28px 28px 22px; border: 1px solid var(--line); border-top: 2px solid var(--copper); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.stage h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; }

/* 补助金：照片铜线框，两栏与资料表做成纸卡 */
.subsidy-photo { position: relative; isolation: isolate; }
.subsidy-photo img { box-shadow: var(--sh-1); }
.subsidy-cols > div { padding: 26px 26px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ledger { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; }
.ledger caption { caption-side: top; }
.ledger th, .ledger td { border-bottom: 0; padding: 18px 24px; }
.ledger tr:first-child > * { border-top: 0; }
.ledger th { background: #F1EDE4; }

/* YonBIP：陈述句放大，资料做成纸卡 */
.yonbip-statement { font-size: clamp(1.7rem, 1rem + 2.4vw, 2.8rem); line-height: 1.6; }
.spec { padding: 6px 28px 10px; border: 1px solid var(--line); border-top: 2px solid var(--graphite); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.spec > div:last-child { border-bottom: 0; }

/* 流程：章号式大数字，行悬停 */
.flow-ledger li { transition: background-color .25s var(--ease); padding-inline: 12px; margin-inline: -12px; }
.fl-no { font-size: 2.1rem; }
@media (hover: hover) { .flow-ledger li:hover { background: var(--surface); } }

/* FAQ：卡片式问答 */
.faq-list { border-bottom: 0; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 24px; transition: box-shadow .25s var(--ease); }
.faq-list details[open] { box-shadow: var(--sh-1); }

/* 会社概要 */
.company-table { padding: 4px 28px 8px; border: 1px solid var(--line); border-top: 2px solid var(--graphite); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.company-table > div:last-child { border-bottom: 0; }
.company-photo img { box-shadow: var(--sh-1); }

/* 相談メモ（石墨面）：加颗粒与内框 */
.contact { position: relative; isolation: isolate; background: radial-gradient(70% 100% at 0% 0%, #34383E 0%, rgba(52, 56, 62, 0) 60%), var(--graphite); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); }
.contact-form { padding: clamp(22px, 4vw, 40px); border: 1px solid rgba(237, 232, 223, .16); border-radius: var(--r); background: rgba(255, 255, 255, .03); }
.btn-copper { box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .7); }

/* 动效：区块随滚动浮现（scroll-driven；不支持的浏览器直接显示） */
@keyframes sk-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .chapter-head, .issue, .issues-close, .stage, .subsidy-photo, .subsidy-cols > div, .ledger, .yonbip-statement, .spec, .flow-ledger li, .faq-list details, .company-table, .company-photo, .contact-form {
      animation: sk-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 200px;
    }
  }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.skip:hover { color: #fff; }

/* ==== 第八轮：多页面（自动生成，勿手改） ==== */
:root { --more-wrap: 1080px; --more-gutter: var(--gutter); --more-ink: var(--copper-deep); }
.footer-title { margin: 0 0 8px; font-size: .84rem; letter-spacing: .2em; color: var(--copper-light); }
.footer-grid-3 .footer-index { grid-template-columns: minmax(0, 1fr); }
.chapters .chapters-sub { margin-top: 28px; }
.chapters .chapters-pages { list-style: none; margin: 0; padding: 0; }
.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); }
/* ==== 第八轮：多页面 结束 ==== */

/* ご相談フォーム：送信対応（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; }
