/* GEMINI Recovery — design tokens + component styles.
   もしウェブ06のレイアウト規律（グリッド・セクションリズム・フルpill不使用・レスポンシブ設計）を
   構造的に参照しつつ、配色はオーナー提供のマスコット画像＋「グリーン・サバンナ寄り」の指定から
   「ひび割れたコンクリートに苔が戻る」＝復興・再生モチーフとして再構成した。 */

:root {
	--gr-bg: #dde3c7;
	--gr-surface: #eef1e0;
	--gr-surface-2: #c9d2ab;
	--gr-ink: #232a1c;
	--gr-ink-soft: #57604a;
	--gr-border: #b7c294;
	--gr-brick: #a8623f;
	--gr-moss: #3c6b34;
	--gr-moss-ink: #ffffff;
	--gr-mustard: #c99a34;
	--gr-shadow: rgba(31, 38, 22, 0.16);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--gr-bg: #171d13;
		--gr-surface: #1f261a;
		--gr-surface-2: #2a3322;
		--gr-ink: #e9eed6;
		--gr-ink-soft: #aab692;
		--gr-border: #37402a;
		--gr-brick: #c97a52;
		--gr-moss: #86c26a;
		--gr-moss-ink: #14200e;
		--gr-mustard: #dcb654;
		--gr-shadow: rgba(0, 0, 0, 0.55);
	}
}

:root[data-theme="dark"] {
	--gr-bg: #171d13;
	--gr-surface: #1f261a;
	--gr-surface-2: #2a3322;
	--gr-ink: #e9eed6;
	--gr-ink-soft: #aab692;
	--gr-border: #37402a;
	--gr-brick: #c97a52;
	--gr-moss: #86c26a;
	--gr-moss-ink: #14200e;
	--gr-mustard: #dcb654;
	--gr-shadow: rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	background: var(--gr-bg);
	color: var(--gr-ink);
	font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { text-wrap: balance; margin: 0; }

a { color: inherit; }

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

.gr-display {
	font-family: "Reggae One", "Zen Kaku Gothic New", sans-serif;
	font-weight: 400;
	letter-spacing: 0.01em;
}

.gr-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- header ---------- */

.gr-site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--gr-bg);
	border-bottom: 3px solid var(--gr-ink);
}

.gr-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	gap: 24px;
}

.gr-logo {
	font-family: "Reggae One", sans-serif;
	font-size: 24px;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.gr-dot { color: var(--gr-moss); }

.gr-nav-primary {
	display: flex;
	gap: 28px;
	font-size: 13px;
	letter-spacing: 0.08em;
}

.gr-nav-primary a {
	text-decoration: none;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
}
.gr-nav-primary a:hover,
.gr-nav-primary a:focus-visible { border-color: var(--gr-moss); }

.gr-header-actions { display: flex; align-items: center; gap: 12px; }

.gr-cart-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 2px solid var(--gr-ink);
	border-radius: 3px;
	background: var(--gr-surface);
	text-decoration: none;
	color: var(--gr-ink);
}

.gr-cart-icon { width: 20px; height: 20px; }

.gr-cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--gr-moss);
	color: var(--gr-moss-ink);
	font-family: "Space Mono", monospace;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.gr-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border: 2px solid var(--gr-ink);
	border-radius: 3px;
	background: var(--gr-surface);
	cursor: pointer;
	padding: 0;
}

.gr-nav-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: var(--gr-ink);
}

/* ---------- hero ---------- */

.gr-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 3px solid var(--gr-ink);
}

.gr-hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 40px;
	padding: 64px 24px 72px;
}

.gr-badge-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

.gr-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	letter-spacing: 0.08em;
	padding: 6px 12px;
	border-radius: 2px;
	border: 1.5px solid var(--gr-ink);
}

.gr-tag-now {
	background: var(--gr-mustard);
	color: #201d19;
	border-color: transparent;
	font-family: "Space Mono", monospace;
	font-weight: 700;
}

.gr-hero h1 {
	font-size: clamp(38px, 5.4vw, 64px);
	line-height: 1.28;
	color: var(--gr-ink);
}

.gr-accent { color: var(--gr-moss); }

.gr-lead {
	margin-top: 22px;
	max-width: 46ch;
	font-size: 16px;
	line-height: 1.85;
	color: var(--gr-ink-soft);
}

.gr-cta-row {
	margin-top: 34px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.gr-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	letter-spacing: 0.04em;
	padding: 14px 26px;
	border-radius: 3px;
	text-decoration: none;
	border: 2px solid var(--gr-ink);
	transition: transform 0.15s ease;
}
.gr-btn:hover { transform: translateY(-2px); }

.gr-btn-fill { background: var(--gr-ink); color: var(--gr-bg); }
.gr-btn-ghost { background: transparent; color: var(--gr-ink); }

.gr-hero-figure { display: flex; justify-content: center; align-items: flex-start; }
.gr-hero-figure img {
	width: 100%;
	height: auto;
	max-width: 560px;
	object-fit: contain;
	aspect-ratio: 1200 / 620;
	filter: drop-shadow(0 22px 30px var(--gr-shadow));
}

.gr-crack-divider { height: 22px; background: var(--gr-bg); }
.gr-crack-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- notice ---------- */

.gr-notice-section { padding: 0; background: var(--gr-surface-2); border-bottom: 3px solid var(--gr-ink); }

.gr-notice {
	max-width: 1120px;
	margin: 0 auto;
	padding: 30px 24px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.gr-notice-mark {
	font-family: "Reggae One", sans-serif;
	font-size: 22px;
	color: var(--gr-moss);
	flex-shrink: 0;
	line-height: 1;
	padding-top: 2px;
}

.gr-notice p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--gr-ink); max-width: 68ch; }
.gr-notice strong { background: var(--gr-mustard); padding: 0 4px; }

/* ---------- section shell ---------- */

.gr-block { padding: 76px 0; }
.gr-block-surface { background: var(--gr-surface); border-top: 3px solid var(--gr-ink); border-bottom: 3px solid var(--gr-ink); }

.gr-kicker {
	font-family: "Space Mono", monospace;
	font-size: 12px;
	letter-spacing: 0.14em;
	color: var(--gr-moss);
	text-transform: uppercase;
	margin-bottom: 14px;
	display: block;
}

.gr-block h2 {
	font-family: "Reggae One", sans-serif;
	font-size: clamp(26px, 3.4vw, 38px);
	color: var(--gr-ink);
	max-width: 20ch;
}

.gr-sub { margin-top: 14px; color: var(--gr-ink-soft); font-size: 15px; max-width: 56ch; line-height: 1.85; }

/* ---------- order flow ---------- */

.gr-flow-list { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.gr-flow-step { background: var(--gr-surface); border: 1.5px solid var(--gr-border); border-radius: 4px; padding: 22px 20px 24px; }

.gr-num {
	font-family: "Space Mono", monospace;
	font-size: 13px;
	color: var(--gr-bg);
	background: var(--gr-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 3px;
	margin-bottom: 16px;
}

.gr-flow-step h3 { font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.gr-flow-step p { margin: 8px 0 0; font-size: 13px; line-height: 1.75; color: var(--gr-ink-soft); }

/* ---------- products (front page + WooCommerce archive) ---------- */

.gr-product-grid,
.woocommerce ul.products {
	margin-top: 46px !important;
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
	list-style: none !important;
	padding: 0 !important;
}

.gr-product-card,
.woocommerce ul.products li.product {
	background: var(--gr-surface);
	border: 1.5px solid var(--gr-border);
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--gr-ink);
	margin: 0 !important;
	padding: 0 !important;
}

/* WooCommerce標準CSSがli.productに固定の%幅・floatを指定しており、
   グリッドレイアウトと衝突して極端に狭いカードになる不具合を防ぐ。 */
.woocommerce ul.products li.product {
	width: 100% !important;
	float: none !important;
}

.gr-product-photo,
.woocommerce ul.products li.product img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-bottom: 1.5px solid var(--gr-border);
	width: 100%;
}

.gr-product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gr-product-body h3 { font-size: 16px; font-weight: 700; }
.gr-price { margin-top: auto; font-family: "Space Mono", monospace; font-size: 17px; font-weight: 700; }

.gr-shop-filters {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1.5px solid var(--gr-border);
}

.gr-shop-cats { display: flex; gap: 8px; flex-wrap: wrap; }

.gr-cat-pill {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	padding: 8px 16px;
	border: 1.5px solid var(--gr-border);
	border-radius: 3px;
	color: var(--gr-ink-soft);
	text-decoration: none;
}
.gr-cat-pill:hover { border-color: var(--gr-moss); color: var(--gr-moss); }
.gr-cat-pill.is-active { background: var(--gr-ink); border-color: var(--gr-ink); color: var(--gr-bg); }

.gr-shop-search { display: flex; gap: 8px; }
.gr-shop-search input[type="search"] {
	width: 200px;
	height: 40px;
	padding: 0 14px;
	border: 1.5px solid var(--gr-border);
	border-radius: 3px;
	background: var(--gr-surface);
	color: var(--gr-ink);
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: 13px;
}
.gr-shop-search button {
	height: 40px;
	padding: 0 18px;
	border: 1.5px solid var(--gr-ink);
	border-radius: 3px;
	background: var(--gr-ink);
	color: var(--gr-bg);
	font-size: 13px;
	cursor: pointer;
}

@media (max-width: 640px) {
	.gr-shop-filters { flex-direction: column; align-items: stretch; }
	.gr-shop-search { width: 100%; }
	.gr-shop-search input[type="search"] { flex: 1; width: auto; }
}

.woocommerce-products-header__title.page-title {
	font-family: "Reggae One", sans-serif;
	font-size: clamp(26px, 3.4vw, 38px);
	color: var(--gr-ink);
	margin-bottom: 32px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 18px 18px 0; font-size: 16px; font-weight: 700; }
.woocommerce ul.products li.product .price { padding: 6px 18px 18px; font-family: "Space Mono", monospace; font-weight: 700; color: var(--gr-ink); }

/* ---------- product detail page ---------- */

.gr-product-page { padding: 40px 24px 80px; }

.gr-breadcrumb {
	font-family: "Space Mono", monospace;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--gr-ink-soft);
	display: flex;
	gap: 10px;
	margin-bottom: 32px;
}
.gr-breadcrumb a { color: var(--gr-moss); text-decoration: none; }
.gr-breadcrumb a:hover { text-decoration: underline; }

.gr-product-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.gr-product-gallery img,
.gr-product-gallery .woocommerce-product-gallery__image {
	border: 1.5px solid var(--gr-border);
	border-radius: 4px;
	background: var(--gr-surface);
}

.gr-product-summary .product_title {
	font-family: "Reggae One", sans-serif;
	font-size: clamp(24px, 3vw, 32px);
	margin-bottom: 14px;
}

.gr-product-summary p.price {
	font-family: "Space Mono", monospace;
	font-size: 22px;
	font-weight: 700;
	color: var(--gr-ink);
	margin: 0 0 20px;
}

.gr-product-summary .woocommerce-product-details__short-description {
	color: var(--gr-ink-soft);
	line-height: 1.85;
	margin-bottom: 24px;
}

.gr-product-summary form.cart {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.gr-product-summary .quantity input.qty {
	width: 64px;
	height: 44px;
	border: 2px solid var(--gr-ink);
	border-radius: 3px;
	background: var(--gr-surface);
	color: var(--gr-ink);
	text-align: center;
	font-family: "Space Mono", monospace;
}

.gr-product-summary .product_meta {
	font-size: 12.5px;
	color: var(--gr-ink-soft);
	border-top: 1px solid var(--gr-border);
	padding-top: 16px;
}

.gr-product-notice {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--gr-surface-2);
	border: 1.5px solid var(--gr-border);
	border-radius: 4px;
	padding: 18px 20px;
}
.gr-product-notice p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--gr-ink); }
.gr-product-notice strong { background: var(--gr-mustard); padding: 0 4px; }

.gr-product-below { margin-top: 64px; }

.woocommerce-tabs ul.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--gr-ink); padding: 0; margin: 0 0 24px; list-style: none; }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 10px 18px;
	text-decoration: none;
	color: var(--gr-ink-soft);
	font-size: 13px;
	letter-spacing: 0.04em;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--gr-ink); border-bottom: 3px solid var(--gr-moss); margin-bottom: -2px; }
.woocommerce-tabs .panel { color: var(--gr-ink); line-height: 1.85; }

.related.products { margin-top: 64px; }
.related.products > h2 {
	font-family: "Reggae One", sans-serif;
	font-size: clamp(22px, 3vw, 30px);
	margin-bottom: 24px;
}

