/* いぬねこ健康ラボ 共通スタイル（スマホ優先） */
:root {
  --bg: #fff9ef;
  --card: #ffffff;
  --text: #4a4340;
  --muted: #7d7470;
  --mint: #5bbfa6;
  --mint-dark: #2f7f6d;
  --mint-soft: #e3f5ef;
  --pink-soft: #fde9ec;
  --sky-soft: #e6f3fa;
  --line: #efe4d6;
  --cta: #ff7a6b;
  --cta-dark: #e85f50;
  --radius: 18px;
  --shadow: 0 4px 14px rgba(120, 90, 60, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  padding-bottom: 72px; /* スマホ下の固定バーのぶん */
}
img { max-width: 100%; height: auto; }
a { color: var(--mint-dark); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header { background: var(--card); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.15rem; color: var(--mint-dark); text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 14px; font-size: 0.85rem; }
.site-nav a { text-decoration: none; color: var(--text); }
@media (max-width: 560px) { .site-nav { display: none; } }

/* PR表記 */
.pr-note { font-size: 0.8rem; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 6px 12px; margin: 14px 0; }
.pr-note strong { color: var(--cta-dark); margin-right: 6px; }

/* 見出しと本文 */
h1 { font-size: 1.5rem; line-height: 1.5; margin: 18px 0 8px; }
h2 { font-size: 1.25rem; line-height: 1.5; margin: 40px 0 12px; padding: 10px 14px; background: var(--mint-soft); border-radius: 12px; }
h3 { font-size: 1.08rem; margin: 28px 0 8px; padding-left: 10px; border-left: 5px solid var(--mint); }
.meta { font-size: 0.8rem; color: var(--muted); }
.lead { font-size: 1rem; }
.breadcrumb { font-size: 0.78rem; color: var(--muted); margin-top: 12px; }
.breadcrumb a { color: var(--muted); }

/* カード */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 16px 0; }
.card.mint { background: var(--mint-soft); box-shadow: none; }
.card.pink { background: var(--pink-soft); box-shadow: none; }
.card.sky { background: var(--sky-soft); box-shadow: none; }
.conclusion { border: 3px solid var(--mint); }
.conclusion { padding: 14px 16px; }
.conclusion ul.tight { padding-left: 1.1em; margin: 8px 0; font-size: 0.95rem; line-height: 1.65; }
.conclusion ul.tight li { margin: 4px 0; }
.conclusion .btn { margin: 8px 0; padding: 12px 16px; }
@media (max-width: 560px) { h1 { font-size: 1.3rem; margin-top: 12px; } .pr-note { margin: 10px 0; } }
.conclusion .label { display: inline-block; background: var(--mint); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 2px 12px; border-radius: 999px; }

/* ボタン：申込みボタン（コーラル）はアフィリエイトだけに使う */
.btn { display: block; text-align: center; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 14px 18px; margin: 10px 0; }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 4px 0 var(--cta-dark); }
.btn-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--cta-dark); }
.btn-sub { background: var(--card); color: var(--mint-dark); border: 2px solid var(--mint); }
.btn-small { display: inline-block; padding: 6px 14px; font-size: 0.85rem; margin: 4px 0; }
.btn-note { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: -4px; }

/* 比較：スマホはカード、広い画面は表 */
.vendor-list { list-style: none; padding: 0; margin: 0; }
.vendor { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 14px 0; }
.vendor.is-aff { border: 2px solid var(--cta); }
.vendor h3 { margin: 0 0 6px; border: none; padding: 0; }
.vendor .tag { display: inline-block; font-size: 0.75rem; background: var(--pink-soft); border-radius: 999px; padding: 1px 10px; margin-bottom: 6px; }
.vendor dl { display: grid; grid-template-columns: 6.5em 1fr; gap: 4px 10px; margin: 8px 0; font-size: 0.9rem; }
.vendor dt { color: var(--muted); }
.vendor dd { margin: 0; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--mint-dark); }

.table-scroll { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: var(--card); border-radius: 12px; overflow: hidden; }
table.cmp th, table.cmp td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
table.cmp th { background: var(--mint-soft); white-space: nowrap; }
table.cmp td.num { text-align: right; white-space: nowrap; font-weight: 700; }

