/* 共通の色と端末書体。元のページは保持し、最後に読み込んで上書きする。 */
:root {
  --theme-primary: #195f4d;
  --theme-deep: #124437;
  --theme-ink: #263d34;
  --theme-muted: #56675f;
  --theme-line: #e1e8e3;
  --theme-bg: #ffffff;
  --theme-band: #f7faf7;
  --theme-panel: #eef5f1;
  --theme-font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

/* 本文側の再定義も、同じ組で置き換える。意味の色には触れない。 */
:root, body.tomos-corporate, body.tomos-corporate.tone-soft {
  --color-welza-bg: #ffffff;
  --color-welza-paper: #ffffff;
  --color-welza-paper-2: #f7faf7;
  --color-welza-ink: #263d34;
  --color-welza-ink-2: #56675f;
  --color-welza-ink-3: #56675f;
  --color-welza-ink-4: #56675f;
  --color-welza-rule: #e1e8e3;
  --color-welza-rule-soft: #e1e8e3;
  --color-welza-accent: #195f4d;
  --color-welza-accent-deep: #124437;
  --color-welza-accent-soft: #eef5f1;
  --color-welza-accent-bg: #f7faf7;
  --color-welza-accent-line: #e1e8e3;
  --color-welza-teal: #195f4d;
  --color-welza-invert: #124437;
  --color-welza-invert-2: #195f4d;
  --color-welza-invert-ink: #ffffff;
  --color-welza-invert-ink-2: #eef5f1;
  --color-welza-pop: #195f4d;
  --color-welza-pop-soft: #eef5f1;
  --color-welza-pop-ink: #ffffff;
  --color-welza-mint: #eef5f1;
  --color-welza-cream-deep: #eef5f1;
  --color-welza-cream: #ffffff;
  --color-welza-cream-band: #f7faf7;
  --color-welza-cream-card: #ffffff;
  --color-welza-cream-line: #e1e8e3;
  --shadow-soft: 0 24px 64px -28px rgb(38 61 52 / .22), 0 2px 8px rgb(38 61 52 / .05);
  --shadow-soft-sm: 0 10px 30px -14px rgb(38 61 52 / .16);
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-round: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

:root {
  --ink: var(--theme-ink);
  --muted: var(--theme-muted);
  --teal: var(--theme-primary);
  --deep: var(--theme-deep);
  --pale: var(--theme-band);
  --orange: var(--theme-primary);
  --gold: var(--theme-muted);
  --line: var(--theme-line);
}
body { font-family: var(--theme-font); }
body:not(.tomos-corporate) .big-result b,
body:not(.tomos-corporate) .journey-title .n { font-family: var(--theme-font); }

/* 淡いバッジと反転面では、同じ変数の用途ごとに文字色を補う。 */
.tomos-corporate .badge-pop { color: var(--theme-primary); }
.tomos-corporate .section.invert .badge-pop { background: var(--theme-primary); color: var(--theme-bg); }
.tomos-corporate .section.invert .eyebrow { color: var(--theme-panel); }
body.tomos-corporate.tone-soft .section.invert .eyebrow { color: var(--theme-primary); }
.tomos-corporate .beforeafter .ba-arrow { color: var(--theme-primary); }
.tomos-corporate input:focus, .tomos-corporate textarea:focus,
.tomos-corporate select:focus { outline-color: var(--theme-primary); }

/* LP の直書き色。画像内の色は変更しない。 */
body:not(.tomos-corporate) :is(a, button, summary, input):focus-visible { outline-color: var(--theme-primary); }
body:not(.tomos-corporate) .btn { box-shadow: 0 4px 0 var(--theme-deep); }
body:not(.tomos-corporate) .btn:hover { background: var(--theme-deep); border-color: var(--theme-deep); }
body:not(.tomos-corporate) .btn.secondary:hover { background: var(--theme-panel); border-color: var(--theme-primary); color: var(--theme-deep); }
body:not(.tomos-corporate) :is(.btn.small, .btn.secondary, .mobile-cta .btn) { box-shadow: none; }
body:not(.tomos-corporate) .hero { background: linear-gradient(120deg, var(--theme-band), white 70%); }
body:not(.tomos-corporate) .v3-hero { background: linear-gradient(180deg, var(--theme-band), white); }
body:not(.tomos-corporate) .hero h1 em { background: linear-gradient(transparent 76%, var(--theme-panel) 76%); }
body:not(.tomos-corporate) :is(.draft-bar, .support-section, .image-button) { background: var(--theme-band); }
body:not(.tomos-corporate) :is(.draft-bar, .photo-caption, .reason-head, .reason .r-label) { color: var(--theme-muted); }
body:not(.tomos-corporate) :is(.benefit-icon, .calc-banner, .calc-result, .pricing, .last-cta,
  .device-stage, .journey-step:nth-of-type(3) .device-stage, .journey-step:nth-of-type(5) .device-stage,
  .mic-circle, .sheet-top small, .check-chip, .browser-top, .destination-field) { background: var(--theme-panel); }
body:not(.tomos-corporate) .compare-box h3 { background: var(--theme-panel); color: var(--theme-muted); }
body:not(.tomos-corporate) .compare-box.after h3 { background: var(--theme-deep); color: white; }
body:not(.tomos-corporate) .calc-banner { color: var(--theme-primary); }
body:not(.tomos-corporate) .input-wrap input { border-color: var(--theme-line); background: var(--theme-band); }
body:not(.tomos-corporate) :is(.floating-screen img, .calc-shell, .monthly, .reason-grid, .reason,
  .mic-circle, .voice-bubble, .voice-bubble:before, .record-sheet, .sheet-top, .browser-top,
  .destination-field, .support-card) { border-color: var(--theme-line); }
body:not(.tomos-corporate) .reason-grid { background: var(--theme-band); }
body:not(.tomos-corporate) .bar-track { background: var(--theme-panel); }
body:not(.tomos-corporate) .bar-fill.before { background: var(--theme-muted); }
body:not(.tomos-corporate) :is(.consult-band p, .setup-promise p) { color: var(--theme-panel); }
body:not(.tomos-corporate) .start-item { border-top-color: var(--theme-primary); }
body:not(.tomos-corporate) dialog::backdrop { background: rgb(18 68 55 / .74); }
body:not(.tomos-corporate) :is(.phone, .desktop-screen) { border-color: var(--theme-deep); }
body:not(.tomos-corporate) .phone:before { background: var(--theme-deep); }
body:not(.tomos-corporate) .phone:after { background: var(--theme-line); }
body:not(.tomos-corporate) :is(.browser-top i, .desktop-stand, .desktop-base) { background: var(--theme-muted); }
body:not(.tomos-corporate) .yours-flow .arrow-small { color: var(--theme-muted); }
body:not(.tomos-corporate) .done { background: var(--theme-primary); }
body:not(.tomos-corporate) .floating-screen { box-shadow: 0 13px 30px rgb(38 61 52 / .15); }
body:not(.tomos-corporate) .wide-screen .image-button { box-shadow: 0 12px 30px rgb(38 61 52 / .06); }
body:not(.tomos-corporate) .phone { box-shadow: 0 10px 15px rgb(38 61 52 / .08); }
body:not(.tomos-corporate) .voice-bubble { box-shadow: 0 5px 15px rgb(38 61 52 / .13); }
body:not(.tomos-corporate) .record-sheet { box-shadow: 0 10px 17px rgb(38 61 52 / .06); }
body:not(.tomos-corporate) .desktop-screen { box-shadow: 0 12px 18px rgb(38 61 52 / .06); }

/* 反転帯の安心事項と札の飾りを、帯の配色に合わせる。 */
.tomos-corporate .section.invert .assure { background: var(--theme-deep); color: var(--theme-bg); }
.tomos-corporate .section.invert .assure span::before { color: var(--theme-bg); }
.tomos-corporate .section.invert .badge-pop::before { content: none; }
