/* ===================================================
   シュレディンガーのベビーカステラ — styles.css
   Dark / Left-aligned / Text-flow-in edition
   =================================================== */


/* ===================================================
   DESIGN TOKENS
   =================================================== */
:root {
	--color-bg: #0e0e10;
	--color-surface: #16161a;
	--color-ink: #f0ede8;
	--color-muted: #72706c;
	--color-sub: #a09d98;
	--color-accent: #c8960e;
	--color-accent-dim: rgba(200, 150, 14, 0.18);
	--color-border: rgba(240, 237, 232, 0.08);
	--color-nav-bg: rgba(18, 18, 20, 0.97);

	--font-display: 'Cormorant Garamond', 'Noto Serif JP', serif;
	--font-body: 'Noto Sans JP', sans-serif;
	--font-serif-jp: 'Noto Serif JP', serif;

	--header-h: 68px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--transition: 0.38s var(--ease);
	--max-w: 1080px;
	--pad-x: 48px;
}

/* ===================================================
   RESET & BASE
   =================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 18px;
	scroll-behavior: smooth;
}

body {
	background-color: var(--color-bg);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-weight: 300;
	line-height: 1.8;
	letter-spacing: 0.025em;
	-webkit-font-smoothing: antialiased;
	animation: pageFade 0.7s var(--ease) both;
}

body {
	overflow-x: hidden;
}

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

#bg-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
}

/* ===================================================
   KEYFRAMES
   =================================================== */
@keyframes pageFade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal-stagger>* {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-stagger.is-visible>*:nth-child(1) {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0s;
}

.reveal-stagger.is-visible>*:nth-child(2) {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.12s;
}

.reveal-stagger.is-visible>*:nth-child(3) {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.24s;
}

/* ===================================================
   HEADER
   =================================================== */
.header,
header {
	position: relative;
	width: 100%;
	z-index: 100;
	display: flex;
	align-items: center;
	padding: 0 var(--pad-x);
	height: var(--header-h);
	background-color: rgba(14, 14, 16, 0.97);
	border-bottom: 1px solid var(--color-border);
}

.header h1,
header h1 {
	font-family: var(--font-body);
	font-size: clamp(0.78rem, 2vw, 0.95rem);
	font-weight: 300;
	letter-spacing: 0.18em;
	color: var(--color-muted);
	text-transform: uppercase;
	max-width: calc(100% - 120px);
}

header:not(.header) h1 {
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 300;
	letter-spacing: 0.06em;
	color: var(--color-ink);
	text-transform: none;
	max-width: 100%;
}

/* ===================================================
   DISCOUNT BUTTON
   =================================================== */
.discount-btn {
	position: fixed;
	top: calc((var(--header-h) - 44px) / 2);
	right: 124px;
	z-index: 2000;
	width: 44px;
	height: 44px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	color: var(--color-sub);
	text-decoration: none;
	transition: background-color var(--transition), color var(--transition);
}

.discount-btn:hover {
	background-color: rgba(240, 237, 232, 0.07);
	color: var(--color-ink);
}

.discount-btn svg {
	width: 20px;
	height: 20px;
}

.discount-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--color-accent);
	border: 1px solid var(--color-bg);
	display: none;
}

.discount-badge.is-active {
	display: block;
}

/* ===================================================
   INSTAGRAM LINK
   =================================================== */
.insta-link {
	position: fixed;
	top: calc((var(--header-h) - 44px) / 2);
	right: 76px;
	z-index: 2000;
	width: 44px;
	height: 44px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	color: var(--color-sub);
	text-decoration: none;
	transition: background-color var(--transition), color var(--transition);
}

.insta-link:hover {
	background-color: rgba(240, 237, 232, 0.07);
	color: var(--color-ink);
}

.insta-link svg {
	width: 20px;
	height: 20px;
}

/* ===================================================
   HAMBURGER
   =================================================== */
