/*
 * Mirinae site shell — header, hero, course bar, footer (from index.html).
 * Shared by static pages and WordPress blog theme.
 */

:root {
	--gold: #B8963E;
	--gold-light: #D4A843;
	--gold-pale: #FBF4E3;
	--teal: #2A7F74;
	--teal-pale: #E8F5F3;
	--dark: #1C1C1E;
	--text: #2C2C2E;
	--text-dark: #2C2C2E;
	--gray: #8E8E93;
	--gray-desc: #5C5C5E;
	--text-muted: #666;
	--border: #E5E0D8;
	--gray-border: #e5e5e5;
	--bg: #FAFAF7;
	--bg2: #F2F0EB;
	--white: #FFFFFF;
	--beige: #f5f0e8;
	--gray-light: #f8f8f8;
	--accent-blue: #4a6fa5;
	--footer-bg: #2c2c2c;
	--mid: #4a4438;
	--muted: #8a7f72;
}

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

html {
	zoom: 1.2;
	overflow-x: hidden;
	overflow-x: clip;
	max-width: 100%;
	width: 100%;
}

html, body {
	overscroll-behavior-x: none;
}

body {
	font-family: 'Noto Sans JP', sans-serif;
	color: var(--text);
	line-height: 1.7;
	background: var(--bg);
	overflow-x: hidden;
	max-width: 100%;
	width: 100%;
}

/* Header */
header#siteHeader {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	transition: box-shadow 0.3s;
	overflow: visible;
}

header#siteHeader.scrolled {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	overflow: visible;
}

.nav-logo {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	text-decoration: none;
	flex-shrink: 0;
}

.nav-logo .logo-jp {
	font-family: 'Noto Serif JP', serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--dark);
	letter-spacing: 0.05em;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
}

.nav-links > li { position: relative; }

.nav-links > li.nav-has-dropdown::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 14px;
}

.nav-links a {
	display: block;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.nav-links > li > a:hover {
	background: var(--gold-pale);
	color: var(--gold);
}

.nav-cta {
	background: var(--gold) !important;
	color: white !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
	padding: 8px 16px !important;
}

.nav-cta:hover {
	background: var(--gold-light) !important;
	color: white !important;
}

.nav-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 180px;
	background: var(--white);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 8px 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.15s;
	z-index: 9999;
	margin-top: 0;
	border: 1px solid var(--border);
	pointer-events: none;
}

.nav-links > li:hover .nav-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.nav-dropdown a {
	padding: 10px 20px;
	font-size: 13px;
	border-radius: 0;
	white-space: nowrap;
}

.nav-dropdown a:hover {
	background: var(--gold-pale);
	color: var(--gold);
}

/* Mobile nav */
.nav-hamburger {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.nav-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--dark);
	border-radius: 1px;
	transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 98;
	opacity: 0;
	transition: opacity 0.25s;
}

.nav-mobile-overlay.open {
	display: block;
	opacity: 1;
}

.nav-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: min(300px, 85vw);
	height: 100vh;
	background: var(--white);
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
	z-index: 99;
	padding: 72px 0 24px;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.25s ease;
}

.nav-mobile-drawer.open { transform: translateX(0); }

.nav-mobile-drawer a {
	display: block;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
	text-decoration: none;
	border-bottom: 1px solid var(--border);
}

.nav-mobile-drawer a:hover {
	background: var(--gold-pale);
	color: var(--gold);
}

.nav-mobile-drawer .nav-cta {
	background: var(--gold-pale) !important;
	color: var(--gold) !important;
}

.nav-mobile-drawer .nav-sub {
	padding-left: 32px;
	font-size: 14px;
}

@media (max-width: 700px) {
	.nav-links { display: none; }
	.nav-hamburger { display: flex; }
	.course-link .c-icon { display: none; }
	.course-link { padding: 12px 10px; font-size: 11px; }
}

/* Hero */
.hero {
	position: relative;
	height: 100svh;
	min-height: 560px;
	max-height: 800px;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-image: url('/img/hero-bg.jpg?v=1');
	background-size: cover;
	background-position: center 62%;
	transform: scale(1.05);
	animation: mirinaeSlowZoom 20s ease-out forwards;
}

