@charset "UTF-8";
/*
 * Reach Core — 4ブランド共通コンポーネント
 * 色・書体はブランドごとに子テーマ側でカスタムプロパティを上書きする（要件5-6）。
 * 既定値はSWELLのカスタマイザー設定を継承する。
 */

:root {
  --r-accent: var(--color_main, #16405c);
  --r-accent-dark: var(--color_main_dark, #0d2c40);
  --r-accent-2: #7d8f9c;
  --r-accent-3: #b9c3ca;
  --r-bg: var(--color_bg, #fff);
  --r-surface: #f6f7f8;
  --r-panel: #f2f4f6;
  --r-text: var(--color_text, #1c1c1c);
  --r-muted: #5b6570;
  --r-border: #dfe3e8;
  --r-rule: #d3d9df;
  --r-track: #e7ebee;
  --r-track-strong: #b7c0c8;
  --r-numeral: rgba(0, 0, 0, .16);
  --r-ink-block: #1c1c1c;
  --r-ink-block-text: #fff;
  --r-recommend: rgba(0, 0, 0, .04);
  --r-radius: 6px;
  --r-gap: 24px;
  --r-max: 1120px;
  --r-measure: 34em;
}

/* ---------- レイアウト ---------- */
.r-sec { padding: clamp(48px, 8vw, 96px) 0; }
.r-sec--tint { background: var(--r-surface); }
.r-wrap { width: min(var(--r-max), calc(100% - 40px)); margin-inline: auto; }
@media (max-width: 480px) { .r-wrap { width: calc(100% - 32px); } }

.r-sec__head { margin-bottom: clamp(24px, 4vw, 44px); }
.r-sec__eyebrow {
  font-size: 13px; letter-spacing: .12em; font-weight: 700;
  color: var(--r-accent); margin: 0 0 8px;
}
.r-sec__title {
  font-size: clamp(24px, 3.4vw, 36px); line-height: 1.35; margin: 0;
  font-weight: 700; letter-spacing: .01em;
}
.r-sec__lead { margin: 16px 0 0; font-size: 16px; line-height: 1.9; color: var(--r-muted); max-width: 46em; }

/* ---------- ボタン / CTA ---------- */
.r-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 14px 28px; border-radius: var(--r-radius);
  font-size: 16px; font-weight: 700; line-height: 1.4; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.r-btn--primary { background: var(--r-accent); color: #fff; }
.r-btn--primary:hover, .r-btn--primary:focus-visible { background: var(--r-accent-dark); color: #fff; }
.r-btn--ghost { background: transparent; color: var(--r-accent); border-color: currentColor; }
.r-btn--ghost:hover, .r-btn--ghost:focus-visible { background: var(--r-surface); }
.r-btn:focus-visible { outline: 3px solid var(--r-accent); outline-offset: 2px; }

.r-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.r-cta__note { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; color: var(--r-muted); }
@media (max-width: 600px) {
  .r-cta { flex-direction: column; align-items: stretch; }
  .r-btn { width: 100%; }
}

/* 追従CTA：本文と同意表示を隠さないよう、bodyに余白を持たせる（要件5-5） */
.r-stickycta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--r-border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none; gap: 10px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
}
.r-stickycta .r-btn { min-height: 48px; padding: 10px 16px; font-size: 15px; flex: 1; }
@media (max-width: 900px) {
  .r-stickycta { display: flex; }
  /* SWELLはbody_classを #body_wrap に出力するため、body限定にしない */
  .has-stickycta { padding-bottom: 84px; }
}

/* ---------- ランディングテンプレート：全幅・上余白なし ---------- */
.reach-landing #content.l-content { padding-top: 0; margin-bottom: 0; }
.reach-landing #content.l-container { max-width: 100%; padding-left: 0; padding-right: 0; }
.reach-landing .l-mainContent, .reach-landing .r-main { width: 100%; max-width: 100%; }

/* ---------- 実績ストリップ ---------- */
.r-proof {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.r-proof__item {
  background: var(--r-bg); border: 1px solid var(--r-border); border-radius: var(--r-radius);
  padding: 20px 18px; display: flex; flex-direction: column; gap: 4px;
}
.r-proof__num { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; line-height: 1.2; color: var(--r-accent); }
.r-proof__label { font-size: 15px; font-weight: 700; }
.r-proof__basis { font-size: 12.5px; color: var(--r-muted); line-height: 1.7; }
.r-proof__note { margin: 14px 0 0; font-size: 13px; color: var(--r-muted); }

/* ---------- カード ---------- */
.r-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--r-gap); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
/* 枚数が少ないときは、余白を残さず横幅いっぱいに並べる */
.r-cards[data-cards="1"] { grid-template-columns: minmax(0, 1fr); }
.r-cards[data-cards="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r-cards[data-cards="4"] { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 700px) { .r-cards[data-cards="2"] { grid-template-columns: minmax(0, 1fr); } }
.r-cards[data-cards="1"] .r-card__link { flex-direction: row; align-items: stretch; }
.r-cards[data-cards="1"] .r-card__thumb { flex: 0 0 44%; }
.r-cards[data-cards="1"] .r-card__body { justify-content: center; padding: clamp(20px, 3vw, 32px); }
@media (max-width: 700px) { .r-cards[data-cards="1"] .r-card__link { flex-direction: column; } }
.r-card__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: var(--r-bg); border: 1px solid var(--r-border); border-radius: var(--r-radius); overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.r-card__link:hover, .r-card__link:focus-visible { border-color: var(--r-accent); }
.r-card__link:focus-visible { outline: 3px solid var(--r-accent); outline-offset: 2px; }
.r-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--r-surface); }
.r-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.r-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.r-card__cat { font-size: 12.5px; font-weight: 700; color: var(--r-accent); }
.r-card__title { font-size: 17px; font-weight: 700; line-height: 1.6; }
.r-card__excerpt { font-size: 14px; line-height: 1.85; color: var(--r-muted); }
.r-card__price { margin-top: 2px; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.r-card__more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--r-accent); }
.r-card__more::after { content: '→'; margin-left: 6px; transition: transform .2s ease; display: inline-block; }
.r-card__link:hover .r-card__more::after { transform: translateX(4px); }
.r-cards__empty { color: var(--r-muted); font-size: 15px; }
/* 編集者にだけ見える注記 */
.r-editnote { margin: 0; padding: 14px 16px; border-radius: 8px; background: #FFF8E1; color: #7A5C00;
  font-size: 13px; line-height: 1.8; border-left: 3px solid #E6B800; }

/* ---------- 専門家 / 体験談 ---------- */
.r-experts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.r-expert a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; padding: 20px; border: 1px solid var(--r-border); border-radius: var(--r-radius); height: 100%; }
.r-expert__photo { border-radius: 50%; width: 84px; height: 84px; object-fit: cover; }
.r-expert__name { font-size: 17px; font-weight: 700; }
.r-expert__role { font-size: 13.5px; color: var(--r-accent); font-weight: 700; }
.r-expert__scope { font-size: 13.5px; color: var(--r-muted); line-height: 1.8; }

.r-voices { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.r-voice { border: 1px solid var(--r-border); border-radius: var(--r-radius); padding: 20px; background: var(--r-bg); }
.r-voice__meta { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--r-accent); }
.r-voice__body { margin: 0; font-size: 15px; line-height: 1.9; }
.r-voice__body p { margin: 0 0 .6em; }
.r-voice__note { margin: 12px 0 0; font-size: 12.5px; color: var(--r-muted); line-height: 1.7; }

/* ---------- 記事の透明性表示 ---------- */
.r-byline { border: 1px solid var(--r-border); border-radius: var(--r-radius); padding: 16px 18px; margin: 0 0 24px; background: var(--r-surface); }
.r-byline dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 20px; margin: 0; }
.r-byline dt { font-size: 12.5px; color: var(--r-muted); font-weight: 700; margin: 0; }
.r-byline dd { margin: 0; font-size: 14.5px; }
.r-summary { background: var(--r-panel); padding: 20px 22px; margin: 0 0 28px; }
.r-summary h2 { font-size: 16px; margin: 0 0 6px; }
.r-summary p { margin: 0; font-size: 15.5px; line-height: 1.9; }
.r-disclosure { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--r-border); font-size: 14.5px; }
.r-disclosure h2 { font-size: 16px; margin: 20px 0 8px; }
.r-disclosure ul { margin: 0; padding-left: 1.3em; line-height: 1.9; }
.r-disclosure__pr, .r-disclosure__medical {
  margin-top: 16px; padding: 12px 14px; background: var(--r-surface);
  border-radius: var(--r-radius); font-size: 13.5px; line-height: 1.85; color: var(--r-muted);
}

/* ---------- パンくず ---------- */
.r-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0; font-size: 13px; }
.r-breadcrumb li + li::before { content: "／"; margin-right: 6px; color: var(--r-muted); }
.r-breadcrumb a { color: var(--r-muted); }

