/* Base */
.column-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    margin-top: 6em;
    color: #444;
    font-family: system-ui, sans-serif;
    line-height: 1.8;
}

.column-page h1,
.column-page h2,
.column-page h3 {
    color: #37517e;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.column-body h2 {
    border-left: .45em solid #37517e;
    padding-left: .25em;
}

.column-page h3 {
    color: #24b4f1;
    font-weight: 600;
}

.column-page a {
    color: #17678c;
    overflow-wrap: anywhere;
}

.column-page a:focus-visible {
    outline: 3px solid #37517e;
    outline-offset: 3px;
}

/* Header and footer */
.column-header,
.column-footer {
    background: #37517e;
    color: #fff;
    padding: 1rem 1.5rem;
}

.column-header a,
.column-footer a {
    color: #fff;
    text-decoration: none;
}

.column-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.column-footer {
    padding: 1.5rem;
    text-align: center;
}

/* Article list and cards */
.column-page .column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
}

.column-page .column-card,
.column-page .column-cta {
    border: 1px solid #dce6ed;
    border-radius: 0.5rem;
    padding: 1rem;
}

.column-card-image {
    display: block;
}

.column-card-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.column-card-image--empty {
    aspect-ratio: 16 / 9;
    background: #f2f5f7;
}

.column-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-cate {
    display: inline-block;
    padding: 0.35em 0.65em;
    /* font-size: .75em; */
    margin-top: 2px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    background-color: #0d6efd!important;
    border-radius: 50rem!important;
}

.column-pagination,
.column-categories,
.column-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

/* Article detail */
.column-article .column-eyecatch,
.column-body img {
    max-width: 100%;
    height: auto;
}

.column-article .column-eyecatch {
    display: block;
    margin: 1.5rem auto;
}

.column-dates,
.column-category,
.column-publisher {
    color: #5d6875;
}

.column-category {
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 700;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: var(--bs-border-radius);
    display: inline-block;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    /* font-size: var(--bs-badge-font-size); */
    font-weight: var(--bs-badge-font-weight);
    line-height: 1;
    color: var(--bs-badge-color);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-badge-border-radius);
    background-color:#37517e;
}

.column-article .column-summary {
    font-size: 1.05rem;
}

/* Breadcrumb and table of contents */
.column-page nav[aria-label="パンくずリスト"] {
    margin-bottom: 1rem;
}

.column-toc {
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    background: #f2f8fc;
    border-radius: 0.5rem;
}

.column-toc-level-3 {
    margin-left: 1.25rem;
}

/* Article body */
.column-body h2 {
    margin-top: 2rem;
}

.column-body h3 {
    margin-top: 1.5rem;
}

.column-page table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.column-page td,
.column-page th {
    border: 1px solid #ccd7e0;
    padding: 0.5rem;
}

.column-page blockquote {
    margin-left: 0;
    padding-left: 1rem;
    border-left: 4px solid #47b2e4;
}

.column-page pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Related articles and CTA */
.column-page .column-cta {
    margin: 2rem 0;
    background: #f2f8fc;
}

.column-page .column-button {
    display: inline-block;
    padding: 0.65rem 1rem;
    border-radius: 0.3rem;
    background: #37517e;
    color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .column-page {
        padding: 1rem;
    }

    .column-header {
        padding: 1rem;
    }
}

.index-page .header {
    --background-color: rgba(10, 68, 168, 0.9);
}

.column-share {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0;
    padding: 20px;
    background: #f7f9fc;
    border: 1px solid #dfe7f3;
    border-radius: 16px;
    align-items: center;
}

.column-share::before {
    content: "この記事をシェア";
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    color: #1d3f8f;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.column-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
    border: 2px solid transparent;
    box-shadow: 0 6px 16px rgba(18, 52, 102, 0.08);
}

.column-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(18, 52, 102, 0.14);
}

.column-share-button:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.18),
        0 10px 24px rgba(18, 52, 102, 0.14);
}

.column-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 16px;
    flex-shrink: 0;
}

.column-share-label {
    white-space: nowrap;
}

/* LINE */
.column-share-button.line {
    background: #06c755;
    color: #ffffff;
}

.column-share-button.line:hover {
    background: #05b44c;
}

/* X */
.column-share-button.x {
    background: #000000;
    color: #ffffff;
}

.column-share-button.x:hover {
    background: #212121;
}

@media (max-width: 640px) {
    .column-share {
        padding: 16px;
    }

    .column-share-button {
        width: 100%;
        min-width: 0;
    }
}/* ========================================
   SNS Share Buttons
======================================== */

.column-share {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 40px 0;
    padding: 24px;
    background: #f4f6f9;
    border: 1px solid #e2e7ef;
    border-radius: 10px;
}

.column-share::before {
    content: "この記事をシェア";
    width: 100%;
    margin-bottom: 6px;
    color: #344d78;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
}

/* 共通ボタン */

.column-share .column-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    max-width: 240px;
    min-height: 48px;
    padding: 12px 16px;
    box-sizing: border-box;
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

/* SVGアイコン */

.column-share-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* LINE */

.column-share-button.line {
    background-color: #06c755;
}

/* X */

.column-share-button.x {
    background-color: #111111;
}

/* ホバー */

.column-share .column-share-button:hover {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* キーボード操作 */

.column-share .column-share-button:focus-visible {
    outline: 3px solid #344d78;
    outline-offset: 4px;
}

/* クリック */

.column-share-button:active {
    transform: translateY(0);
}

/* スマートフォン */

@media (max-width: 576px) {
    .column-share {
        padding: 16px 12px;
        gap: 8px;
    }

    .column-share .column-share-button {
        font-size: 12px;
        padding: 10px 6px;
        gap: 6px;
    }

    .column-share-icon {
        width: 20px;
        height: 20px;
    }
}

/* アニメーション抑制 */

@media (prefers-reduced-motion: reduce) {
    .column-share-button {
        transition: none;
    }

    .column-share .column-share-button:hover {
        transform: none;
    }
}