/* ==========================================================================
   article.css
   Article detail page styles
   ========================================================================== */

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

/* ==========================================================================
   Article Main
   ========================================================================== */
.article_main {

    /* ---------- Hero ---------- */
    & .article_detail_hero_section {
        position: relative;
        min-height: 488px;
        padding: 80px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #ffffff;
        background:
            linear-gradient(135deg, rgba(2, 83, 110, 0.85) 0%, rgba(4, 134, 177, 0.75) 100%),
            linear-gradient(135deg, #6c8aa0 0%, #2e4f63 60%, #1d3344 100%);
        background-size: cover;
        background-position: center;
        overflow: hidden;

        @media screen and (max-width: 768px) {
            min-height: 320px;
            padding: 60px 16px;
        }

        & .article_detail_hero_overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 24, 42, 0.25);
            pointer-events: none;
        }

        & .article_detail_hero_inner {
            position: relative;
            max-width: 1100px;
            margin: 0 auto;
        }

        & .article_detail_hero_lead {
            margin: 0 0 16px;
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: 0.05em;
            opacity: 0.95;

            @media screen and (max-width: 768px) {
                font-size: 0.85rem;
            }
        }

        & .article_detail_hero_title {
            margin: 0;
            font-size: 2.2rem;
            font-weight: 700;
            line-height: 1.5;
            letter-spacing: 0.02em;

            @media screen and (max-width: 1024px) {
                font-size: 1.8rem;
            }

            @media screen and (max-width: 768px) {
                font-size: 1.3rem;
                line-height: 1.6;
            }
        }
    }

    /* ---------- Article Detail ---------- */
    & .article_detail_section {
        padding: 60px 20px 80px;
        background-color: #ffffff;

        @media screen and (max-width: 768px) {
            padding: 40px 16px 56px;
        }

        & .article_detail_body {
            max-width: 840px;
            margin: 0 auto;

            & p {
                margin: 0 0 24px;
                font-size: 0.95rem;
                line-height: 1.95;
                color: #333333;

                @media screen and (max-width: 768px) {
                    font-size: 0.9rem;
                    line-height: 1.85;
                }
            }
        }

        & .article_detail_intro {
            padding: 32px 36px;
            margin-bottom: 48px;
            background-color: #f4f7fa;
            border-left: 4px solid #0486b1;
            border-radius: 4px;

            @media screen and (max-width: 768px) {
                padding: 24px 20px;
                margin-bottom: 32px;
            }

            & p {
                margin: 0 0 16px;

                &:last-child {
                    margin-bottom: 0;
                }
            }

            & .article_detail_intro_strong {
                margin: 0 0 16px;
                font-size: 1.1rem;
                font-weight: 700;
                color: #0486b1;
                line-height: 1.5;

                @media screen and (max-width: 768px) {
                    font-size: 1rem;
                }
            }
        }

        & .article_detail_summary {
            margin-top: 56px;
            margin-bottom: 0;

            @media screen and (max-width: 768px) {
                margin-top: 40px;
            }
        }

        & .article_detail_h2 {
            margin: 56px 0 24px;
            padding-bottom: 16px;
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.5;
            color: #333333;
            border-bottom: 2px solid #0486b1;

            @media screen and (max-width: 768px) {
                margin: 40px 0 20px;
                font-size: 1.15rem;
                padding-bottom: 12px;
            }
        }

        & .article_detail_h3 {
            position: relative;
            margin: 32px 0 16px;
            padding-left: 16px;
            font-size: 1.15rem;
            font-weight: 700;
            line-height: 1.5;
            color: #333333;
            border-left: 4px solid #0486b1;

            @media screen and (max-width: 768px) {
                font-size: 1rem;
                margin: 24px 0 12px;
                padding-left: 12px;
            }
        }

        & .article_detail_list {
            margin: 0 0 24px;
            padding: 0 0 0 1.5em;

            & li {
                margin-bottom: 10px;
                font-size: 0.95rem;
                line-height: 1.9;
                color: #333333;

                @media screen and (max-width: 768px) {
                    font-size: 0.9rem;
                }

                & strong {
                    color: #0486b1;
                    font-weight: 700;
                }
            }
        }

        & .article_detail_olist {
            margin: 0 0 24px;
            padding: 0 0 0 1.5em;

            & li {
                margin-bottom: 16px;
                font-size: 0.95rem;
                line-height: 1.9;
                color: #333333;

                @media screen and (max-width: 768px) {
                    font-size: 0.9rem;
                }

                & strong {
                    display: inline-block;
                    margin-bottom: 4px;
                    color: #0486b1;
                    font-weight: 700;
                    font-size: 1rem;

                    @media screen and (max-width: 768px) {
                        font-size: 0.95rem;
                    }
                }
            }
        }
    }

    /* ---------- Features Section ---------- */
    & .article_features_section {
        padding: 80px 20px;
        background-color: #f4f7fa;

        @media screen and (max-width: 768px) {
            padding: 56px 16px;
        }

        & .article_features_inner {
            max-width: 1100px;
            margin: 0 auto;
        }

        & .article_features_heading {
            position: relative;
            margin-bottom: 48px;
            padding-bottom: 20px;
            text-align: center;

            @media screen and (max-width: 768px) {
                margin-bottom: 32px;
            }

            & h2 {
                margin: 0;
                font-size: 1.6rem;
                font-weight: 700;
                color: #333333;

                @media screen and (max-width: 768px) {
                    font-size: 1.25rem;
                }
            }

            & .article_features_heading_bar {
                position: absolute;
                left: 50%;
                bottom: 0;
                display: block;
                width: 60px;
                height: 4px;
                margin-left: -30px;
                background-color: #0486b1;
                border-radius: 2px;
            }
        }

        & .article_features_list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin: 0;
            padding: 0;
            list-style: none;

            @media screen and (max-width: 1024px) {
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
            }

            @media screen and (max-width: 600px) {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        & .article_feature_card {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 44px 32px 36px;
            background-color: #ffffff;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            text-align: center;
            transition: transform 0.25s ease, box-shadow 0.25s ease;

            @media screen and (max-width: 768px) {
                padding: 32px 24px 28px;
            }

            &:hover {
                transform: translateY(-4px);
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            }
        }

        & .article_feature_icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 80px;
            height: 80px;
            margin-bottom: 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0486b1 0%, #02536e 100%);
            box-shadow: 0 6px 14px rgba(4, 134, 177, 0.25);

            & .material-icons {
                font-size: 40px;
                color: #ffffff;
            }
        }

        & .article_feature_title {
            margin: 0 0 16px;
            font-size: 1.15rem;
            font-weight: 700;
            color: #333333;

            @media screen and (max-width: 768px) {
                font-size: 1.05rem;
            }
        }

        & .article_feature_desc {
            margin: 0;
            font-size: 0.9rem;
            line-height: 1.85;
            color: #666666;
            text-align: left;
        }
    }

    /* ---------- Bottom CTA ---------- */
    & .article_cta_section {
        padding: 64px 20px;
        background-color: #0486b1;
        color: #ffffff;
        text-align: center;

        @media screen and (max-width: 768px) {
            padding: 48px 16px;
        }

        & .article_cta_inner {
            max-width: 1100px;
            margin: 0 auto;
        }

        & .article_cta_title {
            margin: 0 0 16px;
            font-size: 1.6rem;
            font-weight: 700;
            line-height: 1.5;

            @media screen and (max-width: 768px) {
                font-size: 1.2rem;
            }
        }

        & .article_cta_lead {
            margin: 0 0 32px;
            font-size: 0.95rem;
            opacity: 0.95;

            @media screen and (max-width: 768px) {
                font-size: 0.85rem;
            }
        }

        & .article_cta_actions {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        & .article_cta_btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 240px;
            height: 60px;
            padding: 0 32px;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 700;
            text-decoration: none;
            transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;

            @media screen and (max-width: 480px) {
                min-width: 100%;
            }

            &:hover {
                opacity: 0.9;
            }

            &.article_cta_btn_primary {
                background-color: #ff9800;
                color: #ffffff;
            }

            &.article_cta_btn_outline {
                background-color: #ffffff;
                color: #0486b1;
                border: 1px solid #ffffff;
            }
        }
    }
}
