/*
 * Unified visual language for every page except the front page.
 * Loaded last so existing page content and CMS templates can be retained.
 */

:root {
	--ab-ink: #111116;
	--ab-muted: #64646f;
	--ab-line: rgba(17, 17, 22, 0.11);
	--ab-paper: #fff;
	--ab-soft: #f5f5f7;
	--ab-navy: #17195f;
	--ab-blue: #3157d5;
	--ab-radius-lg: 32px;
	--ab-radius-md: 22px;
	--ab-shadow: 0 24px 70px rgba(22, 25, 58, 0.12);
	--ab-shell: min(1240px, calc(100vw - 64px));
}

body:not(.home) {
	margin: 0;
	background: var(--ab-paper);
	color: var(--ab-ink);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
	font-feature-settings: "palt" 1;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

body:not(.home) * {
	box-sizing: border-box;
}

body:not(.home) a {
	color: inherit;
}

body:not(.home) main {
	display: block;
	padding-top: 72px;
	overflow: hidden;
}

body:not(.home) .wrap_r,
body:not(.home) .ab-cms-shell,
body:not(.home) .lower_page_ttl_bg > h1,
body:not(.home) .lower_page_ttl_bg > h2 {
	width: var(--ab-shell);
	max-width: none;
	margin-inline: auto;
}

body:not(.home) .wrap_s {
	width: min(840px, 100%);
	max-width: none;
	margin-inline: auto;
}

/* Header */
body:not(.home) #header.site_header {
	position: fixed;
	z-index: 1000;
	top: 0;
	right: 0;
	left: 0;
	height: 72px;
	border-bottom: 1px solid rgba(17, 17, 22, 0.07);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: none;
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	backdrop-filter: blur(24px) saturate(160%);
}

body:not(.home).admin-bar #header.site_header {
	top: 32px;
}

body:not(.home) #header .site_header_inner {
	width: var(--ab-shell);
	max-width: none;
	height: 100%;
	margin-inline: auto;
	padding: 0;
}

body:not(.home) #header .site_brand {
	width: 146px;
}

body:not(.home) #header .site_brand_logo {
	display: block;
	width: 100%;
	height: auto;
}

body:not(.home) #header .site_nav ul {
	gap: 29px;
}

body:not(.home) #header .site_nav a {
	font-size: 13px;
	font-weight: 650;
	letter-spacing: -0.02em;
}

body:not(.home) #header .site_header_cta {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 0 23px;
	border: 0;
	border-radius: 999px;
	background: var(--ab-ink);
	box-shadow: none;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

/* Page title */
body:not(.home) .lower_page_ttl_bg {
	display: flex;
	min-height: 360px;
	align-items: flex-end;
	padding: 110px 0 66px;
	background:
		radial-gradient(circle at 78% 18%, rgba(49, 87, 213, 0.16), transparent 28%),
		linear-gradient(135deg, #f7f7fa 0%, #eef1fa 100%);
}

body:not(.home) .lower_page_ttl_bg h1,
body:not(.home) .lower_page_ttl_bg h2 {
	color: var(--ab-ink);
	font-size: clamp(48px, 7vw, 92px);
	font-weight: 650;
	letter-spacing: -0.065em;
	line-height: 1.02;
	text-align: left;
}

body:not(.home) .pankuzu {
	padding-top: 21px;
	padding-bottom: 21px;
	border-bottom: 1px solid var(--ab-line);
	color: var(--ab-muted);
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.08em;
}

body:not(.home) .pankuzu a {
	color: var(--ab-blue);
	text-decoration: none;
}

/* Shared sections */
body:not(.home) .section_inner {
	padding: clamp(84px, 10vw, 140px) 0;
}

body:not(.home) .bg_gray {
	background: var(--ab-soft);
}

body:not(.home) .lower_section_ttl {
	margin-bottom: clamp(40px, 6vw, 70px);
}

body:not(.home) .lower_section_ttl h2,
body:not(.home) .lower_section_ttl h3,
body:not(.home) .contact_tool_ttl {
	margin: 0;
	color: var(--ab-ink);
	font-size: clamp(36px, 5.2vw, 64px);
	font-weight: 650;
	letter-spacing: -0.055em;
	line-height: 1.08;
}

body:not(.home) .lower_section_ttl h2::before,
body:not(.home) .lower_section_ttl h3::before,
body:not(.home) .lower_section_ttl h2::after,
body:not(.home) .lower_section_ttl h3::after {
	display: none;
}

body:not(.home) .section_inner p,
body:not(.home) .ab-entry-content {
	color: var(--ab-muted);
	font-size: 16px;
	line-height: 1.95;
}

body:not(.home) .section_inner img,
body:not(.home) .ab-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--ab-radius-md);
}

