:root {
  --sky: oklch(18% 0.04 245);
  --sky-mid: oklch(26% 0.06 240);
  --sky-light: oklch(38% 0.07 235);
  --snow: oklch(96% 0.008 220);
  --snow-dim: oklch(80% 0.015 225);
  --accent-blue: oklch(68% 0.14 220);
  --accent-gold: oklch(80% 0.10 85);
  --glass-bg: oklch(95% 0.010 225 / 0.07);
  --glass-border: oklch(90% 0.015 225 / 0.18);
  --serif: 'Noto Serif SC', serif;
  --sans: 'Noto Sans SC', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--sky);
  color: var(--snow);
  font-family: var(--serif);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

/* ── Swipe container ── */
#swipe-container {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100svh;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#swipe-container::-webkit-scrollbar { display: none; }

/* ── Snow Canvas ── */
#snow-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* ── Sections ── */
section {
  min-width: 100vw;
  width: 100vw;
  height: 100svh;
  max-height: 100svh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px 60px;
  z-index: 2;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: none;
}

/* ── HERO ── */
#hero {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 80px;
  overflow-y: auto;
  overflow-x: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: url('pic/hero-bg.png') center center / cover no-repeat;
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(8% 0.03 240 / 0.82) 0%,
    oklch(8% 0.03 240 / 0.70) 50%,
    oklch(8% 0.03 240 / 0.55) 100%
  );
}

.mountain-wrap { display: none; }
.hero-sky-grad { display: none; }
.aurora { display: none; }
.stars { display: none; }

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 420px;
}

.hero-mantras {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-mantra {
  background: oklch(95% 0.010 225 / 0.07);
  border: 1px solid oklch(90% 0.015 225 / 0.14);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px 12px 0;
  overflow: hidden;
}

.hero-mantra-bar {
  width: 3px;
  align-self: stretch;
  border-radius: 0 2px 2px 0;
}

.hero-mantra-num {
  display: none;
}

.hero-mantra-text {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--snow);
  line-height: 1.5;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 1.2s 0.4s forwards;
}

.hero-title {
  font-size: clamp(38px, 11vw, 56px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--snow);
  opacity: 0;
  animation: fadeUp 1.2s 0.6s forwards;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-sub {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--snow-dim);
  letter-spacing: 0.12em;
  line-height: 2;
  opacity: 0;
  animation: fadeUp 1.2s 0.9s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 44px;
  right: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1.5s 2s forwards;
  z-index: 3;
}

.scroll-hint span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--snow-dim);
}

.scroll-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, var(--snow-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ── Glass Card ── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  padding: 28px 26px;
  width: 100%;
  max-width: 420px;
}

/* ── Section shared ── */
.section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: var(--snow);
}

/* ── IMPORTANT section ── */
#important {
  background: oklch(20% 0.04 244);
  position: relative;
}
#important::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('pic/important-bg.png') center center / cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}
#important > * { position: relative; z-index: 1; }

.important-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.imp-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}

.imp-item:hover, .imp-item:active {
  transform: scale(1.03);
  background: oklch(95% 0.01 225 / 0.12);
}

.imp-icon {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}

.imp-kanji {
  font-size: 28px;
  font-weight: 300;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.imp-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  color: var(--snow-dim);
  letter-spacing: 0.1em;
}

.imp-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.imp-wide .imp-kanji { margin-bottom: 0; font-size: 24px; }

/* ── IMPORTANT 2-col grid ── */
#important .vision-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#important .vision-card {
  padding: 14px 12px;
}

#important .vision-bar {
  min-height: 44px;
}

#important .vision-headline {
  font-size: 14px;
  margin-bottom: 6px;
}

#important .vision-detail {
  font-size: 11px;
  line-height: 1.65;
}

/* ── VISION section ── */
#vision {
  position: relative;
  background: oklch(16% 0.05 248);
  padding-top: 28px;
  padding-bottom: 36px;
  justify-content: flex-start;
}
#vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('pic/vision-bg.png') center center / cover no-repeat;
  opacity: 0.22;
  z-index: 0;
}
#vision > * { position: relative; z-index: 1; }

#vision .section-label { margin-bottom: 4px; }
#vision .section-title { margin-bottom: 14px; font-size: clamp(18px, 5vw, 24px); }
#vision .vision-cards  { gap: 8px; }
#vision .vision-card   { padding: 14px 12px; }
#vision .vision-bar    { min-height: 40px; }
#vision .vision-headline { font-size: 14px; margin-bottom: 4px; }
#vision .vision-detail   { font-size: 11px; line-height: 1.65; }