.hamburger {
	position: fixed;
	top: calc((var(--header-h) - 44px) / 2);
	right: 20px;
	z-index: 2000;
	width: 44px;
	height: 44px;
	background: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background-color var(--transition);
}

.hamburger:hover {
	background-color: rgba(240, 237, 232, 0.07);
}

.hamburger::before {
	display: none;
}

.hamburger span {
	display: block;
	position: absolute;
	left: 50%;
	width: 20px;
	height: 1px;
	background-color: var(--color-sub);
	border-radius: 1px;
	transform: translateX(-50%);
	transition: transform var(--transition), opacity var(--transition), top var(--transition);
}

.hamburger span:nth-child(1) {
	top: calc(50% - 6px);
}

.hamburger span:nth-child(2) {
	top: calc(50% - 0.5px);
}

.hamburger span:nth-child(3) {
	top: calc(50% + 5px);
}

.hamburger.is-active span:nth-child(1) {
	top: calc(50% - 0.5px);
	transform: translateX(-50%) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
	opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
	top: calc(50% - 0.5px);
	transform: translateX(-50%) rotate(-45deg);
}

/* ===================================================
   GLOBAL NAV
   =================================================== */
.global-nav {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 1500;
	width: min(320px, 45vw);
	height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 80px 52px;
	background-color: var(--color-nav-bg);
	border-left: 1px solid var(--color-border);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform var(--transition), visibility var(--transition);
}

.global-nav.is-active {
	transform: translateX(0);
	visibility: visible;
}

.global-nav ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	width: 100%;
}

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

.global-nav li:first-child {
	border-top: 1px solid var(--color-border);
}

.global-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 0;
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 300;
	letter-spacing: 0.06em;
	color: var(--color-sub);
	transition: color var(--transition), padding-left var(--transition);
}

.global-nav a::after {
	content: '→';
	flex-shrink: 0;
	font-size: 1rem;
	color: var(--color-muted);
	transition: transform var(--transition), color var(--transition);
}

.global-nav a:hover {
	color: var(--color-ink);
	padding-left: 10px;
}

.global-nav a:hover::after {
	transform: translateX(5px);
	color: var(--color-accent);
}

/* ===================================================
   MAIN
   =================================================== */
main {
	padding-top: 0;
}

.hero-wrapper {
	position: relative;
	overflow: hidden;
}

/* ===================================================
   HERO SHAPE
   =================================================== */
.hero-shape {
	position: absolute;
	top: 0;
	right: 0;
	width: 52vw;
	max-width: 760px;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	opacity: 0;
	transform: translateX(80px);
	animation: shapeSlideIn 1.2s 0.2s var(--ease) forwards;
}

.hero-shape svg {
	width: 100%;
	height: 100%;
}

@keyframes shapeSlideIn {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.hero-title {
	position: relative;
	z-index: 1;
}

/* ===================================================
   HERO TITLE
   =================================================== */
.hero-title {
	padding: 120px var(--pad-x) 100px;
	max-width: var(--max-w);
	margin: 0 auto;
}

.hero-title h2 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.hero-title .title-schrodinger {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(3.5rem, 12vw, 8rem);
	font-weight: 300;
	letter-spacing: -0.01em;
	line-height: 1.0;
	color: var(--color-ink);
	opacity: 0;
	transform: translateY(48px);
	animation: slideUp 1.0s 0.1s var(--ease) forwards;
}

.hero-title .title-no {
	font-family: 'Noto Serif JP', serif;
	font-size: clamp(0.85rem, 2vw, 1.1rem);
	font-weight: 300;
	letter-spacing: 0.5em;
	line-height: 2.4;
	color: var(--color-muted);
	-webkit-text-fill-color: var(--color-muted);
	opacity: 0;
	transform: translateY(32px);
	animation: slideUp 1.0s 0.25s var(--ease) forwards;
}

/* ベビーカステラ */
.hero-title .title-baby {
	font-family: 'Noto Serif JP', serif;
	font-size: clamp(2rem, 6.5vw, 4.8rem);
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.2;
	color: var(--color-accent);
	opacity: 0;
	transform: translateY(40px);
	animation: slideUp 1.0s 0.4s var(--ease) forwards;
}

.hero-title h3 {
	font-family: var(--font-body);
	font-size: clamp(0.72rem, 1.8vw, 0.85rem);
	font-weight: 300;
	letter-spacing: 0.30em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-top: 40px;
	opacity: 0;
	transform: translateY(24px);
	animation: slideUp 1.0s 0.55s var(--ease) forwards;
}

.hero-title::after {
	content: '';
	display: block;
	width: 48px;
	height: 1px;
	background: var(--color-accent);
	margin-top: 48px;
	opacity: 0;
	animation: fadeIn 1s 0.7s var(--ease) forwards;
}

@keyframes slideUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	to {
		opacity: 0.6;
	}
}