/* About */
body.page-template-page-about .message_box {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
	align-items: stretch;
	gap: 0;
	overflow: hidden;
	border: 1px solid var(--ab-line);
	border-radius: var(--ab-radius-lg);
	background: #fff;
	box-shadow: var(--ab-shadow);
}

body.page-template-page-about .message_box_txt {
	padding: clamp(42px, 6vw, 78px);
}

body.page-template-page-about .message_box_ttl {
	margin: 0 0 34px;
	color: var(--ab-ink);
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 650;
	letter-spacing: -0.05em;
	line-height: 1.14;
}

body.page-template-page-about .message_box_p {
	margin: 0;
}

body.page-template-page-about .message_box_p + .message_box_p {
	margin-top: 22px;
}

body.page-template-page-about .message_box_sign {
	margin-top: 36px;
	color: var(--ab-ink);
}

body.page-template-page-about .message_box_img img {
	width: 100%;
	height: 100%;
	min-height: 640px;
	border-radius: 0;
	object-fit: cover;
	object-position: center top;
}

body.page-template-page-about .about_profile_card,
body.page-template-page-about .about_numbers_panel,
body.page-template-page-about .company_box {
	border: 1px solid var(--ab-line);
	border-radius: var(--ab-radius-lg);
	background: #fff;
	box-shadow: 0 18px 55px rgba(22, 25, 58, 0.08);
}

body.page-template-page-about .about_profile_card,
body.page-template-page-about .about_numbers_panel {
	padding: clamp(32px, 5vw, 60px);
}

body.page-template-page-about .about_history_timeline {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ab-line);
	list-style: none;
}

body.page-template-page-about .about_history_timeline li {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 40px;
	padding: 25px 0;
	border-bottom: 1px solid var(--ab-line);
}

body.page-template-page-about .about_history_timeline time {
	color: var(--ab-blue);
	font-weight: 750;
}

body.page-template-page-about .about_history_timeline p {
	margin: 0;
}

body.page-template-page-about .about_numbers_grid {
	gap: 24px;
}

/* Flow and pricing */
body.page-template-page-flow .service_link_box {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.page-template-page-flow .service_link_box a,
body.page-template-page-flow .service_faq_item {
	border: 1px solid var(--ab-line);
	border-radius: var(--ab-radius-md);
	background: #fff;
	box-shadow: 0 12px 38px rgba(22, 25, 58, 0.06);
}

body.page-template-page-flow .service_link_box a {
	display: flex;
	min-height: 96px;
	align-items: center;
	justify-content: center;
	padding: 24px;
	color: var(--ab-ink);
	font-weight: 700;
	text-decoration: none;
}

body.page-template-page-flow .service_explain {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: clamp(42px, 7vw, 92px);
}

body.page-template-page-flow .service_explain_img img {
	width: 100%;
	box-shadow: var(--ab-shadow);
}

body.page-template-page-flow .service_faq_item {
	overflow: hidden;
	margin-bottom: 14px;
}

body.page-template-page-flow .service_faq_item .title,
body.page-template-page-flow .service_faq_item .content {
	padding-right: 28px;
	padding-left: 28px;
}

body.page-template-page-price .section_inner [style*="border-radius"] {
	border-color: var(--ab-line) !important;
	border-radius: var(--ab-radius-lg) !important;
	box-shadow: 0 18px 55px rgba(22, 25, 58, 0.08) !important;
}

body.page-template-page-price .section_inner a[style*="border-radius"] {
	border-radius: 999px !important;
}

/* Contact */
body.page-template-page-contact .form_wrap {
	padding: clamp(35px, 6vw, 68px);
	border: 1px solid var(--ab-line);
	border-radius: var(--ab-radius-lg);
	background: #fff;
	box-shadow: var(--ab-shadow);
}

body.page-template-page-contact .contact_tool_ttl {
	margin-bottom: 22px;
}

body.page-template-page-contact .form_info {
	margin-bottom: 46px;
}

body.page-template-page-contact .contact_form dl {
	display: grid;
	grid-template-columns: 190px 1fr;
	gap: 30px;
	margin: 0;
	padding: 25px 0;
	border-top: 1px solid var(--ab-line);
}

body.page-template-page-contact .contact_form dt,
body.page-template-page-contact .contact_form dd {
	width: auto;
	margin: 0;
}

body.page-template-page-contact input[type="text"],
body.page-template-page-contact input[type="email"],
body.page-template-page-contact input[type="tel"],
body.page-template-page-contact textarea {
	width: 100%;
	border: 1px solid var(--ab-line);
	border-radius: 14px;
	background: var(--ab-soft);
	box-shadow: none;
	color: var(--ab-ink);
	font: inherit;
}

body.page-template-page-contact input[type="text"],
body.page-template-page-contact input[type="email"],
body.page-template-page-contact input[type="tel"] {
	height: 54px;
	padding: 0 18px;
}

body.page-template-page-contact textarea {
	min-height: 220px;
	padding: 16px 18px;
	resize: vertical;
}

body.page-template-page-contact .hissu,
body.page-template-page-contact .nini {
	margin-left: 8px;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 750;
}

body.page-template-page-contact .hissu {
	background: #fbe9ed;
	color: #aa2747;
}

body.page-template-page-contact .nini {
	background: #eceef3;
	color: var(--ab-muted);
}

body.page-template-page-contact .policy_box {
	margin: 30px 0;
	padding: 25px;
	border-radius: 18px;
	background: var(--ab-soft);
	text-align: center;
}

body.page-template-page-contact .btn_effect01 {
	display: inline-flex;
	min-width: 220px;
	min-height: 58px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: var(--ab-blue);
	box-shadow: none;
	color: #fff;
	font-size: 14px;
	font-weight: 750;
}

/* Archive cards and article detail */
body:not(.home) .ab-cms-shell {
	padding: clamp(80px, 9vw, 132px) 0;
}

body:not(.home) .ab-card-grid {
	gap: 24px;
}

body:not(.home) .ab-card,
body:not(.home) .ab-person-card-link {
	border: 1px solid var(--ab-line);
	border-radius: var(--ab-radius-md);
	box-shadow: 0 16px 48px rgba(22, 25, 58, 0.08);
}

body:not(.home) .ab-card-image {
	aspect-ratio: 16 / 10;
	background: var(--ab-soft);
}

body:not(.home) .ab-card-body {
	padding: 25px;
}

body:not(.home) .ab-card-body h2 {
	font-size: 21px;
	font-weight: 650;
	letter-spacing: -0.03em;
	line-height: 1.45;
}

body:not(.home) .ab-card-body time,
body:not(.home) .ab-article-type,
body:not(.home) .ab-work-category {
	color: var(--ab-blue);
}

body:not(.home) .ab-single-shell {
	width: min(920px, calc(100vw - 64px));
	padding-top: clamp(130px, 14vw, 190px);
}

body:not(.home) .ab-article-head h1 {
	margin: 18px 0 22px;
	color: var(--ab-ink);
	font-size: clamp(42px, 6vw, 72px);
	font-weight: 650;
	letter-spacing: -0.055em;
	line-height: 1.1;
}

body:not(.home) .ab-article-hero {
	overflow: hidden;
	margin: 52px 0;
	border-radius: var(--ab-radius-lg);
	box-shadow: var(--ab-shadow);
}

body:not(.home) .ab-article-hero img {
	display: block;
	width: 100%;
	height: auto;
}

body:not(.home) .ab-entry-content h2,
body:not(.home) .ab-entry-content h3 {
	color: var(--ab-ink);
	font-weight: 650;
	letter-spacing: -0.035em;
}

body:not(.home) .ab-entry-content h2 {
	margin: 72px 0 24px;
	font-size: 34px;
}

body:not(.home) .ab-entry-content h3 {
	margin: 48px 0 18px;
	font-size: 26px;
}

body:not(.home) .ab-back-link a {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--ab-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

/* Privacy and generic page content */
body.page-template-page-privacy-policy .section_inner .wrap_s,
body.page-template-default .section_inner .wrap_s {
	padding: clamp(32px, 5vw, 58px);
	border: 1px solid var(--ab-line);
	border-radius: var(--ab-radius-lg);
	background: #fff;
	box-shadow: 0 18px 55px rgba(22, 25, 58, 0.07);
}

/* Footer */
body:not(.home) .site-footer {
	position: relative;
	padding: 78px 0 28px;
	background: #0d0e13;
	color: rgba(255, 255, 255, 0.62);
}

body:not(.home) .site-footer .wrap_r {
	width: var(--ab-shell);
}

body:not(.home) .ab-footer-grid {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 80px;
}

body:not(.home) .ab-footer-logo {
	display: block;
	width: 160px;
	height: auto;
	margin-bottom: 19px;
}

body:not(.home) .site-footer p {
	margin: 0;
	font-size: 12px;
}

body:not(.home) .site-footer nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(130px, 1fr));
	gap: 14px 36px;
}

body:not(.home) .site-footer nav a {
	color: rgba(255, 255, 255, 0.67);
	font-size: 12px;
	text-decoration: none;
}

body:not(.home) .ab-footer-bottom {
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
	:root {
		--ab-shell: min(100% - 48px, 960px);
	}

	body:not(.home) #header.site_header {
		height: 64px;
	}

	body:not(.home) main {
		padding-top: 64px;
	}

	body:not(.home) #header .site_nav,
	body:not(.home) #header .site_header_cta {
		display: none;
	}

	body:not(.home) #header .sp_nav {
		display: block;
		margin-left: auto;
	}

	body:not(.home) #header nav.globalMenuSp.site_mobile_menu {
		background: rgba(248, 248, 250, 0.97);
		-webkit-backdrop-filter: blur(30px);
		backdrop-filter: blur(30px);
	}

	body:not(.home) #header nav.globalMenuSp.site_mobile_menu ul a {
		color: var(--ab-ink);
		font-size: 23px;
		font-weight: 650;
	}

	body.page-template-page-about .message_box,
	body.page-template-page-flow .service_explain {
		grid-template-columns: 1fr;
	}

	body.page-template-page-about .message_box_img {
		order: -1;
	}

	body.page-template-page-about .message_box_img img {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	body:not(.home) .ab-card-grid,
	body.post-type-archive-ab_member .ab-person-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	body:not(.home).admin-bar #header.site_header {
		top: 46px;
	}
}

@media (max-width: 680px) {
	:root {
		--ab-shell: calc(100% - 36px);
		--ab-radius-lg: 24px;
		--ab-radius-md: 18px;
	}

	body:not(.home) .lower_page_ttl_bg {
		min-height: 275px;
		padding: 92px 0 46px;
	}

	body:not(.home) .lower_page_ttl_bg h1,
	body:not(.home) .lower_page_ttl_bg h2 {
		font-size: clamp(40px, 13vw, 58px);
	}

	body:not(.home) .section_inner {
		padding: 78px 0;
	}

	body:not(.home) .lower_section_ttl h2,
	body:not(.home) .lower_section_ttl h3,
	body:not(.home) .contact_tool_ttl {
		font-size: clamp(34px, 10vw, 48px);
	}

	body.page-template-page-about .message_box_txt,
	body.page-template-page-about .about_profile_card,
	body.page-template-page-about .about_numbers_panel,
	body.page-template-page-contact .form_wrap {
		padding: 28px 22px;
	}

	body.page-template-page-about .about_history_timeline li {
		grid-template-columns: 1fr;
		gap: 5px;
		padding: 20px 0;
	}

	body.page-template-page-flow .service_link_box {
		grid-template-columns: 1fr;
	}

	body.page-template-page-contact .contact_form dl {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 20px 0;
	}

	body:not(.home) .ab-card-grid,
	body.post-type-archive-ab_member .ab-person-grid {
		grid-template-columns: 1fr;
	}

	body:not(.home) .ab-single-shell {
		width: var(--ab-shell);
		padding-top: 100px;
	}

	body:not(.home) .ab-article-head h1 {
		font-size: clamp(36px, 11vw, 52px);
	}

	body:not(.home) .ab-footer-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	body:not(.home) .site-footer nav {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	body:not(.home) *,
	body:not(.home) *::before,
	body:not(.home) *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
