/* CSS変数定義 */

/* アニメーション定義 */
@keyframes slowBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}:root {
    /* アニメーション関連 */
    --hover-scale: 1.02;
    --hover-scale-xl: 1.1;
    --hover-rotate: -1deg;
    --hover-translate: -5px;
    --transition-duration: 0.3s;
    
    /* サイズ・間隔 */
    --border-width: 2px;
    --border-radius: 8px;
    --border-radius-small: 4px;
    --gap-small: 20px;
    --gap-medium: 30px;
    --gap-large: 40px;
    --padding-small: 15px;
    --padding-medium: 20px;
    --padding-large: 40px;
    
    /* レイアウト */
    --max-width-content: 1200px;
    --max-width-site: 2560px;
    --header-height: 40px;
    --header-height-mobile: 30px;
    
    /* 色関連 */
    --color-white: white;
    --color-white-70: rgba(255, 255, 255, 0.7);
    --color-white-80: rgba(255, 255, 255, 0.8);
    --color-black-overlay: rgba(0, 0, 0, 0.8);
    --color-background: #202020;
    --color-footer: #1A2A26;
    
    /* z-index */
    --z-header: 1000;
    --z-floating: 999;
    --z-modal: 2000;
    
    /* ブレンドモード */
    --blend-invert: difference;
    --blend-multiply: multiply;
    --blend-overlay: overlay;
    --blend-screen: screen;
}

/* ベースのスタイル */

body {
    font-family: 'Figtree', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    padding: 15px 0;
    transition: transform 0.3s ease;
    max-width: var(--max-width-site);
    width: 100%;
}

.header.visible {
    transform: translateX(-50%) translateY(0);
}

.header-container {
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 40px;
    width: auto;
    mix-blend-mode: overlay;
}

/* 浮動言語切り替え（スクロール追従） */
.floating-language-toggle {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 999;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-icon {
    width: 24px;
    height: 24px;
    opacity: 0.85;
    margin-right: 2px;
    color: white;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    transition: opacity var(--transition-duration) ease;
    opacity: 0.5;
    padding: 0;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
}

/* メインコンテンツ */
.main-content {
    position: relative;
    max-width: var(--max-width-site);
    margin: 0 auto;
    background: url('materials/background.webp') repeat-y center top;
    background-size: 100% auto;
    min-height: 100vh;
}

/* セクション共通 */
section {
    padding: 80px 120px;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* アイキャッチセクション */
.hero-section {
    padding: 0;
    /* margin-bottom: 180px; */
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-title {
    width: 40%;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hero-title img {
    width: 80%;
    height: auto;
}

.wishlist-banner {
    width: 25%;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, 250%);
    z-index: 10;
    animation: slowBlink 1.5s ease-in-out infinite;
}

.hero-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    pointer-events: none;
}

.steam-widget {
    width: 100%;
    padding: 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(55%);
    z-index: 10;
}

.steam-widget iframe {
    padding: 0;
    zoom: 1.5;
    width: 600px;
    height: 190px;
    max-width: 40vw;
    max-height: 15vh;
}

/* ゲーム説明セクション */

.description-section {
    padding: 60px 120px;
    background: transparent;
}

.description-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.description-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: white;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Movieセクション */

.movie-container {
    max-width: 800px;
    margin: 0 auto;
}

.youtube-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 アスペクト比 */
    height: 0;
    overflow: hidden;
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* Newsセクション */
.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    border-radius: 1px;
    overflow: hidden;
    transition: transform var(--transition-duration) ease;
    cursor: pointer;
    width: 300px;
    flex-shrink: 0;
}

.news-item:hover {
    transform: scale(var(--hover-scale)) rotate(var(--hover-rotate));
}

.news-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.news-content {
    padding: 0px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
    text-align: left;
}

.news-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

/* Screenshotsセクション */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 1px;
    overflow: hidden;
}

.screenshot-item:hover {
    transform: scale(var(--hover-scale)) rotate(var(--hover-rotate));
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Follow USセクション */

.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.social-icons a {
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(var(--hover-scale)) rotate(var(--hover-rotate));
}

.social-icons img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Press Kitセクション */
.press-kit-section {
    padding: 60px 20px;
}

.btn-outline {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-duration) ease;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: white;
    color: #2a5d5a;
}

/* Developerセクション */
.developer-logo img {
    width: 100%;
    max-width: 400px;
    height: auto;
    transition: transform 0.3s ease;
}

.developer-logo a:hover img {
    transform: scale(var(--hover-scale));
}

/* フッター */
.footer {
    background: var(--color-footer);
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: var(--max-width-site);
    margin: 0 auto;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover {
    color: #ccc;
}

#modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* レスポンシブデザイン */
@media (max-width: 2560px) {
    .main-content {
        margin: 0;
    }
    
    .header {
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .header.visible {
        transform: translateY(0);
    }
}

/* 2560px以上の場合は白背景を追加 */
@media (min-width: 2560px) {
    body {
        background: var(--color-background);
    }
}

@media (max-width: 1200px) {

    section {
        padding: 80px 120px;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .description-section {
        padding: 40px 20px;
    }

    .description-text {
        font-size: 1.2rem;
        line-height: 1.7;
    }

    .floating-language-toggle {
        position: absolute;
        top: 10px;
        right: 20px;
        z-index: 999;
    }

    .lang-icon {
        width: 18px;
        height: 18px;
        opacity: 0.85;
        margin-right: 2px;
        color: white;
        flex-shrink: 0;
    }

    .hero-section {
        /* margin-bottom: 100px; */
    }

    .hero-title {
        width: 50%;
        position: absolute;
        top: 30%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
    }

    .wishlist-banner {
        width: 35%;
        position: absolute;
        top: 30%;
        left: 50%;
        transform: translate(-50%, 300%);
        z-index: 10;
        animation: slowBlink 1.5s ease-in-out infinite;
    }
    
    .hero-title img {
        max-width: 45%;
    }

    .steam-widget {
        width: 100%;
        padding: 0;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(55%);
        z-index: 10;
    }
    
    .steam-widget iframe {
        padding: 0;
        zoom: 1.2;
        width: 600px;
        height: 190px;
        max-width: 70vw;
        max-height: 15vh;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .screenshot-item {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .social-icons {
        gap: 30px;
    }
    
    .social-icons img {
        width: 50px;
        height: 50px;
    }
    
    .btn-outline {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .header-logo img {
        height: 30px;
    }
    
    .lang-btn {
        font-size: 14px;
    }

    .news-container {
        max-width: 450px;
    }

    .news-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        max-width: 450px;
        gap: 12px;
    }

    .news-item img {
        width: 120px;
        height: auto;
        object-fit: cover;
        flex-shrink: 0;
    }

    .news-content {
        flex: 1;
        padding: 8px 0;
    }

    .news-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .news-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 720px) {
    section {
        padding: 50px 20px;
        text-align: center;
    }

    .news-section {
        padding: 80px 50px;
    }
    
    .steam-widget iframe {
        padding: 0;
        zoom: 1;
        width: 600px;
        height: 190px;
        max-width: 95vw;
        max-height: 50vh;
    }

    .news-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-width: 450px;
    }

    .wishlist-banner {
        width: 50%;
        position: absolute;
        top: 30%;
        left: 50%;
        transform: translate(-50%, 200%);
        z-index: 10;
        animation: slowBlink 1.5s ease-in-out infinite;
    }
}