/* SNS購入マーケット — 市場・お店の見た目。商品棚が主役で、注文は横から出るパネルで行う。 */
:root {
	--green: #087f5b;
	--green-d: #06634a;
	--dark: #10231c;
	--orange: #e8590c;
	--yellow: #ffd43b;
	--cream: #fff8e8;
	--paper: #fffdf7;
	--line: #e4dcc8;
	--sub: #5f6b62;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--paper); color: var(--dark);
	font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
	font-weight: 500; font-size: 16px; line-height: 1.85;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { vertical-align: middle; max-width: 100%; }
a { color: var(--green-d); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.box { width: min(1080px, 100% - 40px); margin-inline: auto; }
h2 { font-weight: 900; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; }

/* いちばん上 */
.strip { background: var(--dark); color: var(--yellow); text-align: center; font-size: 13px; font-weight: 700; padding: 6px 12px; letter-spacing: .04em; }
.mast { background: #fff; border-bottom: 3px solid var(--dark); }
.mast__in { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.shop { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dark); }
.shop__name { font-weight: 900; font-size: 24px; letter-spacing: .02em; white-space: nowrap; }
.shop__name b { color: var(--orange); }
.mast__ask { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--dark); border: 2px solid var(--dark); border-radius: 999px; padding: 4px 16px; white-space: nowrap; }
.mast__ask:hover { background: var(--dark); color: #fff; }
.aisle { background: var(--green); }
.aisle__in { display: flex; align-items: flex-end; gap: 6px; padding-top: 10px; }
.aisle__label { color: #c9efe0; font-size: 13px; font-weight: 700; padding: 0 10px 10px 0; }
.aisle__tab { padding: 8px 22px 9px; border-radius: 12px 12px 0 0; background: var(--green-d); color: #fff; font-weight: 700; text-decoration: none; }
.aisle__tab:hover { background: #0a9a6f; }
.aisle__tab.is-current { background: var(--paper); color: var(--dark); }

/* 看板 */
.sign { padding: 44px 0 20px; }
.sign__in { text-align: center; }
.sign h1 { font-weight: 900; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.4; letter-spacing: .02em; }
.sign h1 mark { background: linear-gradient(transparent 62%, var(--yellow) 62%); color: inherit; padding: 0 4px; }
.sign p { margin: 14px auto 0; max-width: 40em; color: var(--sub); }

/* 商品棚 */
.shelf { padding: 24px 0 72px; }
.shelf__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; background: var(--cream); border: 3px solid var(--dark); border-radius: 18px 18px 0 0; border-bottom: 0; }
.pick { display: flex; align-items: center; gap: 8px; }
.pick__label { font-size: 13px; font-weight: 700; color: var(--sub); }
.pick__chip { border: 2px solid var(--dark); background: #fff; border-radius: 999px; padding: 5px 18px; font-weight: 700; }
.pick__chip.is-on { background: var(--dark); color: var(--yellow); }
.shelf__unit { background: var(--dark); color: #fff; font-weight: 700; font-size: 14px; padding: 8px 22px; border-inline: 3px solid var(--dark); }
.goods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 3px solid var(--dark); border-top: 0; border-radius: 0 0 18px 18px; overflow: hidden; background: #fff; }
.item { position: relative; padding: 22px 22px 20px; border-right: 2px dashed var(--line); border-bottom: 2px dashed var(--line); display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: end; }
.item:nth-child(3n) { border-right: 0; }
.item:nth-last-child(-n+3) { border-bottom: 0; }
.item__size { grid-column: 1 / -1; justify-self: start; font-size: 12px; font-weight: 700; background: var(--green); color: #fff; border-radius: 4px; padding: 0 8px; margin-bottom: 8px; }
.item__count { grid-column: 1 / -1; line-height: 1.2; }
.item__count strong { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 34px; }
.item__count span { font-weight: 700; font-size: 15px; margin-left: 4px; }
.item__name { grid-column: 1 / -1; font-size: 13px; color: var(--sub); margin-bottom: 10px; }
.item__price { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 26px; color: var(--orange); line-height: 1.2; }
.item__price small { font-family: "Zen Maru Gothic", sans-serif; font-size: 11px; font-weight: 700; color: var(--sub); margin-left: 4px; }
.item__buy { border: 0; background: var(--orange); color: #fff; font-weight: 900; border-radius: 999px; padding: 8px 18px; box-shadow: 0 4px 0 #b9440a; }
.item__buy:hover { transform: translateY(2px); box-shadow: 0 2px 0 #b9440a; }
.shelf__foot { margin-top: 14px; font-size: 14px; color: var(--sub); }

/* お買い物のしかた */
.guide { background: var(--green); color: #fff; padding: 64px 0; }
.guide h2 { text-align: center; }
.guide__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; counter-reset: g; }
.guide__list li { counter-increment: g; background: #fff; color: var(--dark); border-radius: 16px; padding: 44px 22px 22px; position: relative; }
.guide__list li::before { content: counter(g); position: absolute; top: -18px; left: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--dark); display: grid; place-items: center; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 22px; }
.guide__list h3 { font-weight: 900; font-size: 18px; margin-bottom: 6px; }
.guide__list p { font-size: 15px; color: var(--sub); }

/* お約束 */
.promise { padding: 72px 0; }
.promise__in { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.promise h2 { font-size: clamp(28px, 4vw, 40px); border-left: 10px solid var(--orange); padding-left: 16px; }
.promise__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.promise__list li { background: var(--cream); border-radius: 14px; padding: 20px 22px 20px 58px; position: relative; }
.promise__list li::before { content: "✓"; position: absolute; left: 18px; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.promise__list h3 { font-weight: 900; font-size: 17px; }
.promise__list p { font-size: 14px; color: var(--sub); margin-top: 4px; }

/* 質問 */
.ask { background: var(--cream); padding: 72px 0; border-block: 3px solid var(--dark); }
.ask__list { margin-top: 28px; columns: 2; column-gap: 20px; }
.ask__item { break-inside: avoid; background: #fff; border: 2px solid var(--dark); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.ask__item dt { font-weight: 900; padding-left: 34px; position: relative; }
.ask__item dt::before { content: "Q"; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 6px; background: var(--orange); color: #fff; font-family: "Outfit", sans-serif; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.ask__item dd { margin-top: 8px; font-size: 14px; color: var(--sub); }

/* ほかの売り場 */
.next { padding: 64px 0 88px; }
.next__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.next__card { display: block; text-decoration: none; color: var(--dark); background: #fff; border: 3px solid var(--dark); border-radius: 16px; padding: 20px 24px; box-shadow: 6px 6px 0 var(--green); }
.next__card:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--green); }
.next__label { display: block; font-weight: 900; font-size: 20px; }
.next__text { display: block; font-size: 14px; color: var(--sub); }

/* 注文パネル */
.veil { position: fixed; inset: 0; background: rgba(16, 35, 28, .55); z-index: 50; }
.cart { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); border-left: 3px solid var(--dark); transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; visibility: hidden; }
.cart.is-open { transform: none; visibility: visible; }
.cart__head { display: flex; align-items: center; justify-content: space-between; background: var(--dark); color: #fff; padding: 14px 20px; font-weight: 900; font-size: 18px; }
.cart__close { border: 0; background: none; color: #fff; font-size: 28px; line-height: 1; padding: 0 4px; }
.cart__body { padding: 20px; overflow-y: auto; flex: 1; }
.ticket { background: #fff; border: 2px dashed var(--dark); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ticket__name { font-weight: 700; font-size: 15px; line-height: 1.5; }
.ticket__price { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 30px; color: var(--orange); white-space: nowrap; }
.cart__label { display: block; font-weight: 900; font-size: 15px; margin: 16px 0 6px; }
.cart__field { width: 100%; min-height: 50px; border: 2px solid var(--dark); border-radius: 10px; padding: 0 14px; background: #fff; font-size: 16px; }
.cart__field:focus { outline: 3px solid var(--yellow); }
.cart__warn { margin-top: 8px; font-size: 13px; line-height: 1.7; background: #fff3bf; border-radius: 8px; padding: 8px 12px; }
.cart__help { margin-top: 8px; font-size: 13px; color: var(--sub); }
.cart__go { display: block; width: 100%; margin-top: 20px; min-height: 56px; border: 0; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 900; font-size: 17px; box-shadow: 0 5px 0 #b9440a; }
.cart__go:disabled { background: #c9c3b3; box-shadow: 0 5px 0 #a8a293; cursor: not-allowed; }
.check li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.check span { color: var(--sub); flex: none; }
.check b { text-align: right; }
.check__url { word-break: break-all; font-weight: 500; font-size: 13px; }
.cart__alert { margin: 16px 0; font-size: 13px; line-height: 1.7; background: #ffe8dc; border-radius: 8px; padding: 10px 12px; color: #7a2e06; }
.cart__agree { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; cursor: pointer; }
.cart__agree input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--green); }
.cart__back { display: block; margin: 16px auto 0; border: 0; background: none; text-decoration: underline; color: var(--sub); font-size: 14px; }
.cart__error { margin-top: 10px; color: #c2260c; font-size: 13px; font-weight: 700; }
.cart__error:empty { display: none; }

/* いちばん下 */
.base { background: var(--dark); color: #fff; padding: 44px 0 28px; text-align: center; }
.shop--light { color: #fff; }
.base__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 18px; }
.base__links a { color: #fff; font-weight: 700; text-decoration: none; }
.base__links a:hover { color: var(--yellow); }
.base__links--small a { font-weight: 500; font-size: 13px; color: #b7c7be; }
.base__copy { margin-top: 24px; font-size: 12px; color: #8fa398; }

/* 規約・お問い合わせなどの文章ページ */
.doc-page { width: min(740px, 100% - 40px); margin: 48px auto 88px; background: #fff; border: 3px solid var(--dark); border-radius: 18px; padding: 36px 36px 44px; }
.doc-page h1 { font-weight: 900; font-size: clamp(24px, 3.6vw, 30px); line-height: 1.4; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 3px dotted var(--line); }
.doc-page--center { text-align: center; }
.doc-body h3 { font-weight: 900; font-size: 17px; margin: 28px 0 6px; }
.doc-body p, .doc-body li { font-size: 15px; }
.doc-body p { margin: 8px 0; }
.doc-body ul, .doc-body ol { padding-left: 1.4em; margin: 8px 0; }
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-body th, .doc-body td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: top; }
.doc-body th { width: 34%; font-weight: 700; color: var(--green-d); }
.doc-date { margin-top: 28px !important; color: var(--sub); font-size: 13px !important; }
.doc-button { display: inline-block; margin-top: 16px; padding: 12px 28px; background: var(--orange); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 900; }
.mail { margin-top: 24px; }
.mail__row { margin-bottom: 18px; }
.mail__row label { display: block; font-weight: 900; font-size: 15px; margin-bottom: 4px; }
.mail__row i { font-style: normal; font-size: 11px; background: var(--orange); color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 8px; }
.mail__row p { font-size: 13px; color: var(--sub); margin-top: 4px; }
.mail__row input, .mail__row select, .mail__row textarea { width: 100%; border: 2px solid var(--dark); border-radius: 10px; padding: 11px 14px; background: #fff; font-size: 16px; }
.mail__send { border: 0; background: var(--orange); color: #fff; font-weight: 900; font-size: 17px; border-radius: 999px; padding: 14px 32px; box-shadow: 0 5px 0 #b9440a; }
.mail__note { margin-top: 16px; font-size: 13px; color: var(--sub); }

@media (max-width: 860px) {
	.goods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.item, .item:nth-child(3n) { border-right: 2px dashed var(--line); }
	.item:nth-child(2n) { border-right: 0; }
	.item:nth-last-child(-n+3) { border-bottom: 2px dashed var(--line); }
	.item:last-child { border-bottom: 0; grid-column: 1 / -1; }
	.guide__list { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.promise__in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.promise h2 br { display: none; }
	.ask__list { columns: 1; }
}
@media (max-width: 560px) {
	.box { width: calc(100% - 28px); }
	.strip { font-size: 11px; letter-spacing: 0; }
	.shop__name { font-size: 19px; }
	.shop img { width: 32px; height: 32px; }
	.mast__ask { font-size: 12px; padding: 3px 10px; }
	.aisle__label { display: none; }
	.aisle__in { gap: 4px; }
	.aisle__tab { flex: 1; text-align: center; padding: 8px 4px 9px; font-size: 14px; }
	.sign { padding-top: 30px; }
	.shelf__top { padding: 14px; }
	.pick { width: 100%; }
	.pick__chip { flex: 1; padding: 5px 4px; }
	.pick__label { display: none; }
	.shelf__unit { padding: 8px 14px; font-size: 13px; }
	.item { padding: 16px 12px 14px; grid-template-columns: 1fr; row-gap: 8px; }
	.item__count strong { font-size: 26px; }
	.item__price { font-size: 22px; }
	.item__buy { width: 100%; }
	.promise__list, .next__list { grid-template-columns: minmax(0, 1fr); }
	.doc-page { padding: 24px 18px 30px; }
	.cart { top: auto; left: 0; width: 100%; max-height: 92vh; border-left: 0; border-top: 3px solid var(--dark); border-radius: 18px 18px 0 0; transform: translateY(105%); overflow: hidden; }
	.cart.is-open { transform: none; }
}
