/* 解説記事 /guide/。トップと同じ標識の黄と黒で、要点・章・出典・行動を形で分ける(経営/デザイン原則.md)。色はすべて既定値付き */
.stripe { height: 14px; background: repeating-linear-gradient(135deg, #111 0 14px, #ffd400 14px 28px); }
.top-head { background: #111; color: #fff; }
.top-head .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; color: #fff; font-weight: 800; font-size: 1.0625rem; letter-spacing: .04em; text-decoration: none; font-feature-settings: "palt"; }
.brand svg { width: 26px; height: 26px; flex: none; }
.top-head nav a { display: inline-block; color: #fff; font-size: .9375rem; font-weight: 700; text-decoration: none; padding: 12px 0; min-width: 44px; text-align: right; }

.guide-page main { max-width: none; padding: 0 0 96px; }

/* 冒頭: 黄色の面。見出しと要点、右に記事ごとの絵 */
.g-hero { background: #ffd400; color: #111; }
.g-hero-in { max-width: 1120px; margin: 0 auto; padding: 20px 20px 28px; display: grid; gap: 4px; }
.g-hero a, .g-hero p, .g-hero .muted { color: #111; }
.g-hero h1 { font-size: clamp(1.625rem, 7vw, 2.625rem); line-height: 1.32; font-weight: 900; letter-spacing: .01em; margin: 8px 0 18px; }
.g-kind { display: inline-block; background: #111; color: #ffd400 !important; font-size: .8125rem; font-weight: 800; letter-spacing: .08em; padding: 2px 10px; border-radius: 2px; margin: 0 6px 0 0; }
.g-answer { position: relative; background: #fff; color: #111; border: 3px solid #111; border-radius: 2px; padding: 22px 18px 6px; margin: 6px 0 14px; box-shadow: 6px 6px 0 #111; }
.g-answer::before { content: "要点"; position: absolute; top: -14px; left: 14px; background: #111; color: #ffd400; font-size: .8125rem; font-weight: 900; letter-spacing: .12em; padding: 2px 10px; line-height: 1.6; }
.g-answer .lead { color: #111; font-size: 1.0625rem; line-height: 1.85; font-weight: 600; max-width: none; }
.g-art svg { display: block; width: 100%; max-width: min(360px, 78vw); height: auto; margin: 4px auto 0; }

/* 本文と横の確認欄 */
.g-body { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: grid; gap: 0; }
.g-main { min-width: 0; counter-reset: g; }
.g-main > .section { margin-top: 48px; }
.g-main > .section > h2 { counter-increment: g; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: clamp(1.25rem, 5.2vw, 1.625rem); line-height: 1.45; font-weight: 900; padding-top: 14px; border-top: 5px solid var(--rule, #111); margin-bottom: 14px; }
.g-main > .section > h2::before { content: counter(g, decimal-leading-zero); background: #ffd400; color: #111; font-size: .9375rem; font-weight: 900; line-height: 1; padding: 8px 7px; margin-top: .2em; border-radius: 2px; font-variant-numeric: tabular-nums; }
.g-main > .section:empty { display: none; }
.g-main .section > p, .g-main .section > ul { max-width: 38em; }
.g-main .card { border: 0; border-left: 6px solid #ffd400; background: var(--sign-soft, #fff7cc); border-radius: 0; padding: 16px 18px; color: var(--text, #111); }
.g-main .card h3 { font-size: 1.0625rem; font-weight: 900; margin-bottom: 6px; }
.g-main ul li::marker { color: var(--text, #111); }
.g-main strong { background: linear-gradient(transparent 62%, rgba(255,212,0,.55) 62%); }
/* 段落の見出し(ブロック表示)には蛍光ペンを引かない。最後の行の下に行末までの帯だけが出るため(2026-11-07 監査) */
.g-main .clauses li strong { background: none; }

/* 最後の案内: 黄色の面 */
.g-main > .section.g-final { background: #ffd400; color: #111; padding: 4px 18px 22px; border-radius: 2px; }
.g-final > h2 { border-top: 0 !important; color: #111; }
.g-final > h2::before { background: #111 !important; color: #ffd400 !important; }
.g-final p, .g-final .muted, .g-final a { color: #111; }
.g-final .cta { background: #111; color: #fff; font-size: 1.125rem; font-weight: 800; min-height: 64px; max-width: 460px; border-radius: 6px; box-shadow: 0 5px 0 rgba(0,0,0,.28); }
.g-final .cta:hover { background: #2a2a2a; }
.g-final .cta:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.28); }

/* 出典と注意: 書類の欄外の形 */
.g-main > footer { margin-top: 40px; border-top: 3px solid var(--rule, #111); color: var(--muted, #55585c); }

/* 横の確認欄(スマホでは冒頭の下の黒い帯) */
.g-side { margin: 0 -20px; background: #111; color: #fff; padding: 18px 20px 20px; }
.g-side-k { color: #ffd400; font-weight: 900; font-size: 1.0625rem; line-height: 1.5; margin: 0 0 10px; }
.g-side ol { list-style: none; padding: 0; margin: 0 0 14px; }
.g-side li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: #f1f1ee; font-size: .9375rem; line-height: 1.6; padding: 7px 0; border-bottom: 1px solid #333; max-width: none; margin: 0; }
.g-side li::before { content: ""; width: 18px; height: 18px; border: 2px solid #ffd400; border-radius: 2px; margin-top: 3px; }
.g-side .g-side-note { color: #b9b9b4; font-size: .875rem; margin: 0 0 12px; }
.g-side a.g-btn { display: block; min-height: 56px; padding: 14px; background: #ffd400; color: #111; font-weight: 900; text-decoration: none; border-radius: 6px; box-shadow: 0 4px 0 #8a7300; text-align: center; line-height: 1.45; }
.g-side a.g-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a7300; }
.g-side a.g-sub { display: inline-block; color: #fff; font-size: .875rem; margin-top: 10px; padding: 8px 0; min-height: 44px; }

@media (min-width: 900px) {
  .g-hero-in { grid-template-columns: 1.5fr 1fr; align-items: center; column-gap: 48px; padding-top: 28px; padding-bottom: 40px; }
  .g-body { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 56px; align-items: start; }
  .g-side { grid-column: 2; grid-row: 1; margin: 48px 0 0; position: sticky; top: 20px; padding: 22px 20px; border-radius: 2px; box-shadow: 8px 8px 0 #ffd400; }
  .g-main { grid-column: 1; grid-row: 1; }
}
@media (prefers-color-scheme: dark) {
  .g-main .card { background: #26230f; color: #f1f1ee; }
  .g-main strong { background: linear-gradient(transparent 62%, rgba(255,212,0,.32) 62%); }
  .g-main .clauses li strong { background: none; }
  .g-side { outline: 2px solid #ffd400; outline-offset: -2px; }
}
@media print {
  .top-head, .stripe, .g-art, .g-side { display: none; }
  .g-hero, .g-final { background: #fff !important; color: #111 !important; }
  .g-final *, .g-hero * { color: #111 !important; }
  .g-answer { box-shadow: none; }
  .g-main > .section > h2::before { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
.g-hero h1, .g-hero-text > p.small { text-wrap: balance; word-break: auto-phrase; }
.nw { white-space: nowrap; }
