/*
Theme Name:   HMD Minimal Store
Description:  白黒基調のシンプルな Storefront 子テーマ（試作版）
Author:       HMD
Template:     storefront
Version:      0.7.1
Requires PHP: 7.4
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  hmd-minimal-store
*/

/* =========================================================
   読み込み順と詳細度について
   - このファイルは Storefront の style.css / woocommerce.css と
     カスタマイザーのインラインCSSより後に読み込まれる。
   - body に付けた .hmd を頭につけ、親側より高い詳細度で上書きしている。
   - 親のヘッダー幅指定は最大 (0,4,0)、商品詳細の幅指定は (0,4,1) なので、
     それを超えるセレクタにしている。
   ========================================================= */

:root {
	--hmd-bg: #f7f7f5;
	--hmd-white: #ffffff;
	--hmd-band: #ebebe8;
	--hmd-image-bg: #ececea;
	--hmd-text: #2b2b2b;
	--hmd-muted: #7a7a7a;
	--hmd-line: #dcdcd8;
	--hmd-dark: #2b2b2b;
	--hmd-font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	--hmd-font-en: "Jost", "Noto Sans JP", "Hiragino Sans", sans-serif;
	--hmd-font-logo: "Marcellus", "Times New Roman", serif;
}

/* ---------- ベース ---------- */
/* WordPress のカスタム背景 body.custom-background (0,1,1) より強くする */
html body.hmd {
	background-color: var(--hmd-bg);
	color: var(--hmd-text);
	font-family: var(--hmd-font);
	font-size: 14px;
	line-height: 1.85;
	letter-spacing: 0.03em;
	-webkit-font-smoothing: antialiased;
}

body.hmd h1,
body.hmd h2,
body.hmd h3,
body.hmd h4,
body.hmd h5,
body.hmd h6 {
	color: var(--hmd-text);
	font-family: var(--hmd-font);
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.5;
}

body.hmd a {
	color: var(--hmd-text);
}

body.hmd a:hover {
	color: var(--hmd-muted);
}

body.hmd a:focus-visible,
body.hmd button:focus-visible,
body.hmd .button:focus-visible,
body.hmd input:focus-visible,
body.hmd select:focus-visible,
body.hmd textarea:focus-visible {
	outline: 1px solid var(--hmd-dark);
	outline-offset: 3px;
}

/* ---------- ヘッダー ---------- */
/* #masthead を使い、親の .home.page:not(...) .site-header (0,4,0) などより強くする */
body.hmd #masthead.site-header {
	background-color: var(--hmd-bg);
	border-bottom: 1px solid var(--hmd-line);
	margin-bottom: 0;
	padding-top: 1.2em;
	padding-bottom: 1.2em;
}

body.hmd .site-header .site-branding .site-title {
	font-family: var(--hmd-font-logo);
	font-size: 1.85em;
	font-weight: 400;
	letter-spacing: 0.18em;
	line-height: 1.2;
	margin: 0;
}

body.hmd .site-header .site-branding .site-title a {
	color: var(--hmd-text);
}

/* 親はスマホで .site-branding .site-description (0,2,0) を display: none にしているため表示に戻す */
body.hmd .site-header .site-branding .site-description {
	display: block;
	color: var(--hmd-muted);
	font-size: 0.8em;
	letter-spacing: 0.06em;
	margin: 0.2em 0 0;
}