/* ---------- 価格表 ---------- */
.r-price { container-type: inline-size; }
.r-price__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.r-price__table caption { text-align: left; font-weight: 700; padding-bottom: 10px; }
.r-price__table th, .r-price__table td { border: 1px solid var(--r-border); padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.8; }
.r-price__table thead th { background: var(--r-surface); font-size: 14px; }
.r-price__note { margin: 12px 0 0; font-size: 13px; color: var(--r-muted); }
@container (max-width: 600px) {
  .r-price__table, .r-price__table tbody, .r-price__table tr, .r-price__table th, .r-price__table td { display: block; width: 100%; }
  .r-price__table thead { display: none; }
  .r-price__table tbody tr { margin-bottom: 14px; border: 1px solid var(--r-border); }
  .r-price__table td, .r-price__table th { border: 0; border-bottom: 1px solid var(--r-border); }
}

/* ---------- フォーム ---------- */
.r-formwrap, .reach-form {
  border: 1px solid var(--r-border); border-radius: var(--r-radius);
  padding: clamp(24px, 4vw, 40px); background: var(--r-bg); width: 100%;
}
.reach-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reach-form__title { font-size: 22px; margin: 0 0 8px; }
.reach-form__note, .reach-form__lead { font-size: 14px; color: var(--r-muted); line-height: 1.85; margin: 0 0 20px; }
.reach-form__stepnav { display: flex; gap: 8px; font-size: 12.5px; color: var(--r-muted); margin: 0 0 20px; flex-wrap: wrap; }
.reach-form__stepnav .is-current { color: var(--r-accent); font-weight: 700; }
.reach-form__row { margin: 0 0 18px; }
.reach-form__row label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.reach-form__row .req { font-size: 11.5px; background: var(--r-accent); color: #fff; padding: 2px 6px; border-radius: 3px; margin-left: 6px; font-weight: 700; vertical-align: 2px; }
.reach-form input[type="text"], .reach-form input[type="email"], .reach-form input[type="url"],
.reach-form select, .reach-form textarea {
  width: 100%; font-size: 16px; padding: 12px 14px; line-height: 1.6;
  border: 1px solid #9aa4ae; border-radius: var(--r-radius); background: #fff; color: var(--r-text);
}
.reach-form input:focus-visible, .reach-form select:focus-visible, .reach-form textarea:focus-visible {
  outline: 3px solid var(--r-accent); outline-offset: 1px; border-color: var(--r-accent);
}
.reach-form__consent { margin: 24px 0; font-size: 14.5px; line-height: 1.8; }
.reach-form__consent label { display: flex; gap: 10px; align-items: flex-start; }
.reach-form__consent input { margin-top: .3em; width: 20px; height: 20px; flex: none; }
.reach-form__privacy-note { font-size: 13px; color: var(--r-muted); background: var(--r-surface); padding: 12px 14px; border-radius: var(--r-radius); line-height: 1.8; }
.reach-form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.reach-form__next, .reach-form__submit, .reach-form__back {
  min-height: 56px; padding: 14px 28px; font-size: 16px; font-weight: 700;
  border-radius: var(--r-radius); border: 2px solid var(--r-accent); cursor: pointer;
}
.reach-form__next, .reach-form__submit { background: var(--r-accent); color: #fff; }
.reach-form__back { background: transparent; color: var(--r-accent); }
.reach-form__next[disabled], .reach-form__submit[disabled] { opacity: .6; cursor: progress; }
.reach-form__error { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-radius); background: #fdecec; color: #8c1b1b; font-size: 14.5px; border: 1px solid #e6b3b3; }
.reach-form__thanksmsg { font-size: 17px; font-weight: 700; line-height: 1.8; }
.reach-form__nextlabel { font-size: 14px; color: var(--r-muted); margin: 20px 0 8px; }
.reach-form__next ul, ul.reach-form__next { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.reach-form__next a { display: block; padding: 14px 16px; border: 1px solid var(--r-border); border-radius: var(--r-radius); text-decoration: none; font-weight: 700; }

/* ---------- 診断 ---------- */
.reach-diagnosis { border: 1px solid var(--r-border); border-radius: var(--r-radius); padding: clamp(24px, 4vw, 40px); background: var(--r-bg); width: 100%; }
.reach-diagnosis__title { font-size: clamp(20px, 3vw, 26px); margin: 0 0 8px; }
.reach-diagnosis__lead { font-size: 14px; color: var(--r-muted); line-height: 1.85; margin: 0 0 24px; }
.reach-diagnosis__progress { font-size: 13px; color: var(--r-muted); font-weight: 700; margin: 0 0 12px; }
.reach-diagnosis__q { border: 0; padding: 0; margin: 0 0 20px; }
.reach-diagnosis__q legend { font-size: 18px; font-weight: 700; line-height: 1.7; padding: 0; margin-bottom: 16px; }
.reach-diagnosis__opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reach-diagnosis__opt {
  width: 100%; text-align: left; min-height: 56px; padding: 14px 18px; font-size: 16px; line-height: 1.6;
  background: var(--r-bg); border: 2px solid var(--r-border); border-radius: var(--r-radius); cursor: pointer;
}
.reach-diagnosis__opt:hover, .reach-diagnosis__opt:focus-visible { border-color: var(--r-accent); background: var(--r-surface); }
.reach-diagnosis__opt:focus-visible { outline: 3px solid var(--r-accent); outline-offset: 2px; }
.reach-diagnosis__back { background: none; border: 0; color: var(--r-muted); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 8px 0; }
.reach-diagnosis__result:focus { outline: none; }
.reach-diagnosis__resultlabel { font-size: 13px; font-weight: 700; color: var(--r-accent); margin: 0 0 6px; }
.reach-diagnosis__resulttype { font-size: clamp(20px, 3vw, 26px); margin: 0 0 12px; line-height: 1.5; }
.reach-diagnosis__resultbody { font-size: 16px; line-height: 1.95; margin: 0 0 16px; }
.reach-diagnosis__caution { font-size: 14px; line-height: 1.85; background: var(--r-surface); padding: 14px 16px; border-radius: var(--r-radius); margin: 0 0 24px; }
.reach-diagnosis__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.reach-diagnosis__privacy { font-size: 12.5px; color: var(--r-muted); margin: 18px 0 0; }

/* ---------- シミュレーター ---------- */
.reach-sim { border: 1px solid var(--r-border); border-radius: var(--r-radius); padding: clamp(20px, 4vw, 36px); background: var(--r-bg); }
.reach-sim__title { font-size: clamp(20px, 3vw, 26px); margin: 0 0 8px; }
.reach-sim__lead { font-size: 14px; color: var(--r-muted); line-height: 1.85; margin: 0 0 24px; }
.reach-sim__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 28px; }
.reach-sim__row { margin: 0; }
.reach-sim__row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.reach-sim__row input { width: 100%; font-size: 16px; padding: 10px 12px; border: 1px solid #9aa4ae; border-radius: var(--r-radius); }
.reach-sim__row input:focus-visible { outline: 3px solid var(--r-accent); outline-offset: 1px; }
.reach-sim__result { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.reach-sim table { width: 100%; border-collapse: collapse; font-size: 15px; }
.reach-sim caption, .reach-sim__sensitivity h3 { text-align: left; font-weight: 700; font-size: 16px; padding-bottom: 10px; }
.reach-sim th, .reach-sim td { border-bottom: 1px solid var(--r-border); padding: 10px 12px; text-align: left; }
.reach-sim td { text-align: right; font-variant-numeric: tabular-nums; }
.reach-sim tr.is-strong th, .reach-sim tr.is-strong td { font-weight: 700; background: var(--r-surface); }
.reach-sim tr.is-current th, .reach-sim tr.is-current td { color: var(--r-accent); font-weight: 700; }
.reach-sim__disclaimer { margin: 24px 0 0; font-size: 13px; line-height: 1.85; color: var(--r-muted); background: var(--r-surface); padding: 14px 16px; border-radius: var(--r-radius); }
.reach-sim__cta { margin: 20px 0 0; }

/* ---------- FAQ ---------- */
.reach-faq { display: grid; gap: 10px; }
.reach-faq__item { border: 1px solid var(--r-border); border-radius: var(--r-radius); background: var(--r-bg); }
.reach-faq__item summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 16px; line-height: 1.7; list-style-position: inside; }
.reach-faq__item summary:focus-visible { outline: 3px solid var(--r-accent); outline-offset: -3px; }
.reach-faq__a { padding: 0 18px 18px; font-size: 15px; line-height: 1.9; }
.reach-faq__a p { margin: 0 0 .8em; }

/* ---------- 汎用 ---------- */
.r-note { font-size: 13px; color: var(--r-muted); line-height: 1.85; }
.r-grid2 { display: grid; gap: var(--r-gap); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.r-grid3 { display: grid; gap: var(--r-gap); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.r-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.r-table th, .r-table td { border: 1px solid var(--r-border); padding: 12px 14px; text-align: left; line-height: 1.85; vertical-align: top; }
.r-table thead th { background: var(--r-surface); }
.r-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- ページヘッダ / 詳細ページ ---------- */
.r-pagehead { background: var(--r-surface); padding: 8px 0 clamp(28px, 5vw, 52px); border-bottom: 1px solid var(--r-border); }
.r-pagehead__eyebrow { font-size: 12.5px; letter-spacing: .14em; font-weight: 700; color: var(--r-accent); margin: 12px 0 6px; }
.r-pagehead__title { font-size: clamp(24px, 4vw, 40px); line-height: 1.35; margin: 0; }
.r-pagehead__lead { margin: 14px 0 0; font-size: 16px; line-height: 1.9; color: var(--r-muted); max-width: 46em; }
.r-main { display: block; }
.r-single__body, .r-archive .r-wrap { padding-top: 8px; }
.r-single .r-sec, .r-archive .r-sec { padding: clamp(36px, 6vw, 64px) 0; }
.r-single .r-sec:first-child { padding-top: clamp(24px, 4vw, 40px); }

.r-casefacts-wrap { margin-bottom: 32px; }
.r-casefacts { background: var(--r-surface); border-radius: var(--r-radius); padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; }
.r-casefacts dt { font-size: 12.5px; font-weight: 700; color: var(--r-muted); margin: 0 0 4px; }
.r-casefacts dd { margin: 0; font-size: 15.5px; line-height: 1.85; }
.r-casebasis { font-size: 13px; color: var(--r-muted); line-height: 1.85; margin: 14px 0 0; }

.r-panel { border: 1px solid var(--r-border); border-radius: var(--r-radius); padding: 22px; background: var(--r-bg); }
.r-panel h3 { font-size: 17px; margin: 0 0 10px; }
.r-panel p { margin: 0; font-size: 14.5px; line-height: 1.95; }
.r-panel--caution { background: var(--r-panel); border-color: transparent; }

.r-steps { counter-reset: rstep; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.r-steps li { counter-increment: rstep; position: relative; padding: 16px 18px 16px 58px; border: 1px solid var(--r-border); border-radius: var(--r-radius); font-size: 15.5px; line-height: 1.85; }
.r-steps li::before {
  content: counter(rstep); position: absolute; left: 18px; top: 15px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--r-accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.r-product__class { display: inline-block; font-size: 12.5px; font-weight: 700; border: 1px solid var(--r-border); padding: 4px 10px; border-radius: 3px; color: var(--r-muted); }
.c-pagination { margin-top: 40px; }

/* ---------- フッター ---------- */
.r-footer { padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 3vw, 40px); }
.r-footer__top {
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  padding-bottom: clamp(28px, 4vw, 44px);
}
@media (max-width: 820px) { .r-footer__top { grid-template-columns: 1fr; } }
.r-footer__name { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; margin: 0 0 10px; line-height: 1.5; }
.r-footer__tagline { font-size: 15px; line-height: 1.9; margin: 0 0 8px; }
.r-footer__audience { font-size: 13.5px; color: var(--r-muted); line-height: 1.9; margin: 0 0 24px; }
.r-footer__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.r-footer__cta .r-btn { min-height: 50px; padding: 12px 22px; font-size: 15px; }
.r-footer__hours { font-size: 13px; color: var(--r-muted); margin: 16px 0 0; line-height: 1.9; }

.r-footer__nav { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-content: start; }
.r-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.r-footer__list a { font-size: 14px; text-decoration: none; color: var(--r-text); line-height: 1.7; }
.r-footer__list a:hover { color: var(--r-accent); text-decoration: underline; text-underline-offset: .2em; }
.r-footer__list .sub-menu { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.r-footer__list .sub-menu a { font-size: 13px; color: var(--r-muted); }
.r-footer__list--main > li > a { font-weight: 700; }

.r-footer__notice {
  font-size: 12.5px; line-height: 1.95; color: var(--r-muted); margin: 0 0 24px;
  padding: 18px 0 0; border-top: 1px solid var(--r-rule); max-width: 60em;
}
.r-footer__legal {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: baseline;
  padding-top: 20px; border-top: 1px solid var(--r-rule);
}
.r-footer__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12.5px; color: var(--r-muted); }
.r-footer__copy { font-size: 12.5px; color: var(--r-muted); margin: 0; }

/* SWELL既定のフッター装飾を打ち消す */
.l-footer { background: var(--r-surface); }
.l-footer .l-footer__foot,
.l-footer .l-footer__widget { display: none; }

/* ---------- ページヘッダの画像 ---------- */
.r-pagehead__media { margin: clamp(24px, 4vw, 40px) 0 0; line-height: 0; }
.r-pagehead__media img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--r-radius); }
.r-pagehead__caption { display: block; margin-top: 8px; font-size: 12px; color: var(--r-muted); line-height: 1.7; }

/* ---------- 本文中の表 ---------- */
/* 置かれた場所の幅で判定する（2列レイアウトの片側でも正しく縮む） */
.post_content .wp-block-table,
.post_content > table { container-type: inline-size; }

/* 見出し行のある表（比較表など）は、横スクロールで全列を保つ */
.post_content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post_content .wp-block-table table { min-width: 34em; }

/* 見出し行のない「項目｜内容」の表は、狭いときに積み上げて読ませる */
@container (max-width: 560px) {
  .post_content .wp-block-table:not(:has(thead)) { overflow-x: visible; }
  .post_content .wp-block-table:not(:has(thead)) table { min-width: 0; display: block; }
  .post_content .wp-block-table:not(:has(thead)) tbody,
  .post_content .wp-block-table:not(:has(thead)) tr,
  .post_content .wp-block-table:not(:has(thead)) th,
  .post_content .wp-block-table:not(:has(thead)) td { display: block; width: auto; }
  .post_content .wp-block-table:not(:has(thead)) tr { padding: 14px 0; border-bottom: 1px solid var(--r-rule); }
  .post_content .wp-block-table:not(:has(thead)) th {
    border: 0; padding: 0 0 6px; font-size: 13px; color: var(--r-muted); font-weight: 700;
  }
  .post_content .wp-block-table:not(:has(thead)) td { border: 0; padding: 0; font-size: 15.5px; line-height: 1.9; }
}

/* 横スクロールできることが分かるように、右端をわずかに翳らせる */
@container (min-width: 561px) {
  .post_content .wp-block-table:has(thead) {
    background:
      linear-gradient(to right, var(--r-bg) 30%, rgba(255,255,255,0)) left / 40px 100% no-repeat,
      linear-gradient(to left, var(--r-bg) 30%, rgba(255,255,255,0)) right / 40px 100% no-repeat,
      radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.12), transparent) left / 14px 100% no-repeat,
      radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.12), transparent) right / 14px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
  }
}

