/* ==========================================================================
   caseStudy_list.css
   Case Study list 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.7;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

/* ==========================================================================
   Case Main
   ========================================================================== */
.case_main {

    /* ---------- Section heading ---------- */
    & .case_section_heading {
        margin-bottom: 40px;
        text-align: center;

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

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

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

    /* ---------- Buttons (Mid CTA) ---------- */
    & .case_btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 56px;
        padding: 0 28px;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        border-radius: 28px;
        transition: opacity 0.2s ease;

        & .material-icons {
            font-size: 20px;
        }

        &:hover {
            opacity: 0.9;
        }

        &.case_btn_primary {
            background-color: #ff9800;
            color: #ffffff;
            border: 1px solid #ff9800;
        }

        &.case_btn_outline_white {
            background-color: transparent;
            color: #ffffff;
            border: 1px solid #ffffff;
        }

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

    /* ==========================================================================
       Hero
       ========================================================================== */
    & .case_hero_section {
        position: relative;
        padding: 80px 20px;
        background: linear-gradient(135deg, #02536e 0%, #0486b1 60%, #4ab1d6 100%);
        color: #ffffff;
        text-align: center;
        overflow: hidden;

        &::before {
            content: '';
            position: absolute;
            top: -100px;
            right: -100px;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
            pointer-events: none;
        }

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

        & .case_hero_inner {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
        }

        & .case_hero_label {
            display: inline-block;
            padding: 6px 18px;
            margin-bottom: 28px;
            font-size: 0.85rem;
            font-weight: 500;
            border: 1px solid rgba(255, 255, 255, 0.7);
            border-radius: 20px;

            @media screen and (max-width: 768px) {
                font-size: 0.75rem;
                padding: 4px 14px;
                margin-bottom: 20px;
            }
        }

        & .case_hero_title {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin: 0 0 24px;
            font-weight: 700;
            line-height: 1.4;

            & .case_hero_title_sub {
                font-size: 1.6rem;

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

            & .case_hero_title_main {
                font-size: 2.4rem;
                letter-spacing: 0.02em;

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

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

        & .case_hero_caption {
            margin: 0;
            font-size: 1rem;
            opacity: 0.9;

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

    /* ==========================================================================
       Case List Section
       ========================================================================== */
    & .case_list_section {
        padding: 80px 20px;
        background-color: #ffffff;

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

        & .case_list_inner {
            max-width: 1000px;
            margin: 0 auto;
        }

        & .case_card_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;
            }
        }

        & .case_card {
            display: flex;
            flex-direction: column;
            background-color: #ffffff;
            border: 1px solid #e0e6ec;
            border-radius: 8px;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            height: 100%;

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

        & .case_card_thumb {
            display: flex;
            align-items: center;
            justify-content: center;
            aspect-ratio: 313 / 176;
            overflow: hidden;
            background: linear-gradient(135deg, #e8f1f6 0%, #d3e2eb 100%);
            border-bottom: 1px solid #e0e6ec;

            & .material-icons {
                font-size: 56px;
                color: #a0b6c5;
            }

            & img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
                display: block;
            }
        }

        & .case_card_body {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            padding: 20px;
        }

        & .case_card_tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }

        & .case_card_tag {
            display: inline-block;
            padding: 4px 10px;
            font-size: 0.75rem;
            font-weight: 500;
            color: #0486b1;
            background-color: #e8f1f6;
            border-radius: 4px;
        }

        & .case_card_title {
            margin: 0 0 16px;
            font-size: 1rem;
            font-weight: 700;
            line-height: 1.55;
            color: #333333;
            flex-grow: 1;

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

        & .case_card_meta {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            color: #666666;

            & .material-icons {
                font-size: 16px;
                color: #888888;
            }
        }
    }

    /* ==========================================================================
       Solution Section
       ========================================================================== */
    & .case_solution_section {
        padding: 80px 20px;
        background-color: #f4f7fa;

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

        & .case_solution_inner {
            max-width: 1000px;
            margin: 0 auto;
        }

        & .case_solution_lead {
            margin: 0 0 40px;
            font-size: 0.95rem;
            text-align: center;
            color: #555555;

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

        & .case_solution_list {
            margin: 0;
            padding: 0;
            list-style: none;

            & li {
                display: flex;
                align-items: center;
                gap: 30px;
                padding: 24px 30px;
                background-color: #ffffff;
                border: 1px solid #e0e6ec;
                border-radius: 8px;
                margin-bottom: 16px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);

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

                @media screen and (max-width: 768px) {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 16px;
                    padding: 20px;
                }
            }
        }

        & .case_solution_icon {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0486b1 0%, #02536e 100%);

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

        & .case_solution_text {
            & h3 {
                margin: 0 0 8px;
                font-size: 1.1rem;
                font-weight: 700;
                color: #0486b1;

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

            & p {
                margin: 0;
                font-size: 0.9rem;
                line-height: 1.85;
                color: #555555;

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

    /* ==========================================================================
       Middle CTA
       ========================================================================== */
    & .case_mid_cta_section {
        padding: 60px 20px;
        background: linear-gradient(135deg, #02536e 0%, #0486b1 100%);
        color: #ffffff;
        text-align: center;

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

        & .case_mid_cta_inner {
            max-width: 1000px;
            margin: 0 auto;
        }

        & .case_mid_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.15rem;
            }
        }

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

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

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

    /* ==========================================================================
       Features Section
       ========================================================================== */
    & .case_features_section {
        padding: 80px 20px;
        background-color: #0486b1;

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

        & .case_features_inner {
            max-width: 1000px;
            margin: 0 auto;
        }

        & .case_section_heading {
            & h2 {
                color: #ffffff;
            }
        }

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

            @media screen and (max-width: 1024px) {
                gap: 20px;
            }

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

        & .case_feature_card {
            padding: 36px 24px;
            background-color: #ffffff;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        }

        & .case_feature_icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 64px;
            height: 64px;
            margin: 0 auto 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0486b1 0%, #02536e 100%);

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

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

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

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

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

    /* ==========================================================================
       Bottom CTA
       ========================================================================== */
    & .case_cta_section {
        padding: 64px 20px;
        background-color: #02536e;
        color: #ffffff;
        text-align: center;

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

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

        & .case_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;
            }
        }

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

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

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

        & .case_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;

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

            &:hover {
                opacity: 0.9;
            }

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

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