body.hmd .main-navigation ul li a,
body.hmd .site-header ul.menu li a {
	color: var(--hmd-text);
	font-family: var(--hmd-font-en);
	font-size: 0.92rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.hmd .main-navigation ul li a:hover,
body.hmd .main-navigation ul li:hover > a {
	color: var(--hmd-muted);
}

/* サブメニュー */
body.hmd .main-navigation ul.menu ul.sub-menu,
body.hmd .main-navigation ul.nav-menu ul.children {
	background-color: var(--hmd-white);
	border: 1px solid var(--hmd-line);
}

/* カート */
body.hmd .hmd-header-actions {
	display: flex;
	align-items: center;
	gap: 1.2em;
}

body.hmd .hmd-header-actions a.hmd-header-cart {
	position: relative;
	display: inline-flex;
	color: var(--hmd-text);
	text-decoration: none;
}

body.hmd .hmd-header-actions .hmd-cart-count {
	position: absolute;
	top: -0.55em;
	right: -0.75em;
	min-width: 1.6em;
	height: 1.6em;
	padding: 0 0.3em;
	border-radius: 999px;
	background-color: var(--hmd-dark);
	color: var(--hmd-white);
	font-family: var(--hmd-font-en);
	font-size: 0.62rem;
	line-height: 1.6em;
	letter-spacing: 0;
	text-align: center;
}

/* ハンバーガーメニュー（スマホ） */
body.hmd .site-header button.menu-toggle {
	background-color: transparent;
	border: 1px solid var(--hmd-line);
	color: var(--hmd-text);
	box-shadow: none;
}

body.hmd .site-header button.menu-toggle:hover {
	background-color: var(--hmd-white);
	color: var(--hmd-text);
}

/* スマホではカートを出さない（画面下の固定バーにあるため）
   メニューボタンは三本線だけにする（「メニュー」の文字は font-size 0 で隠す。読み上げには残る）
   親: button.menu-toggle (0,1,1) / ::before 等 (0,1,2) / カスタマイザーの色指定 (0,2,2) 程度 → (0,3,3) で上書き
   三本線の開閉アニメーション（transform）は親の .toggled 側に任せるため、ここでは指定しない */
@media (max-width: 767px) {
	body.hmd .hmd-header-actions {
		display: none;
	}

	body.hmd .site-header .hmd-header-row::after {
		content: "";
		display: table;
		clear: both;
	}

	body.hmd .site-header .hmd-header-row > .site-branding {
		float: left;
		width: calc(100% - 56px);
		margin-bottom: 0;
	}

	body.hmd .site-header button.menu-toggle {
		width: 44px;
		height: 44px;
		max-width: none;
		padding: 0;
		border: 0;
		background-color: transparent;
		color: transparent;
		font-size: 0;
		line-height: 0;
	}

	body.hmd .site-header button.menu-toggle:hover,
	body.hmd .site-header button.menu-toggle:focus {
		background-color: transparent;
		color: transparent;
	}

	body.hmd .site-header button.menu-toggle::before,
	body.hmd .site-header button.menu-toggle::after,
	body.hmd .site-header button.menu-toggle span::before {
		left: 50%;
		width: 20px;
		height: 1.5px;
		margin-left: -10px;
		border-radius: 0;
		background-color: var(--hmd-text);
	}
}

/* スマホメニューの開閉を速くする
   親は max-height を 0 ⇔ 9999px で 0.8秒かけて変化させるため、
   閉じるときに動き出しが遅れて見える。開閉アニメーションを止めて即時に切り替える。
   親: .main-navigation div.menu > ul:not(.nav-menu) (0,3,2) / .handheld-navigation ul.menu .sub-menu (0,3,1) */
@media (max-width: 767px) {
	body.hmd .main-navigation .handheld-navigation,
	body.hmd .main-navigation .nav-menu,
	body.hmd .main-navigation div.menu > ul:not(.nav-menu) {
		transition: none;
	}

	body.hmd .main-navigation .handheld-navigation ul.menu .sub-menu,
	body.hmd .main-navigation .handheld-navigation ul.menu li button::after {
		transition-duration: 0.2s;
	}

	body.hmd .site-header button.menu-toggle::before,
	body.hmd .site-header button.menu-toggle::after,
	body.hmd .site-header button.menu-toggle span::before {
		transition-duration: 0.15s;
	}
}

/* PC：1行に並べる */
@media (min-width: 768px) {
	body.hmd .site-header .hmd-header-row {
		display: flex;
		align-items: center;
		gap: 2.8em;
	}

	/* 親: .storefront-secondary-navigation.woocommerce-active .site-header .site-branding (0,4,0) */
	body.hmd .site-header .hmd-header-row > .site-branding,
	body.hmd .site-header .hmd-header-row > .main-navigation {
		float: none;
		clear: none;
		width: auto;
		margin: 0;
	}

	body.hmd .site-header .hmd-header-row > .site-branding {
		flex: 0 0 auto;
	}

	body.hmd .site-header .hmd-header-row > .main-navigation {
		flex: 1 1 auto;
	}

	body.hmd .site-header .hmd-header-row > .hmd-header-actions {
		flex: 0 0 auto;
		margin-left: auto;
		padding-right: 0.6em;
	}

	body.hmd .main-navigation ul.menu > li > a,
	body.hmd .main-navigation ul.nav-menu > li > a {
		padding: 0.6em 0.9em;
	}

	/* 選択中のメニューに下線 */
	body.hmd .main-navigation ul.menu > li.current-menu-item > a,
	body.hmd .main-navigation ul.menu > li.current_page_item > a,
	body.hmd .main-navigation ul.menu > li.current-menu-ancestor > a,
	body.hmd .main-navigation ul.nav-menu > li.current_page_item > a {
		box-shadow: inset 0 -1px 0 var(--hmd-dark);
	}
}

/* ---------- ページ見出しの帯・パンくず ---------- */
body.hmd .hmd-page-band {
	background-color: var(--hmd-band);
	padding: 1.3em 0;
}

body.hmd .hmd-page-band .hmd-page-band__title {
	margin: 0;
	font-family: var(--hmd-font-en);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.hmd .storefront-breadcrumb {
	background-color: transparent;
	margin: 0 0 1.5em;
	padding: 1.3em 0 0;
}

body.hmd .storefront-breadcrumb .woocommerce-breadcrumb {
	color: var(--hmd-muted);
	font-size: 0.8em;
}

body.hmd .storefront-breadcrumb .woocommerce-breadcrumb a {
	color: var(--hmd-muted);
}

body.hmd.hmd-front .storefront-breadcrumb {
	display: none;
}

/* ---------- ボタン ---------- */
/* カスタマイザーのボタン色 (最大 0,2,1) より強くする */
body.hmd button,
body.hmd input[type="button"],
body.hmd input[type="reset"],
body.hmd input[type="submit"],
body.hmd .button,
body.hmd .widget a.button {
	background-color: transparent;
	border: 1px solid var(--hmd-dark);
	border-radius: 0;
	box-shadow: none;
	color: var(--hmd-text);
	font-weight: 400;
	letter-spacing: 0.08em;
	padding: 0.75em 1.8em;
}

body.hmd button:hover,
body.hmd input[type="button"]:hover,
body.hmd input[type="reset"]:hover,
body.hmd input[type="submit"]:hover,
body.hmd .button:hover,
body.hmd .widget a.button:hover {
	background-color: var(--hmd-dark);
	border-color: var(--hmd-dark);
	color: var(--hmd-white);
}

/* 購入・決済など重要なボタンは塗り */
body.hmd button.alt,
body.hmd input[type="button"].alt,
body.hmd input[type="reset"].alt,
body.hmd input[type="submit"].alt,
body.hmd .button.alt,
body.hmd .widget-area .widget a.button.alt {
	background-color: var(--hmd-dark);
	border-color: var(--hmd-dark);
	color: var(--hmd-white);
}

body.hmd button.alt:hover,
body.hmd input[type="submit"].alt:hover,
body.hmd .button.alt:hover,
body.hmd .widget-area .widget a.button.alt:hover {
	background-color: #000000;
	border-color: #000000;
	color: var(--hmd-white);
}

/* ---------- フォーム ---------- */
body.hmd input[type="text"],
body.hmd input[type="email"],
body.hmd input[type="url"],
body.hmd input[type="password"],
body.hmd input[type="search"],
body.hmd input[type="number"],
body.hmd input[type="tel"],
body.hmd textarea,
body.hmd .input-text,
body.hmd select {
	background-color: var(--hmd-white);
	border: 1px solid var(--hmd-line);
	border-radius: 0;
	box-shadow: none;
	color: var(--hmd-text);
}

body.hmd input[type="text"]:focus,
body.hmd input[type="email"]:focus,
body.hmd input[type="password"]:focus,
body.hmd input[type="search"]:focus,
body.hmd input[type="tel"]:focus,
body.hmd textarea:focus,
body.hmd .input-text:focus {
	background-color: var(--hmd-white);
	border-color: var(--hmd-dark);
}

/* ---------- 商品一覧 ---------- */
body.hmd .site-main ul.products li.product {
	text-align: left;
}

/* 親: ul.products li.product img (0,2,3) */
body.hmd .site-main ul.products li.product .hmd-thumb {
	position: relative;
	display: block;
	margin-bottom: 0.9em;
	background-color: var(--hmd-image-bg);
}

/* サムネイルは 1:1 に統一（元画像の比率に関係なく中央で切り抜く） */
body.hmd .site-main ul.products li.product .hmd-thumb {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

body.hmd .site-main ul.products li.product .hmd-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	transition: opacity 0.3s ease;
}

body.hmd .site-main ul.products li.product a.woocommerce-LoopProduct-link:hover .hmd-thumb img {
	opacity: 0.85;
}

body.hmd .site-main ul.products li.product .woocommerce-loop-product__title,
body.hmd .site-main ul.products li.product .woocommerce-loop-category__title {
	color: var(--hmd-text);
	font-size: 0.88rem;
	font-weight: 400;
	letter-spacing: 0.05em;
	line-height: 1.6;
	margin-bottom: 0.2em;
}

body.hmd .site-main ul.products li.product .star-rating {
	font-size: 0.7em;
	margin-bottom: 0.4em;
}

/* 一覧の価格は太字（PC・スマホ共通）。セール前の取り消し線の価格だけは細字のまま
   親: .price ins / .price del (0,1,1) */
body.hmd .site-main ul.products li.product .price {
	color: var(--hmd-text);
	font-size: 0.88rem;
	font-weight: 700;
	margin-bottom: 0.8em;
}

body.hmd .site-main ul.products li.product .price ins,
body.hmd .site-main ul.products li.product .price .amount {
	font-weight: 700;
}

body.hmd .site-main ul.products li.product .price del,
body.hmd .site-main ul.products li.product .price del .amount {
	font-weight: 400;
}

/* 一覧の「カートに追加」は控えめに */
body.hmd .site-main ul.products li.product .button {
	padding: 0.45em 1.1em;
	font-size: 0.78rem;
}

/* セール表示（画像右上の丸） */
body.hmd .site-main ul.products li.product .hmd-thumb .onsale {
	position: absolute;
	top: 0.7em;
	right: 0.7em;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.2em;
	height: 3.2em;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--hmd-dark);
	color: var(--hmd-white);
	font-size: 0.66rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: none;
}

/* 商品詳細のセール表示 */
body.hmd .site-main .onsale {
	border: 1px solid var(--hmd-dark);
	border-radius: 0;
	color: var(--hmd-text);
	font-size: 0.75em;
	font-weight: 400;
	text-transform: none;
}

body.hmd .price del {
	color: var(--hmd-muted);
	opacity: 1;
}

body.hmd .price ins {
	color: var(--hmd-text);
	font-weight: 500;
	text-decoration: none;
}

/* 件数・並び替え */
body.hmd .woocommerce-result-count,
body.hmd .woocommerce-ordering {
	color: var(--hmd-muted);
	font-size: 0.82em;
}

body.hmd .storefront-sorting {
	border-bottom: 0;
	margin-bottom: 1.5em;
}

/* ページ送り */
body.hmd .woocommerce-pagination .page-numbers li .page-numbers,
body.hmd .pagination .page-numbers li .page-numbers {
	background-color: transparent;
	color: var(--hmd-text);
	font-family: var(--hmd-font-en);
}

body.hmd .woocommerce-pagination .page-numbers li .page-numbers.current,
body.hmd .pagination .page-numbers li .page-numbers.current {
	background-color: var(--hmd-dark);
	color: var(--hmd-white);
}

/* ---------- 商品詳細 ---------- */
body.hmd.single-product div.product .product_title {
	font-family: var(--hmd-font-en), var(--hmd-font);
	font-size: 1.5em;
	font-weight: 500;
	letter-spacing: 0.06em;
	margin-bottom: 0.3em;
}

body.hmd.single-product div.product p.price {
	color: var(--hmd-text);
	font-size: 1.3em;
	font-weight: 400;
	margin: 1.2em 0;
}

body.hmd.single-product div.product .woocommerce-product-details__short-description {
	color: var(--hmd-text);
	font-size: 0.95em;
}

body.hmd.single-product div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8em;
	padding: 0;
	margin-bottom: 1.8em;
}