/* 未確定ブロック（編集者にのみ表示） */
.r-todo { border: 1px dashed #c0392b; border-radius: var(--r-radius); padding: 16px 18px; margin: 0 0 1.6em; background: rgba(192,57,43,.04); }
.r-todo__label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #c0392b; margin-bottom: 8px; }
.r-todo p { margin: 0 0 .6em; font-size: 14.5px; line-height: 1.9; }
.r-todo p:last-child { margin-bottom: 0; }

/* ---------- 下層ページ：本文と目次の2段組 ---------- */
.r-article {
  display: grid; gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(0, 15em) minmax(0, 1fr);
  align-items: start;
}
.r-article__aside { position: sticky; top: calc(var(--swl-fix_headerH, 0px) + 24px); }
.r-article__label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--r-accent); margin: 0 0 14px; }
.r-toc { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 2px; }
.r-toc a {
  display: block; padding: 9px 0 9px 14px; font-size: 13.5px; line-height: 1.7;
  text-decoration: none; color: var(--r-muted); position: relative;
}
.r-toc a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--r-rule); transition: background-color .25s;
}
.r-toc a:hover { color: var(--r-text); }
.r-toc a.is-current { color: var(--r-text); font-weight: 700; }
.r-toc a.is-current::before { background: var(--r-accent); }
.r-article__cta { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--r-rule); }
.r-article__cta .r-btn { min-height: 46px; padding: 11px 16px; font-size: 14px; width: 100%; }
.r-article__note { font-size: 12.5px; line-height: 2; color: var(--r-muted); margin: 18px 0 0; }

/* 本文は行長を保ちつつ、余白側に目次を置くことで画面を使い切る */
.r-article .post_content { max-width: none; }

@media (max-width: 900px) {
  .r-article { grid-template-columns: 1fr; }
  .r-article__aside { position: static; }
  .r-toc { display: flex; gap: 0; overflow-x: auto; margin-bottom: 20px; border-bottom: 1px solid var(--r-rule); }
  .r-toc li { flex: none; }
  .r-toc a { padding: 12px 16px 12px 0; margin-right: 16px; white-space: nowrap; }
  .r-toc a::before { inset: auto 16px 0 0; width: auto; height: 2px; background: transparent; }
  .r-toc a.is-current::before { background: var(--r-accent); }
  .r-article__cta { grid-auto-flow: column; justify-content: start; }
  .r-article__cta .r-btn { width: auto; }
}

/* ---------- 注意書き：段組みで幅を使い切る ---------- */
.r-disclaimers { columns: 2; column-gap: clamp(28px, 4vw, 56px); }
.r-disclaimers > p { break-inside: avoid; margin: 0 0 1.2em; font-size: 13px; line-height: 2; color: var(--r-muted); max-width: none; }
.r-disclaimers > p:last-child { margin-bottom: 0; }
.r-disclaimers strong { color: var(--r-text); font-weight: 700; }
@media (max-width: 780px) { .r-disclaimers { columns: 1; } }

