/* 管制塔（SSオウンドメディア）が置くコラム記事だけで読む追加の CSS。_templates/column.html から読む。
   本文は管制塔の原稿の部品（definition-box・caution-box など）で届くので、手書きの記事（style.css の .post-body）と同じ見た目に寄せる。
   管制塔は部品に style 属性を付けることがあるが、このサイトの CSP（style-src 'self'）で効かないため、見た目はここで持つ。 */

/* FAQ（管制塔は <details><summary>…</summary><div class="a">…</div></details> の形で届ける。style.css の .faq と同じ見た目） */
.faqs--auto > details { border-bottom: 1px solid var(--line); }
.faqs--auto summary { position: relative; padding: 24px 56px 24px 44px; font-size: clamp(17px, 1.5vw, 19px); font-weight: 700; line-height: 1.6; cursor: pointer; list-style: none; }
.faqs--auto summary::-webkit-details-marker { display: none; }
.faqs--auto summary::before { content: "Q"; position: absolute; left: 4px; top: 21px; color: var(--deep); font-size: 22px; }
.faqs--auto summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--deep); border-bottom: 2px solid var(--deep); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faqs--auto details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faqs--auto .a { padding: 0 56px 28px 44px; max-width: 46em; word-break: auto-phrase; }

/* 本文の見出し・一覧・表・画像。
   スマホ（1列の段組み）では、本文の中の広い表が段の最小幅を押し広げて画面からはみ出すので、本文の段の最小幅を0にする */
.post-layout > .post-body { min-width: 0; }
.post-body h3 { margin-top: 2em; padding-left: 12px; border-left: 3px solid var(--sky); font-size: clamp(18px, 1.8vw, 20px); line-height: 1.6; color: var(--night); scroll-margin-top: 96px; }
.post-body ul:not([class]), .post-body ol:not([class]) { padding-left: 1.4em; }
.post-body ul:not([class]) { list-style: disc; }
.post-body ol:not([class]) { list-style: decimal; }
.post-body li:not([class]) + li { margin-top: 6px; }
.post-body li::marker { color: var(--deep); }
.post-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body .table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.post-body .table-wrap th, .post-body .table-wrap td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; word-break: auto-phrase; }
.post-body .table-wrap thead th { background: var(--night); color: #fff; font-size: 14px; white-space: nowrap; }
.post-body .table-wrap tbody th { background: var(--mist2); font-weight: 700; }
.post-body img { border-radius: 8px; }
.post-body figure figcaption { margin-top: 8px; font-size: 14px; color: var(--ink2); }
.post-body blockquote { padding: var(--s2) var(--s3); border-left: 4px solid var(--sky); background: var(--mist2); }

/* 原稿の部品。箱で囲まず、罫線と淡い地で区切る（DESIGN.md「箱で囲むのは表・図・フォームと事例だけ」） */
.post-body .definition-box { padding: 14px 18px; border-left: 4px solid var(--deep); background: var(--mist2); }
.post-body .caution-box { padding: 14px 18px; border-left: 4px solid var(--warn); background: #FBF4F3; }
.post-body .term, .post-body .box-title, .post-body .lst-title { font-weight: 700; color: var(--night); }
.post-body .lead-summary .lst-title { display: block; }
.post-body .txt-red { color: var(--warn); font-weight: 700; }
.post-body .txt-blue { color: var(--deep); font-weight: 700; }
.post-body .big { font-size: 1.15em; font-weight: 700; }
.post-body .source { font-size: 14px; color: var(--ink2); }

/* 本文の中の相談の帯（原稿の cta-box、管制塔が中ほどに入れる cta-mid）。style.css の .cta-box と同じ濃紺の帯にする */
.post-body .cta-mid { margin-top: 2.4em; padding: var(--s4) var(--s3); background: var(--night); border-radius: 12px; color: #fff; text-align: center; }
.post-body .cta-box > p:not([class]), .post-body .cta-mid > p { font-size: 16px; line-height: 1.8; color: #fff; }
.post-body .cta-mid > p:first-child { font-size: clamp(18px, 2vw, 20px); font-weight: 700; }
.post-body .cta-mid > p:last-child:not(:first-child) { margin-top: 10px; font-size: 13px; color: #CFE6F5; }
.post-body .cta-button { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; min-width: 260px; margin-top: var(--s3); padding: 14px 36px; border: 2px solid #fff; border-radius: var(--r); background: #fff; color: var(--deep); font-size: 17px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.post-body .cta-button:hover { background: var(--mist); border-color: var(--mist); color: var(--deep-d); }

/* 関連記事（管制塔は題とリンクだけを渡す） */
.post-body .rel-list a { font-weight: 700; }

/* 管制塔のまとめのページ（/compare/ など）。中身の CSS は head の style 要素で届くが CSP で効かないため、幅と余白だけ持つ */
.ss-aggregate { width: min(100% - 48px, var(--wrap)); margin: 0 auto; padding-block: var(--s5) var(--s6); }
.ss-aggregate h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.5; color: var(--night); }
.ss-aggregate h2 { margin-top: var(--s4); font-size: clamp(20px, 2vw, 24px); color: var(--night); }

@media (max-width: 900px) {
  .faqs--auto summary { padding: 20px 40px 20px 36px; }
  .faqs--auto .a { padding: 0 0 22px 36px; }
}
@media (max-width: 600px) {
  .post-body .cta-button { min-width: 0; width: 100%; padding-inline: 20px; }
}