@media (max-width: 760px) {
	.gr-product-detail { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- about ---------- */

.gr-about-wrap { max-width: 760px; }

/* ---------- footer ---------- */

.gr-site-footer { border-top: 3px solid var(--gr-ink); background: var(--gr-surface-2); padding: 46px 0 34px; }

.gr-footer-bar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }

.gr-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; width: 100%; }

.gr-brands { font-family: "Reggae One", sans-serif; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.gr-x { color: var(--gr-moss); font-family: "Space Mono", monospace; font-size: 15px; }

.gr-instagram-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	text-decoration: none;
	color: var(--gr-ink);
	border: 1.5px solid var(--gr-border);
	border-radius: 3px;
	padding: 8px 14px;
}
.gr-instagram-link:hover { border-color: var(--gr-moss); color: var(--gr-moss); }
.gr-instagram-icon { width: 18px; height: 18px; }

.gr-footer-links { display: flex; gap: 16px; margin-bottom: 10px; justify-content: flex-end; flex-wrap: wrap; }
.gr-footer-links a { color: var(--gr-ink-soft); text-decoration: underline; }
.gr-footer-links a:hover { color: var(--gr-moss); }

.gr-footer-meta { font-size: 12px; color: var(--gr-ink-soft); text-align: right; line-height: 1.7; width: 100%; }

/* ---------- WooCommerce global overrides ---------- */

.woocommerce,
.woocommerce-page {
	color: var(--gr-ink);
	font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

/* サイドバーを出さない1カラム構成のため、WooCommerce標準テンプレートの
   コンテンツラッパー（#primary/.site-main）をサイトの共通幅に合わせる。 */
.woocommerce-page #primary,
.woocommerce-page .site-main {
	max-width: 1120px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button {
	background: var(--gr-ink);
	color: var(--gr-bg);
	border: 2px solid var(--gr-ink);
	border-radius: 3px;
	padding: 12px 22px;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--gr-moss);
	border-color: var(--gr-moss);
	color: var(--gr-moss-ink);
}

.woocommerce span.onsale {
	background: var(--gr-mustard);
	color: #201d19;
	border-radius: 3px;
}

.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--gr-moss) !important;
}
.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--gr-moss) !important;
}

.woocommerce-error {
	border-top-color: var(--gr-brick) !important;
}
.woocommerce-error::before { color: var(--gr-brick) !important; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
	.gr-nav-toggle { display: flex; }

	.gr-nav-primary {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: var(--gr-bg);
		border-bottom: 3px solid var(--gr-ink);
		box-shadow: 0 12px 20px var(--gr-shadow);
	}

	.gr-nav-primary[data-state="closed"] { display: none; }
	.gr-nav-primary[data-state="open"] { display: flex; }

	.gr-nav-primary a {
		padding: 16px 24px;
		border-bottom: 1px solid var(--gr-border);
		border-left: none;
		width: 100%;
	}
	.gr-nav-primary a:last-child { border-bottom: none; }
	.gr-nav-primary a:hover,
	.gr-nav-primary a:focus-visible { border-color: var(--gr-border); background: var(--gr-surface); }

	.gr-site-header { position: sticky; }
	.gr-header-bar { position: relative; }

	.gr-hero-grid { grid-template-columns: 1fr; padding: 40px 20px 46px; gap: 32px; }
	.gr-hero-figure { order: -1; align-items: center; }
	.gr-hero-figure img { max-width: 320px; height: auto; }
	.gr-hero h1 { font-size: clamp(30px, 8vw, 40px); }

	.gr-flow-list { grid-template-columns: 1fr 1fr; }
	.gr-product-grid,
	.woocommerce ul.products { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
	.gr-block { padding: 54px 0; }

	.gr-footer-bar { flex-direction: column; align-items: flex-start; }
	.gr-footer-meta { text-align: left; }
	.gr-footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
	.gr-flow-list { grid-template-columns: 1fr; }
	.gr-product-grid,
	.woocommerce ul.products { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: no-preference) {
	.gr-reveal { animation: gr-rise 0.7s ease both; }
	.gr-reveal.gr-d1 { animation-delay: 0.08s; }
	.gr-reveal.gr-d2 { animation-delay: 0.18s; }
	@keyframes gr-rise {
		from { opacity: 0; transform: translateY(14px); }
		to { opacity: 1; transform: translateY(0); }
	}
}
