@charset "UTF-8";

/* ============================================================
   MILES 158 — base.css
   Based on Mischen template; MILES 158 colors + fonts applied.
   ============================================================ */

/* ------------------------------------------------------------
   1. Font faces
   ------------------------------------------------------------ */

@font-face {
	font-family: 'ABC Arizona Flare';
	src: url('/fonts/ABCArizonaFlare-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'ABC Arizona Flare';
	src: url('/fonts/ABCArizonaFlare-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'ABC Arizona Flare';
	src: url('/fonts/ABCArizonaFlare-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* ------------------------------------------------------------
   2. Modern reset
   ------------------------------------------------------------ */

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

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

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
	background: transparent;
	border: none;
	outline: none;
}

button {
	cursor: pointer;
}

ul,
ol,
ul li,
ol li {
	list-style: none;
	text-decoration: none;
}

a {
	color: inherit;
	text-decoration: none;
	display: inline-block;
}

::selection {
	background: var(--color-text);
	color: var(--color-bg);
}

/* ------------------------------------------------------------
   3. Design tokens — MILES 158
   ------------------------------------------------------------ */

:root {
	/* --- Colors (MILES 158 brand) --- */
	--c-navy: #000a26;
	--c-sky: #e8f4f8;
	--c-white: #ffffff;
	--c-black: #000000;

	--color-bg: var(--c-sky);
	--color-text: var(--c-navy);
	--color-text-mute: rgba(0, 10, 38, 0.55);
	--color-bg-dark: var(--c-navy);
	--color-text-on-dark: var(--c-sky);
	--color-line: rgba(0, 10, 38, 0.15);
	--color-accent: #3379e6;

	--background: var(--color-bg);
	--white: var(--c-white);
	--black: var(--c-black);
	--key: var(--color-text);

	/* --- Typography stacks --- */
	--font-en: 'ABC Arizona Flare', 'Helvetica Neue', Arial, sans-serif;
	--font-ja:
		'TazuganeGothicStdN-Medium', 'Tazugane Gothic StdN',
		'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
	--font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	--heading-font: var(--font-en);
	--text-font: var(--font-en);

	/* --- Type scale (mobile baseline) --- */
	--fs-h0: 56px;
	--fs-h1: 36px;
	--fs-h2: 28px;
	--fs-h3: 20px;
	--fs-h4: 17px;
	--fs-h5: 14px;
	--fs-h6: 12px;
	--fs-body: 15px;
	--fs-p: 15px;

	/* --- Line heights --- */
	--lh-h1: 1.2;
	--lh-h2: 1.2;
	--lh-h3: 1.33;
	--lh-h4: 1.4;
	--lh-h5: 1.4;
	--lh-h6: 1.5;
	--lh-body: 1.5;
	--lh-ja: 1.8;
	--lh-row: 2;

	/* --- Spacing scale --- */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-7: 30px;
	--space-8: 40px;
	--space-9: 60px;
	--space-10: 80px;
	--space-11: 120px;

	/* --- Layout --- */
	--padding: 5vw;
	--pcPadding: 5vw;
	--gutter: 20px;
	--gutter-alt: 25px;
	--header-offset: 30px;
	--max-width: 1480px;

	/* --- Motion --- */
	--duration-fast: 200ms;
	--duration-default: 400ms;
	--duration-slow: 800ms;
	--ease-default: cubic-bezier(0.4, 0, 0.2, 1);
	--ease-out: cubic-bezier(0, 0, 0.2, 1);
	--ease-in: cubic-bezier(0.4, 0, 1, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

	/* --- Z-index --- */
	--z-base: 0;
	--z-content: 1;
	--z-header: 10;
	--z-overlay: 100;
	--z-modal: 1000;
}

/* ------------------------------------------------------------
   4. Breakpoint scale-ups
   ------------------------------------------------------------ */

@media (min-width: 768px) {
	:root {
		--fs-h0: 72px;
		--fs-h1: 48px;
		--fs-h2: 36px;
		--fs-h3: 22px;
		--fs-h4: 18px;
		--fs-body: 16px;
		--fs-p: 16px;
		--padding: 7.5vw;
		--gutter: 32px;
		--gutter-alt: 40px;
		--header-offset: 32px;
	}
}

@media (min-width: 1024px) {
	:root {
		--fs-h0: 72px;
		--fs-h1: 48px;
		--fs-h2: 32px;
		--fs-h3: 22px;
		--fs-h4: 18px;
		--fs-h5: 14px;
		--fs-h6: 12px;
		--fs-body: 15px;
		--fs-p: 15px;
		--padding: 5vw;
		--gutter: 40px;
		--gutter-alt: 40px;
		--header-offset: 28px;
	}
}

@media (min-width: 1440px) {
	:root {
		--fs-h0: 88px;
		--fs-h1: 56px;
		--fs-h2: 36px;
		--fs-h3: 24px;
		--padding: 5vw;
		--gutter: 48px;
		--gutter-alt: 48px;
	}
}

/* ------------------------------------------------------------
   5. Lang-based font switch
   ------------------------------------------------------------ */

:lang(en) {
	--heading-font: var(--font-en);
	--text-font: var(--font-en);
}

:lang(ja) {
	--heading-font: var(--font-ja);
	--text-font: var(--font-ja);
	font-weight: 500;
}

/* ------------------------------------------------------------
   6. Document base
   ------------------------------------------------------------ */

html {
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

html,
body {
	width: 100%;
	background-color: var(--background);
	overflow-x: hidden;
}

body {
	font-family: var(--text-font);
	font-weight: 400;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--color-text);
}

/* JP-specific line-height */
:lang(ja) {
	line-height: var(--lh-ja);
}

/* ------------------------------------------------------------
   7. Universal text element styling
   Color is inherited from the nearest ancestor (body by default,
   but any section may override via `color:` on its container).
   ------------------------------------------------------------ */

div,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
input,
button,
tspan,
tr,
td,
th,
p,
li {
	font-family: var(--heading-font);
	font-display: swap;
	font-feature-settings: 'palt';
}

/* ------------------------------------------------------------
   8. Headings & body
   ------------------------------------------------------------ */

.h0 {
	font-size: var(--fs-h0);
	line-height: var(--lh-h1);
	font-weight: 400;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
	font-family: var(--heading-font);
	font-weight: 400;
}

h1,
.h1 {
	font-size: var(--fs-h1);
	line-height: var(--lh-h1);
}
h2,
.h2 {
	font-size: var(--fs-h2);
	line-height: var(--lh-h2);
}
h3,
.h3 {
	font-size: var(--fs-h3);
	line-height: var(--lh-h3);
}
h4,
.h4 {
	font-size: var(--fs-h4);
	line-height: var(--lh-h4);
}
h5,
.h5 {
	font-size: var(--fs-h5);
	line-height: var(--lh-h5);
}
h6,
.h6 {
	font-size: var(--fs-h6);
	line-height: var(--lh-h6);
}

p,
.p {
	font-family: var(--text-font);
	font-size: var(--fs-p);
	line-height: var(--lh-body);
	font-weight: 400;
}

p:lang(ja),
.p:lang(ja) {
	line-height: var(--lh-ja);
}

/* ------------------------------------------------------------
   9. Body element defaults
   Each section/page component owns its horizontal padding via
   `.container` or its own scoped style — no implicit `section`
   inline padding to avoid double-padding with wrappers.
   ------------------------------------------------------------ */

img {
	width: 100%;
	object-fit: cover;
	object-position: 50%;
}

input::placeholder {
	color: var(--color-text);
	opacity: 0.25;
}

/* ------------------------------------------------------------
   10. Role utilities
   ------------------------------------------------------------ */

.regular {
	font-weight: 400;
}
.medium {
	font-weight: 400;
}
.bold {
	font-weight: 700;
}

.white {
	color: var(--white);
}
.black {
	color: var(--black);
}
.mute {
	color: var(--color-text-mute);
}
.accent {
	color: var(--color-accent);
}

.bg-white {
	background: var(--white);
}
.bg-dark {
	background: var(--color-bg-dark);
}
.bg-sky {
	background: var(--c-sky);
}
.bg-navy {
	background: var(--c-navy);
}

.left {
	text-align: left;
}
.center {
	text-align: center;
}
.right {
	text-align: right;
}

.upper {
	text-transform: uppercase;
}
.lower {
	text-transform: lowercase;
}
.italic {
	font-style: italic;
}
.nowrap {
	white-space: nowrap;
}

.block {
	display: block;
}
.inline-block {
	display: inline-block;
}
.hidden {
	display: none;
}

.sp {
	display: block;
}
.pc {
	display: none;
}

@media (min-width: 768px) {
	.sp {
		display: none;
	}
	.pc {
		display: block;
	}
}

.w100 {
	width: 100vw;
	margin-left: calc(-1 * var(--padding));
}

/* Inverted (dark) section helper */
.inverse {
	background: var(--c-navy);
	color: var(--c-sky);
}

/* ------------------------------------------------------------
   11. State utilities
   ------------------------------------------------------------ */

.is-active {
	color: var(--color-text);
}
.is-inactive,
.is-mute {
	color: var(--color-text-mute);
}
.is-hidden {
	display: none;
}
.is-paused {
	animation-play-state: paused;
}

/* ------------------------------------------------------------
   12. Layout utilities
   ------------------------------------------------------------ */

.flex {
	display: flex;
	justify-content: center;
	align-items: center;
}

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

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

.l-stack {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.l-cluster {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.l-grid {
	display: grid;
	gap: var(--space-4);
}

.l-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Legacy container (component compatibility) */
.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--padding);
}

/* ------------------------------------------------------------
   13. Section utility
   ------------------------------------------------------------ */

.section {
	padding-top: clamp(80px, 12vh, 160px);
	padding-bottom: clamp(80px, 12vh, 160px);
}

.section-title {
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 400;
	line-height: 1.15;
	margin-bottom: var(--space-7);
}

.section-tag {
	font-size: var(--fs-h6);
	letter-spacing: 0;
	text-transform: uppercase;
	opacity: 0.55;
	margin-bottom: var(--space-5);
	display: block;
}

/* ------------------------------------------------------------
   13b. Liquid Glass (Apple iOS 26 / macOS Tahoe style)
   Stack:
     - backdrop-filter: blur + saturate + brightness for the glass surface
     - dual gradient ::before/::after for specular top + diagonal sweep
     - layered inset box-shadows (top highlight, bottom shadow, inner glow)
     - subtle outer drop shadow for elevation
   ------------------------------------------------------------ */

.btn-glass {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 9px 28px;
	border-radius: 999px;
	isolation: isolate;
	overflow: hidden;

	background: rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(24px) saturate(190%) brightness(1.05);
	-webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.05);

	border: 1px solid rgba(255, 255, 255, 0.45);
	box-shadow:
		inset 0 1px 0 0 rgba(255, 255, 255, 0.55),
		inset 0 -1px 0 0 rgba(255, 255, 255, 0.08),
		inset 0 0 14px 0 rgba(255, 255, 255, 0.06),
		0 1px 0 0 rgba(255, 255, 255, 0.1),
		0 8px 28px rgba(0, 0, 0, 0.16);

	color: var(--c-sky);
	font-family: var(--font-mix);
	font-size: var(--fs-h5);
	font-weight: 400;
	text-decoration: none;
	cursor: pointer;
	transition:
		background 0.32s var(--ease-default),
		border-color 0.32s var(--ease-default),
		box-shadow 0.32s var(--ease-default),
		transform 0.22s var(--ease-default);
}

.btn-glass:lang(ja) {
	font-family: var(--font-ja);
}

/* Top specular highlight — inherits the pill shape exactly */
.btn-glass::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.55) 0%,
		rgba(255, 255, 255, 0.12) 30%,
		rgba(255, 255, 255, 0) 55%
	);
	pointer-events: none;
	z-index: 1;
}