.vision-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
}

.vision-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 22px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 16px;
  align-items: start;
  transition: transform 0.2s;
  cursor: pointer;
}

.vision-card:hover, .vision-card:active { transform: translateX(4px); }

.vision-bar {
  width: 3px;
  height: 100%;
  min-height: 60px;
  border-radius: 2px;
  background: var(--accent-gold);
  opacity: 0.7;
}

.vision-bar.blue { background: var(--accent-blue); }

.vision-year {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.vision-headline {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--snow);
  line-height: 1.5;
}

.vision-detail {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--snow-dim);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

/* ── MINDSET section ── */
#mindset {
  background: oklch(19% 0.05 246);
  position: relative;
}
#mindset::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('pic/important-bg.png') center 30% / cover no-repeat;
  opacity: 0.12;
  z-index: 0;
}
#mindset > * { position: relative; z-index: 1; }

.mindset-wrap {
  width: 100%;
  max-width: 420px;
}

.mantra {
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: padding-left 0.25s;
}

.mantra:last-child { border-bottom: none; }
.mantra:hover, .mantra:active { padding-left: 8px; }

.mantra-num {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.mantra-text {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--snow);
  line-height: 1.6;
}

.mantra-sub {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  color: var(--snow-dim);
  margin-top: 4px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s;
  opacity: 0;
  grid-column: 2;
}

.mantra.open .mantra-sub { max-height: 80px; opacity: 1; }

/* ── BREATHE section ── */
#breathe {
  position: relative;
  background: oklch(14% 0.05 248);
}
#breathe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('pic/breathe-bg.png') center center / cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}
#breathe > * { position: relative; z-index: 1; }

.breathe-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 420px;
}

.breathe-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1.5px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.breathe-inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(55% 0.12 220 / 0.25) 0%, oklch(40% 0.08 240 / 0.1) 100%);
  border: 1px solid oklch(68% 0.14 220 / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: transform 4s ease-in-out;
}

.breathe-inner.expand { transform: scale(1.25); }
.breathe-inner.contract { transform: scale(1); }

.breathe-cta {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--snow);
}

.breathe-hint {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--snow-dim);
  letter-spacing: 0.15em;
}

.breathe-label-area {
  text-align: center;
}

.breathe-phase {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--snow);
  margin-bottom: 8px;
  min-height: 32px;
}

.breathe-desc {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--snow-dim);
  letter-spacing: 0.1em;
  line-height: 1.9;
}

/* ── TODAY section ── */
#today {
  background: oklch(17% 0.05 247);
  position: relative;
}
#today::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('pic/vision-bg.png') center bottom / cover no-repeat;
  opacity: 0.20;
  z-index: 0;
}
#today > * { position: relative; z-index: 1; }

.today-quote {
  max-width: 420px;
  text-align: center;
}

.quote-mark {
  font-size: 60px;
  font-weight: 300;
  color: var(--accent-blue);
  opacity: 0.3;
  line-height: 0.6;
  margin-bottom: 24px;
  display: block;
}

.quote-text {
  font-size: clamp(17px, 5vw, 22px);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.1em;
  color: var(--snow);
  margin-bottom: 20px;
}

.quote-source {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  color: var(--accent-gold);
  letter-spacing: 0.25em;
}

.date-badge {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--snow-dim);
}

/* ── Nav dots ── */
.nav-dots {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 100;
}

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--snow-dim);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}

.nav-dot.active {
  opacity: 1;
  transform: scale(1.4);
  background: var(--accent-gold);
}

/* ── Tweaks panel ── */
#tweaks-panel {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: oklch(22% 0.04 244 / 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 20px 22px;
  backdrop-filter: blur(20px);
  width: calc(100% - 48px);
  max-width: 400px;
  font-family: var(--sans);
}

#tweaks-panel.visible { display: block; }

.tweaks-title {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.tweak-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.tweak-row:last-child { margin-bottom: 0; }

.tweak-lbl {
  font-size: 12px;
  color: var(--snow-dim);
  letter-spacing: 0.08em;
}

.tweak-row select, .tweak-row input[type=range] {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--snow);
  padding: 4px 8px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 12px;
  width: 140px;
}

.tweak-row input[type=range] {
  width: 120px;
  padding: 0;
  accent-color: var(--accent-gold);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.5s; }
