/* =========================================================
   こどものためのブギウギピアノスクール
   ポスターの色（紺・ピンク・黄・くすみベージュ）を、もっと明るく・ポップに
   ========================================================= */
:root {
  /* 女の子とお母さんに好まれる、やわらかいローズ・ラベンダー・ピーチ */
  --navy: #6a3d63; --navy-2: #b07aa8;          /* 文字やふちどりの濃い色（プラム）と、やさしいモーヴ */
  --pink: #f07aa5; --pink-2: #ffd9e7; --pink-3: #fff4f8;
  --yellow: #ffcf8a; --yellow-2: #fff3e6;      /* ピーチ・ゴールド */
  --lav: #f3ecfc; --lav-2: #cdb7f0;            /* ラベンダー */
  --sky: #cfe6fb; --mint: #c9eedd;
  --cream: #fffafb; --beige: #f6e9ee;
  --ink: #4a3346; --ink-2: #806a7b;
  --shadow: #f3c2d6;                           /* ボタンやカードの下のかげ（うすいピンク） */
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --pop: "Kiwi Maru", "Zen Maru Gothic", sans-serif;
  --script: "Dancing Script", cursive;
  --beat: .43s;  /* 1拍の長さ（ブギウギの速さに合わせて変わる） */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--round); font-weight: 500; color: var(--ink); background: radial-gradient(circle, rgba(240, 122, 165, .07) 1.6px, transparent 2px) 0 0 / 22px 22px, var(--cream); line-height: 1.9; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--pink); }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.center { text-align: center; }
.small, small { font-size: .82rem; }
small { display: block; color: var(--ink-2); margin-top: 4px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--pop); font-weight: 500; font-size: 1rem; padding: 14px 26px; border-radius: 99px; border: 2px solid var(--navy); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 5px 0 var(--shadow); color: var(--navy); background: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--shadow); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--shadow); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-yellow { background: var(--yellow); }
.btn-ghost { background: #fff; }
.btn-insta { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; font-size: 1.1rem; padding: 16px 30px; }
.btn-insta svg { width: 26px; height: 26px; }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: rgba(255, 250, 251, .92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--pink-2); }
.hd-logo { display: flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-size: .78rem; line-height: 1.3; }
.hd-logo b { display: block; font-family: var(--pop); font-weight: 500; font-size: 1.05rem; }
.hd-icon { width: auto; height: 58px; margin: -4px 0; flex: none; transition: transform .2s; }
.hd-logo:hover .hd-icon { transform: rotate(-8deg) scale(1.06); }
.hd-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hd-nav a { color: var(--navy); text-decoration: none; font-weight: 700; padding: 6px 12px; border-radius: 99px; }
.hd-nav a:hover { background: var(--yellow-2); }
.hd-nav .hd-cta { background: var(--pink); color: #fff; border: 2px solid var(--navy); }
.hd-menu { display: none; margin-left: auto; width: 46px; height: 42px; border: 2px solid var(--navy); border-radius: 12px; background: var(--yellow); cursor: pointer; padding: 8px; flex-direction: column; justify-content: space-between; }
.hd-menu span { display: block; height: 3px; background: var(--navy); border-radius: 3px; }
@media (max-width: 1080px) {
  .hd-menu { display: flex; margin-left: 10px; }
  .lang { margin-left: auto; }
  .hd-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 2px solid var(--pink-2); padding: 10px 16px 16px; display: none; }
  .hd-nav.open { display: flex; }
  .hd-nav a { padding: 12px; text-align: center; font-size: 1.05rem; }
}

/* 鍵盤の帯 */
.keys-strip { height: 38px; background: url(img/keys.svg) 0 0 / 196px 100% repeat-x; border-top: 3px solid var(--navy); border-bottom: 2px solid var(--pink-2); }

