/*
 * shared.css — valoc.group と共通の土台（デザイントークン・ベース・ヘッダー・フッター）
 *
 * 本サイトの実際のCSSに差し替えるときは、このファイルの
 * 「header」「footer」の2か所を置き換える。それ以外は column.css 側で完結している。
 */

/* ===== tokens ===== */
:root {
	--ink: #15204a;
	--gold: #c9a24d;
	--gold-l: #e2c47e;
	--gold-d: #8c6a1f;
	--paper: #fff;
	--g1: #f4f4f5;
	--g2: #e6e6e9;
	--g3: #9a9aa2;
	--g4: #56565c;
	--text: #23262f;
	--max: 1340px;
	--pad: clamp(20px, 5vw, 72px);
	--header-h: 73px;
	--radius: clamp(12px, 1.4vw, 20px);
	--font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: #e9e9ec;
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.85;
	letter-spacing: 0.01em;
	font-feature-settings: "palt";
	-webkit-font-smoothing: antialiased;
	overflow-wrap: anywhere;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body.admin-bar {
	--admin-bar-h: 32px;
}

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

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

button {
	font: inherit;
}

[hidden] {
	display: none !important;
}

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

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	background: var(--ink);
	color: #fff;
	z-index: 200;
	top: 8px;
	left: 8px;
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--gold-d);
	outline-offset: 3px;
}

/* ===== buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn--gold {
	background: var(--gold);
	color: var(--ink);
}

.btn--gold:hover {
	background: var(--gold-l);
}

.btn--ghost {
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
}

.btn--outline {
	border-color: var(--ink);
	color: var(--ink);
}

.btn--outline:hover {
	background: var(--ink);
	color: #fff;
}

/* ===== header ===== */
.site-header {
	position: fixed;
	top: var(--admin-bar-h, 0);
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(21, 32, 74, 0.08);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--max);
	margin: 0 auto;
	padding: 14px var(--pad);
	transition: padding 0.3s;
}

.site-header.scrolled .nav {
	padding-top: 9px;
	padding-bottom: 9px;
}

.logo {
	display: block;
	flex: none;
	line-height: 0;
}

.logo img {
	display: block;
	width: auto;
	height: 44px;
	filter: brightness(0);
	transition: height 0.3s;
}

.site-header.scrolled .logo img {
	height: 38px;
}

.nav-r {
	display: flex;
	align-items: center;
	gap: 28px;
}

.menu {
	display: flex;
	align-items: center;
	gap: 26px;
}

.menu a {
	position: relative;
	padding: 4px 0;
	color: var(--ink);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-decoration: none;
	white-space: nowrap;
}

.menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s;
}

.menu a:hover::after,
.menu a[aria-current="page"]::after {
	transform: scaleX(1);
}

.gm-btn {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	border: 0;
	background: none;
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	cursor: pointer;
}

.gm-bars {
	position: relative;
	display: block;
	width: 22px;
	height: 10px;
}

.gm-bars i {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.3s, top 0.3s;
}

.gm-bars i:first-child {
	top: 0;
}

.gm-bars i:last-child {
	top: 8px;
}

.gm-btn[aria-expanded="true"] .gm-bars i:first-child {
	top: 4px;
	transform: rotate(20deg);
}

.gm-btn[aria-expanded="true"] .gm-bars i:last-child {
	top: 4px;
	transform: rotate(-20deg);
}

.gmenu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100vh - var(--header-h) - var(--admin-bar-h, 0px));
	overflow-y: auto;
	background: #fff;
	border-bottom: 1px solid var(--g2);
	box-shadow: 0 24px 40px rgba(21, 32, 74, 0.12);
}

.gmenu-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 8px var(--pad) 28px;
}

.gmenu-inner a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	border-bottom: 1px solid var(--g2);
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.gmenu-inner a::after {
	content: "→";
	color: var(--gold-d);
}

.gmenu-inner a[aria-current="page"] {
	color: var(--gold-d);
}

@media (max-width: 1100px) {
	.menu {
		display: none;
	}

	.nav-r {
		gap: 18px;
	}

	.gm-btn {
		display: inline-flex;
	}
}

@media (min-width: 1101px) {
	.gmenu {
		display: none !important;
	}
}

@media (max-width: 720px) {
	.nav-r .btn {
		display: none;
	}
}

html.menu-open {
	overflow: hidden;
}

/* ===== footer ===== */
.site-footer {
	margin: 0 clamp(10px, 1.4vw, 18px);
	padding: clamp(48px, 7vw, 88px) var(--pad) 28px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--radius) var(--radius) 0 0;
}

.footer-inner {
	max-width: var(--max);
	margin: 0 auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px 48px;
}

.footer-logo {
	display: inline-block;
	line-height: 0;
}

.footer-logo img {
	display: block;
	width: auto;
	height: 40px;
	filter: brightness(0) invert(1);
}

.footer-brand p {
	max-width: 34em;
	margin: 20px 0 0;
	color: rgb(168, 168, 176);
	font-size: 13px;
	line-height: 1.9;
}

.footer-title {
	margin: 0 0 18px;
	color: rgb(111, 111, 120);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.footer-col ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col a {
	color: rgb(207, 207, 213);
	font-size: 13px;
	text-decoration: none;
	transition: color 0.25s;
}

.footer-col a:hover {
	color: var(--gold-l);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid rgb(38, 38, 43);
	color: rgb(111, 111, 120);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
}

@media (max-width: 900px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}