/* Diagonal sweep + bottom reflection */
.btn-glass::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background:
		linear-gradient(
			115deg,
			rgba(255, 255, 255, 0.18) 0%,
			rgba(255, 255, 255, 0) 28%,
			rgba(255, 255, 255, 0) 70%,
			rgba(255, 255, 255, 0.06) 100%
		),
		radial-gradient(
			ellipse at 50% 100%,
			rgba(255, 255, 255, 0.18) 0%,
			rgba(255, 255, 255, 0) 60%
		);
	pointer-events: none;
	z-index: 1;
}

.btn-glass > * {
	position: relative;
	z-index: 2;
}

.btn-glass:hover {
	background: rgba(255, 255, 255, 0.26);
	border-color: rgba(255, 255, 255, 0.62);
	box-shadow:
		inset 0 1px 0 0 rgba(255, 255, 255, 0.7),
		inset 0 -1px 0 0 rgba(255, 255, 255, 0.12),
		inset 0 0 18px 0 rgba(255, 255, 255, 0.1),
		0 1px 0 0 rgba(255, 255, 255, 0.14),
		0 14px 38px rgba(0, 0, 0, 0.22);
	transform: translateY(-1px);
}

.btn-glass:active {
	transform: translateY(0);
	box-shadow:
		inset 0 2px 4px rgba(0, 0, 0, 0.12),
		inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
		0 4px 14px rgba(0, 0, 0, 0.14);
}