/* 目次を左に置いた分、本文は少し広く使う */
.r-article .post_content > p,
.r-article .post_content > ul,
.r-article .post_content > ol { max-width: 44em; }
.r-article .post_content > .wp-block-table,
.r-article .post_content > figure { max-width: none; }

/* ---------- セクション末の行動導線 ---------- */
.r-ctaline {
  display: flex; flex-wrap: wrap; gap: 20px clamp(20px, 3vw, 40px);
  align-items: center; justify-content: space-between;
  margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--r-rule);
}
.r-ctaline__body { flex: 1 1 22em; min-width: 0; }
.r-ctaline__text { margin: 0; font-size: clamp(16px, 2vw, 19px); font-weight: 700; line-height: 1.7; }
.r-ctaline__sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--r-muted); }
.r-ctaline .r-btn { flex: 0 0 auto; }
@media (max-width: 600px) { .r-ctaline .r-btn { width: 100%; } }

/* 本文中に置かれたボタンでも、文字色が上書きされないようにする */
.post_content .r-btn--primary,
.reach-diagnosis .r-btn--primary { color: #fff; }
.post_content .r-btn--ghost,
.reach-diagnosis .r-btn--ghost { color: var(--r-accent); }

/* ページが1枚しかないときは、ページ送りを出さない */
.c-pagination:has(> .page-numbers.current:only-child) { display: none; }

/* 広告である旨の表示（景品表示法／ステマ規制）。
   読み始める前に目に入る必要があるため、本文の先頭に置き、地の文と区別する */
.r-ad-notice {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px;
  margin: 0 0 28px; padding: 14px 16px;
  border: 1px solid var(--r-rule); background: var(--r-panel, rgba(0,0,0,.03));
  font-size: 13px; line-height: 1.85; color: var(--r-muted);
}
.r-ad-notice__tag {
  flex: none; padding: 3px 10px; border-radius: 3px;
  background: var(--r-text); color: var(--r-bg, #fff);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
}
.r-ad-notice a { color: inherit; }

/* ── 記事まわりのサイドナビ ────────────────────── */
.r-side__block { margin: 0 0 clamp(28px, 3vw, 40px); }
.r-side__head {
  font-size: 12px; letter-spacing: .14em; color: var(--r-accent, currentColor);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--r-rule);
}
.r-side__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.r-side__tags a {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 6px 13px; border: 1px solid var(--r-rule); border-radius: 999px;
  font-size: 12.5px; text-decoration: none; color: inherit;
}
.r-side__tags a:hover { background: var(--r-panel); }
.r-side__tags span { font-size: 10.5px; color: var(--r-muted); }

.r-side__posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.r-side__posts a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px;
  align-items: start; text-decoration: none; color: inherit; }
