
/*非表示H1*/
.sr-only {
	position:absolute;
	left:-9999px;
	width:1px;
	height:1px;
	overflow:hidden;
}

.header { position: relative; }

/* FAQボタン */
.faq-button {
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	z-index: 2;
	background: #fff;
	color: #e60000;
	border: 2px solid #fff;
	border-radius: 50px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s ease;
}
.faq-button:hover {
	background: #ffc0cb;
	border-color: #fff;
}

/* FAQモーダル */
.faq-modal {
	display:none;
	position:fixed;
	inset:0;
	z-index:1000;
	background:rgba(0,0,0,.6);
	justify-content: center;
	align-items: center;
	padding: 16px;
}
.faq-content{
	position: relative;
	background:#fff;
	width: 50%;
	max-width: none;
	max-height: 80vh;
	overflow: auto;
	margin: 0;
	padding: 24px 20px 40px;
	border-radius: 12px;
	box-sizing: border-box;
	box-shadow: 0 8px 24px rgba(0,0,0,.2);
	font-size: 24px;
}
.faq-close {
	position: absolute;
	top: 8px;
	right:10px;
	background: none;
	border: none;
	color:#e60000;
	font-size:22px;
	line-height:1;
	cursor:pointer;
}
.faq-close:hover {
	color:#cc0000;
}
.faq-content h2 {
	margin:0 0 10px;
	font-size:18px;
}
.faq-content hr {
	margin: 40px 0 24px !important;
}
.faq-content p {
	font-size: 16px !important;
	line-height: 1.6;
	margin: 24px 0;
}
.faq-content details > summary {
	display: block;
	width: 100%;
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 6px 0;
}
.faq-content details > summary::marker {
	display: none;
}
.faq-content details > summary::before {
	content: "▶";
	margin-right: 6px;
}
.faq-content details[open] > summary::before {
	content: "▼";
}
.faq-content details[open] > summary {
	border-bottom: 1px solid #e60000;
	padding-bottom: 4px;
	margin-bottom: 8px;
}


/*配達日エラーメッセ―ジ*/
.date-error-message {
	color: red;
	font-size: 24px;
	font-weight: bold;
	text-align: center;
	display: none;
	white-space: pre-line;
	line-height: 1.6;
}

/*配達日と配達時間のグループ*/
.delivery-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 90%;
	gap: 16px;
	margin: 24px auto;
	align-items: center;
	flex-wrap: wrap;
	padding: 22px 0;
	border: 2px dashed red;
	border-radius: 8px;
	background-color: #fffdfd;
}

/*配達日と配達時間のラベル*/
.delivery-info label {
	font-weight: bold;
	font-size: 34px;
}

/*配達日と配達時間の入力欄*/
.delivery-info input[type="date"],
.delivery-info select {
	padding: 4px 16px 4px 8px;
	font-size: 34px;
	width: 300px;
	height: 54px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
	transition: all 0.2s ease;
	text-align: center;
}
.delivery-info input[type="date"]:focus,
.delivery-info select:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/*矢印と「配達日と配達時間を選択してください」のグループ*/
#deliveryMessage {
	display: none;
	font-size: 34px;
	font-weight: bold;
	text-align: center;
	margin-top: 20px;
	margin-bottom: 70px;
}

/*矢印*/
#deliveryMessage .arrow {
	display: inline-block;
	font-size: 40px !important;
	color: red;
	animation: bounce 1s infinite;
	line-height: 1;
	text-align: center;
	margin: 6px 0 18px;
}

/*選択メッセージ*/
#deliveryMessage div {
	margin-bottom: 26px;
}

/*カレンダー本体*/
.calendar-box {
	width: 70%;
	border-collapse: collapse;
	align-items: center;
	margin: 0px auto !important;
}

/*謎*/
#calendarContainer {
	width: 74%;
	border-collapse: collapse;
	align-items: center;
	margin: 0 auto 0 !important;
	background-color: 	#ffccd5;
	box-shadow: 0 3px 9px rgba(255, 105, 180, 0.2);
	padding-top: 20px;
	padding-bottom: 30px;
}

