/* ==================================== */
/* リセットと基本スタイル */
/* ==================================== */
/* 全要素のリセットはファイルの先頭に配置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "DotGothic16", sans-serif;
    font-weight: 600;
    font-style: normal;
    color: #333;
    line-height: 1.6;
    background-color: #f4f4f4;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    padding-top: 6rem;
    /* 4remから6remに増やします */
    background-color: #000;
}

/* ==================================== */
/* ヘッダー */
/* ==================================== */

main {
    width: 100%;
    margin: 0 auto;
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-image: url(../images/neon-street1.jpg);
    max-height: 100px;
}

#main-header nav {
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-height: 100px;
}

#main-header img {
    height: 2.5rem;
}

.header-nav-links {
    display: flex;
    gap: 1rem;
    max-height: 100px;
}

.header-nav-links a {
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
    font-family: 'DotGothic16', sans-serif;
    max-height: 100px;
}

.header-nav-links a:hover {
    color: #84cc16;
    /* Tailwind's lime-500 */
}

/* ==================================== */
/* メインコンテンツ */
/* ==================================== */

.dynamic-height-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 7rem 1rem;
    min-height: 95vh;
    width: 100%;

}

.section-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: -2;
    filter: blur(4px);
}

.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    /* 高さの指定を削除 */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* 新しいコンテナのスタイル */
.main-content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}

.content-wrapper a {
    margin-bottom: 100px;
}

.content-wrapper.active {
    opacity: 1;
    transform: translateY(0);
}

.content-wrapper.active h2 {
    transition-delay: 0.2s;
}

.content-wrapper.active p {
    transition-delay: 0.4s;
}

.content-wrapper.active .play-button {
    transition-delay: 0.6s;
}

.text-content {
    max-width: 48rem;
    margin: 0 auto;
}

.text-content h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'DotGothic16', sans-serif;
    color: #fff;
}

.text-content p {
    max-width: 520px;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'DotGothic16', sans-serif;
    border-radius: 12px;
    border: 4px solid #89898920;
    padding: 0.6rem;
    background-color: #89898975;
}



/* 動画コンテナ */
.video-player-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background-color: #000;
    border: 4px solid #78716c;
    padding-bottom: 56.25%;
    /* 16:9のアスペクト比を維持 */
    height: 0;
    border-radius: 9px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

.video-player-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    color: #84cc16;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    font-family: 'DotGothic16', sans-serif;
}

.play-button:hover {
    background-color: #84cc16;
    color: #000;
    transform: translate(-50%, -50%) scale(1.05);
}


@media (max-width: 528px) {

    .header-nav-links a {
        display: none;
        /* 528px以下になったら通常のナビゲーションリンクを非表示 */
    }

    #back-to-top-btn {
        position: fixed;
        bottom: 1rem;
        right: 2rem;
        z-index: 50;
        width: 4rem;
        height: 4rem;
        text-align: center;
    }

    #back-to-top-btn p {
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-weight: bold;
        font-family: 'DotGothic16', sans-serif;
        font-size: 0.87rem;
    }

    #back-to-top-btn img {
        padding-top: 0.5rem;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* ==================================== */
/* フッター */
/* ==================================== */
footer {
    background-color: #1d1d1d;
    color: #888;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
    width: 100%;
}

/* ==================================== */
/* 上に戻るボタン */
/* ==================================== */
@media (min-width: 529px) {
    #back-to-top-btn {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        z-index: 50;
        padding: 0.5rem;
        width: 7rem;
        height: 7rem;
        text-align: center;
    }

    #back-to-top-btn p {
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-weight: bold;
        font-family: 'DotGothic16', sans-serif;
        font-size: 0.87rem;
    }

    #back-to-top-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.float-animation {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ==================================== */
/* アニメーションキーフレーム */
/* ==================================== */

/* スピンアニメーション */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 24px;
    height: 24px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}