/* CodePlay - MEGALOS_Kids系
   白ベース × ビビッド多色 × 幾何学パターン × 大英字タイトル */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --ink: #1e2a3a;
  --ink-soft: #4a5568;
  --muted: #8a94a3;
  --line: #e8edf2;

  --blue: #0099d8;          /* メイン: スポーツブルー */
  --blue-deep: #0077b6;
  --pink: #e91e63;          /* CTA: マゼンタ */
  --pink-light: #ec407a;
  --yellow: #ffd600;        /* 装飾: ビビッド黄 */
  --teal: #26c6da;          /* 装飾: ターコイズ */
  --green: #66bb6a;         /* 装飾: グリーン */
  --orange: #ff7043;        /* 装飾: オレンジ */
  --black: #15202b;

  --shadow: 0 8px 28px rgba(30,42,58,0.10);
  --shadow-md: 0 14px 40px rgba(30,42,58,0.16);
  --radius-card: 8px;
  --radius-pill: 99px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== Scroll progress bar ========== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--yellow));
  z-index: 100;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ========== Scroll reveal animation (smoother) ========== */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* ========== Page entrance (fade-in from bottom) ========== */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
body.page-loaded .site-header,
body.page-loaded .hero,
body.page-loaded .selector-card {
  animation: page-enter 0.85s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
body.page-loaded .hero { animation-delay: 0.1s; }
body.page-loaded .selector-card { animation-delay: 0.25s; }

/* ========== Float animations for geo decorations ========== */
@keyframes float-up { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes float-rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes float-bounce { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(5deg); } }
@keyframes float-drift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(8px, -8px) rotate(5deg); } 66% { transform: translate(-6px, -4px) rotate(-3deg); } }
.geo.anim-float { animation: float-up 5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.geo.anim-spin { animation: float-rotate 14s linear infinite; }
.geo.anim-bounce { animation: float-bounce 4s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.geo.anim-drift { animation: float-drift 7s cubic-bezier(0.45, 0, 0.55, 1) infinite; }

/* ========== Tap feedback ========== */
@media (hover: none) {
  button:active, .selector-opt:active, .banner:active, .inst-pill:active {
    transform: scale(0.97);
    transition: transform 0.1s;
  }
}
.serif { font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; }
.italic-en { font-family: "Caveat", "Permanent Marker", cursive; font-style: italic; font-weight: 700; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ========== HEADER ========== */
.site-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.scrolled { box-shadow: 0 4px 14px rgba(30,42,58,0.08); }
@media (min-width: 700px) {
  .site-header { padding: 18px 32px; }
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo-mark {
  background: var(--blue);
  color: #fff;
  width: 44px; height: 36px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.site-logo-mark-svg {
  width: 40px; height: 40px;
  object-fit: contain;
  display: block;
}
@media (min-width: 700px) {
  .site-logo-mark-svg { width: 56px; height: 56px; }
}
.site-logo-name { font-size: 16px; }
.site-logo-sub { font-size: 10px; }
@media (min-width: 700px) {
  .site-logo-name { font-size: 18px; }
  .site-logo-sub { font-size: 11px; }
}
.menu-btn {
  width: 48px; height: 48px;
}
@media (min-width: 700px) {
  .menu-btn { width: 56px; height: 56px; }
}
.site-logo-name {
  font-family: 'Mochiy Pop One', 'M PLUS Rounded 1c', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.site-logo-name .pop { color: var(--ink); }
/* ロゴ文字の脇に小ドット飾り */
.site-logo-name::before {
  content: '';
  position: absolute;
  top: 4px; left: -4px;
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}
.site-logo-name::after {
  content: '';
  position: absolute;
  bottom: 6px; right: -8px;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.site-logo-sub {
  font-family: 'Mochiy Pop One', sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0.25em;
}
.site-logo-block { display: flex; flex-direction: column; line-height: 1.1; gap: 2px; }
@media (min-width: 700px) {
  .site-logo-name { font-size: 26px; }
  .site-logo-sub { font-size: 11px; }
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-btn {
  width: 56px; height: 56px;
  background: var(--black);
  color: #fff;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.menu-btn span {
  width: 22px; height: 2px;
  background: #fff;
  display: block;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ========== MOBILE NAV ========== */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 280px; max-width: 80vw;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0,0,0,0.18);
  z-index: 60;
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21,32,43,0.6);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-nav-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.mobile-nav-link small {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  font-weight: 700;
}
.mobile-nav-cta {
  margin-top: 24px;
  text-align: center;
}
.mobile-nav-cta .cta-pink { width: 100%; justify-content: center; }

/* ========== HERO (モバイルファースト) ========== */
.hero {
  position: relative;
  min-height: 380px;
  background: #fff;
  overflow: hidden;
}
@media (min-width: 700px) { .hero { min-height: 480px; } }
@media (min-width: 1000px) { .hero { min-height: 540px; } }

.hero-photo-wrap {
  display: grid;
  grid-template-columns: 1fr;
  height: 380px;
  position: relative;
}
@media (min-width: 700px) {
  .hero-photo-wrap { height: 480px; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .hero-photo-wrap { height: 540px; grid-template-columns: 1fr 1fr 1fr; }
}

/* === Single hero stage (新仕様) === */
.hero-stage {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  isolation: isolate;
  background: #1a1a1a;
}
@media (min-width: 700px) { .hero-stage { height: 520px; } }
@media (min-width: 1000px) { .hero-stage { height: 600px; } }

.hero-stage .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-stage .hero-color-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: linear-gradient(135deg, #4dd0e1 0%, #ec407a 50%, #ff7043 100%);
}
.hero-stage .hero-darken {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.35) 100%);
}
.hero-stage .geo { z-index: 3; }
.hero-stage .hero-text-overlay { z-index: 4; }

/* Hero: hide decorations that would collide with the centered text band on
   smaller viewports. Keep only the corner pieces so the layout stays clean
   regardless of browser size. */
.hero-stage .hero-dots { width: 90px; height: 90px; }
@media (max-width: 899px) {
  .hero-stage .geo-tri.teal-up,
  .hero-stage .geo-tri.pink-down,
  .hero-stage .geo-tri.green-up,
  .hero-stage .geo-tri.black-up { display: none; }
  .hero-stage .hero-dots { width: 64px; height: 64px; }
}
@media (max-width: 480px) {
  .hero-stage .geo-stripes-h { transform: scale(0.7); transform-origin: bottom left; }
  .hero-stage .geo-stripes-blue { transform: scale(0.7); transform-origin: bottom right; }
  .hero-stage .hero-dots { width: 52px; height: 52px; }
}
.hero-slot {
  position: relative;
  overflow: hidden;
  background: #1a1a1a; /* 動画読込中のフォールバック */
  isolation: isolate; /* mix-blend-modeをスロット内に閉じ込める */
}
/* 動画 (背面) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* カラーオーバーレイ (動画にタイントを乗せる) */
.hero-color-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-slot:nth-child(1) .hero-color-overlay {
  background: linear-gradient(135deg, #4dd0e1, #0099d8);
}
.hero-slot:nth-child(2) {
  display: none;
}
.hero-slot:nth-child(2) .hero-color-overlay {
  background: linear-gradient(135deg, #ec407a, #d81b60);
}
.hero-slot:nth-child(3) {
  display: none;
}
.hero-slot:nth-child(3) .hero-color-overlay {
  background: linear-gradient(135deg, #ff7043, #e91e63);
}
@media (min-width: 700px) {
  .hero-slot:nth-child(2) { display: block; }
}
@media (min-width: 1000px) {
  .hero-slot:nth-child(3) { display: block; }
}
/* 装飾(三角・ドット等)はオーバーレイより前面に */
.hero-slot .geo {
  z-index: 2;
}
.hero-slot img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}

.hero-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 5;
  pointer-events: none;
  padding: 0 16px;
}
@media (min-width: 700px) { .hero-text-overlay { padding: 0 32px; } }
/* 手書きキャッチコピー (殴り書き・太字ペン字) */
.hero-handwriting {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 12px;
  text-align: center;
  max-width: 100%;
}
.hw-line {
  font-family: 'Hachi Maru Pop', 'Yomogi', 'Yusei Magic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 400;
  color: #fff;
  font-size: clamp(15px, 4.4vw, 30px);
  line-height: 1.5;
  letter-spacing: 0;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.7),
    0 0 4px rgba(0,0,0,0.5),
    1px 1px 0 rgba(0,0,0,0.45);
  /* 太字感を出すために text-stroke を控えめに使う */
  -webkit-text-stroke: 0.6px #fff;
  position: relative;
  display: inline-block;
  transform: rotate(-1.5deg);
  white-space: nowrap;
}
.hw-line-1 { transform: rotate(-2deg); }
.hw-line-2 {
  transform: rotate(-0.5deg) translateX(8px);
  margin-top: 4px;
}
/* キーワードを黄色マーカー風にハイライト */
.hw-line em {
  font-style: normal;
  position: relative;
  display: inline-block;
  padding: 0 6px;
  z-index: 1;
  font-weight: 600;
}
.hw-line em::before {
  content: '';
  position: absolute;
  left: -2px; right: -2px; bottom: 2px;
  height: 45%;
  background: var(--yellow);
  z-index: -1;
  border-radius: 3px;
  transform: skew(-6deg) rotate(-0.5deg);
  opacity: 0.92;
}
@media (min-width: 700px) {
  .hero-handwriting { margin-bottom: 24px; gap: 8px; }
}

.hero-tagline-script {
  font-family: "Caveat", "Permanent Marker", cursive;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  font-style: italic;
  margin-bottom: -6px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 0 4px rgba(0,0,0,0.4);
  transform: rotate(-3deg);
  color: #fff;
}
.hero-tagline-main {
  font-family: "Caveat", cursive;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(56px, 12vw, 120px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 18px rgba(0,0,0,0.6), 0 0 8px rgba(0,0,0,0.4);
  transform: rotate(-3deg);
  padding: 0 16px;
  color: #fff;
}
.hero-jp-sub {
  font-family: 'Mochiy Pop One', "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 2.6vw, 16px);
  margin-top: 16px;
  letter-spacing: 0.15em;
  background: var(--black);
  padding: 10px 18px;
  border-radius: 0;
  font-style: normal;
  text-shadow: none;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 rgba(255,255,255,0.4);
}

/* ========== Geometric SVG decorations (overlay on hero) ========== */
.geo {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.geo-tri {
  width: 0; height: 0;
}
.geo-tri.yellow-up { border-left:18px solid transparent; border-right:18px solid transparent; border-bottom:30px solid var(--yellow); }
.geo-tri.teal-up { border-left:14px solid transparent; border-right:14px solid transparent; border-bottom:24px solid var(--teal); }
.geo-tri.pink-down { border-left:14px solid transparent; border-right:14px solid transparent; border-top:24px solid var(--pink); }
.geo-tri.green-up { border-left:12px solid transparent; border-right:12px solid transparent; border-bottom:20px solid var(--green); }
.geo-tri.black-up { border-left:14px solid transparent; border-right:14px solid transparent; border-bottom:24px solid var(--black); }
.geo-tri.orange-up { border-left:14px solid transparent; border-right:14px solid transparent; border-bottom:24px solid var(--orange); }

.geo-stripes-h {
  width: 80px; height: 60px;
  background: repeating-linear-gradient(0deg, var(--pink) 0 6px, transparent 6px 12px);
}
.geo-stripes-yellow {
  width: 60px; height: 80px;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 5px, transparent 5px 12px);
}
.geo-stripes-teal {
  width: 70px; height: 70px;
  background: repeating-linear-gradient(135deg, var(--teal) 0 4px, transparent 4px 10px);
}
.geo-stripes-blue {
  width: 80px; height: 60px;
  background: repeating-linear-gradient(0deg, var(--blue) 0 4px, transparent 4px 10px);
}

.geo-dots {
  width: 110px; height: 110px;
  background: radial-gradient(circle, var(--yellow) 2.5px, transparent 3px) 0 0/14px 14px;
}
.geo-dots.teal {
  background: radial-gradient(circle, var(--teal) 2.5px, transparent 3px) 0 0/14px 14px;
}
.geo-dots.pink {
  background: radial-gradient(circle, var(--pink) 2.5px, transparent 3px) 0 0/14px 14px;
}

.geo-circle { border-radius: 50%; }
.geo-circle.black { width: 18px; height: 18px; background: var(--black); }
.geo-circle.pink { width: 14px; height: 14px; background: var(--pink); }

/* ========== SEARCH / SELECTOR CARD (under hero) ========== */
.selector-card {
  max-width: 760px;
  margin: -40px 16px 40px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 20px 18px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 5;
}
@media (min-width: 700px) {
  .selector-card {
    margin: -60px auto 60px;
    padding: 28px;
  }
}
.selector-bullets {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.selector-bullets .b {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d0d6dc;
}
.selector-bullets .b.active { background: var(--blue); }
.selector-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.selector-opt {
  background: #fff;
  border: 2.5px solid var(--black);
  padding: 14px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
  font-family: 'Mochiy Pop One', 'M PLUS Rounded 1c', sans-serif;
  text-align: left;
  text-decoration: none;
  width: 100%;
  min-width: 0;
}
.selector-opt:hover {
  background: var(--black);
  color: #fff;
}
.selector-opt:hover .icon-wrap {
  background: var(--yellow);
  color: var(--black);
}
.selector-opt .icon-wrap {
  background: var(--blue);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
@media (min-width: 700px) {
  .selector-opt { font-size: 15px; padding: 16px 18px; }
}

.selector-search-btn {
  width: 100%;
  background: var(--black);
  color: #fff;
  padding: 16px;
  border-radius: 6px;
  border: 2.5px solid var(--black);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  font-family: 'Mochiy Pop One', 'M PLUS Rounded 1c', sans-serif;
}
.selector-search-btn:hover {
  background: var(--yellow);
  color: var(--black);
}
@media (min-width: 700px) {
  .selector-search-btn { padding: 18px; font-size: 16px; }
}

/* ========== BANNER CARDS (level / instruments etc.) ========== */
.banners {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 700px) { .banners { padding: 0 24px 40px; gap: 16px; } }

/* ========== CONTENT SLIDER ========== */
.content-slider {
  max-width: 1240px;
  margin: 60px auto 40px;
  padding: 0 16px;
  position: relative;
}
@media (min-width: 700px) { .content-slider { padding: 0 24px; margin: 80px auto 60px; } }

.slider-eyebrow {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--pink);
  font-weight: 800;
  margin-bottom: 8px;
}
.slider-title {
  text-align: center;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
  font-family: 'Mochiy Pop One', 'M PLUS Rounded 1c', sans-serif;
  font-weight: 400;
}

.slider-stage {
  position: relative;
  overflow: hidden;
  border: 2.5px solid var(--black);
  border-radius: 14px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--black);
}

.slider-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--slide-bg, #f5f5f5);
  position: relative;
  min-height: 160px;
  text-decoration: none;
  color: var(--ink);
}
@media (min-width: 700px) {
  .slide {
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    padding: 32px 40px;
    min-height: 240px;
  }
}

.slide-shape {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-shape svg {
  width: 90px; height: 90px;
}
@media (min-width: 700px) {
  .slide-shape svg { width: 200px; height: 200px; }
}
.slide-shape::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, var(--slide-accent) 1.5px, transparent 2px) 0 0/14px 14px;
  opacity: 0.18;
  z-index: 0;
}
.slide-shape svg { position: relative; z-index: 1; }

.slide-body { display: flex; flex-direction: column; gap: 4px; }
.slide-tag {
  display: inline-block;
  width: fit-content;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.slide-title-en {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: clamp(18px, 3vw, 30px);
  line-height: 1.15;
  color: var(--black);
}
.slide-title-jp {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 2px;
}
@media (min-width: 700px) { .slide-title-jp { font-size: 16px; } }
.slide-desc {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.7;
  display: none;
}
@media (min-width: 700px) {
  .slide-desc { display: block; font-size: 14px; }
}
.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}
@media (min-width: 700px) { .slide-cta { margin-top: 14px; font-size: 14px; } }

/* Slider nav buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: #fff;
  border: 2.5px solid var(--black);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  z-index: 10;
  transition: all 0.15s;
  box-shadow: 3px 3px 0 var(--black);
}
@media (min-width: 700px) {
  .slider-nav { display: flex; width: 48px; height: 48px; }
}
.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }
.slider-nav:hover {
  background: var(--yellow);
  transform: translateY(-50%) translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--black);
}

/* Slider dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d0d6dc;
  border: 2px solid var(--black);
  transition: all 0.2s;
  padding: 0;
}
.slider-dot.active {
  background: var(--ink);
  width: 28px;
  border-radius: 99px;
}

.banner {
  display: grid;
  grid-template-columns: 96px 1fr;
  background: #fff;
  border: 2.5px solid var(--black);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-height: 0;
  box-shadow: 4px 4px 0 var(--black);
  will-change: transform;
}
@media (min-width: 700px) {
  .banner {
    grid-template-columns: 1fr 1.2fr;
    min-height: 160px;
    box-shadow: 6px 6px 0 var(--black);
  }
}
@media (hover: hover) {
  .banner:hover {
    transform: translate(-2px, -3px);
    box-shadow: 8px 8px 0 var(--black);
  }
  .banner:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--black);
    transition-duration: 0.1s;
  }
  /* バナー hover 時に画像をゆっくりズーム */
  .banner:hover .banner-photo img {
    transform: scale(1.08);
  }
  .banner:hover .banner-photo .icon-big svg {
    transform: scale(1.1) rotate(-4deg);
  }
}
.banner-photo img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.banner-photo .icon-big svg {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.banner-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: auto;
  border-right: 2.5px solid var(--black);
  isolation: isolate;
}
@media (min-width: 700px) {
  .banner-photo { aspect-ratio: auto; border-right: 2.5px solid var(--black); }
}
/* 画像 (背面) */
.banner-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* カラーオーバーレイ (画像の上、半透明で色味を載せる) */
.banner-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
/* HOW IT WORKS: 元のパステル色を半透明で乗せる */
#how .banner:nth-of-type(1) .banner-photo::before { background: rgba(248, 187, 208, 0.62); }   /* ピンク */
#how .banner:nth-of-type(2) .banner-photo::before { background: rgba(197, 225, 165, 0.62); }   /* グリーン */
#how .banner:nth-of-type(3) .banner-photo::before { background: rgba(255, 204, 188, 0.62); }   /* ピーチ */
#how .banner:nth-of-type(4) .banner-photo::before { background: rgba(179, 157, 219, 0.62); }   /* ラベンダー */
/* LEVEL ROAD: 6バナーごとに違う色 */
#song-road .banner:nth-of-type(1) .banner-photo::before { background: rgba(179, 229, 252, 0.55); }
#song-road .banner:nth-of-type(2) .banner-photo::before { background: rgba(255, 224, 130, 0.55); }
#song-road .banner:nth-of-type(3) .banner-photo::before { background: rgba(248, 187, 208, 0.55); }
#song-road .banner:nth-of-type(4) .banner-photo::before { background: rgba(197, 225, 165, 0.55); }
#song-road .banner:nth-of-type(5) .banner-photo::before { background: rgba(255, 204, 188, 0.55); }
#song-road .banner:nth-of-type(6) .banner-photo::before { background: rgba(179, 157, 219, 0.55); }

/* 画像が無い時のフォールバック背景色 */
.banner-photo:not(:has(img)) {
  background: linear-gradient(135deg, #d6f1f4, #fff);
}
/* SVGアイコンは画像/オーバーレイより前面、中央配置 */
.banner-photo .icon-big {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.banner-photo .icon-big svg {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}
.banner-photo .icon-big svg {
  width: 44px;
  height: 44px;
  color: var(--blue);
  opacity: 0.95;
}
@media (min-width: 700px) {
  .banner-photo .icon-big svg { width: 64px; height: 64px; }
}

.banner:nth-child(1) .banner-photo { background: linear-gradient(135deg, #b3e5fc, #e1f5fe); }
.banner:nth-child(2) .banner-photo { background: linear-gradient(135deg, #ffe082, #fff8e1); }
.banner:nth-child(3) .banner-photo { background: linear-gradient(135deg, #f8bbd0, #fce4ec); }
.banner:nth-child(4) .banner-photo { background: linear-gradient(135deg, #c5e1a5, #f1f8e9); }
.banner:nth-child(5) .banner-photo { background: linear-gradient(135deg, #ffccbc, #fbe9e7); }
.banner:nth-child(6) .banner-photo { background: linear-gradient(135deg, #b39ddb, #ede7f6); }

.banner:nth-child(1) .banner-photo svg { color: var(--blue); }
.banner:nth-child(2) .banner-photo svg { color: #f9a825; }
.banner:nth-child(3) .banner-photo svg { color: var(--pink); }
.banner:nth-child(4) .banner-photo svg { color: var(--green); }
.banner:nth-child(5) .banner-photo svg { color: var(--orange); }
.banner:nth-child(6) .banner-photo svg { color: #5e35b1; }

.banner-content {
  background: var(--blue);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 700px) {
  .banner-content { padding: 22px 26px; }
}
.banner-content::before {
  content: '';
  position: absolute;
  top: 12%; right: 10%;
  width: 60px; height: 60px;
  background: radial-gradient(circle, var(--yellow) 1.5px, transparent 2px) 0 0/10px 10px;
  opacity: 0.55;
}
@media (min-width: 700px) {
  .banner-content::before { width: 90px; height: 90px; top: 20%; right: 6%; }
}
.banner-content::after {
  content: '';
  position: absolute;
  bottom: 8%; left: 4%;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid var(--yellow);
  opacity: 0.5;
  display: none;
}
@media (min-width: 700px) {
  .banner-content::after { display: block; bottom: 10%; left: 8%; border-left-width: 14px; border-right-width: 14px; border-bottom-width: 24px; }
}
.banner-en {
  font-family: 'Mochiy Pop One', "Noto Sans JP", sans-serif;
  font-size: clamp(15px, 2.4vw, 22px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 4px;
}
.banner-jp {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  opacity: 0.95;
}
@media (min-width: 700px) {
  .banner-jp { font-size: 13px; margin-bottom: 10px; }
}
.banner-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
}
.banner-arrow svg {
  color: #fff;
  width: 16px; height: 16px;
  transform: rotate(-90deg);
}
@media (min-width: 700px) {
  .banner-arrow { right: 20px; bottom: 18px; }
  .banner-arrow svg { width: 20px; height: 20px; }
}


/* ========== ABOUT (big English heading) ========== */
.about-section {
  text-align: center;
  padding: 80px 24px 40px;
  position: relative;
}
.about-en {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  display: inline-block;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.about-jp {
  font-size: 16px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* ========== VISION (big yellow dots decoration) ========== */
.vision-section {
  padding: 60px 24px 80px;
  position: relative;
  overflow: hidden;
}
.vision-section::before {
  content: '';
  position: absolute;
  top: 60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--yellow) 3px, transparent 4px) 0 0/16px 16px;
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle at 50% 50%, black 50%, transparent 55%);
          mask: radial-gradient(circle at 50% 50%, black 50%, transparent 55%);
  z-index: 0;
}
.vision-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.vision-title-en {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 0.04em;
  display: inline-block;
}
.vision-title-jp {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 24px;
  display: block;
}
.vision-quote {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.6;
}
.vision-quote::before { content: '「'; }
.vision-quote::after { content: '」'; }
.vision-photo {
  position: relative;
  margin: 24px 0;
  background: linear-gradient(135deg, #b3e5fc, #fff8e1);
  border-radius: 12px;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.vision-photo .geo { position: absolute; }
.vision-text {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* CTA Pink (Megalos style) */
.cta-pink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pink);
  color: #fff;
  padding: 18px 38px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 24px rgba(233,30,99,0.32);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease;
  position: relative;
  overflow: hidden;
}
.cta-pink::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  pointer-events: none;
}
.cta-pink:hover {
  background: var(--pink-light);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(233,30,99,0.45);
}
.cta-pink:hover::before { width: 320px; height: 320px; }
.cta-pink:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

/* ========== INSTRUMENT BAR ========== */
.inst-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}
.inst-pill {
  background: #fff;
  border: 2.5px solid var(--black);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  transition: all 0.15s;
  font-family: 'Mochiy Pop One', 'M PLUS Rounded 1c', sans-serif;
}
.inst-pill:hover {
  background: var(--yellow);
  border-color: var(--black);
  color: var(--ink);
  transform: translateY(-2px);
}
.inst-pill .ic { color: var(--blue); }
.inst-pill:nth-child(2) .ic { color: var(--pink); }
.inst-pill:nth-child(3) .ic { color: #f9a825; }
.inst-pill:nth-child(4) .ic { color: var(--green); }
@media (min-width: 700px) {
  .inst-pill { font-size: 14px; padding: 12px 22px; }
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
footer a { color: var(--blue); text-decoration: underline; }

/* ========== DEV PANEL (preview/admin) ========== */
.dev-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 150;
  font-size: 13px;
}
/* When the player is open, shrink the dev panel toggle so it doesn't sit
   on top of the tempo readout in the bottom controls bar. JS sets
   body.player-open; :has() is a fallback for browsers that support it. */
body.player-open .dev-panel-toggle,
body:has(.player.active) .dev-panel-toggle {
  width: 40px; height: 40px;
  box-shadow: 3px 3px 0 var(--black);
}
.dev-panel-toggle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 2.5px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dev-panel-toggle:hover {
  transform: rotate(90deg);
  background: var(--pink);
}
.dev-panel.open .dev-panel-toggle { display: none; }

.dev-panel-body {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 280px;
  background: #fff;
  border: 2.5px solid var(--black);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--black);
  padding: 18px;
  display: none;
  animation: dev-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dev-pop {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.dev-panel.open .dev-panel-body { display: block; }

.dev-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.dev-label {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.dev-panel-close {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1.5px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.dev-panel-close:hover { background: var(--ink); color: #fff; }

.dev-section {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.dev-section:last-of-type { border-bottom: none; }
.dev-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.dev-tier-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}
.dev-tier-btn {
  padding: 8px 4px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.dev-tier-btn:hover { border-color: var(--blue); color: var(--blue); }
.dev-tier-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.dev-tier-btn[data-tier="standard"].active { background: var(--blue); border-color: var(--blue); }
.dev-tier-btn[data-tier="pro"].active { background: var(--pink); border-color: var(--pink); }

.dev-tier-status {
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.6;
}
.dev-tier-status strong { color: var(--ink); }

.dev-action-btn {
  width: 100%;
  padding: 9px 10px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  transition: all 0.15s;
}
.dev-action-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.dev-action-btn:last-child { margin-bottom: 0; }

.dev-footnote {
  font-size: 9px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.dev-footnote code {
  background: var(--bg-soft);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
}

/* ========== ABOUT collage ========== */
.about-collage {
  max-width: 880px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) {
  .about-collage {
    grid-template-columns: 2fr 1fr;
    gap: 18px;
  }
}
.about-collage-main {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  border: 2.5px solid var(--black);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--black);
}
.about-collage-main img,
.about-collage-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.about-collage-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  z-index: 0;
}
.about-collage-main.no-img img,
.about-collage-item.no-img img { display: none; }

.about-collage-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 700px) {
  .about-collage-sub { grid-template-columns: 1fr; }
}
.about-collage-item {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  border: 2.5px solid var(--black);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--black);
}
.about-collage-item:nth-child(2) {
  background: linear-gradient(135deg, var(--green), var(--blue));
}

/* ========== Mouse follow glow (PC only) ========== */
@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 480px; height: 480px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle,
      rgba(0, 153, 216, 0.18) 0%,
      rgba(233, 30, 99, 0.10) 30%,
      rgba(255, 214, 0, 0.06) 50%,
      transparent 70%);
    transform: translate(-50%, -50%);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    mix-blend-mode: screen;
    will-change: transform;
    opacity: 0;
  }
  body.cursor-active .cursor-glow { opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ========== PRICING ========== */
.pricing-section {
  max-width: 1200px;
  margin: 80px auto 60px;
  padding: 0 16px;
  text-align: center;
}
@media (min-width: 700px) { .pricing-section { padding: 0 24px; margin: 100px auto 80px; } }

.section-title-block {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 auto 12px;
  display: inline-block;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 8px;
}
.section-sub-block {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 40px;
  line-height: 1.85;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
@media (min-width: 700px) { .pricing-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pricing-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.pricing-card {
  position: relative;
  background: #fff;
  border: 2.5px solid var(--black);
  border-radius: 14px;
  padding: 32px 24px 28px;
  text-align: left;
  box-shadow: 5px 5px 0 var(--black);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 8px 8px 0 var(--black);
}

.pricing-card.pricing-standard {
  background: var(--blue);
  color: #fff;
}
.pricing-card.pricing-standard .pricing-tag,
.pricing-card.pricing-standard .pricing-name,
.pricing-card.pricing-standard .pricing-amount,
.pricing-card.pricing-standard .pricing-period,
.pricing-card.pricing-standard .pricing-zero,
.pricing-card.pricing-standard .pricing-tagline,
.pricing-card.pricing-standard .pricing-features { color: #fff; }
.pricing-card.pricing-standard .pf-yes { background: var(--yellow); color: var(--black); }
.pricing-card.pricing-standard .pf-no { color: rgba(255,255,255,0.5); }

.pricing-badge {
  position: absolute;
  top: -14px; right: 20px;
  background: var(--pink);
  color: #fff;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  border: 2.5px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
}

.pricing-tag {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.pricing-name {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 16px;
}
.pricing-amount {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pricing-zero {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--ink-soft);
}
.pricing-period {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 700;
}
.pricing-tagline {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 12px 0 18px;
  font-weight: 600;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}
.pf-yes {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.pf-no {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: transparent;
  border: 2px solid var(--line);
  color: var(--muted);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
}
.pricing-cta-outline {
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--black);
}
.pricing-cta-outline:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.pricing-cta-fill {
  background: var(--black);
  color: #fff;
}
.pricing-cta-fill:hover {
  background: var(--pink);
  transform: translateY(-2px);
}
.pricing-cta-pro {
  background: var(--pink);
}
.pricing-cta-pro:hover {
  background: var(--black);
}
.pricing-card.pricing-standard .pricing-cta-fill {
  background: var(--yellow);
  color: var(--black);
}
.pricing-card.pricing-standard .pricing-cta-fill:hover {
  background: #fff;
}

.pricing-footnote {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ========== LOCK INDICATOR (LEVEL ROAD) ========== */
.banner.locked {
  position: relative;
}
.banner.locked .banner-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}
.banner-lock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  background: var(--ink);
  color: #fff;
  padding: 5px 11px 5px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 2px solid #fff;
}
.banner-lock-badge.standard { background: var(--blue); }
.banner-lock-badge.pro { background: var(--pink); }
.banner-lock-icon {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.banner-lock-icon svg {
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  padding: 14px;
  border: 2.5px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
  color: var(--ink);
}

/* ========== UPGRADE MODAL ========== */
.upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.upgrade-modal.open { display: flex; }
.upgrade-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 32, 43, 0.7);
  backdrop-filter: blur(4px);
  animation: modal-fade 0.3s ease;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.upgrade-modal-card {
  position: relative;
  background: #fff;
  border: 2.5px solid var(--black);
  border-radius: 14px;
  padding: 36px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 8px 8px 0 var(--black);
  animation: modal-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.upgrade-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: var(--bg-soft);
  border: 2px solid var(--black);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: all 0.2s;
}
.upgrade-modal-close:hover {
  background: var(--ink);
  color: #fff;
}
.upgrade-modal-icon {
  margin: 0 auto 16px;
  width: 80px; height: 80px;
  background: var(--yellow);
  border: 2.5px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  box-shadow: 4px 4px 0 var(--black);
}
.upgrade-modal-tier {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--blue);
  font-weight: 400;
  margin-bottom: 6px;
}
.upgrade-modal-tier.pro { color: var(--pink); }
.upgrade-modal-title {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--ink);
}
.upgrade-modal-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  line-height: 1.7;
}
.upgrade-modal-desc strong { color: var(--blue); font-weight: 800; }
.upgrade-modal-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.upgrade-modal-cta .cta-pink { width: 100%; justify-content: center; }
.upgrade-modal-cancel {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px;
  font-weight: 700;
  text-decoration: underline;
}

/* ============= PLAYER ============= */
.player {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  overflow-y: auto;
  flex-direction: column;
}
.player.active { display: flex; }

.player-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .player-header { padding: 14px 16px; gap: 10px; }
  .player-title h2 { font-size: 16px; }
}
.player-back {
  background: var(--bg-soft);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border: 1px solid var(--line);
  transition: all 0.2s;
  color: var(--ink);
}
.player-back:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.player-title { flex: 1; min-width: 0; }
.player-title h2 { font-size: 19px; font-weight: 900; margin: 0; color: var(--ink); }
.player-title small {
  display: block; font-size: 12px; color: var(--muted);
  margin-top: 2px; letter-spacing: 0.05em;
}

.inst-tabs {
  display: flex;
  gap: 10px;
  padding: 16px 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
@media (max-width: 480px) {
  .inst-tabs { padding: 12px 16px; gap: 8px; }
}
.inst-tab {
  background: var(--bg-soft);
  border: 2px solid var(--line);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s, box-shadow 0.4s;
  color: var(--ink-soft);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .inst-tab { padding: 10px 14px; font-size: 12px; }
}
/* Highlight pulse when arriving from "楽器を選ぶ" */
.inst-tab.highlight-pulse {
  animation: inst-pulse 1.6s ease-out;
}
@keyframes inst-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,153,216,0.55); }
  50%  { box-shadow: 0 0 0 14px rgba(0,153,216,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,153,216,0); }
}
.inst-tab:hover { color: var(--ink); border-color: var(--blue); }
.inst-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,153,216,0.32);
}

.stream {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.chord-card {
  position: relative;
  aspect-ratio: 1.1;
  border-radius: 12px;
  background: var(--c, #ddd);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: #fff;
  border: 3px solid transparent;
  transition: all 0.25s;
  opacity: 0.45;
  box-shadow: var(--shadow);
}
.chord-card.active {
  opacity: 1;
  border-color: #fff;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}
.chord-card.passed { opacity: 0.22; }
.chord-card .label-jp {
  font-size: 11px; font-weight: 600;
  margin-top: 4px; letter-spacing: 0.08em; opacity: 0.92;
}
.chord-card .beat-pulse {
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 3px solid #fff; opacity: 0;
}
.chord-card.active .beat-pulse { animation: pulse 0.6s ease-out; }
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}

.viz {
  flex: 1;
  padding: 24px 28px 40px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.viz-title {
  font-size: 12px; letter-spacing: 0.25em;
  color: var(--blue);
  margin-bottom: 16px; text-transform: uppercase; font-weight: 800;
}

/* Mini-map: shows the entire instrument so beginners understand
   which slice of it the main visualization is zoomed in on. */
.viz-minimap {
  background: linear-gradient(180deg, #fafbfc, #eef1f4);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.viz-minimap:empty { display: none; }
.viz-minimap .minimap-caption {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 700;
  flex: 0 0 auto;
  max-width: 38%;
  line-height: 1.5;
}
.viz-minimap .minimap-caption b {
  color: var(--blue);
  font-weight: 900;
}
.viz-minimap .minimap-frame {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.viz-minimap .minimap-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  .viz-minimap {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px;
  }
  .viz-minimap .minimap-caption { max-width: none; }
  .viz-minimap .minimap-svg { max-width: 100%; }
}

/* Piano */
.piano {
  display: flex;
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  overflow-x: auto;
  position: relative;
  box-shadow: var(--shadow);
}
.piano-key-wrap { position: relative; flex: 0 0 auto; }
.piano-key {
  width: 52px; height: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  margin-right: 1px;
  position: relative;
  transition: background 0.15s, box-shadow 0.15s;
}
.piano-key.lit {
  background: var(--c, var(--blue));
  box-shadow: 0 0 24px var(--c, var(--blue));
}
.piano-key-label {
  position: absolute; bottom: 12px; left: 0; right: 0;
  text-align: center;
  color: var(--muted); font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.piano-key-solfege {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  font-family: 'Mochiy Pop One', "Noto Sans JP", sans-serif;
  letter-spacing: 0.02em;
}
.piano-key-note {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.piano-key.lit .piano-key-label,
.piano-key.lit .piano-key-solfege,
.piano-key.lit .piano-key-note { color: rgba(255,255,255,0.92); }
.piano-key-black {
  position: absolute;
  width: 34px; height: 140px;
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 0 0 4px 4px;
  top: 0; z-index: 2;
  transition: background 0.15s;
}
.piano-key-black.lit {
  background: var(--c, var(--blue));
  box-shadow: 0 0 20px var(--c, var(--blue));
}

/* Guitar */
.fretboard {
  background: linear-gradient(180deg, #f5e6d3, #ebd5b8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 24px 24px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr) 30px;
  grid-template-rows: 14px repeat(6, 1fr);
  gap: 0;
  position: relative;
  min-height: 260px;
  box-shadow: var(--shadow);
}
/* 天/地 ラベル: 物理的なギター/ベースの上下を示す */
.fretboard::before,
.fretboard::after {
  position: absolute;
  right: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #8b6f47;
  letter-spacing: 0.15em;
  opacity: 0.7;
  pointer-events: none;
}
.fretboard::before { content: "天"; top: 3px; }
.fretboard::after  { content: "地"; bottom: 3px; }
.fret-num { grid-row: 1; text-align: center; font-size: 10px; color: #8b6f47; letter-spacing: 0.1em; font-weight: 700; }
.string-label { font-size: 11px; color: #5a3f1f; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fret-cell {
  border-right: 2px solid rgba(139,111,71,0.4);
  border-top: 1px solid rgba(139,111,71,0.2);
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 32px;
}
.fret-cell[data-fret="1"] { border-right: none; }
.finger {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c, var(--blue));
  color: #fff;
  font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 12px var(--c);
  border: 2px solid #fff;
}
.string-mute { font-size: 16px; color: #999; font-weight: 800; }
.string-open { font-size: 14px; color: var(--green); font-weight: 800; }

/* Drums */
.drums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.drum-pad {
  aspect-ratio: 1;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700;
  transition: all 0.1s;
  position: relative;
  box-shadow: var(--shadow);
}
.drum-pad-emoji { color: var(--c); margin-bottom: 6px; }
.drum-pad-label { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.05em; }
.drum-pad.hit {
  background: var(--c, var(--blue));
  border-color: var(--c, var(--blue));
  transform: scale(1.06);
  box-shadow: 0 0 36px var(--c, var(--blue));
}
.drum-pad.hit .drum-pad-label,
.drum-pad.hit .drum-pad-emoji { color: #fff; }

/* Player controls */
.player-controls {
  position: sticky;
  bottom: 0;
  padding: 20px 28px;
  padding-right: 96px; /* keep clear of dev-panel toggle (preview only) */
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  z-index: 8;
}
@media (max-width: 480px) {
  .player-controls { padding: 14px 16px 14px 16px; padding-right: 88px; gap: 12px; }
}
.play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(233,30,99,0.45);
  transition: transform 0.2s;
}
.play-btn:hover { transform: scale(1.06); }
.tempo-control {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-soft); font-weight: 700;
}
.tempo-control input[type=range] { width: 140px; accent-color: var(--blue); }
.tip-bubble {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  margin-top: 18px;
  text-align: center;
}

/* ========== HOW IT WORKS — Detail sub-pages ========== */
.how-page { background: #fff; }

.how-hero {
  position: relative;
  padding: 72px 24px 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  overflow: hidden;
}
.how-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,214,0,0.18) 0, transparent 30%),
    radial-gradient(circle at 88% 70%, rgba(0,153,216,0.14) 0, transparent 30%);
  pointer-events: none;
}
.how-hero > * { position: relative; z-index: 1; }
.how-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.how-breadcrumb a { color: var(--blue); text-decoration: none; }
.how-breadcrumb a:hover { text-decoration: underline; }
.how-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 56px;
  color: var(--pink);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  display: inline-block;
  transform: rotate(-3deg);
}
.how-title-en {
  font-family: 'Caveat', 'Mochiy Pop One', cursive;
  font-weight: 700;
  font-size: clamp(40px, 8vw, 84px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 6px 0 8px;
  color: var(--ink);
}
.how-title-jp {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.how-lead {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 700;
  max-width: 720px;
  margin: 32px auto 0;
  line-height: 1.85;
  color: var(--ink);
}

.how-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 20px;
}
.how-section { margin-bottom: 56px; }
.how-section h2 {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  border-bottom: 4px solid var(--ink);
  padding-bottom: 8px;
  display: inline-block;
  margin: 0 0 20px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.how-section p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.how-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.how-section ul li {
  padding: 8px 0 8px 32px;
  position: relative;
  line-height: 1.85;
  color: var(--ink-soft);
  font-size: 15px;
}
.how-section ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
}
.how-section ul li::after {
  content: '✓';
  position: absolute;
  left: 6px; top: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}
.how-section ul li strong { color: var(--ink); font-weight: 800; }

.how-callout {
  background: linear-gradient(135deg, #fff5d6 0%, #fff 100%);
  border-left: 5px solid var(--yellow);
  padding: 22px 26px;
  margin: 28px 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.how-callout-label {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1;
}
.how-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  font-weight: 700;
}

.how-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.how-compare-card {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}
.how-compare-card.before { background: #fff5f5; border-color: #ffcfcf; }
.how-compare-card.after { background: #ecf8ff; border-color: var(--blue); }
.how-compare-card .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 800;
  margin-bottom: 12px;
}
.how-compare-card.before .label { color: #d9534f; }
.how-compare-card.after .label { color: var(--blue); }
.how-compare-card p { font-size: 14px; line-height: 1.75; margin: 0; color: var(--ink); }
@media (max-width: 600px) {
  .how-compare { grid-template-columns: 1fr; }
}

.how-cta-block {
  background: var(--ink);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
  margin-top: 40px;
}
.how-cta-block h3 {
  font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 12px;
  font-family: 'Mochiy Pop One', sans-serif;
  letter-spacing: 0.04em;
}
.how-cta-block p {
  color: rgba(255,255,255,0.78);
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
}
.how-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.how-cta-buttons .cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.how-cta-buttons .cta-outline:hover { background: #fff; color: var(--ink); }

.how-related {
  max-width: 1100px;
  margin: 56px auto;
  padding: 0 24px;
}
.how-related h2 {
  text-align: center;
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: clamp(18px, 2.6vw, 22px);
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}
.how-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) {
  .how-related-grid { grid-template-columns: 1fr; }
}
.how-related-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 22px;
  transition: all 0.2s;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
}
.how-related-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--blue);
  border-color: var(--blue);
}
.how-related-en {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}
.how-related-jp {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.how-related-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* Visual examples inside how-section */
.how-visual {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin: 20px 0;
  text-align: center;
}
.how-chord-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.how-chord {
  width: 56px; height: 56px;
  display: flex;
  align-items: center; justify-content: center;
  font-weight: 900;
  color: #fff;
  border-radius: 10px;
  font-size: 22px;
  box-shadow: var(--shadow);
}
.how-staff-illust {
  font-family: monospace;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  line-height: 2.2;
  background: #fff;
  border: 1px dashed var(--line);
  padding: 12px;
  border-radius: 6px;
}
.how-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
@media (max-width: 600px) { .how-stat-grid { grid-template-columns: 1fr; } }
.how-stat {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
}
.how-stat .num {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 44px;
  color: var(--blue);
  line-height: 1;
  display: block;
}
.how-stat .lbl {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
  font-weight: 700;
}

/* Make .banner act as a link without losing its style */
a.banner {
  text-decoration: none;
  color: inherit;
}
a.banner:hover .banner-arrow {
  transform: translateX(4px);
}

/* ========== LEGAL PAGES (特商法 / 利用規約 / プライバシーポリシー) ========== */
.legal-page { background: #fafafa; }
.legal-main {
  max-width: 760px;
  margin: 24px auto 80px;
  padding: 32px 22px;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.legal-title {
  font-family: 'Mochiy Pop One', "Noto Sans JP", sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 3px solid var(--blue);
  padding-bottom: 12px;
  margin: 0 0 24px;
}
.legal-intro {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.legal-section { margin-bottom: 28px; }
.legal-section h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  border-left: 4px solid var(--blue);
  padding-left: 12px;
  margin: 28px 0 12px;
  letter-spacing: 0.03em;
}
.legal-section p { font-size: 14px; line-height: 1.9; color: var(--ink); margin: 8px 0; }
.legal-section ol,
.legal-section ul { font-size: 14px; line-height: 1.9; color: var(--ink); padding-left: 22px; }
.legal-section ol li,
.legal-section ul li { margin: 6px 0; }
.legal-section ol ul,
.legal-section ul ul { margin-top: 4px; padding-left: 18px; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.legal-table th {
  width: 36%;
  background: #f6f8fb;
  color: var(--ink-soft);
  font-weight: 800;
  letter-spacing: 0.03em;
}
.legal-table td { color: var(--ink); line-height: 1.8; }
.legal-table td a { color: var(--blue); text-decoration: underline; }
.legal-note {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.legal-effective {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.8;
}
.legal-footer { margin-top: 32px; text-align: center; }
.legal-back {
  display: inline-block;
  padding: 10px 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.legal-back:hover { opacity: 0.9; }

@media (max-width: 600px) {
  .legal-main { margin: 12px; padding: 22px 16px; border-radius: 12px; }
  .legal-table th { width: 40%; padding: 10px 8px; font-size: 12px; }
  .legal-table td { padding: 10px 8px; font-size: 13px; }
}

/* ========== SITE FOOTER ========== */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 36px 22px 28px;
  margin-top: 60px;
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer-brand {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.site-footer-brand small {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
}
.site-footer-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
}
.site-footer-links a:hover { text-decoration: underline; }
.site-footer-copyright {
  width: 100%;
  text-align: center;
  font-size: 11px;
  opacity: 0.55;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  letter-spacing: 0.05em;
}

