/* 診断パンダ サイトのデザイン
   ・文字は大きめ、行間は広め。ボタンはひと目でボタンとわかる形（立体的な影つき）にしています。
   ・色を変えたいときは、下の「色の決まり」だけを直せば全体に反映されます。 */

/* ───── 色の決まり ───── */
:root {
  --bg: #fff8ec;
  --surface: #ffffff;
  --text: #2b2723;
  --muted: #655d54;
  --line: #e7dac7;
  --line-strong: #b8aa96;
  --main: #1f6f54;
  --main-dark: #154e3b;
  --main-soft: #e7f3ed;
  --soft-face: #ecf5ef;   /* 場面のボタンなど、たくさん並ぶボタンの面 */
  --soft-line: #bfdacb;   /* 同じく、枠 */
  --soft-shadow: #cbe2d5; /* 同じく、下の影 */
  --soft-text: #1d4235;   /* 同じく、文字 */
  --accent: #c2410c;
  --accent-dark: #8f300a;
  --accent-soft: #fff2e8;
  --link: #1a56b0;
  --warn: #b42318;
  --warn-soft: #fff1ef;
  --point: #a16207;
  --point-soft: #fff8e1;
  --memo: #3d6a99;
  --memo-soft: #eef4fb;
  --renai: #c2416f;
  --fufu: #7a4bb0;
  --shokuba: #2160a6;
  --ningen: #1d7f6a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 18px rgba(80, 60, 30, .08);
  --header-h: 64px;
}

/* ───── 基本 ───── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "BIZ UDGothic", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .03em;
  overflow-wrap: anywhere;
  word-break: normal;
}
@media (min-width: 600px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--link); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
[hidden] { display: none !important; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
.pc-only { display: none; }
@media (min-width: 820px) { .pc-only { display: inline; } }
p { margin: 0 0 1.2em; }
h1, h2, h3 { line-height: 1.5; letter-spacing: .03em; }
/* 日本語の改行を文節の区切りで（対応しているブラウザだけ） */
h1, h2, h3, .btn-label, .card-title, .card-sub, .worry-text, .cat-button-name, .topic-button, .shindan-tile-name, .result-title, .toc-list a, .cta-title, .q-text, .q-option-label, .section-title { word-break: auto-phrase; }
mark { background: linear-gradient(transparent 52%, #ffe066 52%); color: inherit; padding: 0 .1em; }
strong { font-weight: 700; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: .6em 1em; }
.skip-link:focus { left: 8px; top: 8px; }

.preview-bar { background: #fde68a; color: #4a3500; text-align: center; font-size: 15px; padding: .5em 16px; line-height: 1.6; }

/* ───── 枠 ───── */
.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 680px; }
.site-main { min-height: 50vh; padding-bottom: 3em; }

/* ───── ヘッダー ───── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(80, 60, 30, .06);
}
.header-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 12px 0 14px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); min-width: 0; margin-right: auto; }
.logo-face { width: 44px; height: 44px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.logo-name { font-size: 1.3rem; font-weight: 800; letter-spacing: .06em; }
.logo-tag { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .logo-tag { display: none; } }

.header-nav { display: none; }
@media (min-width: 900px) {
  .header-nav { display: flex; gap: 4px; }
  .header-nav a { padding: .4em .8em; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; }
  .header-nav a:hover { background: var(--main-soft); color: var(--main-dark); }
}

.menu { position: static; flex: none; }
.menu-button {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 6px;
  min-height: 48px; padding: 0 14px;
  border: 2px solid var(--main); border-radius: 12px;
  color: var(--main-dark); background: #fff;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  box-shadow: 0 3px 0 var(--main-dark);
}
.menu-button::-webkit-details-marker { display: none; }
.menu-button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--main-dark); }
.menu-close-icon, .menu[open] .menu-open-icon { display: none; }
.menu[open] .menu-close-icon { display: inline; }
.menu[open] .menu-button { background: var(--main); color: #fff; }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(40, 30, 20, .18);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.menu-inner { max-width: 760px; margin: 0 auto; padding: 16px 16px 24px; }
.menu-label { font-weight: 700; margin: 0 0 .6em; }
.menu-cats, .menu-links { list-style: none; margin: 0; padding: 0; }
.menu-cats li + li { margin-top: 10px; }
.menu-cat {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--text); background: #fffdf9;
  box-shadow: 0 3px 0 var(--line);
}
.menu-cat:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.menu-cat-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; flex: none; }
.menu-cat-text { display: flex; flex-direction: column; line-height: 1.5; flex: 1; }
.menu-cat-name { font-weight: 700; font-size: 1.08rem; }
.menu-cat-lead { font-size: .85rem; color: var(--muted); }
.menu-arrow { color: var(--muted); }
.menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.menu-links a {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; border-radius: 12px; background: var(--main-soft);
  color: var(--main-dark); font-weight: 700; text-decoration: none; min-height: 52px; line-height: 1.4;
}
.cat-renai .menu-cat-icon, .menu-cat.cat-renai .menu-cat-icon { background: var(--renai); }
.menu-cat.cat-fufu .menu-cat-icon { background: var(--fufu); }
.menu-cat.cat-shokuba .menu-cat-icon { background: var(--shokuba); }
.menu-cat.cat-ningen .menu-cat-icon { background: var(--ningen); }

/* ───── ボタン ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: .7em 1.3em;
  border: 2px solid transparent; border-radius: 14px;
  font-family: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.45;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(3px); }
.btn-label { flex: 0 1 auto; }
.btn-icon { width: 1.35em; height: 1.35em; }
.btn-arrow { width: 1.2em; height: 1.2em; margin-left: .1em; }
.btn-main { background: var(--main); color: #fff; box-shadow: 0 4px 0 var(--main-dark); }
.btn-main:hover { background: #1a614a; }
.btn-main:active { box-shadow: 0 1px 0 var(--main-dark); }
.btn-sub { background: #fff; color: var(--main-dark); border-color: var(--main); box-shadow: 0 4px 0 #a8cfbf; }
.btn-sub:hover { background: var(--main-soft); }
.btn-sub:active { box-shadow: 0 1px 0 #a8cfbf; }
.btn-large { min-height: 62px; font-size: 1.12rem; padding: .8em 1.5em; }
.btn-small { min-height: 48px; font-size: .98rem; padding: .5em 1em; }
.btn-block { display: flex; width: 100%; }
.more { text-align: center; margin: 1.6em 0 0; }
.more .btn { width: 100%; max-width: 520px; }

/* ───── トップページ ───── */
.hero { background: linear-gradient(180deg, #fff8ec 0%, #fdeedb 100%); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 1040px; margin: 0 auto; padding: 28px 16px 32px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 820px) { .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 36px; padding: 48px 16px; } }
.hero-title { font-size: clamp(1.75rem, 7vw, 2.6rem); font-weight: 800; margin: 0 0 .5em; line-height: 1.4; }
.hero-lead { font-size: 1.02rem; margin-bottom: 1.4em; }
.hero-buttons { display: grid; gap: 14px; }
@media (min-width: 520px) { .hero-buttons { grid-template-columns: 1fr 1fr; } }
.hero-image img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); }
@media (max-width: 819px) { .hero-image { order: -1; } .hero-image img { max-height: 260px; object-fit: cover; } }

.section { max-width: 1040px; margin: 0 auto; padding: 36px 16px 8px; }
.container .section { padding-left: 0; padding-right: 0; }
.section-title { display: flex; align-items: center; gap: .45em; font-size: 1.45rem; font-weight: 800; margin: 0 0 .3em; }
.section-title .icon { color: var(--main); width: 1.3em; height: 1.3em; }
.section-title.small { font-size: 1.2rem; }
.section-lead { color: var(--muted); margin: 0 0 1em; }
.section-cat .card-list, .section-shindan .shindan-tiles { margin-top: 1em; }
@media (min-width: 900px) {
  .section-cat { display: block; }
}

.worry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .worry-list { grid-template-columns: 1fr 1fr; } }
.worry-list > li { display: flex; }
.worry {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px; min-height: 64px;
  background: #fff; border: 2px solid var(--line); border-radius: 14px;
  color: var(--text); text-decoration: none; font-weight: 700; line-height: 1.5;
  box-shadow: 0 4px 0 var(--line);
}
.worry:hover { border-color: var(--main); }
.worry:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.worry-mark { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; flex: none; }
.worry-text { flex: 1; }
.worry-arrow { color: var(--main); }

.cat-buttons { display: grid; gap: 14px; }
@media (min-width: 640px) { .cat-buttons { grid-template-columns: 1fr 1fr; } }
.cat-button {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; min-height: 84px;
  background: #fff; border: 2px solid var(--line); border-radius: 16px;
  color: var(--text); text-decoration: none;
  box-shadow: 0 4px 0 var(--line);
}
.cat-button:hover { border-color: var(--main); }
.cat-button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.cat-button-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; flex: none; }
.cat-button-icon .icon { width: 28px; height: 28px; }
.cat-button.cat-renai .cat-button-icon { background: var(--renai); }
.cat-button.cat-fufu .cat-button-icon { background: var(--fufu); }
.cat-button.cat-shokuba .cat-button-icon { background: var(--shokuba); }
.cat-button.cat-ningen .cat-button-icon { background: var(--ningen); }
.cat-button-text { display: flex; flex-direction: column; flex: 1; line-height: 1.5; }
.cat-button-name { font-size: 1.18rem; font-weight: 800; }
.cat-button-desc { font-size: .9rem; color: var(--muted); }
.cat-button-arrow { color: var(--main); width: 1.5em; height: 1.5em; }
.cat-buttons.compact .cat-button { min-height: 72px; padding: 12px 14px; }
.cat-buttons.compact .cat-button-icon { width: 44px; height: 44px; }

