/* ==========================================================================
   p-column-detail : コラム詳細全体構造
   ========================================================================== */
.p-column-detail {
    width: 100%;
    background-color: #ffffff;
    padding-bottom: 120px;
}

.p-column-detail-hero {
    background-color: var(--color-hero-navy);
    background-image: linear-gradient(180deg, var(--color-hero-navy) 0%, #08152c 100%);
    padding: 100px 0;
    color: #ffffff;
    margin-bottom: 70px;
}

.p-column-detail-hero-inner {
    width: min(100%, 1440px);
    margin-inline: auto;
    padding-inline: 40px;
}

.p-column-detail-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-hero-gold);
    border: 1px solid var(--color-hero-gold);
    padding: 4px 12px;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.p-column-detail-main-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.p-column-detail-sub-title {
    font-size: 16px;
    color: #a4b3c6;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.05em;
}

.p-column-detail-eyecatch-inner,
.p-column-detail-lead-inner,
.p-column-detail-body-inner {
    width: min(100%, 1200px);
    margin-inline: auto;
}

/* ==========================================================================
   Eyecatch Area
   ========================================================================== */
.p-column-detail-eyecatch {
    width: 100%;
    margin-bottom: 50px;
    padding-inline: 40px;
}

.p-column-detail-eyecatch-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}

/* ==========================================================================
   Lead Area
   ========================================================================== */
.p-column-detail-lead-area {
    width: 100%;
    margin-bottom: 40px;
}

.p-column-detail-lead {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-text-main);
    opacity: 0.8;
    line-height: 1.8;
    letter-spacing: 0.04em;
    background-color: #fcfbfa;
    border-left: 4px solid #ba9a6f;
    padding: 24px 32px;
}

/* ==========================================================================
   Dynamic Table of Contents (TOC)
   ========================================================================== */
.p-column-toc {
    background-color: #faf9f6;
    border: 1px solid rgba(186, 154, 111, 0.25);
    border-top: 3px solid #ba9a6f;
    border-radius: 4px;
    padding: 24px 28px;
    margin: 0 0 40px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(186, 154, 111, 0.03);
}

.p-column-toc-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-main);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(186, 154, 111, 0.15);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.p-column-toc-title .material-symbols-outlined {
    font-size: 1.8rem;
    color: #ba9a6f;
    font-weight: normal;
}

.p-column-toc-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: toc-counter;
}

.p-column-toc-item {
    margin-bottom: 14px;
    position: relative;
    padding-left: 36px;
}

.p-column-toc-item:last-child {
    margin-bottom: 0;
}

.p-column-toc-item::before {
    counter-increment: toc-counter;
    content: "0" counter(toc-counter);
    position: absolute;
    left: 0;
    top: 1px;
    font-family: "Inter", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ba9a6f;
    letter-spacing: 0.05em;
    display: inline-block;
}

.p-column-toc-link {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.5;
    display: inline-block;
    transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.p-column-toc-link:hover {
    color: #ba9a6f;
    transform: translateX(4px);
}

/* ==========================================================================
   Body Area & Section Layout
   ========================================================================== */
.p-column-detail-body {
    width: 100%;
    padding-inline: 40px;
}

/* ==========================================================================
   Body Rich HTML Elements
   ========================================================================== */
.p-column-detail-section-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--color-text-main);
    width: 100%;
}

.p-column-detail-section-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-main) 0%, #1e3a5f 100%);
    padding: 14px 20px;
    margin: 48px 0 24px;
    border-radius: 4px;
    border-left: 6px solid #ba9a6f;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

.p-column-detail-section-text h2:first-child {
    margin-top: 0;
}

.p-column-detail-section-text h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-main);
    border-bottom: 2px solid #ba9a6f;
    padding-bottom: 6px;
    margin: 28px 0 14px;
    width: 100%;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.p-column-detail-section-text p {
    width: 100%;
    margin-bottom: 16px;
}

.p-column-detail-section-text strong {
    font-weight: 700;
    color: var(--color-main);
}

.p-column-detail-section-text mark {
    background: linear-gradient(transparent 50%, rgba(186, 154, 111, 0.3) 50%);
    color: inherit;
    font-weight: 700;
    padding: 0 2px;
}

.p-column-detail-section-text ul {
    margin: 12px 0 16px;
    padding-left: 0;
    list-style: none;
    width: 100%;
}

