/*
Theme Name: KIDERA
Theme URI: https://kidera-ltd.jp/
Author: Studio18
Description: 株式会社KIDERA専用。見える内容は編集でき、デザイン品質はテーマ側で保つブロックテーマです。
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.1
Text Domain: kidera
*/

:root {
	--kidera-blue: #07479a;
	--kidera-blue-dark: #003476;
	--kidera-navy: #082f67;
	--kidera-pale-blue: #eaf2ff;
	--kidera-ink: #151a21;
	--kidera-muted: #505966;
	--kidera-line: #94b7e5;
	--kidera-paper: #ffffff;
	--kidera-serif: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
	--kidera-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	margin: 0;
	background: var(--kidera-paper);
	color: var(--kidera-ink);
	font-family: var(--kidera-sans);
	-webkit-font-smoothing: antialiased;
}

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

body,
.editor-styles-wrapper {
	--wp--style--global--content-size: 1180px;
	--wp--style--global--wide-size: 1320px;
}

* {
	box-sizing: border-box;
}

a {
	text-decoration: none;
}

.kidera-main,
.kidera-main > .wp-block-post-content {
	overflow: hidden;
}

.kidera-main > .wp-block-post-content {
	margin-top: 0;
}

.kidera-header {
	position: sticky;
	z-index: 100;
	top: 0;
	min-height: 88px;
	border-bottom: 1px solid rgba(7, 71, 154, 0.1);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 6px 30px rgba(9, 51, 104, 0.04);
	backdrop-filter: blur(14px);
}

.kidera-header__inner {
	width: min(1320px, calc(100% - 48px));
	min-height: 88px;
	margin-inline: auto;
	gap: 24px;
}

.kidera-brand {
	flex: 0 0 200px;
}

.kidera-brand .wp-block-site-logo,
.kidera-brand .custom-logo-link {
	display: block;
	line-height: 0;
}

.kidera-brand .custom-logo {
	display: block;
	width: 180px;
	max-height: 60px;
	object-fit: contain;
	object-position: left center;
}

.kidera-brand .wp-block-site-title {
	display: none;
	margin: 0;
	color: var(--kidera-blue-dark);
	font-family: Georgia, serif;
	font-size: 25px;
	font-weight: 700;
}

.kidera-brand:not(:has(.custom-logo-link)) .wp-block-site-title {
	display: block;
}

.kidera-nav {
	flex: 1 1 auto;
	justify-content: flex-end;
	font-size: 12px;
	font-weight: 700;
}

.kidera-nav .wp-block-navigation-item__content {
	position: relative;
	padding: 34px 0;
	white-space: nowrap;
}

.kidera-nav .wp-block-navigation-item__content::after {
	position: absolute;
	right: 0;
	bottom: 25px;
	left: 0;
	height: 1px;
	background: var(--kidera-blue);
	content: "";
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 180ms ease;
}

.kidera-nav .wp-block-navigation-item__content:hover::after,
.kidera-nav .wp-block-navigation-item__content:focus-visible::after {
	transform: scaleX(1);
	transform-origin: left;
}

.kidera-nav .wp-block-navigation__container {
	gap: clamp(18px, 2vw, 34px);
}

.kidera-header__contact {
	flex: 0 0 170px;
}

.kidera-header__contact .wp-block-button,
.kidera-header__contact .wp-block-button__link {
	width: 100%;
}

.kidera-header__contact .wp-block-button__link {
	display: grid;
	min-height: 48px;
	padding: 13px 18px;
	place-items: center;
	border: 1px solid var(--kidera-blue-dark);
	background: var(--kidera-blue-dark);
	color: white;
	font-size: 13px;
	transition: background 180ms ease, transform 180ms ease;
}

.kidera-header__contact .wp-block-button__link:hover,
.kidera-header__contact .wp-block-button__link:focus-visible {
	background: var(--kidera-blue);
	transform: translateY(-1px);
}

.kidera-hero {
	padding: 36px 0 52px;
	background: linear-gradient(100deg, #fff 0%, #fff 55%, #f4f8fc 100%);
}

.kidera-hero__columns {
	width: min(1320px, calc(100% - 56px));
	min-height: 520px;
	margin: 0 auto;
	gap: 0;
}

.kidera-hero__copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 50px 30px 48px 18px;
}

.kidera-kicker {
	margin: 0 0 22px;
	color: var(--kidera-blue);
	font-family: Arial, sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.2em;
}

