/* 基本設定 */
body {
    font-family: 'DotGothic16', sans-serif; /* メインフォント。Minecraftっぽいものを選ぶ */
    margin: 0;
    background-color: #333; /* 暗い背景 */
    color: #eee; /* 明るい文字色 */
    line-height: 1.6;
    scroll-behavior: smooth; /* スムーズスクロール */
    background-image: url('images/background-pattern.png'); /* ブロック調の背景パターンなど */
    background-repeat: repeat;
    background-size: 64px; /* パターンサイズ調整 */
}

/* ヘッダー、フッター、セクションの共通スタイル */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #222;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    border-bottom: 5px solid #5a2; /* Minecraftの土ブロックのような色 */
}

header h1 {
    font-family: 'Press Start 2P', cursive; /* Minecraftロゴっぽいフォント */
    font-size: 2.5em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0 #000;
}

header p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* スマホで折り返す */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #5a2; /* ホバーでMinecraftらしい緑色 */
    border-color: #eee;
}

.section-block {
    padding: 40px 0;
    background-color: #444; /* セクションの背景色 */
    margin-bottom: 20px;
    border: 5px solid #222; /* ブロック感を出すボーダー */
    box-shadow: 5px 5px 0 #000; /* 立体感を出す影 */
    border-radius: 8px; /* 角を少し丸める */
}

.section-block h2 {
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
}

footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 5px solid #5a2;
}

footer .social-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #5a2;
}

/* ボタンのスタイル */
.btn-discord {
    display: inline-block;
    background-color: #7289DA; /* Discordの色 */
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 3px solid #5566AA; /* Discord色の濃いボーダー */
    box-shadow: 4px 4px 0 #334488; /* 立体感を出す影 */
}

.btn-discord:hover {
    background-color: #677BC4;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 #334488;
}

.btn-discord.small {
    padding: 10px 20px;
    font-size: 1em;
}

.btn-discord.large {
    padding: 20px 40px;
    font-size: 1.5em;
}

.btn-submit {
    display: inline-block;
    background-color: #4CAF50; /* 緑色の送信ボタン */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    border: 3px solid #388E3C;
    box-shadow: 3px 3px 0 #2E7D32;
}

.btn-submit:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 4px 4px 0 #2E7D32;
}

/* ブロック調の画像ボーダー */
.block-border {
    border: 5px solid #8B4513; /* 土ブロックっぽい色 */
    box-shadow: 5px 5px 0 #5A2; /* 草ブロックっぽい影 */
    border-radius: 8px;
    display: block; /* 画像をブロック要素にする */
    margin: 0 auto; /* 中央寄せ */
    max-width: 100%;
    height: auto;
}
.block-border.small {
    max-width: 60%; /* 小さめの画像用 */
}


/* ヒーローセクション */
.hero-section {
    background-color: #383838;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 5px solid #5a2;
}
.hero-section .container {
    display: flex;
    flex-direction: row; /* 横並び */
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-content {
    flex: 1;
    text-align: left;
}
.hero-content h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 3px 3px 0 #000;
}
.hero-content p {
    font-size: 1.3em;
    margin-bottom: 20px;
}
.hero-image {
    flex: 1;
    text-align: right;
}
.hero-image img {
    width: 100%;
    max-width: 500px; /* 画像の最大幅 */
    height: auto;
}
.server-status {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    background-color: #2a2a2a;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block; /* インラインブロックにして幅をコンテンツに合わせる */
    border: 2px solid #5a2;
    box-shadow: 2px 2px 0 #000;
}
.server-status span {
    color: #0F0; /* オンラインの色 */
}


/* サーバー概要グリッド */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.about-item {
    background-color: #333;
    padding: 25px;
    border-radius: 8px;
    border: 3px solid #8B4513;
    box-shadow: 4px 4px 0 #5A2;
}

.about-item h3 {
    font-size: 1.5em;
    margin-top: 0;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 1px 1px 0 #000;
}

/* 参加方法ステップ */
.join-steps {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.join-steps li {
    background-color: #333;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 3px solid #8B4513;
    box-shadow: 4px 4px 0 #5A2;
}

.join-steps li h3 {
    font-size: 1.6em;
    margin-top: 0;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 1px 1px 0 #000;
}

.join-steps li code {
    background-color: #222;
    padding: 5px 10px;
    border-radius: 4px;
    color: #0F0; /* IPアドレスなどを目立たせる */
    font-weight: bold;
}

/* ルールリスト */
.rule-list {
    list-style-type: none; /* デフォルトのリストスタイルをなくす */
    padding: 0;
    margin-top: 30px;
}

.rule-list li {
    background-color: #333;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #FFD700; /* 金色っぽいボーダー */
    border-radius: 4px;
}
.rule-list li:before {
    content: "⛏️ "; /* Minecraftのピッケル絵文字など */
    margin-right: 10px;
    color: #FFD700;
}


/* ギャラリー */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.image-gallery img {
    width: 100%;
    height: 200px; /* 高さ固定でオブジェクトフィット */
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 8px 8px 0 #5A2; /* ホバーで影を強調 */
}

/* よくある質問 */
.faq-item {
    background-color: #333;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 2px solid #8B4513;
    box-shadow: 3px 3px 0 #5A2;
}

.faq-item h3 {
    font-size: 1.4em;
    margin-top: 0;
    cursor: pointer; /* クリック可能であることを示唆 */
    color: #fff;
    position: relative;
    padding-left: 25px; /* アイコン分のスペース */
}
.faq-item h3::before {
    content: "+ "; /* 折りたたみ記号など */
    position: absolute;
    left: 0;
    color: #FFD700;
}
/* JavaScriptで展開時に '-' に切り替えるなど */

.faq-item p {
    margin-top: 10px;
    /* initial hide, reveal with JS */
    /* display: none; */
}

/* お問い合わせフォーム */
.contact-form {
    background-color: #333;
    padding: 30px;
    border-radius: 8px;
    border: 3px solid #8B4513;
    box-shadow: 4px 4px 0 #5A2;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #eee;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px); /* パディングを考慮 */
    padding: 10px;
    border: 2px solid #555;
    background-color: #222;
    color: #eee;
    border-radius: 5px;
    font-family: 'DotGothic16', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #5a2;
}

/* Discord呼びかけセクション */
.discord-call-to-action {
    text-align: center;
    background-color: #2a2a2a;
    padding: 50px 0;
    border: 5px solid #7289DA;
    box-shadow: 0 0 15px rgba(114, 137, 218, 0.5); /* Discordカラーの光る影 */
}
.discord-call-to-action h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
}
.discord-call-to-action p {
    font-size: 1.2em;
    margin-bottom: 30px;
}


/* レスポンシブデザイン */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    .hero-section .container {
        flex-direction: column; /* 縦並び */
        text-align: center;
    }
    .hero-content, .hero-image {
        text-align: center; /* センター寄せ */
    }
    .hero-image img {
        max-width: 80%; /* スマホでの画像サイズ調整 */
    }

    .about-grid {
        grid-template-columns: 1fr; /* 1列に */
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* スマホで小さめに */
    }

    .btn-discord {
        padding: 12px 25px;
        font-size: 1em;
    }
    .btn-discord.large {
        padding: 15px 30px;
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    .hero-content h2 {
        font-size: 2em;
    }
    .section-block h2 {
        font-size: 1.8em;
    }
    .btn-discord {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .btn-discord.large {
        padding: 12px 25px;
        font-size: 1em;
    }
}