/* ===================================================
   CAROUSEL
   =================================================== */
.carousel-wrapper {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 var(--pad-x) 100px;
}

.embla {
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.embla__container {
	display: flex;
}

.embla__slide {
	flex: 0 0 100%;
	min-width: 0;
}

.embla__slide img {
	width: 100%;
	height: auto;
	display: block;
}

/* ===================================================
   SECTIONS  — 左寄せ
   =================================================== */
.section {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 96px var(--pad-x);
	border-top: 1px solid var(--color-border);
}

.section:last-child {
	padding-bottom: 160px;
}

.section h2,
.section h1 {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 6vw, 4rem);
	font-weight: 300;
	letter-spacing: 0.04em;
	color: var(--color-ink);
	line-height: 1.0;
}

.section h2::after,
.section h1::after {
	content: '';
	display: block;
	width: 20px;
	height: 1px;
	background: var(--color-accent);
	margin-top: 24px;
	margin-bottom: 36px;
	opacity: 0.7;
}

.section p {
	font-family: var(--font-serif-jp);
	font-size: 1rem;
	font-weight: 300;
	color: var(--color-sub);
	line-height: 2.2;
	max-width: 520px;
}

/* ===================================================
   MORE BUTTON
   =================================================== */
.button-wrapper {
	margin-top: 44px;
}

.button-wrapper-flyer {
	margin-bottom: 44px;
}

.button-more {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	font-family: var(--font-body);
	font-size: 0.82rem;
	font-weight: 300;
	letter-spacing: 0.20em;
	text-transform: uppercase;
	color: var(--color-sub);
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 6px;
	transition: color var(--transition), border-color var(--transition), gap var(--transition);
}

.button-more::after {
	content: '→';
	font-size: 0.9rem;
	transition: transform var(--transition);
}

.button-more:hover {
	color: var(--color-accent);
	border-color: var(--color-accent);
	gap: 22px;
}

.button-more:hover::after {
	transform: translateX(6px);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 640px) {
	:root {
		--pad-x: 24px;
		--header-h: 60px;
	}

	.hero-title {
		padding: 80px var(--pad-x) 72px;
	}

	.hero-title .title-schrodinger {
		font-size: clamp(3rem, 14vw, 4.5rem);
	}

	.hero-title .title-baby {
		font-size: clamp(1.6rem, 9vw, 2.8rem);
	}

	.carousel-wrapper {
		padding: 0 var(--pad-x) 72px;
	}

	.section {
		padding: 72px var(--pad-x);
	}

	.global-nav {
		width: min(320px, 75vw);
		padding: 80px 28px;
	}

}

/* ===================================================
   SCROLLBAR
   =================================================== */
::-webkit-scrollbar {
	width: 3px;
}

::-webkit-scrollbar-track {
	background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
	background: #333;
	border-radius: 3px;
}

/* ===================================================
   Menu
   =================================================== */
.menu-container {
	margin-top: 2rem;
}

.menu-box {
    margin: 0rem;
    padding: 1.2rem 1.2rem;
    background-color: var(--color-surface); 
    border-left: 2px solid var(--color-accent); 
    max-width: 580px;
}

