/* リフレーミング変換 — 見た目 */
:root {
  --green: #2f6a2f;
  --green-d: #255625;
  --green-t: #2f6a2f;
  --green-h: #4b7a2c;
  --olive: #5d7d46;
  --mint: #e3ebe3;
  --mint-2: #f2f6f1;
  --ink: #333333;
  --text: #5c5c5c;
  --muted: #858585;
  --line: #cfcfcf;
  --line-2: #e4e4e4;
  --gray-bg: #f6f6f6;
  --th: #dddddd;
  --navy: #3b4656;
  --orange: #e8891a;
  --orange-2: #f4b04a;
  --orange-ink: #3d2a0c;
  --orange-red: #c05a1b;
  --orange-soft: #fdf3e4;
  --beige: #f5f3ee;
  --blue: #2a78b8;
  --radius: 3px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", YuGothic, "Meiryo", sans-serif;
  --wrap: 1140px;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: #fff;
  overflow-wrap: anywhere;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-t); text-underline-offset: 3px; }
a:hover { color: var(--green-d); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #f0a53a; outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--green); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 8px; color: #fff; }
h1, h2, h3, h4 { word-break: auto-phrase; line-break: strict; text-wrap: balance; letter-spacing: .03em; }
p { margin: 0 0 1.3em; }
svg { flex-shrink: 0; }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--line-2); background: #fff; }
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 12px calc(18px + var(--safe-r)) 12px calc(18px + var(--safe-l));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-t); min-width: 0; }
.logo__mark { width: 54px; height: 54px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.logo__sub { font-size: 12px; font-weight: 700; color: var(--green-h); letter-spacing: .04em; }
.logo__name { font-size: 21px; font-weight: 800; color: var(--green-t); letter-spacing: .05em; white-space: nowrap; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 48px; height: 48px; border: 0; background: transparent; border-radius: var(--radius); color: var(--ink);
}
.menu-btn span { display: block; width: 22px; height: 3px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.gnav { display: none; }
.gnav ul { list-style: none; margin: 0; padding: 0; }
.gnav a { text-decoration: none; color: var(--ink); font-weight: 700; }
.gnav a[aria-current="page"] { color: var(--green-t); }
.gnav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  background: #fff; border-top: 1px solid var(--line-2); border-bottom: 3px solid var(--green);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  max-height: calc(100dvh - 80px); overflow: auto;
}
.gnav.is-open ul { padding: 6px calc(18px + var(--safe-r)) 14px calc(18px + var(--safe-l)); }
.gnav.is-open li { border-bottom: 1px solid var(--line-2); }
.gnav.is-open a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 6px 4px; }
.gnav.is-open a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
.site-header { position: relative; }
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .gnav { display: block; }
  .gnav ul { display: flex; gap: 4px; }
  .gnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px; font-size: 15px; border-bottom: 3px solid transparent; }
  .gnav a:hover { color: var(--green-t); }
  .gnav a[aria-current="page"] { border-bottom-color: var(--green); }
  .gnav .gnav__sub { display: none; }
}

/* 2 列の骨組み */
.layout {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 calc(22px + var(--safe-r)) 56px calc(22px + var(--safe-l));
}
.main { min-width: 0; }
@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
  .layout--single { display: block; max-width: 880px; }
}
.side { margin-top: 48px; }
@media (min-width: 1024px) { .side { margin-top: 112px; position: sticky; top: 24px; } }

