/**
 * コラム（トップの最新6件・一覧・記事ページ）
 * 配色はサイト共通（ネイビー #020283 / レッド #E6192E / イエロー #FFD700）
 */

/* ===========================================
   共通：セクション見出し
=========================================== */
.c-sec-header {
    margin-bottom: 2.75rem;
    text-align: center;
}

.c-sec-header__label {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.3rem 0.85rem;
    background: #020283;
    color: #FFD700;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    border-radius: 2px;
}

.c-sec-header__rule {
    display: block;
    width: 2.5rem;
    height: 2px;
    margin: 0 auto 0.85rem;
    background: #E6192E;
    border-radius: 2px;
}

.c-sec-header__title {
    margin: 0 0 0.9rem;
    color: #020283;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.4;
}

.c-sec-header__page {
    font-size: 0.6em;
    font-weight: 700;
}

.c-sec-header__lead {
    max-width: 44rem;
    margin: 0 auto;
    color: #4a4a5c;
    font-size: 0.975rem;
    font-weight: 700;
    line-height: 1.8;
}

.c-br-sp {
    display: none;
}

/* ===========================================
   共通：カード
=========================================== */
.c-column-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.c-column-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(2, 2, 131, 0.08);
    border-radius: 12px;
    box-shadow:
        0 8px 24px rgba(7, 29, 102, 0.08),
        0 2px 6px rgba(2, 2, 131, 0.04);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.c-column-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #E6192E;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .c-column-card:hover {
        transform: translateY(-5px);
        box-shadow:
            0 14px 32px rgba(7, 29, 102, 0.12),
            0 4px 10px rgba(2, 2, 131, 0.06);
    }
}

.c-column-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* 画像は切らずに全体を表示 */
.c-column-card__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: #EEF3FB;
    overflow: hidden;
}

.c-column-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.c-column-card__noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #EEF3FB 0%, #DDE6F7 100%);
}

.c-column-card__noimage img {
    width: 55%;
    height: auto;
    object-fit: contain;
}

.c-column-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 1.25rem 1.35rem;
}

.c-column-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #5f5f8c;
    font-size: 0.75rem;
    font-weight: 700;
}

.c-column-card__cat {
    padding: 0.15rem 0.6rem;
    background: #020283;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.7rem;
}

.c-column-card__title {
    margin: 0;
    color: #020283;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.5;
}

.c-column-card__excerpt {
    margin: 0;
    color: #5f5f8c;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================
   共通：ボタン・パンくず・カテゴリー・ページ送り
=========================================== */
.c-more {
    margin-top: 2.5rem;
    text-align: center;
}

.c-more__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 2rem 0.95rem 2.15rem;
    background: #020283;
    color: #ffffff !important;
    border-radius: 999px;
    font-size: 1.0625rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 4px 0 #01015c;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.c-more__btn::after {
    content: '';
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-top: 2px solid #FFD700;
    border-right: 2px solid #FFD700;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
    .c-more__btn:hover {
        background: #FFD700;
        color: #020283 !important;
        box-shadow: 0 4px 0 rgba(2, 2, 131, 0.25);
    }

    .c-more__btn:hover::after {
        border-color: #020283;
        transform: rotate(45deg) translate(3px, -3px);
    }
}

.c-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
    color: #5f5f8c;
    font-size: 0.8rem;
    font-weight: 700;
}

.c-breadcrumb li + li::before {
    content: '›';
    margin-right: 0.35rem;
    color: #9aa0bd;
}

.c-breadcrumb a {
    color: #020283;
    text-decoration: none;
}

.c-breadcrumb a:hover {
    text-decoration: underline;
}

.c-cat-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: -1rem 0 2.25rem;
    padding: 0;
    list-style: none;
}

