/*
 * taisei_n Child - Base styles
 * Header / Footer / shared components (buttons, containers, typography)
 * Source: Figma "中野たいせい 公式サイト SP" (node 45:53)
 */

:root {
	--color-green: #179c5a;
	--color-green-dark: #0f7a46;
	--color-white: #ffffff;
	--color-text: #222222;
	--color-text-light: #666666;
	--color-bg-gray: #d9d9d9;
	--color-bg-gray-light: #f2f2f2;
	--color-orange: #f28c28;
	--color-border: #e2e2e2;

	--font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
	--font-heading: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;

	--header-height: 69px;
	--subnav-height: 42px;

	--container-width: 1080px;
	--container-padding: 24px;
}

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

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

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

body {
	font-family: var(--font-body);
	color: var(--color-text);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

/* Offset anchor jumps for the fixed header + sub navigation */
[id] {
	scroll-margin-top: calc(var(--header-height) + var(--subnav-height) + 12px);
}

.is-hidden {
	display: none !important;
}

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

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	padding: 8px 24px;
	border-radius: 999px;
	background: var(--color-green);
	color: var(--color-white);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
	border: 1px solid var(--color-green);
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
	opacity: 0.85;
}

.btn .btn__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--color-white);
	color: var(--color-green);
	flex-shrink: 0;
}

.btn .btn__arrow svg {
	width: 6px;
	height: 11px;
}

.btn--outline {
	background: var(--color-white);
	color: var(--color-green);
	border-color: var(--color-green);
}

.btn--outline .btn__arrow {
	background: var(--color-green);
	color: var(--color-white);
}

.btn--lg {
	min-height: 48px;
	padding: 10px 32px;
	font-size: 16px;
}

/* ---------- Site Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	padding-inline: 20px;
	background: var(--color-green);
	color: var(--color-white);
}

.site-header__brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.3;
	color: var(--color-white);
}

.site-header__eyebrow {
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.site-header__name {
	margin: 0;
	font-weight: 700;
	line-height: 0;
}

.site-header__name img {
	display: block;
	width: auto;
	height: 28px;
}

.site-header__brand a {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.menu-toggle {
	appearance: none;
	background: none;
	border: 0;
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	cursor: pointer;
}

.menu-toggle__bar {
	display: block;
	width: 26px;
	height: 2px;
	border-radius: 1px;
	background: var(--color-white);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

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

/* Off-canvas primary menu (mobile) */
.site-nav {
	position: fixed;
	inset: var(--header-height) 0 0 0;
	background: var(--color-white);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	z-index: 90;
}

.site-nav.is-open {
	transform: translateX(0);
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav li {
	border-bottom: 1px solid var(--color-border);
}

.site-nav a {
	display: block;
	padding: 18px 24px;
	font-weight: 700;
	color: var(--color-text);
}

/* ---------- Sub navigation (５つの約束 / 実現する力 / 語る会日程) ---------- */
.sub-nav {
	position: sticky;
	top: var(--header-height);
	z-index: 90;
	background: var(--color-bg-gray);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.sub-nav::-webkit-scrollbar {
	display: none;
}

.sub-nav__list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0 12px;
	min-height: var(--subnav-height);
	width: max-content;
	min-width: 100%;
	justify-content: space-evenly;
}

.sub-nav__item + .sub-nav__item {
	margin-left: 8px;
}

.sub-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	padding: 10px 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--color-green);
}

.sub-nav__link .arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid var(--color-green);
	font-size: 8px;
	line-height: 1;
}

/* ---------- Site Footer ---------- */
.site-footer {
	background: var(--color-green);
	color: var(--color-white);
	padding-block: 44px 28px;
}

.site-footer__heading {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	margin-top: 40px;
	padding-inline: var(--container-padding);
	justify-content: center;
}

.site-footer__links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.site-footer__links a {
	font-size: 14px;
	font-weight: 500;
}

.site-footer__social {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 38px;
}

.site-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 27px;
	height: 27px;
	border: 1px solid var(--color-white);
	border-radius: 50%;
}

.site-footer__social svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
}

.site-footer__divider {
	max-width: var(--container-width);
	margin: 30px auto 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.site-footer__office {
	max-width: var(--container-width);
	margin: 26px auto 0;
	padding-inline: var(--container-padding);
	font-size: 14px;
	text-align: center;
	line-height: 1.8;
}

.site-footer__office strong {
	display: block;
	font-size: 18px;
	margin-bottom: 4px;
}

.site-footer__copyright {
	margin-top: 24px;
	text-align: center;
	font-size: 12px;
	opacity: 0.9;
}

@media (min-width: 768px) {
	.site-footer__links {
		justify-content: center;
		gap: 24px 80px;
	}
}

@media (min-width: 1024px) {
	.site-header {
		padding-inline: 40px;
	}

	.site-header__name img {
		height: 32px;
	}

	.menu-toggle {
		display: none;
	}

	.site-nav {
		position: static;
		inset: auto;
		transform: none;
		background: none;
		overflow: visible;
		z-index: auto;
	}

	.site-nav ul {
		display: flex;
		align-items: center;
		gap: 32px;
	}

	.site-nav li {
		border-bottom: 0;
	}

	.site-nav a {
		padding: 0;
		color: var(--color-white);
		font-size: 15px;
	}

	.sub-nav__list {
		justify-content: center;
		gap: 56px;
	}
}
