@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@700;900&display=swap');

/* =========================================================
   Base & Typography
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    background-color: #f0f0f0;
    color: #111827; /* gray-900 */
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    /* スマホでの横はみ出しをカットしてstickyを壊さないようにする */
    overflow-x: hidden; 
}

.modern-luxury {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", 'Noto Sans JP', sans-serif;
    letter-spacing: 0.12em;
    line-height: 1.1;
    font-weight: 900;
}

.font-black {
    font-weight: 900;
}

.pointer-events-none {
    pointer-events: none;
}

/* =========================================================
   Layout & Containers
   ========================================================= */
.main-container {
    width: 100%;
    background-color: #FCFAF7;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
}

/* =========================================================
   0. Header Bar
   ========================================================= */
.header-bar {
    width: 100%;
    background: linear-gradient(to right, #B88E5A, #D4AF37, #B88E5A);
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* 追従の設定 */
    position: sticky; 
    top: 0;
    z-index: 100;
    
    gap: 0.5rem;
    overflow: hidden; /* アニメーションの飛び出しをカット */
}

.header-img-left {
    width: 50%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 13px rgba(0, 0, 0, 0.15)) drop-shadow(0 8px 5px rgba(0, 0, 0, 0.08)); 
}

.header-img-right-wrap {
    width: 40%;
    max-width: 180px;
    display: flex;
    justify-content: center;
}

.header-img-right {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 13px rgba(0, 0, 0, 0.15)) drop-shadow(0 8px 5px rgba(0, 0, 0, 0.08));
}

.header-shine {
    position: absolute;
    top: 0;
    height: 100%;
    width: 12rem;
    background-color: rgba(255, 255, 255, 0.4);
    filter: blur(20px);
}

/* =========================================================
   1. First View
   ========================================================= */
.fv-section {
    width: 100%;
    border-bottom: 5px solid #B88E5A;
}

.fv-img {
    width: 100%;
    display: block;
}

/* =========================================================
   2. Video Area
   ========================================================= */
.video-area {
    text-align: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background-color: #FCFAF7;
    position: relative; /* Z-indexの制御用に追加 */
}

.video-header-container {
    padding: 0 10px;
    margin-bottom: 2.5rem;
}

.video-title-box {
    position: relative;
    padding: 3rem 0;
    border-top: 8px solid #B88E5A;
    border-bottom: 8px solid #B88E5A;
}

.limited-movie-badge {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #B88E5A;
    color: white;
    padding: 0.5rem 2.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.6em;
    font-style: italic;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.video-lead-text {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.tap-img-wrap {
    padding: 0 0.5rem;
}

.tap-img {
    margin: 0 auto;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
}

.bounce-arrow {
    margin: 2rem auto 0;
    width: 4rem;
    opacity: 1;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
    animation: bounce 1s infinite;
}

/* --- Video Player Component --- */
.video-player-container {
    width: calc(100% - 16px);
    margin: 0 auto 4rem;
    border: 5px solid #B88E5A;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    z-index: 10;
    transition: all 0.3s ease;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
}

.play-button-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-circle {
    position: absolute;
    width: 6rem;
    height: 6rem;
    border: 5px solid #B88E5A;
    border-radius: 50%;
}

.play-button {
    width: 6rem;
    height: 4rem;
    background-color: #B88E5A;
    border: 3px solid white;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    z-index: 10;
    transition: transform 0.3s;
}

.video-wrapper:hover .play-button {
    transform: scale(1.1);
}

.play-button-shine {
    position: absolute;
    top: 0;
    height: 100%;
    width: 4rem;
    background-color: rgba(255, 255, 255, 0.5);
    filter: blur(8px);
    z-index: 20;
}

.play-icon {
    width: 3.5rem;
    height: 3.5rem;
    color: white;
    margin-right: 0.25rem;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

/* --- Notice Image --- */
.notice-wrap {
    padding: 0 10px;
}

.notice-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15));
}

/* =========================================================
   3. CTA Area
   ========================================================= */
.cta-area {
    text-align: center;
    padding: 2rem 15px;
    background-color: white;
    border-top: 4px solid #eee;
    margin-top: 2.5rem;
}

.cta-catch-wrap {
    padding: 0 0.5rem;
    margin-bottom: 1rem;
}

.cta-catch-img {
    margin: 0 auto;
    width: 100%;
    object-fit: contain;
}

.cta-btn-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.cta-toggle-btn {
    margin: 0 auto;
    width: 100%;
    transition: all 0.5s;
    border-radius: 1rem;
}

/* 非アクティブ状態（マウスカーソルを禁止マークに） */
.cursor-not-allowed {
    cursor: not-allowed;
}

.tap-here-badge {
    position: absolute;
    top: -1.5rem;
    right: -0.5rem;
    background-color: #C80000;
    color: white;
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 20;
}

.cta-note-wrap {
    margin-top: 3rem;
    padding: 0 0.5rem;
}

.cta-note {
    color: #C80000;
    font-size: 0.8rem;
    line-height: 1.625;
    font-style: italic;
    border-top: 4px solid #fef2f2;
    padding-top: 1.5rem;
    text-align: center;
    margin: 0 auto;
}

/* =========================================================
   4. Hidden Content
   ========================================================= */
