/* ==========================================================================
   news.css
   News 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;
}

/* ==========================================================================
   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', 'Noto Sans JP', sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            line-height: 1.2;

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

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

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

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

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

        & .news_article {
            padding: 50px;
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);

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

            @media screen and (max-width: 768px) {
                padding: 24px 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_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;
            background-color: #0486b1;
        }

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

        & .news_article_body {
            padding: 32px 0 0;

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

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

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

            @media screen and (max-width: 768px) {
                aspect-ratio: 16 / 10;
                margin-bottom: 24px;
            }

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

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

    /* ---------- Section Heading (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;
            }
        }
    }

    /* ---------- 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 {
            position: relative;
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: #0486b1;

            &::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;

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

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

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

    /* ---------- 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;
            }
        }
    }
}