.kidera-hero__title {
	margin: 0;
	color: var(--kidera-blue-dark);
	font-family: var(--kidera-serif);
	font-size: clamp(28px, 3.85vw, 54px);
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.48;
	white-space: nowrap;
}

.kidera-hero__lead {
	max-width: 650px;
	margin: 28px 0 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 2;
}

.kidera-hero__actions {
	gap: 16px;
	margin-top: 38px;
}

.kidera-button .wp-block-button__link {
	display: flex;
	min-height: 56px;
	align-items: center;
	justify-content: center;
	padding: 13px 22px;
	border: 1px solid var(--kidera-blue);
	background: white;
	color: var(--kidera-blue-dark);
	font-family: Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: background 180ms ease, color 180ms ease;
}

.kidera-button--primary .wp-block-button__link {
	background: var(--kidera-blue-dark);
	color: white;
}

.kidera-button--primary .wp-block-button__link:hover,
.kidera-button--primary .wp-block-button__link:focus-visible {
	background: var(--kidera-blue);
}

.kidera-button--outline .wp-block-button__link:hover,
.kidera-button--outline .wp-block-button__link:focus-visible {
	background: var(--kidera-pale-blue);
}

.kidera-split-photo {
	position: relative;
	min-width: 0;
	min-height: 330px;
	overflow: hidden;
	background: #eef4f9;
}

.kidera-split-photo .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
	overflow: hidden;
}

.kidera-split-photo img {
	position: absolute;
	top: 0;
	width: 200%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.kidera-split-photo--left {
	min-height: 500px;
	clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 18% 50%);
}

.kidera-split-photo--left img {
	left: 0;
}

.kidera-split-photo--right {
	clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 14% 50%);
}

.kidera-split-photo--right img {
	left: -100%;
}

.kidera-about {
	padding: 32px 0 72px;
}

.kidera-about__columns {
	width: min(1180px, calc(100% - 64px));
	margin: 0 auto;
	gap: 0;
}

.kidera-about__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 44px 58px 44px 0;
}

.kidera-about__title {
	margin: 0;
	color: var(--kidera-blue-dark);
	font-family: var(--kidera-serif);
	font-size: clamp(24px, 2.65vw, 38px);
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1.52;
	white-space: nowrap;
}

.kidera-about__text {
	margin: 26px 0 0;
	font-size: 14px;
	line-height: 2;
}

.kidera-section {
	padding: 64px 0 0;
}

.kidera-section > .wp-block-group,
.kidera-contact__inner {
	width: min(1180px, calc(100% - 64px));
	margin-inline: auto;
}

.kidera-section-heading {
	position: relative;
	text-align: center;
}

.kidera-section-heading::before,
.kidera-section-heading::after {
	position: absolute;
	top: 50%;
	width: calc(50% - 170px);
	height: 1px;
	background: var(--kidera-line);
	content: "";
}

.kidera-section-heading::before {
	left: 0;
}

.kidera-section-heading::after {
	right: 0;
}

