:root {
    --bg-color: #faf8f5;
    --card-bg: #ffffff;
    --text-color: #4a4543;
    --accent-color: #E78198;
    --border-color: #f0eae1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    background: linear-gradient(rgba(250, 248, 245, 0.5), rgba(250, 248, 245, 0)), 
                url('./img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    padding: 40px 15px;
}

.wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.block {
    background-color: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* --- ヘッダー共通 --- */
.block-header {
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 24px;
    color: #332e2c;
}

.page-title {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

/* --- バナー画像 --- */
.index-banner {
    width: 100%;
    height: 522px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.index-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-wrap {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- ナビゲーションメニュー --- */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.nav-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-btn:hover, .nav-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* --- SNSアイコン --- */
.sns-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sns-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
}

.sns-icon:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ==========================================================
   ★ index専用：左右分割スタイル ＆ 上揃え（flex-start）の調整
   ========================================================== */
.split-block {
    display: flex;
    gap: 30px;
    align-items: flex-start; 
}

.split-content {
    flex: 1;
    text-align: left;
}

.vertical-img-wrap {
    width: 240px;
    min-width: 240px;
    height: 330px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.vertical-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- アクティビティリスト --- */
.activity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
    text-align: left;
}

.activity-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.activity-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

.about-text {
    font-size: 0.95rem;
    color: #5c5552;
    text-align: left;
}

/* --- YouTubeオートスクロール（PC用） --- */
.yt-slider-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.yt-slider {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.yt-slider-wrap:hover .yt-slider {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.yt-thumb {
    /* パソコン用の元のサイズ（幅220pxに戻す） */
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 124px !important;
    min-height: 124px !important;
    
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: block;
    
    -webkit-flex-shrink: 0 !important;
    flex-shrink: 0 !important;
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.yt-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* --- コンタクトブロック --- */
.contact-block {
    text-align: center;
    background-color: #fffcfc;
}

.contact-block p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #5c5552;
}

.contact-btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(224, 159, 158, 0.3);
}

.contact-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* --- ブロック共通（半透明・すりガラス風） --- */
.block {
    background-color: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.block .section-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 20px;
}

/* --- 雨のしずくの演出用スタイル --- */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    width: 8px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-20px) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(105vh) scale(1);
        opacity: 0;
    }
}


/* ==========================================================
   ★ スマホ用：横スクロールを停止 ＆ ランダムで1つ大きく表示
   ========================================================== */
@media (max-width: 768px) {
    .split-block {
        flex-direction: column !important;
    }
    .vertical-img-wrap {
        width: 100% !important;
        min-width: 100% !important;
        height: 250px !important;
    }

    .index-banner {
        height: 220px !important;
    }

    body {
        padding: 20px 10px !important;
    }

    .block {
        padding: 20px 15px !important;
    }

    /* 横スクロール枠を解除し、中央に配置 */
    .yt-slider-wrap {
        overflow: visible !important;
        padding: 5px 0 !important;
    }

    .yt-slider {
        display: flex !important;
        justify-content: center !important;
        animation: none !important;
        -webkit-animation: none !important;
        width: 100% !important;
        transform: none !important;
    }

    /* 基本はすべてのサムネイルを非表示にする */
    .yt-thumb {
        display: none !important;
        width: 100% !important;
        max-width: 280px !important;
        height: 158px !important;    /* 16:9の綺麗な比率 */
        min-width: unset !important;
        min-height: unset !important;
        margin: 0 auto !important;
        flex-shrink: unset !important;
        -webkit-flex-shrink: unset !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    /* JavaScriptで選ばれたサムネイルだけを表示する */
    .yt-thumb.is-active-random {
        display: block !important;
    }

    .yt-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}
/* --- Safari（iOS）向けの動画スライダー対策 --- */
@media (max-width: 768px) {
    .yt-thumb {
        -webkit-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    .yt-slider {
        -webkit-animation: scroll 120s linear infinite !important;
        animation: scroll 120s linear infinite !important;
    }
}