.c-cat-chips a {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: #ffffff;
    color: #020283;
    border: 2px solid #020283;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.c-cat-chips a[aria-current="page"],
.c-cat-chips a:hover {
    background: #020283;
    color: #ffffff;
}

.c-pagination {
    margin-top: 2.5rem;
}

.c-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.c-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: #ffffff;
    color: #020283;
    border: 1px solid rgba(2, 2, 131, 0.2);
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.c-pagination .page-numbers.current,
.c-pagination a.page-numbers:hover {
    background: #020283;
    color: #ffffff;
}

.c-empty {
    padding: 2.5rem 1rem;
    color: #5f5f8c;
    text-align: center;
}

.c-page-line {
    margin: 3.5rem 0 2.5rem;
}

.c-page-back {
    text-align: center;
}

/* ===========================================
   トップページ：コラム
=========================================== */
.p-column-sec {
    padding: 4.5rem 0 5rem;
    background: #ffffff;
    scroll-margin-top: 90px;
}

.p-column-sec__inner,
.p-column-archive__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===========================================
   コラム一覧
=========================================== */
.column-page {
    padding-top: 86px;
    background: #E5EDF9;
}

.p-column-archive {
    padding: 2rem 0 4.5rem;
    background: linear-gradient(180deg, #EEF3FB 0%, #E5EDF9 100%);
}

.c-sec-header--page .c-sec-header__title {
    font-size: 2.1rem;
}

/* ===========================================
   コラム記事
=========================================== */
.p-column-single {
    padding: 2rem 0 4.5rem;
    background: linear-gradient(180deg, #EEF3FB 0%, #E5EDF9 100%);
}

.p-column-single__inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.p-column-article {
    padding: 2.5rem 2.75rem 3rem;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(7, 29, 102, 0.08);
    color: #222233;
}

.p-column-article__header {
    margin-bottom: 1.75rem;
}

.p-column-article__cat {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.2rem 0.8rem;
    background: #020283;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.p-column-article__title {
    margin: 0 0 0.9rem;
    color: #020283;
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.5;
}

.p-column-article__dates {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    color: #5f5f8c;
    font-size: 0.85rem;
    font-weight: 700;
}

.p-column-article__thumb {
    margin: 0 0 2rem;
    border-radius: 10px;
    overflow: hidden;
    background: #EEF3FB;
}

.p-column-article__thumb img {
    display: block;
    width: 100%;
    height: auto;
}

/* 本文 */
.p-column-article__content {
    font-size: 1rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.p-column-article__content p {
    margin: 0 0 1.4em;
}

.p-column-article__content h2,
.p-column-article__content h3,
.p-column-article__content h4 {
    scroll-margin-top: 100px;
    line-height: 1.5;
    font-weight: 900;
}

.p-column-article__content h2 {
    margin: 2.6em 0 1.1em;
    padding: 0.75em 1em;
    background: #020283;
    color: #ffffff;
    font-size: 1.35rem;
    border-left: 6px solid #E6192E;
    border-radius: 4px;
}

.p-column-article__content h3 {
    margin: 2.2em 0 0.9em;
    padding: 0.15em 0 0.15em 0.75em;
    color: #020283;
    font-size: 1.18rem;
    border-left: 5px solid #FFD700;
}

.p-column-article__content h4 {
    margin: 1.8em 0 0.7em;
    color: #020283;
    font-size: 1.05rem;
}

.p-column-article__content ul,
.p-column-article__content ol {
    margin: 0 0 1.4em;
    padding-left: 1.5em;
}

.p-column-article__content ul {
    list-style: disc;
}

.p-column-article__content ol {
    list-style: decimal;
}

.p-column-article__content li {
    margin: 0.35em 0;
}

.p-column-article__content ul li::marker {
    color: #E6192E;
}

.p-column-article__content strong {
    background: linear-gradient(transparent 62%, #FFE98A 62%);
}

.p-column-article__content a {
    color: #0b4fb3;
    text-decoration: underline;
}

.p-column-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.p-column-article__content figcaption {
    margin-top: 0.4em;
    color: #5f5f8c;
    font-size: 0.8rem;
    text-align: center;
}

.p-column-article__content blockquote {
    margin: 0 0 1.4em;
    padding: 1em 1.25em;
    background: #F4F7FC;
    border-left: 4px solid #020283;
    border-radius: 4px;
}

.p-column-article__content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.p-column-article__content th,
.p-column-article__content td {
    padding: 0.7em 0.9em;
    border: 1px solid #d5dbea;
    vertical-align: top;
}

.p-column-article__content th {
    background: #EEF3FB;
    color: #020283;
    font-weight: 800;
}

.p-column-article__content .wp-block-table {
    overflow-x: auto;
}

/* 目次 */
.c-toc {
    margin: 2em 0;
    padding: 1.1rem 1.5rem 1.25rem;
    background: #F7F9FD;
    border: 2px solid #020283;
    border-radius: 10px;
}

.c-toc__title {
    margin: 0 0 0.6em !important;
    color: #020283;
    font-size: 1.05rem;
    font-weight: 900;
}

.c-toc .c-toc__list,
.c-toc .c-toc__sub {
    list-style: none;
}

.c-toc__list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    counter-reset: toc;
}

.c-toc__list > li {
    margin: 0.4em 0;
    counter-increment: toc;
}

.c-toc__list > li > a::before {
    content: counter(toc) '. ';
    color: #E6192E;
    font-weight: 900;
}

.c-toc__sub {
    margin: 0.2em 0 0.4em !important;
    padding-left: 1.4em !important;
    list-style: none;
}

.c-toc__sub li {
    margin: 0.25em 0;
    font-size: 0.92em;
}

.c-toc__sub li::before {
    content: '・';
    color: #9aa0bd;
}

.c-toc a {
    color: #020283 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.c-toc a:hover {
    text-decoration: underline !important;
}

/* 関連記事 */
.p-column-related {
    margin-top: 1rem;
}

.p-column-related__title {
    margin: 0 0 1.5rem;
    color: #020283;
    font-size: 1.4rem;
    font-weight: 900;
    text-align: center;
}

/* ===========================================
   レスポンシブ
=========================================== */
@media (max-width: 900px) {
    .c-column-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .column-page {
        padding-top: 72px;
    }

    .c-sec-header {
        margin-bottom: 2rem;
    }

    .c-sec-header__title,
    .c-sec-header--page .c-sec-header__title {
        font-size: 1.5rem;
    }

    .c-sec-header__lead {
        font-size: 0.9rem;
    }

    .c-br-sp {
        display: inline;
    }

    .p-column-sec {
        padding: 3.5rem 0 4rem;
    }

    .p-column-sec__inner,
    .p-column-archive__inner,
    .p-column-single__inner {
        padding: 0 16px;
    }

    .p-column-article {
        padding: 1.75rem 1.15rem 2rem;
    }

    .p-column-article__title {
        font-size: 1.4rem;
    }

    .p-column-article__content h2 {
        font-size: 1.15rem;
    }

    .p-column-article__content h3 {
        font-size: 1.05rem;
    }

    .c-toc {
        padding: 1rem 1.1rem;
    }
}

@media (max-width: 599px) {
    .c-column-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   記事内パーツ（ボックス・チェックリスト・LINE誘導・出典）
=========================================== */
.p-column-article__content .wp-block-image {
    margin: 2em 0;
}

.p-column-article__content .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e3e7f0;
}

.p-column-article__content .c-box {
    margin: 2em 0;
    padding: 1.25em 1.5em;
    background: #F4F7FC;
    border: 2px solid #D5DEF0;
    border-radius: 12px;
}

.p-column-article__content .c-box > *:last-child {
    margin-bottom: 0;
}

.p-column-article__content .c-box__title {
    display: inline-block;
    margin: 0 0 0.8em;
    padding: 0.2em 1em;
    background: #020283;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1.6;
}

.p-column-article__content .c-box--related {
    background: #FFFBE6;
    border-color: #FFD700;
}

.p-column-article__content .c-box--related .c-box__title {
    background: #E6192E;
}

.p-column-article__content .c-box--related p:not(.c-box__title) {
    margin: 0;
}

.p-column-article__content .c-box--related a {
    color: #020283;
    font-weight: 800;
}

.p-column-article__content ul.c-checklist {
    margin: 1.5em 0;
    padding: 1em 1.25em;
    list-style: none;
    background: #F7F9FD;
    border: 2px dashed #C9D3EA;
    border-radius: 12px;
}

.p-column-article__content .c-checklist li {
    position: relative;
    margin: 0.55em 0;
    padding-left: 2em;
}

.p-column-article__content .c-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.25em;
    height: 1.25em;
    background: #06C755;
    border-radius: 4px;
}

.p-column-article__content .c-checklist li::after {
    content: '';
    position: absolute;
    left: 0.42em;
    top: 0.45em;
    width: 0.38em;
    height: 0.7em;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(45deg);
}

.p-column-article__content .c-cta-inline {
    margin: 2.5em 0;
    padding: 1.6em 1.5em;
    background: linear-gradient(135deg, #E8F9EE 0%, #F6FFF9 100%);
    border: 3px solid #06C755;
    border-radius: 14px;
    text-align: center;
}

.p-column-article__content .c-cta-inline__title {
    margin: 0 0 0.4em;
    color: #020283;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.5;
}

.p-column-article__content .c-cta-inline__text {
    margin: 0 0 1em;
    color: #4a4a5c;
    font-size: 0.92rem;
}

.p-column-article__content .c-cta-inline__btn-wrap {
    margin: 0;
}

.p-column-article__content a.c-cta-inline__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-width: 15rem;
    padding: 0.9em 2em;
    background: #06C755;
    color: #ffffff;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 4px 0 #04963f;
}

.p-column-article__content a.c-cta-inline__btn:hover {
    background: #05b84e;
}

.p-column-article__content .c-sources {
    margin-top: 3em;
    padding-top: 1.25em;
    border-top: 1px solid #d5dbea;
    color: #5f5f8c;
    font-size: 0.82rem;
    line-height: 1.8;
}

.p-column-article__content .c-sources__title {
    margin: 0 0 0.4em;
    color: #020283;
    font-weight: 800;
}

.p-column-article__content .c-sources ul {
    margin: 0;
}

.p-column-article__content .c-sources a {
    color: #5f5f8c;
    word-break: break-all;
}

@media (max-width: 768px) {
    .p-column-article__content a.c-cta-inline__btn {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

.p-column-article__content .wp-block-table {
    margin: 1.5em 0 1.8em;
}

.p-column-article__content .wp-block-table thead {
    border-bottom: 2px solid #020283;
}
