@charset "utf-8";
/*
Theme Name: デコラボTune
Template: mhs-asura
Version: 0.4.1
Description: mhs-asura の子テーマ（ポートフォリオの作品「デコラボTune」）。ページの中身はテーマサポートのウェブパーツ
*/

/* ---------- 土台（COLOR.md の役割変数・書体・幅） ---------- */

:root {
	--paper: #FFF8FC;
	--panel: #FFE4F1;
	--rule: #D8C8D6;
	--ink-2: #6D5268;
	--ink: #2E1328;
	--accent: #D3177A;
	--line: #06C755; /* ダミーの LINE ログインだけに使う LINE 風の緑（文字は --ink） */
	--round: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
	--latin: "Nunito", "Zen Maru Gothic", sans-serif;
	--wrap: 1120px;
	--gutter: 16px;
	--section: 64px;
	--header-h: 56px;
	--radius-card: 20px;
	--radius-photo: 16px;
	--shadow: 0 6px 20px rgb(46 19 40 / 0.08);
}

@media (min-width: 600px) {
	:root {
		--gutter: 24px;
	}
}

@media (min-width: 960px) {
	:root {
		--gutter: 40px;
		--section: 112px;
		--header-h: 68px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--header-h);
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100svh; /* the footer stays at the bottom of short pages */
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Noto Sans JP", sans-serif;
	font-size: 15px;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

@media (min-width: 960px) {
	body {
		font-size: 16px;
	}
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: inherit;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--round);
	line-height: 1.35;
	word-break: auto-phrase;
}

h1 {
	font-size: clamp(28px, 7vw, 48px);
	font-weight: 900;
}

h2 {
	font-size: clamp(22px, 5vw, 32px);
	font-weight: 900;
}

h3 {
	font-size: clamp(17px, 4vw, 20px);
	font-weight: 700;
}

:focus-visible {
	outline: 3px solid var(--ink-2);
	outline-offset: 2px;
}

.visually-hidden,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip {
	position: absolute;
	left: -9999px;
	z-index: 30;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
}

.skip:focus {
	left: var(--gutter);
	top: var(--gutter);
}

.wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

:where(#main) {
	flex: 1 0 auto;
	width: 100%;
	padding-top: 32px;
	padding-bottom: var(--section);
}

:where(#main) h1 {
	margin-bottom: 24px;
}

.flow > * {
	margin-block: 0;
}

.flow > * + * {
	margin-top: 1.2em;
}

.label {
	margin: 0 0 8px;
	color: var(--accent);
	font-family: var(--latin);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 10px 8px;
	border-bottom: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}

/* ---------- ボタン・札 ---------- */

.button-primary,
.single_add_to_cart_button,
.button-line,
.button-outline,
.mypage form button,
.woocommerce-message .button,
.lost a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 32px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: var(--paper);
	font-family: var(--round);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}

.button-primary:hover,
.single_add_to_cart_button:hover {
	background: var(--ink);
}

.button-line {
	background: var(--line);
	color: var(--ink);
}

.button-line:hover {
	transform: translateY(-2px);
}

.button-outline,
.mypage form button,
.woocommerce-message .button,
.lost a {
	border: 2px solid var(--ink);
	background: transparent;
	color: var(--ink);
}

.button-outline:hover,
.mypage form button:hover,
.woocommerce-message .button:hover,
.lost a:hover {
	background: var(--ink);
	color: var(--paper);
}

.chips {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1.5px solid var(--ink-2);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--round);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.chip[aria-current="true"] {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--paper);
}

.avatar {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--paper);
	font-family: var(--round);
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
}

