/* --- 全体 --- */
#s-calc-container { color: #4e4e4e; margin: 0 auto; }

.s-mode-tab { display: flex; background: #eee; border-radius: 30px; padding: 4px; margin-bottom: 25px; }
.s-mode-tab button { flex: 1; border: none; padding: 12px; border-radius: 25px; cursor: pointer; font-weight: bold; color: #777; transition: 0.3s; background: transparent; }#s-calc-container { color: #4e4e4e; /*padding: 25px 15px;*/margin: 0 auto;}

.s-mode-tab { display: flex; background: #eee; border-radius: 30px; padding: 4px; margin-bottom: 25px; }
.s-mode-tab button { flex: 1; border: none; padding: 10px; border-radius: 25px; cursor: pointer; font-weight: bold; color: #777; transition: 0.3s; background: transparent; outline: none; }
.s-mode-tab button.active { background: #735E0D; color: #fff; }

.s-welcome-msg { margin-bottom: 25px; padding: 12px; background: #735E0D; color: #fff; border-radius: 8px; font-weight: bold; text-align: center; font-size: 0.95rem; }
.s-step { margin-bottom: 25px; }
.s-ques { font-size: 1.1rem; font-weight: bold; margin-bottom: 12px; padding-left: 10px; border-left: 5px solid #735E0D; }
.s-grid { display: flex; gap: 8px; flex-wrap: wrap; }

.s-btn {
    background: #fff; border: 1.5px solid #735E0D; color: #735E0D; padding: 12px; font-size: 1rem; cursor: pointer; border-radius: 6px;
    flex: 1; min-width: 130px; transition: 0.2s; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.s-btn.active { background: #735E0D !important; color: #fff !important; }
.s-btn-sub-text { font-size: 0.75rem; margin-top: 4px; opacity: 0.8; font-weight: normal; }

/* 本日表示タグ（復元版） */
.today-tag { font-size: 0.75rem; font-weight: normal; }

/* 複数人合算スタイル */
.s-group-row { background: #fff; border: 1px solid #ddd; padding: 15px; border-radius: 8px; margin-bottom: 10px; }
.s-group-type-label { font-weight: bold; font-size: 1rem; color: #735E0D; margin-bottom: 10px; border-bottom: 1px solid #f0f0f0; padding-bottom: 5px; }
.s-group-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.s-add-btn { background: #fff; border: 1px solid #735E0D; color: #735E0D; padding: 8px 12px; border-radius: 5px; cursor: pointer; font-size: 0.9rem; display: flex; flex-direction: column; align-items: center; }
.s-add-btn small { font-size: 0.7rem; font-weight: bold; background: #735E0D; color: #fff; padding: 1px 6px; border-radius: 10px; margin-top: 4px; }

.s-cart-list { margin: 15px 0; border-top: 1px dashed #ccc; padding-top: 10px; }
.s-cart-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f9f9f9; font-size: 0.9rem; }
.s-cart-del { background: #ffefef; color: #d00; border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 0.7rem; line-height: 24px; }

/* 共通結果カード（注意事項内蔵版） */
.s-res-card { background: #fff; border: 2px solid #735E0D; padding: 25px 20px; border-radius: 12px; text-align: center; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.s-res-label { font-size: 0.95rem; margin-bottom: 5px; opacity: 0.7; }
.s-res-price { font-size: 3rem; font-weight: bold; color: #735E0D; margin-bottom: 15px; line-height: 1; }
.s-res-notes { font-size: 0.85rem; line-height: 1.7; color: #555; border-top: 1px dashed #ddd; padding-top: 15px; text-align: left; display: inline-block; width: 100%; }

.s-reset { background: #fff; color: #735E0D; border: 1.5px solid #735E0D; padding: 10px 25px; border-radius: 30px; cursor: pointer; font-weight: bold; display: block; margin: 10px auto; transition: 0.3s; }

.s-hidden { display: none; }
.s-fade { animation: s_fadeIn 0.5s ease forwards; }
@keyframes s_fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.s-mode-tab button.active { background: #735E0D; color: #fff; }

.s-welcome-msg { margin-bottom: 25px; padding: 12px; background: #735E0D; color: #fff; border-radius: 8px; font-weight: bold; text-align: center; }
.s-step { margin-bottom: 25px; }
.s-ques { font-size: 1.1rem; font-weight: bold; margin-bottom: 15px; padding-left: 10px; border-left: 5px solid #735E0D; }
.s-grid { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- ボタン --- */
.s-btn {
    background: #fff; border: 1.5px solid #735E0D; color: #735E0D; padding: 15px; font-size: 1rem; cursor: pointer; border-radius: 8px;
    flex: 1; min-width: 140px; transition: 0.2s; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.s-btn.active { background: #735E0D !important; color: #fff !important; }
.s-btn-none { background: #f8f8f8 !important; border-color: #ccc !important; color: #666 !important; }

/* 決定ボタン */
.s-opt-decision-wrap { display: flex; justify-content: center; margin-top: 30px; }
.s-btn-apply {
    background: #735E0D !important; color: #fff !important; padding: 15px 40px !important;
    font-size: 1.1rem !important; border-radius: 50px !important; width: auto !important; min-width: 260px;
    box-shadow: 0 4px 15px rgba(115, 94, 13, 0.4); cursor: pointer; border: none;
}

/* --- 複数人モードのカード --- */
.s-group-row { background: #fff; border: 1px solid #ddd; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.s-group-type-label { font-weight: bold; color: #735E0D; margin-bottom: 15px; border-bottom: 2px solid #735E0D; display: inline-block; }
.s-add-btn { flex: 0 1 calc(33.333% - 7px); min-width: 100px; background: #fff; border: 1.5px solid #735E0D; padding: 10px; border-radius: 8px; cursor: pointer; text-align: center; }
.s-add-btn small { display: block; font-size: 0.7rem; background: #735E0D; color: #fff; padding: 2px 5px; border-radius: 10px; margin-top: 5px; }

@media (max-width: 600px) { .s-add-btn { flex: 0 1 calc(50% - 5px); } }

/* --- 警告モーダル（PC/スマホ完全修正） --- */
.s-modal-overlay {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: none; /* JSで制御 */
    align-items: center; justify-content: center;
    z-index: 1000000 !important;
}
.s-modal-content {
    background: #fff; padding: 30px; border-radius: 15px;
    text-align: center; width: 90%; max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.s-modal-btns { display: flex; gap: 15px; margin-top: 25px; }
.s-modal-btn { flex: 1; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; border: none; }
.s-modal-yes { background: #735E0D; color: #fff; }
.s-modal-no { background: #eee; color: #333; }

/* --- 結果表示 --- */
.s-res-card { background: #fff; border: 2px solid #735E0D; padding: 25px; border-radius: 12px; text-align: center; margin-top: 20px; }
.s-res-price { font-size: 3rem; font-weight: bold; color: #735E0D; margin: 10px 0; }
.s-res-notes { font-size: 0.85rem; border-top: 1px dashed #ccc; padding-top: 15px; text-align: left; }
.s-reset { background: #fff; border: 1px solid #735E0D; color: #735E0D; padding: 10px 20px; border-radius: 20px; cursor: pointer; margin-top: 20px; display: block; margin-left: auto; margin-right: auto; }

.s-hidden { display: none !important; }
.s-fade { animation: s_fadeIn 0.4s ease forwards; }
@keyframes s_fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }