@charset "UTF-8";
/* 惣菜予約フォーム 管理画面CSS */

body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
}


/* カレンダー設定箇所 */
#calendar-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.calendar-month {
  width: calc(50% - 10px);
  border: 1px solid #ccc;
  padding: 10px;
  background: #fafafa;
}
.calendar-table {
  width: 100%;
  border-collapse: collapse;
}
.calendar-table th, .calendar-table td {
  border: 1px solid #ddd;
  text-align: center;
  padding: 4px;
}
#calendar-nav {
  margin-bottom: 10px;
}


/* 惣菜予約フォーム フロントCSS */
.entry-header {
	display: none;
}

body.page,
.reservation-title-image,
body.page .reservation-title-image:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.reservation-title-image {
	width: 60%;
	height: auto;
	margin: auto;
}
.reservation-title-image img {
	width: 100%;
	height: auto;
}

#souzai-form {
  background: #fff;
  max-width: 480px;
  margin: 0px auto;
  border-radius: 16px;
}

#souzai-form h3 {
  font-size: 18px;
  color: #e45513;
	text-align: center;
	padding: 20px 0 10px 0;
}

#souzai-form select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#souzai-form ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  list-style: none;
  margin: 0 0 16px;
}

#souzai-form li {
background: #f6f6f6;
  border-radius: 12px;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#souzai-form li img {
  width: 100%;
  height: 120px; /* 高さを固定 */
  object-fit: cover; /* 中央を切り取って表示 */
  border-radius: 6px;
  margin-bottom: 8px;
}


#souzai-form li input[type="number"] {
  width: 60px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  border: none;
  background: #eee;
  padding: 6px 0;
  margin: 6px 4px;
  border-radius: 6px;
}

#souzai-form .item-unit {
  color: #ff5500;
  font-weight: bold;
  font-size: 16px;
}

#souzai-form p.total-label {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin: 24px 0 4px;
}

#total_price {
  font-size: 28px;
  color: #00aaff;
  font-weight: bold;
}

#souzai-form input[type="text"],
#souzai-form input[type="email"],
#souzai-form input[type="tel"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}




#souzai-form button[type="submit"] {
  width: 100%;
  background: #e45513;
  color: #fff;
  font-size: 20px;
  padding: 14px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#souzai-form button[type="submit"]:hover {
  background: #cc2200;
}


/* 日付と時間セレクトボックスを横並びにする */
#souzai-form .datetime-wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

#souzai-form .datetime-wrap select {
  flex: 1;
  margin-bottom: 0;
}

/* 「1回のご予約上限金額は」の箇所 */
.max-total-notice {
	text-align: center;
	font-size: 15px;
	background-color: #FBE3D7;
	margin-bottom: 20px;
}

/* 受付設定のフリーワード箇所 */
.max-total-notice {
	text-align: center;
	font-size: 17px;
	background-color: #FBE3D7;
	margin-bottom: 30px;
	padding: 5px;
	border-radius: 5px;
}

/* 合計金額箇所 */
#souzai-form p.total-label {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin: 24px 0 4px;
}

/* 商品一覧箇所 */
#souzai-form .item-name {
  font-size: 16px;        /* 商品名のサイズ調整可 */
  color: #e45513;          /* 商品名の色指定 */
  font-weight: bold;
  margin-bottom: 4px;
}

#souzai-form .item-price {
  font-size: 14px;         /* 金額のサイズ調整可 */
  color: #333;
  margin-bottom: 6px;
}

#souzai-form .item-qty {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#souzai-form .item-qty input[type="number"] {
  width: 60px;
  font-size: 16px;
  text-align: center;
  border: none;
  background: #eee;
  padding: 6px 0;
  border-radius: 6px;
}

#souzai-form .item-unit {
  font-size: 14px;         /* ← ここで「個」や「本」などのサイズ調整 */
  color: #444;
}

#souzai-form .item-limit {
  font-size: 13px;
	background-color: #FF0000;
  color: #ffffff;
  margin-top: 4px;
	border-radius: 10px;
}