/*カレンダー*/
.calendar {
	width: 90% !important;
	border-collapse: collapse;
	align-items: center;
	margin: 0 auto;
}

/*カレンダーのボタンと年月のグループ*/
.calendar-header {
	text-align: center;
	margin: 10px 0 30px !important;
	font-size: 20px;
	font-weight: bold;
}

/*カレンダーボタン*/
.calendar-header button {
	font-size: 16px;
	font-weight: bold;
	margin: 0 80px;
	padding: 5px 12px 6px;
	border: none;
	cursor: pointer;
	color: #333;
	background-color: white !important;
	border-radius: 6px;
	position: relative;
	top: -4px;
}
.calendar-header button:hover {
	background-color: lightgray !important;
}

/*カレンダー年月*/
.calendar-month-title {
	text-align: center;
	font-size: 30px;
	font-weight: bold;
	margin-bottom: 12px;
	margin-top: 10px;
	color: #333;
}

/*カレンダー枠*/
.calendar th, .calendar td {
	border: 1px solid  white;
	padding: 10px;
	text-align: center;
	font-size: 18px;
	cursor: pointer;
}

/*当日よりも前の日*/
td.past-date {
	background-color: lightpink !important;
}

/*カレンダー休日*/
.calendar td.holiday {
	background-color: #f9f9f9;
	cursor: default;
}
.calendar td:hover:not(.holiday) {
	background-color: #eef;
}

/*日付*/
.calendar th {
	font-size: 16px;
	padding: 6px 4px;
}

/*日曜日を赤にする*/
.calendar th:first-child {
	color: red;
}

/*日曜日を青にする*/
.calendar th:last-child {
	color: blue;
}

/*当日*/
.today-circle {
	width: 21px;
	height: 21px;
	background-color: white;
	border-radius: 30%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	font-weight: bold;
	font-size: 17px;
	line-height: 1;
}

/*？*/
.date-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
}

/*土日*/
.date-number {
	position: relative;
	z-index: 1;
	font-weight: bold;
}

/*バツマーク*/
.x-mark {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 20px;
	color: #ff3b6b;
	z-index: 2;
	pointer-events: none;
}

hr {
	width: 94%;
}

/*商品一覧カードのグループの上書き*/
.item {
	width: 90% !important;
	padding: 0 !important;
	margin-bottom: 20px;
}

/*商品画像*/
.product-img {
	width: 200px;
	height: auto;
	margin: 10px 16px;
	box-shadow: 0 0 6px rgba(255, 0, 0, 0.1);
}

/*画像横ライン*/
.vertical-line {
	width: 2px;
	background-color: #ccc;
	border-radius: 2px;
	height: 200px;
	margin-right: 18px;
}

/*商品情報のグループ*/
.item-header {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 98%;
}

/*商品情報の商品名とボタンのグループ*/
.row-top {
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 6px;
}

/*商品情報のポテトセットと小計のグループ*/
.row-bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

/*商品名と価格*/
.item-name-block {
	display: flex;
	align-items: center;
	gap: 0;
	margin-top: 10px;
}

/*商品名と価格*/
.item-title,
.item-price {
	font-weight: bold;
	font-size: 32px;
}

/*ボタンとポテトセットのグループ*/
.item-controls,
.potato-controls {
	display: flex;
	align-items: center;
}

/* ボタン・在庫表示のグループ */
.item-controls {
	align-items: flex-end;
	align-self: flex-end;
	margin-top: 4px;
	margin-right: 16px;
	gap: 10px;
}

/* 在庫表示 */
.stock-label {
	display: flex;
	align-items: flex-end;
	color: red;
	font-size: 22px;
	margin-right: 8px;
}

/*数量ボタン*/
.item-controls button {
	width: 43px;
	height: 43px;
	font-size: 40px;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
}

/*数量ボタン本体*/
.item-controls i {
	color: red;
	font-size: 43px;
	position: relative;
	align-items: center;
	margin-top: 1px;
}

/*商品とポテトセットの数量入力欄*/
.item-controls input[type="number"],
.potato-controls input[type="number"] {
	width: 74px;
	height: 40px;
	text-align: center;
	font-size: 26px;
	border: 1px solid rgb(255, 128, 192);
	border-radius: 4px;
	position: relative;
	padding: 1px 1px 1px 14px;
}

