/* =========================================================
   鶴の趣味 あそび場
   ゲーム共通スタイル
   ========================================================= */

/* ---------------------------------------------------------
   ゲーム全体
   --------------------------------------------------------- */

.asobiba-game-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 20px;
}


/* ---------------------------------------------------------
   ゲームヘッダー
   --------------------------------------------------------- */

.asobiba-game-header {
    text-align: center;
    margin-bottom: 30px;
}

.asobiba-game-title {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
}

.asobiba-game-subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: #777;
}


/* ---------------------------------------------------------
   問題エリア
   --------------------------------------------------------- */

.asobiba-question {
    text-align: center;
    margin-bottom: 30px;
}

.asobiba-question-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   回答エリア
   --------------------------------------------------------- */

.asobiba-answers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.asobiba-answer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 15px;
    box-sizing: border-box;

    background: #fff;
    border: 3px solid #ddd;
    border-radius: 16px;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.asobiba-answer:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    border-color: #aaa;
}

.asobiba-answer:active {
    transform: translateY(0);
}

.asobiba-answer img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ---------------------------------------------------------
   正解・不正解
   --------------------------------------------------------- */

.asobiba-answer.is-correct {
    border-color: #2ecc71;
    background: #eafaf1;
}

.asobiba-answer.is-wrong {
    border-color: #e74c3c;
    background: #fdf0ee;
}


/* ---------------------------------------------------------
   結果表示
   --------------------------------------------------------- */

.asobiba-result {
    text-align: center;
    margin-top: 25px;
    min-height: 40px;

    font-size: 24px;
    font-weight: bold;
}

.asobiba-result.is-correct {
    color: #27ae60;
}

.asobiba-result.is-wrong {
    color: #e74c3c;
}


/* ---------------------------------------------------------
   ゲーム情報
   --------------------------------------------------------- */

.asobiba-game-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;

    margin: 25px auto 0;

    font-size: 16px;
}

.asobiba-score {
    font-weight: bold;
}

.asobiba-question-count {
    color: #666;
}


/* ---------------------------------------------------------
   ボタン
   --------------------------------------------------------- */

.asobiba-button {
    display: inline-block;

    padding: 12px 28px;

    border: none;
    border-radius: 999px;

    background: #3498db;
    color: #fff;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.asobiba-button:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

.asobiba-button:active {
    transform: scale(0.97);
}


/* ---------------------------------------------------------
   ナビゲーション
   --------------------------------------------------------- */

.asobiba-game-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 40px;
    padding-top: 25px;

    border-top: 1px solid #ddd;
}

.asobiba-game-nav a {
    display: inline-block;

    padding: 8px 16px;

    border-radius: 999px;

    background: #f2f2f2;
    color: #555;

    font-size: 14px;
    text-decoration: none;
}

.asobiba-game-nav a:hover {
    background: #e5e5e5;
    color: #333;
}


/* ---------------------------------------------------------
   スマートフォン
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .asobiba-game-page {
        padding: 15px;
    }

    .asobiba-game-title {
        font-size: 26px;
    }

    .asobiba-game-subtitle {
        font-size: 13px;
    }

    .asobiba-answers {
        gap: 10px;
    }

    .asobiba-answer {
        min-height: 120px;
        padding: 10px;
        border-width: 2px;
        border-radius: 12px;
    }

    .asobiba-game-info {
        gap: 20px;
        font-size: 14px;
    }

    .asobiba-button {
        padding: 10px 22px;
        font-size: 15px;
    }

}


/* ---------------------------------------------------------
   小型スマートフォン
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .asobiba-game-page {
        padding: 10px;
    }

    .asobiba-game-title {
        font-size: 23px;
    }

    .asobiba-question {
        margin-bottom: 20px;
    }

    .asobiba-answers {
        gap: 7px;
    }

    .asobiba-answer {
        min-height: 100px;
        padding: 7px;
        border-radius: 10px;
    }

}

/* =========================================================
   言語切り替え
   ========================================================= */

.asobiba-language-switch {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.asobiba-language-button {
    padding: 7px 18px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.asobiba-language-button.is-active {
    background: #555;
    color: #fff;
    border-color: #555;
}


/* =========================================================
   多言語表示
   ========================================================= */

.asobiba-label-en {
    display: none;
}

.asobiba-color-game.is-english .asobiba-label-ja {
    display: none;
}

.asobiba-color-game.is-english .asobiba-label-en {
    display: inline;
}


/* =========================================================
   スマートフォン
   ========================================================= */

@media (max-width: 480px) {

    .asobiba-language-switch {
        margin-bottom: 20px;
    }

    .asobiba-language-button {
        padding: 6px 15px;
        font-size: 13px;
    }

}