.price {
	color: var(--ink);
	font-family: var(--latin);
	font-size: 17px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.price .woocommerce-Price-currencySymbol {
	font-family: var(--round);
	font-size: 0.82em;
}

.price .tax {
	color: var(--ink-2);
	font-family: "Noto Sans JP", sans-serif;
	font-size: 12px;
	font-weight: 400;
}

/* ---------- お知らせの帯・ヘッダー ---------- */

.notice-bar {
	margin: 0;
	padding: 6px var(--gutter);
	background: var(--ink);
	color: var(--paper);
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

.notice-bar__sep {
	display: block;
}

@media (min-width: 600px) {
	.notice-bar__sep {
		display: inline-block;
		width: 5px;
		height: 5px;
		margin: 0 1em;
		border-radius: 50%;
		background: var(--accent);
		vertical-align: middle;
	}
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 2px dotted var(--rule);
	background: var(--paper);
	transition: transform 0.3s ease;
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	max-width: var(--wrap);
	height: var(--header-h);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.menu-button {
	display: grid;
	justify-self: start;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--panel);
	color: var(--ink);
	cursor: pointer;
}

.menu-button__bars,
.menu-button__bars::before,
.menu-button__bars::after {
	display: block;
	width: 18px;
	height: 2.5px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s, background-color 0.2s;
}

.menu-button__bars {
	position: relative;
}

.menu-button__bars::before,
.menu-button__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-button__bars::before {
	top: -6px;
}

.menu-button__bars::after {
	top: 6px;
}

.menu-button[aria-expanded="true"] .menu-button__bars {
	background: transparent;
}

.menu-button[aria-expanded="true"] .menu-button__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ink);
	font-family: var(--round);
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.site-logo img {
	width: 28px;
	height: 28px;
}

.site-nav {
	display: none;
}

.menu-open .site-nav {
	display: block;
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	padding: 8px var(--gutter) 24px;
	border-bottom: 2px dotted var(--rule);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.site-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 14px 4px;
	border-bottom: 1px solid var(--rule);
	font-family: var(--round);
	font-weight: 700;
	text-decoration: none;
}

.site-nav a[aria-current="page"] {
	color: var(--accent);
}

.site-tools {
	display: flex;
	justify-self: end;
	align-items: center;
	gap: 4px;
}

.site-line {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--line);
	color: var(--ink);
	font-family: var(--latin);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.site-line__more {
	display: none;
}

.site-user {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--round);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

@media (max-width: 599px) {
	.site-user__name {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}

.site-cart {
	display: grid;
	position: relative;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--ink);
}

.site-cart:hover {
	background: var(--panel);
}

.site-cart__count {
	position: absolute;
	top: 1px;
	right: -1px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--paper);
	font-family: var(--latin);
	font-size: 12px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
}

@media (min-width: 960px) {
	.site-header__inner {
		grid-template-columns: auto 1fr auto;
		gap: 40px;
	}

	.menu-button {
		display: none;
	}

	.site-logo {
		gap: 8px;
		font-size: 20px;
	}

	.site-logo img {
		width: 36px;
		height: 36px;
	}

	.site-nav,
	.menu-open .site-nav {
		display: block;
		position: static;
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	.site-nav ul {
		display: flex;
		gap: 28px;
	}

	.site-nav a {
		padding: 6px 0;
		border: 0;
		border-bottom: 3px solid transparent;
	}

	.site-nav a:hover,
	.site-nav a[aria-current="page"] {
		border-bottom-color: var(--accent);
		color: var(--ink);
	}

	.site-tools {
		gap: 12px;
	}

	.site-line {
		min-height: 40px;
		padding: 0 18px;
		font-family: var(--round);
		font-size: 14px;
		font-weight: 700;
	}

	.site-line__more {
		display: inline;
	}
}

/* ---------- フッター ---------- */

.site-footer {
	padding: 48px 0 24px;
	border-top: 2px dotted var(--rule);
	background: var(--panel);
}

.site-footer__inner {
	display: grid;
	gap: 24px;
}

.site-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px; /* 指で押せる高さ */
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.site-footer__nav a:hover {
	text-decoration: underline;
}

.site-footer__mail {
	margin: 0;
	color: var(--ink-2);
	font-size: 13px;
	line-height: 1.7;
}

.site-footer__copy {
	margin: 32px 0 0;
	color: var(--ink-2);
	font-size: 12px;
	text-align: center;
}

@media (min-width: 960px) {
	.site-footer__inner {
		grid-template-columns: auto 1fr auto;
		align-items: start;
		gap: 48px;
	}
}

/* ---------- お知らせ（WooCommerce の通知） ---------- */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 24px;
	padding: 14px 20px;
	border-radius: var(--radius-card);
	background: var(--panel);
	font-weight: 700;
	list-style: none;
}

