@charset "UTF-8";

/**
 * Cellpulu 販売サイト（スマホアプリ WebView 向け）
 * 既存の css/style.css は LP 用のため変更しない。
 * レイアウト変更は .page-shop 配下のみ。他画面はトークン以外ほぼ影響しない。
 */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600&family=Noto+Serif+JP:wght@500;600&display=swap");

:root {
	--shop-bg: #f7f3ef;
	--shop-bg-card: #fffcfa;
	--shop-ink: #4a433f;
	--shop-muted: #8a7f78;
	--shop-heading: #3d342f;
	--shop-rose: #c4a4b0;
	--shop-rose-deep: #9a6d7c;
	--shop-line: #eadfd8;
	--shop-price: #9a6d7c;
	--shop-radius: 18px;
	--shop-footer-h: 64px;
	--shop-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- トップページのみ ---------- */

.page-shop {
	font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
	background: var(--shop-bg);
	color: var(--shop-ink);
	-webkit-font-smoothing: antialiased;
}

.page-shop #wrap {
	background: var(--shop-bg);
	margin: 0 auto;
	padding-bottom: calc(var(--shop-footer-h) + var(--shop-safe-bottom) + 24px);
}

.shop-hero {
	text-align: center;
	padding: 28px 20px 8px;
}

.shop-hero__logo {
	display: block;
	width: min(220px, 58vw);
	height: auto;
	margin: 0 auto 16px;
}

.shop-hero__title {
	font-family: "Noto Serif JP", serif;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--shop-heading);
	margin: 0 0 8px;
}

.shop-hero__lead {
	font-size: 13px;
	line-height: 1.8;
	color: var(--shop-muted);
	margin: 0;
}

.shop-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px 16px 8px;
	max-width: 640px;
	margin: 0 auto;
}

.shop-card {
	background: var(--shop-bg-card);
	border: 1px solid var(--shop-line);
	border-radius: var(--shop-radius);
	padding: 20px 18px 18px;
	box-shadow: 0 8px 24px rgba(90, 70, 64, 0.06);
}

.shop-card__lead {
	font-size: 11px;
	letter-spacing: 0.12em;
	color: var(--shop-rose-deep);
	margin: 0 0 6px;
}

.shop-card__name {
	font-family: "Noto Serif JP", serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 8px;
	color: var(--shop-heading);
}

.shop-card__name a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--shop-rose);
}

.shop-card__name a:hover,
.shop-card__name a:focus {
	color: var(--shop-rose-deep);
	text-decoration: none;
}

.shop-card__desc {
	font-size: 13px;
	line-height: 1.8;
	color: var(--shop-muted);
	margin: 0 0 16px;
}

.shop-card__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.shop-card__photo {
	border-radius: 14px;
	overflow: hidden;
	background: #f3ece7;
	aspect-ratio: 1 / 1;
}