/* Dark variant — for light backgrounds: tints toward navy */
.btn-glass--dark {
	background: rgba(0, 10, 38, 0.12);
	border-color: rgba(0, 10, 38, 0.28);
	color: var(--c-navy);
	box-shadow:
		inset 0 1px 0 0 rgba(255, 255, 255, 0.55),
		inset 0 -1px 0 0 rgba(0, 0, 0, 0.06),
		inset 0 0 14px 0 rgba(255, 255, 255, 0.16),
		0 1px 0 0 rgba(255, 255, 255, 0.5),
		0 8px 28px rgba(0, 10, 38, 0.12);
}

.btn-glass--dark::before {
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.7) 0%,
		rgba(255, 255, 255, 0.18) 40%,
		rgba(255, 255, 255, 0) 100%
	);
}

.btn-glass--dark:hover {
	background: rgba(0, 10, 38, 0.2);
	border-color: rgba(0, 10, 38, 0.42);
}

.btn-glass--sm {
	padding: 6px 18px;
	font-size: var(--fs-h6);
}

.btn-glass--lg {
	padding: 12px 36px;
	font-size: var(--fs-h5);
}

/* Outline button — transparent fill, current-color border */
.btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 12px 36px;
	border-radius: 999px;
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
	font-family: var(--font-mix);
	font-size: var(--fs-h5);
	font-weight: 400;
	text-decoration: none;
	cursor: pointer;
	transition:
		background 0.3s var(--ease-default),
		color 0.3s var(--ease-default);
}