body.hmd.single-product div.product form.cart .quantity {
	float: none;
	margin: 0;
}

body.hmd.single-product div.product form.cart .quantity .qty {
	width: 4.5em;
	padding: 0.7em 0.5em;
	text-align: center;
}

/* 商品詳細の「カートに追加」は枠線のみ（.alt でも塗らない） */
body.hmd.single-product div.product form.cart .single_add_to_cart_button.button.alt {
	float: none;
	background-color: transparent;
	border-color: var(--hmd-dark);
	color: var(--hmd-text);
	padding: 0.8em 2.6em;
}

body.hmd.single-product div.product form.cart .single_add_to_cart_button.button.alt:hover {
	background-color: var(--hmd-dark);
	color: var(--hmd-white);
}

body.hmd.single-product div.product form.cart.variations_form {
	display: block;
}

body.hmd.single-product div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8em;
}

body.hmd.single-product div.product .product_meta {
	border-top: 1px solid var(--hmd-line);
	color: var(--hmd-muted);
	font-size: 0.82em;
	padding-top: 1em;
}

body.hmd.single-product div.product .woocommerce-product-gallery {
	background-color: var(--hmd-image-bg);
}

/* タブ */
body.hmd .woocommerce-tabs ul.tabs li a {
	color: var(--hmd-muted);
	font-family: var(--hmd-font-en), var(--hmd-font);
	font-weight: 400;
	letter-spacing: 0.06em;
}

