@charset "UTF-8";

/* ===================================
   コラム詳細 ヒーロー (Hero)
   =================================== */
.cd-hero {
    width: 100%;
    background-color: #9fd9f6;
    padding: 50px 20px 40px;
}

.cd-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* パンくずリスト */
.cd-breadcrumb {
    font-size: 12px;
    color: #516881;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.cd-breadcrumb a {
    color: #516881;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.cd-breadcrumb a:hover {
    opacity: 0.7;
}

.cd-bc-sep {
    color: #88b8cc;
    margin: 0 2px;
}

/* ヒーロー本文 */
.cd-hero-body {
    display: flex;
    align-items: center;
    gap: 40px;
}

.cd-hero-left {
    flex: 1;
    min-width: 0;
}

.cd-hero-left .column-tag {
    margin-bottom: 14px;
    display: inline-block;
}

.cd-hero-title {
    font-size: 28px;
    font-weight: bold;
    color: #1e3a5a;
    line-height: 1.5;
    margin: 0 0 18px;
    letter-spacing: 0.04em;
}

.cd-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cd-meta-date {
    font-size: 13px;
    color: #516881;
}

.cd-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid #88b8cc;
    text-decoration: none;
}
.cd-meta-author:hover .cd-meta-author-name {
    text-decoration: underline;
}
.cd-meta-author-photo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.cd-meta-author-name {
    font-size: 13px;
    color: #516881;
}

/* サムネイル */
.cd-hero-right {
    flex-shrink: 0;
}

.cd-hero-thumb {
    width: 280px;
    height: 190px;
    border-radius: 16px;
    background-color: #30b9bf;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 rgba(81, 104, 129, 0.25);
    overflow: hidden;
}

.cd-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.cd-thumb-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.75);
}

/* ===================================
   記事本文 (Article)
   =================================== */
.cd-article {
    width: 100%;
    background-color: #fff;
    padding: 60px 20px 70px;
}

.cd-article-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* リード文 */
.cd-lead {
    font-size: 16px;
    line-height: 2;
    color: #444;
    border-left: 4px solid #9fd9f6;
    padding-left: 20px;
    margin: 0 0 40px;
}

/* 見出し */
.cd-h3 {
    font-size: 18px;
    font-weight: bold;
    color: #1e3a5a;
    border-left: 4px solid #30b9bf;
    padding: 4px 0 4px 14px;
    margin: 44px 0 18px;
    line-height: 1.5;
}

/* 本文段落 */
.cd-p {
    font-size: 15px;
    line-height: 2;
    color: #444;
    margin: 0 0 20px;
}

/* 画像エリア */
.cd-figure {
    float: right;
    width: 38%;
    margin: 4px 0 24px 32px;
    clear: right;
}

.cd-figure img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.cd-fig-placeholder {
    width: 100%;
    height: 220px;
    background-color: #d9f0fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.15em;
    color: rgba(81, 104, 129, 0.5);
}

.cd-figcaption {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 8px;
    line-height: 1.6;
}

/* STEPの大きい画像 */
.cd-figure--step {
    float: none;
    width: 100%;
    margin: 32px 0 0;
    clear: both;
}

.cd-figure--step img {
    max-height: 440px;
}

/* float解除 */
.cd-article-inner::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 720px) {
    .cd-figure {
        float: none;
        width: 100%;
        margin: 24px 0;
    }
}

/* 引用 */
.cd-quote {
    margin: 36px 0;
    padding: 24px 28px;
    background-color: #f0f9fe;
    border-left: 4px solid #9fd9f6;
    border-radius: 0 12px 12px 0;
    font-size: 15px;
    line-height: 2;
    color: #444;
    font-style: italic;
}

.cd-cite {
    display: block;
    font-size: 13px;
    color: #888;
    font-style: normal;
    margin-top: 12px;
}

/* まとめボックス */
.cd-summary-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: #f5f29f;
    border-radius: 14px;
    padding: 24px 28px;
    margin: 44px 0 0;
    box-shadow: 4px 4px 0 rgba(137, 135, 135, 0.3);
}