.about-box { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 20px; }
.about-panda { width: 96px; height: auto; flex: none; }
.about-title { font-size: 1.25rem; margin: 0 0 .5em; }
.about-text p:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .about-box { flex-direction: column; align-items: center; } }

/* ───── 記事カード ───── */
.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card {
  display: flex; text-decoration: none; color: var(--text);
  background: #fff; border: 2px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 3px 0 var(--line);
}
.card:hover { border-color: var(--main); }
.card:hover .card-title { text-decoration: underline; text-underline-offset: .2em; }
.card:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.card-list .card, .read-also .card { align-items: center; gap: 12px; padding: 10px 10px 10px 10px; min-height: 92px; }
.card-img { flex: none; width: 108px; }
.card-img img { width: 108px; height: 76px; object-fit: cover; border-radius: 10px; display: block; background: var(--bg); }
@media (min-width: 600px) { .card-img, .card-img img { width: 150px; } .card-img img { height: 100px; } }
.card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.55; }
.card-title { font-weight: 700; font-size: 1.02rem; color: var(--link); }
.card-sub { font-size: .86rem; color: var(--muted); margin-top: .25em; }
.card-cat { font-size: .8rem; color: var(--main-dark); font-weight: 700; }
.card-arrow { color: var(--main); margin-right: 2px; }
.card-tile { flex-direction: column; }
.badge-draft { display: inline-block; background: #fde68a; color: #4a3500; font-size: .75rem; padding: 0 .5em; border-radius: 6px; margin-right: .4em; }

/* ───── パンくず ───── */
.crumbs { margin: 14px 0 6px; font-size: .88rem; color: var(--muted); line-height: 1.6; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 .45em; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumb-home { width: 1.05em; height: 1.05em; margin-right: .2em; }

/* ───── 見出しまわり（一覧ページ） ───── */
.page-head { margin: 12px 0 24px; }
.page-title { font-size: clamp(1.5rem, 5.5vw, 2rem); font-weight: 800; margin: .2em 0 .5em; }
.page-lead { margin: 0; }
.page-head-panda { display: flex; gap: 14px; align-items: flex-start; }
.page-head-panda-img { width: 88px; height: auto; flex: none; }
.cat-head { display: grid; gap: 16px; align-items: center; }
@media (min-width: 680px) { .cat-head { grid-template-columns: 1.4fr 1fr; } }
.cat-head-label { display: flex; align-items: center; gap: .4em; font-weight: 700; color: var(--main-dark); margin: 0; font-size: .95rem; }
.cat-count { color: var(--muted); font-size: .92rem; margin: .6em 0 0; }
.cat-head-image img { width: 100%; border-radius: 16px; }
.page-category.cat-renai .cat-head-label .icon { color: var(--renai); }
.page-category.cat-fufu .cat-head-label .icon { color: var(--fufu); }
.page-category.cat-shokuba .cat-head-label .icon { color: var(--shokuba); }
.page-category.cat-ningen .cat-head-label .icon { color: var(--ningen); }

.topic-nav { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px; margin: 0 0 24px; }
.topic-nav-title { display: flex; align-items: center; gap: .4em; font-weight: 800; margin: 0 0 .7em; font-size: 1.1rem; }
.topic-buttons { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* 2列のときは、すべてのカードを同じ大きさにそろえる（名前が2行のカードがあっても、ずれて見えないように）。
   カードの右側に絵があるので、2列にするのは名前が2行に収まる幅（760px）から */
@media (min-width: 760px) { .topic-buttons { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; } }
.topic-buttons > li { display: flex; }
/* 濃い緑の枠がたくさん並ぶと目がチカチカするので、うすい緑の面と、やわらかい枠・影にしています */
.topic-button {
  flex: 1;
  display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 14px 14px 14px 20px;
  border: 1.5px solid var(--soft-line); border-radius: 16px; background: var(--soft-face);
  color: var(--soft-text); text-decoration: none; line-height: 1.5;
  box-shadow: 0 4px 0 var(--soft-shadow);
}
.topic-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.topic-name { font-weight: 700; font-size: 1.1rem; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.topic-count { font-size: .85rem; color: var(--muted); font-weight: 400; }
.topic-arrow { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: #fff; color: var(--main); }
.topic-button:hover { background: #e6f2eb; border-color: #a8cfbf; }
.topic-button:hover .topic-name { text-decoration: underline; text-underline-offset: .2em; }
.topic-button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--soft-shadow); }
/* 場面に合う絵を、カードの右側にうすく敷く（濃さ80%。文字の側に向かって消えるので、文字は読みやすいまま） */
.topic-button.has-img { position: relative; overflow: hidden; isolation: isolate; min-height: 120px; }
.topic-img {
  position: absolute; z-index: -1; top: 0; right: 0; width: 54%; max-width: 260px; height: 100%;
  object-fit: cover; object-position: 50% 35%; opacity: .8; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .92) 42%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .92) 42%, #000 100%);
}
.has-img .topic-text { flex: 0 1 auto; max-width: 58%; }
.has-img .topic-name { text-shadow: 0 0 8px var(--soft-face), 0 0 3px var(--soft-face), 0 0 1px var(--soft-face); }
.has-img .topic-arrow { position: absolute; right: 10px; bottom: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
@media (max-width: 420px) {
  .topic-img {
    width: 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .92) 50%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .92) 50%, #000 100%);
  }
}
/* 幅のせまいスマホでは、名前が1文字だけ次の行に落ちないよう、文字の幅を少し広げる */
@media (max-width: 380px) {
  .topic-button.has-img { padding-left: 16px; }
  .has-img .topic-text { max-width: 66%; }
  .has-img .topic-name { font-size: 1rem; }
  .topic-img { width: 46%; }
}
@media (max-width: 340px) {
  .has-img .topic-text { max-width: 70%; }
  .has-img .topic-name { font-size: .94rem; }
  .topic-img { width: 42%; }
}
.topic-section { margin: 36px 0 0; }
.topic-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 14px; padding: .45em .8em; background: #fff; border-left: 6px solid var(--main); border-radius: 0 10px 10px 0; }
.back-to-topics { text-align: right; margin: 10px 0 0; font-size: .92rem; }
.back-to-topics a { display: inline-flex; align-items: center; gap: .3em; padding: .4em .2em; }
.cat-shindan { margin: 0 0 8px; }
.other-cats { margin-top: 44px; }

.all-cat { margin-top: 36px; }
.all-cat-title { display: flex; align-items: center; gap: .4em; font-size: 1.4rem; padding-bottom: .3em; border-bottom: 3px solid var(--main); }
.all-topic-title { font-size: 1.1rem; margin: 1.4em 0 .5em; color: var(--main-dark); }
.link-list { margin: 0; padding-left: 1.3em; }
.link-list li { margin: .45em 0; line-height: 1.6; }

/* ───── 記事 ───── */
.article-head { margin: 8px 0 20px; }
.article-cat { margin: 0 0 .4em; font-size: .92rem; }
.article-cat a { display: inline-flex; align-items: center; gap: .35em; padding: .3em .9em; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--main-dark); font-weight: 700; text-decoration: none; }
.article-title { font-size: clamp(1.4rem, 5.4vw, 1.95rem); font-weight: 800; line-height: 1.5; margin: .3em 0 .7em; }
.article-title-main { display: block; }
.article-title-sub { display: block; font-size: .7em; color: var(--muted); margin-top: .35em; line-height: 1.6; }
.article-dates { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: .3em; }
.draft-note { background: #fde68a; padding: .5em .8em; border-radius: 8px; font-size: .92rem; }
.article-eyecatch { margin: 0; }
.article-eyecatch img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }

