:root {
    --primary-color: #00ffff; /* メインカラー (サイバーな青緑) */
    --background-color: #121212; /* 背景色 (黒に近いグレー) */
    --surface-color: #1e1e1e; /* カードなどの背景色 */
    --text-color: #e0e0e0; /* 基本テキスト色 */
    --dark-text-color: #121212;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 1)), url('https://source.unsplash.com/random/1600x900/?cyberpunk,city') no-repeat center center/cover;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 3rem;
    margin: 0;
    text-shadow: 0 0 15px var(--primary-color);
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 60px;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.item-card {
    background-color: var(--surface-color);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.item-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin: 10px 0;
}

.item-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    flex-grow: 1; /* ボタンを下に配置するための設定 */
}

.item-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.item-card ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.buy-button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.buy-button:hover {
    background-color: var(--primary-color);
    color: var(--dark-text-color);
    box-shadow: 0 0 15px var(--primary-color);
}

/* --- ガチャ --- */
.gacha-container {
    text-align: center;
    padding: 40px;
    background-color: var(--surface-color);
    border-radius: 10px;
}

#gachaButton {
    background-color: var(--primary-color);
    color: var(--dark-text-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    margin-top: 20px;
}

#gachaButton:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}
#gachaButton:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.gacha-result {
    margin-top: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    height: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gacha-result.show {
    opacity: 1;
    transform: translateY(0);
}

.gacha-result span {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
}

/* ガチャ演出用 */
.gacha-box {
    display: none; /* 初期状態では非表示 */
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-color); }
    50% { box-shadow: 0 0 40px #fff, 0 0 60px var(--primary-color); }
}

.item-reveal {
    animation: glow 1.5s ease-in-out;
}
.item-reveal.rare { border: 2px solid gold; }
.item-reveal.super-rare { border: 2px solid #ff00ff; }
.item-reveal.ultra-rare {
    border: 2px solid var(--primary-color);
    animation: glow 1.5s infinite;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #666;
    border-top: 1px solid #333;
}