﻿body {
        font-family: 'M PLUS 1p', sans-serif;
        background-color: #f8f8fa;
        color: #1a1a1a;
        overflow-x: hidden;
        width: 100%;
    }

    .header-logo {
        width: 120px;
        height: auto;
        display: block;
    }

    
    
    @media (min-width: 768px) {
        .header-logo {
            width: 150px; 
        }
    }

    /* =========================================
    PC/SP 表示切り替えユーティリティ
    ========================================= */
 
    /* スマホ（画面幅767px以下）で非表示にするクラス */
    @media screen and (max-width: 767px) {
        .u-hidden-sp {
            display: none !important;
        }
    }
 
    /* PC（画面幅768px以上）で非表示にするクラス */
    @media screen and (min-width: 768px) {
        .u-hidden-pc {
            display: none !important;
        }
    }
    .c-inline-block {
        display: inline-block;
      }


    /* --- 超滑らか PiP (Picture in Picture) システム --- */
    .hero-video-area {
        position: relative;
        width: 100%;
        margin-bottom: 2.5rem;
        z-index: 10;
    }

    .video-placeholder {
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 */
        /*background: #000;*/
        border-radius: 12px;
    }

    .video-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 40;
        transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    width 1.3s cubic-bezier(0.16, 1, 0.3, 1),
                    border-radius 1.3s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform, width;
        pointer-events: none;
    }

    .video-wrapper.is-floating {
        position: fixed;
        top: auto;
        left: auto;
        bottom: 24px;
        right: 24px;
        width: 320px; 
        max-width: 55vw;
        z-index: 100;
        transform: translate3d(0, 0, 0);
    }

    @media (max-width: 640px) {
        .video-wrapper.is-floating {
            width: 200px;
            bottom: 12px;
            right: 12px;
        }
    }

    .video-container {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        background: #000;
        border-radius: 16px;
        box-shadow: 0 30px 60px rgba(0,0,0,0.12);
        transition: border-radius 1s ease, box-shadow 1s ease;
        pointer-events: auto;
    }

    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .video-wrapper.is-floating .video-container {
        border-radius: 12px;
        box-shadow: 0 15px 45px rgba(0,0,0,0.3);
        border: 1px solid rgba(255,255,255,0.1);
    }

    #scroll-trigger {
        position: absolute;
        bottom: 60px;
        left: 0;
        width: 100%;
        height: 1px;
        pointer-events: none;
    }

    /* --- モダンなセクション見出しのデザイン --- */
    .modern-section-header {
        position: relative;
        margin-bottom: 3.5rem;
        padding-left: 2rem;
    }
    
    .modern-section-header::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.5rem;
        width: 8px;
        height: calc(100% - 1rem);
        background: #EE2737;
        border-radius: 4px;
    }

    .modern-section-header .bg-label {
        position: absolute;
        top: -1.5rem;
        left: 1rem;
        font-family: 'Inter', sans-serif;
        font-size: 5rem;
        font-weight: 900;
        color: rgba(238, 39, 55, 0.04);
        line-height: 1;
        z-index: -1;
        user-select: none;
    }

    .modern-section-header h3 {
        font-size: 1.25rem; /* スマホデフォルト: サイズを抑える */
        font-weight: 900;
        letter-spacing: -0.02em;
        color: #1a1a1a;
        line-height: 1.2;
    }

    @media (min-width: 768px) {
        .modern-section-header h3 {
            font-size: 1.75rem; /* タブレット・PCサイズ */
        }
    }

    .modern-section-header .subtitle {
        font-size: 0.7rem;
        font-weight: 900;
        color: #EE2737;
        text-transform: uppercase;
        letter-spacing: 0.3em;
        margin-bottom: 0.5rem;
        display: block;
    }

    /* 背景あしらい */
    .hero-bg-text-container {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
    }

    .hero-bg-text {
        font-family: 'Inter', sans-serif;
        font-size: 16vw;
        font-weight: 900;
        line-height: 0.8;
        white-space: nowrap;
        color: transparent;
        -webkit-text-stroke: 1.5px rgba(238, 39, 55, 0.08);
        letter-spacing: -0.04em;
        text-transform: uppercase;
        transform: translateY(-10%);
    }

    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    .flat-card {
        background: #fff;
        border: 1px solid #eef0f2;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .flat-card:hover {
        transform: translateY(-8px);
        border-color: #EE2737;
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    }

    .x-banner {
        /*background: linear-gradient(135deg, #EE2737 0%, #d62231 100%);*/
        background: linear-gradient(90.18deg, #1969e0 .16%, #27b6e3 99.86%), #fff;
    }

    .hero-section {
        position: relative;
        z-index: 1;
        border-radius: 12px;
    }

    .close-floating {
        position: absolute;
        top: -12px;
        left: -12px;
        background: #1a1a1a;
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
        z-index: 110;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        pointer-events: auto;
    }
    .video-wrapper.is-floating .close-floating {
        display: flex;
    }

    .text-accent { color: #EE2737; }

    .h-logo {
        width: 100%;
    }
    h1 {
         width: 25%;
    }
    h2.mb-6 {
        width: 40%;
        text-align: center;
        margin:0 auto;
    }