.woocommerce-message .button {
	order: 2;
	min-height: 40px;
	padding: 0 20px;
	font-size: 14px;
}

/* ---------- 商品一覧 ---------- */

.shop {
	padding-top: 0;
}

.shop-head__photo {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.shop-head__text {
	padding-top: 24px;
}

.shop-head h1 {
	margin: 0;
}

.shop-head__count {
	margin: 4px 0 0;
	color: var(--ink-2);
	font-family: var(--latin);
	font-weight: 700;
}

.shop-tools {
	display: flex;
	position: sticky;
	top: 0;
	z-index: 10;
	align-items: center;
	gap: 12px;
	margin: 16px calc(-1 * var(--gutter)) 0;
	padding: 10px var(--gutter);
	background: var(--paper);
	transition: top 0.3s ease;
}

html:has(.site-header:not(.is-hidden)) .shop-tools {
	top: var(--header-h);
}

.shop-tools .chips {
	flex: 1;
	min-width: 0;
}

.woocommerce-ordering {
	flex: none;
	margin: 0;
}

.woocommerce-ordering select {
	min-height: 40px;
	padding: 0 34px 0 14px;
	border: 1.5px solid var(--ink-2);
	border-radius: 999px;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232E1328' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 11px;
	color: var(--ink);
	font-family: var(--round);
	font-size: 14px;
	font-weight: 700;
	appearance: none;
	cursor: pointer;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 12px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.product-card a {
	display: block;
	color: var(--ink);
	text-decoration: none;
}

.product-card__photo {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	border-radius: var(--radius-photo);
	background: var(--panel);
	object-fit: cover;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card a:hover .product-card__photo {
	box-shadow: var(--shadow);
	transform: translateY(-4px);
}

.product-card__name {
	display: block;
	margin-top: 10px;
	font-family: var(--round);
	font-weight: 700;
	line-height: 1.4;
}

.product-card__model {
	display: block;
	color: var(--ink-2);
	font-size: 13px;
	line-height: 1.5;
}

.product-card .price {
	display: block;
	margin-top: 4px;
}

.shop-empty {
	margin: 40px 0 0;
	text-align: center;
}

ul.page-numbers {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}

ul.page-numbers a,
ul.page-numbers span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1.5px solid var(--ink-2);
	border-radius: 999px;
	font-family: var(--latin);
	font-weight: 700;
	text-decoration: none;
}

ul.page-numbers .current {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

@media (min-width: 600px) {
	.product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 36px 20px;
	}
}

@media (min-width: 960px) {
	.shop-head {
		display: grid;
		grid-template-columns: 5fr 7fr;
		align-items: center;
		gap: 48px;
		max-width: var(--wrap);
		margin: 32px auto 0;
		padding: 0 var(--gutter);
	}

	.shop-head__photo {
		order: 2;
		height: 280px;
		border-radius: var(--radius-photo);
	}

	.shop-head__text.wrap {
		margin: 0;
		padding: 0;
	}

	.shop-tools {
		margin-top: 32px;
	}
}

@media (min-width: 1280px) {
	.product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------- 商品詳細 ---------- */

:where(#main).item {
	padding-top: 16px;
}

.item__top {
	display: grid;
	gap: 24px;
}

.item__photos {
	display: flex;
	gap: 10px;
	margin: 0 calc(-1 * var(--gutter));
	padding: 0 var(--gutter);
	overflow-x: auto;
	scroll-padding: 0 var(--gutter);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.item__photo {
	flex: 0 0 86%;
	width: 86%;
	aspect-ratio: 1;
	border-radius: var(--radius-photo);
	background: var(--panel);
	object-fit: cover;
	scroll-snap-align: start;
}

.item__info h1 {
	margin: 0;
	font-size: clamp(26px, 6vw, 36px);
}

.item__model {
	margin: 4px 0 0;
	color: var(--ink-2);
	font-weight: 700;
}

.item__price {
	margin: 16px 0 0;
	font-size: 26px;
}

.item__ship {
	margin: 12px 0 0;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.7;
}

.item__buy form.cart {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.item__buy .quantity .qty {
	width: 72px;
	min-height: 52px;
	border: 1.5px solid var(--ink-2);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--latin);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}

.item__buy .single_add_to_cart_button {
	flex: 1;
}

.item__lead {
	margin: 20px 0 0;
}

.item__section {
	margin-top: calc(var(--section) * 0.8);
}

.item__section h2 {
	margin-bottom: 20px;
}

.item__desc > :not(h2) {
	max-width: 40em;
}

.model-links {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The phone being viewed: a ring around its photo. */
.model-links a[aria-current="page"] img {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

.model-links a[aria-current="page"] {
	color: var(--accent);
}

.model-links a {
	display: grid;
	justify-items: center;
	gap: 8px;
	font-family: var(--round);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

.model-links img {
	width: 100%;
	max-width: 120px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--panel);
	object-fit: cover;
}

.faq {
	max-width: 48em;
	border-bottom: 2px dotted var(--rule);
}

.faq details {
	border-top: 2px dotted var(--rule);
}

.faq summary {
	position: relative;
	padding: 16px 44px 16px 0;
	font-family: var(--round);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 4px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--panel);
	font-family: var(--latin);
	font-weight: 800;
	line-height: 1;
	transform: translateY(-50%);
}

.faq details[open] summary::after {
	content: "−";
}

.faq details p {
	margin: 0 0 18px;
}

.product-grid--row {
	margin: 0;
}

@media (max-width: 599px) {
	/* 「カートに入れる」は画面の下に貼りつける */
	.item__buy {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 15;
		padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
		border-top: 2px dotted var(--rule);
		background: var(--paper);
	}

	body:has(.item__buy) .site-footer {
		padding-bottom: 104px;
	}

	.product-grid--row {
		grid-template-columns: none;
		grid-auto-columns: 44%;
		grid-auto-flow: column;
		margin: 0 calc(-1 * var(--gutter));
		padding: 0 var(--gutter);
		overflow-x: auto;
		scrollbar-width: none;
	}
}

@media (min-width: 600px) {
	.item__buy {
		margin-top: 24px;
	}

	.product-grid--row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	:where(#main).item {
		padding-top: 40px;
	}

	.item__top {
		grid-template-columns: 7fr 5fr;
		align-items: start;
		gap: 48px;
	}

	.item__photos {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.item__photo {
		width: 100%;
	}

	.item__photo:first-child {
		grid-column: 1 / -1;
	}

	.item__info {
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}

	.model-links {
		max-width: 560px;
	}
}

/* ---------- カート・ご注文の入力・完了 ---------- */

.steps {
	display: flex;
	justify-content: center;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	display: grid;
	position: relative;
	flex: 1;
	justify-items: center;
	gap: 6px;
	max-width: 150px;
	color: var(--ink-2);
	font-family: var(--round);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	display: grid;
	position: relative;
	z-index: 1;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 2px solid var(--rule);
	border-radius: 50%;
	background: var(--paper);
	font-family: var(--latin);
	font-size: 14px;
	font-weight: 800;
}

.steps li + li::after {
	content: "";
	position: absolute;
	top: 15px;
	right: 50%;
	width: 100%;
	height: 2px;
	background: var(--rule);
}

.steps li[aria-current="step"] {
	color: var(--ink);
}

.steps li[aria-current="step"]::before {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--paper);
}

.line-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin: 0 0 28px;
	padding: 16px 20px;
	border-radius: var(--radius-card);
	background: var(--panel);
}

.line-bar p {
	margin: 0;
	font-weight: 700;
	line-height: 1.6;
	word-break: auto-phrase;
}

.line-bar.is-in {
	justify-content: flex-start;
	font-weight: 700;
	line-height: 1.6;
}

.line-bar .button-line {
	min-height: 44px;
	padding: 0 22px;
	font-size: 15px;
}

.order-note {
	margin: 32px 0 16px;
	padding: 12px 20px;
	border-radius: var(--radius-card);
	background: var(--panel);
	font-weight: 700;
}

.cart-empty__title {
	margin: 24px 0 8px;
}

/* 注文の完了（クラシックの完了画面） */
.woocommerce-order > p:first-child {
	font-family: var(--round);
	font-size: 20px;
	font-weight: 700;
	word-break: auto-phrase;
}

.woocommerce-order address {
	font-style: normal;
}

.woocommerce-order-overview {
	display: grid;
	gap: 6px;
	margin: 0 0 28px;
	padding: 16px 20px;
	border-radius: var(--radius-card);
	background: var(--panel);
	list-style: none;
}

.woocommerce-order h2 {
	margin: 32px 0 12px;
	font-size: clamp(19px, 4.4vw, 24px);
}

.woocommerce-bacs-bank-details ul {
	padding-left: 1.2em;
}

/* カートと注文のブロック（WooCommerce の見た目を Y2K の地に合わせる） */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	font-family: "Noto Sans JP", sans-serif;
}

.wc-block-components-button:not(.is-link) {
	min-height: 52px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: var(--paper);
	font-family: var(--round);
	font-size: 16px;
	font-weight: 700;
}

.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):focus {
	background: var(--ink);
	color: var(--paper);
}

.wc-block-components-text-input input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-color: var(--ink-2) !important;
	border-radius: 12px !important;
	background: var(--paper) !important;
	color: var(--ink) !important;
}

.wc-block-components-radio-control__input:checked {
	border-color: var(--accent);
}

.wc-block-components-radio-control__input:checked::before {
	background: var(--accent);
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--accent);
}

