/* =========================================================
   AST theme — 共通スタイル（リセット / 変数 / ヘッダー / フッター / ヒーロー映像）
   ページ固有のセクションスタイルは page-top.css / page-recruit.css に分離。
   ========================================================= */

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

:root {
	/* ブランド原色（決定稿） */
	--red: #E60012;
	--blue: #0066CC;
	--yellow: #FBBF24;       /* 既定の黄（recruit系）。TOPは page-top.css で #FFD500 に上書き */
	--navy: #1A2744;
	--navy-deep: #0F1A30;
	--dark: #1E293B;
	/* アクセント（recruit系） */
	--teal: #0891B2;
	--teal-mid: #0E7490;
	--teal-pale: #E0F7FA;
	--teal-light: #CFFAFE;
	--coral: #F97316;
	--coral-pale: #FFF4ED;
	--green: #10B981;
	--green-pale: #ECFDF5;
	/* ニュートラル */
	--white: #FFFFFF;
	--off-white: #F8FAFC;
	--offwhite: #FAFBFC;
	--gray: #64748B;
	--line: #E2E8F0;
	--gray-100: #F1F5F9;
	--gray-200: #E2E8F0;
	--gray-300: #CBD5E1;
	--gray-400: #94A3B8;
	--gray-500: #64748B;
	--gray-600: #475569;
	--gray-700: #334155;
	--gray-900: #0F172A;
}

html { scroll-behavior: smooth; }
body {
	font-family: 'Noto Sans JP', sans-serif;
	background: var(--white);
	color: var(--gray-700);
	line-height: 1.75;
	overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; }
a { color: inherit; }
.en { font-family: 'Outfit', sans-serif; letter-spacing: .05em; }

/* ---------- Header ---------- */
.ast-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 200;
	background: rgba(255,255,255,0.97);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--gray-200);
	height: 64px; display: flex; align-items: center;
}
.header-inner {
	max-width: 1200px; margin: 0 auto; width: 100%;
	padding: 0 40px; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--navy); letter-spacing: .05em; text-decoration: none; }
.logo span { color: var(--teal); }

.ast-nav { display: flex; gap: 32px; align-items: center; }
.ast-nav ul { display: flex; gap: 32px; align-items: center; list-style: none; }
.ast-nav a { font-size: .82rem; font-weight: 500; color: var(--gray-500); text-decoration: none; letter-spacing: .04em; transition: color .2s; }
.ast-nav a:hover { color: var(--navy); }
.ast-nav .current-menu-item > a, .ast-nav a.active { color: var(--coral); font-weight: 700; }
.ast-nav .nav-cta > a, .ast-nav a.nav-cta {
	background: var(--coral); color: var(--white) !important;
	padding: 8px 20px; border-radius: 6px; font-weight: 700 !important;
}

.ast-nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; height: 22px; background: none; border: 0; cursor: pointer; padding: 0; }
.ast-nav-toggle span { display: block; height: 2px; width: 100%; background: var(--navy); transition: .3s; }
.ast-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ast-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ast-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero media（全ページ共通：映像/ポスター/プレースホルダ） ---------- */
.ast-hero-media { position: absolute; inset: 0; overflow: hidden; }
.ast-hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ast-hero-poster { width: 100%; height: 100%; background-size: cover; background-position: center; }
.ast-hero-placeholder {
	width: 100%; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
	color: #64748B; font-size: .9rem; text-align: center; padding: 16px;
}
.ast-hero-placeholder small { font-size: .75rem; opacity: .8; }
/* 背景型ヒーロー（テキスト主体ページ）に映像を敷く場合：内容を前面へ＋可読性オーバーレイ */
.ast-hero-media.hero-bg-media { z-index: 0; }
.ast-hero-media.hero-bg-media::after { content: ''; position: absolute; inset: 0; background: rgba(15,26,48,.5); }
.hero > .hero-inner, .page-hero > .hero-inner { position: relative; z-index: 6; }

/* ---------- Footer ---------- */
.ast-footer { background: var(--navy-deep); padding: 64px 0 0; }
.ast-footer .wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.footer-grid {
	display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px;
	padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: .05em; margin-bottom: 14px; display: block; }
.footer-logo span { color: var(--teal); }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.8; max-width: 260px; }
.footer-nav h4 { font-size: .72rem; font-weight: 700; letter-spacing: .15em; color: var(--teal-light); text-transform: uppercase; margin-bottom: 14px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { font-size: .82rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--white); }
.footer-btm { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-btm p { font-size: .74rem; color: rgba(255,255,255,.28); }
.footer-btm-links { display: flex; gap: 24px; }
.footer-btm-links a { font-size: .74rem; color: rgba(255,255,255,.32); text-decoration: none; }

/* ---------- Responsive（チャンク：ヘッダー/フッター） ---------- */
@media (max-width: 768px) {
	.header-inner { padding: 0 20px; }
	.ast-nav-toggle { display: flex; }
	.ast-nav {
		position: fixed; top: 64px; left: 0; right: 0;
		flex-direction: column; gap: 0; align-items: stretch;
		background: rgba(255,255,255,.98); border-bottom: 1px solid var(--gray-200);
		padding: 8px 20px 16px; transform: translateY(-120%); transition: transform .3s; z-index: 199;
	}
	.ast-nav.is-open { transform: translateY(0); }
	.ast-nav ul { flex-direction: column; gap: 0; align-items: stretch; width: 100%; }
	.ast-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
	.ast-nav .nav-cta > a, .ast-nav a.nav-cta { display: inline-block; margin-top: 12px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.ast-footer .wrap { padding: 0 20px; }
	.footer-btm { flex-direction: column; align-items: flex-start; }
}
