* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 16px;
    color: #ffd700;
}

.main-content {
    padding: 30px;
}

/* タブナビゲーション */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* タブコンテンツ */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

/* ドラゴン表示 */
.dragon-display {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

.dragon-sprite {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.dragon-placeholder {
    font-size: 120px;
    animation: bounce 2s infinite;
}

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

.dragon-info {
    flex: 1;
}

.dragon-info h2 {
    font-size: 28px;
    color: #667eea;
    margin-bottom: 10px;
}

.dragon-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

/* ステータスバー */
.stats {
    margin-top: 20px;
}

.stat {
    margin-bottom: 15px;
}

.stat span {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.stat-bar {
    width: 100%;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s;
}

.stat-bar.exp .stat-fill {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

/* アクションボタン */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-explore, .btn-craft {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #666;
}

.btn-secondary:hover:not(:disabled) {
    background: #d0d0d0;
}

.btn-secondary:disabled, .btn-explore:disabled, .btn-craft:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ドラゴンリスト */
.dragon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 16px;
}

/* 探索エリア */
.explore-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.area-card {
    padding: 20px;
    background: #f5f7fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.area-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.area-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #667eea;
}

.area-card p {
    color: #666;
    margin-bottom: 8px;
}

.area-card .time {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.btn-explore {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-explore:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.exploration-status {
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    display: none;
}

.exploration-status.active {
    display: block;
}

/* レシピリスト */
.recipe-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.recipe-card {
    padding: 20px;
    background: #f5f7fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    text-align: center;
}

.recipe-card.locked {
    opacity: 0.6;
}

.recipe-card h3 {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 10px;
}

.recipe-card .materials {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.btn-craft {
    width: 100%;
    background: #28a745;
    color: white;
}

.btn-craft:hover:not(:disabled) {
    background: #218838;
}

/* 倉庫 */
.inventory-section {
    margin-bottom: 30px;
}

.inventory-section h3 {
    font-size: 20px;
    color: #667eea;
    margin-bottom: 15px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.inventory-item {
    padding: 15px;
    background: #f5f7fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-icon {
    font-size: 32px;
}

.item-name {
    flex: 1;
    font-weight: bold;
    color: #555;
}

.item-count {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
}

/* フッター */
footer {
    padding: 20px;
    text-align: center;
    background: #f5f7fa;
    color: #999;
    font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    header h1 {
        font-size: 28px;
    }

    .main-content {
        padding: 20px;
    }

    .dragon-display {
        flex-direction: column;
    }

    .dragon-placeholder {
        font-size: 80px;
    }

    .tabs {
        gap: 5px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}
