/* theme.json で定義しきれない追加スタイル */

/* スクロール挙動 */
html {
	scroll-behavior: smooth;
}

/* 画像のレスポンシブ */
img {
	max-width: 100%;
	height: auto;
}

/* ヘッダーの固定表示補助 */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* カードホバーエフェクト */
.wp-block-column .wp-block-group[style*="border-radius"] {
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.wp-block-column .wp-block-group[style*="border-radius"]:hover {
	box-shadow: 0 8px 24px rgba(74, 90, 60, 0.12);
	transform: translateY(-2px);
}

/* ボタンのホバー */
.wp-block-button__link {
	transition: opacity 0.2s ease, transform 0.15s ease;
}
.wp-block-button__link:hover {
	opacity: 0.88;
	transform: translateY(-1px);
}

/* details（FAQ）アコーディオン */
details summary {
	cursor: pointer;
	list-style: none;
}
details summary::-webkit-details-marker {
	display: none;
}
details summary::before {
	content: "＋";
	display: inline-block;
	width: 1.5em;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	transition: transform 0.2s ease;
}
details[open] summary::before {
	content: "－";
}

/* 認定番号照会フォーム */
.nrp-verify-form {
	max-width: 480px;
	margin: 2rem auto;
}
.nrp-verify-form input[type="text"] {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--border, #ddd);
	border-radius: 10px;
	font-size: 1rem;
	font-family: var(--wp--preset--font-family--body);
}
.nrp-verify-form input[type="text"]:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(74, 90, 60, 0.15);
}
.nrp-verify-result {
	margin-top: 1.5rem;
	padding: 1.25rem;
	border-radius: 10px;
	background: var(--wp--preset--color--background-soft, #f5f3ee);
}
.nrp-verify-result.is-error {
	border-left: 4px solid #c0392b;
}
.nrp-verify-result.is-success {
	border-left: 4px solid var(--wp--preset--color--primary, #4a5a3c);
}

/* フッターのリンク色 */
footer a {
	text-decoration: none;
}
footer a:hover {
	text-decoration: underline;
}

/* ご受講の流れ — ステップカード */
.nrp-flow-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	max-width: 1120px;
	margin: 0 auto;
}
.nrp-flow-step {
	text-align: center;
	padding: 2rem 1rem 1.5rem;
	background: var(--wp--preset--color--white, #fff);
	border-radius: 16px;
	border: 1px solid var(--wp--preset--color--border, #e0dcd4);
}
.nrp-flow-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--wp--preset--color--primary, #4a5a3c);
	color: var(--wp--preset--color--white, #fff);
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 1rem;
}
.nrp-flow-step h3 {
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--primary-dark, #3a4830);
}
.nrp-flow-step p {
	font-size: 0.9rem;
	color: var(--wp--preset--color--muted, #6b6b6b);
	line-height: 1.8;
}

/* 特商法テーブル */
.nrp-legal-table {
	width: 100%;
	border-collapse: collapse;
}
.nrp-legal-table th,
.nrp-legal-table td {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--border, #e0dcd4);
	text-align: left;
	font-size: 0.95rem;
	line-height: 1.8;
}
.nrp-legal-table th {
	width: 30%;
	background: var(--wp--preset--color--background-soft, #f5f2eb);
	font-weight: 700;
	color: var(--wp--preset--color--primary-dark, #3a4830);
}

/* 確認事項ブロック */
.nrp-confirm-note {
	background: #fff8e1;
	border: 1px solid #f0e0a0;
	border-radius: 8px;
	padding: 1.2rem 1.5rem;
	margin: 2rem 0;
	font-size: 0.9rem;
	line-height: 1.8;
}

/* モバイル調整 */
@media (max-width: 768px) {
	.wp-block-columns {
		flex-direction: column !important;
	}
	.wp-block-cover {
		min-height: 400px !important;
	}
	.nrp-flow-steps {
		grid-template-columns: 1fr 1fr;
	}
	.nrp-legal-table th,
	.nrp-legal-table td {
		display: block;
		width: 100%;
	}
	.nrp-legal-table th {
		border-bottom: none;
		padding-bottom: 0.25rem;
	}
	.nrp-legal-table td {
		padding-top: 0.25rem;
	}
}
