/* 全体の設定 */
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    background-color: #f7f7f7;
    text-align: center;
    color: #333;
    padding: 20px;
}

.header-section { margin-top: 20px; }

/* カードエリア */
.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 20px;
}

.card-slot {
    width: 220px;
    height: 320px;
    border-radius: 20px;
    border: 3px dashed #bbb;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-inner {
    width: 190px;
    height: 290px;
    border-radius: 15px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.yellow-card { background-color: #ffeb3b; }
.blue-card { background-color: #03a9f4; color: white; padding: 15px; text-align: center; box-sizing: border-box; }

.val-num { font-size: 80px; font-weight: bold; }
.val-text { font-size: 24px; font-weight: bold; line-height: 1.4; }

/* ボタン */
.btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

button {
    padding: 15px 60px;
    font-size: 22px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.2s;
}

.draw-btn { background-color: #4caf50; color: white; }
.reset-btn { background-color: #757575; color: white; padding: 10px 40px; font-size: 18px; }

button:hover { opacity: 0.9; transform: translateY(-2px); }
button:disabled { background-color: #ccc; transform: none; cursor: not-allowed; }

/* ルールグリッド（画像イメージ再現） */
.rule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background-color: #4a148c;
    border: 2px solid #4a148c;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.cell {
    background: white;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.cell-num {
    width: 25px;
    height: 25px;
    background: #4a148c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.cell-text {
    font-size: 16px;
    color: #4a148c;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
}