body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    padding: 20px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

#form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
}

#scroll-container {
    max-height: 60vh; /* 画面の高さに応じてスクロール可能にする */
    overflow-y: auto;
    padding-right: 15px; /* スクロールバーのためのスペース */
}

.menu-category-title {
    font-size: 1.5em;
    color: #004d40;
    margin-top: 20px;
    margin-bottom: 10px;
    display: block;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.menu-subtitle {
    font-size: 1.2em;
    color: #00695c;
    margin-top: 15px;
    margin-bottom: 5px;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2); /* チェックボックスを少し大きくする */
}

.set-detail {
    font-size: 0.8em;
    color: #666;
    margin-left: 10px;
    display: block;
}

.total-row-wrapper {
    background-color: #e0f2f1;
    border: 2px solid #004d40;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.total-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

#totalPrice {
    font-size: 1.5em;
    font-weight: bold;
    color: #cc0000;
}

#totalTime {
    font-size: 1.5em;
    font-weight: bold;
    color: #cc0000;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 4px;
    width: 80px;
    text-align: center;
}

#message-area {
    width: 100%;
    height: 120px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

.copy-button, .reservation-button {
    background-color: #004d40;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    width: 48%; /* ボタンを横並びにする */
    box-sizing: border-box;
}

.copy-button:hover, .reservation-button:hover {
    background-color: #00897b;
}

.total-row > span {
    margin-right: 20px;
}

/* スタイル調整 */
.time-input-container {
    display: inline-block;
    margin-left: 10px;
}

#totalTime {
    font-size: 1.2em;
    font-weight: bold;
    color: #004d40;
    border: none;
    background: transparent;
    padding: 0;
    width: auto;
}

/* スマホ対応のためのメディアクエリ */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    #form-container {
        padding: 15px;
    }

    .total-row-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .total-row > span {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }

    .copy-button, .reservation-button {
        width: 100%;
        margin-bottom: 10px;
    }
}