body.hmd .woocommerce-tabs ul.tabs li.active a {
	color: var(--hmd-text);
}

body.hmd .woocommerce-tabs ul.tabs li.active::after {
	display: none;
}

/* 関連商品などの見出し */
body.hmd .related.products > h2,
body.hmd .upsells.products > h2 {
	font-family: var(--hmd-font-en), var(--hmd-font);
	font-size: 1.05em;
	letter-spacing: 0.12em;
	text-align: center;
	margin-bottom: 1.5em;
}

/* PC：画像を大きめに（親: .storefront-full-width-content.single-product div.product ... (0,4,1)） */
@media (min-width: 768px) {
	body.hmd.single-product div.product .woocommerce-product-gallery {
		width: 54%;
		margin-right: 5%;
	}

	body.hmd.single-product div.product .summary {
		width: 41%;
		margin-right: 0;
	}
}

/* ---------- テーブル（カート・チェックアウト・マイアカウント） ---------- */
body.hmd table:not( .has-background ) th {
	background-color: var(--hmd-band);
	font-weight: 500;
}

body.hmd table:not( .has-background ) tbody td {
	background-color: var(--hmd-white);
}

body.hmd table.shop_table td,
body.hmd table.shop_table th {
	border-bottom: 1px solid var(--hmd-line);
}

