/* 新事業(広告の無駄診断 / 広告文の法令チェック)の共通の見た目。
   視覚言語(CDO 2026-11-19): 「広告費に赤ペンを入れる」。紙の白・墨・朱の赤ペン・判子。
   ここには両ページで同じもの(変数・body・見出し・.card・.btn・入力欄・details・footer・ダーク・印刷)だけを置く。
   LP 固有(FV の絵・赤線・見本の紙)は index.html に、/check/ 固有(法ごとの札・印)は check/index.html に残す(エンジニアB 11/19)。 */
:root { --ink: #17140f; --mute: #5f584c; --line: #e2dccf; --bg: #f5f1e8; --paper: #fffdf8; --card: #fffdf8; --red: #d93a1f; --red-ink: #fff; --red-soft: #fde6df; --acc: #17140f; --acc-ink: #fffdf8; --warn: #b8301a; --warn-bg: #fdebe5; --ok: #1d6b3a; --ok-bg: #e9f4ec; --watch-bg: #fbf2dc; --rule: #c9dbe9; }
* { box-sizing: border-box; }
html { line-break: strict; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; font-feature-settings: "palt"; word-break: auto-phrase; }
main { max-width: 760px; margin: 0 auto; padding: 8px 16px 64px; }
h1 { font-size: 29px; line-height: 1.32; margin: 2px 0 8px; font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: 21px; line-height: 1.4; margin: 36px 0 10px; font-weight: 900; }
h3 { font-size: 17px; line-height: 1.4; margin: 0 0 6px; font-weight: 900; }
p { margin: 0 0 12px; }
.lead { font-size: 16px; margin-bottom: 10px; }
.mute { color: var(--mute); font-size: 14px; }
.card { background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; padding: 16px; margin: 16px 0; box-shadow: 5px 5px 0 var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 20px; border-radius: 4px; border: 0; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .08s; }
.btn.p { background: var(--red); color: var(--red-ink); width: 100%; font-size: 18px; box-shadow: 0 4px 0 #8f2410; }
.btn.p:active { transform: translateY(3px); box-shadow: 0 1px 0 #8f2410; }
.btn.s { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); min-height: 48px; }
.btn.s:active { transform: translateY(2px); }
.btn:focus-visible, .more:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid #2f6fdb; outline-offset: 2px; }
label.field { display: block; margin: 12px 0 0; font-weight: 700; }
input[type="text"], input[type="number"] { font: inherit; min-height: 44px; width: 100%; padding: 8px 12px; border: 1.5px solid #8d8576; border-radius: 4px; background: #fff; color: var(--ink); }
textarea { width: 100%; min-height: 140px; font: inherit; padding: 10px; border: 1.5px solid #8d8576; border-radius: 4px; background: #fff; color: var(--ink); resize: vertical; }
details { margin: 6px 0; }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 15px; line-height: 1; }
details[open] > summary::before { content: "−"; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hide { display: none !important; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); margin-right: 4px; }
.note { background: var(--ok-bg); border-left: 4px solid var(--ok); padding: 10px 14px; font-size: 14px; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1.5px solid var(--ink); font-size: 13px; color: var(--mute); }
@media (max-width: 374px) { h1 { font-size: 26px; } .lead { font-size: 14.5px; } }
@media (min-width: 640px) { .btn.p { width: auto; min-width: 300px; } }
@media (prefers-color-scheme: dark) {
  :root { --ink: #efe9dc; --mute: #b4ab9b; --line: #3a352c; --bg: #14120e; --paper: #1e1b16; --card: #1e1b16; --red: #ff6b4f; --red-ink: #1a0a05; --red-soft: #3a1d15; --acc: #efe9dc; --acc-ink: #14120e; --warn: #ff8f78; --warn-bg: #3a1d15; --ok: #82d39d; --ok-bg: #16301f; --watch-bg: #3a2f14; --rule: #2c3640; }
  .card { box-shadow: 5px 5px 0 #000; }
  .btn.p { box-shadow: 0 4px 0 #8f2410; }
  input[type="text"], input[type="number"], textarea { background: #0f0d0a; color: var(--ink); border-color: #5a5346; }
}
@media print { .btn, footer { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }
