/* ==========================================================================
   奥博文税理士事務所 ― ペライチ デザイン
   - 紺 #333e79（名刺・看板と同色）＋ロゴの斜線モチーフ
   - 親テーマ Lightning の見出し・ボタン等のスタイルを .oku-* で上書き
   - rem は使わない（Lightning が html の font-size を変えているため）
   ========================================================================== */

:root {
	--oku-navy: #333e79;
	--oku-navy-d: #232b5c;
	--oku-ink: #1b1f33;
	--oku-muted: #5a6079;
	--oku-line: #dcdfeb;
	--oku-paper: #f4f5f9;
	--oku-gold: #a8813a;
	--oku-gold-l: #d9b66e;
	--oku-gold-d: #8a671f;
	--oku-serif: "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
	--oku-sans: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	--oku-header-h: 68px;
	--oku-stripes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M0 12 6 0h3L3 12zM7 12 13 0h3l-6 12z' fill='%23a8813a'/%3E%3C/svg%3E");
	--oku-stripes-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M0 12 6 0h3L3 12zM7 12 13 0h3l-6 12z' fill='%23d9b66e'/%3E%3C/svg%3E");
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--oku-header-h) + var(--wp-admin--admin-bar--height, 0px) + 8px);
}

body.oku-site {
	margin: 0;
	background: #fff;
	color: var(--oku-ink);
	font-family: var(--oku-sans);
	font-size: 16px;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
}

body.oku-site a {
	color: var(--oku-navy);
}

body.oku-site a:focus-visible,
body.oku-site button:focus-visible {
	outline: 3px solid #7d89d6;
	outline-offset: 2px;
}

.oku-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- 共通：本文領域 ---------- */
.oku-main {
	display: block;
	font-size: 16px;
}

.oku-main p {
	margin: 0;
	line-height: 1.85;
}

.oku-main h1,
.oku-main h2,
.oku-main h3 {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--oku-serif);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.02em;
	color: var(--oku-navy-d);
}

.oku-main h1::before,
.oku-main h1::after,
.oku-main h2::before,
.oku-main h2::after,
.oku-main h3::before,
.oku-main h3::after {
	content: none;
}

.oku-wrap {
	max-width: 1120px;
	margin: 0 auto !important;
	padding: 0 24px;
	box-sizing: border-box;
}

.oku-sec {
	position: relative;
	padding: 84px 0;
}

.oku-sechead {
	margin-bottom: 40px;
}

.oku-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--oku-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--oku-gold-d);
}

.oku-eyebrow::before {
	content: "";
	flex: none;
	width: 20px;
	height: 12px;
	background: var(--oku-stripes) no-repeat center / contain;
}

.oku-h2 {
	margin-top: 10px !important;
	font-size: clamp(26px, 3.2vw, 34px) !important;
}

.oku-lead {
	margin-top: 12px !important;
	color: var(--oku-muted);
}

.oku-note {
	font-size: 13px;
	line-height: 1.8;
	color: var(--oku-muted);
}

.oku-note--center {
	margin-top: 28px !important;
	text-align: center;
}

/* ---------- ボタン ---------- */
.oku-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0 14px;
}

.oku-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	box-sizing: border-box;
	min-height: 58px;
	padding: 0 30px;
	border: 2px solid var(--oku-navy);
	border-radius: 4px;
	font-family: var(--oku-sans);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-decoration: none !important;
	box-shadow: none;
	transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.oku-btn .wp-block-button__link::after {
	content: "";
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

.oku-btn--primary .wp-block-button__link {
	background: var(--oku-navy);
	color: #fff;
}

.oku-btn--primary .wp-block-button__link:hover {
	background: var(--oku-navy-d);
	border-color: var(--oku-navy-d);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(35, 43, 92, 0.25);
}

.oku-btn--ghost .wp-block-button__link {
	background: #fff;
	color: var(--oku-navy);
}

.oku-btn--ghost .wp-block-button__link:hover {
	background: var(--oku-navy);
	color: #fff;
	transform: translateY(-1px);
}

/* ---------- ヘッダー ---------- */
.oku-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	height: var(--oku-header-h);
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--oku-line);
	box-sizing: border-box;
	transition: box-shadow 0.2s;
}

.oku-header.is-scrolled {
	box-shadow: 0 4px 18px rgba(35, 43, 92, 0.1);
}

.oku-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1120px;
	height: 100%;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.oku-header__logo {
	display: block;
	flex: none;
	line-height: 0;
}

.oku-header__logo img {
	display: block;
	width: auto;
	height: 34px;
}

.oku-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.oku-nav__list {
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oku-nav__list li {
	margin: 0;
	padding: 0;
}

body.oku-site .oku-nav__list a {
	position: relative;
	display: block;
	padding: 6px 0;
	color: var(--oku-ink);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.oku-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--oku-navy);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s;
}

.oku-nav__list a:hover::after,
.oku-nav__list a.is-current::after {
	transform: scaleX(1);
}

.oku-nav__cta {
	display: flex;
	align-items: center;
	gap: 16px;
}

body.oku-site .oku-nav__tel {
	display: flex;
	flex-direction: column;
	color: var(--oku-navy-d);
	font-family: var(--oku-serif);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.oku-nav__tel-label {
	font-family: var(--oku-sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--oku-gold-d);
}

body.oku-site .oku-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 4px;
	background: var(--oku-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background-color 0.2s;
}

body.oku-site .oku-nav__btn:hover {
	background: var(--oku-navy-d);
	color: #fff;
}

.oku-nav-toggle {
	display: none;
}

/* ---------- ヒーロー（写真は大きく見せない／文字を主役に） ---------- */
.oku-hero {
	padding: 56px 0 76px;
	background: var(--oku-paper);
	overflow: hidden;
}

.oku-hero .oku-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	gap: 60px;
	align-items: center;
}

.oku-hero__title {
	margin: 18px 0 20px !important;
	font-size: clamp(34px, 4.6vw, 54px) !important;
	line-height: 1.38 !important;
	letter-spacing: 0.03em;
}

.oku-hero__lead {
	max-width: 36em;
	font-size: 17px;
	color: #2d3250;
}

.oku-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.oku-chip {
	padding: 2px 14px;
	border: 1px solid #c5cae0;
	border-radius: 999px;
	background: #fff;
	color: var(--oku-navy);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.7;
}

.oku-hero__media {
	position: relative;
	isolation: isolate;
	margin: 0;
}

.oku-hero__media::before,
.oku-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.oku-hero__media::before {
	background: var(--oku-navy);
	transform: translate(-18px, 18px);
}

.oku-hero__media::after {
	background: rgba(51, 62, 121, 0.22);
	transform: translate(-38px, 38px);
	z-index: -1;
}

.oku-hero__media img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 430px;
	object-fit: cover;
	object-position: 50% 28%;
	clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

/* ---------- 代表プロフィール ---------- */
.oku-profile {
	background: #fff;
}

.oku-profile__grid {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 64px;
	align-items: center;
}

.oku-profile__photo {
	position: relative;
	margin: 0;
}

.oku-profile__photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--oku-navy);
	transform: translate(16px, 16px);
}

.oku-profile__photo img {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 24%;
}

.oku-profile__en {
	margin-top: 4px !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.24em;
	color: var(--oku-gold-d);
}

.oku-profile__msg {
	margin-top: 20px !important;
	padding-left: 18px;
	border-left: 3px solid var(--oku-gold);
	font-size: 16px;
}

.oku-rows {
	margin-top: 24px;
	border-top: 1px solid var(--oku-line);
}

.oku-row {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--oku-line);
}

.oku-row__k {
	color: var(--oku-navy);
	font-size: 14px;
	font-weight: 700;
}

.oku-row__v {
	font-size: 15px;
}

/* ---------- お問い合わせ ---------- */
.oku-contact {
	background: var(--oku-navy);
	color: #fff;
}

.oku-contact .oku-eyebrow {
	color: var(--oku-gold-l);
}

.oku-contact .oku-eyebrow::before {
	background-image: var(--oku-stripes-l);
}

.oku-main .oku-contact .oku-h2 {
	color: #fff;
}

.oku-contact .oku-lead {
	color: rgba(255, 255, 255, 0.85);
}

.oku-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 24px;
	align-items: start;
}

.oku-box {
	padding: 32px;
	border-radius: 4px;
	background: #fff;
	color: var(--oku-ink);
}

.oku-main .oku-box__title {
	margin-bottom: 14px !important;
	font-size: 18px !important;
}

.oku-main .oku-box__title--sub {
	margin-top: 28px !important;
	padding-top: 22px !important;
	border-top: 1px solid var(--oku-line) !important;
}

.oku-todo {
	padding: 16px;
	border: 2px dashed #d33;
	background: #fff5f5;
	color: #b00;
	font-size: 14px;
	font-weight: 700;
}

.oku-tel {
	font-family: var(--oku-serif);
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 700;
	line-height: 1.3;
}

body.oku-site .oku-tel a {
	color: var(--oku-navy-d);
	text-decoration: none;
}

.oku-box--info .oku-note {
	margin-top: 6px !important;
}

.oku-box--info .oku-rows {
	margin-top: 0;
}

.oku-map {
	height: 320px;
	margin-top: 24px;
	border-radius: 4px;
	overflow: hidden;
	background: #e6e8f2;
}

.oku-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Contact Form 7 などのフォーム */
.oku-box--form input[type="text"],
.oku-box--form input[type="email"],
.oku-box--form input[type="tel"],
.oku-box--form select,
.oku-box--form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #c5cae0;
	border-radius: 4px;
	background: #fff;
	font-family: var(--oku-sans);
	font-size: 16px;
}

.oku-box--form textarea {
	min-height: 140px;
}

.oku-box--form label {
	display: block;
	font-size: 14px;
	font-weight: 700;
}

.oku-box--form input[type="submit"],
.oku-box--form button[type="submit"] {
	width: 100%;
	min-height: 58px;
	border: 2px solid var(--oku-navy);
	border-radius: 4px;
	background: var(--oku-navy);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	cursor: pointer;
}

.oku-box--form input[type="submit"]:hover,
.oku-box--form button[type="submit"]:hover {
	background: var(--oku-navy-d);
}

/* ---------- フッター ---------- */
.oku-footer {
	background: var(--oku-navy-d);
	color: rgba(255, 255, 255, 0.88);
	font-size: 14px;
}

.oku-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 48px 24px 32px;
	box-sizing: border-box;
}

.oku-footer__logo {
	display: block;
	width: auto;
	height: 34px;
	margin-bottom: 18px;
}

.oku-footer__addr {
	font-style: normal;
	line-height: 1.9;
}

.oku-footer__reg {
	margin: 10px 0 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
}

.oku-footer__nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oku-footer__nav li {
	margin: 0;
}

body.oku-site .oku-footer a {
	color: #fff;
	text-decoration: none;
}

body.oku-site .oku-footer__nav a:hover {
	text-decoration: underline;
}

.oku-footer__copy {
	margin: 0;
	padding: 18px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	text-align: center;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
}

/* ---------- スマホ下部固定ボタン ---------- */
.oku-fixbar {
	display: none;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 980px) {
	.oku-nav-toggle {
		position: relative;
		display: block;
		width: 44px;
		height: 44px;
		margin-right: -8px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}

	.oku-nav-toggle__bar,
	.oku-nav-toggle__bar::before,
	.oku-nav-toggle__bar::after {
		position: absolute;
		left: 11px;
		width: 22px;
		height: 2px;
		background: var(--oku-navy-d);
		transition: transform 0.2s, opacity 0.2s;
	}

	.oku-nav-toggle__bar {
		top: 21px;
	}

	.oku-nav-toggle__bar::before,
	.oku-nav-toggle__bar::after {
		content: "";
		left: 0;
	}

	.oku-nav-toggle__bar::before {
		top: -7px;
	}

	.oku-nav-toggle__bar::after {
		top: 7px;
	}

	.oku-nav-toggle.is-open .oku-nav-toggle__bar {
		background: transparent;
	}

	.oku-nav-toggle.is-open .oku-nav-toggle__bar::before {
		transform: translateY(7px) rotate(45deg);
	}

	.oku-nav-toggle.is-open .oku-nav-toggle__bar::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	.oku-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 24px 24px;
		border-bottom: 1px solid var(--oku-line);
		background: #fff;
		box-shadow: 0 14px 24px rgba(35, 43, 92, 0.12);
	}

	.oku-nav.is-open {
		display: flex;
	}

	.oku-nav__list {
		flex-direction: column;
		gap: 0;
	}

	body.oku-site .oku-nav__list a {
		padding: 14px 0;
		border-bottom: 1px solid var(--oku-line);
		font-size: 16px;
	}

	.oku-nav__list a::after {
		display: none;
	}

	.oku-nav__cta {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		margin-top: 18px;
	}

	body.oku-site .oku-nav__tel {
		align-items: center;
		font-size: 26px;
	}

	body.oku-site .oku-nav__btn {
		min-height: 52px;
		font-size: 16px;
	}
}

