/* ==========================================================================
   partner.css
   Partner program 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;
}

/* ==========================================================================
   Common (Section heading / Buttons)
   ========================================================================== */
.partner_main {

    /* ---------- Section heading ---------- */
    & .partner_section_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.8rem;
            font-weight: 700;
            line-height: 1.5;
            color: #333333;

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

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

        &.partner_section_heading_left {
            text-align: left;

            & .partner_section_heading_bar {
                left: 0;
                margin-left: 0;
            }
        }
    }

    /* ---------- Buttons ---------- */
    & .partner_btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 60px;
        padding: 0 28px;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        border-radius: 30px;
        transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;

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

        &:hover {
            opacity: 0.9;
        }

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

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

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

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

    /* ==========================================================================
       Hero
       ========================================================================== */
    & .partner_hero_section {
        position: relative;
        padding: 100px 20px;
        /* background-image:
            linear-gradient(135deg, rgba(2, 83, 110, 0.85) 0%, rgba(4, 134, 177, 0.7) 100%),
            url('../images/partner_page/bg_partner_main_top_pc.png');
         */
        background-image: linear-gradient(135deg, #083168, #19a0a1);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #ffffff;

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

        & .partner_hero_inner {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;

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

        & .partner_hero_label {
            display: inline-block;
            padding: 8px 18px;
            margin-bottom: 24px;
            font-size: 0.85rem;
            font-weight: 500;
            border: 1px solid rgba(255, 255, 255, 0.7);
            border-radius: 4px;

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

        & .partner_hero_title {
            margin: 0 0 24px;
            font-size: 2.6rem;
            font-weight: 700;
            line-height: 1.4;
            letter-spacing: 0.02em;

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

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

        & .partner_hero_lead {
            margin: 0 0 32px;
            font-size: 1rem;
            line-height: 1.9;
            opacity: 0.95;

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

        & .partner_hero_actions {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        & .partner_hero_image {
            & img {
                width: 100%;
                max-width: 500px;
                margin: 0 auto;
                border-radius: 8px;
                box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
            }
        }
    }

    /* ==========================================================================
       Partnership Types
       ========================================================================== */
    & .partner_types_section {
        padding: 80px 20px;
        background-color: #ffffff;

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

        & .partner_types_inner {
            max-width: 1200px;
            margin: 0 auto;
        }

        & .partner_type_list {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin: 0 0 56px;
            padding: 0;
            list-style: none;

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

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

        & .partner_type_card {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 32px 24px 28px;
            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;

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

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

                & img {
                    width: 36px;
                    height: 36px;
                    object-fit: contain;
                    filter: brightness(0) invert(1);
                }
            }

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

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

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

        /* ---------- Comparison Table ---------- */
        & .partner_table_title {
            margin: 0 0 24px;
            font-size: 1.3rem;
            font-weight: 700;
            color: #333333;
            text-align: center;

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

        & .partner_table_wrap {
            overflow-x: auto;
            border-radius: 8px;
            border: 1px solid #e0e6ec;

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

        & .partner_table {
            width: 100%;
            min-width: 880px;
            border-collapse: collapse;
            background-color: #ffffff;

            & thead th {
                padding: 18px 16px;
                font-size: 0.95rem;
                font-weight: 700;
                background-color: #0486b1;
                color: #ffffff;
                text-align: center;
                border-right: 1px solid rgba(255, 255, 255, 0.2);

                &:last-child {
                    border-right: none;
                }
            }

            & tbody {
                & tr {
                    border-top: 1px solid #e0e6ec;

                    &:nth-child(odd) {
                        background-color: #f9fbfd;
                    }
                }

                & th {
                    padding: 18px 16px;
                    font-size: 0.9rem;
                    font-weight: 700;
                    background-color: #f4f7fa;
                    color: #333333;
                    text-align: center;
                    border-right: 1px solid #e0e6ec;
                    width: 18%;
                }

                & td {
                    padding: 18px 16px;
                    font-size: 0.9rem;
                    line-height: 1.7;
                    color: #333333;
                    text-align: center;
                    border-right: 1px solid #e0e6ec;
                    vertical-align: middle;

                    &:last-child {
                        border-right: none;
                    }
                }
            }
        }
    }

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

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

        & .partner_diagram_inner {
            max-width: 1200px;
            margin: 0 auto;
        }

        & .partner_diagram_box {
            padding: 48px;
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);

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

        & .partner_diagram_flow {
            display: grid;
            grid-template-columns: 1fr auto 1.1fr auto 1fr;
            gap: 16px;
            align-items: center;

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

        & .partner_diagram_card {
            padding: 32px 20px;
            background-color: #f4f7fa;
            border-radius: 8px;
            text-align: center;

            &.partner_diagram_card_center {
                background: linear-gradient(135deg, #0486b1 0%, #02536e 100%);
                color: #ffffff;
                transform: translateY(-4px);

                @media screen and (max-width: 1024px) {
                    transform: none;
                }

                & .partner_diagram_card_title,
                & .partner_diagram_card_desc {
                    color: #ffffff;
                }
            }

            & .partner_diagram_icon {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 64px;
                height: 64px;
                margin: 0 auto 16px;
                border-radius: 50%;
                background-color: #ffffff;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

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

                &.partner_diagram_icon_brand {
                    & img {
                        width: 36px;
                        height: 36px;
                        object-fit: contain;
                    }
                }
            }

            & .partner_diagram_card_title {
                margin: 0 0 8px;
                font-size: 1.1rem;
                font-weight: 700;
                color: #333333;
            }

            & .partner_diagram_card_desc {
                margin: 0;
                font-size: 0.85rem;
                line-height: 1.7;
                color: #666666;
            }
        }

        & .partner_diagram_arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #0486b1;

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

            @media screen and (max-width: 1024px) {
                transform: rotate(90deg);
            }
        }

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

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

    /* ==========================================================================
       Challenges Section
       ========================================================================== */
    & .partner_challenges_section {
        padding: 80px 20px;
        background-color: #ffffff;

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

        & .partner_challenges_inner {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;

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

        & .partner_challenges_lead {
            margin: 0 0 24px;
            font-size: 1.05rem;
            line-height: 1.8;
            color: #333333;
            font-weight: 500;

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

        & .partner_challenges_list {
            margin: 0 0 24px;
            padding: 0;
            list-style: none;

            & li {
                display: flex;
                align-items: flex-start;
                gap: 14px;
                padding: 16px 0;
                font-size: 0.95rem;
                line-height: 1.8;
                color: #333333;
                border-bottom: 1px dashed #d8e0e6;

                &:last-child {
                    border-bottom: none;
                }

                & .material-icons {
                    flex-shrink: 0;
                    margin-top: 2px;
                    font-size: 22px;
                    color: #ff9800;
                }

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

        & .partner_challenges_note {
            margin: 0;
            padding: 20px;
            font-size: 0.9rem;
            line-height: 1.85;
            color: #555555;
            background-color: #f4f7fa;
            border-left: 4px solid #0486b1;
            border-radius: 4px;

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

        & .partner_challenges_image {
            & img {
                width: 100%;
                border-radius: 8px;
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            }
        }
    }

    /* ==========================================================================
       Mid CTA
       ========================================================================== */
    & .partner_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;
        }

        & .partner_mid_cta_inner {
            max-width: 1200px;
            margin: 0 auto;
        }

        & .partner_mid_cta_title {
            margin: 0 0 16px;
            font-size: 1.6rem;
            font-weight: 700;

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

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

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

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

    /* ==========================================================================
       Features Section
       ========================================================================== */
    & .partner_features_section {
        padding: 80px 20px;
        background-color: #ffffff;

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

        & .partner_features_inner {
            max-width: 1200px;
            margin: 0 auto;
        }

        & .partner_feature_row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
            margin-bottom: 60px;

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

            @media screen and (max-width: 1024px) {
                grid-template-columns: 1fr;
                gap: 24px;
                margin-bottom: 48px;
            }

            &.partner_feature_row_reverse {
                & .partner_feature_image {
                    order: 2;

                    @media screen and (max-width: 1024px) {
                        order: 0;
                    }
                }

                & .partner_feature_text {
                    order: 1;

                    @media screen and (max-width: 1024px) {
                        order: 0;
                    }
                }
            }
        }

        & .partner_feature_image {
            & img {
                width: 100%;
                border-radius: 8px;
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            }
        }

        & .partner_feature_title {
            margin: 0 0 20px;
            font-size: 1.4rem;
            font-weight: 700;
            line-height: 1.5;
            color: #333333;

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

        & .partner_feature_text {
            & p {
                margin: 0 0 20px;
                font-size: 0.95rem;
                line-height: 1.9;
                color: #555555;

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

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

            & li {
                display: flex;
                align-items: flex-start;
                gap: 10px;
                margin-bottom: 10px;
                font-size: 0.95rem;
                line-height: 1.7;
                color: #333333;

                & .material-icons {
                    flex-shrink: 0;
                    margin-top: 2px;
                    font-size: 20px;
                    color: #0486b1;
                }

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

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

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

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

        & .partner_faq_list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        & .partner_faq_item {
            background-color: #ffffff;
            border: 1px solid #e0e6ec;
            border-radius: 8px;
            overflow: hidden;
            transition: box-shadow 0.2s ease;

            &[open] {
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);

                & summary::after {
                    transform: rotate(180deg);
                }
            }

            & summary {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 20px 56px 20px 24px;
                position: relative;
                font-size: 1rem;
                font-weight: 700;
                color: #333333;
                cursor: pointer;
                list-style: none;
                line-height: 1.6;

                &::-webkit-details-marker {
                    display: none;
                }

                &::before {
                    content: 'Q';
                    flex-shrink: 0;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 28px;
                    height: 28px;
                    font-family: 'Inter', sans-serif;
                    font-size: 0.9rem;
                    font-weight: 700;
                    color: #ffffff;
                    background-color: #0486b1;
                    border-radius: 50%;
                }

                &::after {
                    content: '';
                    position: absolute;
                    right: 24px;
                    top: 50%;
                    width: 12px;
                    height: 12px;
                    margin-top: -8px;
                    border-right: 2px solid #0486b1;
                    border-bottom: 2px solid #0486b1;
                    transform: rotate(45deg);
                    transition: transform 0.2s ease;
                }

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

            & .partner_faq_body {
                padding: 0 24px 20px 64px;
                font-size: 0.9rem;
                line-height: 1.85;
                color: #555555;

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

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

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

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

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

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

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

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

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

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

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