.wc-block-components-address-card__edit {
	white-space: nowrap;
}

.wc-block-cart-item__image img {
	border-radius: 12px;
}

.wc-block-components-product-name {
	display: inline-block;
	padding-block: 4px;
	font-family: var(--round);
	font-weight: 700;
	text-decoration: none;
}

.wc-block-cart-item__image a {
	display: block;
}

/* カートと注文で指で押す所は 44px 以上 */
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	min-width: 44px;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	min-height: 44px;
}

.wc-block-cart-item__remove-link,
.wc-block-components-address-card__edit {
	display: inline-flex !important;
	justify-content: center;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
}

.wc-block-components-address-form__address_2-toggle {
	display: flex !important;
	align-items: center;
	min-height: 44px;
}

.wc-block-components-checkbox label {
	align-items: center;
	min-height: 44px;
}

.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-totals-wrapper {
	border-color: var(--rule) !important;
}

.wc-block-cart .wc-block-cart__totals-title,
.wc-block-components-checkout-step__title,
.wc-block-components-title {
	font-family: var(--round) !important;
	font-weight: 700 !important;
}

.wc-block-components-notice-banner {
	border-radius: var(--radius-card);
}

/* ---------- ダミーの LINE ログイン・マイページ ---------- */

:where(#main).line-consent {
	max-width: 440px;
	margin: 32px auto var(--section);
	padding: 0 24px 28px;
	overflow: hidden;
	border: 2px solid var(--line);
	border-radius: var(--radius-card);
	text-align: center;
}

