/* =================================
   single-column.css（コラム・個別）
   本文見出し・リストは .single-column-detail_content 内にスコープ
================================= */

.single-column {
    overflow-x: hidden;
    background-color: #fff;
}

/* ----- 記事ヘッダ・画像・日付 ----- */
.single-column-detail {
    padding: 24px 0 28px;
    background-color: #fff;
}

.single-column-detail_inner {
    width: min(100%, 345px);
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 480px) {
    .single-column-detail_inner {
        width: min(100%, 1200px);
        padding: 0 16px;
    }
}

.single-column-detail_figure {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 5px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef2f8;
    aspect-ratio: 16 / 9;
}

.single-column-detail_image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.single-column-detail_title {
    margin: 12px 0 10px;
    font-size: clamp(22px, 3.9vw, 24px);
    font-weight: 700;
    line-height: 1.4;
    color: #2F3E77;
    letter-spacing: 0.02em;
}

.single-column-detail_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 22px;
}

.single-column-detail_date {
    display: block;
    margin: 0;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.03em;
}

.single-column-detail_cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-column-detail_cats a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid #2F3E77;
    border-radius: 3px;
    background: #fff;
    color: #2F3E77;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.single-column-detail_cats a:hover {
    background: #2F3E77;
    color: #fff;
}

/* ----- エディタ本文（見出し・リスト・表・ボックス） -----
   フロント: .single-column-detail_content
   ブロックエディタ: .editor-styles-wrapper（コラム投稿時のみ読込）
--------------------------------= */
:is(.single-column-detail_content, .editor-styles-wrapper) {
    color: #222;
    font-size: 14px;
    line-height: 1.85;
}

.single-column-detail_content>*:first-child {
    margin-top: 0;
}

.single-column-detail_content>*:last-child {
    margin-bottom: 0;
}

:is(.single-column-detail_content, .editor-styles-wrapper) h1 {
    margin: 1.6em 0 0.8em;
    font-size: clamp(20px, 3.6vw, 22px);
    font-weight: 700;
    line-height: 1.4;
    color: #2F3E77;
    letter-spacing: 0.02em;
}

:is(.single-column-detail_content, .editor-styles-wrapper) h2 {
    margin: 2.2em 0 0.95em;
    padding: 0.55em 0.85em 0.5em;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #2F3E77;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #eef3f9 0%, #fff 72%);
    border-left: 5px solid #2F3E77;
    box-shadow: inset 8px 0 0 #B1CC33;
    border-bottom: 2px solid #2F3E77;
}

@media (min-width: 768px) {
    :is(.single-column-detail_content, .editor-styles-wrapper) h2 {
        font-size: 20px;
    }
}

:is(.single-column-detail_content, .editor-styles-wrapper) h3 {
    margin: 1.7em 0 0.8em;
    padding: 0.45em 0.8em;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #2F3E77;
    background-color: #E5F3FF;
    border-left: 3px solid #2F3E77;
}

:is(.single-column-detail_content, .editor-styles-wrapper) h4 {
    margin: 1.4em 0 0.7em;
    padding: 0 0 0.4em 0.7em;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: #2F3E77;
    border-left: 3px solid #B1CC33;
    border-bottom: 1px solid #2F3E77;
}

:is(.single-column-detail_content, .editor-styles-wrapper) p {
    margin: 0 0 1.1em;
}