.section .menu-price {
	font-size: 1.2rem;
	color: var(--color-sub);
	margin-bottom: 1.2rem;
	font-weight: 400;
}

.menu-items {
	list-style: none;
	padding: 0;
	margin-top: .8rem;
	margin-bottom: .8rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.menu-items li {
	font-family: var(--font-serif-jp);
	font-size: 1.2rem;
	color: var(--color-ink);
	position: relative;
}

.menu-items li.secret-flavor {
	color: var(--color-accent);
	font-weight: 600;
}

.menu-allergen {
	border-top: 1px solid var(--color-border);
	display: inline-block;
	padding-top: 0.5rem;
	margin-top: 2rem;
}

.menu-allergen small {
	font-size: 1.2rem;
	color: var(--color-muted);
}

/* ===================================================
   More Outline
   =================================================== */
.outline-content h3 {
	font-family: var(--font-display);
	font-size: 1.8rem;
	font-weight: 300;
	letter-spacing: 0.05em;
	color: var(--color-accent);
	margin-bottom: 1rem;
	line-height: 1.3;
}

.outline-content p {
	margin-bottom: 1.5rem;
}

.outline-content .margin-top-large {
	margin-top: 3.5rem;
}

/* ===================================================
   Place
   =================================================== */
.place-info {
    margin-top: 2rem;
}

.tent-location-box {
    margin: 2rem 0;
    padding: 1.2rem 1.5rem;
    background-color: var(--color-surface); 
    border-left: 2px solid var(--color-accent); 
    max-width: 520px;
}

.tent-location-box p {
    margin-bottom: 0;
}

.tent-location-box .small-text {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.map-container {
    margin-top: 3rem;
    max-width: 100%;
    line-height: 0;
    border-radius: 12px; /* 角を丸く */
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6); 
    border: 1px solid var(--color-border);
    transition: transform var(--transition);
}

.map-container:hover {
    transform: translateY(-4px); 
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 640px) {
    .tent-location-box {
        padding: 1rem;
    }
}

/* ===================================================
   Discount
   =================================================== */
.discount-content {
    margin-top: 2rem;
}

#discount .discount-desc {
    max-width: 640px;
    margin-bottom: 1rem;
}

.discount-now-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.4rem 1.8rem;
    border-left: 2px solid var(--color-border);
    background-color: var(--color-surface);
    max-width: 260px;
    margin-bottom: 2.4rem;
    transition: border-color 0.4s var(--ease);
}

.discount-now-card.is-active {
    border-left-color: var(--color-accent);
}

.discount-now-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.discount-now-value {
    font-family: var(--font-serif-jp);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    line-height: 1.1;
    transition: color 0.4s var(--ease);
}

.discount-now-value.is-active {
    color: var(--color-accent);
}

.discount-now-time {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--color-muted);
    letter-spacing: 0.08em;
}

.discount-table {
    width: 100%;
    max-width: 480px;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.discount-table th {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-muted);
    text-align: left;
    padding: 0 0 0.8rem;
    border-bottom: 1px solid var(--color-border);
}

.th-sub {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: none;
}

.discount-table td {
    font-family: var(--font-serif-jp);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-sub);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.3s var(--ease);
}

.discount-table td.discount-amount {
    font-weight: 400;
}

.discount-table tbody tr.is-active td {
    color: var(--color-accent);
}

.discount-table tbody tr.is-active td.discount-amount {
    font-weight: 600;
}

.discount-note {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--color-muted);
    letter-spacing: 0.04em;
    border-top: 1px solid var(--color-border);
    padding-top: 1.2rem;
    max-width: 480px;
}

.discount-note strong {
    color: var(--color-sub);
    font-weight: 400;
}

#discount .discount-desc strong {
    font-weight: 700;
}

@media (max-width: 640px) {
    .discount-btn {
        right: 124px;
    }

    .discount-now-card {
        max-width: 100%;
    }

    .discount-table {
        max-width: 100%;
    }
}