.line-consent__app {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 0 -24px !important;
	padding: 14px 24px;
	background: var(--line);
	color: var(--ink);
	font-family: var(--round);
	font-weight: 700;
}

.line-consent__app img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--paper);
}

.line-consent__who {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 24px !important;
	font-family: var(--round);
	font-weight: 700;
}

.line-consent h1 {
	margin: 0;
	font-size: 20px;
}

.line-consent__list {
	display: grid;
	gap: 6px;
	padding: 16px 20px;
	border-radius: 14px;
	background: var(--panel);
	list-style: none;
	text-align: left;
}

.line-consent__list li::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--line);
	vertical-align: middle;
}

.line-consent form {
	display: grid;
	gap: 10px;
}

.line-consent__allow,
.line-consent__cancel {
	min-height: 52px;
	border-radius: 999px;
	font-family: var(--round);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.line-consent__allow {
	border: 0;
	background: var(--line);
	color: var(--ink);
}

.line-consent__cancel {
	border: 2px solid var(--ink-2);
	background: transparent;
	color: var(--ink);
}

.line-consent__note {
	color: var(--ink-2);
	font-size: 12px;
}

.mypage__hello {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--round);
	font-size: 18px;
	font-weight: 700;
}

.order-list {
	display: grid;
	gap: 16px;
	padding: 0;
	list-style: none;
}

