/* ===== 基本設定 ===== */
:root {
    --main-bg-color: #121212;
    --secondary-bg-color: #1e1e1e;
    --text-color: #e0e0e0;
    --primary-color: #00aaff;
    --primary-hover-color: #0088cc;
    --border-color: #333;
    --attention-color: #ffc107; /* 目立たせるための色 */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    background-color: var(--main-bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #fff;
}

.bg-dark {
    background-color: var(--secondary-bg-color);
}


/* ===== ヘッダー ===== */
.header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-title {
    font-size: 1.5em;
    margin: 0;
    color: #fff;
}

.header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.header nav li {
    margin-left: 25px;
}

.header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.header nav a:hover {
    color: var(--primary-color);
}


/* ===== メインビジュアル (Hero) ===== */
.hero {
    height: 100vh;
    background: url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding-top: 60px; /* ヘッダーの高さ分を確保 */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    z-index: 1;
}

.hero h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-hover-color);
}


/* ===== 概要 (About) ===== */
#about {
    padding-top: 120px; /* ヘッダーの高さ分+α */
    margin-top: -60px; /* ヘッダーの高さ分を相殺 */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 800px; /* 文章が長くなりすぎないように幅を制限 */
    margin: 0 auto; /* 中央揃え */
    text-align: center;
}


/* ===== 特徴 (Features) ===== */
.features-grid {
    display: grid;
    /* ★★★ ここを変更：2列のグリッドレイアウトに ★★★ */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-item {
    background-color: var(--main-bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.feature-item p:last-child {
    margin-bottom: 0;
}


/* ===== スクリーンショット (Gallery) ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}


/* ===== Tier表 ===== */
.tier-content {
    text-align: center;
}

.tier-content p {
    font-size: 1.2em;
    margin-top: 40px;
    margin-bottom: 15px;
}

.tier-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}


/* ===== 各能力説明 (Characters) ===== */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.character-item {
    background-color: var(--secondary-bg-color);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.character-image {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.character-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #fff;
}

.character-item p {
    margin: 4px 0;
}

.ability-summary {
    color: #489b4b;
    font-weight: 700;
}


/* ===== ダウンロード・予約 (Download) ===== */
.download-section {
    text-align: center;
}

.download-buttons {
    margin-top: 30px;
}

.download-buttons h2 {
    color: var(--attention-color);
    font-size: 2.2em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    border-radius: 10px;
    border: 2px solid var(--attention-color);
    display: inline-block;
    animation: pulse 2s infinite;
}

/* 点滅アニメーションの定義 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}


/* ===== フッター ===== */
.footer {
    background-color: var(--secondary-bg-color);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}


/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
    }

    .header {
        padding: 10px 0;
    }
    
    .header .container {
        flex-direction: column;
    }
    
    .header nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header nav li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 2.5em;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    /* ★★★ ここを変更：スマホでは1列に ★★★ */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons h2 {
        font-size: 1.8em; /* スマホでは少し小さく */
        padding: 15px;
    }
}


/* ===== アニメーション関連のスタイル ===== */

/* ヒーローセクションのロード時アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: fadeInUp 1s ease-out forwards;
}

/* hero-subtitleクラスをheroセクション内のpタグに適用 */
.hero-content p.hero-subtitle {
    opacity: 0; /* 最初は非表示 */
    animation: fadeInUp 1s ease-out 0.5s forwards; /* 0.5秒遅れて開始 */
}


/* スクロール時のフェードインアニメーション */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 各アイテムが少しずつずれて表示されるようにする */
/* ★★★ 特徴セクションの遅延を追加・変更 ★★★ */
#features .feature-item:nth-child(2) {
    transition-delay: 0.1s;
}
#features .feature-item:nth-child(3) {
    transition-delay: 0.2s;
}
#features .feature-item:nth-child(4) {
    transition-delay: 0.3s;
}

.gallery-grid .fade-in-section:nth-child(2),
.characters-grid .fade-in-section:nth-child(2) {
    transition-delay: 0.1s;
}
.gallery-grid .fade-in-section:nth-child(3),
.characters-grid .fade-in-section:nth-child(3) {
    transition-delay: 0.2s;
}
.gallery-grid .fade-in-section:nth-child(4),
.characters-grid .fade-in-section:nth-child(4) {
    transition-delay: 0.3s;
}
.characters-grid .fade-in-section:nth-child(5) {
    transition-delay: 0.1s;
}
.characters-grid .fade-in-section:nth-child(6) {
    transition-delay: 0.2s;
}
.characters-grid .fade-in-section:nth-child(7) {
    transition-delay: 0.3s;
}
.characters-grid .fade-in-section:nth-child(8) {
    transition-delay: 0.4s;
}
/* ...必要に応じて続ける */


/* 各能力説明のホバーエフェクト */
.character-item {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.character-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}