/* =========================================
   Layout Reset & Header Overlay
   ========================================= */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    text-align: center;
    background-color: #000;
}

/* ヘッダーを絶対配置にして浮かせ、隙間を完全になくす */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.0);
}

.header-overlay .container {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* コンテンツエリア */
.contents {
    text-align: center;
    background-color: #000000;
    position: relative;
    z-index: 20;
    padding-top: 60px;
}

/* =========================================
   PC View Text Width Adjustment (70%)
   ========================================= */
@media screen and (min-width: 769px) {
    /* メインコンテンツ内、詳細エリア内のpタグを幅70%にして中央寄せ */
    /* ただし、catalog内のp（作品キャプションなど）は除く */
    .contents p:not(.sub):not(.artwork p), 
    .details p {
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}


/* =========================================
   Fade In Animation (Scroll Reveal)
   ========================================= */
/* 初期状態：少し下にずらして透明にする */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
    will-change: opacity, transform;
}

/* 表示状態：元の位置に戻して不透明にする */
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Featured Video Section & Banner Image
   ========================================= */
.video-section {
    margin: 40px auto;
    text-align: center;
    width: 100%;
}

.featured-video {
    width: 90%; /* スマホなどのデフォルト幅 */
    max-width: 800px;
    outline: none;
    display: block;
    margin: 0 auto;
    /* 黒背景との境界線を追加 */
    border: 1px solid #444; 
    box-sizing: border-box;
}

/* 企画セクションのバナー画像 */
.content-banner {
    display: block;
    margin: 30px auto;
    width: 100%;  /* スマホ: コンテナ幅いっぱいに合わせる（pタグと同じ挙動） */
    max-width: 800px; /* 画像が大きくなりすぎないように制限 */
    height: auto;
}

/* PCビュー（769px以上）での調整 */
@media screen and (min-width: 769px) {
    .featured-video {
        width: 35%; /* PCでは動画を小さめに表示 */
    }
    
    .content-banner {
        width: 70%; /* PCではテキスト(pタグ)と同じ70%幅に合わせる */
    }
}


/* =========================================
   Apple Style Canvas Scrollytelling
   ========================================= */
#scroll-track {
    /* スクロール距離(150vh = おおよそ１スクロール) */
    height: 150vh; 
    position: relative;
    width: 100%;
    background-color: #000;
    margin: 0 !important;
    padding: 0 !important;
}

#sticky-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

#sticky-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 黒の濃さ (0.1 = 10%) */
    z-index: 5;
    pointer-events: none;
    
    /* 最初は透明 */
    opacity: 0;
    /* ふわっと切り替えアニメーション（0.5秒かけて変化） */
    transition: opacity 0.5s ease;
}

/* JSで表示する */
#sticky-container.scrolled::after {
    opacity: 1;
}

canvas#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* スクロール指示アニメーション */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #c8ff00;
    z-index: 60;
    font-family: sans-serif;
    font-weight: bold;
    letter-spacing: 0.1em;
    pointer-events: none;
    transition: opacity 0.5s ease;
    animation: blinkScroll 2s infinite;
}

.scroll-hint p {
    margin: 0;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.scroll-hint .arrow {
    font-size: 1.2rem;
}

@keyframes blinkScroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}


.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    width: 90%;
    max-width: 800px;
    pointer-events: none;
    z-index: 10;
    color: #c8ff00;
}

.overlay-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #d0ff00;
    background: linear-gradient(180deg, #b3ff00, #85e500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.overlay-text p {
    font-size: 1.4rem;
    color: #daff35;
}

#loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-direction: column;
    transition: opacity 0.5s;
}

@media screen and (max-width: 768px) {
    .overlay-text h2 { font-size: 2rem; }
    .overlay-text p { font-size: 1rem; }
}

/* =========================================
   Catalog & Common Styles
   ========================================= */
.details {
    text-align: center !important; 
    max-width: 800px;
    margin: 0 auto;
}
h1, h2, h3, h4, p.news { text-align: center; }

.catalog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0;
    list-style: none;
    margin-top: 40px;
}
.artwork {
    width: 300px;
    list-style: none;
    margin-bottom: 30px;
    text-align: center;
}
.artwork-thumb {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 1px solid #eee;
    transition: opacity 0.3s;
    margin: 0 auto;
}
.artwork-thumb:hover { opacity: 0.8; }

.gbtn { display: inline-block; cursor: pointer; }
.mtxt.b-under { text-align: center; }

/* =========================================
   Popup Modal Styles (ステートメント用)
   ========================================= */
.modal-overlay {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* 半透明の黒背景 */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto; /* コンテンツが多い場合はスクロール */
    position: relative;
    padding: 60px 40px;
    color: #fff;
    text-align: center; /* 塊自体を中央に配置するためのベース */
}

/* 閉じるボタン（×印） */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.3s;
    z-index: 10001;
}
.close-btn:hover { opacity: 0.7; }

/* ステートメント本文スタイル */
.statement-body {
    display: inline-block; 
    text-align: left;    
    margin: 0 auto;
    line-height: 2.2;      /* 行間 */
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.statement-body h3 {
    text-align: center;    /* タイトルは中央 */
    margin-bottom: 30px;
    font-size: 1.8rem;
    border-bottom: 1px solid #666;
    padding-bottom: 10px;
    display: block;
}

/* モバイル調整 */
@media screen and (max-width: 768px) {
    .modal-content { padding: 60px 20px; }
    .statement-body { font-size: 0.95rem; width: 100%; }
}

/* 音声プレーヤーエリア */
.audio-section {
    margin: 40px auto;
    padding: 20px;
    max-width: 600px;
    background: #6d5d13;
    border-radius: 8px;
}
.audio-section h4 { margin-top: 0; color: #333; }
audio { width: 100%; margin-top: 10px; }