.shop-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shop-card__buy {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.shop-card__price {
	font-family: "Noto Serif JP", serif;
	font-size: 22px;
	font-weight: 600;
	color: var(--shop-price);
	margin: 0;
	letter-spacing: 0.02em;
}

.shop-card__price small {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: var(--shop-muted);
	margin-left: 4px;
}

.shop-card__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.shop-qty {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f6f0ec;
	border-radius: 999px;
	padding: 4px 12px 4px 14px;
}

.shop-qty label {
	font-size: 12px;
	color: var(--shop-muted);
	margin: 0;
	font-weight: 400;
}

.shop-qty select {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239a6d7c' d='M1 1l5 5 5-5'/></svg>") no-repeat right center;
	padding: 8px 20px 8px 4px;
	min-height: 44px;
	min-width: 64px;
	font-size: 16px;
	color: var(--shop-heading);
}

.shop-qty span {
	font-size: 12px;
	color: var(--shop-muted);
}

.shop-card__submit {
	flex: 1 1 160px;
	min-height: 48px;
	border: 0;
	border-radius: 999px;
	background: var(--shop-rose-deep);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.06em;
	padding: 12px 20px;
	box-shadow: 0 6px 14px rgba(154, 109, 124, 0.28);
}

.shop-card__submit:hover,
.shop-card__submit:focus {
	background: #865a69;
	color: #fff;
}

.shop-copy {
	text-align: center;
	padding: 8px 16px 24px;
	color: var(--shop-muted);
	font-size: 11px;
}

.shop-hero--page {
	padding-bottom: 0;
}

.shop-alert {
	background: #f8e8ea;
	color: #8a4a55;
	border-radius: 12px;
	padding: 12px 16px;
	margin: 0;
	font-size: 13px;
}

.shop-note {
	text-align: center;
	color: var(--shop-rose-deep);
	font-size: 13px;
	letter-spacing: 0.04em;
	margin: 0 0 4px;
}

.shop-empty {
	text-align: center;
	padding: 36px 20px;
}

.shop-empty p {
	margin: 0 0 20px;
	color: var(--shop-muted);
}

.shop-empty .shop-btn,
.shop-empty .shop-card__submit {
	display: inline-block;
	text-decoration: none;
	flex: none;
}

.shop-card__del {
	color: var(--shop-muted);
	font-size: 13px;
	text-decoration: underline;
	padding: 10px 8px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.shop-card__del:hover,
.shop-card__del:focus {
	color: var(--shop-rose-deep);
}

.shop-summary {
	padding-top: 18px;
	padding-bottom: 18px;
}

.shop-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 8px 0;
	font-size: 14px;
	border-bottom: 1px solid var(--shop-line);
}

.shop-summary__row--total {
	border-bottom: 0;
	padding-top: 14px;
	font-family: "Noto Serif JP", serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--shop-price);
}

.shop-summary__hint {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--shop-muted);
	text-align: right;
}

.shop-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	padding: 8px 0 12px;
}

.shop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 14px;
	letter-spacing: 0.04em;
}

.shop-btn--ghost {
	background: #fff;
	color: var(--shop-heading);
	border: 1px solid var(--shop-line);
}

.shop-btn--ghost:hover,
.shop-btn--ghost:focus {
	color: var(--shop-rose-deep);
	text-decoration: none;
	border-color: var(--shop-rose);
}

.shop-actions .shop-card__submit {
	flex: 1 1 180px;
}

.shop-copy hr {
	border: 0;
	border-top: 1px solid var(--shop-line);
	margin: 0 0 16px;
}

a.shop-card__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	text-align: center;
	box-sizing: border-box;
}

.shop-section {
	font-family: "Noto Serif JP", serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--shop-heading);
	margin: 12px 0 0;
	padding: 0 4px;
}

.shop-line {
	background: var(--shop-bg-card);
	border: 1px solid var(--shop-line);
	border-radius: var(--shop-radius);
	padding: 14px 16px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	align-items: end;
}

.shop-line__name {
	grid-column: 1 / -1;
	font-family: "Noto Serif JP", serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0;
	color: var(--shop-heading);
}

.shop-line__meta {
	margin: 0;
	font-size: 12px;
	color: var(--shop-muted);
}

.shop-line__price {
	margin: 0;
	font-family: "Noto Serif JP", serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--shop-price);
	text-align: right;
}

.shop-form .shop-field {
	margin: 0 0 16px;
}

.shop-form .shop-field:last-child {
	margin-bottom: 0;
}

.shop-label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--shop-muted);
	margin: 0 0 6px;
	letter-spacing: 0.04em;
}

.page-shop .form-control {
	height: auto;
	min-height: 48px;
	border-radius: 12px;
	border: 1px solid var(--shop-line);
	box-shadow: none;
	font-size: 16px;
	color: var(--shop-heading);
	background: #fff;
	padding: 10px 14px;
}

.page-shop .form-control:focus {
	border-color: var(--shop-rose);
	box-shadow: 0 0 0 3px rgba(196, 164, 176, 0.25);
}

.page-shop select.form-control {
	appearance: none;
	-webkit-appearance: none;
	background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239a6d7c' d='M1 1l5 5 5-5'/></svg>") no-repeat right 14px center;
	padding-right: 36px;
	margin-top: 0;
}

