:root {
  color-scheme: light;
  --blue: #6090d8;
  --blue-soft: #a8c4f0;
  --blue-dark: #306090;
  --hair: #786048;
  --cream: #fff8f4;
  --peach: #fce8dc;
  --pink: #ff60b8;
  --pink-soft: #ffd6ee;
  --gold: #ffd36b;
  --ink: #2e3a54;
  --muted: #7080a0;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 12px 40px rgba(96, 144, 216, 0.14);
  --shadow-hover: 0 24px 56px rgba(96, 144, 216, 0.24);
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Gothic UI", "Meiryo", "Hiragino Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background: var(--cream);
}

/* ── Starry / dot background ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(160, 200, 255, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255, 192, 220, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 235, 180, 0.14) 0%, transparent 60%),
    var(--cream);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(96,144,216,0.18) 2px, transparent 2px),
    radial-gradient(circle, rgba(255,192,220,0.22) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255,211,107,0.20) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px, 80px 80px;
  background-position: 0 0, 20px 30px, 45px 15px;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin-top: 0; }

/* ════════════════════════════════
   HEADER
════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 52px);
  background: rgba(255, 248, 244, 0.86);
  backdrop-filter: blur(20px);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(120, 96, 72, 0.16);
  flex-shrink: 0;
}

.brand-text {
  color: var(--hair);
  font-family: "Kaisei Opti", serif;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-text small {
  font-size: 0.78em;
  font-weight: 500;
  opacity: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 900;
}

.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.7);
  transition: background 160ms ease, color 160ms ease;
}

.nav a:hover {
  background: rgba(96, 144, 216, 0.12);
  color: var(--blue);
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 72px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  width: min(1600px, 100%);
  margin-inline: auto;
}

/* floating background notes */
.hero-bg-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-note {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  border: 2.5px solid rgba(255, 255, 255, 0.8);
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(96, 144, 216, 0.1);
  animation: noteDrift 9s ease-in-out infinite;
}

.bg-note:nth-child(1) { top: 8%; left: 42%; animation-delay: 0s; }
.bg-note:nth-child(2) { top: 70%; left: 5%; color: var(--pink); animation-delay: -2s; }
.bg-note:nth-child(3) { top: 20%; right: 4%; color: var(--hair); animation-delay: -3.5s; }
.bg-note:nth-child(4) { bottom: 10%; right: 38%; color: var(--gold); animation-delay: -5.5s; }
.bg-note:nth-child(5) { top: 50%; left: 50%; animation-delay: -7s; }
.bg-note:nth-child(6) { bottom: 28%; left: 22%; color: var(--pink); animation-delay: -1.5s; }

/* hero character side */
.hero-visual {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 580px;
  border-radius: var(--radius-lg);
  overflow: visible;
  animation: riseUp 900ms 100ms cubic-bezier(0.2,0.9,0.2,1) both;
}

.visual-blob {
  position: absolute;
  inset: 10% 5%;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 55%;
  background: linear-gradient(140deg, rgba(160,200,255,0.38) 0%, rgba(255,210,238,0.32) 60%, rgba(255,235,160,0.22) 100%);
  filter: blur(2px);
  animation: blobMorph 8s ease-in-out infinite;
}

.hero-character {
  position: relative;
  z-index: 2;
  width: min(80%, 440px);
  max-height: 720px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(38, 49, 79, 0.16));
  animation: charFloat 6s ease-in-out infinite;
}

.face-badge {
  position: absolute;
  z-index: 3;
  width: clamp(80px, 11vw, 130px);
  height: clamp(80px, 11vw, 130px);
  border: 5px solid #fff;
  border-radius: 28px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 16px 36px rgba(38, 49, 79, 0.16);
  animation: badgeBob 5s ease-in-out infinite;
}

.badge-one { top: 24px; left: 18px; }
.badge-two { right: 18px; bottom: 24px; animation-delay: -2.4s; }

/* hero copy side */
.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(0px, 4vw, 56px);
}

.hero-logo {
  display: block;
  width: min(400px, 88vw);
  margin: 0 0 14px -6px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(96,144,216,0.16));
  animation:
    logoPop 800ms cubic-bezier(0.2,0.9,0.2,1.1) both,
    logoFloat 6.4s 800ms ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%       { transform: translateY(-12px) rotate(0.8deg); }
}

.hero-reading {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.76);
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
  letter-spacing: 0.08em;
}

.hero-tag {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-tag span { color: var(--pink); }

.lead {
  margin: 0 0 28px;
  color: #445068;
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  font-weight: 800;
  line-height: 2;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.96rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 100%);
  box-shadow: 0 16px 36px rgba(96,144,216,0.32);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(96,144,216,0.42);
}

.btn-secondary {
  color: var(--blue-dark);
  background: rgba(255,255,255,0.82);
  border: 2px solid rgba(96,144,216,0.2);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.96);
}

/* ════════════════════════════════
   SHARED SECTION STYLES
════════════════════════════════ */
.section {
  padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 72px);
}