.order-list li {
	padding: 16px 20px;
	border-radius: var(--radius-card);
	background: var(--panel);
}

.order-list dl {
	display: grid;
	grid-template-columns: 5em 1fr;
	gap: 4px 12px;
	margin: 0;
}

.order-list dt {
	color: var(--ink-2);
	font-size: 13px;
	line-height: 2;
}

.order-list dd {
	margin: 0;
}

.mypage form button {
	min-height: 44px;
	padding: 0 24px;
}

/* ---------- お知らせの一覧・記事 ---------- */

:where(#main).news {
	max-width: calc(880px + var(--gutter) * 2);
}

:where(#main).news-article,
:where(#main).doc,
:where(#main).mypage {
	max-width: calc(720px + var(--gutter) * 2);
}

.news-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 2px dotted var(--rule);
}

.news-list a {
	display: grid;
	grid-template-columns: 112px 1fr;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-top: 2px dotted var(--rule);
	text-decoration: none;
}

.news-list img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 12px;
}

.news-list__text {
	display: grid;
	gap: 2px;
}

.news-list time,
.news-article time {
	color: var(--accent);
	font-family: var(--latin);
	font-size: 14px;
	font-weight: 800;
}

.news-list__title {
	font-weight: 700;
	word-break: auto-phrase;
}

.news-list a:hover .news-list__title {
	text-decoration: underline;
}

.news-article time {
	display: block;
	margin-bottom: 8px;
}

.news-article h1,
.doc h1 {
	font-size: clamp(24px, 6vw, 36px);
}

.news-article__photo {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius-photo);
}

.news-article__body {
	margin-top: 24px;
}

.news-article__back {
	margin-top: 48px;
	text-align: center;
}

@media (min-width: 960px) {
	.news-list a {
		grid-template-columns: 200px 1fr;
		gap: 32px;
		padding: 24px 0;
	}

	.news-list__title {
		font-size: 18px;
	}
}

/* ---------- 特定商取引法に基づく表記・プライバシーポリシー ---------- */

.doc-table {
	margin: 0;
	border-top: 2px dotted var(--rule);
}

.doc-table > div {
	display: grid;
	gap: 4px;
	padding: 16px 0;
	border-bottom: 2px dotted var(--rule);
}

.doc-table dt {
	color: var(--ink-2);
	font-family: var(--round);
	font-size: 14px;
	font-weight: 700;
}

.doc-table dd {
	margin: 0;
}

.doc-table ul {
	margin: 0;
	padding-left: 1.2em;
}

@media (min-width: 600px) {
	.doc-table > div {
		grid-template-columns: 11em 1fr;
		gap: 24px;
	}
}

/* ---------- 見つからないページ ---------- */

.lost {
	text-align: center;
}

.lost__code {
	margin: 24px 0 8px;
	color: var(--accent);
	font-family: var(--latin);
	font-size: clamp(72px, 20vw, 140px);
	font-weight: 900;
	line-height: 1;
}

.lost__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

/* ---------- トップ ---------- */

:where(#main).top {
	padding-top: 0;
}

/* Hero: without hero.js (or with reduced motion) the finished case and the title show at once. */
.hero {
	background: radial-gradient(circle at 50% 42%, var(--panel), var(--paper) 72%);
}

