/* ==========================================================================
   Column CSS — 療育知識（COLUMN）
   ========================================================================== */

/* ===== トップページ：最新の療育知識セクション ===== */
.section-column {
    background: #fff;
    position: relative;
    z-index: 1;
}

/* ===== カードグリッド ===== */
.column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.column-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.column-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.column-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.column-card-image {
    overflow: hidden;
    background: #f5f5f5;
}

.column-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.column-card:hover .column-card-image img {
    transform: scale(1.08);
}

.column-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.column-card-image--placeholder img {
    width: 50%;
    height: auto;
    object-fit: contain;
    opacity: 0.35;
}

.column-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.column-card-date {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ff6600;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.column-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 12px;
}

.column-card-excerpt {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 16px;
    flex: 1;
}

.column-card-more {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff6600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.column-card-more::after {
    content: '→';
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: transform 0.25s ease;
}

.column-card:hover .column-card-more::after {
    transform: translateX(4px);
}

/* ===== 一覧を見るボタン ===== */
.column-button-wrap {
    text-align: center;
    margin-top: 48px;
}

.column-more-btn {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: #ff6600;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.3);
}

.column-more-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* ===== 一覧ページ ===== */
.column-archive-inner {
    max-width: 1100px;
}

.column-archive-inner .news-archive-pagination {
    margin-top: 64px;
}

/* ===== 一覧ページ：人気記事ランキング ===== */
.column-ranking-block {
    margin-bottom: 88px;
}

.column-ranking-label-ja {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.05em;
}

.column-ranking {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.column-ranking-item {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.column-ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.column-ranking-link {
    display: grid;
    grid-template-columns: 176px 1fr auto;
    align-items: center;
    gap: 24px;
    text-decoration: none;
}

.column-ranking-thumb {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 16px 0 0 16px;
}

.column-ranking-thumb img {
    width: 100%;
    height: 108px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.column-ranking-item:hover .column-ranking-thumb img {
    transform: scale(1.08);
}

.column-ranking-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.column-ranking-thumb--placeholder img {
    width: 50%;
    height: 108px;
    object-fit: contain;
    opacity: 0.35;
}

.column-ranking-rank {
    position: absolute;
    top: -14px;
    left: -14px;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.4s ease;
}

.column-ranking-rank-num {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.column-ranking-item:hover .column-ranking-rank {
    transform: scale(1.08);
}

/* 1位のみ王冠 */
.column-ranking-crown {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%) rotate(-8deg);
    width: 24px;
    height: 15px;
    fill: #ff6600;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

/* 順位バッジ：全順位ブランドカラー */
.column-ranking-rank--1,
.column-ranking-rank--2,
.column-ranking-rank--3,
.column-ranking-rank--4 {
    background: linear-gradient(140deg, #ff9c5c 0%, #ff6600 100%);
    color: #fff;
}

/* 1位のカードだけ影をわずかに強める */
.column-ranking-item--1 {
    box-shadow: 0 6px 24px rgba(255, 102, 0, 0.18);
}

.column-ranking-item--1:hover {
    box-shadow: 0 18px 36px rgba(255, 102, 0, 0.24);
}

.column-ranking-body {
    padding: 16px 0;
    min-width: 0;
}

.column-ranking-date {
    display: block;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ff6600;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.column-ranking-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0;
}

.column-ranking-arrow {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ff6600;
    padding-right: 28px;
    transition: transform 0.25s ease;
}

.column-ranking-item:hover .column-ranking-arrow {
    transform: translateX(4px);
}

/* ===== 記事詳細：アイキャッチ ===== */
.single-eyecatch {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.single-eyecatch img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 記事詳細：H3見出しアクセント（コラム記事のみ） ===== */
.single-content--column .single-body h3 {
    position: relative;
    padding-left: 22px;
}

.single-content--column .single-body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 12px;
    height: 12px;
    border: 3px solid #ff6600;
    border-radius: 50%;
}

/* ===== 記事詳細：記事下CTA ===== */
.column-cta {
    background: #ff6600;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 48px;
}

.column-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.6;
}

.column-cta-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 24px;
}

.column-cta-btn {
    display: inline-block;
    background: #fff;
    color: #ff6600;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.column-cta-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 768px) {
    .column-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 360px;
    }

    .column-card-image img {
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .column-card-image--placeholder {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .column-card-body {
        padding: 20px;
    }

    .column-card-title {
        font-size: 1rem;
    }

    .column-button-wrap {
        margin-top: 40px;
    }

    .column-more-btn {
        padding: 12px 32px;
        font-size: 0.8rem;
    }

    .column-archive-inner .news-archive-pagination {
        margin-top: 48px;
    }

    .column-ranking-block {
        margin-bottom: 64px;
    }

    .column-ranking {
        gap: 14px;
    }

    .column-ranking-link {
        grid-template-columns: 116px 1fr;
        gap: 16px;
    }

    .column-ranking-thumb img,
    .column-ranking-thumb--placeholder img {
        height: 92px;
    }

    .column-ranking-rank {
        top: -11px;
        left: -11px;
        width: 42px;
        height: 42px;
        box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0, 0, 0, 0.18);
    }

    .column-ranking-rank-num {
        font-size: 0.95rem;
    }

    .column-ranking-crown {
        top: -10px;
        width: 19px;
        height: 12px;
    }

    .column-ranking-body {
        padding: 14px 16px 14px 0;
    }

    .column-ranking-date {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .column-ranking-title {
        font-size: 0.95rem;
    }

    .column-ranking-arrow {
        display: none;
    }

    .single-eyecatch {
        margin-bottom: 32px;
    }

    .column-cta {
        padding: 36px 24px;
        margin-bottom: 40px;
    }

    .column-cta-title {
        font-size: 1.1rem;
    }

    .column-cta-btn {
        font-size: 0.9rem;
        padding: 14px 40px;
    }
}