/*ポテトセット数量入力欄の上書き*/
.potato-controls input[type="number"] {
	width: 60px !important;
	height: 34px !important;
	font-size: 22px !important;
	margin: 0 2px 2px 10px !important;
}

/*ポテトセットのグループ*/
.potato-controls {
	gap: 6px;
	margin-bottom: 2px;
	font-weight: 500;
	font-size: 22px;
}

/*小計*/
.subtotal {
	font-weight: bold;
	font-size: 32px;
	white-space: nowrap;
	margin-top: 20px;
	margin-right: 10px;
	text-align: right;
	align-self: flex-end;
}

/*商品個数・金額・配送料金・合計金額のグループ*/
.summary-box {
	width: 86%;
	text-align: right;
	margin: 20px auto 60px !important;
}

/*各項目の<p>タグ*/
.summary-box p {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	font-size: 32px;
	margin: 10px 7px 0 0 !important;
	font-weight: bold;
}

/*各項目のラベル*/
.summary-box .label {
	display: inline-block;
	width: 240px;
	text-align: right;
}

/*各項目の数字*/
.summary-box .value {
	display: inline-block;
	width: 120px;
	text-align: right;
	line-height: 1;
	vertical-align: middle;
}

/*個や円*/
.summary-box .unit {
	display: inline-block;
	line-height: 1;
	vertical-align: baseline;
	margin-left: 4px;
}

/*配送料金の注意書き*/
.delivery-notice {
	font-size: 22px !important;
	font-weight: normal !important;
	color: red;
	margin-top: 0;
	margin-bottom: 4px;
	display: none;
}

/*配達料金と合計金額の間の線*/
.summary-divider {
	border: none;
	border-top: 1px solid #aaa;
	width: 100% !important;
	margin: 10px auto;
}

/*合計金額〇〇〇円*/
.grand-total {
	color: red;
}

/*リセットボタン下*/
#resetButton {
	margin-bottom: 50px;
}

@keyframes bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-14px);
	}
}