.hero__stage {
	display: grid;
	position: relative;
	align-content: center;
	justify-items: center;
	gap: 24px;
	min-height: calc(100svh - var(--header-h));
	padding: 24px var(--gutter) 40px;
	overflow: clip; /* parts fly in from outside the screen */
}

.hero__case {
	position: relative;
	width: min(100%, calc(min(50svh, 520px) * 2 / 3));
	aspect-ratio: 2 / 3;
}

.hero__case img {
	position: absolute;
}

.hero__base,
.hero__full {
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero__base,
.hero__part,
.hero__hint {
	display: none;
}

.hero__part {
	top: var(--y);
	left: var(--x);
	width: var(--w);
	height: auto;
	translate: -50% -50%;
	will-change: transform, opacity;
}

.hero__copy {
	text-align: center;
}

.hero__copy .label {
	margin-bottom: 12px;
}

.hero__copy h1 {
	margin: 0;
	color: var(--accent);
	font-size: clamp(40px, 11vw, 72px);
	line-height: 1.1;
}

.hero__catch {
	margin: 10px 0 0;
	font-family: var(--round);
	font-size: clamp(19px, 4.8vw, 26px);
	font-weight: 900;
	line-height: 1.4;
}

.hero__lead {
	margin: 8px 0 20px;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.7;
}

.hero.is-anim {
	height: 260svh;
}

.hero.is-anim .hero__stage {
	position: sticky;
	top: 0;
	height: 100svh;
	min-height: 0;
	padding-top: calc(var(--header-h) + 12px);
}

.hero.is-anim .hero__base,
.hero.is-anim .hero__part {
	display: block;
}

.hero.is-anim .hero__part,
.hero.is-anim .hero__full,
.hero.is-anim .hero__copy {
	opacity: 0;
}

/* A keyboard visitor tabbing into the title area sees it at once. */
.hero.is-anim .hero__copy:focus-within {
	opacity: 1 !important;
	transform: none !important;
}

.hero.is-anim .hero__hint {
	display: block;
	position: absolute;
	right: 0;
	bottom: 28px;
	left: 0;
	margin: 0;
	color: var(--ink-2);
	font-family: var(--round);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.hero__hint::after {
	content: "";
	display: block;
	width: 2px;
	height: 28px;
	margin: 8px auto 0;
	border-radius: 2px;
	background: var(--accent);
}

@media (min-width: 960px) {
	.hero__stage {
		grid-template-columns: 7fr 5fr;
		align-items: center;
		gap: 48px;
		/* the page's width by padding, so parts flying in are cut at the screen's edge, not the column's */
		padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
	}

	.hero__case {
		justify-self: end; /* next to the title, not adrift in the wide column */
		width: calc(min(74svh, 660px) * 2 / 3);
	}

	.hero__copy {
		justify-self: start;
		text-align: left;
	}

	.hero__copy h1 {
		font-size: clamp(48px, 4.6vw, 60px);
		white-space: nowrap;
	}

	.hero__lead {
		font-size: 15px;
	}
}

.top-section {
	margin-top: var(--section);
}

.top-section h2 {
	margin-bottom: 24px;
}

/* 新作 */
.top-new {
	display: grid;
	overflow: hidden;
	border-radius: var(--radius-card);
	background: var(--panel);
	box-shadow: var(--shadow);
}

.top-new__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.top-new__text {
	padding: 24px 20px 28px;
}

.top-new__text h2 {
	margin-bottom: 8px;
}

.top-new__text p {
	margin: 0;
}

.top-new__price {
	margin: 12px 0 20px !important;
	font-size: 22px;
}

@media (min-width: 960px) {
	.top-new {
		grid-template-columns: 6fr 5fr;
		align-items: center;
	}

	.top-new__text {
		padding: 40px 56px 40px 24px;
	}
}

/* 機種から選ぶ */
.model-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.model-card {
	display: grid;
	justify-items: center;
	gap: 4px;
	height: 100%;
	padding: 20px 12px;
	border: 2px dotted var(--rule);
	border-radius: var(--radius-card);
	background: var(--paper);
	color: var(--ink);
	text-align: center;
	text-decoration: none;
	transition: border-color 0.2s, transform 0.2s;
}

.model-card svg {
	margin-bottom: 8px;
	color: var(--accent);
}

.model-card:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
}

.model-card__name {
	font-family: var(--latin);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
}

.model-card__count {
	color: var(--ink-2);
	font-size: 13px;
}

@media (min-width: 960px) {
	.model-cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
	}
}