.kidera-section-heading p {
	margin: 0 0 6px;
	color: var(--kidera-blue);
	font-family: Arial, sans-serif;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.kidera-section-heading h2 {
	margin: 0;
	font-family: var(--kidera-serif);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.kidera-number-grid {
	margin: 30px 0 0;
	gap: 0;
	border-top: 1px solid var(--kidera-line);
	border-bottom: 1px solid var(--kidera-line);
}

.kidera-number-card {
	position: relative;
	min-height: 230px;
	padding: 112px 30px 30px;
	border-right: 1px solid var(--kidera-line);
}

.kidera-number-card:last-child {
	border-right: 0;
}

.kidera-card-icon {
	position: absolute;
	top: 24px;
	left: 50%;
	display: grid;
	width: 68px;
	height: 68px;
	margin: 0;
	place-items: center;
	border: 1px solid rgba(7, 84, 166, 0.18);
	border-radius: 20px;
	background: linear-gradient(145deg, #fff 0%, #eaf3ff 100%);
	box-shadow: 0 12px 28px rgba(7, 84, 166, 0.12);
	transform: translateX(-50%);
}

.kidera-number-card:nth-child(2) .kidera-card-icon {
	background: linear-gradient(145deg, #fff 0%, #e8f7fb 100%);
}

.kidera-number-card:nth-child(3) .kidera-card-icon {
	background: linear-gradient(145deg, #fff 0%, #eef0ff 100%);
}

.kidera-card-icon::after {
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--kidera-blue);
	box-shadow: 0 0 0 4px rgba(7, 84, 166, 0.1);
	content: "";
}

.kidera-card-icon img {
	display: block;
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.kidera-card-title {
	align-items: baseline;
	gap: 20px;
	color: var(--kidera-blue-dark);
}

.kidera-card-number {
	margin: 0;
	font-family: Georgia, serif;
	font-size: 32px;
	line-height: 1;
}

.kidera-card-title h3 {
	margin: 0;
	font-family: var(--kidera-serif);
	font-size: 17px;
	font-weight: 600;
}

.kidera-number-card > p {
	margin: 20px 0 0;
	font-size: 13px;
	line-height: 1.9;
}

.kidera-strengths {
	padding-top: 70px;
}

.kidera-business {
	padding-top: 78px;
}

.kidera-business-grid {
	margin: 28px 0 0;
	gap: 16px;
}

.kidera-business-card {
	display: grid;
	grid-template-columns: 50px 1fr;
	gap: 14px;
	min-height: 94px;
	align-items: center;
	padding: 15px;
	border: 1px solid var(--kidera-blue);
	background: white;
	color: var(--kidera-blue-dark);
	transition: background 180ms ease, transform 180ms ease;
}

.kidera-business-card:hover {
	background: var(--kidera-pale-blue);
	transform: translateY(-2px);
}

.kidera-business-icon {
	display: grid;
	width: 50px;
	height: 50px;
	margin: 0;
	place-items: center;
	border: 1px solid rgba(7, 84, 166, 0.17);
	border-radius: 15px;
	background: linear-gradient(145deg, #fff 0%, #eaf3ff 100%);
	box-shadow: 0 8px 20px rgba(7, 84, 166, 0.1);
}

.kidera-business-icon img {
	width: 31px;
	height: 31px;
	object-fit: contain;
}

.kidera-business-card p {
	margin: 0;
	font-family: Arial, sans-serif;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.13em;
}

.kidera-business-card h3 {
	margin: 3px 0 0;
	font-family: var(--kidera-serif);
	font-size: 16px;
	font-weight: 600;
}

.kidera-company {
	padding-top: 72px;
	padding-bottom: 70px;
}

.kidera-company-table {
	margin: 28px 0 0;
	padding: 20px 18px;
	border-top: 1px solid var(--kidera-line);
	border-bottom: 1px solid var(--kidera-line);
}

.kidera-company-table table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.7;
}

.kidera-company-table th,
.kidera-company-table td {
	padding: 7px 0;
	border: 0;
	vertical-align: top;
	text-align: left;
}

.kidera-company-table th {
	width: 238px;
	padding-right: 28px;
	color: var(--kidera-blue-dark);
	font-weight: 700;
}

.kidera-company-table a {
	border-bottom: 1px solid currentColor;
}

.kidera-contact {
	position: relative;
	padding: 34px 0 40px;
	overflow: hidden;
	background: linear-gradient(120deg, #00367c 0%, #0755ad 62%, #003b83 100%);
	color: white;
}

.kidera-contact::before,
.kidera-contact::after {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	content: "";
}

.kidera-contact::before {
	top: -190px;
	left: -100px;
	width: 420px;
	height: 420px;
}

.kidera-contact::after {
	right: -120px;
	bottom: -260px;
	width: 520px;
	height: 520px;
}

.kidera-contact__inner {
	position: relative;
	z-index: 2;
	text-align: center;
}

.kidera-contact .kidera-kicker {
	margin-bottom: 10px;
	color: rgba(255, 255, 255, 0.65);
}

.kidera-contact h2 {
	margin: 0;
	color: white;
	font-family: var(--kidera-serif);
	font-size: clamp(24px, 2.6vw, 36px);
	font-weight: 500;
	letter-spacing: 0.08em;
}

.kidera-contact__inner > p:not(.kidera-kicker) {
	margin: 12px 0 0;
	font-size: 12px;
	opacity: 0.8;
}

.kidera-contact__actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: 100%;
	gap: 20px;
	margin-top: 24px;
}

.kidera-contact__actions .wp-block-button,
.kidera-contact__actions .wp-block-button__link {
	width: 100%;
}

.kidera-contact__actions .wp-block-button__link {
	display: flex;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border: 1px solid white;
	background: white;
	color: var(--kidera-blue-dark);
	font-family: Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	transition: background 180ms ease, color 180ms ease;
}

.kidera-contact__actions .wp-block-button__link:hover,
.kidera-contact__actions .wp-block-button__link:focus-visible {
	background: transparent;
	color: white;
}

.kidera-footer {
	padding: 20px 0;
	background: #003477;
	color: white;
}

.kidera-footer__inner {
	width: min(1180px, calc(100% - 64px));
	margin-inline: auto;
	gap: 30px;
}

.kidera-footer__nav,
.kidera-footer__nav a {
	color: white;
}

.kidera-footer__nav .wp-block-navigation__container {
	gap: 0;
}

.kidera-footer__nav .wp-block-navigation-item {
	padding: 0 18px;
	border-right: 1px solid rgba(255, 255, 255, 0.55);
}

.kidera-footer__nav .wp-block-navigation-item:first-child {
	padding-left: 0;
}

.kidera-footer__nav .wp-block-navigation-item:last-child {
	border-right: 0;
}

.kidera-footer__nav .wp-block-navigation-item__content,
.kidera-footer__copy {
	font-family: Arial, sans-serif;
	font-size: 10px;
	white-space: nowrap;
}

.kidera-footer__copy {
	margin: 0;
	font-size: 9px;
}

.kidera-free-section {
	padding-bottom: 72px;
}

.kidera-free-section > .wp-block-group {
	max-width: 900px;
	padding: 48px;
	border: 1px solid var(--kidera-line);
	background: linear-gradient(145deg, #fff 0%, #f7faff 100%);
}

.kidera-free-section h2 {
	margin: 0;
	font-size: clamp(26px, 3vw, 40px);
}

.kidera-free-section p:last-child {
	margin-top: 20px;
}

.kidera-page-shell {
	min-height: 55vh;
	padding: 80px 32px;
}

.kidera-page-title {
	font-size: clamp(30px, 4vw, 48px);
}

.kidera-entry-card {
	padding: 28px 0;
	border-bottom: 1px solid var(--kidera-line);
}

.kidera-not-found {
	display: flex;
	min-height: 62vh;
	flex-direction: column;
	justify-content: center;
}

.editor-styles-wrapper .kidera-header {
	position: relative;
	top: auto;
}

.editor-styles-wrapper .kidera-split-photo .wp-block-image {
	height: 100%;
}

@media (max-width: 1080px) {
	.kidera-header__inner {
		width: calc(100% - 32px);
		gap: 18px;
	}

	.kidera-brand {
		flex-basis: 170px;
	}

	.kidera-brand .custom-logo {
		width: 165px;
	}

	.kidera-nav {
		font-size: 11px;
	}

	.kidera-nav .wp-block-navigation__container {
		gap: 16px;
	}

	.kidera-header__contact {
		flex-basis: 145px;
	}

	.kidera-hero__actions {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.kidera-button,
	.kidera-button .wp-block-button__link {
		min-width: 270px;
	}

	.kidera-hero__title {
		font-size: clamp(28px, 3.8vw, 42px);
	}

	.kidera-footer__nav .wp-block-navigation-item {
		padding-inline: 10px;
	}
}

@media (max-width: 900px) {
	html {
		scroll-padding-top: 70px;
	}

	body.admin-bar .kidera-header {
		top: 46px;
	}

	.kidera-header,
	.kidera-header__inner {
		min-height: 70px;
	}

	.kidera-header__inner {
		width: calc(100% - 28px);
	}

	.kidera-brand {
		flex: 1 1 auto;
	}

	.kidera-brand .custom-logo {
		width: 145px;
	}

	.kidera-header__contact {
		display: none;
	}

	.kidera-nav {
		flex: 0 0 auto;
	}

	.kidera-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.kidera-nav .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}

	.kidera-nav .wp-block-navigation__responsive-container.is-menu-open {
		padding: 28px;
		background: white;
		color: var(--kidera-blue-dark);
	}

	.kidera-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: flex-start;
		gap: 0;
	}

	.kidera-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		width: 100%;
		padding: 16px 0;
		border-bottom: 1px solid var(--kidera-line);
		font-size: 14px;
	}

	.kidera-hero {
		padding: 26px 0 42px;
	}

	.kidera-hero__columns,
	.kidera-about__columns {
		width: calc(100% - 40px);
	}

	.kidera-hero__columns,
	.kidera-about__columns,
	.kidera-number-grid,
	.kidera-business-grid {
		flex-direction: column;
	}

	.kidera-hero__copy {
		padding: 48px 0 44px;
	}

	.kidera-hero__title {
		font-size: clamp(28px, 7.2vw, 38px);
		line-height: 1.5;
	}

	.kidera-hero__lead br {
		display: none;
	}

	.kidera-hero__actions {
		width: 100%;
		flex-direction: column;
	}

	.kidera-button,
	.kidera-button .wp-block-button__link {
		width: 100%;
		min-width: 0;
	}

	.kidera-split-photo--left {
		min-height: 340px;
		clip-path: polygon(0 12%, 50% 0, 100% 12%, 100% 100%, 0 100%);
	}

	.kidera-about {
		padding: 22px 0 54px;
	}

	.kidera-about__copy {
		padding: 48px 0 36px;
	}

	.kidera-about__title {
		font-size: clamp(24px, 5vw, 34px);
	}

	.kidera-split-photo--right {
		min-height: 280px;
		clip-path: polygon(0 12%, 50% 0, 100% 12%, 100% 100%, 0 100%);
	}

	.kidera-section,
	.kidera-strengths,
	.kidera-business,
	.kidera-company {
		padding-top: 58px;
	}

	.kidera-section > .wp-block-group,
	.kidera-contact__inner,
	.kidera-footer__inner {
		width: calc(100% - 40px);
	}

	.kidera-section-heading::before,
	.kidera-section-heading::after {
		width: calc(50% - 140px);
	}

	.kidera-section-heading h2 {
		font-size: 21px;
	}

	.kidera-number-grid {
		gap: 0;
	}

	.kidera-number-card {
		min-height: 0;
		flex-basis: auto !important;
		border-right: 0;
		border-bottom: 1px solid var(--kidera-line);
	}

	.kidera-number-card:last-child {
		border-bottom: 0;
	}

	.kidera-business-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.kidera-company-table {
		padding-inline: 0;
	}

	.kidera-company-table th {
		width: 140px;
		padding-right: 16px;
	}

	.kidera-company-table table {
		font-size: 12px;
	}

	.kidera-contact {
		padding-block: 44px;
	}

	.kidera-contact h2 {
		font-size: 27px;
		line-height: 1.55;
	}

	.kidera-contact__actions {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.kidera-footer__nav {
		display: none;
	}

	.kidera-footer__inner {
		justify-content: flex-end;
	}
}

@media (max-width: 600px) {
	body.admin-bar .kidera-header {
		top: 0;
	}

	.kidera-hero__columns,
	.kidera-about__columns,
	.kidera-section > .wp-block-group,
	.kidera-contact__inner,
	.kidera-footer__inner {
		width: calc(100% - 32px);
	}

	.kidera-hero__copy {
		padding-top: 34px;
	}

	.kidera-hero__title {
		font-size: 27px;
	}

	.kidera-hero__lead,
	.kidera-about__text {
		font-size: 13px;
	}

	.kidera-split-photo--left {
		min-height: 280px;
	}

	.kidera-about__title {
		font-size: 24px;
	}

	.kidera-split-photo--right {
		min-height: 240px;
	}

	.kidera-section-heading::before,
	.kidera-section-heading::after {
		width: 24px;
	}

	.kidera-number-card {
		padding: 108px 12px 24px;
	}

	.kidera-card-title {
		gap: 14px;
	}

	.kidera-card-number {
		font-size: 28px;
	}

	.kidera-card-title h3 {
		font-size: 16px;
	}

	.kidera-business-grid {
		grid-template-columns: 1fr;
	}

	.kidera-company-table table,
	.kidera-company-table tbody,
	.kidera-company-table tr,
	.kidera-company-table th,
	.kidera-company-table td {
		display: block;
		width: 100%;
	}

	.kidera-company-table tr {
		padding: 10px 0;
		border-bottom: 1px solid rgba(148, 183, 229, 0.5);
	}

	.kidera-company-table tr:last-child {
		border-bottom: 0;
	}

	.kidera-company-table th,
	.kidera-company-table td {
		padding: 0;
		overflow-wrap: anywhere;
	}

	.kidera-company-table td {
		margin-top: 3px;
	}

	.kidera-contact__actions .wp-block-button__link {
		font-size: 14px;
	}

	.kidera-free-section > .wp-block-group {
		padding: 32px 20px;
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