/* ヒーロー */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 15% 20%, var(--pink-2) 0 120px, transparent 121px), radial-gradient(circle at 92% 75%, var(--yellow-2) 0 160px, transparent 161px), radial-gradient(circle at 70% 10%, #efe4fb 0 90px, transparent 91px), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; padding: 56px 0 46px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; padding: 30px 0 26px; text-align: center; } }
.hero-catch { display: inline-block; margin: 0 0 18px; padding: 8px 18px; background: var(--navy); color: #fff; border-radius: 14px; font-weight: 700; font-size: .95rem; line-height: 1.7; }
.hero h1 { margin: 0; font-family: var(--pop); font-weight: 500; color: var(--navy); line-height: 1.35; }
.h1-sm { display: block; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.h1-big { display: block; font-size: clamp(2.3rem, 6.4vw, 4rem); }
.mark-b, .mark-p, .mark-y { font-style: normal; }
.h1-big .mark-b { color: #fff; -webkit-text-stroke: 0; background: var(--navy-2); padding: 0 10px; border-radius: 12px; display: inline-block; transform: rotate(-3deg); }
.h1-big .mark-p { color: #fff; background: var(--pink); padding: 0 10px; border-radius: 12px; display: inline-block; transform: rotate(3deg); }
.hero-name { font-family: var(--pop); color: var(--navy); font-size: clamp(1.1rem, 2.6vw, 1.5rem); line-height: 1.5; margin: 20px 0 26px; }
.boogie-word { font-size: 1.5em; background: linear-gradient(90deg, var(--pink), #b994e6, var(--yellow), #ffb38a, var(--pink)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow 6s linear infinite; -webkit-text-stroke: 1px rgba(106, 61, 99, .2); }
@keyframes rainbow { to { background-position: 300% 0; } }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-btns { justify-content: center; } }
.hero-notes i { position: absolute; font-style: normal; color: var(--pink); opacity: .55; font-size: 2.2rem; animation: float 7s ease-in-out infinite; }
.hero-notes i:nth-child(1) { left: 6%; top: 70%; } .hero-notes i:nth-child(2) { left: 46%; top: 8%; color: var(--navy-2); animation-delay: -2s; }
.hero-notes i:nth-child(3) { left: 88%; top: 14%; color: #b994e6; animation-delay: -4s; } .hero-notes i:nth-child(4) { left: 55%; top: 82%; color: #ffb38a; animation-delay: -1s; }
.hero-notes i:nth-child(5) { left: 30%; top: 40%; animation-delay: -5s; font-size: 1.4rem; } .hero-notes i:nth-child(6) { left: 96%; top: 50%; color: var(--yellow); animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-22px) rotate(12deg); } }

/* ヒーローの右：ピアノとキャラ */
.hero-band { position: relative; height: 400px; }
@media (max-width: 860px) { .hero-band { height: 300px; max-width: 460px; margin: 0 auto; width: 100%; } }
.hero-piano { position: absolute; left: 8%; right: 4%; bottom: 20px; height: 150px; }
.hp-lid { position: absolute; left: 0; right: 0; top: 0; height: 60px; background: var(--navy); border-radius: 20px 60px 10px 10px; transform: skewX(-8deg); }
.hp-keys { position: absolute; left: 4%; right: 4%; top: 54px; height: 70px; border: 2px solid var(--navy); border-radius: 0 0 10px 10px; background: #fff url(img/keys.svg) 0 0 / 154px 100% repeat-x; }
.hero-band .ch { position: absolute; width: 34%; animation: hop calc(var(--beat) * 2) ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 6px 0 rgba(106, 61, 99, .12)); }
.hero-band .ch1 { left: 0; bottom: 120px; }
.hero-band .ch2 { left: 33%; bottom: 150px; width: 36%; animation-delay: calc(var(--beat) * -1); }
.hero-band .ch3 { right: 0; bottom: 118px; width: 30%; animation-delay: calc(var(--beat) * -.5); }
@media (max-width: 860px) { .hero-band .ch2 { width: 27%; left: 37%; bottom: 130px; } }
.feat-card.c2 .feat-ch { width: 112px; top: -74px; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
.badge-free { position: absolute; right: -6px; top: 0; width: 120px; height: 120px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--navy); display: grid; place-content: center; text-align: center; font-family: var(--pop); color: var(--navy); font-size: 1.7rem; line-height: 1.1; transform: rotate(10deg); box-shadow: 0 5px 0 var(--shadow); animation: wiggle 2.4s ease-in-out infinite; z-index: 2; }
.badge-free small { font-size: .72rem; color: var(--navy); margin-top: 4px; }
@keyframes wiggle { 50% { transform: rotate(-6deg) scale(1.05); } }

/* セクション共通 */
.sec { padding: 84px 0; position: relative; }
@media (max-width: 600px) { .sec { padding: 60px 0; } }
.script { font-family: var(--script); color: var(--pink); font-size: 1.6rem; margin: 0; text-align: center; transform: rotate(-4deg); }
.ttl { font-family: var(--pop); font-weight: 500; color: var(--navy); text-align: center; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.4; margin: 6px 0 34px; }
.mark-y { background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 4px; }
.ttl .mark-p { background: linear-gradient(transparent 58%, var(--pink-2) 58%); padding: 0 4px; }
.lead { text-align: center; font-size: 1.05rem; }
.card { background: #fff; border: 2px solid var(--navy); border-radius: 22px; box-shadow: 0 6px 0 var(--shadow); padding: 26px 24px; }

/* 3つの特長 */
.feat { background: var(--pink-3); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
@media (max-width: 860px) { .feat-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
.feat-card { position: relative; padding-top: 104px; margin-top: 60px; }
.feat-card h3 { margin: 0 0 12px; font-family: var(--pop); font-weight: 500; font-size: 1.3rem; line-height: 1.45; color: #fff; text-align: center; padding: 12px; border-radius: 16px; }
.feat-card.c1 h3 { background: var(--navy-2); } .feat-card.c2 h3 { background: var(--pink); } .feat-card.c3 h3 { background: #b994e6; }
.feat-card p { margin: 0; font-size: .95rem; }
.feat-ch { position: absolute; top: -66px; left: 50%; width: 130px; transform: translateX(-50%); animation: hop 1.8s ease-in-out infinite; }
.feat-card.c2 .feat-ch { animation-delay: -.6s; } .feat-card.c3 .feat-ch { animation-delay: -1.2s; }

/* 遊べるブギウギ */
.play { background: linear-gradient(180deg, #8a5a86, #6a3d63); color: #fff; }
.play .ttl { color: #fff; }
.play .ttl .mark-p { background: none; color: var(--yellow); }
.play .script { color: var(--yellow); }
.stage { margin-top: 26px; background: linear-gradient(180deg, #8d5a86, #6a3d63); border: 3px solid #fff; border-radius: 28px; padding: 26px 20px 22px; box-shadow: 0 8px 0 rgba(0, 0, 0, .25); }
.band { display: flex; justify-content: center; align-items: flex-end; gap: 2%; min-height: 160px; }
.band .ch { width: 15%; max-width: 130px; transform-origin: 50% 100%; transition: transform .2s; }
.band .ch.d3 { max-width: 90px; width: 11%; }
.playing .band .ch { animation: dance calc(var(--beat) * 2) ease-in-out infinite; }
.playing .band .d2, .playing .band .d4 { animation-delay: calc(var(--beat) * -1); }
@keyframes dance { 0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); } 25% { transform: translateY(-20px) rotate(0) scale(1.04); } 50% { transform: translateY(0) rotate(8deg) scale(1); } 75% { transform: translateY(-20px) rotate(0) scale(1.04); } }
.ctrl { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin: 22px 0 18px; }
.tempo { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tempo input { accent-color: var(--yellow); width: 140px; }
.kb { display: flex; justify-content: center; gap: 6px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.kb button { flex: 1 1 0; max-width: 92px; height: 150px; border: 3px solid #fff; border-radius: 0 0 16px 16px; font-family: var(--pop); font-size: 1.1rem; color: var(--navy); cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; transition: transform .06s, filter .06s; }
.kb button:nth-child(8n+1) { background: #ff9ec4; } .kb button:nth-child(8n+2) { background: #ffbf80; } .kb button:nth-child(8n+3) { background: #ffe47a; } .kb button:nth-child(8n+4) { background: #b8eea0; }
.kb button:nth-child(8n+5) { background: #8fe0e0; } .kb button:nth-child(8n+6) { background: #9cc8ff; } .kb button:nth-child(8n+7) { background: #c9a8ff; } .kb button:nth-child(8n+8) { background: #ff9ec4; }
.kb button.hit { transform: translateY(6px) scale(.97); filter: brightness(1.15); }
@media (max-width: 600px) { .kb button { height: 120px; font-size: .9rem; } }
.kb-hint { text-align: center; font-size: .82rem; opacity: .8; margin: 14px 0 0; }
@media (hover: none) { .kb-hint { display: none; } }
kbd { display: inline-block; background: #fff; color: var(--navy); border-radius: 5px; padding: 0 6px; font-family: inherit; font-weight: 700; line-height: 1.6; }
.pop-note { position: absolute; pointer-events: none; font-size: 1.8rem; color: var(--yellow); animation: up .9s ease-out forwards; }
@keyframes up { to { transform: translateY(-110px) rotate(20deg); opacity: 0; } }

/* 動画：かんたんブギウギアレンジ */
.movies { background: var(--yellow-2); }
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 900px; margin: 30px auto 0; }
.reel { margin: 0; }
.reel video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--navy); border: 2px solid var(--navy); border-radius: 18px; box-shadow: 0 6px 0 var(--shadow); }
.reel figcaption { margin-top: 12px; text-align: center; font-family: var(--pop); color: var(--navy); font-size: .95rem; }
.reels-hint { display: none; text-align: center; font-size: .82rem; color: var(--ink-2); margin: 6px 0 0; }
@media (max-width: 760px) {
  .reels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 24px -16px 0; padding: 0 16px 16px; -webkit-overflow-scrolling: touch; }
  .reel { flex: 0 0 58%; scroll-snap-align: center; }
  .reels-hint { display: block; }
}

.mv-sub { display: flex; align-items: center; gap: 16px; max-width: 900px; margin: 64px auto 26px; font-family: var(--pop); font-weight: 500; color: var(--navy); font-size: 1.3rem; }
.mv-sub::before, .mv-sub::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: var(--navy); opacity: .2; }
.mv-grid { display: grid; grid-template-columns: 1fr 1.6fr; grid-template-rows: auto auto; gap: 24px; max-width: 900px; margin: 0 auto; }
.mv { margin: 0; background: #fff; border: 2px solid var(--navy); border-radius: 20px; box-shadow: 0 6px 0 var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.mv video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy); }
.mv video.wide { aspect-ratio: 1482 / 494; }
.mv-tall { grid-row: span 2; }
.mv-tall video { aspect-ratio: auto; flex: 1; min-height: 0; height: 100%; max-height: 640px; }
.mv figcaption { padding: 14px 18px 16px; line-height: 1.7; }
.mv figcaption b { display: block; font-family: var(--pop); font-weight: 500; color: var(--navy); font-size: 1.02rem; margin-bottom: 4px; }
.mv figcaption span { display: block; font-size: .86rem; color: var(--ink-2); }
.mv-tag { display: inline-block; font-style: normal; font-size: .72rem; background: var(--pink); color: #fff; padding: 1px 10px; border-radius: 99px; margin-right: 8px; vertical-align: .15em; }
@media (max-width: 760px) {
  .mv-grid { grid-template-columns: 1fr; }
  .mv-tall { grid-row: auto; }
  .mv-tall video { aspect-ratio: 9 / 16; height: auto; max-height: 560px; }
}

/* なんでブギウギ */
.why { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
.why .script, .why .ttl { text-align: left; }
@media (max-width: 860px) { .why .script, .why .ttl { text-align: center; } }
.why-lead { font-family: var(--pop); color: var(--pink); font-size: 1.15rem; line-height: 1.6; }
.brain { position: relative; background: var(--yellow-2); }
.brain h3 { font-family: var(--pop); font-weight: 500; color: var(--navy); margin: 0 0 14px; font-size: 1.4rem; }
.brain-hands { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.brain-hands div:not(.plus) { flex: 1; background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 10px; text-align: center; line-height: 1.5; }
.brain-hands b { display: block; font-family: var(--pop); font-weight: 500; color: var(--pink); font-size: 1.1rem; }
.brain-hands span { font-size: .85rem; }
.plus { font-family: var(--pop); font-size: 1.8rem; color: var(--navy); }
.brain-ch { position: absolute; right: -24px; bottom: -40px; width: 110px; animation: hop 2s ease-in-out infinite; }
@media (max-width: 600px) { .brain-ch { width: 80px; right: -6px; bottom: -34px; } }

/* レッスン */
.lesson { background: var(--lav); }
.chips { list-style: none; padding: 0; margin: 0 auto 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.chips li { background: #fff; border: 2px solid var(--navy); border-radius: 99px; padding: 8px 18px; font-weight: 700; color: var(--navy); }
.chips li:nth-child(3n+1) { background: var(--pink-3); } .chips li:nth-child(3n+2) { background: var(--yellow-2); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.info h3 { margin: 0 0 8px; font-family: var(--pop); font-weight: 500; color: var(--navy); font-size: 1.25rem; }
.info .ico { margin-right: 8px; }
.info p { margin: 0; }

/* 先生 */
.teacher { background: var(--cream); }
.teacher-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .teacher-grid { grid-template-columns: 1fr; } }
.teacher .script, .teacher .ttl { text-align: left; }
.teacher .ttl { font-size: clamp(1.15rem, 2.4vw, 1.75rem); white-space: nowrap; }
@media (max-width: 860px) { .teacher .script, .teacher .ttl { text-align: center; } }
.teacher-photo { position: relative; }
.teacher-photo > img:first-child { border: 4px solid var(--navy); border-radius: 26px; box-shadow: 10px 10px 0 var(--pink); transform: rotate(-2deg); }
.teacher-ch { position: absolute; width: 120px; right: -20px; bottom: -40px; animation: hop 1.6s ease-in-out infinite; }
.teacher p { margin: 0 0 14px; font-size: .97rem; }

/* 料金 */
.price { background: var(--pink-3); }
.ticket-name { font-family: var(--pop); color: var(--navy); font-size: 1.2rem; margin: -14px 0 26px; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
.plan { position: relative; text-align: center; display: flex; flex-direction: column; gap: 4px; padding: 26px 12px 22px; }
.plan-n { font-family: var(--pop); font-weight: 500; color: var(--pink); font-size: 1.5rem; }
.plan-p { font-family: var(--pop); color: var(--navy); font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.2; }
.plan-p small { display: inline; font-size: .9rem; color: var(--navy); }
.plan-l { font-size: .85rem; color: var(--ink-2); }
.plan-best { background: var(--yellow-2); transform: scale(1.04); }
.plan-tag { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--pink); color: #fff; font-weight: 700; font-size: .8rem; padding: 3px 14px; border-radius: 99px; border: 2px solid var(--navy); white-space: nowrap; }
.price-note { max-width: 760px; margin: 34px auto 0; padding-left: 1.2em; }

/* 無料体験 */
.trial { background: radial-gradient(circle at 10% 30%, var(--pink-2) 0 100px, transparent 101px), radial-gradient(circle at 90% 70%, #efe4fb 0 120px, transparent 121px), var(--cream); }
.trial-box { position: relative; max-width: 720px; margin: 0 auto; text-align: center; background: var(--yellow); border: 4px solid var(--navy); border-radius: 50px 60px 46px 70px; padding: 44px 30px 36px; box-shadow: 0 10px 0 var(--shadow); }
.trial-box .script { color: var(--navy); font-size: 2rem; }
.trial-box h2 { font-family: var(--pop); font-weight: 500; color: var(--navy); font-size: clamp(1.6rem, 4.4vw, 2.4rem); line-height: 1.3; margin: 6px 0 8px; }
.trial-box h2 .big { font-size: 1.8em; color: var(--pink); -webkit-text-stroke: 2px var(--navy); }
.trial-sub { display: inline-block; border-top: 3px dotted var(--navy); padding-top: 8px; font-weight: 700; color: var(--navy); }
.trial-ch { position: absolute; width: 130px; bottom: -20px; animation: hop 1.7s ease-in-out infinite; }
.trial-ch.l { left: -60px; } .trial-ch.r { right: -60px; animation-delay: -.8s; }
@media (max-width: 760px) { .trial-ch { width: 84px; } .trial-ch.l { left: -14px; bottom: -40px; } .trial-ch.r { right: -14px; bottom: -40px; } }

/* フッター */
.ft { background: var(--navy); color: #fff; text-align: center; padding: 0 16px 34px; }
.ft .keys-strip { margin: 0 -16px 26px; border-color: #fff; }
.ft-name { font-family: var(--pop); font-size: 1.1rem; margin: 0 0 6px; }
.ft p { margin: 4px 0; }
.nb { display: inline-block; }
.ft-credit { max-width: 560px; margin: 22px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .78rem; line-height: 1.8; opacity: .85; }
.ft-credit a { color: var(--yellow); text-underline-offset: 3px; }
.ft-credit a:hover { color: #fff; }
.ft-copy { margin-top: 0 !important; letter-spacing: .08em; }
.ft-bgm { margin-top: 16px !important; }
.ft-group { margin-top: 16px; }
.ft-bgm .nb + .nb { margin-left: .8em; }
.ft-bgm small { display: inline; color: inherit; opacity: .75; font-size: .92em; }
.ft-rights { margin: 22px 0 0 !important; font-size: .74rem; letter-spacing: .06em; opacity: .7; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
@media (max-width: 860px) { .badge-free { width: 92px; height: 92px; font-size: 1.3rem; top: -26px; right: 0; } .badge-free small { font-size: .6rem; } }

/* BGMボタン（右下） */
.bgm-btn { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; background: #fff; color: var(--navy); border: 2px solid var(--navy); border-radius: 99px; box-shadow: 0 4px 0 var(--shadow); font-family: var(--round); cursor: pointer; opacity: .9; transition: transform .15s, opacity .15s; }
.bgm-btn:hover { opacity: 1; transform: translateY(-2px); }
.bgm-ico { display: flex; align-items: flex-end; gap: 3px; width: 26px; height: 26px; padding: 5px; border-radius: 50%; box-sizing: border-box; background: #f3e3ec; }
.bgm-ico i { flex: 1; height: 30%; background: var(--navy); border-radius: 2px; }
.bgm-btn.on .bgm-ico { background: var(--pink); }
.bgm-btn.on .bgm-ico i { background: #fff; animation: eq .8s ease-in-out infinite; }
.bgm-btn.on .bgm-ico i:nth-child(2) { animation-delay: -.3s; } .bgm-btn.on .bgm-ico i:nth-child(3) { animation-delay: -.55s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.bgm-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.bgm-txt b { font-family: var(--pop); font-weight: 500; font-size: .8rem; }
.bgm-txt small { margin: 0; font-size: .62rem; color: var(--ink-2); }
.bgm-btn.off .bgm-txt b::after { content: " OFF"; color: var(--ink-2); }
@media (max-width: 600px) { .bgm-txt small { display: none; } .bgm-btn { padding: 6px 12px 6px 8px; right: 12px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .bgm-btn.on .bgm-ico i { animation: none; height: 70%; } }

/* 画像・動画をかんたんに保存できないように（長押しメニュー・ドラッグを止める） */
img, video { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* やわらかい雰囲気の仕上げ */
.script { font-weight: 700; letter-spacing: .02em; }
.card { border-radius: 26px; }
.hero-notes i { color: var(--pink) !important; }
.hero-notes i:nth-child(2n) { color: var(--lav-2) !important; }
.hero-notes i:nth-child(3n) { color: var(--yellow) !important; }

/* 言葉の切りかえ（ヘッダー右） */
.lang { position: relative; display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.lang-btn, .kids-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 99px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font-family: var(--round); font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.lang-btn svg { width: 18px; height: 18px; flex: none; }
.lang-btn:hover, .kids-btn:hover { background: var(--pink-3); }
.kids-btn { background: var(--yellow-2); }
.kids-btn[hidden] { display: none; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; min-width: 200px; padding: 8px; background: #fff; border: 2px solid var(--navy); border-radius: 18px; box-shadow: 0 8px 24px rgba(106, 61, 99, .18); display: grid; gap: 2px; }
.lang-menu[hidden] { display: none; }
.lang-menu button { text-align: left; padding: 9px 14px; border: 0; border-radius: 12px; background: none; color: var(--ink); font-family: var(--round); font-size: .95rem; cursor: pointer; }
.lang-menu button:hover { background: var(--pink-3); }
.lang-menu button[aria-current="true"] { background: var(--pink-2); color: var(--navy); font-weight: 700; }
@media (max-width: 600px) {
  .hd { padding: 8px 12px; gap: 8px; }
  .lang { gap: 6px; }
  .lang-btn span { max-width: 4.5em; overflow: hidden; text-overflow: ellipsis; }
  .lang-btn, .kids-btn { height: 36px; padding: 0 10px; font-size: .76rem; }
}

/* 言葉ごとの文字の調整 */
html:not([lang="ja"]) .h1-big { font-size: clamp(2rem, 5.2vw, 3.3rem); }
html:not([lang="ja"]) .hero h1 { line-height: 1.25; }
html:not([lang="ja"]) body { line-height: 1.75; }
html:is([lang="en"], [lang="es"], [lang="it"], [lang="de"], [lang="fr"], [lang="id"]) { --round: "Quicksand", "Zen Maru Gothic", sans-serif; --pop: "Quicksand", "Kiwi Maru", sans-serif; }
html:is([lang="en"], [lang="es"], [lang="it"], [lang="de"], [lang="fr"], [lang="id"]) :is(h1, h2, h3, .btn, .hero-name, .badge-free, .plan-n, .plan-p) { font-weight: 700; }
html[lang="th"] { --round: "Noto Sans Thai", "Zen Maru Gothic", sans-serif; --pop: "Noto Sans Thai", "Kiwi Maru", sans-serif; }
html[lang="zh-Hans"] { --round: "Noto Sans SC", "Zen Maru Gothic", sans-serif; --pop: "Noto Sans SC", "Kiwi Maru", sans-serif; }
html[lang="th"] body, html[lang="zh-Hans"] body { letter-spacing: 0; }
/* こども向け：ひらがなが読みやすいように、文字を少し大きく・行間ゆったり */
html[data-mode="kids"] body { font-size: 1.06rem; line-height: 2; }
html[data-mode="kids"] .h1-big { font-size: clamp(1.9rem, 5vw, 3.2rem); }

/* はじめのアニメーション（約2.6秒。押すとすぐ消える） */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(circle at 25% 30%, var(--pink-2) 0 18vmin, transparent 18.2vmin), radial-gradient(circle at 78% 72%, var(--lav) 0 22vmin, transparent 22.2vmin), var(--cream); animation: intro-out .7s ease-in 2s forwards; cursor: pointer; }
.intro-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4vmin; }
.intro-logo { width: min(52vmin, 300px); opacity: 0; transform: scale(.3); animation: intro-logo .7s cubic-bezier(.3, 1.6, .5, 1) .45s forwards; }
.intro-ch { width: min(30vmin, 170px); opacity: 0; transform: translateY(60vh); animation: intro-ch .65s cubic-bezier(.3, 1.4, .5, 1) 0s forwards, intro-hop .5s ease-in-out 1.15s 2; }
.intro-spark { position: absolute; font-size: min(7vmin, 40px); color: var(--pink); opacity: 0; animation: intro-spark 1s ease-out forwards; }
.intro-spark.s1 { left: -14%; top: 4%; animation-delay: .8s; color: var(--yellow); }
.intro-spark.s2 { right: -12%; top: 0; animation-delay: .95s; }
.intro-spark.s3 { left: -6%; top: 46%; animation-delay: 1.1s; color: var(--lav-2); }
.intro-spark.s4 { right: -8%; top: 40%; animation-delay: 1.2s; color: var(--yellow); }
@keyframes intro-ch { to { opacity: 1; transform: translateY(0); } }
@keyframes intro-hop { 50% { transform: translateY(-5vmin) rotate(-6deg); } }
@keyframes intro-logo { to { opacity: 1; transform: scale(1); } }
@keyframes intro-spark { 0% { opacity: 0; transform: scale(.2) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(20deg); } 100% { opacity: 0; transform: scale(.8) translateY(-4vmin) rotate(40deg); } }
@keyframes intro-out { to { opacity: 0; transform: translateY(-4vh); visibility: hidden; } }
.intro.skip { animation: intro-out .3s ease-in forwards; }
@media (prefers-reduced-motion: reduce) {
  .intro { animation-delay: .8s; animation-duration: .4s; }
  .intro-logo, .intro-ch { animation: none; opacity: 1; transform: none; }
  .intro-spark { display: none; }
}

/* こども向けでは、お金やチケットのことは出さない（料金のコーナー・メニュー・スタジオ代の一文） */
html[data-mode="kids"] #price, html[data-mode="kids"] .hd-nav [data-t="nav_price"], html[data-mode="kids"] .trial-sub { display: none; }

/* 背景のふわふわ（音符とハート） */
.bg-float { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.bg-float span { position: absolute; bottom: -40px; line-height: 1; animation-name: float-up, float-sway; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; animation-direction: normal, alternate; will-change: transform; }
@keyframes float-up { from { bottom: -40px; } to { bottom: 105%; } }
@keyframes float-sway { from { transform: translateX(-14px) rotate(-12deg); } to { transform: translateX(14px) rotate(12deg); } }