:is(.single-column-detail_content, .editor-styles-wrapper) a {
    color: #1e4fa0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

:is(.single-column-detail_content, .editor-styles-wrapper) a:hover {
    text-decoration-thickness: 2px;
}

/* ===== 箇条書き（点） ===== */
:is(.single-column-detail_content, .editor-styles-wrapper) ul {
    margin: 0 0 1.25em;
    padding: 0.35em 0 0.35em 0.1em;
    list-style: none;
}

:is(.single-column-detail_content, .editor-styles-wrapper) ul>li {
    position: relative;
    margin: 0.35em 0;
    padding-left: 1.45em;
    line-height: 1.75;
    color: #222;
}

:is(.single-column-detail_content, .editor-styles-wrapper) ul>li::before {
    content: "";
    position: absolute;
    left: 0.3em;
    top: 0.72em;
    width: 0.42em;
    height: 0.42em;
    border-radius: 50%;
    background: #2F3E77;
}

:is(.single-column-detail_content, .editor-styles-wrapper) ul ul>li::before {
    background: transparent;
    border: 1.5px solid #B1CC33;
    box-sizing: border-box;
}

/* チェックリスト（任意クラス） */
:is(.single-column-detail_content, .editor-styles-wrapper) ul.is-check>li::before,
:is(.single-column-detail_content, .editor-styles-wrapper) ul.is-style-check>li::before {
    top: 0.55em;
    left: 0.15em;
    width: 0.55em;
    height: 0.3em;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-left: 2px solid #B1CC33;
    border-bottom: 2px solid #B1CC33;
    transform: rotate(-45deg);
}

/* ===== 番号リスト ===== */
:is(.single-column-detail_content, .editor-styles-wrapper) ol {
    margin: 0 0 1.25em;
    padding: 0.35em 0;
    list-style: none;
    counter-reset: column-ol;
}

:is(.single-column-detail_content, .editor-styles-wrapper) ol>li {
    position: relative;
    margin: 0.5em 0;
    padding-left: 2.35em;
    counter-increment: column-ol;
    line-height: 1.75;
    color: #222;
}

:is(.single-column-detail_content, .editor-styles-wrapper) ol>li::before {
    content: counter(column-ol);
    position: absolute;
    left: 0;
    top: 0.12em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7em;
    height: 1.7em;
    border-radius: 50%;
    background: #2F3E77;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

:is(.single-column-detail_content, .editor-styles-wrapper) ol ol {
    counter-reset: column-ol-sub;
}

:is(.single-column-detail_content, .editor-styles-wrapper) ol ol>li {
    padding-left: 2.1em;
    counter-increment: column-ol-sub;
}

:is(.single-column-detail_content, .editor-styles-wrapper) ol ol>li::before {
    content: counter(column-ol-sub);
    width: 1.45em;
    height: 1.45em;
    background: #fff;
    color: #2F3E77;
    border: 1.5px solid #2F3E77;
    font-size: 11px;
}

:is(.single-column-detail_content, .editor-styles-wrapper) ul ul,
:is(.single-column-detail_content, .editor-styles-wrapper) ol ol,
:is(.single-column-detail_content, .editor-styles-wrapper) ul ol,
:is(.single-column-detail_content, .editor-styles-wrapper) ol ul {
    margin: 0.2em 0 0.3em;
}

/* ===== 表 =====
   collapse は overflow 祖先があると thead / tbody の枠が分かれる。
   separate で上・左だけ引き、右端・下端だけ足して1本の格子にする。
================================= */
:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table,
:is(.single-column-detail_content, .editor-styles-wrapper) figure.wp-block-table {
    margin: 0 0 1.5em;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 0;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table thead,
:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table tbody,
:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table tfoot,
:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table tr,
:is(.single-column-detail_content, .editor-styles-wrapper) table thead,
:is(.single-column-detail_content, .editor-styles-wrapper) table tbody,
:is(.single-column-detail_content, .editor-styles-wrapper) table tfoot,
:is(.single-column-detail_content, .editor-styles-wrapper) table tr {
    border: 0 !important;
    background: none;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table table,
:is(.single-column-detail_content, .editor-styles-wrapper) table {
    width: 100%;
    min-width: 420px;
    border-collapse: separate !important;
    border-spacing: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #222;
    background-color: #fff;
    box-sizing: border-box;
    border: 0 !important;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table th,
:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table td,
:is(.single-column-detail_content, .editor-styles-wrapper) table th,
:is(.single-column-detail_content, .editor-styles-wrapper) table td {
    padding: 0.7em 0.85em;
    text-align: left;
    vertical-align: top;
    box-sizing: border-box;
    background-clip: padding-box !important;
    border-style: solid !important;
    border-color: #c5d0e0 !important;
    border-width: 1px 0 0 1px !important;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table tr > *:last-child,
:is(.single-column-detail_content, .editor-styles-wrapper) table tr > *:last-child {
    border-right-width: 1px !important;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table > table > tbody > tr:last-child > *,
:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table > table > tfoot > tr:last-child > *,
:is(.single-column-detail_content, .editor-styles-wrapper) table > tbody > tr:last-child > *,
:is(.single-column-detail_content, .editor-styles-wrapper) table > tfoot > tr:last-child > * {
    border-bottom-width: 1px !important;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-table thead th,
:is(.single-column-detail_content, .editor-styles-wrapper) table thead th,
:is(.single-column-detail_content, .editor-styles-wrapper) table > tbody:only-child > tr:first-child > th {
    background-color: #2F3E77;
    background-image: none;
    background-clip: padding-box !important;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}

:is(.single-column-detail_content, .editor-styles-wrapper) table tbody th {
    background-color: #eef3f9;
    background-clip: padding-box !important;
    color: #2F3E77;
    font-weight: 700;
    white-space: nowrap;
}

:is(.single-column-detail_content, .editor-styles-wrapper) table tbody tr:nth-child(even) td {
    background-color: #f4f7fb;
    background-clip: padding-box !important;
}

:is(.single-column-detail_content, .editor-styles-wrapper) table tbody tr:nth-child(odd) td {
    background-color: #fff;
    background-clip: padding-box !important;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-image {
    width: min(100%, 900px);
    margin: 1.8em auto 2em;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .wp-block-image img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

:is(.single-column-detail_content, .editor-styles-wrapper) figcaption {
    margin: 0.55em 0 0;
    font-size: 12px;
    line-height: 1.65;
    color: #666;
    text-align: center;
}

:is(.single-column-detail_content, .editor-styles-wrapper) blockquote {
    margin: 1.25em 0;
    padding: 0.9em 1.1em;
    border-left: 4px solid #B1CC33;
    background: #f7f9fc;
    color: #333;
}

:is(.single-column-detail_content, .editor-styles-wrapper) img {
    max-width: 100%;
    height: auto;
}

/* ===== 汎用ボックス =====
   ビジュアルエディタ：挿入画面「コラム装飾」またはグループのスタイル
   1行目（p / h3 / h4）がタイトル
================================= */
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-point,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-check,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-caution,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-note,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-important,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-cta {
    margin: 1.5em 0;
    padding: 1.05em 1.15em 1em;
    border-radius: 6px;
    border: 1px solid #c5d0e0;
    background: #f7f9fc;
}

:is(.single-column-detail_content, .editor-styles-wrapper) :is(.column-box, .is-style-column-box, .is-style-column-box-point, .is-style-column-box-check, .is-style-column-box-caution, .is-style-column-box-note, .is-style-column-box-important, .is-style-column-box-cta) > :is(p, h3, h4):first-child,
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box_ttl {
    display: flex;
    align-items: center;
    gap: 0.45em;
    margin: 0 0 0.65em;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #2F3E77;
}

:is(.single-column-detail_content, .editor-styles-wrapper) :is(.column-box, .is-style-column-box, .is-style-column-box-point, .is-style-column-box-check, .is-style-column-box-caution, .is-style-column-box-note, .is-style-column-box-important, .is-style-column-box-cta) > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box_ttl::before {
    content: "";
    flex: 0 0 auto;
    width: 0.7em;
    height: 0.7em;
    border-radius: 50%;
    background: #2F3E77;
}

:is(.single-column-detail_content, .editor-styles-wrapper) :is(.column-box, .is-style-column-box, .is-style-column-box-point, .is-style-column-box-check, .is-style-column-box-caution, .is-style-column-box-note, .is-style-column-box-important, .is-style-column-box-cta) > :last-child {
    margin-bottom: 0;
}

/* ポイント */
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--point,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-point {
    border: 1px solid #c5d4a8;
    border-left: 5px solid #B1CC33;
    background: #f7faee;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--point > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-point > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--point .column-box_ttl::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-point .column-box_ttl::before {
    background: #B1CC33;
}

/* チェック */
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--check,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-check {
    border: 1px solid #b7d3c4;
    border-left: 5px solid #2F3E77;
    background: #f3faf6;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--check > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-check > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--check .column-box_ttl::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-check .column-box_ttl::before {
    width: 0.55em;
    height: 0.3em;
    border-radius: 0;
    background: transparent;
    border-left: 2px solid #B1CC33;
    border-bottom: 2px solid #B1CC33;
    transform: rotate(-45deg);
}

/* 注意 */
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--caution,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-caution {
    border: 1px solid #efc4b8;
    border-left: 5px solid #d4523e;
    background: #fff6f4;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--caution > :is(p, h3, h4):first-child,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-caution > :is(p, h3, h4):first-child,
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--caution .column-box_ttl,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-caution .column-box_ttl {
    color: #b23b2a;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--caution > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-caution > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--caution .column-box_ttl::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-caution .column-box_ttl::before {
    background: #d4523e;
}

/* 補足・メモ */
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--note,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-note {
    border: 1px dashed #b8c0cc;
    background: #f5f6f8;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--note > :is(p, h3, h4):first-child,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-note > :is(p, h3, h4):first-child,
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--note .column-box_ttl,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-note .column-box_ttl {
    color: #555;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--note > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-note > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--note .column-box_ttl::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-note .column-box_ttl::before {
    background: #8a93a3;
}

/* 重要 */
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--important,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-important {
    border: 1px solid #e6c200;
    background: #fff8d6;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--important > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-important > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--important .column-box_ttl::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-important .column-box_ttl::before {
    background: #f5c800;
}

/* CTA */
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--cta,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-cta {
    border: 0;
    background: #2F3E77;
    color: #fff;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--cta > :is(p, h3, h4):first-child,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-cta > :is(p, h3, h4):first-child,
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--cta .column-box_ttl,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-cta .column-box_ttl {
    color: #fff;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--cta > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-cta > :is(p, h3, h4):first-child::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--cta .column-box_ttl::before,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-cta .column-box_ttl::before {
    background: #B1CC33;
}

:is(.single-column-detail_content, .editor-styles-wrapper) .column-box--cta a,
:is(.single-column-detail_content, .editor-styles-wrapper) .is-style-column-box-cta a {
    color: #fff;
    text-decoration-color: #B1CC33;
}

.single-column-detail_pagination {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #e6eaf2;
    font-size: 0.9rem;
}

.single-column-detail_pagination_label {
    margin-right: 0.5em;
    font-weight: 700;
    color: #2F3E77;
}

/* ----- 関連コラム ----- */
.single-column-related {
    background-color: #f7f8fb;
    padding: 28px 0 36px;
}

.single-column-related_inner {
    width: min(100%, 345px);
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 480px) {
    .single-column-related_inner {
        width: min(100%, 760px);
        padding: 0 16px;
    }
}

.single-column-related_title {
    margin: 0 0 16px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #2F3E77;
    letter-spacing: 0.02em;
}

.single-column-related_list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.single-column-related_link {
    display: block;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(43, 58, 109, 0.08);
    height: 100%;
}

.single-column-related_image img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.single-column-related_body {
    padding: 8px 10px 10px;
}

.single-column-related_name {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #2F3E77;
    font-weight: 700;
}

.single-column-related_excerpt {
    margin: 4px 0 6px;
    font-size: 0.7rem;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-column-related_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    min-height: 24px;
    margin-top: 4px;
    padding: 0 8px;
    border: 1px solid #a9a9a9;
    font-size: 0.65rem;
    color: #222;
    background-color: #fff;
}

@media (min-width: 768px) {
    .single-column-related_list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}