/*!
 * onuts-article.css  (ONUTS theme / phase 2 : article page, first batch)
 * ADR 0095.  Standalone file: depends on no theme CSS, only on the class
 * `.article-text` that wraps the post body (single.php / page.php).
 *
 * Sections
 *   1. Headings  (h2 / h3 / h4)     : applies to every article
 *   2. Details / summary             : applies to every article
 *   3. Table of Contents Plus        : #toc_container, numbered + closed by default
 *   4. Parts (onuts-*)               : opt-in components, used only where the class is written
 *   5. wpautop guards                : empty <p> / <br> inside parts
 *
 * Rules for the sample article (article with its own `ond-*` <style>):
 *   - Sections 1 and 2 use exactly the same property values as the sample article, so
 *     nothing changes visually there (no extra properties on purpose).
 *   - Section 3 hides the plugin TOC on articles that carry their own TOC (.ond-tocd).
 *   - Section 4 uses the `onuts-` prefix only; it never touches `ond-` / `onaden-` classes.
 */

/* ============================================================
   1. Headings
   Same values as the sample article. Colours / borders / backgrounds
   stay with the existing theme (red band h2, pink h3, red-line h4).
   `body` in the selector beats the theme's inline <style> (which is printed after this file).
   ============================================================ */
body .article-text h2 { font-size: 21px !important; line-height: 1.45 !important; padding: 10px 12px !important; scroll-margin-top: 64px; }
body .article-text h3 { font-size: 18px !important; line-height: 1.45 !important; scroll-margin-top: 64px; }
body .article-text h4 { font-size: 16px !important; line-height: 1.5 !important; }

/* ============================================================
   2. Details / summary  (same values as the sample article)
   ============================================================ */
.article-text details { margin: 14px 0; border: 1px solid #e2e2e2; border-radius: 10px; background: #fff; }
.article-text summary { cursor: pointer; padding: 12px 34px 12px 12px; position: relative; font-size: 14px; font-weight: 700; line-height: 1.5; color: #333; list-style: none; }
.article-text summary::-webkit-details-marker { display: none; }
.article-text summary::after { content: "＋"; position: absolute; right: 12px; top: 11px; color: #c7323c; font-size: 16px; }
.article-text details[open] > summary::after { content: "−"; }

/* ============================================================
   3. Table of Contents Plus  (#toc_container)
   The plugin already: builds the box, appends a [開く] / [閉じる] link to .toc_title,
   hides the list on load (option "visibility_hide_by_default") and toggles it with jQuery.
   Here: look = same as the sample article's numbered TOC card, and the list is hidden by CSS
   until the plugin has initialised (no flash of an open TOC). JS: onuts-article.js.
   ============================================================ */
html body #toc_container {
  display: block !important;          /* plugin sets display:table + width:auto inline while closed */
  width: auto !important;
  box-sizing: border-box;
  margin: 0 0 30px;
  padding: 0;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fafafa;
  overflow: hidden;
}
html body #toc_container .toc_title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0; padding: 10px 12px;
  font-size: 14px; font-weight: 700; line-height: 1.5; text-align: left; color: #333;
  cursor: pointer;
}
html body #toc_container .toc_title span { font-size: inherit; color: inherit; }
html body #toc_container .toc_toggle { flex: 0 0 auto; margin: 0; font-size: 12px; font-weight: 700; }
html body #toc_container .toc_toggle .toc_brackets { display: none; }
html body #toc_container .toc_toggle a {
  display: inline-block; padding: 2px 11px; border: 1px solid #e0c9cc; border-radius: 99px;
  background: #fff; color: #a8222c; font-size: 12px; font-weight: 700; line-height: 1.5; text-decoration: none;
}
html body #toc_container .toc_toggle a::before { content: "−  "; color: #c7323c; }
html body #toc_container.contracted .toc_toggle a::before { content: "＋ "; }

