/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* モダンなダークテーマ */
    --main-bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #4CAF50; /* マインクラフトの草地のような鮮やかな緑 */
    --card-bg-color: #1e1e1e;
    --shadow-color: rgba(0, 0, 0, 0.5);
    /* フォント設定 */
    --font-primary: 'Roboto', sans-serif;
    --font-display: 'Montserrat', sans-serif;
}

body {
    background-color: var(--main-bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden; /* 横スクロールを防止 */
}

/* ヒーローセクション (メインビジュアル) */
.hero-section {
    position: relative;
    height: 100vh; /* 全画面表示 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* マインクラフトを連想させる背景 (必要に応じて画像を差し替えてください) */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('minecraft-bg-placeholder.jpg') no-repeat center center/cover;
    animation: fadeIn 1s ease-out; /* フェードインアニメーション */
}

.hero-content {
    padding: 20px;
    z-index: 10;
}

/* 大胆なタイポグラフィ */
.server-name {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 10px var(--shadow-color);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    
    /* === 追加: アニメーションの適用 === */
    animation: slideInFromLeft 1.2s ease-out forwards; /* 1.2秒かけて実行 */
    opacity: 0; /* 初期状態では非表示 */
}

.tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* CTAボタン */
.cta-button {
    background-color: var(--accent-color);
    color: #121212;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-color); /* 目を引くシャドウ */
}

.cta-button:hover {
    background-color: #66BB6A;
    transform: translateY(-3px); /* ホバーアニメーション */
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.7);
}

.ip-address {
    margin-left: 10px;
    font-family: monospace; /* IPアドレスに最適なフォント */
}

/* 特徴セクション */
.features-section {
    padding: 80px 5%;
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--accent-color); /* アクセントライン */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.feature-card h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-color);
}

/* フッター */
.footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .server-name {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@keyframes slideInFromLeft {
    0% {
        /* アニメーション開始時: 左外側（-50px）に配置し、透明にする */
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        /* アニメーション終了時: 元の位置（0）に戻し、完全に表示する */
        transform: translateX(0);
        opacity: 1;
    }
}

.tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 2rem;

    /* === 追加: アニメーションの適用 === */
    animation: slideInFromLeft 1.2s ease-out 0.3s forwards; /* 0.3秒遅れて開始 */
    opacity: 0;
}