@media screen and (max-width: 600px) {

	/* FAQボタン*/
	.faq-button {
		right: 14px;
		padding: 6px 10px;
		font-size: 11px;
	}

	/* FAQモーダル */
	.faq-content {
		width: 90% !important;
		max-width: 360px !important;
		padding: 16px 16px 26px !important;
		font-size: 16px !important;
	}
	.faq-content h2 {
		font-size:13px;
	}
	.faq-content hr {
		margin: 30px 0 14px !important;
	}
	.faq-content p {
		font-size: 12px !important;
		line-height: 1.4;
		margin: 20px 0 20px !important;
	}

	/*配達日エラーメッセ―ジ*/
	.date-error-message {
		font-size: 15px;
		margin-bottom: 10px !important;
		line-height: 1.4;
	}

	/*配達日と配達時間のグループ*/
	.delivery-info {
		width: 94%;
		gap: 9px;
		margin: 14px auto;
		padding: 14px 0;
	}

	/*配達日と配達時間のラベル*/
	.delivery-info label {
		font-size: 18px;
	}

	/*配達日と配達時間の入力欄*/
	.delivery-info input[type="date"],
	.delivery-info select {
		padding: 2px;
		font-size: 18px;
		width: 180px;
		height: 29px;
		border-radius: 4px;
	}

	/*矢印と「配達日と配達時間を選択してください」のグループ*/
	#deliveryMessage {
		width: 90%;
		font-size: 18px;
		margin: 14px auto;
		text-align: center;
	}

	/*矢印*/
	#deliveryMessage .arrow {
		font-size: 26px !important;
		margin-bottom: 16px;
		margin-top: 10px;
	}

	/*カレンダー本体*/
	.calendar-box {
		width: 96%;
	}

	/*謎*/
	#calendarContainer {
		width: 100%;
		margin: 0 auto 0 !important;
		padding-top: 10px;
		padding-bottom: 22px !important;
	}

	/*カレンダー*/
	.calendar {
		width: 80% !important;
	}

	/*カレンダーのボタンと年月のグループ*/
	.calendar-header {
		margin: 6px 0 16px !important;
		font-size: 12px;
	}

	/*カレンダーボタン*/
	.calendar-header button {
		font-size: 12px;
		margin: 0 32px;
		padding: 1px 5px 2px;
		border-radius: 4px;
		top: -3px;
	}

	/*カレンダー年月*/
	.calendar-month-title {
		font-size: 20px !important;
		margin-bottom: 12px;
		margin-top: 18px;
	}

	/*カレンダー枠*/
	.calendar th, .calendar td {
		padding: 7px 10px;
		font-size: 16px;
	}

	/*当日*/
	.today-circle {
		width: 16px;
		height: 16px;
		font-size: 16px;
	}

	/*バツマーク*/
	.x-mark {
		font-size: 16px;
	}

	/*商品一覧カードのグループの上書き*/
	.item {
		width: 94% !important;
		margin-bottom: 8px;
	}

	/*商品画像*/
	.product-img {
		width: 80px;
		margin: 6px 8px;
	}

	/*画像横ライン*/
	.vertical-line {
		width: 1px;
		height: 80px;
		margin-right: 6px;
	}

	/*商品情報のグループ*/
	.item-header {
		gap: 6px;
	}

	/*	商品名と価格*/
	.item-name-block {
		margin-bottom: 4px;
	}

	/*商品情報の商品名とボタンのグループ*/
	.row-top {
		gap: 2px;
	}

	/*商品情報のポテトセットと小計のグループ*/
	.row-bottom {
		margin-bottom: 6px;
	}

	/*商品名と価格*/
	.item-name-block {
		gap: 0;
		margin-top: 10px;
	}

	/*商品名と価格*/
	.item-title,
	.item-price {
		font-size: 17px;
	}

	/* ボタン・在庫表示のグループ */
	.item-controls {
		margin-top: 0;
		margin-right: 4px;
		gap: 5px;
	}

	/* 在庫表示 */
	.stock-label {
		font-size: 12px !important;
		font-weight: normal;
		margin-right: 3px;
	}

	/*数量ボタン*/
	.item-controls button {
		width: 22px;
		height: 22px;
		font-size: 20px;
	}

	/*数量ボタン本体*/
	.item-controls i {
		font-size: 22px;
		margin-top: 0;
	}

	/*商品とポテトセットの数量入力欄*/
	.item-controls input[type="number"],
	.potato-controls input[type="number"] {
		width: 40px;
		height: 20px;
		font-size: 14px;
		padding: 1px 2px 1px 1px !important;
		border-radius: 0;
		margin-bottom: 1px;
	}

	/*ポテトセット数量入力欄の上書き*/
	.potato-controls input[type="number"] {
		width: 22px !important;
		height: 14px !important;
		font-size: 10px !important;
		margin: 0 0 2px 2px !important;
		padding: 0 1px 0 0 !important;
	}

	/*ポテトセットのグループ*/
	.potato-controls {
		gap: 2px;
		margin-bottom: 4px;
		font-size: 10px;
	}

	/*小計*/
	.subtotal {
		font-size: 14px;
		margin-top: 2px;
		margin-bottom: 4px;
		margin-right: 2px;
	}

	/*商品個数・金額・配送料金・合計金額のグループ*/
	.summary-box {
		width: 92%;
		margin: 14px auto 16px !important;
	}

	/*各項目の<p>タグ*/
	.summary-box p {
		font-size: 17px;
		margin-top: 4px !important;
	}

	/*各項目のラベル*/
	.summary-box .label {
		width: 120px;
	}

	/*各項目の数字*/
	.summary-box .value {
		width: 70px;
	}

	/*個や円*/
	.summary-box .unit {
		margin-left: 3px;
	}

	/*配達料金と合計金額の間の線*/
	.summary-divider {
		margin: 6px 0;
	}

	/*配送料金の注意書き*/
	.delivery-notice {
		font-size: 11px !important;
	}
	
	/*リセットボタン下*/
	#resetButton {
		margin-bottom: 30px;
	}
}