.cd-summary-icon img {
    width: 44px;
    flex-shrink: 0;
}

.cd-summary-title {
    font-size: 14px;
    font-weight: bold;
    color: #1e3a5a;
    margin: 0 0 10px;
}

.cd-summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cd-summary-list li {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    padding-left: 18px;
    position: relative;
}

.cd-summary-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #30b9bf;
    font-weight: bold;
}

/* 著者・戻るボタン行 */
.cd-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #e8f5fd;
}

.cd-author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.cd-author:hover .cd-author-name {
    text-decoration: underline;
}

.cd-author-icon img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.cd-author-label {
    font-size: 11px;
    color: #aaa;
    display: block;
    margin-bottom: 2px;
}

.cd-author-name {
    font-size: 14px;
    font-weight: bold;
    color: #516881;
}

.cd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #516881;
    border: 2px solid #9fd9f6;
    border-radius: 22px;
    padding: 8px 20px;
    transition: background-color 0.2s, color 0.2s;
}

.cd-back-btn:hover {
    background-color: #9fd9f6;
    color: #1e3a5a;
    opacity: 1;
}

/* ===================================
   関連コラム (Related)
   =================================== */
.cd-related {
    width: 100%;
    background-color: #9fd9f6;
    padding: 60px 20px 70px;
}

.cd-related-inner {
    max-width: 900px;
    margin: 0 auto;
}

.cd-related-heading {
    font-size: 20px;
    font-weight: bold;
    color: #1e3a5a;
    margin: 0 0 28px;
    letter-spacing: 0.05em;
}

.cd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cd-related-card {
    background-color: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 4px 4px 0 rgba(81, 104, 129, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    color: inherit;
}

.cd-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 4px 8px 0 rgba(81, 104, 129, 0.25);
    opacity: 1;
}