.p-column-detail-section-text ul li {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.p-column-detail-section-text ul li::before {
    content: "■";
    color: #ba9a6f;
    font-size: 1.0rem;
    position: absolute;
    left: 0;
    top: 2px;
}

/* 順位付きリスト（人気ランキング等）は ol を使うと「1位」バッジがCSSで自動生成される */
.p-column-detail-section-text ol {
    margin: 12px 0 16px;
    padding-left: 0;
    list-style: none;
    counter-reset: column-rank;
    width: 100%;
}

.p-column-detail-section-text ol li {
    counter-increment: column-rank;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    padding-left: 52px;
    min-height: 26px;
}

.p-column-detail-section-text ol li::before {
    content: counter(column-rank) "位";
    position: absolute;
    left: 0;
    top: 0;
    background-color: #ba9a6f;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: "Inter", sans-serif;
}

/* 要点まとめボックス */
.p-column-detail-section-text aside {
    background-color: #fcfbfa;
    border: 1px solid rgba(186, 154, 111, 0.3);
    padding: 18px;
    margin: 20px 0;
    border-radius: 4px;
    width: 100%;
}

.p-column-detail-section-text aside h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-column-detail-section-text aside h4::before {
    content: "✓";
    font-weight: 900;
    color: #ffffff;
    background-color: #ba9a6f;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ステップ・タイムライン（dt=ステップ名 / dd=内容） */
.p-column-detail-section-text dl {
    position: relative;
    border-left: 2px solid rgba(186, 154, 111, 0.3);
    margin: 16px 0 16px 8px;
    padding-left: 18px;
    width: 100%;
}

.p-column-detail-section-text dl dt {
    display: inline-block;
    background-color: #ba9a6f;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    margin: 12px 0 8px;
}

.p-column-detail-section-text dl dd {
    margin: 0;
}

.p-column-detail-section-text blockquote {
    margin: 16px 0;
    padding: 14px 20px;
    background-color: #fbfbfb;
    border-left: 3px solid #ba9a6f;
    width: 100%;
}

.p-column-detail-section-text blockquote p {
    font-size: 1.45rem;
    font-style: italic;
    color: #555555;
    margin-bottom: 0;
    line-height: 1.75;
}

/* ==========================================================================
   参考資料ブロック（Professional References Area）
   footer要素の中に見出し(h4)とリストを置くと専用の見た目になる
   ========================================================================== */
.p-column-detail-section-text footer {
    margin-top: 16px;
    padding: 24px;
    background-color: #f8f7f5;
    border-radius: 6px;
    border-left: 3px solid rgba(186, 154, 111, 0.4);
    width: 100%;
}

.p-column-detail-section-text footer h4 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

.p-column-detail-section-text footer h4::before {
    content: "book";
    font-family: "Material Symbols Outlined";
    font-size: 1.8rem;
    color: #ba9a6f;
    font-weight: normal;
}

.p-column-detail-section-text footer ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.p-column-detail-section-text footer ul li {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--color-text-main);
    opacity: 0.85;
    margin-bottom: 14px;
    padding-left: 0;
}

.p-column-detail-section-text footer ul li::before {
    display: none;
}

.p-column-detail-section-text footer ul li:last-child {
    margin-bottom: 0;
}

.p-column-detail-section-text footer a {
    color: #ba9a6f;
    text-decoration: none;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    word-break: break-all;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.p-column-detail-section-text footer a::before {
    content: "→";
    font-weight: 700;
}

.p-column-detail-section-text footer a:hover {
    color: var(--color-main);
    text-decoration: underline;
}

/* ==========================================================================
   Footer Area
   ========================================================================== */
.p-column-detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border-medium);
    margin-bottom: 40px;
    width: 100%;
    margin-top: 64px;
}

.p-column-detail-nav-item {
    flex: 1;
    min-width: 0;
}

.p-column-detail-nav-item.-prev {
    text-align: left;
}

.p-column-detail-nav-item.-next {
    text-align: right;
}

.p-column-detail-nav-item a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    color: var(--color-main);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.3s;
}

.p-column-detail-nav-item a:hover {
    color: #ba9a6f;
}

.p-column-detail-nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.p-column-detail-nav-item a span.material-symbols-outlined {
    font-size: 2.0rem;
    color: #ba9a6f;
    flex-shrink: 0;
}

.p-column-detail-back {
    text-align: center;
    width: 100%;
    margin-top: 0;
}

.p-column-detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-main);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.p-column-detail-back-btn:hover {
    color: #ba9a6f;
    transform: translateX(-4px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .p-column-detail-hero {
        padding: 80px 0;
    }

    .p-column-detail-hero-inner {
        padding-inline: 32px;
    }

    .p-column-detail-main-title {
        font-size: 36px;
    }

    .p-column-detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .p-column-detail-eyecatch,
    .p-column-detail-body {
        padding-inline: 24px;
    }
}

@media screen and (max-width: 768px) {
    .p-column-detail {
        padding-bottom: 60px;
    }

    .p-column-detail-hero {
        padding: 56px 0;
        margin-bottom: 40px;
    }

    .p-column-detail-hero-inner {
        padding-inline: 20px;
    }

    .p-column-detail-badge {
        font-size: 10px;
        margin-bottom: 16px;
    }

    .p-column-detail-main-title {
        font-size: 28px;
        line-height: 1.35;
    }

    .p-column-detail-sub-title {
        font-size: 13px;
        line-height: 1.8;
    }

    .p-column-detail-lead {
        font-size: 1.4rem;
        padding: 16px 20px;
    }

    .p-column-toc {
        padding: 16px 20px;
        margin-bottom: 32px;
    }

    .p-column-detail-section-text h2 {
        font-size: 1.8rem;
        padding: 12px 16px;
        margin: 36px 0 18px;
    }

    .p-column-detail-eyecatch {
        padding-inline: 0;
    }

    .p-column-detail-eyecatch-img,
    .c-noimage-placeholder--hero {
        border-radius: 0;
    }

    .p-column-detail-section-text h3 {
        font-size: 1.6rem;
    }

    .p-column-detail-section-text p,
    .p-column-detail-section-text ul,
    .p-column-detail-section-text aside p {
        font-size: 1.4rem;
    }

    .p-column-detail-section-text blockquote {
        padding: 16px 20px;
    }

    .p-column-detail-section-text blockquote p {
        font-size: 1.4rem;
    }

    .p-column-detail-nav {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 30px;
        margin-bottom: 30px;
        margin-top: 48px;
    }

    .p-column-detail-nav-item {
        width: 100%;
    }

    .p-column-detail-nav-item.-next {
        text-align: left;
    }

    .p-column-detail-nav-item.-next a {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
}