.btn-outline:lang(ja) {
	font-family: var(--font-ja);
}

.btn-outline:hover {
	background: currentColor;
}

.btn-outline:hover :global(*),
.btn-outline:hover {
	color: var(--c-navy);
}

.btn-outline--sm {
	padding: 6px 18px;
	font-size: var(--fs-h6);
}

.btn-outline--lg {
	padding: 16px 44px;
	font-size: var(--fs-h3);
}

/* Generic glass surface for panels, popovers, modals */
.glass-surface {
	position: relative;
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(28px) saturate(180%);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow:
		inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
		inset 0 -1px 0 0 rgba(255, 255, 255, 0.06),
		0 12px 40px rgba(0, 0, 0, 0.18);
	border-radius: 28px;
	isolation: isolate;
}

.glass-surface--dark {
	background: rgba(0, 10, 38, 0.5);
	border-color: rgba(0, 10, 38, 0.4);
	box-shadow:
		inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
		inset 0 -1px 0 0 rgba(0, 0, 0, 0.2),
		0 12px 48px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   14. Reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ------------------------------------------------------------
   15. Focus outlines
   ------------------------------------------------------------ */

:focus-visible {
	outline: 2px solid var(--color-text);
	outline-offset: 2px;
}

:focus:not(:focus-visible) {
	outline: none;
}

/* ------------------------------------------------------------
   16. Accessibility helper
   ------------------------------------------------------------ */

.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;
}