.cd-related-thumb {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cd-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cd-related-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.cd-related-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cd-related-date {
    font-size: 11px;
    color: #aaa;
    margin-top: auto;
}

/* ===================================
   大見出し (cd-h2)
   =================================== */
.cd-h2 {
    font-size: 21px;
    font-weight: bold;
    color: #1e3a5a;
    background: linear-gradient(to right, #e4f4fb, transparent);
    border-left: 5px solid #30b9bf;
    padding: 10px 0 10px 16px;
    margin: 56px 0 20px;
    line-height: 1.5;
}

/* ===================================
   STEP カード
   =================================== */
.cd-step {
    border: 1.5px solid #e0eef7;
    border-radius: 14px;
    overflow: hidden;
    margin: 32px 0;
}

.cd-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: #fff;
}

.cd-step-header--1 { background-color: #FF6B4A; }
.cd-step-header--2 { background-color: #30b9bf; }
.cd-step-header--3 { background-color: #fe4c7f; }
.cd-step-header--4 { background-color: #516881; }

.cd-step-num {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.15em;
    opacity: 0.85;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
}

.cd-step-en {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.05em;
    font-family: 'Roboto', sans-serif;
}

.cd-step-ja {
    font-size: 13px;
    opacity: 0.88;
}

.cd-step-body {
    padding: 24px 24px 20px;
    background: #fff;
}

/* ===================================
   ノート／コールアウトボックス
   =================================== */
.cd-note {
    margin: 28px 0;
    padding: 18px 22px;
    background-color: #f5fbff;
    border: 1.5px solid #c8e9f7;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.9;
    color: #444;
}

.cd-note-label {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.12em;
    background-color: #30b9bf;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.cd-callout {
    margin: 28px 0;
    padding: 20px 24px;
    background-color: #fffdf0;
    border: 1.5px solid #f5e98a;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.9;
    color: #444;
}

.cd-callout-label {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.12em;
    background-color: #f5c400;
    color: #1e3a5a;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ===================================
   テーブル
   =================================== */
.cd-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 10px;
    border: 1.5px solid #d9eaf4;
}

.cd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 480px;
}

.cd-table thead th {
    background-color: #516881;
    color: #fff;
    padding: 12px 18px;
    font-weight: bold;
    text-align: left;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.cd-table tbody tr {
    border-bottom: 1px solid #e8f5fd;
}

.cd-table tbody tr:last-child {
    border-bottom: none;
}

.cd-table tbody td {
    padding: 13px 18px;
    color: #444;
    line-height: 1.8;
    vertical-align: top;
}

.cd-table tbody td:first-child {
    font-weight: bold;
    color: #516881;
    white-space: nowrap;
    background-color: #f0f9fe;
}

.cd-table tbody tr.dmis-ethnorelative td:first-child {
    background-color: #edfafa;
    color: #30b9bf;
}

/* ===================================
   参考文献
   =================================== */
.cd-refs {
    margin: 44px 0 0;
    padding: 20px 24px;
    background-color: #f8f8f8;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.9;
}

.cd-refs-title {
    font-size: 13px;
    font-weight: bold;
    color: #516881;
    margin: 0 0 10px;
}

.cd-refs ol {
    margin: 0;
    padding-left: 20px;
}

.cd-refs li {
    list-style: decimal;
    margin-bottom: 6px;
}

/* ===================================
   記事末尾 CTA ボックス
   =================================== */
.cd-cta-box {
    margin: 48px 0 0;
    padding: 32px 32px;
    background: linear-gradient(135deg, #edfafa 0%, #f0f9fe 100%);
    border: 1.5px solid #b3e8ea;
    border-radius: 16px;
    text-align: center;
}

.cd-cta-box-title {
    font-size: 18px;
    font-weight: bold;
    color: #1e3a5a;
    margin: 0 0 10px;
}

.cd-cta-box-text {
    font-size: 14px;
    color: #555;
    line-height: 1.9;
    margin: 0 0 22px;
}

.cd-cta-box-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #30b9bf;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 32px;
    border-radius: 30px;
    transition: opacity 0.2s, transform 0.15s;
}

.cd-cta-box-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: #fff;
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 900px) {
    .cd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .cd-hero {
        padding: 36px 20px 28px;
    }

    .cd-hero-body {
        flex-direction: column-reverse;
        gap: 24px;
    }

    .cd-hero-thumb {
        width: 100%;
        height: 200px;
    }

    .cd-hero-title {
        font-size: 22px;
    }

    .cd-related-grid {
        grid-template-columns: 1fr;
    }

    .cd-footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .cd-article {
        padding: 40px 16px 50px;
    }

    .cd-lead {
        font-size: 14px;
    }

    .cd-summary-box {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .cd-related {
        padding: 40px 16px 50px;
    }
}

/* ===================================
   テーブル：スマホ縦積みレイアウト
   =================================== */
@media (max-width: 640px) {
    .cd-table-wrap {
        overflow-x: visible;
        border: none;
        border-radius: 0;
        margin: 16px 0;
    }

    .cd-table {
        min-width: 0;
        width: 100%;
    }

    .cd-table thead {
        display: none;
    }

    .cd-table tbody tr {
        display: block;
        border: 1.5px solid #d9eaf4;
        border-radius: 10px;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .cd-table tbody tr:last-child {
        border-bottom: 1.5px solid #d9eaf4;
    }

    .cd-table tbody td {
        display: flex;
        padding: 10px 14px;
        border-bottom: 1px solid #e8f5fd;
        font-size: 13px;
    }

    .cd-table tbody td:last-child {
        border-bottom: none;
    }

    .cd-table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #516881;
        font-size: 11px;
        min-width: 56px;
        margin-right: 10px;
        padding-top: 2px;
        flex-shrink: 0;
    }

    .cd-table tbody td:first-child {
        white-space: normal;
        background-color: #eaf4fb;
        font-size: 13px;
    }

    .cd-table tbody tr.dmis-ethnorelative td:first-child {
        background-color: #edfafa;
    }
}