/* 予約内容確認の削除ボタン箇所 */
#souzai-form li.confirm-item button.remove-item-btn {
	all: unset; /* ← ブラウザのデフォルト装飾を完全にリセット */
	display: inline-block;
	background-color: #ccc; /* 薄グレー */
	color: #000; /* 黒文字 */
	border: none;
	padding: 6px 16px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	margin-top: 10px;
	transition: background-color 0.3s;
	text-align: center;
}
#souzai-form li.confirm-item button.remove-item-btn:hover {
	background-color: #bbb !important;
}




/* 予約番号で照会箇所 */
.reservation-check-wrapper {
  padding: 0px 20px 20px 20px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
	background: #f5f5f5;
	border-radius: 8px;
}

.resv-check-title {
  font-size: 24px;
	padding: 20px 0 10px 0;
}

.resv-check-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.resv-check-label {
  font-size: 18px;
  font-weight: bold;
  margin-right: 10px;
  margin-bottom: 8px;
}

.resv-check-row input[type="text"] {
  width: 320px;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.resv-check-btn {
  background: #0caff7;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto;
}

.resv-check-btn:hover {
  background: #008fcc;
}

.reservation-check h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.reservation-check input[type="text"] {
  width: calc(100% - 100px);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.reservation-check input[type="submit"] {
  background: #444;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  margin-left: 8px;
  cursor: pointer;
}

/* 「予約する」と「確認する」共通箇所 */
.btn-size-large {
  font-size: 1.2em;
  padding: 15px 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 20px auto;
  font-weight: bold;
  border: none;
}

/* 予約するボタン（オレンジ） */
.reserve-btn {
  background: #f14500;
  color: #fff;
}

/* 確認するボタン（青） */
.resv-check-btn {
  background: #0caff7;
  color: #fff;
}

/* 画面遷移後に見た目を整える箇所 */
.reservation-result {
	width: 550px;
	height: auto;
    background: #fff;
    margin: auto;
    text-align: center;
}

.resv-thanks {
    font-size: 24px;
    color: #f4511e;
    font-weight: bold;
    margin-bottom: 20px;
}

.reservation-result p.resv-description {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
	text-align: justify;
    margin-bottom: 30px;
}

.resv-box {
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.resv-label {
  background-color: #838383;
  color: #fff;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 18px;
	margin-bottom: 20px;
}

.resv-box span.reservation-id {
	display: block;
    font-size: 36px;
    font-weight: bold;
    color: #00aaff;
	padding-top: 10px;
}

.reservation-result p.resv-note {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
	text-align: justify;
}

/* ▼ 予約照会フォーム */
.reservation-complete-wrapper {
	width: 90%;
	height: auto;
    background: #ffffff;
    margin: auto;
}

.resv-check-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #3c3c3c;
}

.resv-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.resv-check-label {
    font-weight: bold;
    min-width: 100px;
}

.resv-check-btn {
    width: 100%;
    max-width: 200px;
    background: #00aaff;
    color: white;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}


#souzai-form button[type="submit"].resv-check-btn {
  width: 100%;
  background: #00aaff;
  color: #fff;
  font-size: 20px;
  padding: 14px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#souzai-form button[type="submit"].resv-check-btn:hover {
  background: #e45513;
}


/* 予約内容確認箇所 */
.resv-lookup {
	max-width: 680px;
	background-color: #F9FFF7;
	padding: 10px;
	margin: auto;
	margin-bottom: 15px;
	border-radius: 5px;
}

.resv-lookup h3 {
	text-align: center;
}

.resv-item {
	font-size: 20px;
	background-color: #FBE3D7;
}

.resv-time {
	font-size: 20px;
	background-color: #FBE3D7;
}

.resv-total {
	font-size: 25px;
	padding-top: 20px;
}


/* 予約内容確認箇所-ボタンの色 */
#confirm-button {
    background-color: #8fc31f;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#confirm-button:hover {
    background-color: #79a91a; /* 少し暗めの色 */
}