.page-shop .form-control + select.form-control {
	margin-top: 8px;
}

.page-shop textarea.form-control {
	min-height: 160px;
	line-height: 1.7;
	resize: vertical;
}

.shop-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.shop-zip {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.shop-zip .form-control {
	flex: 1 1 auto;
	min-width: 0;
}

.shop-zip__btn {
	flex: 0 0 auto;
	min-width: 88px;
	padding: 0 16px;
}

.shop-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--shop-muted);
}

.shop-check,
.shop-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	margin: 0 0 10px;
	min-height: 44px;
	color: var(--shop-heading);
}

.shop-form > .shop-check {
	margin-bottom: 16px;
}

a.shop-card__submit:hover,
a.shop-card__submit:focus {
	text-decoration: none;
	color: #fff;
}

.shop-check input,
.shop-radio input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--shop-rose-deep);
}

.shop-dl {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.shop-dl__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--shop-line);
}

.shop-dl__row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.shop-dl__label {
	font-size: 12px;
	color: var(--shop-muted);
	letter-spacing: 0.04em;
}

.shop-dl__value {
	font-size: 15px;
	line-height: 1.7;
	color: var(--shop-heading);
	word-break: break-word;
}

.shop-complete {
	text-align: center;
	padding: 36px 22px;
}

.shop-complete__text {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--shop-muted);
}

.shop-complete .shop-card__submit {
	display: inline-flex;
	flex: none;
	min-width: 220px;
}

.page-shop #footer {
	height: auto;
	min-height: var(--shop-footer-h);
	padding-bottom: var(--shop-safe-bottom);
	background: #fff;
	border-top: 1px solid var(--shop-line);
	box-shadow: 0 -4px 16px rgba(90, 70, 64, 0.04);
}

.page-shop #footer a {
	color: var(--shop-muted);
	text-decoration: none;
}

.page-shop #footer a:hover,
.page-shop #footer a:focus {
	color: var(--shop-rose-deep);
	text-decoration: none;
}

.page-shop #footer small {
	font-size: 10px;
	letter-spacing: 0;
}

.page-shop #footer .badge {
	background-color: var(--shop-rose-deep);
}

@media (min-width: 768px) {
	.shop-hero {
		padding-top: 40px;
	}

	.shop-hero__logo {
		width: min(260px, 32vw);
	}

	.shop-hero__title {
		font-size: 26px;
	}

	.shop-list {
		max-width: 960px;
		padding: 28px 24px 8px;
		gap: 16px;
	}

	.shop-card:not(.shop-summary):not(.shop-empty):not(.shop-form):not(.shop-legal):not(.shop-complete) {
		display: grid;
		grid-template-columns: 240px 1fr;
		column-gap: 28px;
		align-items: center;
		padding: 16px 22px 16px 16px;
	}

	.shop-card__body {
		display: contents;
	}

	.shop-card__photo {
		grid-column: 1;
		grid-row: 1 / span 4;
		width: 100%;
		max-width: none;
		aspect-ratio: 1 / 1;
		align-self: stretch;
	}

	.shop-card__lead,
	.shop-card__name,
	.shop-card__desc,
	.shop-card__buy {
		grid-column: 2;
	}

	.shop-card__name {
		font-size: 20px;
		margin-bottom: 6px;
	}

	.shop-card__desc {
		margin-bottom: 12px;
	}

	.shop-card__buy {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 12px 16px;
	}

	.shop-card__price {
		font-size: 24px;
		margin-right: auto;
	}

	.shop-card__form {
		flex: 1 1 auto;
		justify-content: flex-end;
	}

	.shop-card__submit {
		flex: 0 0 auto;
		min-width: 168px;
	}

	.shop-actions .shop-card__submit {
		flex: 1 1 180px;
	}
}

@media (min-width: 1100px) {
	.shop-list {
		max-width: 1080px;
	}

	.shop-card:not(.shop-summary):not(.shop-empty):not(.shop-form):not(.shop-legal):not(.shop-complete) {
		grid-template-columns: 280px 1fr;
	}
}
