/* ==========================================================
   00. 全体リセット・背景
   対応：ページ全体の背景と基本レイヤー設定
========================================================== */
html, body {
    background-image: url("../images/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* レイヤーが背景を隠さないようにする
   対応：LAYER1 / LAYER2 / カットイン / スライド背景透過
*/
#layer1,
#layer2,
#cutin-area,
#slide-area {
    background: transparent !important;
}

/* ==========================================================
   02. 固定ナビ（グローバルナビゲーション）
========================================================== */
#global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    overflow-x: clip;
    z-index: 9999;
}

#global-nav a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    font-size: 20px;
    padding: 0 16px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

/* ==========================================================
   90. 背景（PC版・再定義）
========================================================== */
#slide-area {
    pointer-events: none;
}

/* ==========================================================
   色テーマ変数（NEWS / WORKS / SPONSOR / CONTACT）
========================================================== */

:root {
    /* NEWS */
    --news-bg: #ffffff;
    --news-border: #0099ff;
    --news-text-color: #000000;

    /* WORKS */
    --works-bg: rgba(0, 40, 80, 0.40);
    --works-border: #00c3ff;
    --works-text-color: #ffffff;

    /* SPONSOR */
    --sponsor-bg: rgba(255, 200, 0, 0.35);
    --sponsor-border: #ffcc00;
    --sponsor-text-color: #333333;

    /* CONTACT */
    --contact-bg: rgba(0, 40, 80, 0.35);
    --contact-border: #0099ff;
    --contact-text-color: #ffffff;
}
/* ==========================================================
   01. レイヤー1（TOP演出全体コンテナ）
========================================================== */
#layer1 {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ==========================================================
   01-1. intro-box（イントロ動画）
========================================================== */
#intro-box {
    position: relative;
    width: 60%;
    aspect-ratio: 16 / 9;
    margin: 80px auto 0;
    text-align: center;
}

#intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.8s ease;
}

#intro-video.fadeout {
    opacity: 0;
}

#start-button {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 32px;
    font-size: 26px;
    border-radius: 12px;
    background: #ff4081;
    color: #fff;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
}

#start-button.show {
    display: block;
    opacity: 1;
}

/* ==========================================================
   01-2. top-box（タイトル）
========================================================== */
#top {
    text-align: center;
    padding: 120px 20px;
}

#top h1 {
    font-size: 48px;
    margin: 0;
}

#top p {
    font-size: 20px;
    margin-top: 10px;
}