body {
    background: #f0f7f4;
    font-family: 'Zen Maru Gothic', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-sizing: border-box;
}

h1 {
    font-size: 1.4rem;
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 5px;
}

p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

select, .action-btn {
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 10px;
    border: 2px solid #ddd;
    font-family: inherit;
    cursor: pointer;
}

select {
    background: #fff;
}

.action-btn {
    background: #4caf50;
    color: white;
    border: none;
    box-shadow: 0 3px 6px rgba(76, 175, 80, 0.2);
}
.action-btn:active {
    transform: scale(0.97);
}

.print-btn {
    background: #ff9800;
    box-shadow: 0 3px 6px rgba(255, 152, 0, 0.2);
}

.share-btn {
    background: #03a9f4;
    box-shadow: 0 3px 6px rgba(3, 169, 244, 0.2);
}

.status-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
}

#timer {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.sub-btn {
    padding: 6px 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
}

#table-container {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    max-width: 480px;
    border-collapse: collapse;
    margin: 0 auto;
    table-layout: fixed; /* ★セルの幅を均等に固定する */
}

th, td {
    border: 1px solid #333;
    text-align: center;
    height: 36px;
    width: 36px; /* ★幅と高さを固定してきれいな正方形に揃える */
    font-size: 0.95rem;
    box-sizing: border-box;
}

th {
    background-color: #e8f5e9;
    font-weight: bold;
}

.corner-cell {
    background-color: #c8e6c9;
    font-size: 1.2rem;
}

.back-btn {
    align-self: flex-start;
    margin-left: 10px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.seo-text-box {
    width: 100%;
    max-width: 600px;
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: left;
    box-sizing: border-box;
}

.seo-text-box h1 {
    font-size: 1rem;
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 8px;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 4px;
}

.seo-text-box p {
    font-size: 0.85rem;
    margin: 0;
    color: #555;
    text-align: left;
}

/* 印刷用スタイル */
@media print {
    body {
        background: white;
        padding: 0;
    }
    .container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }
    .no-print, .back-btn, .seo-text-box {
        display: none !important;
    }
    table {
        margin-top: 10px;
        max-width: 100%;
    }
    th, td {
        height: 38px;
        width: 38px;
        font-size: 1rem;
    }
}