/* list: numbered like the sample article ("1." / nested "1-1") */
html body #toc_container ul.toc_list { margin: 0; padding: 0 16px 8px; counter-reset: onuts-toc; }
html body #toc_container ul.toc_list li { margin: 0; padding: 6px 0; border-top: 1px solid #ececec; font-size: 14px; line-height: 1.5; overflow: visible; }
html body #toc_container ul.toc_list > li:first-child { border-top: 0; }
html body #toc_container ul.toc_list > li { counter-increment: onuts-toc; counter-reset: onuts-toc2; }
html body #toc_container ul.toc_list a { display: flex; gap: .4em; padding: 0; color: #333; text-decoration: none; font-size: 14px; }
html body #toc_container ul.toc_list a:hover { text-decoration: underline; }
html body #toc_container ul.toc_list > li > a::before {
  content: counter(onuts-toc) "."; flex: 0 0 1.6em; margin: 0; font-family: inherit; font-weight: 700; color: #c7323c;
}
/* nested levels (h3 / h4) */
html body #toc_container ul.toc_list ul { margin: 4px 0 0; padding: 0 0 0 1.6em; }
html body #toc_container ul.toc_list ul li { padding: 4px 0; border-top: 1px dashed #e6e6e6; font-size: 13px; counter-increment: onuts-toc2; counter-reset: onuts-toc3; }
html body #toc_container ul.toc_list ul li:first-child { border-top: 0; }
html body #toc_container ul.toc_list ul a { font-size: 13px; }
html body #toc_container ul.toc_list li ul > li > a::before {
  content: counter(onuts-toc) "-" counter(onuts-toc2); flex: 0 0 2.3em; margin: 0; font-family: inherit; font-weight: 400; color: #888;
}
html body #toc_container ul.toc_list li ul li ul > li > a::before { content: "・"; flex: 0 0 1em; color: #aaa; }

/* closed state before the plugin script has run (only when onuts-article.js is active) */
html.onuts-js #toc_container:not(.onuts-toc-ready) ul.toc_list { display: none; }
/* closed state when the plugin/our fallback marks it contracted (jQuery inline style wins while animating) */
html body #toc_container.contracted ul.toc_list { display: none; }

/* articles that carry their own TOC (the sample article's `ond-tocd`, or any article opting out): hide the plugin TOC */
.article-text:has(.ond-tocd) #toc_container,
.article-text:has(.onuts-toc-own) #toc_container { display: none !important; }

/* ============================================================
   4. Parts (opt-in).  Prefix `onuts-`.
   ============================================================ */

