/* ==========================================================================
   Forest CPA theme — 部品ごとのスタイル
   色・書体・余白の基本は theme.json で定義しています。
   ========================================================================== */

:root {
	--fc-green: var(--wp--preset--color--primary, #029676);
	--fc-green-dark: var(--wp--preset--color--primary-dark, #017A60);
	--fc-green-deep: var(--wp--preset--color--primary-deep, #016E57);
	--fc-blue: var(--wp--preset--color--secondary, #0989B1);
	--fc-blue-dark: var(--wp--preset--color--secondary-dark, #07708F);
	--fc-navy: var(--wp--preset--color--navy, #00102E);
	--fc-text: var(--wp--preset--color--text, #303133);
	--fc-muted: var(--wp--preset--color--muted, #5B6470);
	--fc-tint: var(--wp--preset--color--tint, #F3F8F6);
	--fc-tint-strong: var(--wp--preset--color--tint-strong, #E6F4F0);
	--fc-line: var(--wp--preset--color--line, #E3ECE9);
	--fc-radius: 10px;
	--fc-heading: var(--wp--preset--font-family--heading);
}

body { -webkit-font-smoothing: antialiased; }

:where(.wp-site-blocks) > * { margin-block-start: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--fc-navy);
	outline-offset: 2px;
}

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

/* ---------- ヘッダー ---------- */
.fc-header {
	background: #fff;
	border-bottom: 1px solid var(--fc-line);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .fc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fc-header { top: 0; position: relative; } }

.fc-header__inner {
	padding-block: 12px;
	gap: 12px 24px;
	align-items: center;
}
.fc-logo { display: block; line-height: 0; }
.fc-logo img { height: 48px; width: auto; }
@media (max-width: 600px) { .fc-logo img { height: 38px; } }

.fc-nav { flex: 1 1 auto; }
.fc-nav .wp-block-navigation-item__content { color: var(--fc-navy); padding-block: 10px; }
.fc-nav .wp-block-navigation-item__content:hover { color: var(--fc-green-dark); }
.fc-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--fc-green-dark); font-weight: 700; }
.fc-nav .wp-block-navigation__responsive-container-open,
.fc-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

.fc-nav .is-menu-open .wp-block-navigation-item__content { font-size: 18px; padding-block: 8px; }
.fc-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 24px; }

/* 幅1080px未満はメニューをハンバーガーにまとめる（WordPress標準は600px未満のみ） */
@media (min-width: 600px) and (max-width: 1079px) {
	.fc-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.fc-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1079px) {
	.fc-header__inner { flex-wrap: nowrap !important; justify-content: flex-start !important; }
	.fc-nav { order: 3; flex: 0 0 auto; }
	.fc-header__actions { margin-left: auto !important; }
}
@media (max-width: 600px) {
	.fc-header__inner { gap: 8px; }
	.fc-header .fc-header__actions .wp-block-button__link { font-size: 13px; padding: 9px 12px; white-space: nowrap; }
}
@media (max-width: 380px) {
	.fc-logo img { height: 30px; }
}

.fc-header__actions { gap: 16px; align-items: center; }
.fc-header__actions .wp-block-button__link { font-size: 15px; padding: 11px 20px; }

.fc-tel {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--fc-heading);
	font-weight: 700;
	font-size: 18px;
	color: var(--fc-navy);
	text-decoration: none;
	padding-block: 10px;
	white-space: nowrap;
}
.fc-tel svg { flex: none; }
@media (max-width: 1499px) { .fc-header__actions .fc-tel-wrap { display: none; } }

/* ---------- セクション共通 ---------- */
.fc-section { padding-block: var(--wp--preset--spacing--60); }
.fc-eyebrow {
	margin: 0 !important;
	font-family: var(--fc-heading);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .08em;
	color: var(--fc-blue-dark);
}
.fc-section-title {
	margin-block: 4px 12px !important;
	color: var(--fc-green) !important;
}
.fc-lead { max-width: 760px; }
.fc-more { font-family: var(--fc-heading); font-weight: 700; }
.fc-more a { text-decoration: none; }
.fc-more a::after { content: " →"; }

/* ---------- ヒーロー（メイン画像） ---------- */
.fc-hero { padding-block: clamp(64px, 9vw, 120px) !important; }
.fc-hero .wp-block-cover__image-background { object-position: 50% 40%; }
.fc-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(0,16,46,.82) 0%, rgba(0,16,46,.62) 45%, rgba(0,16,46,.18) 100%) !important;
	opacity: 1 !important;
}
.fc-hero__body { color: #fff; max-width: 1200px; }
.fc-hero__body > * { max-width: 680px; }
.fc-hero__h1 {
	color: #fff !important;
	font-size: clamp(18px, 2vw, 22px) !important;
	letter-spacing: .02em;
	margin: 0 0 8px !important;
}
.fc-hero__tagline {
	font-family: var(--fc-heading);
	font-weight: 700;
	font-size: clamp(40px, 6.4vw, 76px);
	line-height: 1.1;
	letter-spacing: -.01em;
	margin: 0 0 20px !important;
	color: #fff;
}
.fc-hero__tagline span { color: #3FD2A9; }
.fc-hero__lead { font-family: var(--fc-heading); font-weight: 700; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.7; margin-bottom: 12px !important; }
.fc-hero__text { color: #DCE6EE; font-size: 16px; }
.fc-hero .wp-block-buttons { margin-top: 28px !important; }
.fc-hero__badges { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: #fff; }
.fc-hero__badges li { display: flex; align-items: center; gap: 8px; }
.fc-hero__badges svg { color: #3FD2A9; flex: none; }

/* 白抜きボタン（濃い背景の上） */
.fc-btn-ghost .wp-block-button__link { background: transparent !important; color: #fff !important; border: 1px solid #fff; }
.fc-btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.14) !important; }

/* 白地の上の枠線ボタン */
.fc-btn-outline .wp-block-button__link {
	background: #fff !important;
	color: var(--fc-green-dark) !important;
	border: 1px solid var(--fc-green-dark);
}
.fc-btn-outline .wp-block-button__link:hover { background: var(--fc-tint-strong) !important; }

/* LINE ボタン（ヘッダー） */
.fc-btn-line .wp-block-button__link { background: #fff !important; color: #06A04A !important; border: 1px solid #06C755; }
.fc-btn-line .wp-block-button__link:hover { background: #E9FAF0 !important; }

/* ボタンのふわっと浮く動き（現行サイトの float 演出） */
.wp-block-button__link, .fsim__button { transition: transform .25s ease, background-color .2s ease, color .2s ease; }
.wp-block-button__link:hover, .fsim__button:hover { transform: translateY(-4px); }

/* ---------- カード ---------- */
.fc-card {
	background: #fff;
	border: 1px solid var(--fc-line);
	border-radius: var(--fc-radius);
	padding: 24px !important;
	height: 100%;
	box-sizing: border-box;
}
.has-tint-background-color .fc-card { border-color: transparent; }
.fc-card > * { margin-block: 0; }
.fc-card > * + * { margin-block-start: 10px !important; }
.fc-card h3 { font-size: 20px; }
.fc-card p { font-size: 15px; line-height: 1.75; }
.fc-card .fc-more { margin-top: auto; padding-top: 8px; font-size: 14px; }

.fc-feature__label { font-family: var(--fc-heading); font-weight: 700; color: var(--fc-navy); font-size: 15px !important; }
.fc-feature__num {
	font-family: var(--fc-heading);
	font-weight: 700;
	font-size: 44px !important;
	line-height: 1.1 !important;
	color: var(--fc-green);
}
.fc-feature__num small { font-size: 18px; margin-left: 2px; }
.fc-feature__text { color: var(--fc-muted); font-size: 14px !important; line-height: 1.7 !important; }

.fc-service-card { display: flex; flex-direction: column; }

/* ---------- 料金 ---------- */
.fc-price__amount { font-family: var(--fc-heading); font-weight: 700; color: var(--fc-navy); font-size: 15px; }
.fc-price__amount strong { font-size: 30px; }
.fc-price__note { color: var(--fc-muted); font-size: 14px !important; }
.fc-price .wp-block-buttons { margin-top: 16px !important; }
.fc-price .wp-block-button, .fc-price .wp-block-button__link { width: 100%; text-align: center; }
.fc-footnote { color: var(--fc-muted); font-size: 14px; }

.fc-table table { background: #fff; border-collapse: collapse; width: 100%; }
.fc-table thead { border-bottom: 0; }
.fc-table thead th { background: var(--fc-navy); color: #fff; font-family: var(--fc-heading); text-align: left; padding: 14px 20px; border: 0; }
.fc-table td { border: 0; border-bottom: 1px solid var(--fc-line); padding: 12px 20px; }
.fc-table td:last-child, .fc-table th:last-child { text-align: right; }
.fc-table td:last-child { font-family: var(--fc-heading); font-weight: 700; color: var(--fc-navy); }

/* ---------- 記事カード ---------- */
.fc-post-card {
	border: 1px solid var(--fc-line);
	border-radius: var(--fc-radius);
	padding: 24px;
	height: 100%;
	box-sizing: border-box;
	background: #fff;
}
.fc-post-card > * { margin-block: 0; }
.fc-post-card > * + * { margin-block-start: 10px; }
.fc-post-meta { gap: 10px; align-items: center; font-size: 13px; }
.fc-post-meta .wp-block-post-terms a,
.fc-tag {
	display: inline-block;
	background: var(--fc-tint-strong);
	color: var(--fc-green-deep);
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 999px;
	text-decoration: none;
	line-height: 1.7;
}
.fc-post-meta .wp-block-post-terms__separator { display: none; }
.fc-post-meta .wp-block-post-terms { display: flex; gap: 6px; flex-wrap: wrap; }
.fc-post-meta .wp-block-post-date { color: var(--fc-muted); }
.fc-post-card .wp-block-post-title { font-size: 18px; line-height: 1.6; }
.fc-post-card .wp-block-post-title a { color: var(--fc-navy); text-decoration: none; }
.fc-post-card .wp-block-post-title a:hover { color: var(--fc-green-dark); text-decoration: underline; }
.fc-post-card .wp-block-post-excerpt { font-size: 14px; color: var(--fc-muted); }
.fc-post-card .wp-block-post-excerpt__more-link { display: none; }

.wp-block-query-pagination { font-family: var(--fc-heading); font-weight: 700; gap: 8px; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-block; min-width: 40px; padding: 6px 10px; text-align: center; border-radius: 6px; }
.wp-block-query-pagination-numbers .current { background: var(--fc-green-dark); color: #fff; }

/* ---------- 事務所概要 ---------- */
.fc-dl { display: grid; grid-template-columns: 120px 1fr; gap: 14px 20px; margin: 0; font-size: 15px; }
.fc-dl dt { font-family: var(--fc-heading); font-weight: 700; color: var(--fc-navy); }
.fc-dl dd { margin: 0; }
@media (max-width: 600px) { .fc-dl { grid-template-columns: 1fr; gap: 2px; } .fc-dl dd { margin-bottom: 12px; } }
.fc-map { border-radius: var(--fc-radius); overflow: hidden; line-height: 0; min-height: 340px; background: #DDE8E4; }
.fc-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- 相談導線 ---------- */
.fc-cta { color: #fff; }
.fc-cta h2 { color: #fff !important; font-size: clamp(24px, 3vw, 30px); margin: 0 0 12px; }
.fc-cta p { color: #D7E0EA; margin: 0; }
.fc-cta .wp-block-columns { align-items: center; gap: 32px; }
.fc-cta .wp-block-button:not(.fc-btn-ghost) .wp-block-button__link { background: #fff !important; color: var(--fc-navy) !important; }

/* ---------- フッター ---------- */
.fc-footer { border-top: 1px solid var(--fc-line); font-size: 14px; color: var(--fc-muted); padding-block: 40px; }
.fc-footer a { color: var(--fc-muted); text-decoration: none; }
.fc-footer a:hover { color: var(--fc-green-dark); text-decoration: underline; }
.fc-footer .fc-logo img { height: 36px; }
.fc-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.fc-footer__copy { font-size: 13px; margin-top: 24px !important; }

/* ---------- 固定ページ・記事 ---------- */
.fc-page-head { padding-block: 24px 48px; }
.forest-breadcrumb { font-size: 13px; color: var(--fc-muted); margin-bottom: 28px; }
.forest-breadcrumb a { color: var(--fc-muted); }
.fc-page-head .wp-block-post-title,
.fc-page-head .wp-block-query-title { margin: 0; font-size: clamp(28px, 3.4vw, 40px); }

.fc-entry { padding-block: 24px 80px; }
.fc-entry .wp-block-post-title { font-size: clamp(26px, 3vw, 34px); line-height: 1.5; margin: 0 0 24px; }
.fc-byline {
	display: flex; gap: 14px; align-items: center;
	padding-block: 16px; margin-block: 0 32px !important;
	border-top: 1px solid var(--fc-line); border-bottom: 1px solid var(--fc-line);
	font-size: 14px; line-height: 1.6;
}
.fc-avatar {
	width: 48px; height: 48px; border-radius: 50%; flex: none;
	background: var(--fc-tint-strong); color: var(--fc-green-deep);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--fc-heading); font-weight: 700;
}
.fc-byline strong { display: block; font-family: var(--fc-heading); color: var(--fc-navy); }
.fc-byline span { color: var(--fc-muted); }

/* 本文の見出し */
.wp-block-post-content > h2 {
	padding-bottom: 10px;
	border-bottom: 3px solid var(--fc-green);
	font-size: clamp(22px, 2.6vw, 26px);
	margin-top: 56px;
}
.wp-block-post-content > h3 { margin-top: 36px; }
.wp-block-post-content > h4 { margin-top: 28px; color: var(--fc-navy); }
.wp-block-post-content > ul, .wp-block-post-content > ol { padding-left: 1.4em; }
.wp-block-post-content > .wp-block-table table { border-collapse: collapse; }
.wp-block-post-content > .wp-block-table:not(.fc-table) th { background: var(--fc-tint); }
.wp-block-post-content > .wp-block-table:not(.fc-table) th,
.wp-block-post-content > .wp-block-table:not(.fc-table) td { border: 1px solid var(--fc-line); padding: 10px 14px; }
.wp-block-post-content > details {
	border: 1px solid var(--fc-line); border-radius: var(--fc-radius);
	padding: 14px 20px; margin-block: 12px;
}
.wp-block-post-content > details summary { font-family: var(--fc-heading); font-weight: 700; color: var(--fc-navy); cursor: pointer; }

.fc-disclaimer { font-size: 14px; color: var(--fc-muted); margin-top: 32px !important; }

.fc-author {
	background: var(--fc-tint); border-radius: var(--fc-radius);
	padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 48px !important;
}
.fc-author .fc-avatar { width: 72px; height: 72px; font-size: 24px; background: #fff; }
.fc-author__body { flex: 1 1 360px; min-width: 0; }
.fc-author__name { font-family: var(--fc-heading); font-weight: 700; color: var(--fc-navy); font-size: 18px; }
.fc-author__role { font-size: 14px; color: var(--fc-muted); margin-bottom: 8px; }
.fc-author p { margin: 0; font-size: 15px; }

.fc-inline-cta {
	border: 2px solid var(--fc-green); border-radius: var(--fc-radius);
	padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px;
	align-items: center; justify-content: space-between;
}

/* サイドバー */
.fc-sidebar > * + * { margin-top: 20px !important; }
.fc-side-cta { background: var(--fc-navy); color: #fff; border-radius: var(--fc-radius); padding: 28px !important; }
.fc-side-cta h2 { color: #fff !important; font-size: 20px; margin: 0 0 8px; border: 0; padding: 0; }
.fc-side-cta p { color: #D7E0EA; font-size: 14px; margin: 0 0 16px; }
.fc-side-cta .wp-block-button, .fc-side-cta .wp-block-button__link { width: 100%; text-align: center; }
.fc-side-cta .wp-block-button__link { background: #fff !important; color: var(--fc-navy) !important; }
.fc-side-cta .fc-tel { color: #fff; justify-content: center; width: 100%; }
.fc-side-box { border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 24px !important; }
.fc-side-box h2 { font-size: 17px; margin: 0 0 12px; border: 0; padding: 0; color: var(--fc-navy); }
.fc-side-box ul { list-style: none; margin: 0; padding: 0; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.fc-side-box .wp-block-categories-list { padding: 0; }
@media (min-width: 960px) { .fc-sidebar { position: sticky; top: 100px; } }

.wp-block-post-navigation-link { font-size: 15px; }

/* ---------- 法人成りシミュレーター ---------- */
.fsim { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 24px; }
@media (max-width: 860px) { .fsim { grid-template-columns: 1fr; } }
.fsim__form {
	background: var(--fc-tint); border-radius: var(--fc-radius); padding: 28px;
	display: flex; flex-direction: column; gap: 18px; align-self: start;
}
.fsim__field { display: flex; flex-direction: column; gap: 6px; }
.fsim__field label { font-family: var(--fc-heading); font-weight: 700; font-size: 15px; color: var(--fc-navy); }
.fsim__field input {
	font-size: 18px; padding: 12px 14px; border: 1px solid #B9CCC6; border-radius: 6px;
	background: #fff; color: var(--fc-text); width: 100%; box-sizing: border-box;
}
.fsim__cap { margin: 0; font-size: 14px; color: var(--fc-text); }
.fsim__cap strong { color: var(--fc-navy); }
.fsim__results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: start; }
@media (max-width: 600px) { .fsim__results { grid-template-columns: 1fr; } }
.fsim__col { border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 22px; background: #fff; }
.fsim__col--corp { border: 2px solid var(--fc-green); }
.fsim__heading { margin: 0 !important; font-size: 18px !important; color: var(--fc-navy) !important; }
.fsim__note { margin: 2px 0 12px; font-size: 13px; color: var(--fc-muted); }
.fsim ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.fsim li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dotted #C9D6D1; }
.fsim li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fsim__total { margin: 12px 0 0; text-align: right; font-family: var(--fc-heading); font-weight: 700; font-size: 22px; color: var(--fc-navy); }
.fsim__compare {
	grid-column: 1 / -1; margin: 0; text-align: center;
	background: var(--fc-tint-strong); color: var(--fc-navy);
	font-family: var(--fc-heading); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px);
	border-radius: var(--fc-radius); padding: 16px;
}
.fsim__disclaimer { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--fc-muted); }
.fsim__action { grid-column: 1 / -1; margin: 0; text-align: center; }
.fsim__button {
	display: inline-block; background: var(--fc-green-dark); color: #fff; text-decoration: none;
	font-family: var(--fc-heading); font-weight: 700; padding: 14px 28px; border-radius: 6px;
}
.fsim__button:hover { background: var(--fc-navy); color: #fff; }

/* ---------- 手順 ---------- */
.fc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: fcstep; }
.fc-steps li { border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 24px; counter-increment: fcstep; }
.fc-steps li::before { content: "STEP " counter(fcstep); display: block; font-family: var(--fc-heading); font-weight: 700; color: var(--fc-blue-dark); font-size: 14px; }
.fc-steps strong { display: block; font-family: var(--fc-heading); color: var(--fc-navy); font-size: 18px; margin: 4px 0 8px; }
.fc-steps p { margin: 0; font-size: 15px; }

/* ---------- 404 ---------- */
.fc-404 { padding-block: 96px; text-align: center; }

/* ---------- 画像つき案内カード ---------- */
.fc-imgcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.fc-imgcards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.fc-imgcard {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fc-line);
	border-radius: var(--fc-radius); overflow: hidden; text-decoration: none; color: var(--fc-text);
	transition: transform .25s ease, box-shadow .25s ease;
}
.has-tint-background-color .fc-imgcard { border-color: transparent; }
.fc-imgcard:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,16,46,.10); color: var(--fc-text); }
.fc-imgcard__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fc-tint); }
.fc-imgcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.fc-imgcard:hover .fc-imgcard__img img { transform: scale(1.04); }
.fc-imgcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.7; }
.fc-imgcard__body strong { font-family: var(--fc-heading); color: var(--fc-navy); font-size: 17px; }
.fc-imgcard__body strong::after { content: " →"; color: var(--fc-green-dark); }
.fc-imgcard__body span { font-size: 14px; color: var(--fc-muted); }

.fc-card--media { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.fc-card--media > *:not(.fc-card__media) { padding-inline: 24px; }
.fc-card--media > .wp-block-buttons { padding-bottom: 24px; margin-top: auto !important; }
.fc-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin: 0 !important; }
.fc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-card--media h3 { margin-top: 20px !important; }

.fc-cta__media { display: block; border-radius: var(--fc-radius); overflow: hidden; line-height: 0; transition: transform .25s ease; }
.fc-cta__media:hover { transform: translateY(-4px); }
.fc-cta__media img { width: 100%; height: auto; }

.fc-about { gap: 40px; align-items: center; margin-top: 8px; }
.fc-video { margin: 0; }
.fc-video iframe { border-radius: var(--fc-radius); }
.fc-video figcaption { font-size: 13px; color: var(--fc-muted); text-align: center; }

/* ---------- 表示演出 ---------- */
.fc-motion .fc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.fc-motion .fc-reveal.is-visible { opacity: 1; transform: none; }
.fc-motion .fc-hero .fc-reveal { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.fc-reveal { opacity: 1 !important; transform: none !important; }
	.wp-block-button__link:hover, .fc-imgcard:hover, .fc-cta__media:hover { transform: none; }
}

@media (max-width: 480px) {
	.fc-header .fc-btn-line { display: none; }
}

.fc-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--fc-radius); overflow: hidden; background: #000; }
.fc-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fc-video figcaption { margin-top: 8px; }
@media (min-width: 1080px) {
	.fc-header__inner { flex-wrap: nowrap !important; }
	.fc-nav .wp-block-navigation__container { gap: 6px 18px; flex-wrap: nowrap; }
	.fc-nav .wp-block-navigation-item__content { white-space: nowrap; }
}

/* ---------- 司法書士法人との連携 ---------- */
.fc-partner { margin-block: 24px; }
.fc-partner__roles { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 720px) { .fc-partner__roles { grid-template-columns: 1fr; } .fc-partner__plus { justify-self: center; } }
.fc-partner__role { border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 22px 24px; background: #fff; }
.fc-partner__role--us { border: 2px solid var(--fc-green); }
.fc-partner__label { display: inline-block; font-size: 13px; font-weight: 700; color: var(--fc-green-deep); background: var(--fc-tint-strong); border-radius: 999px; padding: 2px 12px; }
.fc-partner__role strong { display: block; font-family: var(--fc-heading); color: var(--fc-navy); font-size: 17px; margin: 8px 0 6px; }
.fc-partner__role ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
.fc-partner__plus { align-self: center; font-family: var(--fc-heading); font-weight: 700; font-size: 28px; color: var(--fc-green); }
.fc-partner__info { font-size: 14px; color: var(--fc-muted); margin-top: 12px; }

/* ---------- 記事内FAQ ---------- */
.wp-block-post-content > .fc-faq { border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 14px 20px; margin-block: 12px; }
.wp-block-post-content > .fc-faq summary { font-family: var(--fc-heading); font-weight: 700; color: var(--fc-navy); cursor: pointer; }
.wp-block-post-content > .fc-faq summary::before { content: "Q. "; color: var(--fc-green); }
.wp-block-post-content > .fc-faq p { margin: 10px 0 0; }
.wp-block-post-content > .wp-block-table { overflow-x: auto; }

/* ---------- ナビのサブメニュー ---------- */
.fc-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--fc-line) !important; border-radius: 8px; padding: 6px 0;
	box-shadow: 0 10px 24px rgba(0,16,46,.10); min-width: 220px !important;
}
.fc-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 18px !important; font-size: 14px; }
.fc-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--fc-tint); }
.fc-nav .is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; border: 0 !important; padding-left: 12px; }

.fc-header__actions .wp-block-buttons { flex-wrap: nowrap; }
.fc-header__actions .wp-block-button__link { white-space: nowrap; }
.fc-nav .wp-block-navigation__submenu-container { min-width: 260px !important; }
.fc-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { white-space: nowrap; }

/* ---------- 記事カードの画像 ---------- */
.fc-post-card { overflow: hidden; display: flex; flex-direction: column; }
.fc-post-card > .fc-post-card__img { margin: -24px -24px 6px !important; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fc-tint); }
.fc-post-card__img a { display: block; width: 100%; height: 100%; }
.fc-post-card__img img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .5s ease; }
.fc-post-card:hover .fc-post-card__img img { transform: scale(1.04); }
.fc-noimg {
	display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
	width: 100%; height: 100%; text-align: center;
	background: linear-gradient(135deg, var(--fc-green) 0%, var(--fc-blue) 100%); color: #fff;
}
.fc-noimg__cat { font-family: var(--fc-heading); font-weight: 700; font-size: 22px; letter-spacing: .04em; }
.fc-noimg__brand { font-size: 12px; opacity: .9; }

/* ---------- 業務案内の案内カード（4枚） ---------- */
.fc-imgcards--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1080px) { .fc-imgcards--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 相談導線のボタン色 ---------- */
.fc-cta .wp-block-button.fc-btn-tel .wp-block-button__link { background: #029676 !important; color: #fff !important; }
.fc-cta .wp-block-button.fc-btn-tel .wp-block-button__link:hover { background: #017A60 !important; }
.fc-cta .wp-block-button.fc-btn-line-solid .wp-block-button__link { background: #06C755 !important; color: #fff !important; }
.fc-cta .wp-block-button.fc-btn-line-solid .wp-block-button__link:hover { background: #05A847 !important; }
