/* A4 両面「助成金対象診断® ご案内」— 画面では 2 枚を並べて見せ、印刷すると A4 2 ページになる */
body.annai { background: #E6EAF1; }
.annai-bar { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.annai-bar__in { max-width: 1080px; margin-inline: auto; padding: 12px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.annai-bar h1 { font-size: 17px; }
.annai-bar p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.annai-bar__act { display: flex; align-items: center; gap: 16px; }
.annai-bar__back { font-size: 14px; white-space: nowrap; }
.annai-sheets { display: grid; gap: 24px; justify-content: center; padding: 24px 0 64px; overflow-x: auto; }

/* 1 枚 = 210mm × 297mm。画面が狭いときは全体を縮めて見せる（site.js が --a4-scale を入れる） */
.a4 { width: 210mm; height: 297mm; padding: 13mm 13mm 11mm; background: #fff; color: var(--ink); box-shadow: 0 10px 40px rgba(14, 47, 91, .18); display: flex; flex-direction: column; justify-content: space-between; gap: 5mm; font-size: 9.5pt; line-height: 1.65; overflow: hidden; zoom: var(--a4-scale, 1); }
.a4__head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 3mm; border-bottom: .6mm solid var(--ink); }
.a4__brand { display: flex; align-items: center; gap: 4mm; line-height: 1.3; }
.a4__brand img { display: block; height: 9mm; width: auto; }
.a4__brand b { font-family: var(--head); font-weight: 900; font-size: 14pt; padding-left: 4mm; border-left: .3mm solid var(--line); }
.a4__slogan { font-family: var(--head); font-weight: 700; font-size: 10pt; color: var(--ai); }
.a4__hero h2 { font-size: 25pt; line-height: 1.3; margin-bottom: 3mm; }
.a4__hero h2 .ln { display: inline-block; }
.a4__hero p { font-family: var(--head); font-weight: 700; font-size: 11.5pt; }
.a4__points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2mm; margin-top: 3mm; counter-reset: pt; }
.a4__points li { counter-increment: pt; display: flex; align-items: center; gap: 2mm; padding: 2mm 2.5mm; border: .3mm solid var(--line); border-radius: 2mm; font-family: var(--head); font-weight: 700; font-size: 8.5pt; line-height: 1.35; }
.a4__points li::before { content: counter(pt); flex: 0 0 5mm; height: 5mm; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 7.5pt; }
.a4__sample { border: .4mm solid var(--ink); border-radius: 3mm; overflow: hidden; }
.a4__samplehead { display: flex; justify-content: space-between; align-items: center; padding: 2mm 4mm; background: var(--ink); color: #fff; font-family: var(--head); font-size: 10pt; }
.tiles--a4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.tiles--a4 .tile { padding: 3mm 4mm; border-right: .3mm solid var(--line); border-bottom: .3mm solid var(--line); }
.tiles--a4 .tile:last-child { border-right: 0; }
.tiles--a4 .tile dt { font-size: 7.5pt; color: var(--muted); }
.tiles--a4 .tile dd { font-family: var(--head); font-weight: 900; font-size: 24pt; line-height: 1.2; }
.tiles--a4 .tile dd small { font-size: .42em; margin-left: .15em; }
.tiles--a4 .tile--2 { background: var(--kin-pale); }
.a4__abc { display: grid; grid-template-columns: repeat(3, 1fr); }
.a4__abc li { display: grid; grid-template-columns: auto 1fr; gap: 0 2.5mm; align-items: center; padding: 2.5mm 4mm; border-right: .3mm solid var(--line); }
.a4__abc li:last-child { border-right: 0; }
.a4__abc .pri { grid-row: span 2; width: 8mm; height: 8mm; font-size: 11pt; border-radius: 1.5mm; border-width: .5mm; }
.a4__abc b { font-family: var(--head); font-size: 9.5pt; line-height: 1.3; }
.a4__abc li > span:last-child { font-size: 7.5pt; color: var(--muted); line-height: 1.4; }
.a4__fine { font-size: 7pt; color: var(--muted); line-height: 1.5; }
.a4__sample .a4__fine { padding: 1.5mm 4mm; background: var(--paper); border-top: .3mm solid var(--line); }
.a4__h { display: flex; align-items: baseline; gap: 3mm; font-size: 12.5pt; padding-left: 3mm; border-left: 1.2mm solid var(--kin); line-height: 1.3; }
.a4__h small { font-family: var(--body); font-weight: 400; font-size: 7.5pt; color: var(--muted); }
.a4__know { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5mm; }
.a4__know li { padding: 3mm; border: .3mm solid var(--line); border-top: 1mm solid var(--ai); border-radius: 2mm; }
.a4__know span { font-family: var(--mono); font-size: 8pt; color: var(--ai); }
.a4__know b { display: block; font-family: var(--head); font-weight: 900; font-size: 13pt; line-height: 1.3; margin-bottom: 1mm; }
.a4__know p { font-size: 8pt; color: var(--muted); line-height: 1.55; }
.a4__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; padding: 4mm 6mm; background: var(--ink); color: #fff; border-radius: 3mm; }
.a4__stats dt { font-size: 8pt; color: #D5DEF0; }
.a4__stats dd { font-family: var(--head); font-weight: 900; font-size: 27pt; line-height: 1.15; }
.a4__stats dd small { font-size: .32em; margin-left: .3em; color: var(--kin); }
.a4__stats dd small:first-child { margin: 0 .2em 0 0; }
.a4__foot { display: flex; justify-content: space-between; padding-top: 2mm; border-top: .3mm solid var(--line); font-size: 7.5pt; color: var(--muted); }

.a4__flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5mm; counter-reset: st; }
.a4__flow li { counter-increment: st; position: relative; padding: 3mm; border: .3mm solid var(--line); border-radius: 2mm; }
.a4__flow li::before { content: counter(st); display: grid; place-items: center; width: 7mm; height: 7mm; border-radius: 50%; background: var(--ai); color: #fff; font-family: var(--mono); font-size: 9pt; margin-bottom: 1.5mm; }
.a4__flow li + li::after { content: "→"; position: absolute; left: -4.4mm; top: 5mm; font-family: var(--mono); color: var(--kin); font-size: 10pt; }
.a4__flow span { position: absolute; right: 2.5mm; top: 3.5mm; font-family: var(--head); font-weight: 900; font-size: 8pt; padding: 0 2mm; border-radius: 99mm; background: var(--kin-pale); box-shadow: inset 0 0 0 .3mm var(--kin); }
.a4__flow b { display: block; font-family: var(--head); font-size: 10pt; line-height: 1.35; margin-bottom: 1mm; }
.a4__flow p { font-size: 7.5pt; color: var(--muted); line-height: 1.5; }
.a4__two { display: grid; grid-template-columns: 1fr 1.15fr; gap: 7mm; }
.a4__two > div { display: grid; gap: 3mm; align-content: start; }
.a4__targets { display: grid; gap: 1.6mm; }
.a4__targets li { position: relative; padding: 2mm 3mm 2mm 9mm; border: .3mm solid var(--line); border-radius: 2mm; font-family: var(--head); font-weight: 700; font-size: 9.5pt; line-height: 1.4; }
.a4__targets li::before { content: ""; position: absolute; left: 3mm; top: 2.6mm; width: 3.4mm; height: 3.4mm; border: .4mm solid var(--ai); border-radius: .6mm; }
.a4__targets li::after { content: ""; position: absolute; left: 4.1mm; top: 2.5mm; width: 1.3mm; height: 2.6mm; border: solid var(--cta); border-width: 0 .6mm .6mm 0; transform: rotate(40deg); }
.a4__roles { display: grid; gap: 5mm; }
.a4__roles li { position: relative; padding: 2.5mm 3.5mm; border: .3mm solid var(--line); border-radius: 2mm; }
.a4__roles li:first-child { border: .5mm solid var(--ai); }
.a4__roles li + li::before { content: "↓"; position: absolute; left: 50%; top: -5.2mm; transform: translateX(-50%); font-family: var(--mono); color: var(--kin); font-size: 10pt; line-height: 1.4; }
.a4__roles span { font-family: var(--mono); font-size: 7.5pt; color: var(--ai); }
.a4__roles b { display: block; font-family: var(--head); font-size: 10.5pt; line-height: 1.4; }
.a4__roles p { font-size: 8pt; color: var(--muted); line-height: 1.5; }
.a4__bottom { display: grid; grid-template-columns: 1fr 1.15fr; gap: 7mm; align-items: stretch; }
.a4__price { display: grid; gap: 2.5mm; align-content: start; }
.a4__pricerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1mm 2.5mm; padding: 3mm 4mm; border: .3mm solid var(--line); border-radius: 2mm; }
.a4__pricerow span { font-size: 8.5pt; color: var(--muted); }
.a4__pricerow b { font-family: var(--head); font-weight: 900; font-size: 15pt; line-height: 1.2; }
.a4__pricerow b small { font-size: .5em; margin-left: .2em; }
.a4__pricerow i { font-style: normal; font-family: var(--mono); color: var(--kin); }
.a4__pricerow .a4__gold { padding: 0 2.5mm; border-radius: 99mm; background: var(--kin-pale); box-shadow: inset 0 0 0 .3mm var(--kin); color: var(--ink); font-weight: 700; }
.a4__pricerow .a4__zero { font-size: 26pt; color: var(--ai); }
.a4__cta { display: flex; align-items: center; gap: 5mm; padding: 5mm; background: var(--ink); color: #fff; border-radius: 3mm; }
.a4__cta .qr { flex: 0 0 31mm; height: 31mm; padding: 2mm; background: #fff; border-radius: 2mm; }
.a4__cta .qr svg { display: block; width: 100%; height: 100%; }
.a4__ctatitle { font-family: var(--head); font-weight: 900; font-size: 11pt; line-height: 1.5; }
.a4__ctatitle .ln { display: block; }
.a4__ctabtn { display: inline-block; white-space: nowrap; margin: 2.5mm 0 2mm; padding: 1.5mm 4mm; border-radius: 99mm; background: var(--cta); font-family: var(--head); font-weight: 700; font-size: 10pt; }
.a4__url { font-size: 7pt; color: #D5DEF0; white-space: nowrap; line-height: 1.4; letter-spacing: 0; }
.a4__caution { font-size: 7pt; color: var(--muted); line-height: 1.55; }

@page { size: A4; margin: 0; }
@media print {
  body.annai { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .annai-bar { display: none; }
  .annai-sheets { display: block; padding: 0; overflow: visible; }
  .a4 { zoom: 1; box-shadow: none; break-after: page; }
  .a4:last-child { break-after: auto; }
}

/* v3（2026-10-18） */
.a4__hero h2 .ln .ln { display: inline; }
.a4__total { display: flex; align-items: baseline; gap: 4mm; padding: 3mm 5mm; background: var(--kin-pale); border-bottom: .3mm solid var(--line); }
.a4__total span { font-size: 8.5pt; font-weight: 700; color: var(--muted); }
.a4__total b { font-family: var(--head); font-weight: 900; font-size: 30pt; line-height: 1.1; color: var(--ai); }
.a4__total b small { font-size: .38em; color: var(--ink); margin: 0 .1em; }
.a4__total em { margin-left: auto; font-style: normal; font-family: var(--head); font-weight: 700; font-size: 8.5pt; padding: .5mm 3mm; border-radius: 99mm; background: #fff; box-shadow: inset 0 0 0 .3mm var(--line); }
.a4__rows { display: grid; grid-template-columns: 1fr 1fr; }
.a4__rows li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5mm; padding: 1.8mm 4mm; border-bottom: .3mm dashed var(--line); font-size: 8.5pt; }
.a4__rows li:nth-child(odd) { border-right: .3mm solid var(--line); }
.a4__rows .pri { width: 6mm; height: 6mm; font-size: 8pt; border-radius: 1.2mm; border-width: .4mm; }
.a4__rows .row__amount { font-family: var(--head); font-weight: 900; font-size: 10.5pt; white-space: nowrap; }
.a4__rows .row__amount small { font-size: .65em; }
.a4__facts { display: grid; gap: 2mm; }
.a4__facts li { display: grid; gap: .5mm; padding: 2.5mm 3.5mm; background: var(--ink); color: #fff; border-radius: 2mm; }
.a4__facts b { font-family: var(--head); font-weight: 900; font-size: 12pt; color: var(--kin); line-height: 1.3; }
.a4__facts span { font-size: 8pt; line-height: 1.5; color: #E3E9F6; }
.a4__svc { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm; }
.a4__svc li { padding: 2.5mm 3mm; border: .3mm solid var(--line); border-top: 1mm solid var(--ai); border-radius: 2mm; }
.a4__svc span { font-family: var(--mono); font-size: 7.5pt; color: var(--ai); }
.a4__svc b { display: block; font-family: var(--head); font-size: 9.5pt; line-height: 1.35; }
.a4__svc p { font-size: 7.5pt; color: var(--muted); line-height: 1.45; }
.a4__chapters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5mm; }
.a4__chapters li { display: flex; align-items: center; gap: 1.5mm; padding: 1.5mm 2mm; border: .3mm solid var(--line); border-radius: 99mm; font-family: var(--head); font-weight: 700; font-size: 8pt; line-height: 1.2; }
.a4__chapters li span { flex: 0 0 5mm; height: 5mm; display: grid; place-items: center; border-radius: 50%; background: var(--ai); color: #fff; font-family: var(--mono); font-size: 7pt; }
.a4__chapters li:nth-child(4) { border-color: var(--ai); background: var(--sora); }
.a4__conds { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm; }
.a4__conds li { position: relative; padding: 2.5mm 3mm 2.5mm 11mm; border: .5mm solid var(--ai); border-radius: 2mm; font-family: var(--head); font-weight: 700; font-size: 9pt; line-height: 1.45; }
.a4__conds li::before { content: ""; position: absolute; left: 3mm; top: 50%; width: 5.5mm; height: 5.5mm; margin-top: -2.75mm; border-radius: 1.2mm; background: var(--ai) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 4mm no-repeat; }
.a4__conds li span { display: block; font-family: var(--mono); font-weight: 500; font-size: 7pt; color: var(--ai); }
.a4__steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3.5mm; }
.a4__steps li { position: relative; display: grid; justify-items: center; gap: 1mm; padding: 2.5mm 1.5mm; border: .3mm solid var(--line); border-radius: 2mm; text-align: center; }
.a4__steps li + li::before { content: "→"; position: absolute; left: -3.3mm; top: 3mm; font-family: var(--mono); color: var(--kin); font-size: 8pt; }
.a4__steps span { width: 6mm; height: 6mm; display: grid; place-items: center; border-radius: 50%; background: var(--ai); color: #fff; font-family: var(--mono); font-size: 8pt; }
.a4__steps b { font-family: var(--head); font-size: 7.5pt; line-height: 1.35; }
.a4__member { display: grid; gap: 1.5mm; }
.a4__member li { display: grid; padding: 2mm 3mm; background: linear-gradient(135deg, var(--ink), var(--ai)); color: #E3E9F6; border-radius: 2mm; font-size: 7.5pt; line-height: 1.45; }
.a4__member b { font-family: var(--head); font-size: 9.5pt; color: #fff; }
.a4__roles--compact { gap: 3.5mm; }
.a4__roles--compact li { padding: 1.8mm 3mm; }
.a4__roles--compact li + li::before { top: -4mm; }
.a4__roles--compact b { font-size: 9.5pt; }
.a4 .a4__two { gap: 6mm; }

/* v4（2026-10-27） */
.annai-bar__link { font-size: 14px; white-space: nowrap; }
.a4__brand { display: flex; align-items: center; gap: 4mm; line-height: 1.3; }
.a4__brand img { display: block; height: 9mm; width: auto; }
.a4__brand b { font-family: var(--head); font-weight: 900; font-size: 14pt; padding-left: 4mm; border-left: .3mm solid var(--line); }
.a4__hero h2 { font-size: 22pt; line-height: 1.35; margin-bottom: 2mm; }
.a4__hero h2 .ln { display: block; }
.a4__hero p { font-family: var(--head); font-weight: 700; font-size: 11pt; }
.a4__notice { padding: 4mm 5mm; background: var(--paper); border-left: 1.2mm solid var(--ai); }
.a4__notice .a4__h { border: 0; padding: 0; margin-bottom: 1mm; }
.a4__notice p { font-size: 9pt; line-height: 1.6; }
.a4__fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5mm; margin-top: 2.5mm; }
.a4__fields li { display: flex; align-items: center; gap: 1.5mm; padding: 1.5mm 2mm; background: #fff; border-radius: 1mm; font-family: var(--head); font-weight: 700; font-size: 8pt; line-height: 1.3; }
.a4__fields svg { flex: 0 0 auto; color: var(--ai); }
.a4__know { display: grid; gap: 2mm; counter-reset: k; }
.a4__know li { counter-increment: k; position: relative; display: grid; padding: 2.5mm 3mm 2.5mm 10mm; border: .3mm solid var(--line); border-radius: 1.5mm; }
.a4__know li::before { content: counter(k); position: absolute; left: 2.5mm; top: 2.5mm; width: 5.5mm; height: 5.5mm; display: grid; place-items: center; border-radius: 50%; background: var(--ai); color: #fff; font-size: 8pt; font-weight: 900; }
.a4__know b { font-family: var(--head); font-size: 10pt; line-height: 1.35; }
.a4__know span { font-size: 8pt; color: var(--muted); line-height: 1.5; }
.a4__price { display: grid; gap: 1mm; }
.a4__price b { font-family: var(--head); font-weight: 900; font-size: 26pt; line-height: 1.2; color: var(--ai); }
.a4__price b small { font-size: .38em; color: var(--ink); margin-left: 1mm; }
.a4__price span { justify-self: start; padding: .5mm 3mm; background: var(--kin-pale); border-left: 1mm solid var(--kin); font-family: var(--head); font-weight: 700; font-size: 9pt; }
.a4__covers { display: grid; gap: 1.2mm; margin-top: 3mm; font-size: 8pt; line-height: 1.5; }
.a4__covers li { position: relative; padding-left: 4mm; }
.a4__covers li::before { content: ""; position: absolute; left: .5mm; top: 1.6mm; width: 1.6mm; height: 1.6mm; border-radius: 50%; background: var(--cta); }
.a4__cases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2mm; }
.a4__cases li { display: grid; padding: 2mm 2.5mm; border: .3mm solid var(--line); border-top: 1mm solid var(--kin); border-radius: 1mm; }
.a4__cases span { font-size: 7pt; color: var(--muted); line-height: 1.35; }
.a4__cases b { font-family: var(--head); font-weight: 900; font-size: 13pt; color: var(--ai); }
.a4__cases b small { font-size: .5em; }
.a4__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm 4mm; counter-reset: none; }
.a4__steps li { position: relative; display: grid; gap: .5mm; padding: 2.5mm 3mm; border: .3mm solid var(--line); border-radius: 1.5mm; }
.a4__steps li span { width: 6mm; height: 6mm; display: grid; place-items: center; border-radius: 50%; background: var(--ai); color: #fff; font-size: 8pt; font-weight: 900; }
.a4__steps li:nth-child(7) span { background: #fff; color: var(--ai); border: .3mm dashed var(--ai); }
.a4__steps b { font-family: var(--head); font-size: 9pt; line-height: 1.35; }
.a4__steps small { font-size: 7pt; font-weight: 700; color: var(--cta); }
.a4__conds { display: grid; gap: 1.6mm; }
.a4__conds li { position: relative; padding: 2mm 3mm 2mm 9mm; border: .4mm solid var(--ai); border-radius: 1.5mm; font-family: var(--head); font-weight: 700; font-size: 8.5pt; line-height: 1.45; }
.a4__conds li::before { content: ""; position: absolute; left: 2.5mm; top: 50%; width: 4.5mm; height: 4.5mm; margin-top: -2.25mm; border-radius: 1mm; background: var(--ai) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 3.4mm no-repeat; }
.a4__p { font-size: 8.5pt; line-height: 1.6; margin-bottom: 2mm; }
.a4__roles { display: grid; gap: 2mm; }
.a4__roles li { padding: 2mm 3mm; border: .3mm solid var(--line); border-radius: 1.5mm; }
.a4__roles li:first-child { border: .5mm solid var(--ai); }
.a4__roles span { display: block; font-size: 7pt; font-weight: 700; color: var(--cta); }
.a4__roles b { font-family: var(--head); font-size: 9.5pt; }
.a4__ctabtn { background: var(--cta); border-radius: 1.5mm; }
.a4__ctatitle .ln { display: block; }
.a4 .a4__know { grid-template-columns: 1fr; }
.a4 .a4__know li { border-top: .3mm solid var(--line); }
.a4 .a4__know li span:not(:first-child) { font-family: var(--body); }
.a4 .a4__steps li + li::after { content: none; }
.a4 .a4__conds { grid-template-columns: 1fr; }