body.hmd.woocommerce-cart .cart-collaterals .cart_totals,
body.hmd.woocommerce-checkout #order_review {
	background-color: var(--hmd-white);
	padding: 1.5em;
}

/* カート下段（クーポン・カート更新）
   親: table.cart td.actions (0,2,2) / table.cart td.actions input (0,2,3) /
       PC時 table.cart td.actions .coupon (0,3,2) */
body.hmd table.cart td.actions {
	background-color: var(--hmd-white);
	border-top: 1px solid var(--hmd-line);
	padding: 1.2em 1.5em;
}

body.hmd table.cart td.actions input.input-text,
body.hmd table.cart td.actions .button {
	font-size: 0.88rem;
	line-height: 1.5;
	margin: 0;
	padding: 0.7em 1.4em;
}

body.hmd table.cart td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	padding-bottom: 1em;
	margin-bottom: 1em;
}

body.hmd table.cart td.actions .coupon input.input-text {
	flex: 1 1 10em;
	width: auto;
}

body.hmd table.cart td.actions .coupon .button {
	flex: 0 0 auto;
}

body.hmd table.cart td.actions > .button {
	display: block;
	width: 100%;
}

@media (min-width: 768px) {
	body.hmd table.cart td.actions .coupon {
		float: left;
		flex-wrap: nowrap;
		padding-bottom: 0;
		margin-bottom: 0;
		border-bottom: 0;
	}

	body.hmd table.cart td.actions .coupon input.input-text {
		flex: 0 0 14em;
		width: 14em;
	}

	body.hmd table.cart td.actions > .button {
		display: inline-block;
		width: auto;
	}
}