.hidden-section {
    display: none; /* 初期状態は非表示 */
    padding: 4rem 20px;
    background-color: #0a0a0a;
    border-top: 6px solid #B88E5A;
}

.executive-box {
    border: 4px dashed rgba(184, 142, 90, 0.6);
    padding: 3rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.executive-title {
    color: #B88E5A;
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.1em;
}

.executive-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-style: italic;
    letter-spacing: 0.1em;
    margin: 0;
}

/* =========================================================
   5. Footer & Modals
   ========================================================= */
.site-footer {
    background-color: #C80000;
    color: white;
    padding: 4rem 15px;
    text-align: center;
}

.footer-links {
    font-size: 0.68rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.05em;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links .divider {
    margin: 0;
}

.footer-copy {
    font-size: 0.6rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    letter-spacing: 0.1em;
}

.footer-notes {
    font-size: 0.55rem;
    text-align: left;
    opacity: 0.9;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 2.5rem;
    margin: 0 auto;
    width: 100%;
    line-height: 1.625;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-notes p {
    margin: 0;
}

/* =========================================================
   Modals & Alerts
   ========================================================= */
#custom-alert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    width: 90%;
    max-width: 340px;
    text-align: center;
    border: 5px solid #B88E5A;
}

#custom-alert h4 {
    color: #C80000;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    letter-spacing: 0.1em;
}

#custom-alert p {
    color: #333;
    font-size: 1.125rem;
    margin: 0 0 2rem 0;
    line-height: 1.625;
}

.alert-btn {
    width: 100%;
    background-color: #B88E5A;
    color: white;
    padding: 1rem 0;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.1s;
}

.alert-btn:active {
    transform: scale(0.95);
}

/* --- フッター法務情報用のモーダルスタイル --- */
.modal-overlay-legal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border: 5px solid #B88E5A;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close-btn:hover {
    color: #C80000;
}

.legal-modal-title {
    color: #B88E5A;
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.legal-text-area {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #444;
    text-align: left;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.legal-table th, .legal-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background-color: #FCFAF7;
    font-weight: 900;
    white-space: nowrap;
    width: 30%;
}

@media screen and (max-width: 600px) {
    .legal-table th, .legal-table td {
        display: block;
        width: 100%;
    }
    .legal-table th {
        border-bottom: none;
    }
    .legal-table td {
        border-top: none;
        margin-bottom: 1rem;
    }
}

.legal-text-area h2 {
    color: #B88E5A;
    font-size: 1.25rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px dashed #B88E5A;
    padding-bottom: 0.5rem;
    font-weight: 900;
}

.legal-text-area p {
    margin-bottom: 1rem;
}

.legal-text-area ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.legal-text-area li {
    margin-bottom: 0.25rem;
}


/* =========================================================
   Theater Mode (シアターモード用追加) ★修正版★
   ========================================================= */
.theater-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari対応 */
    z-index: 9000;
    cursor: pointer;
}

.theater-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

/* 暗転時の動画コンテナ（必ず一番手前に来るように強制指定） */
.video-player-container.in-theater {
    z-index: 9001 !important;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

body.no-scroll {
    overflow: hidden;
}


/* =========================================================
   Animations
   ========================================================= */
.pulse-btn {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-shine {
    animation: shine 2.5s infinite ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100px) skewX(-20deg); }
    15% { transform: translateX(200px) skewX(-20deg); }
    100% { transform: translateX(200px) skewX(-20deg); }
}

.animate-radar-1 {
    animation: radar 1.8s ease-out infinite;
}

.animate-radar-2 {
    animation: radar 1.8s ease-out 0.6s infinite;
}

@keyframes radar {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.4); opacity: 0; }
}

.animate-blink-slow {
    animation: blink-slow 2.5s infinite;
}

@keyframes blink-slow {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 15px rgba(255,255,255,0.7)); }
    50% { opacity: 0.2; filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}


/* =========================================================
   PC最適化用のレスポンシブCSS
   ========================================================= */
@media screen and (min-width: 768px) {
    .main-container {
        max-width: 800px;
        margin: 0 auto;
        box-shadow: 0 0 50px rgba(0,0,0,0.15);
    }

    .header-bar {
        gap: 1.25rem;
    }

    .header-img-left {
        max-width: 340px;
    }

    .header-img-right-wrap {
        max-width: 240px;
    }

    .video-area, .cta-area {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    .notice-wrap {
        width: calc(100% - 16px);
        margin: 0 auto;
        padding: 0;
    }

    .site-footer {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    body {
        font-size: 1.15rem;
    }

    .modern-luxury {
        font-size: 1.1em;
    }

    .cta-note {
        font-size: 1rem;
    }

    .footer-links {
        font-size: 0.9rem;
    }

    .footer-copy {
        font-size: 0.8rem;
    }

    .footer-notes {
        font-size: 0.8rem;
    }

    .legal-text-area {
        font-size: 1rem;
    }

    .fv-img {
        max-height: 500px;
        object-fit: cover;
        object-position: top;
    }
    
    .cta-catch-img, .tap-img {
        max-height: 180px;
    }

    .bounce-arrow {
        width: 5rem;
    }

    .footer-links {
        gap: 2.5rem;
    }

    .footer-links .divider {
        display: none;
    }
    
    .footer-notes {
        max-width: 700px;
        margin: 0 auto;
    }
}