/* 10のデザイン：スマホは横に送る、PC は5列×2段 */
.design-band {
	display: grid;
	grid-auto-columns: 34%;
	grid-auto-flow: column;
	gap: 12px;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter) 4px;
	overflow-x: auto;
	list-style: none;
	scroll-padding: 0 var(--gutter);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.design-band li {
	scroll-snap-align: start;
}

.design-band a {
	display: grid;
	justify-items: center;
	gap: 10px;
	font-family: var(--round);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

.design-band img {
	width: 100%;
	aspect-ratio: 1;
	border: 3px solid var(--paper);
	border-radius: 50%;
	background: var(--panel);
	box-shadow: 0 0 0 2px var(--rule);
	object-fit: cover;
	transition: box-shadow 0.2s;
}

.design-band a:hover img {
	box-shadow: 0 0 0 3px var(--accent);
}

@media (min-width: 960px) {
	.design-band {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		grid-auto-flow: row;
		gap: 32px 28px;
		overflow: visible;
	}
}

/* お店のこだわり */
.craft {
	display: grid;
	gap: 40px;
}

.craft__text > p {
	max-width: 32em;
}

.promises {
	display: grid;
	gap: 20px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: promise;
}

.promises li {
	display: grid;
	grid-template-columns: 48px 1fr;
	column-gap: 16px;
	counter-increment: promise;
}

.promises li::before {
	content: counter(promise, decimal-leading-zero);
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--paper);
	font-family: var(--latin);
	font-weight: 800;
}

.promises p {
	margin: 2px 0 0;
	color: var(--ink-2);
	font-size: 14px;
}

/* The workbench across the top, then the three ways it is carried, the middle one set lower. */
.craft__photos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: 10px;
}

.craft__photos img {
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: var(--radius-photo);
	object-fit: cover;
}

.craft__photos img:first-child {
	grid-column: 1 / -1;
	aspect-ratio: 3 / 2;
}

.craft__photos img:nth-child(3) {
	margin-top: 28px;
}

@media (min-width: 960px) {
	.craft {
		grid-template-columns: 5fr 7fr;
		align-items: start;
		gap: 56px;
	}

	.craft__text {
		position: sticky;
		top: calc(var(--header-h) + 32px);
	}
}

/* お知らせ */
.top-news__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.top-news__head h2 {
	margin-bottom: 0;
}

.top-news__more {
	font-family: var(--round);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.top-news ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 2px dotted var(--rule);
}

.top-news li a {
	display: grid;
	gap: 2px;
	padding: 16px 0;
	border-top: 2px dotted var(--rule);
	text-decoration: none;
}

.top-news time {
	color: var(--accent);
	font-family: var(--latin);
	font-size: 14px;
	font-weight: 800;
}

.top-news__title {
	font-weight: 700;
	word-break: auto-phrase;
}

.top-news li a:hover .top-news__title {
	text-decoration: underline;
}

@media (min-width: 960px) {
	.top-news li a {
		grid-template-columns: 8em 1fr;
		align-items: baseline;
		gap: 24px;
		padding: 20px 0;
	}
}

/* LINE でログインの案内 */
.top-line {
	padding: 40px 24px;
	border: 2px solid var(--line);
	border-radius: var(--radius-card);
	text-align: center;
}

.top-line h2 {
	margin-bottom: 12px;
}

.top-line p {
	margin: 0 0 24px;
	word-break: auto-phrase;
}

/* ---------- 動き ---------- */

.js-reveal .reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}