/* ---- common bits ---- */
.onuts-btn { display: block; padding: 13px 8px; border-radius: 8px; background: linear-gradient(90deg, #833ab4 0%, #c13584 35%, #d62a63 70%, #d4501c 100%) !important; box-shadow: 0 3px 8px rgba(214, 42, 99, .22); color: #fff !important; font-size: 15px; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none !important; }
.onuts-sub { display: block; padding: 9px 6px; border: 1px solid #c9c9c9; border-radius: 8px; background: #fff; color: #333 !important; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none !important; }
.onuts-actions { display: grid; grid-template-columns: 1fr 92px; gap: 8px; align-items: stretch; }
.onuts-actions .onuts-btn { padding: 11px 6px; font-size: 14px; }
.onuts-actions .onuts-sub { display: flex; align-items: center; justify-content: center; }
.onuts-amt { color: #d62a63; font-weight: 700; font-size: 1.08em; }
.onuts-k { display: inline-block; margin-right: 5px; padding: 0 6px; border-radius: 4px; background: #efefef; color: #555; font-size: 12px; font-weight: 700; }
.onuts-chk { display: block; margin-top: 2px; font-size: 12px; color: #666; }

/* ---- 要点カード: onuts-spot (総合評価 + 特徴タグ + 仕様 + 向いている人 + ボタン) ---- */
.onuts-spot { margin: 14px 0 18px; padding: 13px; border: 2px solid #d62a63; border-radius: 12px; background: #fff; }
.onuts-spot-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 7px; font-size: 13px; font-weight: 700; color: #555; }
.onuts-spot-head b { font-size: 25px; line-height: 1; color: #c7323c; }
.onuts-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; padding: 0; list-style: none; }
.onuts-chips li { margin: 0; padding: 2px 7px; border-radius: 5px; background: #f4f4f4; font-size: 12px; font-weight: 700; color: #444; }
.onuts-spec { margin: 0 0 12px; }
.onuts-spec div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid #eee; }
.onuts-spec dt { margin: 0; font-size: 13px; font-weight: 700; color: #222; }
.onuts-spec dd { margin: 0; font-size: 13.5px; line-height: 1.6; color: #444; }
.onuts-fit { margin: 0 0 12px; padding: 10px; border-radius: 8px; background: #fff6f7; font-size: 14px; line-height: 1.6; color: #333; }
.onuts-fit span { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: #a8222c; }
.onuts-fit ul, .onuts-pc ul { margin: 0; padding: 0; list-style: none; }
.onuts-fit li, .onuts-pc li { position: relative; margin: 0; padding: 2px 0 2px 1.1em; list-style: none !important; }
.onuts-fit li::before { content: "●"; position: absolute; left: 0; top: .35em; color: #d62a63; font-size: .8em; }

/* ---- ここが良い / ここが惜しい: onuts-pc ---- */
.onuts-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.onuts-pc > div { padding: 12px; border-radius: 10px; font-size: 14px; line-height: 1.65; color: #333; }
.onuts-pc p { margin: 0; }
.onuts-pc .onuts-pc-t { margin-bottom: 5px; font-size: 14px; font-weight: 700; }
.onuts-good { background: #eef8f1; border: 1px solid #cfe9d7; }
.onuts-good .onuts-pc-t { color: #1d6b38; }
.onuts-good .onuts-pc-t::before { content: "○ "; }
.onuts-good li::before { content: "●"; position: absolute; left: 0; top: .35em; color: #1d6b38; font-size: .8em; }
.onuts-bad { background: #fdf3ef; border: 1px solid #f1d6cb; }
.onuts-bad .onuts-pc-t { color: #a8432a; }
.onuts-bad .onuts-pc-t::before { content: "△ "; }
.onuts-bad li::before { content: "●"; position: absolute; left: 0; top: .35em; color: #a8432a; font-size: .8em; }
@media (max-width: 480px) { .onuts-pc { grid-template-columns: 1fr; } }

/* ---- 比較表カード: onuts-rank (1行目: 順位の赤丸・画像・サービス名 + 右端に★) ---- */
.onuts-rank { display: grid; gap: 12px; margin: 14px 0; }
.onuts-rank-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #9fd3d9; border-radius: 12px; background: #fff; font-size: 13px; line-height: 1.5; color: #444; }
.onuts-rank-service { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.onuts-rank-no { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #c7323c; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1; }
.article-text .onuts-rank-img, .onuts-rank-img { display: block; flex: 0 0 auto; width: 52px; height: 52px; margin: 0; border-radius: 8px; object-fit: cover; border: 1px solid #ddd; }
.onuts-rank-name { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; color: #222; word-break: keep-all; overflow-wrap: anywhere; }
.onuts-rank-score { grid-column: 2; grid-row: 1; align-self: center; text-align: right; white-space: nowrap; font-size: 17px; font-weight: 700; color: #222; }
.onuts-rank-score::before { content: "★"; margin-right: 2px; color: #e0a100; font-size: 15px; }
.onuts-rank-score small { margin-left: 1px; font-size: 11px; font-weight: 400; color: #888; }
.onuts-rank-who { grid-column: 1 / -1; margin: 9px 0 8px; font-size: 14px; line-height: 1.55; font-weight: 700; color: #222; }
/* 初回特典のピンクの箱: 金額 → すぐ下に条件(常に表示) */
.onuts-rank-bonus { grid-column: 1 / -1; margin-bottom: 9px; padding: 9px 10px; border-radius: 8px; background: #fff6f8; }
.onuts-rank-bonus .onuts-amt { display: block; margin: 3px 0 1px; font-size: 22px; line-height: 1.3; }
.onuts-rank-cond { display: block; font-size: 13px; line-height: 1.55; color: #333; }
.onuts-rank-bonus .onuts-chk { margin-top: 1px; }
.onuts-note { display: block; margin-top: 4px; font-size: 12px; color: #666; }
.onuts-note.onuts-warn { color: #a8222c; font-weight: 700; }
.onuts-rank-price { grid-column: 1 / -1; margin-bottom: 2px; }
.onuts-rank-price .onuts-k { display: block; width: fit-content; margin: 0 0 5px; }
.onuts-rank-price .onuts-pill { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 99px; background: #f3f8f9; color: #222; font-size: 13px; line-height: 1.4; }
.onuts-rank-card > .onuts-actions { grid-column: 1 / -1; margin-top: 6px; }

/* ---- 調査結果の枠: onuts-group (+ onuts-pt 無料ポイント / onuts-exp 実際に使ってみた) ---- */
.onuts-group { margin: 0 0 18px; border: 1px solid #e3e3e3; border-radius: 10px; overflow: hidden; background: #fff; }
.onuts-group .onuts-group-t { margin: 0; padding: 9px 12px; font-size: 14px; font-weight: 700; color: #fff; }
.onuts-pt .onuts-group-t { background: #1f6f7a; }
.onuts-exp .onuts-group-t { background: #7a3f8f; }
.onuts-group dl { margin: 0; padding: 2px 12px 6px; }
.onuts-group dl div { padding: 9px 0; border-top: 1px solid #efefef; }
.onuts-group dl div:first-child { border-top: 0; }
.onuts-group dt { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; color: #666; }
.onuts-group dd { margin: 0; font-size: 14.5px; line-height: 1.65; color: #222; }

/* ---- 体感カード: onuts-feel (2列2段・星と数字) ---- */
.onuts-feel { margin: 0 0 20px; padding: 12px; border-radius: 10px; background: #f3f8f9; border: 1px solid #d6e9ec; }
.onuts-feel .onuts-feel-t { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #1f6f7a; }
.onuts-feel ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.onuts-feel li { display: grid; grid-template-columns: 1fr auto; align-items: center; margin: 0; padding: 8px 10px; border-radius: 8px; background: #fff; list-style: none; }
.onuts-fl { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: #555; }
.onuts-fs { font-size: 17px; letter-spacing: 1px; color: #f0a500; line-height: 1.3; }
.onuts-feel b { font-size: 16px; color: #222; }

/* ---- 画面下の固定メニュー: onuts-nav (スマホのみ) ----
   `body:has(.onuts-nav)` adds the bottom padding only on pages that actually contain the menu. */
.onuts-nav { display: none; }
@media (max-width: 767px) {
  .onuts-nav { display: grid; grid-template-columns: repeat(5, 1fr) 42px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid #ddd; box-shadow: 0 -2px 8px rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom); }
  .onuts-nav a { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 2px; color: #333 !important; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none !important; }
  .onuts-nav a:last-child { background: #c7323c; color: #fff !important; }
  body:has(.onuts-nav) { padding-bottom: 50px; }
}

/* ============================================================
   5. wpautop guards
   WordPress (classic editor) turns blank lines into empty <p></p>, single line breaks into
   <br>, and may wrap a lone <a> in <p>. Inside parts these must not take up space or break grids.
   Safest authoring is still "one part = one line of HTML, no blank lines" (see parts-catalog.md).
   ============================================================ */
:is(.onuts-spot, .onuts-spot-head, .onuts-fit, .onuts-pc, .onuts-pc > div, .onuts-feel, .onuts-feel li, .onuts-group, .onuts-group dl div,
    .onuts-rank, .onuts-rank-card, .onuts-rank-service, .onuts-rank-bonus, .onuts-rank-price, .onuts-actions, .onuts-nav, .onuts-chips, .onuts-spec) > p:empty { display: none !important; }
:is(.onuts-spot, .onuts-spot-head, .onuts-fit, .onuts-pc, .onuts-feel, .onuts-feel ul, .onuts-feel li, .onuts-group, .onuts-group dl, .onuts-group dl div,
    .onuts-rank, .onuts-rank-card, .onuts-rank-service, .onuts-rank-bonus, .onuts-rank-price, .onuts-actions, .onuts-nav, .onuts-chips, .onuts-spec, .onuts-spec div) > br { display: none !important; }
/* a button / link wrapped in an auto <p>: let the link take the grid / flex place of the <p> */
:is(.onuts-actions, .onuts-nav, .onuts-rank-service, .onuts-spot-head) > p:not([class]) { display: contents; }
/* an auto <p> directly inside a card that is not meant to be a paragraph keeps no outer margin */
:is(.onuts-spot, .onuts-rank-card, .onuts-rank-bonus, .onuts-rank-price, .onuts-feel, .onuts-group) > p:not([class]) { margin: 0; }

/* ============================================================
   6. Existing classes moved toward the sample article (ADR 0095, addition A)
   Applies to every article EXCEPT those that carry the sample article's own `ond-*` decoration
   (marker: .ond-tocd / .ond-spot / .ond-rank): there the article's own <style> stays in charge,
   so nothing is applied twice.  Class names are never changed, only their look.
   body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) = body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank)))
   ============================================================ */

/* ---- 6-1. Tables with 3+ columns (comparison / ranking tables): swipe sideways, first column stays put ----
   Pure CSS (works without JS): the <table> becomes the scroll box, its <tbody> keeps table layout.
   2-column tables (label | value) are left exactly as they were.
   Tables that already own a scroll frame (.hikaku-table, .onaden-table-scroll) or are the sample's (.ond-rank,
   .ond-ptable, .onaden-compare-table) are excluded: not wrapped twice.
   PHONE ONLY (max-width 767px): on PC the tables stay exactly as before and fit the column.
   Also left alone: tables whose cells carry their own inline background, and tables already inside an inline overflow frame. */
@media screen and (max-width: 767px) {
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) table:where(:not(.ond-rank, .ond-ptable, .onaden-compare-table, .hikaku-table > table, .onaden-table-scroll > table, [style*="overflow"] > table, :has(> tbody > tr > :is(th, td)[style*="background"]))):has(tr > :nth-child(3)) {
  display: block; width: 100% !important; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  box-sizing: border-box; border: 1px solid #d6e9ec; border-radius: 10px; background: #fff;
}
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) table:where(:not(.ond-rank, .ond-ptable, .onaden-compare-table, .hikaku-table > table, .onaden-table-scroll > table, [style*="overflow"] > table, :has(> tbody > tr > :is(th, td)[style*="background"]))):has(tr > :nth-child(3)) > tbody {
  display: table; width: 100%; table-layout: auto; border-collapse: separate; border-spacing: 0; word-break: normal;
}
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) table:where(:not(.ond-rank, .ond-ptable, .onaden-compare-table, .hikaku-table > table, .onaden-table-scroll > table, [style*="overflow"] > table, :has(> tbody > tr > :is(th, td)[style*="background"]))):has(tr > :nth-child(3)) tr { border: 0; }
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) table:where(:not(.ond-rank, .ond-ptable, .onaden-compare-table, .hikaku-table > table, .onaden-table-scroll > table, [style*="overflow"] > table, :has(> tbody > tr > :is(th, td)[style*="background"]))):has(tr > :nth-child(3)) :is(th, td) {
  box-sizing: border-box; width: auto !important; min-width: 168px; padding: 10px 12px; border: 0; border-right: 1px solid #e1ecee; border-bottom: 1px solid #e1ecee;
  background: #fff; color: #333; font-size: 14px; font-weight: 400; line-height: 1.55; text-align: left; vertical-align: top;
  word-break: normal !important; overflow-wrap: anywhere; line-break: strict;
}
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) table:where(:not(.ond-rank, .ond-ptable, .onaden-compare-table, .hikaku-table > table, .onaden-table-scroll > table, [style*="overflow"] > table, :has(> tbody > tr > :is(th, td)[style*="background"]))):has(tr > :nth-child(3)) tr:last-child > :is(th, td) { border-bottom: 0; }
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) table:where(:not(.ond-rank, .ond-ptable, .onaden-compare-table, .hikaku-table > table, .onaden-table-scroll > table, [style*="overflow"] > table, :has(> tbody > tr > :is(th, td)[style*="background"]))):has(tr > :nth-child(3)) tr > :last-child { border-right: 0; }
/* first column: row label, stays visible while the rest slides */
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) table:where(:not(.ond-rank, .ond-ptable, .onaden-compare-table, .hikaku-table > table, .onaden-table-scroll > table, [style*="overflow"] > table, :has(> tbody > tr > :is(th, td)[style*="background"]))):has(tr > :nth-child(3)) tr > :first-child {
  position: sticky; left: 0; z-index: 1; min-width: 104px; max-width: 42vw; background: #f3f8f9; color: #222; font-weight: 700;
  border-right: 1px solid #cfe3e6; box-shadow: 3px 0 4px -3px rgba(0, 0, 0, .18);
}
/* header row (a first row made only of <th>) */
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) table:where(:not(.ond-rank, .ond-ptable, .onaden-compare-table, .hikaku-table > table, .onaden-table-scroll > table, [style*="overflow"] > table, :has(> tbody > tr > :is(th, td)[style*="background"]))):has(tr > :nth-child(3)) tr:first-child:not(:has(td)) > th {
  background: #1f6f7a; color: #fff; font-weight: 700; border-right-color: #3d8590; border-bottom-color: #1f6f7a;
}
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) table:where(:not(.ond-rank, .ond-ptable, .onaden-compare-table, .hikaku-table > table, .onaden-table-scroll > table, [style*="overflow"] > table, :has(> tbody > tr > :is(th, td)[style*="background"]))):has(tr > :nth-child(3)) img { max-width: 100%; height: auto; }
}
/* "slide sideways" note: inserted by onuts-article.js only when the table really overflows */
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) p.onuts-swipe { margin: 0 0 6px; padding: 0; font-size: 12px; line-height: 1.4; color: #777; text-align: right; }

/* ---- 6-2. Boxes: [box01] .topic-box (red) / [box04] .topic-box2 (teal) ---- */
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) .topic-box { background: #fff6f7; border: 1px solid #f1cfd2; border-radius: 10px; overflow: hidden; }
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) .topic-box .box-title { background: #c7323c; color: #fff; font-size: 16px; line-height: 1.5; padding: 10px 12px; border-radius: 0; }
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) .topic-box2 { background: #f1f8f9; border: 1px solid #cfe3e6; border-radius: 10px; overflow: hidden; }
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) .topic-box2 .box-title { background: #1f6f7a; color: #fff; font-size: 16px; line-height: 1.5; padding: 10px 12px; border-radius: 0; }
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) :is(.topic-box, .topic-box2) .box-content { padding: 16px 15px; line-height: 1.75; }

/* ---- 6-3. Buttons: .color-button01 (green) / 02 (red) / 03 (orange) / 02-big (teal) ----
   Same colours as before (each colour tells the shop apart), rounder corners, bolder text, soft shadow, no margin jump on hover. */
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) :is(.color-button01, .color-button02, .color-button03, .color-button01-big, .color-button02-big) a {
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) :is(.color-button01, .color-button02, .color-button03, .color-button01-big, .color-button02-big):not(.onuts-cta-3d) a {
  transition: transform .15s, box-shadow .15s, filter .15s;
}
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) .color-button01 a { background: linear-gradient(90deg, #1c8f00, #2a9f10); box-shadow: 0 3px 8px rgba(28, 143, 0, .25); }
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) .color-button02 a { background: linear-gradient(90deg, #ee2737, #c7323c); box-shadow: 0 3px 8px rgba(199, 50, 60, .28); }
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) .color-button03 a { background: linear-gradient(90deg, #ffa700, #f08c00); box-shadow: 0 3px 8px rgba(240, 140, 0, .28); }
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) :is(.color-button01-big, .color-button02-big):not(.onuts-cta-3d) a { background: linear-gradient(90deg, #50b5c3, #3fa3b3); box-shadow: 0 3px 8px rgba(63, 163, 179, .30); }
body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) :is(.color-button01, .color-button02, .color-button03, .color-button01-big, .color-button02-big):not(.onuts-cta-3d) a:hover {
  margin-top: 2px; margin-bottom: 2px; transform: translateY(-1px); filter: brightness(1.05);
}
@media screen and (max-width: 600px) {
  /* on phones the 15% side margins squeezed the label into 3 lines: use the width */
  body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) :is(.color-button01, .color-button02, .color-button03, .color-button01-big, .color-button02-big) a { margin-left: 0; margin-right: 0; padding-left: 44px; padding-right: 44px; }
  body .article-text:where(:not(:has(.ond-tocd, .ond-spot, .ond-rank))) :is(.color-button01, .color-button02, .color-button03, .color-button01-big, .color-button02-big) a:hover { margin-left: 0; margin-right: 0; }
}

/* Chat bubbles (.chat*) are intentionally NOT changed: the sample article's own 12px name tweak wraps long names (e.g. コーキ・スペクター) onto two lines on other articles. */