.r-side__thumb img { display: block; width: 64px; height: 64px; object-fit: cover; }
.r-side__body { display: grid; gap: 5px; }
.r-side__title { font-size: 13.5px; line-height: 1.65; }
.r-side__posts a:hover .r-side__title { text-decoration: underline; text-underline-offset: 2px; }
.r-side__date { font-size: 11px; color: var(--r-muted); letter-spacing: .05em; }

.r-side__block--cta .r-btn { width: 100%; justify-content: center; }

/* 診断の判定根拠。売り込みではなく道具として使えるよう、先に条件を示す */
.reach-diagnosis__basis {
  margin: 18px 0 0; padding: 16px 18px;
  border: 1px solid var(--r-rule); background: var(--r-panel, rgba(0,0,0,.03));
  font-size: 13px; line-height: 1.9;
}
.reach-diagnosis__basis dt { font-weight: 700; margin: 0 0 4px; }
.reach-diagnosis__basis dd { margin: 0 0 12px; color: var(--r-muted); }
.reach-diagnosis__basis dd:last-child { margin-bottom: 0; }

/* SNS投稿の参照。本文は複製せず、埋め込みかリンクで示す */
.r-quote { margin: clamp(24px, 3vw, 36px) 0; padding: 0; }
.r-quote__embed { max-width: 540px; }
.r-quote__link { margin: 0 0 8px; }
.r-quote__cap { font-size: 12.5px; color: var(--r-muted); margin-top: 8px; }
.r-quote__note { margin: 12px 0 0; padding-left: 14px; border-left: 3px solid var(--r-rule);
  font-size: 14px; line-height: 1.95; }