/* 通知メッセージ */
body.hmd .woocommerce-message,
body.hmd .woocommerce-info,
body.hmd .woocommerce-noreviews,
body.hmd p.no-comments {
	background-color: var(--hmd-white);
	border-left: 2px solid var(--hmd-dark);
	color: var(--hmd-text);
}

body.hmd .woocommerce-message a,
body.hmd .woocommerce-info a {
	color: var(--hmd-text);
}

body.hmd .woocommerce-error {
	background-color: var(--hmd-white);
	border-left: 2px solid #9a3b32;
	color: var(--hmd-text);
}

/* ---------- トップページ ---------- */
/* 親: .page-template-template-homepage:not(.has-post-thumbnail) .site-main (0,3,0) */
body.hmd.hmd-front.page-template-template-homepage .site-main {
	padding-top: 0;
}

/* メイン画像：画面幅いっぱい */
body.hmd .hmd-hero {
	background-color: var(--hmd-image-bg);
}

body.hmd .hmd-hero img.hmd-hero__image {
	display: block;
	width: 100%;
	height: clamp(260px, 50vw, 620px);
	object-fit: cover;
	margin: 0;
}

/* ようこそ文 */
body.hmd .hmd-welcome {
	max-width: 46em;
	margin: 3.5em auto 4.5em;
}

body.hmd .hmd-welcome .hmd-welcome__title {
	font-family: var(--hmd-font-en);
	font-size: 1.25em;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-align: center;
	margin: 0 0 1.2em;
}

body.hmd .hmd-welcome .hmd-welcome__text p {
	margin-bottom: 1em;
}

/* 商品セクション（親: .storefront-product-section .section-title (0,2,0)） */
body.hmd.hmd-front .storefront-product-section {
	margin-bottom: 4.5em;
}

body.hmd.hmd-front .storefront-product-section .section-title {
	text-align: center;
	margin-bottom: 1.8em;
}

body.hmd .storefront-product-section .section-title .hmd-section-title__en {
	display: block;
	font-family: var(--hmd-font-en);
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0.18em;
}

body.hmd .storefront-product-section .section-title .hmd-section-title__ja {
	display: block;
	color: var(--hmd-muted);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	margin-top: 0.2em;
}

/* カテゴリーから探す（ボタン状のリンク） */
body.hmd .hmd-category-section .hmd-cat-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.8em;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.hmd .hmd-category-section .hmd-cat-list li {
	margin: 0;
}

body.hmd .hmd-category-section .hmd-cat-list a.hmd-cat-btn {
	display: inline-block;
	min-width: 10em;
	padding: 0.85em 1.8em;
	border: 1px solid var(--hmd-dark);
	background-color: var(--hmd-white);
	color: var(--hmd-text);
	font-size: 0.88rem;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.hmd .hmd-category-section .hmd-cat-list a.hmd-cat-btn:hover,
body.hmd .hmd-category-section .hmd-cat-list a.hmd-cat-btn:focus-visible {
	background-color: var(--hmd-dark);
	color: var(--hmd-white);
}

@media (max-width: 767px) {
	body.hmd .hmd-category-section .hmd-cat-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.6em;
	}

	body.hmd .hmd-category-section .hmd-cat-list a.hmd-cat-btn {
		display: block;
		min-width: 0;
		padding: 0.8em 0.6em;
		font-size: 0.82rem;
	}
}