/* 記事のページは、1行の文字数をおさえるため本文の幅を少しせまくする（パソコンで1行およそ33文字） */
.page-article .container { max-width: 680px; }
.article-body { font-size: 1em; color: #3a342e; letter-spacing: .06em; }
.article-body > p, .article-body .box-body p { line-height: 2.05; }
.article-body li { line-height: 1.85; }
.article-body > p { margin: 0 0 2.1em; }
/* 見出しは本文とはっきり違う大きさ・色・形にして、文章のかたまりとの区切りをつける */
.article-body h2 {
  font-size: 1.5rem; font-weight: 800; line-height: 1.55; letter-spacing: .04em; color: #173f31;
  margin: 3.6em 0 1.4em; padding: .8em 1em .8em 1.05em;
  background: var(--main-soft); border-left: 8px solid var(--main); border-radius: 0 14px 14px 0;
}
.article-body h3 {
  font-size: 1.36rem; font-weight: 800; line-height: 1.6; letter-spacing: .04em; color: var(--main-dark);
  margin: 2.9em 0 1.1em; padding: .2em 0 .2em .8em;
  border-left: 6px solid var(--main);
}
/* 最後の行に1〜2文字だけ残る折り返しを減らす（対応しているブラウザだけ） */
.article-body p, .article-body li { text-wrap: pretty; }
.article-body h2 + h3 { margin-top: 1.8em; }
.article-body ul, .article-body ol { margin: 0 0 2em; padding-left: 1.5em; }
.article-body li { margin: .75em 0; }
@media (max-width: 599px) {
  .article-body { letter-spacing: .05em; }
  .article-body > p { margin-bottom: 1.9em; }
  .article-body h2 { font-size: 1.32rem; margin-top: 3.2em; padding: .75em .85em .75em .9em; border-left-width: 7px; }
  .article-body h3 { font-size: 1.22rem; margin-top: 2.6em; border-left-width: 5px; }
}
.article-body li::marker { color: var(--main); }
.article-body a { font-weight: 700; }

/* ───── 記事を「まとまり」で見せる ─────
   文章だけが長く続いて見えないよう、章（##）には番号の丸、小見出し（###）からの1まとまりは白いカードにする */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.article-body h2 { display: flex; align-items: flex-start; gap: .6em; border-left: 0; border-radius: 16px; }
.article-body .h-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 1.85em; height: 1.85em; border-radius: 50%; background: var(--main); color: #fff;
  font-size: .92em; font-weight: 800; letter-spacing: 0; line-height: 1; margin-top: -.05em;
}
.article-body .h-text { flex: 1; min-width: 0; }
.article-body .h-main, .article-body .h-sub { display: block; }
.article-body .h-sub { font-size: .8em; margin-top: .2em; opacity: .88; }
.sec-card { background: var(--surface); border: 1.5px solid #ecdfcb; border-radius: 18px; padding: 24px 26px; margin: 1.5em 0; }
.sec-card > h3 {
  display: flex; align-items: flex-start; gap: .55em; margin: 0 0 1em; padding: 0 0 .75em;
  border-left: 0; border-bottom: 2px solid var(--main-soft); font-size: 1.26rem;
}
.sec-card > h3 .h-num { width: 1.7em; height: 1.7em; font-size: .86em; margin-top: .02em; }
.sec-card > p { margin: 0 0 1.6em; }
.sec-card > :last-child, .sec-card > .box:last-child, .sec-card > .line-chat:last-child, .sec-card > .table-wrap:last-child { margin-bottom: 0; }
.sec-card .box, .sec-card .line-chat, .sec-card .table-wrap { margin: 1.4em 0; }
.sec-card ul, .sec-card ol { margin-bottom: 1.6em; }
.article-body h2 + .sec-card { margin-top: 1.2em; }
.sec-card + .sec-card { margin-top: 1.2em; }
@media (max-width: 599px) {
  .sec-card { padding: 20px 16px; border-radius: 16px; margin: 1.3em 0; }
  .sec-card > h3 { font-size: 1.16rem; }
  .sec-card > p { margin-bottom: 1.5em; }
}

/* 書き出しの「こんなことで悩んでいませんか？」 */
.nayami { margin: 0 0 2em; background: var(--surface); border: 2px solid #eadcc6; border-radius: 20px; padding: 16px 20px 10px; }
.nayami-head { display: flex; align-items: center; gap: 12px; margin: 0 0 .4em; padding-bottom: .8em; border-bottom: 2px dashed #eadcc6; }
.nayami-panda { width: 76px; height: 76px; flex: none; object-fit: contain; }
.nayami-title { margin: 0; font-weight: 800; font-size: 1.2rem; line-height: 1.55; color: #5b4330; word-break: auto-phrase; }
.nayami-title .nt { display: inline-block; }
.nayami-list { list-style: none; margin: 0; padding: 0; }
.article-body .nayami-list li { display: flex; gap: .6em; align-items: flex-start; margin: 0; padding: .6em 0; line-height: 1.75; }
.nayami-list li + li { border-top: 1px dashed #efe4d3; }
.nayami-list .icon { flex: none; width: 1.35em; height: 1.35em; margin-top: .22em; padding: 3px; border-radius: 50%; background: #e3946a; color: #fff; stroke-width: 3; }
@media (max-width: 599px) {
  .nayami { padding: 14px 16px 8px; }
  .nayami-panda { width: 64px; height: 64px; }
  .nayami-title { font-size: 1.1rem; }
}
/* 細いスマホでは、題が「〜していませ／んか？」のように切れないよう、絵と文字を少し小さく */
@media (max-width: 380px) {
  .nayami-head { gap: 8px; }
  .nayami-panda { width: 52px; height: 52px; }
  .nayami-title { font-size: clamp(.94rem, 4.6vw, 1.1rem); }
}

/* 目次 */
.toc { background: #fff; border: 2px solid var(--line); border-radius: 16px; margin: 1.6em 0 2.2em; overflow: hidden; }
.toc-summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; min-height: 60px; background: var(--main-soft); }
.toc-summary::-webkit-details-marker { display: none; }
.toc-title { display: flex; align-items: center; gap: .45em; font-weight: 800; font-size: 1.08rem; color: var(--main-dark); }
.toc-toggle { display: inline-flex; align-items: center; gap: .3em; padding: .3em .8em; border: 2px solid var(--main); border-radius: 999px; background: #fff; color: var(--main-dark); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.toc .when-closed { display: none; }
.toc:not([open]) .when-open { display: none; }
.toc:not([open]) .when-closed { display: inline; }
.toc[open] .toc-chev { transform: rotate(180deg); }
.toc-list { margin: 0; padding: 10px 18px 16px 2.4em; counter-reset: toc; }
.toc-list > li { margin: .55em 0; line-height: 1.6; font-weight: 700; }
.toc-list li::marker { color: var(--main); font-weight: 800; }
.toc-list a { color: var(--text); text-decoration: none; display: block; padding: .1em 0; }
.toc-list a:hover { color: var(--link); text-decoration: underline; }
.toc-sub { margin: .2em 0 .5em; padding: 0; list-style: none; }
.toc-sub li { display: flex; gap: .2em; font-weight: 400; font-size: .9rem; margin: .15em 0; line-height: 1.55; color: var(--muted); }
.toc-sub li::before { content: "・"; flex: none; }
.toc-sub a { color: var(--muted); }

/* 囲みブロック */
.box { border: 2px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 2.4em 0; background: #fff; }
@media (min-width: 600px) { .box { padding: 22px 26px; } }
.box-title { display: flex; align-items: center; gap: .45em; font-weight: 800; margin: 0 0 .7em; font-size: 1.05rem; line-height: 1.5; }
.box-title .icon { width: 1.35em; height: 1.35em; }
.box-body > :last-child { margin-bottom: 0; }
.box-body ul, .box-body ol { margin-bottom: .2em; }
.box-point { border-color: #ecc94b; background: var(--point-soft); }
.box-point .box-title { color: var(--point); }
.box-warn { border-color: #f1a7a0; background: var(--warn-soft); }
.box-warn .box-title { color: var(--warn); }
.box-memo { border-color: #b8cde6; background: var(--memo-soft); }
.box-memo .box-title { color: var(--memo); }
.box-check { border-color: #a8cfbf; background: #f4faf7; }
.box-check .box-title { color: var(--main-dark); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: .6em; align-items: flex-start; padding: .55em 0; border-top: 1px dashed #cfe3d9; line-height: 1.7; }
.checklist li:first-child { border-top: 0; }
.checklist li .icon { color: #fff; background: var(--main); border-radius: 6px; padding: 2px; width: 1.35em; height: 1.35em; margin-top: .2em; }

/* 結論の囲み（書き出しの「結論から言うと、…」） */
.answer-box { position: relative; margin: 2.8em 0 2.4em; padding: 26px 20px 8px; background: #fff; border: 3px solid var(--main); border-radius: 18px; }
@media (min-width: 600px) { .answer-box { padding: 30px 28px 10px; } }
.answer-label { position: absolute; top: -.95em; left: 16px; display: inline-flex; align-items: center; gap: .35em; margin: 0; padding: .25em 1em; border-radius: 999px; background: var(--main); color: #fff; font-weight: 800; font-size: .98rem; letter-spacing: .12em; line-height: 1.5; }
.answer-label .icon { width: 1.1em; height: 1.1em; }
.answer-body p { margin: 0 0 1.4em; line-height: 2.05; }

/* パンダの吹き出し */
.panda-talk { display: flex; gap: 12px; align-items: flex-start; margin: 2em 0; }
.panda-face { width: 68px; height: 68px; flex: none; border-radius: 50%; background: #fff; border: 2px solid var(--line); padding: 4px; object-fit: contain; }
.panda-bubble { position: relative; flex: 1; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: .8em 1.1em; }
.panda-bubble::before { content: ""; position: absolute; left: -11px; top: 22px; border: 9px solid transparent; border-right-color: var(--line); border-left: 0; }
.panda-bubble::after { content: ""; position: absolute; left: -8px; top: 23px; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.panda-name { font-size: .8rem; font-weight: 800; color: var(--main-dark); margin: 0 0 .2em; word-break: keep-all; }
.panda-bubble p { margin: 0 0 .7em; line-height: 1.85; }
.panda-bubble > :last-child { margin-bottom: 0; }

/* LINE風のやり取り */
.line-chat { margin: 2em 0; }
.line-title { display: flex; align-items: center; gap: .4em; font-weight: 700; font-size: .95rem; margin-bottom: .5em; color: var(--muted); }
.line-screen { background: #7f9fcf; border-radius: 18px; padding: 14px 12px; }
.line-row { display: flex; flex-direction: column; margin: 8px 0; }
.line-me { align-items: flex-end; }
.line-them { align-items: flex-start; }
.line-who { font-size: .72rem; color: #fff; margin: 0 6px 2px; letter-spacing: .05em; }
.line-bubble { max-width: 86%; margin: 0; padding: .55em .95em; border-radius: 18px; background: #fff; line-height: 1.7; font-size: .98rem; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.line-me .line-bubble { background: #8de07c; border-top-right-radius: 6px; }
.line-them .line-bubble { border-top-left-radius: 6px; }
.line-note { text-align: center; margin: 8px 0; font-size: .8rem; color: #fff; }
.line-note::before, .line-note::after { content: ""; }

/* よくある質問 */
.faq { margin: 1.5em 0 2em; border: 2px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.faq-item { padding: 16px 16px 6px; }
.faq-item + .faq-item { border-top: 2px dashed var(--line); }
.faq-q { display: flex; gap: .7em; align-items: flex-start; font-weight: 800; margin: 0 0 .7em; line-height: 1.65; }
.faq-a { display: flex; gap: .7em; align-items: flex-start; }
.faq-a p { margin: 0 0 .8em; line-height: 1.9; }
.faq-mark { display: inline-flex; align-items: center; justify-content: center; width: 1.9em; height: 1.9em; border-radius: 50%; flex: none; font-weight: 800; color: #fff; background: var(--main); font-size: .95rem; line-height: 1; margin-top: .05em; }
.faq-a .faq-mark { background: var(--accent); }

/* 表 */
.table-wrap { overflow-x: auto; margin: 1.6em 0 2em; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 2px solid var(--line); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: .95rem; line-height: 1.65; }
.table-wrap th, .table-wrap td { padding: .7em .8em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap thead th { background: var(--main-soft); color: var(--main-dark); font-weight: 800; white-space: nowrap; }
.table-wrap tbody th { background: #fffaf2; font-weight: 700; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.static-page .table-wrap table { min-width: 0; }

/* 画像 */
.article-figure { margin: 2em 0; }
.article-figure img { width: 100%; border-radius: 16px; }
.article-figure figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: .5em; }

/* あわせて読みたい */
.read-also { margin: 2em 0; }
.read-also-label { display: flex; align-items: center; gap: .4em; font-weight: 800; color: var(--main-dark); margin: 0 0 .5em; font-size: .95rem; }

/* 相談の案内（PR） */
.cta-box {
  position: relative; margin: 2.4em 0; padding: 22px 16px 18px;
  border: 3px solid #f1b58f; border-radius: 18px; background: var(--accent-soft);
}
.pr-mark { position: absolute; top: 6px; right: 12px; font-size: 11px; line-height: 1; color: #b9ab9b; font-weight: 400; letter-spacing: .08em; }
.cta-head { display: flex; align-items: center; gap: 12px; margin-bottom: .5em; }
.cta-panda { width: 72px; height: 72px; flex: none; }
.cta-title { font-size: 1.18rem; font-weight: 800; line-height: 1.55; margin: 0; color: var(--accent-dark); }
.cta-text p { margin: 0 0 .9em; line-height: 1.9; }
.cta-buttons { display: grid; gap: 14px; margin-top: 1em; }
.btn-cta, .btn-cta-sub { width: 100%; min-height: 62px; font-size: 1.06rem; }
.btn-cta { background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-dark); }
.btn-cta:hover { background: #ad3a0b; }
.btn-cta:active { box-shadow: 0 1px 0 var(--accent-dark); }
.btn-cta-sub { background: #fff; color: var(--accent-dark); border-color: var(--accent); box-shadow: 0 4px 0 #f0c3a6; }
.btn-cta-sub:hover { background: #fff7f1; }
.btn-cta-sub:active { box-shadow: 0 1px 0 #f0c3a6; }
.btn-cta .btn-label, .btn-cta-sub .btn-label { flex: 1; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
/* 記事の上と途中に出す短い案内（見出し1行とボタンだけ） */
.cta-compact { margin: 2.6em 0; padding: 20px 16px 18px; }
.cta-lead { display: flex; align-items: center; gap: .45em; margin: 0 0 .9em; font-weight: 800; font-size: 1.1rem; line-height: 1.6; color: var(--accent-dark); letter-spacing: .04em; }
.cta-lead .icon { width: 1.4em; height: 1.4em; }
.cta-lead span { word-break: keep-all; overflow-wrap: anywhere; }
.cta-compact .cta-buttons { margin-top: 0; }
.a8px { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: 0; bottom: 0; }

/* 記事の中の診断の案内（相談の案内より目立たない小さな形） */
.shindan-mini {
  display: flex; align-items: center; gap: 12px; margin: 2em 0; padding: 12px 14px;
  background: #fff; border: 2px solid #b9dccb; border-radius: 14px;
  color: var(--main-dark); text-decoration: none; line-height: 1.5; letter-spacing: .03em;
}
.article-body a.shindan-mini { font-weight: 400; }
.shindan-mini:hover { background: var(--main-soft); }
.shindan-mini-icon { width: 1.6em; height: 1.6em; color: var(--main); }
.shindan-mini-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shindan-mini-label { font-size: .82rem; color: var(--muted); }
.shindan-mini-name { font-weight: 700; word-break: auto-phrase; }
.shindan-mini-arrow { color: var(--main); }
.article-shindan .shindan-mini { margin: 0; }

/* 診断のカード */
.shindan-card { display: flex; gap: 14px; align-items: center; margin: 2em 0; padding: 16px; border: 3px solid #9fd0bb; border-radius: 18px; background: #f2faf6; }
.shindan-card-img img { width: 96px; height: auto; }
.shindan-card-body { flex: 1; min-width: 0; }
.shindan-card-label { display: inline-flex; align-items: center; gap: .3em; font-size: .85rem; font-weight: 800; color: var(--main-dark); margin: 0; }
.shindan-card-name { font-size: 1.2rem; font-weight: 800; margin: .1em 0 .2em; line-height: 1.5; }
.shindan-card-meta { font-size: .9rem; color: var(--muted); margin: 0 0 .8em; line-height: 1.6; }
.shindan-card .btn { width: 100%; }
@media (max-width: 480px) { .shindan-card { flex-direction: column; text-align: center; } .shindan-card-label { justify-content: center; } }

.shindan-tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .shindan-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .section .shindan-tiles { grid-template-columns: repeat(3, 1fr); } .section .shindan-tiles-4 { grid-template-columns: repeat(4, 1fr); } }
.shindan-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 16px 14px; background: #fff; border: 2px solid var(--line); border-radius: 18px;
  color: var(--text); text-decoration: none; box-shadow: 0 4px 0 var(--line);
}
.shindan-tile:hover { border-color: var(--main); }
.shindan-tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.shindan-tile-img img { width: 96px; height: auto; }
.shindan-tile-name { font-weight: 800; font-size: 1.08rem; line-height: 1.5; }
.shindan-tile-meta { display: inline-flex; align-items: center; gap: .3em; font-size: .88rem; color: var(--muted); }
.shindan-tile .btn { margin-top: 6px; width: 100%; pointer-events: none; }
@media (min-width: 560px) {
  .shindan-tile-name { flex-grow: 1; display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 559px) {
  .shindan-tile {
    display: grid; grid-template-columns: 64px 1fr; grid-template-areas: "img name" "img meta" "btn btn";
    text-align: left; align-items: center; column-gap: 12px; row-gap: 0; padding: 12px 14px 14px;
  }
  .shindan-tile-img { grid-area: img; }
  .shindan-tile-img img { width: 64px; }
  .shindan-tile-name { grid-area: name; align-self: end; font-size: 1.02rem; }
  .shindan-tile-meta { grid-area: meta; align-self: start; }
  .shindan-tile .btn { grid-area: btn; margin-top: 10px; min-height: 50px; }
}

/* 診断ページ */
.shindan-intro { display: flex; gap: 14px; align-items: flex-start; }
.shindan-intro-panda { width: 90px; height: auto; flex: none; }
.shindan-intro-text p { margin: 0 0 1em; }
@media (max-width: 520px) { .shindan-intro { flex-direction: column; align-items: center; } }
.shindan-facts { list-style: none; margin: .4em 0 0; padding: 12px 14px; display: grid; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.shindan-facts li { display: flex; align-items: center; gap: .5em; font-weight: 700; }
.shindan-facts .icon { color: var(--main); }
.shindan-howto { display: flex; align-items: center; gap: .4em; font-weight: 700; color: var(--main-dark); margin: 24px 0 8px; }
.q { border: 2px solid var(--line); border-radius: 18px; background: #fff; padding: 14px 14px 8px; margin: 18px 0; min-width: 0; }
.q-done { border-color: #a8cfbf; }
.q-missing { border-color: var(--warn); box-shadow: 0 0 0 3px #fbd5d0; }
.q-head { float: left; width: 100%; padding: 0; margin: 0 0 6px; }
.q-head + * { clear: both; }
.q-num { display: inline-block; background: var(--main); color: #fff; border-radius: 999px; padding: .1em .9em; font-size: .9rem; font-weight: 800; }
.q-of { font-weight: 400; opacity: .85; }
.q-missing .q-num { background: var(--warn); }
.q-text { display: block; font-size: 1.14rem; font-weight: 800; line-height: 1.6; margin: .5em 0 .2em; }
.q-options { display: grid; gap: 10px; padding-bottom: 6px; }
.q-option {
  position: relative; display: flex; align-items: center; gap: .8em;
  min-height: 58px; padding: .7em 1em; cursor: pointer;
  border: 2px solid var(--line-strong); border-radius: 14px; background: #fffdf9; line-height: 1.55;
  font-weight: 700;
}
.q-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-option-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--line-strong); background: #fff; }
.q-option:hover { border-color: var(--main); }
.q-option input:checked + .q-option-mark { border-color: var(--main); background: radial-gradient(circle, var(--main) 0 42%, #fff 46%); }
.q-option.is-checked, .q-option:has(input:checked) { border-color: var(--main); background: var(--main-soft); }
.q-option input:focus-visible + .q-option-mark { outline: 3px solid #f59e0b; outline-offset: 2px; }
.shindan-submit { margin: 22px 0 8px; }
.shindan-progress { text-align: center; font-weight: 700; color: var(--main-dark); margin: 0 0 .6em; min-height: 1.6em; }
.form-notice { display: flex; gap: .5em; align-items: flex-start; background: var(--warn-soft); border: 2px solid #f1a7a0; color: var(--warn); font-weight: 700; padding: .8em 1em; border-radius: 12px; line-height: 1.7; }
.form-notice .icon { margin-top: .25em; }
.shindan-results:focus { outline: none; }
.result { margin: 28px 0; padding: 20px 16px; background: #fff; border: 3px solid var(--main); border-radius: 20px; box-shadow: var(--shadow); }
.result-label { display: inline-flex; align-items: center; gap: .35em; background: var(--main); color: #fff; font-weight: 800; padding: .2em 1em; border-radius: 999px; margin: 0 0 .8em; }
.result-head { display: flex; gap: 14px; align-items: center; margin-bottom: 1em; }
.result-image { width: 110px; height: auto; flex: none; }
.result-title { font-size: 1.45rem; font-weight: 800; color: var(--main-dark); margin: 0; line-height: 1.5; }
.result-lead { font-weight: 700; margin: .3em 0 0; }
@media (max-width: 480px) { .result-head { flex-direction: column; text-align: center; } }
.result-body p { line-height: 2; }
/* 結果の中の、答えに合わせた「気をつけたいこと」と「答えから見えたこと」 */
.result .result-alerts { margin: 1.2em 0 1.4em; }
.result-alerts .box-title span { word-break: keep-all; overflow-wrap: anywhere; }
.result-alert-list { margin: 0; padding-left: 1.3em; }
.result-alert-list li { margin: .45em 0; line-height: 1.9; }
.result-cap-note { margin: .8em 0 0; font-size: .92rem; color: var(--muted); line-height: 1.7; }
.result-signs { margin: 1.2em 0 1.6em; padding: 16px 16px 8px; background: #faf6ef; border: 1px solid var(--line); border-radius: 16px; }
@media (min-width: 600px) { .result-signs { padding: 18px 22px 10px; } }
.result-signs-title { display: flex; align-items: center; gap: .4em; font-weight: 800; margin: 0 0 .7em; color: var(--main-dark); line-height: 1.5; }
.signs-grid { display: grid; gap: 4px 22px; }
@media (min-width: 640px) { .signs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.signs-head { font-weight: 800; font-size: .95rem; margin: 0 0 .2em; }
.signs-good .signs-head { color: var(--main-dark); }
.signs-care .signs-head { color: var(--point); }
.signs-list { list-style: none; margin: 0 0 .7em; padding: 0; }
.signs-list li { display: flex; gap: .5em; align-items: flex-start; margin: .35em 0; line-height: 1.75; }
.sign-icon { flex: none; width: 1.15em; height: 1.15em; margin-top: .32em; }
.signs-good .sign-icon { color: var(--main); }
.signs-care .sign-icon { color: var(--point); }
.advice-list { margin: 0; padding-left: 1.4em; }
.advice-list li { margin: .5em 0; line-height: 1.8; }
.result-related { margin-top: 1.6em; }
.result-related-title { display: flex; align-items: center; gap: .4em; font-weight: 800; margin: 0 0 .6em; }
.result-buttons { text-align: center; margin: 1.6em 0 0; }
.result-buttons .btn { width: 100%; max-width: 420px; }
.shindan-note { display: flex; gap: .5em; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 1.4em 0; line-height: 1.7; }
.shindan-note .icon { margin-top: .2em; }
.shindan-article { margin-top: 2em; }

/* ───── お問い合わせ ───── */
.contact-note { margin-top: 0; }
.contact-form { margin-top: 1.4em; }
.field { margin: 0 0 1.6em; padding: 0; border: 0; min-width: 0; }
.field-label { display: flex; align-items: center; gap: .5em; font-weight: 800; font-size: 1.08rem; margin-bottom: .3em; padding: 0; }
.req { display: inline-block; background: var(--warn); color: #fff; font-size: .75rem; padding: .05em .55em; border-radius: 6px; font-weight: 700; }
.opt { font-size: .82rem; color: var(--muted); font-weight: 400; }
.field-help { font-size: .9rem; color: var(--muted); margin: 0 0 .5em; line-height: 1.6; }
.input {
  display: block; width: 100%; font-family: inherit; font-size: 18px; line-height: 1.6;
  padding: .75em .85em; border: 2px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--text);
}
.input:focus { outline: 3px solid rgba(31, 111, 84, .3); border-color: var(--main); }
.textarea { min-height: 13em; resize: vertical; }
.has-error .input { border-color: var(--warn); background: var(--warn-soft); }
.field-error { display: flex; gap: .4em; align-items: flex-start; color: var(--warn); font-weight: 700; margin: .5em 0 0; line-height: 1.6; }
.field-error .icon { margin-top: .2em; }
.radio-list { display: grid; gap: 10px; }
@media (min-width: 560px) { .radio-list { grid-template-columns: 1fr 1fr; } }
.radio { position: relative; display: flex; align-items: center; gap: .7em; min-height: 54px; padding: .6em .9em; border: 2px solid var(--line-strong); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 700; line-height: 1.5; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--line-strong); }
.radio input:checked + .radio-mark { border-color: var(--main); background: radial-gradient(circle, var(--main) 0 42%, #fff 46%); }
.radio.is-checked, .radio:has(input:checked) { border-color: var(--main); background: var(--main-soft); }
.radio input:focus-visible + .radio-mark { outline: 3px solid #f59e0b; outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: .9rem; color: var(--muted); line-height: 1.7; }
.form-buttons { display: grid; gap: 14px; margin-top: 1.4em; }
.confirm-list { margin: 0 0 1.6em; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 4px 18px; }
.confirm-list dt { font-weight: 800; color: var(--main-dark); padding-top: 14px; }
.confirm-list dd { margin: .2em 0 0; padding-bottom: 14px; border-bottom: 1px dashed var(--line); line-height: 1.8; }
.confirm-list dd:last-child { border-bottom: 0; }
.confirm-help { display: block; font-size: .85rem; color: var(--muted); }
.confirm-message { white-space: normal; }
.thanks { text-align: center; padding-top: 24px; }
.thanks .box { text-align: left; }
.thanks-panda { width: 120px; height: auto; }
.thanks-buttons { margin-top: 1.6em; }

/* ───── 見つからないとき ───── */
.notfound { text-align: center; padding-top: 24px; }
.notfound-panda { width: 130px; height: auto; }
.notfound-buttons { display: grid; gap: 14px; max-width: 460px; margin: 1.6em auto 0; }

/* ───── 記事のあと ───── */
.article-shindan { margin-top: 2.6em; }
.article-after-title, .related-title { display: flex; align-items: center; gap: .4em; font-size: 1.25rem; font-weight: 800; margin: 0 0 .7em; }
.related { margin-top: 2.6em; }
.more-cat { margin-top: 1.8em; }

/* ───── フッター ───── */
.site-footer { background: #3a322b; color: #f7efe4; margin-top: 2em; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 28px 16px 90px; }
.footer-title { font-weight: 800; margin: 0 0 .7em; }
.footer-cats { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .footer-cats { grid-template-columns: 1fr 1fr; } }
.footer-cats a { display: flex; align-items: center; gap: .6em; min-height: 54px; padding: .5em 1em; border: 2px solid #6b5f53; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 700; }
.footer-cats a:hover { background: #4a4037; }
.footer-links { list-style: none; margin: 0 0 1.4em; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { color: #f7efe4; display: inline-block; padding: .35em 0; }
.footer-copy { display: flex; align-items: center; gap: .5em; font-size: .85rem; color: #d8cdbf; margin: 0; }

/* ───── 上へ戻るボタン ───── */
.to-top {
  position: fixed; right: 14px; bottom: 16px; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: #fff; border: 2px solid var(--main); color: var(--main-dark);
  text-decoration: none; font-size: .78rem; font-weight: 800; line-height: 1.1;
  box-shadow: 0 4px 12px rgba(40, 30, 20, .2);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.to-top .icon { width: 22px; height: 22px; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ───── 動きを減らす設定の人には動きをつけない ───── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ───── 印刷 ───── */
@media print {
  .site-header, .site-footer, .to-top, .cta-box, .menu, .preview-bar, .other-cats, .more { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}

/* 診断の一覧（カテゴリのページ） */
.cat-shindan-list { background: var(--soft-face); border: 2px solid var(--soft-line); border-radius: 16px; padding: 16px; margin: 0 0 24px; }
.shindan-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.shindan-row {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 10px 10px 14px;
  background: #fff; border: 1.5px solid var(--soft-line); border-radius: 12px;
  color: var(--soft-text); text-decoration: none; font-weight: 700; line-height: 1.45;
  box-shadow: 0 3px 0 var(--soft-shadow);
}
.shindan-row .shindan-row-icon { color: var(--main); }
.shindan-row .shindan-row-arrow { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--main-soft); color: var(--main); }
.shindan-row:hover { background: #f7fbf9; border-color: #a8cfbf; }
.shindan-row:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--soft-shadow); }
.shindan-row-name { flex: 1; word-break: auto-phrase; }
.shindan-row-meta { font-size: .82rem; color: var(--muted); font-weight: 400; white-space: nowrap; }

/* せまい画面では、囲みの中の余白を少し減らして、ボタンの文字が3行にならないようにする */
@media (max-width: 480px) {
  .result { padding: 18px 12px; }
  .result .cta-box { padding: 20px 10px 14px; }
  .btn-cta, .btn-cta-sub { padding: .7em .75em; gap: .35em; }
  .cta-panda { width: 60px; height: 60px; }
}