@keyframes mirinaeSlowZoom {
	from { transform: scale(1.05); }
	to { transform: scale(1); }
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(20, 18, 14, 0.42) 0%,
		rgba(20, 18, 14, 0.22) 60%,
		rgba(20, 18, 14, 0.06) 100%
	);
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 1100px;
	margin: 0 auto;
	padding: 80px 24px 40px;
	width: 100%;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(184, 150, 62, 0.25);
	border: 1px solid rgba(184, 150, 62, 0.5);
	border-radius: 20px;
	padding: 5px 14px;
	font-size: 11px;
	color: var(--gold-light);
	font-weight: 700;
	letter-spacing: 2px;
	margin-bottom: 20px;
}

.hero-title {
	font-family: 'Noto Serif JP', serif;
	font-size: clamp(36px, 6vw, 64px);
	font-weight: 700;
	color: white;
	line-height: 1.2;
	letter-spacing: 0.03em;
	margin-bottom: 16px;
}

.hero-title em {
	font-style: normal;
	color: var(--gold-light);
}

.hero-sub {
	font-size: clamp(14px, 2vw, 17px);
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.8;
	margin-bottom: 28px;
	max-width: 560px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn-primary,
.btn-secondary {
	display: inline-flex;
	align-items: center;
	padding: 14px 28px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
	background: var(--gold);
	color: white;
	box-shadow: 0 4px 16px rgba(184, 150, 62, 0.35);
}

.btn-primary:hover {
	background: var(--gold-light);
	transform: translateY(-1px);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.12);
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.45);
	font-size: 10px;
	letter-spacing: 2px;
}

.scroll-line {
	width: 1px;
	height: 36px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

/* Course bar */
.course-bar {
	background: var(--dark);
	position: sticky;
	top: 64px;
	z-index: 90;
	overflow: visible;
	margin-top: -18px;
}

.course-bar-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	overflow: visible;
}

.course-item {
	position: relative;
	flex: 1;
	min-width: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.course-item:last-child { border-right: none; }

.course-link {
	width: 100%;
	min-width: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 14px 12px;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
	letter-spacing: 0.02em;
	position: relative;
	box-sizing: border-box;
}

.course-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--gold);
	transform: scaleX(0);
	transition: transform 0.2s;
}

.course-link:hover {
	background: rgba(255, 255, 255, 0.05);
	color: white;
}

.course-link:hover::after { transform: scaleX(1); }

.course-link .c-icon {
	width: 20px;
	height: 20px;
	margin-bottom: 5px;
	opacity: 0.7;
	transition: opacity 0.15s;
}

.course-link:hover .c-icon { opacity: 1; }

.course-link.highlight { color: var(--gold-light); }

.course-dropdown {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 160px;
	background: var(--white);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
	z-index: 9999;
	margin-top: 0;
	border: 1px solid var(--border);
	pointer-events: none;
}

.course-dropdown::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 0;
	right: 0;
	height: 12px;
}

.course-item:hover .course-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.course-dropdown a {
	display: block;
	padding: 10px 20px;
	font-size: 13px;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
	text-align: center;
	transition: background 0.15s, color 0.15s;
}

.course-dropdown a:hover {
	background: var(--gold-pale);
	color: var(--gold);
}

.course-mobile-panel {
	display: none;
	background: var(--white);
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 12px 16px 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.course-mobile-panel.open { display: block; }

.course-mobile-panel a {
	display: block;
	padding: 12px 16px;
	font-size: 14px;
	color: var(--text);
	text-decoration: none;
	border-radius: 8px;
}

.course-mobile-panel a:hover {
	background: var(--gold-pale);
	color: var(--gold);
}

.course-mobile-panel .course-panel-close {
	display: block;
	width: 100%;
	padding: 10px 16px;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--gray-desc);
	background: var(--bg2);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
}

@media (min-width: 769px) {
	.course-mobile-panel { display: none !important; }
}

@media (max-width: 768px) {
	.course-bar-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		overscroll-behavior-x: contain;
	}

	.course-bar-inner {
		flex-wrap: nowrap;
		min-width: max-content;
		padding: 0 8px;
	}

	.course-item {
		flex: 0 0 auto;
		min-width: 88px;
	}

	.course-item .course-dropdown { display: none; }
}

/* Footer */
.main-footer {
	background: var(--footer-bg);
	color: white;
	padding: 48px 24px 24px;
}

.footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	margin-bottom: 40px;
}

.footer-column h4 {
	font-size: 14px;
	margin-bottom: 16px;
	opacity: 0.9;
}

.footer-column a {
	display: block;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 14px;
	margin-bottom: 8px;
}

.footer-column a:hover { color: white; }

.footer-bottom {
	text-align: center;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 13px;
	opacity: 0.8;
}

@media (max-width: 768px) {
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
}
