/* styles.css */

/* --- General Body & Background --- */
body {
    background-color: #000; /* スマホでの白い余白対策 */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    transition: background-image 0.5s ease-in-out;
    /* overflow: hidden; */ /* Prevent body scroll when drawer is open - LPでは不要なので削除 */
    animation: background-zoom-pan 60s infinite alternate; /* Apply background animation */
}

/* Keyframes for background animation */
@keyframes background-zoom-pan {
    0% {
        background-size: 100%;
        background-position: center center;
    }
    50% {
        background-size: 110%;
        background-position: 60% 40%;
    }
    100% {
        background-size: 100%;
        background-position: center center;
    }
}

/* --- Background Image Classes --- */
.background-0 { background-image: url('/images/0.png'); }
.background-1 { background-image: url('/images/1.png'); }
.background-2 { background-image: url('/images/2.png'); }
.background-3 { background-image: url('/images/3.png'); }
.background-4 { background-image: url('/images/4.png'); }
.background-5 { background-image: url('/images/5.png'); }
.background-6 { background-image: url('/images/6.png'); }
.background-7 { background-image: url('/images/7.png'); }
.background-8 { background-image: url('/images/8.png'); }
.background-9 { background-image: url('/images/9.png'); }

/* --- Hero Section Styles (LP用に追加) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* ビューポートいっぱいに表示 */
    overflow: hidden; /* スライドの範囲を制限 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* 滑らかな切り替え */
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明のオーバーレイ */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* オーバーレイより手前に表示 */
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* テキストの視認性向上 */
}

/* --- Main Action Button --- */
.main-action-container {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    padding: 1rem;
}

.main-action-container h1, .main-action-container p {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: text-fade-in-scale 1.5s ease-out forwards; /* Apply text animation */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8); /* 影を強く */
}

.main-action-container p {
    animation-delay: 0.5s; /* Delay subtitle animation */
}

/* Keyframes for text animation */
@keyframes text-fade-in-scale {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#open-drawer-button {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid white;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 2rem; /* Space between text and button */
}

#open-drawer-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

/* --- Drawer Styles --- */
#drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.4s ease;
}

#transaction-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 95%;
    max-width: 550px;
    height: 100%;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

#transaction-drawer.is-open {
    transform: translateX(0);
}

#close-drawer-button {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: #555;
    background: rgba(0,0,0,0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other drawer content */
    display: flex;
    justify-content: center;
    align-items: center;
}

#close-drawer-button:hover {
    color: #000;
    background: rgba(0,0,0,0.2);
}

/* --- Content Inside Drawer --- */
.card.glass-card {
    background: transparent !important;
    border: none;
    box-shadow: none;
}

.card-body {
    overflow-y: auto;
}

.accordion-item.glass-card, 
.accordion-button {
    background: transparent !important;
}

/* --- Utility Classes --- */
.hidden {
    opacity: 0;
    pointer-events: none;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 576px) {
    #transaction-drawer {
        width: 100%;
        border-left: none;
    }
}

/* --- Footer Styles --- */
footer {
    position: relative; /* または static */
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.7); /* 少し透明感のある白 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* 読みやすくするための影 */
    z-index: 1; /* 他の要素の下に隠れないように */
}

/* --- Open Info Button Styles --- */
#open-info-button {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 50px; /* 丸み */
    border: 2px solid white;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#open-info-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

/* --- Info Modal Styles --- */
#infoModal .modal-content {
    background: rgba(255, 255, 255, 0.1); /* より透明感を出す */
    -webkit-backdrop-filter: blur(15px); /* ぼかしを強く */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2); /* 枠線を少し目立たせる */
    border-radius: 15px; /* 角を丸く */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* 影を強調 */
    color: white; /* テキスト色を白に */
}

#infoModal .modal-header,
#infoModal .modal-footer {
    border-bottom: none; /* デフォルトの線を削除 */
    border-top: none; /* デフォルトの線を削除 */
    background: transparent; /* 透明に */
    color: white; /* テキスト色を白に */
}

#infoModal .modal-title {
    color: white; /* タイトル色を白に */
    font-weight: bold;
}

#infoModal .modal-body {
    color: white; /* ボディのテキスト色を白に */
}

#infoModal .btn-close {
    filter: invert(1) grayscale(1) brightness(2); /* 白いXボタンにする */
}

#infoModal .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2); /* 閉じるボタンの背景色 */
    border-color: rgba(255, 255, 255, 0.3); /* 閉じるボタンの枠線色 */
    color: white; /* 閉じるボタンのテキスト色 */
}

#infoModal .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

#infoModal h4, #infoModal h5 {
    color: white; /* 見出しの色を白に */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#infoModal ol, #infoModal p {
    color: rgba(255, 255, 255, 0.8); /* リストと段落のテキスト色 */
}

#infoModal a {
    color: #87CEEB; /* リンクの色を水色に */
    text-decoration: none;
}

#infoModal a:hover {
    text-decoration: underline;
}