/*
Theme Name: 苗木里親プロジェクト
Description: 会員限定・月イチ配信の動画会員サイト（WordPressテーマ）
Version: 1.0
*/

:root {
	--bg: #ffffff;
	--bg-accent: #f5ead8;
	--surface: #ebddc5;
	--text: #000;
	--accent: #c67139;
	--accent-600: #b2622d;
	--accent-700: #8c491a;
	--accent-100: #fff2eb;
	--accent-800: #643312;
	--olive-100: #f0fae1;
	--olive-700: #56633f;
	--olive-800: #3d472b;
	--olive-900: #272e1b;
	--neutral-100: #f9f4ed;
	--neutral-200: #eee7db;
	--neutral-300: #dcd3c4;
	--neutral-900: #2e2b25;
	--divider: rgba(32, 30, 29, 0.16);
	--font-heading: 'Noto Sans JP', sans-serif;
	--font-body: 'Noto Sans JP', sans-serif;
	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 28px;
	--shadow-sm: 0 1px 2px rgba(46, 43, 37, .14);
	--shadow-md: 0 3px 10px rgba(46, 43, 37, .16);
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	letter-spacing: 0.060em;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.060em;
	margin: 0 0 60px;
}

h1 {
	font-size: 44px;
}

h2 {
	font-size: 30px;
}

p {
	margin: 0 0 12px;
}

a {
	color: var(--accent);
	text-decoration: none;
}

.text-muted {
	color: rgba(32, 30, 29, .55);
}

button {
	font-family: inherit;
}

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

/* ========== NAV ========== */

body.admin-bar {
	.nav {
		top: 32px;
	}
}

.nav {
	background: var(--bg);
	position: sticky;
	z-index: 20;
	width: 100%;
	top: 0;
	font-size: 14px;
	.nav-wrap {
		display: flex;
		align-items: center;
		gap: 26px;
		padding: 14px 24px;
		max-width: 1120px;
		margin: 0 auto;
	}
	.link-button {
		border-radius: 9999px;
		color: #fff;
		background-color: var(--accent);
		padding: 1em 1.5em;
		line-height: 1.5em;
	}

	.nav-brand {
		font-family: var(--font-heading);
		font-size: 18px;
		margin-right: auto;
		cursor: pointer;
		color: var(--text);
		img {
			max-width: 300px;
		}
		.logo-fixed {
			display: none;
		}
	}
	a {
		color: inherit;
		&.active {
			color: var(--accent);
			font-weight: 700;
		}
	}
	.menu {
		display: flex;
		align-items: center;
		gap: 26px;
	}
	.sp-menu-button {
		display: none;
	}
	.sp-menu {
		display: none;
	}
}

/* メニューが2行にならない幅ではロゴを350pxにする。
   未ログイン（メニューが長い）は1180px以上。350pxのロゴとメニューが1行に収まるよう、
   この幅ではヘッダー内側の最大幅も広げる。 */
@media (min-width: 1180px) {
	.nav {
		.nav-wrap {
			max-width: 1200px;
		}
		.nav-brand img {
			max-width: 350px;
		}
	}
}

/* 会員（メニューが短い）は、より狭い1080px以上で350pxにできる */
@media (min-width: 1080px) {
	.nav.is-member .nav-brand img {
		max-width: 350px;
	}
}

/* ヘッダーがスクロールで固定されている間は、苗木マークなしのロゴに切り替えて高さを抑える。
   （.is-fixed は assets/js/script.js で付け外し。スマホ幅はヘッダーが固定されないので対象外） */
@media (min-width: 769px) {
	.nav.is-fixed {
		.nav-wrap {
			padding-top: 6px;
			padding-bottom: 6px;
		}
		.nav-brand {
			.logo-default {
				display: none;
			}
			.logo-fixed {
				display: block;
				max-width: 230px;
			}
		}
		.link-button {
			padding: 0.5em 1.2em;
			br {
				display: none;
			}
		}
	}
}


/* ========== SHARED COMPONENTS ========== */
.hr {
	height: 1px;
	border: 0;
	margin: 26px 0;
	background: var(--divider);
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
}

.tag {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	letter-spacing: .02em;
	padding: 3px 12px;
	border-radius: 12px;
	margin-bottom: 0.3em;
}

.tag-outline {
	border: 1px solid currentColor;
}

.tag-accent-2 {
	background: none;
	color: #006036;
	font-size: 18px;
}

.tag-accent {
	background: var(--accent-100);
	color: var(--accent-800);
}

.tag-neutral {
	background: var(--neutral-100);
	color: #474238;
}

.btn {
	min-width: 260px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	border: 1px solid transparent;
	font-family: var(--font-heading);
	font-size: 18px;
	padding: 15px 40px;
	border-radius: 999px;
}