/* 在庫ステータス全体 */
.stock-status {
  font-weight: bold;
  margin-top: 5px;
  font-size: 0.95em;
}

/* 在庫あり（緑） */
.stock-status.in-stock {
  color: #28a745;
}

/* 在庫僅少（オレンジ） */
.stock-status.low-stock {
  color: #ff9800;
}

/* 残り個数表示（赤） */
.stock-status.few-left {
  color: #e53935;
}

/* 在庫なし（グレー） */
.stock-status.out-of-stock {
  color: #999;
  text-decoration: line-through;
}






/* 日時未選択時に表示される警告 */
/* 警告バー */
#pickup-warning {
  display: none;
  background: #b30000;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 500px; /* スロットに幅を合わせる */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#pickup-warning.show {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

#pickup-warning.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 500px;
  z-index: 9999;
  border-radius: 4px; /* ← 通常時と合わせておくと違和感が減る */
  transition: all 0.3s ease; /* ← 見た目が自然になる */
}

/* セレクトボックスのラップ */
.datetime-slot-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}





/* 合計金額オーバー時に表示される警告 */
/* 画面上部にふわっと出る警告 */
.souzai-error-banner-fixed {
  position: fixed;
  top: 0; /* 画面最上部に変更する場合は top: 0 */
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #b30000;
  color: #ffffff;
  padding: 10px 20px;
  font-weight: bold;
  border: none; /* 枠線なしが一般的だが好みで残してもOK */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  text-align: center;
}


/* 合計金額下に表示される合計金額超過表示箇所 */
#total_warning {
  text-align: center;
	background: #b30000;
	color: #ffffff !important;
	padding: 10px 20px;
}


/* 受付時間超過表示箇所 */
.souzai-error-banner-fixed {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #b30000;
  color: #ffffff;
  padding: 12px 20px;
  z-index: 9999;
  border-radius: 6px;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}



.member-form-container {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.member-form-container h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
}

.member-form-container p {
    margin-bottom: 12px;
}

.member-form-container input[type="text"],
.member-form-container input[type="email"],
.member-form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.member-form-container button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.member-register button {
    background-color: #4CAF50; /* 緑 */
}

.member-login button {
    background-color: #0073aa; /* 青 */
}


/* ▼ 共通フォームエリア */
form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
}
form p {
    margin-bottom: 15px;
}

/* ▼ 会員登録・ログインフォーム枠 */
.souzai-login-box {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}
.souzai-login-box h3 {
    margin-bottom: 20px;
    font-size: 20px;
}
.souzai-login-box input {
    width: 100%; /* ← 90%をやめる */
    padding: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ▼ ボタン */
.member-btn,
.btn-login,
a.btn-reserve {
    display: block;
    width: 100%; /* 幅を100%に統一 */
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    margin-top: 10px;
    box-sizing: border-box;
}
.btn-login { background: #0073aa; }
.btn-login:hover { background: #005177; }
a.btn-reserve { background: #4CAF50; }
a.btn-reserve:hover { background: #3d8e41; }
.member-btn.btn-register { background: #ff6600; } /* オレンジ */
.member-btn.btn-register:hover { background: #e65c00; }

/* ▼ 上部ログイン案内エリア */
.souzai-login-area {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}
.souzai-login-text {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}
.souzai-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}
.souzai-btn-login { background: #e00; }
.souzai-btn-mypage { background: #4CAF50; }
.souzai-btn-logout { background: #0073aa; }




.mypage-header .btn-area {
    display: flex;
    justify-content: center;
    gap: 10px; /* ボタン間のスペース */
    margin-top: 10px;
}

.mypage-header .btn-area a {
    flex: 1; /* 幅を均等に */
    max-width: 200px; /* 2つ並べるときの最大幅を制御 */
    text-align: center;
}




.member-error {
    background: #d00; color: #fff; font-weight: bold;
    padding: 12px; text-align: center;
    border-radius: 4px; margin-bottom: 20px;
}
