/*
 * base.css
 * リセット・基礎スタイル・アクセシビリティ関連の土台。
 * 配色・フォント・余白のトークンは theme.json を正とする。
 */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--wp--preset--color--orange);
	outline-offset: 2px;
}

/* セクション共通の余白 */
.reeir-section {
	padding-block: var(--wp--preset--spacing--60, 64px);
}

.reeir-section--soft {
	background-color: var(--wp--preset--color--beige);
}

@media (max-width: 599px) {
	.reeir-section {
		padding-block: var(--wp--preset--spacing--50, 40px);
	}
}

/* 画像プレースホルダー（画像未設定時に薄い背景色を表示） */
.reeir-image-placeholder {
	border-radius: 8px;
}

/* パンくず */
.reeir-breadcrumb-wrap {
	padding-block: 12px;
}

.reeir-breadcrumb__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-light);
}

.reeir-breadcrumb__item:not(:last-child)::after {
	content: "/";
	margin-left: 4px;
	color: var(--wp--preset--color--text-light);
}

.reeir-breadcrumb__item a {
	color: var(--wp--preset--color--text-light);
}

/* 汎用ボタン（ショートコード経由で出力するCTAリンク用） */
.reeir-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 6px;
	font-weight: 700;
	min-height: 48px;
}

.reeir-btn--primary {
	background-color: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--white);
}

.reeir-btn--primary:hover {
	background-color: var(--wp--preset--color--green-dark);
	color: var(--wp--preset--color--white);
}

.reeir-btn--outline {
	background-color: transparent;
	color: var(--wp--preset--color--green-dark);
	border: 2px solid var(--wp--preset--color--green-dark);
}

.reeir-btn--outline:hover {
	background-color: var(--wp--preset--color--green-dark);
	color: var(--wp--preset--color--white);
}

/* prefers-reduced-motion への配慮 */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