/* 商品の紹介。価格や煽り文句を前に出さず、誰に向くかを先に読ませる */
.r-items { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 3vw, 32px); }
.r-item { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px); align-items: start;
  padding: clamp(20px, 3vw, 28px); border: 1px solid var(--r-rule); background: var(--r-bg); }
.r-item__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.r-item__name { font-size: clamp(17px, 2.1vw, 21px); line-height: 1.55; margin: 0 0 12px; }
.r-item__whom, .r-item__care { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
  font-size: 13.5px; line-height: 1.9; margin: 0 0 10px; }
.r-item__whom span, .r-item__care span {
  align-self: start; padding: 2px 9px; border-radius: 3px; font-size: 11px; white-space: nowrap;
  background: var(--r-panel); color: var(--r-muted);
}
.r-item__care span { background: transparent; border: 1px solid var(--r-rule); }
.r-item__lead { font-size: 14px; line-height: 1.95; color: var(--r-muted); margin: 0 0 14px; }
.r-item__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 0; }
.r-item__price { font-size: 14px; }
@media (max-width: 700px) { .r-item { grid-template-columns: 1fr; } }

/* ── 日本語の折り返し ──────────────────────────────
   ブラウザの既定は文字単位で折り返すため、「業／務変革」「設計す／る」のように
   語の途中で割れたり、最終行に1文字だけ残ったりする。
     auto-phrase … 文節の切れ目で折り返す
     balance     … 見出しの行の長さをそろえる（1文字だけの行を避ける）
     pretty      … 本文の最終行が極端に短くなるのを避ける
     strict      … 禁則処理を厳しくする
   対応していないブラウザでは、これまでどおりの折り返しに戻るだけで崩れない。 */
:is(h1, h2, h3, h4, h5,
    .r-card__title, .r-sec__title, .r-item__name,
    .rv__steptitle, .rv__nodetitle, .rv__statlabel) {
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: balance;
}
/* 本文は日本語の組版どおり、一字単位で送って両端をそろえる。
   auto-phrase は使わない。文節の切れ目でしか折り返せないので、次の文節が入らないと
   丸ごと次の行へ送られる。実測すると、幅600pxでは行末が最大126px（1文字あたり3.8px）
   空き、行ごとに右端がずれた。幅320pxでは133px。一字送りなら、どの幅でも余りは
   11〜16px（1文字あたり0.7px未満）に収まるので、両端揃えにしても字間はほとんど動かない。
   禁則（strict）で、行頭の句読点と行末の始め括弧は避ける。 */
:is(p, li, dd, figcaption, .r-card__excerpt, .rv__stepdesc, .rv__nodesub, .rv__statbasis) {
  line-break: strict;
  text-wrap: pretty;
}
:is(td, th) { line-break: strict; }
/* 両端揃えは、要素ごとではなく囲みに掛けて継承させる。
   p や li に直に指定すると、中央寄せで組んだ囲み（.rv__node など）の中まで
   左に戻ってしまうため。:where() で詳細度を 0 にしてあるので、
   中央寄せ・右寄せの指定があるところは、これまでどおりそちらが勝つ。 */
:where(.r-wrap, .r-prose, .entry-content, .post_content) {
  text-align: justify;
  text-justify: inter-character;
}
/* 見出しと、囲みの中で行を詰めたくないものは、両端揃えにしない */
:where(h1, h2, h3, h4, h5, h6, .r-btn, .r-eyebrow, dt, caption, th, td) { text-align: start; }

/* 見出しに準じる短い表示テキスト。2〜3行しかなく、右端の空きより
   語の途中で割れるほうが目立つ場所に、この class を付けて文節送りに戻す。 */
.r-phrase { word-break: auto-phrase; text-wrap: balance; text-align: start; }

/* ── 属性の出し分け（inc/segment.php） ────────────────
   伺うのはCROの属性ヒアリング。こちらは、いま何向けに出しているかの一行だけ。 */
.r-seg-bar {
  margin: 0 0 clamp(24px, 3vw, 36px); font-size: 14px; line-height: 1.9;
  border: 1px solid var(--r-rule, var(--r-border)); background: var(--r-panel, var(--r-surface));
  padding: 14px clamp(16px, 2vw, 22px);
}
.r-seg-bar__now { font-weight: 700; }
.r-seg-switch {
  margin-left: 10px; padding: 4px 12px; cursor: pointer; font-size: 13px;
  background: transparent; border: 1px solid var(--r-border); color: inherit;
}
.r-seg-switch:hover { border-color: var(--r-accent); }