/* シミュレーター */
.sim fieldset { border: none; padding: 0; margin: 0 0 14px; }
.sim legend { font-weight: 700; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 2px solid var(--line); font-size: 0.9rem; }
.chips input:checked + span { border-color: var(--mint); background: var(--mint-soft); font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--mint-dark); }
.sim-result .rank { display: inline-block; min-width: 2em; font-weight: 700; color: var(--muted); }

/* お知らせ・注意 */
.notice { font-size: 0.85rem; background: var(--sky-soft); border-radius: 12px; padding: 12px 14px; margin: 16px 0; }
.vet { background: var(--pink-soft); border-radius: 12px; padding: 12px 14px; margin: 16px 0; font-size: 0.9rem; }
.sources { font-size: 0.8rem; color: var(--muted); }
.sources a { color: var(--muted); word-break: break-all; }

/* FAQ */
details { background: var(--card); border-radius: 12px; padding: 12px 14px; margin: 10px 0; box-shadow: var(--shadow); }
summary { font-weight: 700; cursor: pointer; }

/* フッター */
.site-footer { margin-top: 48px; background: var(--card); border-top: 2px solid var(--line); padding: 24px 0; font-size: 0.82rem; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--muted); }

/* スマホ下の固定バー */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 249, 239, 0.96); border-top: 1px solid var(--line); z-index: 10; }
.sticky-bar a { flex: 1; text-align: center; font-size: 0.85rem; font-weight: 700; text-decoration: none; padding: 10px 6px; border-radius: 999px; background: var(--mint); color: #fff; }
.sticky-bar a.alt { background: var(--card); color: var(--mint-dark); border: 2px solid var(--mint); }
@media (min-width: 900px) { .sticky-bar { display: none; } body { padding-bottom: 0; } }

/* トップの入口 */
.hero { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; margin-top: 8px; }
.hero h1 { margin: 6px 0; }
.hero p { margin: 0; }
.art-dome { width: 100%; max-width: 320px; height: auto; justify-self: center; }
@media (min-width: 640px) { .hero { grid-template-columns: 1.1fr 1fr; } }
.entry { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }
@media (min-width: 640px) { .entry { grid-template-columns: repeat(3, 1fr); } }
.entry-card { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-decoration: none; color: var(--text); border-radius: var(--radius); padding: 14px; }
.entry-card .art-icon { grid-row: span 2; width: 48px; height: 48px; }
.entry-card strong { font-size: 1.05rem; }
.entry-card span { font-size: 0.82rem; color: var(--muted); }
.entry-card.mint { background: var(--mint-soft); }
.entry-card.pink { background: var(--pink-soft); }
.entry-card.sky { background: var(--sky-soft); }
.entry-card:focus-visible, .vet-list-link:focus-visible { outline: 3px solid var(--mint-dark); }
.vet-list-link { display: grid; gap: 2px; text-decoration: none; color: var(--text); border: 2px dashed var(--mint); }
.vet-list-link strong { color: var(--mint-dark); }
.vet-list-link span { font-size: 0.85rem; color: var(--muted); }
h2.plain { background: none; padding: 0; margin: 0 0 8px; font-size: 1.05rem; }
.steps { margin: 0; padding-left: 1.3em; }
.steps li { margin: 4px 0; }
.art-wide { display: block; width: 100%; max-width: 420px; height: auto; margin: 12px auto; }
.points { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .points { grid-template-columns: repeat(2, 1fr); } }
.points li { border-radius: var(--radius); padding: 12px 14px; background: var(--mint-soft); }
.points li:nth-child(3n+2) { background: var(--pink-soft); }
.points li:nth-child(3n) { background: var(--sky-soft); }
.points strong { display: block; color: var(--mint-dark); }
.checklist { list-style: none; padding: 0; margin: 8px 0; }
.checklist li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px dashed var(--mint-soft); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 18px; height: 18px; border: 2px solid var(--mint); border-radius: 6px; background: #fff; }
.ok-ng { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 12px 0; }
.ok-ng > div { border-radius: var(--radius); padding: 12px; font-size: 0.92rem; }
.ok-ng .ok { background: var(--mint-soft); }
.ok-ng .ng { background: var(--pink-soft); }
.ok-ng strong { display: block; margin-bottom: 4px; }
.ok-ng ul { margin: 0; padding-left: 1.1em; }
@media print { .site-header, .site-footer, .sticky-bar, .pr-note, .breadcrumb, nav.card { display: none; } }

/* ===== ホーム（キャラつき） ===== */
.hero2 { display: grid; gap: 4px; justify-items: center; text-align: center; margin-top: 4px; }
.hero-chara { width: 62vw; max-width: 300px; height: auto; filter: drop-shadow(0 6px 0 rgba(91,191,166,.18)); }
.hero2 h1 { margin: 4px 0 8px; font-size: 1.6rem; line-height: 1.4; }
.hero2 p { margin: 0 0 4px; }
@media (min-width: 640px) { .hero2 { grid-template-columns: 300px 1fr; text-align: left; justify-items: start; gap: 24px; } .hero2 h1 { font-size: 2rem; } }
.btn-main { background: var(--mint-dark); color: #fff; box-shadow: 0 4px 0 #1f5a4c; width: 100%; max-width: 420px; }
.btn-main:active { transform: translateY(2px); box-shadow: 0 2px 0 #1f5a4c; }
.chips.trust { list-style: none; padding: 0; margin: 6px 0 0; justify-content: center; }
@media (min-width: 640px) { .chips.trust { justify-content: flex-start; } }
.chips.trust li { font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.chips.trust li::before { content: "✓ "; color: var(--mint-dark); font-weight: 700; }
.sos { margin: 16px 0; padding: 12px 14px; border-radius: var(--radius); background: #fff1ef; border: 2px solid #ffc9c1; font-size: 0.9rem; }
.sos strong { display: block; color: #c4483a; margin-bottom: 2px; }
.sos p { margin: 0; }
h2.center { text-align: center; background: none; padding: 0; margin-top: 28px; }
.talk { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.talk img { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--mint-soft); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--mint-soft); object-fit: cover; }
.talk p { position: relative; margin: 4px 0 0; background: var(--card); border: 2px solid var(--mint-soft); border-radius: 16px; padding: 10px 12px; font-size: 0.93rem; }
.talk p::before { content: ""; position: absolute; left: -9px; top: 14px; border: 8px solid transparent; border-right-color: var(--mint-soft); border-left: 0; }
.talk-cat { justify-content: center; }
.talk-cat img { background: var(--pink-soft); box-shadow: 0 0 0 2px var(--pink-soft); }
.talk-cat p { border-color: var(--pink-soft); }
.talk-cat p::before { border-right-color: var(--pink-soft); }
.situ { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 20px; }
@media (min-width: 640px) { .situ { grid-template-columns: repeat(4, 1fr); } }
.situ-card { position: relative; display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--text); border-radius: var(--radius); padding: 14px 12px 12px; min-height: 120px; }
.situ-card strong { font-size: 0.98rem; line-height: 1.4; }
.situ-card span:last-child { font-size: 0.78rem; color: var(--muted); }
.situ-card .num { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: var(--mint-dark); }
.situ-card.coral { background: #ffe7e3; }
.situ-card.mint { background: var(--mint-soft); }
.situ-card.pink { background: var(--pink-soft); }
.situ-card.sky { background: var(--sky-soft); }
.situ-card:focus-visible { outline: 3px solid var(--mint-dark); }
.finder { border: 3px solid var(--mint); scroll-margin-top: 12px; }
.finder legend { font-size: 0.95rem; }
.qa details { background: var(--card); border-radius: var(--radius); margin: 8px 0; padding: 4px 12px; border: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 8px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "＋"; margin-left: auto; color: var(--mint-dark); }
.qa details[open] summary::after { content: "－"; }
.qa summary img { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--pink-soft); }
.qa .talk img { width: 48px; height: 48px; }
.flow { display: grid; gap: 8px; justify-items: center; margin: 24px 0; padding: 16px; border-radius: var(--radius); background: var(--mint-soft); }
.flow-chara { width: 200px; height: auto; }
@media (min-width: 640px) { .flow { grid-template-columns: 220px 1fr; align-items: center; } }
.steps.big { list-style: none; padding: 0; counter-reset: st; }
.steps.big li { counter-increment: st; position: relative; padding: 8px 0 8px 40px; display: grid; }
.steps.big li::before { content: counter(st); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--mint-dark); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps.big span { font-size: 0.85rem; color: var(--muted); }
.footer-chara { display: block; width: 120px; height: auto; margin: 0 auto 8px; }
.vet { position: relative; padding-left: 64px; min-height: 56px; }
.vet::before { content: ""; position: absolute; left: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%; background: #fff url(/assets/img/chara/dog-face.webp) center / cover; }