.btn-primary {
	background: var(--accent);
	color: var(--bg);
}

.btn-primary:hover {
	background: var(--accent-600);
}

.btn-secondary {
	border-color: var(--divider);
	background: transparent;
	color: var(--text);
}

.btn-secondary:hover {
	background: rgba(32, 30, 29, .07);
}

.btn-ghost {
	background: transparent;
	color: var(--accent);
	border: none;
	padding-inline: 4px;
}

.btn-ghost:hover {
	background: rgba(198, 113, 57, .1);
}

.btn-block {
	width: 100%;
	margin-top: 8px;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	border-radius: 32px;
	background: var(--surface);
}

.card-kicker {
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent);
}

.card-title {
	font-family: var(--font-heading);
	font-size: 17px;
}

.card-body {
	margin: 0;
	font-size: 13px;
	opacity: .8;
	flex: 1;
}

.card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: rgba(32, 30, 29, .5);
}

.elev-sm {
	box-shadow: var(--shadow-sm);
}

.elev-md {
	box-shadow: var(--shadow-md);
}

.field label {
	display: block;
	font-size: 17px;
	margin-bottom: 5px;
	color: rgba(32, 30, 29, .7);
}

.input {
	width: 100%;
	min-height: 36px;
	padding: 6px 14px;
	font: inherit;
	font-size: 17px;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--divider);
	border-radius: 999px;
}

.input:focus-visible {
	outline: none;
	border-color: var(--accent);
}

.seg {
	display: inline-flex;
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--divider);
	border-radius: 999px;
}

.field {
	.seg-opt {
		margin-bottom: 0;
	}
}

.seg-opt {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 12px;
	font-size: 13px;
	cursor: pointer;
}

.seg-opt+.seg-opt {
	border-left: 1px solid var(--divider);
}

.seg-opt input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.seg-opt.checked {
	background: var(--accent);
	color: var(--bg);
}

.stripe-ph {
	background-image: repeating-linear-gradient(135deg, var(--neutral-300), var(--neutral-300) 10px, var(--neutral-200) 10px, var(--neutral-200) 20px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: rgba(32, 30, 29, .55);
	font-family: ui-monospace, monospace;
	font-size: 12px;
	line-height: 1.6;
}

.locked-overlay {
	position: absolute;
	inset: 0;
	background: rgba(46, 43, 37, .45);
	display: flex;
	align-items: center;
	justify-content: center;
}

.notice {
	padding: 10px 16px;
	border-radius: var(--radius-md);
	font-size: 13px;
	margin-bottom: 16px;
}

.notice-error {
	background: var(--accent-100);
	color: var(--accent-800);
}

.button-wrap {
	text-align: center;
	margin-top: 27px;
}

.wpcf7-form {
	margin-top: 3em;
	.form-item {
		margin-bottom: 1em;
		display: flex;
		flex-direction: column;
		gap: 0.5em;
	}
	label {
		margin-bottom: 1em;
		display: inline-block;
	}
	input {
		&[type="text"],&[type="email"],&[type="tel"] {
			width: 100%;
			min-height: 36px;
			padding: 6px 14px;
			font: inherit;
				font-size: inherit;
			font-size: 17px;
			color: var(--text);
			background: var(--surface);
			border: 1px solid var(--divider);
			border-radius: 999px;
		}
		&[type="radio"] {
			width: 1.5em;
			height: 1.5em;
		}
	}
	textarea {
		width: 100%;
		padding: 6px 14px;
		font: inherit;
			font-size: inherit;
		font-size: 17px;
		color: var(--text);
		background: var(--surface);
		border: 1px solid var(--divider);
	}
	span {
		&.required {
			color: #f00;
		}
	}
	.wpcf7-submit {
		min-width: 260px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		cursor: pointer;
		border: 1px solid transparent;
		font-family: var(--font-heading);
		font-size: 18px;
		padding: 15px 40px;
		border-radius: 999px;
		background: var(--accent);
		color: var(--bg);
	}
	.wpcf7-radio {
		display: flex;
		flex-wrap: wrap;
		gap: 1em;
		label {
			margin-bottom: 0;
			display: flex;
			align-items: center;
		}
		.wpcf7-list-item {
			margin-left: 0;
		}
	}
	.wpcf7-turnstile {
		margin-bottom: 1em;
	}
}

.wp-block-heading {
	margin-top: 2em;
	margin-bottom: 1em;
}

.site-footer {
	padding: 32px 20px;
	text-align: center;
	.menu {
		font-size: 14px;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
		margin-bottom: 2em;
		gap: 1em 2em;
		a {
			color: #000;
		}
	}
}
