@charset "UTF-8";

/* ========================================
   記事内の内部リンク導線
   （あわせて読みたい／次に読む記事／記事末CTA）
======================================== */

.ms-inlineLink,
.ms-nextRead,
.ms-articleCta {
    --ms-primary: #338df4;
    --ms-primary-dark: #2670b7;
    --ms-heading: #374d59;
    --ms-border: #e0e0e0;
    --ms-bg-tint: #f2f8ff;
    --ms-text: #333;
    --ms-text-light: #666;
    --ms-radius: 8px;
}

/* ---------- あわせて読みたい（本文中） ---------- */

.ms-inlineLink {
    margin: 2.4em 0;
    padding: 14px 18px;
    background: var(--ms-bg-tint);
    border-left: 4px solid var(--ms-primary);
    border-radius: 0 var(--ms-radius) var(--ms-radius) 0;
}

.ms-inlineLink__label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ms-primary-dark);
}

.ms-inlineLink__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ms-heading);
    text-decoration: none;
}

.ms-inlineLink__body:hover .ms-inlineLink__title {
    text-decoration: underline;
}

.ms-inlineLink__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.ms-inlineLink__arrow {
    flex-shrink: 0;
    color: var(--ms-primary);
    transition: transform 0.2s ease;
}

.ms-inlineLink__body:hover .ms-inlineLink__arrow {
    transform: translateX(3px);
}

/* ---------- 次に読むならこの記事（記事末） ---------- */

.ms-nextRead {
    margin: 3.2em 0 0;
    padding-top: 1.8em;
    border-top: 1px solid var(--ms-border);
}

.ms-nextRead__heading {
    margin: 0 0 1em;
    padding: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--ms-heading);
    background: none;
    border: none;
}

.ms-nextRead__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ms-nextRead__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ms-nextRead__item::before {
    content: none;
}

.ms-nextRead__link {
    display: block;
    height: 100%;
    overflow: hidden;
    color: var(--ms-text);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ms-nextRead__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ms-nextRead__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f5;
}

.ms-nextRead__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-nextRead__title {
    display: block;
    padding: 12px 14px 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.ms-nextRead__link:hover .ms-nextRead__title {
    color: var(--ms-primary-dark);
}

/* ---------- 記事末CTA ---------- */

.ms-articleCta {
    margin: 2.4em 0 0;
    padding: 26px 24px;
    text-align: center;
    background: linear-gradient(135deg, #eaf4ff 0%, #f7fbff 100%);
    border: 1px solid #cfe4fb;
    border-radius: 12px;
}

.ms-articleCta__heading {
    margin: 0 0 8px;
    padding: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--ms-heading);
    background: none;
    border: none;
}

.ms-articleCta__lead {
    max-width: 620px;
    margin: 0 auto 18px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--ms-text-light);
}

.ms-articleCta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.ms-articleCta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ms-articleCta__btn:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.ms-articleCta__btn--primary {
    color: #fff;
    background: var(--ms-primary);
    box-shadow: 0 4px 12px rgba(51, 141, 244, 0.32);
}

.ms-articleCta__btn--primary:hover {
    background: var(--ms-primary-dark);
    box-shadow: 0 6px 18px rgba(51, 141, 244, 0.42);
}

.ms-articleCta__btn--secondary {
    color: var(--ms-primary-dark);
    background: #fff;
    border: 2px solid var(--ms-primary);
}

.ms-articleCta__btn--secondary:hover {
    box-shadow: 0 6px 18px rgba(51, 141, 244, 0.22);
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 959px) {
    .ms-nextRead__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .ms-nextRead__list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ms-nextRead__link {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .ms-nextRead__thumb {
        flex-shrink: 0;
        width: 112px;
        aspect-ratio: 4 / 3;
    }

    .ms-nextRead__title {
        padding: 10px 12px 10px 0;
        font-size: 13.5px;
    }

    .ms-articleCta {
        padding: 22px 16px;
    }

    .ms-articleCta__actions {
        flex-direction: column;
    }

    .ms-articleCta__btn {
        width: 100%;
    }
}