@media (max-width: 860px) {
	.oku-sec {
		padding: 56px 0;
	}

	.oku-sechead {
		margin-bottom: 28px;
	}

	.oku-hero {
		padding: 36px 0 56px;
	}

	.oku-hero .oku-wrap {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}

	.oku-hero__media {
		margin-left: 24px;
	}

	.oku-hero__media img {
		height: 260px;
	}

	.oku-cards,
	.oku-reasons__grid,
	.oku-steps,
	.oku-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.oku-profile__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.oku-profile__photo {
		max-width: 320px;
		margin-right: 16px;
	}

	.oku-box {
		padding: 24px 20px;
	}

	.oku-map {
		height: 260px;
	}
}

@media (max-width: 760px) {
	body.oku-site {
		padding-bottom: 56px;
	}

	.oku-fixbar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 99;
		display: flex;
		box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.14);
	}

	body.oku-site .oku-fixbar a {
		display: flex;
		flex: 1;
		align-items: center;
		justify-content: center;
		min-height: 56px;
		color: #fff;
		font-size: 16px;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-decoration: none;
	}

	.oku-fixbar__tel {
		background: var(--oku-navy-d);
	}

	.oku-fixbar__form {
		background: var(--oku-gold-d);
	}
}

@media (max-width: 520px) {
	.oku-wrap,
	.oku-header__inner {
		padding-right: 20px;
		padding-left: 20px;
	}

	.oku-btns {
		flex-direction: column;
	}

	.oku-btn,
	.oku-btn .wp-block-button__link {
		width: 100%;
	}

	.oku-row {
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}

/* --- グリッド内の項目は、WPのレイアウト余白(2つ目以降のmargin-top)を無効化し、全て同じサイズにする --- */
.oku-sec .oku-cards,
.oku-sec .oku-reasons__grid,
.oku-sec .oku-steps { align-items: stretch; }
.oku-sec .oku-cards > *,
.oku-sec .oku-reasons__grid > *,
.oku-sec .oku-steps > * { margin-block: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.oku-hero .oku-hero__media img:not([style*="object-fit"]) { height: 430px !important; }
.oku-sec .oku-reasons__grid { grid-auto-rows: 1fr; }

/* お問い合わせ：フォームと電話・事務所情報の2つのボックスを同じ高さ・同じ上端に揃える */
.oku-sec .oku-contact__grid { align-items: stretch; }
.oku-sec .oku-contact__grid > .oku-box { margin-block: 0 !important; height: 100%; box-sizing: border-box; }

/* ==========================================================================
   v2：FV以外のセクションデザイン（英字見出し＋2色ライン／写真付きカード／横長カード／曲線背景／フェードイン）
   ========================================================================== */

/* ---------- 見出し：大きな英字 ＋ 日本語見出し ＋ 2色ライン ---------- */
.oku-sec .oku-sechead { margin-bottom: 44px; }

.oku-sec .oku-sechead .oku-eyebrow,
.oku-profile__body .oku-eyebrow {
	display: block;
	font-family: "Jost", var(--oku-sans);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: var(--oku-ink);
}

.oku-sec .oku-sechead .oku-eyebrow::before,
.oku-profile__body .oku-eyebrow::before { content: none; }

.oku-sec .oku-sechead .oku-h2,
.oku-profile__body .oku-h2 {
	margin-top: 6px !important;
	font-size: clamp(28px, 3.4vw, 38px) !important;
	color: var(--oku-navy);
}

.oku-sec .oku-sechead .oku-h2::after,
.oku-profile__body .oku-h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 18px;
	background: linear-gradient(90deg, var(--oku-navy) 50%, var(--oku-gold) 50%);
}

.oku-contact .oku-sechead .oku-eyebrow { color: #fff; }
.oku-main .oku-contact .oku-sechead .oku-h2 { color: #fff; }
.oku-contact .oku-sechead .oku-h2::after { background: linear-gradient(90deg, #fff 50%, var(--oku-gold-l) 50%); }

/* ---------- 共通：背景の曲線シェイプ ---------- */
.oku-services,
.oku-reasons,
.oku-flow { overflow: hidden; }

.oku-services::before,
.oku-reasons::before,
.oku-flow::before {
	content: "";
	position: absolute;
	z-index: 0;
	aspect-ratio: 1;
	border-radius: 50%;
	pointer-events: none;
}

.oku-sec > .oku-wrap { position: relative; z-index: 1; }

.oku-services { background: #fff; }
.oku-services::before { left: -34%; bottom: -52%; width: 100%; background: #eff2fb; }

.oku-reasons { background: #eff2fb; }
.oku-reasons::before { right: -22%; top: -46%; width: 74%; background: #f8f9fd; }

.oku-flow { background: #eff2fb; }
.oku-flow::before { left: -20%; bottom: -60%; width: 70%; background: #f8f9fd; }

/* ---------- アイコン ---------- */
.oku-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
}

.oku-ico svg {
	width: 48px;
	height: 48px;
	fill: none;
	stroke: var(--oku-navy);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.oku-ico svg .a { fill: var(--oku-gold); stroke: none; }

.oku-ico--round {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 16px rgba(35, 43, 92, 0.16);
}

.oku-ico--round svg { width: 36px; height: 36px; }

/* WPのレイアウト余白が内部に入り込まないようにする */
.oku-card > *,
.oku-reason > *,
.oku-step > *,
.oku-band__box > *,
.oku-band__text > *,
.oku-card__body > *,
.oku-reason__body > *,
.oku-step__body > * { margin-block: 0 !important; }

/* ---------- サービス：写真付きカード ---------- */
.oku-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
}

.oku-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(35, 43, 92, 0.12);
	transition: none;
}

.oku-card:hover { transform: none; box-shadow: 0 8px 28px rgba(35, 43, 92, 0.12); }

.oku-card__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.oku-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 0 28px 28px;
}

.oku-card__body > .oku-ico { margin: -32px auto 0 !important; position: relative; }

.oku-main .oku-card__body > .oku-card__title {
	margin-top: 16px !important;
	font-size: 22px;
	text-align: center;
}

.oku-main .oku-card__body > .oku-card__text { margin-top: 14px !important; font-size: 15px; line-height: 1.85; }

.oku-main .oku-card__body > .oku-card__tags {
	margin-top: 14px !important;
	padding-top: 14px;
	border-top: 1px solid var(--oku-line);
	font-size: 13px;
	line-height: 1.8;
	color: var(--oku-muted);
}

.oku-main .oku-card__body > .oku-card__note {
	margin-top: 12px !important;
	font-size: 12px;
	line-height: 1.8;
	color: var(--oku-muted);
}

.oku-main .oku-card__body > .oku-card__link { margin-top: auto !important; padding-top: 22px; }

.oku-card__link a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.oku-card__link a::after,
.oku-chev {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--oku-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='m11 9 5 5-5 5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
	transition: transform 0.25s;
}

.oku-card__link a:hover::after { transform: translateX(4px); }

/* ---------- 選ばれる理由／ご相談の流れ：左に見出し・右に横長カード ---------- */
.oku-reasons .oku-wrap,
.oku-flow .oku-wrap {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	column-gap: 64px;
	row-gap: 20px;
	align-items: start;
}

.oku-reasons .oku-sechead,
.oku-flow .oku-sechead {
	grid-row: 1 / 3;
	margin-bottom: 0;
	position: sticky;
	top: calc(var(--oku-header-h) + var(--wp-admin--admin-bar--height, 0px) + 32px);
}

.oku-sec .oku-reasons__grid,
.oku-sec .oku-steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-auto-rows: auto;
	gap: 16px;
}

.oku-reason,
.oku-step {
	position: relative;
	display: flex;
	align-items: center;
	gap: 26px;
	padding: 28px 36px 28px 30px;
	border: 0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 22px rgba(35, 43, 92, 0.1);
}

.oku-reason__body,
.oku-step__body { flex: 1; min-width: 0; }

.oku-main .oku-reason__title,
.oku-main .oku-step__title { font-size: 19px; line-height: 1.55; }

.oku-main .oku-reason__body > .oku-reason__text,
.oku-main .oku-step__body > .oku-step__text { margin-top: 8px !important; font-size: 15px; line-height: 1.85; color: var(--oku-ink); }

.oku-main .oku-step__no {
	margin-bottom: 2px !important;
	font-family: "Jost", var(--oku-sans);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--oku-gold-d);
}

.oku-flow .oku-note,
.oku-flow .oku-note--center { grid-column: 2; margin-top: 4px; text-align: left; }

/* ---------- 初回相談無料の帯 ---------- */
.oku-sec.oku-band { padding: 72px 0; background: #fff; }

.oku-band__box {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	overflow: hidden;
	padding: 44px 52px;
	border-radius: 16px;
	background: linear-gradient(110deg, var(--oku-navy-d), var(--oku-navy));
	color: #fff;
}

.oku-band__box::after {
	content: "";
	position: absolute;
	top: 0;
	right: 240px;
	bottom: 0;
	width: 180px;
	background: var(--oku-stripes-l) no-repeat center / contain;
	opacity: 0.14;
	pointer-events: none;
}

.oku-band__text, .oku-band__btns { position: relative; z-index: 1; }

.oku-main .oku-band__t {
	font-family: var(--oku-serif);
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
}

.oku-main .oku-band__text > .oku-band__s { margin-top: 6px !important; color: rgba(255, 255, 255, 0.85); }

.oku-btn--light .wp-block-button__link {
	background: #fff;
	color: var(--oku-navy-d);
	border: 1px solid #fff;
}

.oku-btn--light .wp-block-button__link:hover { background: var(--oku-gold-l); border-color: var(--oku-gold-l); color: var(--oku-navy-d); }

/* ---------- スクロールで下から静かに現れる（初回のみ） ---------- */
.oku-js .oku-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
	transition-delay: var(--oku-d, 0s);
}

.oku-js .oku-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
	.oku-reasons .oku-wrap,
	.oku-flow .oku-wrap { column-gap: 40px; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
}

@media (max-width: 860px) {
	.oku-cards { grid-template-columns: minmax(0, 1fr); gap: 24px; }

	.oku-reasons .oku-wrap,
	.oku-flow .oku-wrap { display: block; }

	.oku-reasons .oku-sechead,
	.oku-flow .oku-sechead { position: static; margin-bottom: 32px; }

	.oku-flow .oku-note,
	.oku-flow .oku-note--center { margin-top: 20px; }

	.oku-reason,
	.oku-step { padding: 22px 20px; gap: 18px; }

	.oku-band__box { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
	.oku-band__box::after { right: 12px; top: 8px; bottom: auto; height: 100px; width: 120px; }
	.oku-sec.oku-band { padding: 48px 0; }
}

@media (max-width: 520px) {
	.oku-reason,
	.oku-step { align-items: flex-start; }

	.oku-reason .oku-ico,
	.oku-step .oku-ico { width: 44px; height: 44px; }

	.oku-reason .oku-ico svg,
	.oku-step .oku-ico svg { width: 38px; height: 38px; }

	.oku-card__body { padding: 0 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.oku-js .oku-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   スマホ・タブレット縦（860px以下）のFV：写真を背景に敷き、文字を重ねる
   文字の視認性は、紺のグラデーション（約75〜85%）と白文字で確保
   ========================================================================== */
@media (max-width: 860px) {
	.oku-hero {
		position: relative;
		isolation: isolate;
		min-height: 560px;
		padding: 52px 0 60px;
		background: var(--oku-navy-d);
	}

	/* 写真を背景として全面に（containing block を .oku-hero にする） */
	.oku-hero > .oku-wrap { position: static; z-index: auto; display: block; }

	.oku-hero .oku-hero__media {
		position: absolute;
		inset: 0;
		z-index: 0;
		margin: 0 !important;
	}

	.oku-hero .oku-hero__media::before { content: none; }

	.oku-hero .oku-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 2;
		clip-path: none;
		transform: none;
		background: linear-gradient(180deg, rgba(28, 35, 80, 0.74) 0%, rgba(28, 35, 80, 0.68) 50%, rgba(28, 35, 80, 0.84) 100%);
	}

	.oku-hero .oku-hero__media img {
		position: absolute;
		inset: 0;
		z-index: 1;
		width: 100%;
		height: 100%;
		clip-path: none;
		object-fit: cover;
		object-position: 50% 45%;
	}

	/* WP/Lightning の「img{height:auto !important}」に勝たせる */
	.oku-hero .oku-hero__media img:not([style*="object-fit"]) { height: 100% !important; }

	.oku-hero .oku-hero__body { position: relative; z-index: 3; }

	.oku-hero .oku-eyebrow { color: var(--oku-gold-l); }
	.oku-hero .oku-eyebrow::before { background-image: var(--oku-stripes-l); }

	.oku-main .oku-hero .oku-hero__title {
		color: #fff;
		text-shadow: 0 2px 14px rgba(15, 20, 52, 0.45);
	}

	.oku-main .oku-hero .oku-hero__lead {
		color: rgba(255, 255, 255, 0.95);
		text-shadow: 0 1px 10px rgba(15, 20, 52, 0.5);
	}

	.oku-main .oku-hero .oku-note { color: rgba(255, 255, 255, 0.85); }

	.oku-hero .oku-btn--primary .wp-block-button__link {
		background: #fff;
		border-color: #fff;
		color: var(--oku-navy-d);
	}

	.oku-hero .oku-btn--primary .wp-block-button__link:hover {
		background: var(--oku-gold-l);
		border-color: var(--oku-gold-l);
		color: var(--oku-navy-d);
	}

	.oku-hero .oku-btn--ghost .wp-block-button__link {
		background: transparent !important;
		border-color: #fff !important;
		color: #fff !important;
	}

	.oku-hero .oku-btn--ghost .wp-block-button__link:hover {
		background: rgba(255, 255, 255, 0.16);
		color: #fff;
	}

	.oku-hero .oku-chip {
		border-color: rgba(255, 255, 255, 0.5);
		background: rgba(255, 255, 255, 0.1);
		color: #fff;
	}
}

/* ---------- お問い合わせフォーム：個人情報の同意 ---------- */
.oku-box--form .wpcf7-acceptance label {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;
	cursor: pointer;
}

.oku-box--form .wpcf7-acceptance input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--oku-navy);
}

.oku-box--form .oku-privacy:focus-visible { outline: 3px solid #7d89d6; outline-offset: 2px; }

.oku-box--form input[type="submit"]:disabled,
.oku-box--form button[type="submit"]:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ---------- サービス：基本の税務顧問（横長の帯）＋専門メニュー4つ（2×2） ---------- */
.oku-basic {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 28px;
	margin-bottom: 28px;
	padding: 30px 36px;
	border-left: 6px solid var(--oku-gold, #c4a05a);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(35, 43, 92, 0.12);
}

.oku-basic > * { margin-block: 0 !important; }
.oku-basic .oku-ico { margin: 0 !important; }

.oku-main .oku-basic__title { margin: 0 0 8px !important; font-size: 22px; }
.oku-main .oku-basic__text { margin: 0 !important; font-size: 15px; line-height: 1.85; }
.oku-main .oku-basic__tags {
	margin: 12px 0 0 !important;
	padding-top: 12px;
	border-top: 1px solid var(--oku-line);
	font-size: 13px;
	line-height: 1.8;
	color: var(--oku-muted);
}

.oku-basic__link a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.oku-basic__link a::after {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--oku-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='m11 9 5 5-5 5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.oku-services .oku-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 860px) {
	.oku-basic {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 14px;
		padding: 24px 22px;
	}
	.oku-services .oku-cards { grid-template-columns: minmax(0, 1fr); }
}
