/* ==================== リセット・基本設定 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==================== ゲームコンテナ ==================== */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== ヘッダー ==================== */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.home-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.stage-indicator {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.stage-number {
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* プログレスバー */
.progress-container {
    text-align: center;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 10%;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* お財布表示 */
.wallet-display {
    text-align: center;
    background: linear-gradient(135deg, #FFA726 0%, #FF9800 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
}

.wallet-label {
    font-size: 0.8rem;
    display: block;
}

.wallet-amount {
    font-size: 1.2rem;
}

.stars-display {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 1.5rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.star.earned {
    animation: starGlow 1s ease-in-out;
}

@keyframes starGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ==================== メイン画面 ==================== */
.game-main {
    flex: 1;
    padding: 0 20px 20px;
}

/* ==================== スタート画面 ==================== */
.start-screen {
    text-align: center;
    color: white;
}

.character-intro {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.character {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.speech-bubble {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #4CAF50;
}

/* モード選択 */
.mode-selection h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #333;
}

.mode-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.mode-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.mode-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #4CAF50;
}

.mode-desc {
    font-size: 1rem;
    color: #666;
}

/* ステージ選択 */
.stage-selection h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.stage-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #333;
}

.stage-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stage-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.stage-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.stage-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #4CAF50;
}

.stage-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.stage-difficulty {
    font-size: 1.2rem;
    color: #ffd700;
}

.back-to-mode {
    margin-top: 20px;
}

/* ==================== お金学習画面 ==================== */
.learn-screen {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333;
}

.learn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 15px;
}

.learn-header h2 {
    font-size: 1.8rem;
    color: #4CAF50;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #4CAF50;
    color: white;
}

.tab-btn:hover {
    transform: translateY(-2px);
}

.category-panel {
    display: none;
}

.category-panel.active {
    display: block;
}

.category-panel h3 {
    font-size: 1.5rem;
    color: #4CAF50;
    margin-bottom: 25px;
    text-align: center;
}

.money-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.money-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.2);
    transition: all 0.3s ease;
}

.money-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

/* お金の視覚表示 */
.money-visual {
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* 硬貨のスタイル */
.coin {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ddd;
}

.coin-1 {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #666;
}

.coin-5 {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #8b4513;
    position: relative;
}

.coin-5::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #8b4513;
}

.coin-10 {
    background: linear-gradient(135deg, #cd853f 0%, #a0522d 100%);
    color: white;
}

.coin-50 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
    color: #333;
    position: relative;
}

.coin-50::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #333;
}

.coin-100 {
    background: linear-gradient(135deg, #e5e5e5 0%, #d0d0d0 100%);
    color: #333;
}

.coin-500 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
    color: #333;
}

/* 紙幣のスタイル */
.bill {
    width: 120px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    position: relative;
}

.bill-1000 {
    background: linear-gradient(135deg, #7da67d 0%, #6b946b 100%) !important;
    color: white !important;
    border: 2px solid #4d6b4d !important;
}

.bill-1000::after {
    content: '👨‍⚕️';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
}

.bill-5000 {
    background: linear-gradient(135deg, #8b6b94 0%, #7a5a83 100%) !important;
    color: white !important;
    border: 2px solid #5a4463 !important;
}

.bill-5000::after {
    content: '👩‍🎨';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
}

.bill-10000 {
    background: linear-gradient(135deg, #9d8b6b 0%, #8b7a5a 100%) !important;
    color: white !important;
    border: 2px solid #6b5a44 !important;
}

.bill-10000::after {
    content: '🎓';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
}

.money-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 8px;
}

.money-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.sound-btn {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
}

.sound-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.learn-actions {
    text-align: center;
    margin-top: 30px;
}

/* ==================== ゲーム画面 ==================== */
.game-screen {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    min-height: 500px;
}

.problem-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.character-guide {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 15px;
    border-left: 5px solid #4CAF50;
}

.character-guide .character {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.guide-text {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.money-problem {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.options-area {
    margin: 30px 0;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.option-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

.option-btn.correct {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    animation: correctPulse 0.6s ease-in-out;
    color: #8b4513;
}

.option-btn.incorrect {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: shake 0.5s ease-in-out;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* アクションボタン */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.btn-secondary:hover {
    background: #4CAF50;
    color: white;
}

/* ==================== ビジュアルエリア ==================== */
.visual-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.money-display, .calculation-help {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.money-display h4, .calculation-help h4 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.money-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px dashed rgba(76, 175, 80, 0.3);
}

.money-item-display {
    transition: all 0.3s ease;
    animation: moneyAppear 0.5s ease-in-out;
}

@keyframes moneyAppear {
    0% { transform: scale(0) rotate(180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.calc-steps {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.calc-step {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

/* ==================== お買い物画面 ==================== */
.shopping-screen {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
}

.shop-header h2 {
    color: #4CAF50;
}

.shop-wallet {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FF9800;
}

.shop-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.shop-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.shop-item.selected {
    border-color: #FF9800;
    background: linear-gradient(145deg, #fff8e1 0%, #ffecb3 100%);
}

.item-image {
    font-size: 3rem;
    margin-bottom: 10px;
}

.item-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4CAF50;
}

.shop-cart {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.shop-cart h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    text-align: center;
}

.cart-items {
    min-height: 100px;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.empty-cart {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

.cart-total {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    color: #4CAF50;
    margin-bottom: 15px;
}

/* ==================== 結果画面 ==================== */
.result-screen {
    text-align: center;
    color: white;
    padding: 40px;
}

.result-character .character {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: celebration 1s ease-in-out;
}

@keyframes celebration {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    75% { transform: scale(1.2) rotate(5deg); }
}

.result-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    color: #333;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

.result-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4CAF50;
}

.stat-stars {
    font-size: 2rem;
}

.result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ==================== パーティクルエフェクト ==================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    animation: particleFloat 3s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

/* ==================== レスポンシブデザイン ==================== */
@media (max-width: 968px) {
    .game-screen {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shop-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .header-left, .header-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mode-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stage-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .money-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shop-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .character {
        font-size: 4rem !important;
    }
}

@media (max-width: 480px) {
    .game-main {
        padding: 0 10px 10px;
    }
    
    .problem-area {
        padding: 20px;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .result-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 200px;
    }
    
    .money-visual {
        transform: scale(0.8);
    }
}

/* ==================== ポイント獲得アニメーション ==================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.points-earned-message {
    animation: slideInRight 0.5s ease-out;
}

.points-earned-message .points-icon {
    font-size: 1.2em;
    animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-3px);
    }
}