.section-inner {
  width: min(1100px, 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  color: var(--hair);
  font-family: "Kaisei Opti", serif;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.2;
}

/* ════════════════════════════════
   ABOUT
════════════════════════════════ */
.about {
  background: rgba(255,255,255,0.38);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

h3 {
  margin-bottom: 12px;
  color: var(--hair);
  font-size: 1.18rem;
  font-weight: 900;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.96rem;
  font-weight: 700;
}

/* keywords */
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kw {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.82);
  border: 2px solid rgba(96,144,216,0.18);
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(96,144,216,0.1);
  transition: transform 160ms ease, background 160ms ease;
}

.kw:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(160,200,255,0.18);
}

/* ════════════════════════════════
   WATCH
════════════════════════════════ */
.watch {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5) 30%, rgba(255,255,255,0.5) 70%, transparent);
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.feature-card {
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.feature-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  cursor: pointer;
}

.embed-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 200ms ease;
}

.feature-embed:hover .embed-thumb {
  opacity: 0.85;
}

.embed-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease;
}

.embed-play:hover {
  transform: scale(1.1);
}

.embed-play svg {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.feature-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.feature-card-body {
  padding: 22px 24px 26px;
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-card-body h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.feature-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.85;
}

.video-list {
  display: grid;
  gap: 14px;
}

.video-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 2.5px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.video-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.video-row.is-active {
  border-color: rgba(96, 144, 216, 0.5);
  background: rgba(96, 144, 216, 0.08);
  box-shadow: var(--shadow-hover);
}

.video-row img {
  display: block;
  width: 110px;
  aspect-ratio: 16/9;
  border-radius: 14px;
  object-fit: cover;
}

.video-row strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.video-row span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ════════════════════════════════
   BANNER
════════════════════════════════ */
.banner-wrap {
  padding: 0 clamp(16px, 5vw, 72px);
  margin-block: -8px;
}

.banner-img {
  display: block;
  width: min(1100px, 100%);
  margin-inline: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ════════════════════════════════
   PROFILE SECTION
════════════════════════════════ */
.profile-section {
  background: linear-gradient(135deg, rgba(160,200,255,0.12) 0%, rgba(255,192,220,0.1) 100%);
}

.profile-inner {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.profile-fig {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  place-items: end center;
  min-height: 340px;
  padding: 16px 16px 0;
}

.profile-fig img {
  width: min(100%, 280px);
  max-height: 380px;
  object-fit: contain;
  object-position: top center;
  margin-bottom: -18px;
  filter: drop-shadow(0 16px 22px rgba(38,49,79,0.14));
}

.profile-text .eyebrow {
  margin-bottom: 6px;
}

.profile-text h2 {
  margin-bottom: 20px;
}

.profile-text p {
  color: #445068;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 2;
  margin-bottom: 1em;
}

.profile-text p:last-child {
  margin-bottom: 0;
}

/* ════════════════════════════════
   LINKS
════════════════════════════════ */
.links {
  background: linear-gradient(180deg, rgba(96,144,216,0.1) 0%, rgba(255,192,220,0.14) 100%);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 120px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 2.5px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.lc-platform {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lc-name {
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 900;
}

.lc-arrow {
  color: var(--blue-soft);
  font-size: 1.1rem;
  font-weight: 900;
  align-self: flex-end;
}

.link-yt {
  background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 100%);
  border: none;
  color: #fff;
}

.link-yt .lc-platform { color: rgba(255,255,255,0.78); }
.link-yt .lc-name { color: #fff; }
.link-yt .lc-arrow { color: rgba(255,255,255,0.7); }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer {
  padding: 28px clamp(16px, 5vw, 72px);
  background: var(--hair);
  color: rgba(255,255,255,0.9);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1100px, 100%);
  margin-inline: auto;
}

.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  opacity: 0.9;
}

.footer p {
  margin: 0;
  font-weight: 800;
  font-size: 0.96rem;
}

/* ════════════════════════════════
   SCROLL REVEAL
════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2,0.9,0.2,1);
}

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

/* ════════════════════════════════
   NOTE SPARK
════════════════════════════════ */
.note-spark {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  color: var(--pink);
  font-weight: 900;
  text-shadow: 0 2px 0 #fff;
  animation: sparkPop 780ms ease-out forwards;
}

/* ════════════════════════════════
   KEYFRAMES
════════════════════════════════ */
@keyframes logoPop {
  from { opacity: 0; transform: translateY(16px) scale(0.88) rotate(-2deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes riseUp {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@keyframes charFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%       { transform: translateY(-14px) rotate(0.5deg); }
}

@keyframes badgeBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-10px) rotate(3deg); }
}

@keyframes noteDrift {
  0%, 100% { transform: translate3d(0,0,0) rotate(-8deg); }
  50%       { transform: translate3d(14px,-26px,0) rotate(10deg); }
}

@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 55% 45% 55%; }
  33%       { border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
  66%       { border-radius: 55% 45% 60% 40% / 45% 60% 40% 60%; }
}

@keyframes sparkPop {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(0.4) rotate(-20deg); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-130%) scale(1.4) rotate(22deg); }
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 520px;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .watch-layout {
    grid-template-columns: 1fr;
  }

  .profile-inner {
    grid-template-columns: 1fr;
  }

  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-visual { min-height: 440px; }

  .link-grid { grid-template-columns: 1fr; }

  .btn-primary,
  .btn-secondary { width: 100%; }

  .video-row { grid-template-columns: 1fr; }
  .video-row img { width: 100%; }
}

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