@charset "utf-8";
/* 店頭お渡しの梱包オプション（2026-11-30 安藤指示）
   ・「店頭お渡し」の受取場所を押すと、梱包あり／梱包なしを選ぶ小さなポップアップ（.pack_dialog）を出す
   ・選んだ内容は、受取場所のボタン（行）の中に写真つきの札（.pack_chip）で出す。行の高さは変えない
     置き場所は文字の右の空き。受取方法の列は PC でも幅 370px ほどしか無く、行の中央に置くと
     文字が折り返して行が高くなるので、PC＝送料「0円」の上／スマホ＝店名の右 に置く
   読み込むのは order.php と sp/order.php。動きは js/pack_option.js、金額と日付はサーバー（order/cart.php）が決める
   2026-12-01 ミラーショップ（mirror-php8）から移植。自動販売機のスマホ版（sp/order.php）は viewport が 640px 固定で
   画面全体が約 0.59 倍に縮むため、スマホ用の部品には .is-sp を付け、ファイル末尾で寸法を約 1.7 倍にしている */

/* ===== ボタン（行）の中の札 ===== */
#shop_shipping .shipping_item__select__method__item label{ position: relative; }
/* スマホ・タブレット：店名の右（1 行目）に 1 行で置く。住所の行（2 行目）は右端近くまで文字が来るので、そこへは掛けない */
.pack_chip{
	display: none; position: absolute; top: 0; right: 4px;
	align-items: center; gap: 6px; height: 28px; padding: 1px 8px 1px 2px; margin: 0;
	font-family: inherit; color: #111; text-align: left; white-space: nowrap; letter-spacing: 0;
	background: #fff; border: 1.5px solid #0b5cb5; border-radius: 7px; cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 40, 90, .22);
	-webkit-appearance: none; appearance: none;
}
.pack_chip::before{ content: ""; position: absolute; inset: -9px -4px; }	/* 指で押せる範囲を高さ 44px に広げる */
.pack_chip.is-show{ display: inline-flex; animation: pack_chip_in .35s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes pack_chip_in{ from{ opacity: 0; scale: .7; } }
.pack_chip img{ width: 18px; height: 24px; object-fit: cover; border-radius: 3px; flex: none; background: #eee6da; }
.pack_chip__t{ display: flex; flex-direction: row; align-items: center; gap: 5px; font-size: 12px; line-height: 1.15; }
.pack_chip__t b{ font-size: 12px; font-weight: bold; }
.pack_chip__t i{ font-style: normal; font-weight: bold; color: #d40000; }
.pack_chip__t i.is-free{ color: #333; }
.pack_chip__t u{ color: #0b5cb5; text-decoration: underline; padding-left: 6px; border-left: 1px solid #b9c6d3; }
/* PC：文字の右の空き（送料「0円」の上）に、写真を大きめにして 3 段で置く */
@media screen and (min-width: 992px){
	.pack_chip{ top: 3px; height: 44px; padding: 2px 7px 2px 3px; }
	.pack_chip::before{ display: none; }
	.pack_chip img{ width: 28px; height: 37px; border-radius: 4px; }
	.pack_chip__t{ flex-direction: column; align-items: flex-start; gap: 0; }
	.pack_chip__t u{ padding-left: 0; border-left: none; }
}

/* ===== 選択ポップアップ =====
   小さめの窓に 2 枚を横に並べる。どちらかを押した時点で決まり、窓が閉じる（決定ボタンは無い。2026-11-30 安藤指示） */
.pack_dialog{
	border: none; padding: 0 0 4px; color: #333; background: #fff;
	width: min(440px, calc(100vw - 24px)); max-width: none;
	max-height: calc(100dvh - 24px); overflow-y: auto;
	margin: auto; border-radius: 12px;
	box-shadow: 0 14px 40px rgba(0, 30, 70, .35);
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	font-size: 14px; line-height: 1.5; letter-spacing: 0; text-align: left;
}
.pack_dialog *{ box-sizing: border-box; }
.pack_dialog[open]{ animation: pack_pop .25s cubic-bezier(.2, .9, .3, 1.15); }
.pack_dialog::backdrop{ background: rgba(10, 30, 55, .55); animation: pack_fade .2s ease; }
@keyframes pack_fade{ from{ opacity: 0; } }
@keyframes pack_pop{ from{ opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes pack_up{ from{ transform: translateY(100%); } }

.pack_head{ background: #006dd8; color: #fff; font-size: 16px; font-weight: bold; line-height: 1.4; text-align: center; margin: 0; padding: 9px 12px; border: none; border-radius: 12px 12px 0 0; }
.pack_options{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 12px 0; }
.pack_card{
	display: flex; flex-direction: column; align-items: stretch; margin: 0; padding: 0;
	font: inherit; color: inherit; text-align: left;
	background: #fff; border: 2px solid #c9d1d9; border-radius: 9px; overflow: hidden; cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
	-webkit-appearance: none; appearance: none;
}
.pack_card:hover{ border-color: #0b5cb5; background: #f3f8fe; }
.pack_card:focus-visible{ outline: 3px solid #ffb400; outline-offset: 2px; }
.pack_card.is-current, .pack_card.is-picked{ border-color: #0b5cb5; box-shadow: 0 0 0 3px rgba(0, 109, 216, .28); background: #f3f8fe; }
.pack_card__photo{ display: block; background: #eee6da; height: 104px; padding: 6px 0; flex: none; }
.pack_card__photo img{ display: block; width: 100%; height: 100%; object-fit: contain; }
.pack_card__name{ display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: bold; line-height: 1.3; padding: 8px 10px 2px; }
/* 丸い印（いま選んでいる方・押した方にチェックが入る） */
.pack_card__name::before{ content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9fa0a0; background: #fff; }
.pack_card.is-current .pack_card__name::before, .pack_card.is-picked .pack_card__name::before{
	border-color: #0b5cb5;
	background: #0b5cb5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.2l3.2 3.2L14 5.6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.pack_card__desc{ display: block; font-size: 13px; line-height: 1.5; padding: 0 10px; flex: 1; }
.pack_card__delay{ display: block; margin: 5px 8px 0; padding: 3px 6px; font-size: 12px; line-height: 1.45; color: #8a4b00; background: #fff4d6; border-radius: 4px; }
.pack_card__delay[hidden]{ display: none; }
.pack_card__delay b{ white-space: nowrap; }
.pack_card__price{ display: block; text-align: right; margin: 6px 10px 0; padding: 4px 0 7px; border-top: 1px dashed #c9d1d9; }
.pack_card__price b{ font-size: 20px; line-height: 1.2; color: #d40000; white-space: nowrap; font-weight: bold; }
.pack_card__price b small{ font-size: 13px; margin-left: 2px; }
.pack_card__price b.is-free{ color: #333; }
.pack_back{ display: block; margin: 0 auto; min-height: 44px; padding: 0 12px; font-size: 14px; color: #0b5cb5; background: none; border: none; text-decoration: underline; cursor: pointer; font-family: inherit; -webkit-appearance: none; appearance: none; }

/* スマホ：画面の下からせり上がる */
@media screen and (max-width: 599px){
	.pack_dialog{ width: 100%; margin: auto 0 0; border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom); }
	.pack_dialog[open]{ animation: pack_up .28s cubic-bezier(.2, .8, .3, 1); }
	.pack_head{ border-radius: 14px 14px 0 0; }
	.pack_options{ gap: 8px; padding: 10px 10px 0; }
	.pack_card__photo{ height: 92px; }
}
@media (prefers-reduced-motion: reduce){
	.pack_dialog[open], .pack_dialog::backdrop, .pack_chip.is-show{ animation: none; }
	.pack_card{ transition: none; }
}

/* ===== スマホ版（sp/order.php。viewport 640px 固定＝実寸の約 1.7 倍で書く。375px の画面で手本のスマホ表示と同じ大きさになる） ===== */
/* 札：受取場所の文字の右の空き（住所の行より右、送料「0円」より上）に、PC と同じ 3 段で置く。
   1 行にすると住所の行に掛かるため。高さ 76px≒実寸 44px、文字 21px≒実寸 12px */
.pack_chip.is-sp{ top: 2px; right: 7px; gap: 0; height: 76px; padding: 3px 12px 3px 4px; border-width: 2.5px; border-radius: 12px; box-shadow: 0 2px 7px rgba(0, 40, 90, .22); }
.pack_chip.is-sp::before{ display: none; }
.pack_chip.is-sp img{ width: 38px; height: 52px; border-radius: 6px; margin-right: 10px; }
.pack_chip.is-sp .pack_chip__t{ flex-direction: column; align-items: flex-start; gap: 0; font-size: 21px; line-height: 1.12; }
.pack_chip.is-sp .pack_chip__t b{ font-size: 21px; }
.pack_chip.is-sp .pack_chip__t u{ padding-left: 0; border-left: none; }
/* ポップアップ：画面の下からせり上がる */
.pack_dialog.is-sp{ width: 100%; max-height: calc(100dvh - 40px); margin: auto 0 0; padding: 0 0 7px; border-radius: 24px 24px 0 0; font-size: 24px; box-shadow: 0 -10px 40px rgba(0, 30, 70, .35); }
.pack_dialog.is-sp[open]{ animation: pack_up .28s cubic-bezier(.2, .8, .3, 1); }
.pack_dialog.is-sp .pack_head{ font-size: 27px; padding: 15px 20px; border-radius: 24px 24px 0 0; }
.pack_dialog.is-sp .pack_options{ gap: 14px; padding: 17px 17px 0; }
.pack_dialog.is-sp .pack_card{ border-width: 3px; border-radius: 15px; }
.pack_dialog.is-sp .pack_card.is-current, .pack_dialog.is-sp .pack_card.is-picked{ box-shadow: 0 0 0 5px rgba(0, 109, 216, .28); }
.pack_dialog.is-sp .pack_card__photo{ height: 157px; padding: 10px 0; }
.pack_dialog.is-sp .pack_card__name{ gap: 10px; font-size: 27px; padding: 14px 17px 3px; }
.pack_dialog.is-sp .pack_card__name::before{ width: 31px; height: 31px; border-width: 3px; }
.pack_dialog.is-sp .pack_card.is-current .pack_card__name::before, .pack_dialog.is-sp .pack_card.is-picked .pack_card__name::before{ background-size: 24px 24px; }
.pack_dialog.is-sp .pack_card__desc{ font-size: 22px; padding: 0 17px; }
.pack_dialog.is-sp .pack_card__delay{ margin: 8px 14px 0; padding: 5px 10px; font-size: 21px; border-radius: 7px; }
.pack_dialog.is-sp .pack_card__price{ margin: 10px 17px 0; padding: 7px 0 12px; border-top-width: 2px; }
.pack_dialog.is-sp .pack_card__price b{ font-size: 34px; }
.pack_dialog.is-sp .pack_card__price b small{ font-size: 22px; margin-left: 3px; }
.pack_dialog.is-sp .pack_back{ min-height: 76px; padding: 0 20px; font-size: 24px; }
@media (prefers-reduced-motion: reduce){
	.pack_dialog.is-sp[open]{ animation: none; }
}