/* パンくず */
.crumbs { font-size: 13px; color: var(--muted); padding: 22px 0 6px; line-height: 1.7; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid #aaa; border-right: 1.5px solid #aaa; transform: rotate(45deg); }
.crumbs a { color: var(--green-t); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs svg { width: 15px; height: 15px; }

/* 見出し */
.page-meta { font-size: 13px; color: var(--green-h); margin: 18px 0 6px; }
.page-title { color: var(--green-t); font-size: clamp(22px, 5.4vw, 30px); line-height: 1.5; font-weight: 800; margin: 0 0 22px; }
.bar {
  background: var(--green); color: #fff; font-size: clamp(20px, 4.9vw, 25px); font-weight: 800; line-height: 1.45;
  padding: 9px 14px 10px; margin: 56px 0 20px; border-radius: 1px;
}
.bar small { display: block; font-size: 14px; font-weight: 500; opacity: .9; margin-top: 2px; }
.h3 { position: relative; color: var(--ink); font-size: clamp(18px, 4.4vw, 21px); font-weight: 800; line-height: 1.5; padding-left: 16px; margin: 36px 0 14px; }
.h3::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; background: var(--orange); border-radius: 1px; }
.lead { color: var(--text); }
.main > ul { padding-left: 1.4em; margin: 0 0 1.3em; }
.main > ul li { margin: .35em 0; }
.hero--plain img { aspect-ratio: 16 / 9; }
.note { font-size: 14px; color: var(--muted); line-height: 1.8; }
.center { text-align: center; }

/* 表（参考の灰色の頭の表） */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 24px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; background: #fff; }
.tbl th, .tbl td { border: 1px solid #c8c8c8; padding: 12px 14px; vertical-align: top; text-align: left; }
.tbl thead th { background: var(--th); color: #555; font-weight: 500; text-align: center; vertical-align: middle; }
.tbl tbody th { background: #f4f4f4; color: var(--ink); font-weight: 700; }
.tbl--kv thead th:first-child, .tbl--kv tbody th { width: 38%; }
.tbl--half th, .tbl--half td { width: 50%; }

/* 目次 */
.toc { border: 1px solid #c9c9c9; padding: 14px 18px 8px; margin: 28px 0 8px; background: #fff; }
.toc__title { text-align: center; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.toc ol { margin: 0; padding: 0 0 0 1.4em; }
.toc li { padding: 4px 0; line-height: 1.7; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border-radius: 4px; border: 2px solid var(--green);
  background: #fff; color: var(--green-t); font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.4;
  transition: background-color .2s, color .2s, transform .1s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { background: var(--mint-2); color: var(--green-d); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--green); color: #fff; border-color: var(--green); font-size: 18px; min-height: 58px; letter-spacing: .08em; box-shadow: 0 3px 0 #1d461d; }
.btn--primary:hover { background: var(--green-d); color: #fff; }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #1d461d; }
.btn--primary[aria-busy="true"] { opacity: .85; pointer-events: none; }
.btn--block { width: 100%; }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--small { min-height: 44px; font-size: 15px; padding: 8px 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; min-height: 44px; }
.text-link::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* 右の列（よく引かれる言葉・相談先） */
.side-box { margin-bottom: 32px; }
.tabbox__tab { display: inline-block; border: 1px solid #c9c9c9; border-bottom: 0; background: #fff; padding: 10px 26px; font-size: 14px; color: var(--ink); position: relative; top: 1px; }
.tabbox__body { border: 1px solid #c9c9c9; background: #fff; }
.word-list { list-style: none; margin: 0; padding: 0; }
.word-list li + li { border-top: 1px solid var(--line-2); }
.word-list a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--text); min-height: 56px; }
.word-list a:hover { background: var(--mint-2); }
.word-list .w { grid-row: span 2; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 999px; padding: 4px 8px; white-space: nowrap; text-align: center; }
.word-list .p { font-size: 14px; color: var(--orange-red); font-weight: 700; line-height: 1.5; }
.word-list .k { font-size: 12px; color: var(--muted); line-height: 1.4; }
.help-box { border: 1px solid #d9d2c3; background: var(--beige); padding: 18px; }
.help-box__title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.help-box__title svg { width: 22px; height: 22px; color: var(--green); }
.help-box p { font-size: 14px; line-height: 1.8; margin: 0 0 8px; }

/* 関連ページ（参考の関連記事の帯） */
.related { margin-top: 24px; }
.related__head { background: var(--green); color: #fff; }
.related__head h2 { max-width: var(--wrap); margin: 0 auto; padding: 18px calc(22px + var(--safe-r)) 18px calc(22px + var(--safe-l)); font-size: 16px; font-weight: 500; letter-spacing: .06em; }
.related__body { background: var(--mint); }
.related__grid { max-width: var(--wrap); margin: 0 auto; padding: 22px calc(18px + var(--safe-r)) 30px calc(18px + var(--safe-l)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
@media (min-width: 900px) { .related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; } }
.card-link { display: block; text-decoration: none; color: var(--text); }
.card-link__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #d9e2d9; }
.card-link__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-link:hover .card-link__img img { transform: scale(1.04); }
.card-link__title { display: block; margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text); }
.card-link:hover .card-link__title { color: var(--green-t); text-decoration: underline; }

/* フッター */
.site-footer { margin-top: 0; }
.footer-links { background: var(--gray-bg); }
.footer-links__inner { max-width: var(--wrap); margin: 0 auto; padding: 34px calc(22px + var(--safe-r)) 30px calc(22px + var(--safe-l)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
@media (min-width: 900px) { .footer-links__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-links h2 { font-size: 15px; color: var(--green-h); margin: 0 0 6px; font-weight: 800; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; color: #666; text-decoration: none; line-height: 1.5; }
.footer-links a:hover { color: var(--green-t); text-decoration: underline; }
.footer-band { background: var(--green); color: #fff; text-align: center; padding: 34px 20px 30px; }
.footer-band__name { font-size: 18px; letter-spacing: .08em; margin: 0 0 4px; }
.footer-band__tag { font-size: 13px; opacity: .85; margin: 0; }
.footer-copy { background: var(--olive); color: #fff; text-align: center; font-size: 12px; padding: 16px 20px calc(16px + var(--safe-b)); margin: 0; }

/* 小さな知らせ */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 20px);
  background: rgba(40, 52, 40, .95); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 60; width: max-content; max-width: calc(100% - 32px); text-align: center; word-break: auto-phrase;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* 最初の画面の額縁の写真 */
.hero { position: relative; container-type: inline-size; margin: 0 0 26px; background: #e9e6e0; overflow: hidden; }
.hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__text {
  position: absolute; left: 29.6%; right: 29.6%; top: 28.6%; bottom: 31.6%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .3em;
  color: #3f3a33; padding: 0 2%;
}
.hero__title { margin: 0; font-size: clamp(13px, 4cqi, 32px); font-weight: 800; line-height: 1.45; letter-spacing: .04em; }
.hero__title span { display: block; white-space: nowrap; }
.hero__sub { margin: 0; font-size: clamp(10px, 1.75cqi, 14px); line-height: 1.6; color: #6b6255; letter-spacing: .04em; word-break: keep-all; }
.hero__badge { position: absolute; right: 3%; top: 5%; width: 18cqi; max-width: 96px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbd28a, #e8891a 70%); color: #3d2a0c; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: clamp(9px, 2.4cqi, 14px); line-height: 1.35; box-shadow: 0 4px 10px rgba(120, 70, 10, .25); }
@container (max-width: 520px) { .hero__sub { display: none; } }

/* 入力の箱 */
.tool { border: 1px solid #cfcfcf; background: #fff; padding: 20px 18px 22px; box-shadow: 0 2px 0 rgba(0,0,0,.03); }
@media (min-width: 640px) { .tool { padding: 26px 28px 28px; } }
.mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.mode__label { font-size: 14px; font-weight: 700; color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--green); border-radius: 12px; overflow: hidden; }
.seg button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; border: 0; background: #fff; color: var(--green-t); font-weight: 700; font-size: 14px; min-height: 48px; padding: 6px 16px; line-height: 1.3; white-space: nowrap; }
.seg__sub { font-size: 12px; font-weight: 500; }
@media (min-width: 640px) {
  .seg { border-radius: 999px; }
  .seg button { flex-direction: row; min-height: 44px; }
}
.seg button + button { border-left: 1px solid var(--green); }
.seg button[aria-pressed="true"] { background: var(--green); color: #fff; }
.field-label { display: block; font-weight: 800; color: var(--ink); margin: 0 0 8px; font-size: 17px; }
.field-help { font-size: 14px; color: var(--muted); margin: -4px 0 10px; line-height: 1.7; }
.textarea {
  display: block; width: 100%; min-height: 132px; resize: vertical;
  font-size: max(17px, 1rem); line-height: 1.8; padding: 14px 16px; color: var(--ink);
  border: 1px solid #b9b9b9; border-radius: var(--radius); background: #fff;
}
.textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 106, 47, .18); }
.textarea[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.field-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 6px; min-height: 26px; }
.field-error { color: #b03a2e; font-size: 14px; font-weight: 700; line-height: 1.6; margin: 0; }
.counter { font-size: 13px; color: var(--muted); white-space: nowrap; margin-left: auto; }
.counter.is-over { color: #b03a2e; font-weight: 700; }
.examples { margin: 14px 0 18px; }
.examples__label { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #d6d6d6; background: #f7f7f5; color: var(--ink); border-radius: 999px; font-size: 14px; min-height: 42px; padding: 6px 14px; line-height: 1.4; text-align: left; transition: background-color .15s, border-color .15s; }
.chip:hover { background: var(--orange-soft); border-color: var(--orange-2); }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 14px 0 0; line-height: 1.7; }
.privacy-note svg { width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.kbd-hint { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0; }
@media (hover: none) { .kbd-hint { display: none; } }

/* 結果 */
.result { scroll-margin-top: 12px; }
.result[hidden] { display: none; }
.result:focus { outline: none; }
.r-block { margin: 0 0 30px; }
.auto-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; border: 1px solid #b7cfe2; background: #f3f8fc; border-radius: 4px; padding: 10px 14px; margin: 0 0 22px; }
.auto-note p { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.7; flex: 1 1 260px; }
.r-label { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 12px; line-height: 1.5; }
.r-label::before { content: ""; width: 5px; height: 1.2em; background: var(--orange); border-radius: 1px; flex-shrink: 0; }
.empathy { position: relative; background: var(--mint-2); border: 1px solid #d5e1d3; border-radius: 4px; padding: 18px 20px; color: var(--ink); }
.empathy p { margin: 0; }
.empathy p + p { margin-top: 6px; color: var(--text); }
.empathy__icon { float: left; width: 40px; height: 40px; margin: 2px 12px 4px 0; color: var(--green); }
.yours { border: 1px dashed #c9c9c9; padding: 12px 16px; background: #fff; color: var(--ink); line-height: 2; white-space: pre-wrap; }
.yours__cap { font-size: 12px; color: var(--muted); display: block; margin-bottom: 2px; }
.mk-word { background: #e7ebf1; border-bottom: 2px solid var(--navy); padding: 1px 2px; }
.mk-habit { background: linear-gradient(transparent 60%, #ffe0b0 60%); }
.rewrite { margin-top: 12px; border-left: 4px solid var(--orange); background: var(--orange-soft); padding: 12px 16px; }
.rewrite__cap { display: block; font-size: 13px; font-weight: 700; color: var(--orange-red); }
.rewrite__text { color: var(--orange-ink); font-weight: 700; font-size: 17px; line-height: 1.8; }

/* 言い換えの札（紺 → 橙） */
.pairs { background: var(--beige); padding: 16px 14px; border-radius: 4px; margin-top: 14px; }
@media (min-width: 640px) { .pairs { padding: 20px 22px; } }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 0; }
.pair + .pair { border-top: 1px solid #e3ddd0; }
.pair__neg-wrap { display: flex; align-items: center; gap: 10px; }
.pill-neg { display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-weight: 700; border-radius: 999px; padding: 6px 18px; font-size: 15px; line-height: 1.45; min-height: 38px; text-align: center; max-width: 100%; }
.pair__arrow { flex: 1; height: 2px; background: #a5a5a5; position: relative; min-width: 28px; transform-origin: left center; }
.pair__arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border-left: 10px solid #a5a5a5; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pair__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pill-pos {
  display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--orange-2); background: #fff; color: var(--orange-ink);
  border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 700; line-height: 1.45; min-height: 44px; text-align: left;
  transition: background-color .15s, box-shadow .15s, transform .1s;
}
.pill-pos:hover { background: var(--orange-soft); }
.pill-pos:active { transform: scale(.98); }
.pill-pos[aria-pressed="true"] { background: linear-gradient(180deg, #f7bd5a 0%, #ec9424 100%); border-color: #e48a17; box-shadow: 0 2px 0 #c06f0d; }
.pill-pos .tick { width: 16px; height: 16px; display: none; }
.pill-pos[aria-pressed="true"] .tick { display: inline-block; }
.pair__why { font-size: 14px; color: var(--text); line-height: 1.8; margin: 0; }
.pair__scene { font-size: 13px; color: var(--muted); margin: 2px 0 0; line-height: 1.7; }
.pair__scene b { color: var(--green-h); font-weight: 700; }
@media (min-width: 760px) {
  .pair { grid-template-columns: 210px minmax(0, 1fr); column-gap: 0; align-items: start; }
  .pair__neg-wrap { padding-top: 3px; padding-right: 10px; }
  .pair__main { grid-column: 2; }
  .pair__neg-wrap { grid-row: span 1; }
}
.pairs-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.pairs-foot .note { margin: 0; }
.is-animating .pair__arrow { animation: grow .5s ease-out both; }
.is-animating .pill-pos { animation: pop .35s ease-out both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* 考え方のクセ */
.habits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.habit { border: 1px solid #e2cfa8; background: #fff; border-radius: 4px; padding: 14px 16px; }
.habit__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; }
.habit__name { font-weight: 800; color: var(--orange-red); }
.habit__formal { font-size: 12px; color: var(--muted); }
.habit__word { font-size: 13px; color: var(--ink); background: #fff2dd; border-radius: 3px; padding: 0 6px; }
.habit__q { margin: 0 0 8px; color: var(--ink); font-size: 15px; line-height: 1.8; }
.habit__ex { display: grid; gap: 2px; font-size: 14px; line-height: 1.7; margin: 0; }
.habit__ex .b { color: var(--muted); text-decoration: line-through; text-decoration-color: #bbb; }
.habit__ex .a { color: var(--orange-red); font-weight: 700; }
.habit__ex .a::before { content: "→ "; }

/* 4 つの見方 */
.views { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); background: #f3f1ec; padding: 14px; border-radius: 4px; }
@media (min-width: 680px) { .views { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; } }
.view { background: #fff; border: 1px solid #c9c4b8; border-radius: 3px; padding: 16px 16px 14px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.view__head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.view__icon { width: 34px; height: 34px; color: var(--navy); }
.view__title { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.4; }
.view__lead { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.6; }
.view__q { font-size: 15px; color: var(--ink); font-weight: 700; margin: 0 0 6px; line-height: 1.75; }
.view__ex { display: flex; gap: 6px; font-size: 15px; color: var(--orange-red); font-weight: 700; margin: 0 0 6px; line-height: 1.7; }
.view__ex svg { width: 18px; height: 18px; margin-top: 4px; color: var(--orange); }
.view__note { font-size: 14px; color: var(--text); margin: 0; line-height: 1.8; }

/* まとめの額縁（灰 → 橙の枠） */
.frame { position: relative; margin: 6px 4px 0; padding: 26px 22px 22px; background: #fffdf8; border: 12px solid transparent; border-image: linear-gradient(120deg, #a9a9a9 0%, #cfcfcf 38%, #f0c070 62%, #e8891a 100%) 1; box-shadow: 0 8px 20px rgba(0,0,0,.08), inset 0 0 0 1px rgba(160, 120, 60, .25); }
.frame::after { content: ""; position: absolute; inset: -12px; border: 12px solid #b8b8b8; pointer-events: none; opacity: 0; }
.frame.is-reframing::after { animation: unframe 1.4s ease-out both; }
@keyframes unframe { 0% { opacity: 1; } 35% { opacity: 1; } 100% { opacity: 0; } }
.frame__cap { text-align: center; font-size: 13px; font-weight: 800; color: #8c6a2e; letter-spacing: .2em; margin: 0 0 10px; }
.frame__lines { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.frame__lines li { text-align: center; color: var(--ink); line-height: 1.75; text-wrap: balance; word-break: auto-phrase; }
.frame__lines .neg { color: var(--muted); text-decoration: line-through; text-decoration-color: #c2c2c2; white-space: nowrap; }
.frame__lines .arr { color: var(--orange); font-weight: 800; margin: 0 .5em; }
.frame__lines .pos { display: inline-block; font-weight: 800; color: var(--orange-ink); font-size: 18px; text-decoration-line: underline; text-decoration-color: #ffd998; text-decoration-thickness: .42em; text-underline-offset: -.3em; text-decoration-skip-ink: none; }
.frame__closing { text-align: center; font-size: clamp(18px, 4.6vw, 22px); font-weight: 800; color: var(--green-t); line-height: 1.6; margin: 0 0 8px; text-wrap: balance; word-break: auto-phrase; }
.frame__tail { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.actions .btn { width: 100%; padding-left: 10px; padding-right: 10px; }
@media (min-width: 640px) { .actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 相談先（つらい時） */
.support { border: 2px solid #9bb59b; background: #f7faf6; border-radius: 4px; padding: 20px 18px; }
.support__title { font-size: 19px; font-weight: 800; color: var(--green-t); margin: 0 0 10px; line-height: 1.5; }
.support p { color: var(--ink); }
.lines { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.line { background: #fff; border: 1px solid #d5e1d3; border-radius: 4px; padding: 12px 14px; }
.line__name { font-weight: 800; color: var(--ink); display: block; line-height: 1.5; }
.line__tel { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: var(--green-t); text-decoration: none; min-height: 44px; letter-spacing: .04em; }
.line__tel svg { width: 22px; height: 22px; }
.line__note { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.support__urgent { font-size: 14px; color: #8a3b2a; font-weight: 700; }

/* 日記の書き込み表 */
.diary { border: 1px solid #cfcfcf; background: #fff; padding: 18px 16px; }
@media (min-width: 640px) { .diary { padding: 24px 26px; } }
.diary__row { margin: 0 0 18px; }
.diary__row > label, .diary__row > .lbl { display: flex; align-items: baseline; gap: 10px; font-weight: 800; color: var(--ink); margin: 0 0 6px; word-break: auto-phrase; }
.diary__row .step { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; flex-shrink: 0; transform: translateY(-1px); }
.diary__row .opt { font-size: 12px; font-weight: 500; color: var(--muted); }
.diary__row .paren { display: inline-block; }
.input, .diary textarea, .diary input[type="date"] { width: 100%; font-size: max(16px, 1rem); line-height: 1.7; padding: 11px 14px; border: 1px solid #b9b9b9; border-radius: var(--radius); background: #fff; color: var(--ink); }
.diary textarea { min-height: 92px; resize: vertical; }
.diary textarea:focus, .diary input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 106, 47, .18); }
.feel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feel-chips button { border: 1px solid #cfcfcf; background: #fff; border-radius: 999px; min-height: 42px; padding: 6px 14px; font-size: 14px; color: var(--ink); }
.feel-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.meter { display: grid; grid-template-columns: minmax(0, 1fr) 3.4em; align-items: center; gap: 0 12px; margin-top: 10px; font-size: 14px; }
.meter > span { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .meter { grid-template-columns: auto minmax(0, 1fr) 3.4em; }
  .meter > span { grid-column: auto; }
}
.meter input[type="range"] { width: 100%; accent-color: var(--green); min-height: 32px; }
.meter output { font-weight: 800; color: var(--ink); text-align: right; }
.hint-box { margin-top: 10px; background: var(--beige); border-radius: 4px; padding: 12px 14px; }
.hint-box[hidden] { display: none; }
.hint-box p { margin: 0 0 8px; font-size: 14px; }
.diary-out { margin-top: 18px; border-top: 1px solid var(--line-2); padding-top: 18px; }
.diary-sheet { background: #fffdf8; border: 1px solid #e3d6bd; padding: 16px 18px; white-space: pre-wrap; color: var(--ink); line-height: 1.9; font-size: 15px; }
.diary-change { font-weight: 800; color: var(--green-t); }

/* 辞書 */
.dict-tools { display: grid; gap: 14px; margin: 0 0 18px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; font-size: max(16px, 1rem); min-height: 52px; padding: 10px 14px 10px 44px; border: 1px solid #b9b9b9; border-radius: var(--radius); }
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 106, 47, .18); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tabs button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; min-height: 44px; padding: 6px 16px; font-size: 14px; font-weight: 700; }
.cat-tabs button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.kana-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.kana-nav a, .kana-nav span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #b7cfe2; color: var(--blue); font-weight: 800; text-decoration: none; border-radius: 3px; background: #fff; }
.kana-nav a:hover { background: #eef5fb; }
.kana-nav span { color: #c3c3c3; border-color: #e3e3e3; }
.dict-count { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.dict-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; table-layout: fixed; }
.dict-table th, .dict-table td { border: 1px solid #a9c6dc; padding: 10px 10px; vertical-align: middle; text-align: left; }
.dict-table thead th { background: #eef4f9; color: #2d5f86; font-size: 13px; font-weight: 700; text-align: center; }
.dict-table .col-idx { width: 3em; text-align: center; color: var(--blue); font-weight: 800; font-size: 16px; padding-left: 2px; padding-right: 2px; white-space: nowrap; }
.dict-table thead th.col-idx { font-size: 13px; }
.dict-table .col-word { width: 38%; }
.dict-table td.col-word a { color: var(--ink); font-weight: 700; text-decoration: none; display: block; min-height: 24px; }
.dict-table td.col-word a:hover { color: var(--green-t); text-decoration: underline; }
.dict-table .tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #8a94a3; border-radius: 3px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; }
.dict-table .tag--e { background: #b07d2c; }
.dict-table .tag--s { background: #4c7a5a; }
.dict-table td.col-pos { color: var(--orange-red); font-weight: 700; }
.dict-table tr.row-head td { background: #f6f9fc; }
@media (max-width: 639px) {
  .dict-table { font-size: 14px; line-height: 1.55; }
  .dict-table th, .dict-table td { padding: 8px 7px; }
  .dict-table .col-word { width: 36%; }
}
.to-index {
  position: fixed; right: calc(14px + var(--safe-r)); bottom: calc(16px + var(--safe-b)); z-index: 20;
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 14px;
  background: #fff; color: var(--blue); border: 1px solid #b7cfe2; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-index svg { width: 16px; height: 16px; }
.to-index.is-show { opacity: 1; transform: none; pointer-events: auto; }
.dict-empty { border: 1px dashed var(--line); padding: 18px; text-align: center; }
.dict-empty[hidden] { display: none; }

/* 言い換えの見本（参考の言い換えの図） */
.sample { background: var(--beige); padding: 18px 14px 14px; border-radius: 4px; }
.sample__title { text-align: center; font-weight: 800; color: var(--ink); font-size: 17px; margin: 0 0 12px; }
.sample__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sample__list li { display: grid; grid-template-columns: minmax(0, 40%) minmax(18px, 1fr) minmax(0, 52%); align-items: center; gap: 8px; }
.sample__list .pill-neg { font-size: 13px; padding: 4px 10px; min-height: 30px; width: 100%; }
.sample__list .pill-p { display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(180deg, #f7bd5a, #ec9424); color: var(--orange-ink); border-radius: 999px; font-size: 13px; font-weight: 700; padding: 4px 10px; min-height: 30px; line-height: 1.4; }
.sample__list .pair__arrow { min-width: 18px; }
.sample a { display: block; }
.sample__list a.pill-neg { display: flex; text-decoration: none; color: #fff; }
.sample__list a.pill-neg:hover { background: #2c3644; }

/* 使い方の手順 */
.steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; border-bottom: 1px solid var(--line-2); padding: 0 0 12px; }
.steps li::before { content: counter(st); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 18px; }
.steps b { display: block; color: var(--ink); font-size: 17px; line-height: 1.6; }
.steps span { display: block; font-size: 15px; line-height: 1.8; }

/* 解説ページの4つの見方 */
.tech { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); background: #f3f1ec; padding: 14px; border-radius: 4px; margin: 0 0 24px; }
@media (min-width: 680px) { .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; } }
.callout { border-left: 4px solid var(--green); background: var(--mint-2); padding: 14px 18px; margin: 0 0 24px; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

#print-area { display: none; }
@media print {
  .site-header, .site-footer, .related, .side, .crumbs, .tool, .no-print, .toast { display: none !important; }
  body { color: #000; }
  .layout { display: block; padding: 0; }
  body.is-printing > *:not(#print-area) { display: none !important; }
  body.is-printing #print-area { display: block; white-space: pre-wrap; font-size: 12pt; line-height: 1.9; color: #000; }
}
/* @@END */
