/* ==========================================================================
   news_list.css
   News 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.6;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

/* ==========================================================================
   News Main
   ========================================================================== */
.news_main {

    /* ---------- Hero (NEWS) ---------- */
    & .news_hero_section {
        background: linear-gradient(180deg, #0486b1 0%, #02536e 100%);
        padding: 60px 20px;
        text-align: center;
        color: #ffffff;

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

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

        & .news_hero_title {
            margin: 0;
            font-family: 'Inter', sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            letter-spacing: 0.125em;
            line-height: 1.2;

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

        & .news_hero_subtitle {
            margin: 16px 0 0;
            font-size: 1rem;
            font-weight: 400;
            letter-spacing: 0.05em;

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

    /* ---------- News List ---------- */
    & .news_list_section {
        padding: 80px 20px;
        background-color: #ffffff;

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

        & .news_list_inner {
            max-width: 900px;
            margin: 0 auto;
        }

        & .news_list {
            margin: 0;
            padding: 0;
            list-style: none;
            border-top: 1px solid #e0e0e0;
        }

        & .news_list_item {
            display: flex;
            align-items: flex-start;
            gap: 40px;
            padding: 24px 0;
            border-bottom: 1px solid #e0e0e0;

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

        & .news_list_meta {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-shrink: 0;
            min-width: 220px;
            padding-top: 4px;

            @media screen and (max-width: 768px) {
                min-width: 0;
                padding-top: 0;
            }
        }

        & .news_list_date {
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            font-weight: 500;
            color: #333333;
            white-space: nowrap;
        }

        & .news_list_body {
            flex: 1;
            min-width: 0;
        }

        & .news_list_title {
            margin: 0 0 8px;
            font-size: 1.05rem;
            font-weight: 700;
            line-height: 1.5;

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

            & a {
                color: #333333;
                text-decoration: none;
                transition: color 0.2s ease;

                &:hover {
                    color: #0486b1;
                    text-decoration: underline;
                }
            }
        }

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

    /* ---------- Tag (Badge) ---------- */
    & .news_list_tag {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 12px;
        font-size: 0.8rem;
        font-weight: 500;
        line-height: 1.4;
        border-radius: 4px;
        white-space: nowrap;
        color: #ffffff;

        &.news_list_tag_info {
            background-color: #0486b1;
        }

        &.news_list_tag_update {
            background-color: #05ace4;
        }

        &.news_list_tag_press {
            background-color: #ff9800;
        }

        &.news_list_tag_event {
            background-color: #02536e;
        }

        &.news_list_tag_case {
            background-color: #666666;
        }
    }

    /* ---------- Article Detail (最新News) ---------- */
    & .news_article_section {
        padding: 60px 20px 80px;
        background-color: #f4f7fa;

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

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

        & .news_article_section_heading {
            margin: 0 0 32px;
            font-size: 1.4rem;
            font-weight: 700;
            text-align: center;
            color: #333333;

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

        & .news_article {
            max-width: 900px;
            margin: 0 auto;
            padding: 48px 50px;
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);

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

        & .news_article_header {
            padding-bottom: 28px;
            border-bottom: 1px solid #e0e0e0;
        }

        & .news_article_meta {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
        }

        & .news_article_date {
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            color: #666666;
        }

        & .news_article_title {
            margin: 0;
            font-size: 1.6rem;
            font-weight: 700;
            line-height: 1.5;
            color: #333333;

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

        & .news_article_body {
            padding: 32px 0 0;

            & p {
                margin: 0 0 20px;
                font-size: 0.95rem;
                line-height: 1.9;
                color: #333333;
            }
        }

        & .news_article_image_placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            aspect-ratio: 2 / 1;
            margin-bottom: 28px;
            background-color: #e9ecef;
            border-radius: 4px;

            & .news_article_image_label {
                font-size: 0.85rem;
                color: #adb5bd;
            }
        }

        & .news_article_lead {
            font-size: 1rem;
            line-height: 1.9;
        }

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

        & .news_article_footer {
            display: flex;
            justify-content: center;
            margin-top: 32px;
        }

        & .news_article_back_btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 176px;
            height: 54px;
            padding: 0 32px;
            border: 1px solid #0486b1;
            border-radius: 27px;
            color: #0486b1;
            font-size: 0.95rem;
            font-weight: 700;
            text-decoration: none;
            background-color: #ffffff;
            transition: background-color 0.2s ease, color 0.2s ease;

            &:hover {
                background-color: #0486b1;
                color: #ffffff;
            }
        }
    }

    /* ---------- Section Heading (PROBLEM / SOLUTION 共通) ---------- */
    & .news_section_heading {
        text-align: center;
        margin-bottom: 40px;

        & .news_section_heading_en {
            margin: 0 0 12px;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            color: #0486b1;
        }

        & .news_section_heading_jp {
            margin: 0;
            font-size: 1.6rem;
            font-weight: 700;
            color: #333333;
            line-height: 1.5;

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

    /* ---------- Problem Section ---------- */
    & .news_problem_section {
        padding: 80px 20px;
        background-color: #ffffff;

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

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

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

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

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

        & .news_problem_card {
            padding: 32px 20px;
            text-align: center;
            background-color: #f4f7fa;
            border-radius: 8px;
            border-top: 4px solid #0486b1;
        }

        & .news_problem_icon {
            width: 48px;
            height: 48px;
            margin: 0 auto 16px;
            background-color: #ced4da;
            border-radius: 50%;
        }

        & .news_problem_title {
            margin: 0 0 12px;
            font-size: 1.05rem;
            font-weight: 700;
            color: #333333;
        }

        & .news_problem_desc {
            margin: 0;
            font-size: 0.85rem;
            line-height: 1.7;
            color: #666666;
            text-align: left;
        }
    }

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

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

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

        & .news_solution_lead {
            margin: 16px 0 0;
            font-size: 1.05rem;
            font-weight: 500;
            color: #0486b1;
            text-align: center;

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

        & .news_solution_list {
            max-width: 800px;
            margin: 0 auto;
            padding: 0;
            list-style: none;
        }

        & .news_solution_item {
            display: flex;
            align-items: flex-start;
            gap: 24px;
            padding: 24px 28px;
            margin-bottom: 16px;
            background-color: #ffffff;
            border-radius: 8px;
            border-left: 4px solid #05ace4;

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

        & .news_solution_check {
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: #0486b1;
            position: relative;

            &::after {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                width: 14px;
                height: 8px;
                border-left: 3px solid #ffffff;
                border-bottom: 3px solid #ffffff;
                transform: translate(-50%, -70%) rotate(-45deg);
            }
        }

        & .news_solution_text {
            flex: 1;
            min-width: 0;
        }

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

        & .news_solution_text p {
            margin: 0;
            font-size: 0.9rem;
            line-height: 1.7;
            color: #666666;
        }
    }

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

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

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

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

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

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

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

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

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

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