/* カテゴリー */
body.hmd .site-main ul.products li.product-category .woocommerce-loop-category__title {
	text-align: center;
}

body.hmd .site-main ul.products li.product-category .count {
	background-color: transparent;
	color: var(--hmd-muted);
}

body.hmd .site-main ul.products li.product-category img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background-color: var(--hmd-image-bg);
	transition: opacity 0.3s ease;
}

body.hmd .site-main ul.products li.product-category a:hover img {
	opacity: 0.85;
}

/* ---------- フッター ---------- */
body.hmd .site-footer {
	background-color: var(--hmd-band);
	color: var(--hmd-muted);
	font-size: 0.82em;
	text-align: center;
	padding: 2.5em 0 2em;
}

body.hmd .site-footer a:not(.button):not(.components-button) {
	color: var(--hmd-text);
}

body.hmd .site-footer .widget .widget-title,
body.hmd .site-footer .widget .widgettitle {
	color: var(--hmd-text);
	font-family: var(--hmd-font-en), var(--hmd-font);
	font-weight: 500;
	letter-spacing: 0.1em;
}

body.hmd .hmd-footer-nav .hmd-footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4em 2em;
	list-style: none;
	margin: 0 0 1.4em;
	padding: 0;
}

body.hmd .hmd-footer-nav .hmd-footer-nav__list a {
	font-family: var(--hmd-font-en);
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

body.hmd .site-footer .site-info {
	padding: 0;
	text-align: center;
}

/* スマホ下部の固定バー */
body.hmd .storefront-handheld-footer-bar,
body.hmd .storefront-handheld-footer-bar ul li > a,
body.hmd .storefront-handheld-footer-bar ul li.search .site-search {
	background-color: var(--hmd-white);
	color: var(--hmd-text);
}

body.hmd .storefront-handheld-footer-bar {
	border-top: 1px solid var(--hmd-line);
}

body.hmd .storefront-handheld-footer-bar ul li.cart .count {
	background-color: var(--hmd-dark);
	border-color: var(--hmd-white);
	color: var(--hmd-white);
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
	body.hmd .site-header .site-branding .site-title {
		font-size: 1.5em;
	}

	body.hmd .hmd-welcome {
		margin: 2.5em auto 3em;
	}

	body.hmd.hmd-front .storefront-product-section {
		margin-bottom: 3em;
	}
}

/* ---------- スマホ：商品一覧を2列に ----------
   親はスマホ時に li.product を全幅の1列で並べる（ul.products li.product (0,1,3) 程度）。
   ul.products の clearfix 用 ::before / ::after がグリッドの項目にならないよう消す。 */
@media (max-width: 767px) {
	body.hmd .site-main ul.products {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.8em 0.9em;
	}

	body.hmd .site-main ul.products::before,
	body.hmd .site-main ul.products::after {
		display: none;
	}

	body.hmd .site-main ul.products li.product {
		float: none;
		width: auto;
		margin: 0;
	}

	body.hmd .site-main ul.products li.product .woocommerce-loop-product__title,
	body.hmd .site-main ul.products li.product .woocommerce-loop-category__title {
		font-size: 0.82rem;
	}

	body.hmd .site-main ul.products li.product .price {
		font-size: 0.82rem;
		margin-bottom: 0.6em;
	}

	body.hmd .site-main ul.products li.product .button {
		display: block;
		width: 100%;
		padding: 0.55em 0.4em;
		font-size: 0.72rem;
		letter-spacing: 0.02em;
		text-align: center;
		white-space: normal;
	}
}

/* ---------- モーション配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
