/*
Theme Name: LEAP
Description: LEAP公式サイトのお知らせ・コラム用クラシックテーマ。
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: leap
*/

:root {
	--blue: #005663;
	--blue2: #d49b37;
	--ink: #172522;
	--muted: #596a5d;
	--paper: #f7f8fb;
	--cream: #e1d7c6;
	--line: #d9d4ca;
	--white: #fff;
	--content-max: 1680px;
	--header-height: 80px;
	--control-height: 56px;
	--pad: max(clamp(24px, 5vw, 80px), calc((100vw - var(--content-max)) / 2));
	--radius-sm: 12px;
	--radius-md: 24px;
	--radius-pill: 999px;
	--shadow-soft: 0 18px 54px rgba(23, 37, 34, 0.08);
	--ease-out: cubic-bezier(0.22, 0.72, 0.2, 1);
	--motion-fast: 0.22s;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-feature-settings: "palt";
	-webkit-font-smoothing: antialiased;
	line-height: 1.8;
}

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

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
}

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

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--white);
	color: var(--blue);
}

:focus-visible {
	outline: 3px solid var(--blue2);
	outline-offset: 3px;
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--header-height);
	padding: 0 var(--pad);
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.4vw, 42px);
	background: rgba(247, 248, 251, 0.92);
	border-bottom: 1px solid rgba(0, 86, 99, 0.1);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.brand-logo {
	display: inline-flex;
	flex: 0 0 auto;
}

.desktop-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: clamp(15px, 1.8vw, 29px);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.desktop-nav a {
	position: relative;
	padding-block: 8px;
}

.desktop-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 2px;
	height: 1px;
	background: var(--blue2);
	transition: right var(--motion-fast) var(--ease-out);
}

.desktop-nav a[aria-current="page"] {
	color: var(--blue);
}

.desktop-nav a[aria-current="page"]::after {
	right: 0;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-actions .header-cta,
.header-actions .header-line-cta {
	width: 160px;
	min-width: 160px;
	flex: 0 0 160px;
}

.header-cta,
.header-line-cta,
.button,
.btn {
	min-height: 46px;
	padding: 0 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border: 1px solid var(--blue);
	border-radius: var(--radius-pill);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast);
}

.header-cta {
	background: var(--blue2);
	border-color: var(--blue2);
	color: var(--blue);
}

.header-line-cta {
	background: var(--blue);
	color: var(--white);
}

.line-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.instagram-icon {
	width: 20px;
	height: 20px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.instagram-icon .instagram-icon-dot {
	fill: currentColor;
	stroke: none;
}

.header-instagram-link {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(0, 86, 99, 0.22);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.72);
	color: var(--blue);
	transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast), border-color var(--motion-fast), opacity var(--motion-fast);
}

.mobile-instagram-link {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.mobile-instagram-link .instagram-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
}

.footer-instagram-link {
	width: max-content;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.footer-instagram-link .instagram-icon {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
}

.button--secondary {
	background: transparent;
	color: var(--blue);
}

.menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(0, 86, 99, 0.18);
	border-radius: 50%;
	background: var(--white);
	cursor: pointer;
}

.menu-toggle i {
	display: block;
	width: 18px;
	height: 1px;
	margin: 5px auto;
	background: var(--blue);
	transition: transform var(--motion-fast), opacity var(--motion-fast);
}

.menu-toggle[aria-expanded="true"] i:first-child {
	transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] i:nth-child(2) {
	transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
	display: none;
}

.site-footer {
	padding: clamp(64px, 7vw, 96px) var(--pad) 24px;
	background: var(--blue);
	color: var(--white);
}

.footer-top {
	max-width: var(--content-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto auto;
	gap: clamp(40px, 7vw, 112px);
	align-items: start;
}

.footer-top p {
	margin: 18px 0 0;
	color: var(--cream);
	font-size: 13px;
}

.footer-top nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(130px, 1fr));
	gap: 12px 34px;
	font-size: 13px;
}

.footer-top nav a,
.page-top {
	transition: color var(--motion-fast), opacity var(--motion-fast);
}

.footer-logo img {
	filter: brightness(0) invert(1);
}

.page-top {
	font: 700 11px/1.4 "DM Sans", sans-serif;
	letter-spacing: 0.12em;
}

.footer-bottom {
	max-width: var(--content-max);
	margin: 54px auto 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font: 500 11px/1.5 "DM Sans", sans-serif;
	letter-spacing: 0.08em;
}

.footer-bottom p {
	margin: 0;
}

.mobile-contact-bar {
	display: none;
}

@media (hover: hover) {
	.desktop-nav a:hover::after {
		right: 0;
	}

	.header-cta:hover,
	.header-line-cta:hover,
	.button:hover,
	.btn:hover {
		transform: translateY(-2px);
	}

	.header-instagram-link:hover {
		transform: translateY(-2px);
		border-color: var(--blue2);
		background: var(--white);
	}

	.button--secondary:hover {
		background: var(--blue);
		color: var(--white);
	}

	.footer-top nav a:hover,
	.page-top:hover {
		color: var(--blue2);
	}
}

@media (max-width: 1050px) {
	.desktop-nav,
	.header-actions {
		display: none;
	}

	.menu-toggle {
		display: block;
		margin-left: auto;
	}

	.mobile-menu {
		position: fixed;
		z-index: 999;
		inset: var(--header-height) 0 0;
		padding: clamp(28px, 6vw, 64px) var(--pad);
		background: var(--blue);
		color: var(--white);
		opacity: 0;
		visibility: hidden;
		transform: translateX(24px);
		transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease-out);
	}

	.mobile-menu.open {
		display: block;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.mobile-menu nav {
		max-width: 720px;
		margin-inline: auto;
		display: grid;
	}

	.mobile-menu a {
		padding: 16px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
		font-size: clamp(17px, 3vw, 22px);
		font-weight: 600;
	}

	.mobile-menu a[aria-current="page"] {
		color: var(--blue2);
	}
}

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

@media (max-width: 768px) {
	:root {
		--header-height: 68px;
	}

	body {
		padding-bottom: calc(60px + env(safe-area-inset-bottom));
	}

	.site-header .brand-logo img {
		width: 96px;
	}

	.menu-toggle {
		width: 44px;
		height: 44px;
	}

	.site-footer {
		padding-bottom: 30px;
	}

	.footer-top {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.footer-top nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mobile-contact-bar {
		position: fixed;
		z-index: 1001;
		left: 0;
		right: 0;
		bottom: 0;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px;
		min-height: calc(64px + env(safe-area-inset-bottom));
		padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.94);
		border-top: 1px solid rgba(0, 86, 99, 0.12);
		box-shadow: 0 -8px 24px rgba(23, 37, 34, 0.12);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
		transition: opacity var(--motion-fast) ease, visibility var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
	}

	.mobile-contact-bar.is-hidden {
		visibility: hidden;
		opacity: 0;
		transform: translateY(100%);
		pointer-events: none;
	}

	.mobile-contact-link {
		min-width: 0;
		min-height: 52px;
		padding: 0 10px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		border-radius: 14px;
		font-size: 12px;
		font-weight: 700;
	}

	.mobile-contact-form {
		background: var(--blue2);
		color: var(--blue);
	}

	.mobile-contact-link svg {
		width: 20px;
		height: 20px;
		flex: 0 0 20px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.mobile-contact-line {
		background: var(--blue);
		color: var(--white);
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
