/* studio.css — 超絶楽器スタジオ（ピアノ・ギター・ピアノヒーロー） */
.st-hero { position: relative; overflow: hidden; color: #fff; min-height: 460px; display: flex; align-items: center; background: #120818; }
.st-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.st-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 6, 22, 0.92) 0%, rgba(14, 6, 22, 0.6) 45%, rgba(14, 6, 22, 0.1) 100%); }
.st-hero-in { position: relative; z-index: 1; padding: 60px 0; max-width: 1100px; }
.st-hero h1 { font-family: var(--mincho); font-size: clamp(2.2rem, 7vw, 4.2rem); margin: 6px 0 12px; background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.15; }
.st-hero .lead { max-width: 600px; color: #f3e9d8; }
.st-hero .t-en { color: #d9c9a8; max-width: 560px; }
.st-hero .kicker { color: var(--gold2); }
.st-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px 16px; }
.st-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 900; font-size: 0.9rem; color: var(--ink); text-decoration: none; }
.st-nav a[aria-current='page'] { background: var(--wine); color: #fff; border-color: var(--wine); }
.st-card .gc-b { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 18px 24px 24px; }
.st-card .en { font-size: 0.92rem; color: var(--gold-ink); letter-spacing: 0.06em; }
.st-card h2 { font-family: var(--mincho); margin: 2px 0 6px; font-size: 1.5rem; }
.st-card p { margin: 0 0 16px; }
.st-card .btn { margin-top: auto; }
@media (max-width: 600px) { .st-card .gc-b { padding: 16px 18px 20px; } }
.st-feat { padding-left: 1.2em; }
.st-feat li { margin: 0 0 10px; }
kbd { display: inline-block; min-width: 1.5em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--card); font: 700 0.8rem/1.4 var(--jp); text-align: center; }
details.faq { border-top: 1px solid var(--line); padding: 10px 0; }
details.faq summary { font-weight: 900; cursor: pointer; }
details.faq p { margin: 8px 0 0; }

/* 楽器えらび */
.st-inst { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.st-inst button { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }
.st-inst button img { width: 30px; height: 30px; }
.st-inst button b { font-size: 0.88rem; }
.st-inst button small { font-size: 0.7rem; color: var(--muted); }
.st-inst button[aria-pressed='true'] { border-color: var(--gold); background: var(--hl); box-shadow: 0 0 0 3px rgba(233, 200, 121, 0.35); }
.st-load { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 0.86rem; }
.st-load span { flex: 1; height: 8px; border-radius: 9px; background: var(--bg2); overflow: hidden; }
.st-load i { display: block; height: 100%; width: 0; background: var(--goldgrad); transition: width 0.2s; }

/* ステージ（鍵盤） */
.pi-stage { background: radial-gradient(120% 140% at 50% 0%, #2a1340 0%, #12081d 60%, #07030c 100%); border-radius: 26px; padding: 16px 14px 14px; box-shadow: var(--shadow-lg); color: #f4ecdf; }
.pi-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 54px; }
.pi-chord { display: flex; align-items: baseline; gap: 10px; }
.pi-chord b { font: 700 2rem/1 var(--en); color: var(--gold2); min-width: 2ch; }
.pi-chord small { color: #cbbfd8; font-size: 0.82rem; }
.pi-notes { color: #b9aec8; margin-left: auto; text-align: right; }
.pi-roll { display: block; width: 100%; height: 170px; }
.pk { position: relative; height: 210px; user-select: none; -webkit-user-select: none; touch-action: none; }
.pk .k { position: absolute; top: 0; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 8px; cursor: pointer; }
.pk .kw { height: 100%; background: linear-gradient(180deg, #e9e3d8 0%, #fffdf8 12%, #fff 85%, #ece6da 100%); border: 1px solid #2a2030; border-top: 0; border-radius: 0 0 8px 8px; color: #6a5d70; z-index: 1; box-shadow: inset 0 -6px 0 #ddd4c4; }
.pk .kb { height: 62%; background: linear-gradient(180deg, #2b2530 0%, #0d0a10 70%, #2a2430 100%); border-radius: 0 0 6px 6px; z-index: 2; color: #bbb; box-shadow: inset 0 -5px 0 #000, 0 3px 6px rgba(0, 0, 0, 0.5); }
.pk .kw span { font: 700 0.7rem var(--round); }
.pk .kw.c4 span { color: var(--wine); }
.pk kbd { font-size: 0.62rem; min-width: 0; padding: 0 3px; margin-bottom: 3px; background: transparent; border-color: rgba(0, 0, 0, 0.2); color: inherit; opacity: 0.7; }
.pk .kb kbd { border-color: rgba(255, 255, 255, 0.3); }
.pk .k.on { background: linear-gradient(180deg, #ffe7a3 0%, #f5c04a 100%); box-shadow: inset 0 -2px 0 #c58f1a, 0 0 22px rgba(245, 192, 74, 0.8); }
.pk .kb.on { background: linear-gradient(180deg, #8a5cff 0%, #5b2fd1 100%); box-shadow: 0 0 20px rgba(138, 92, 255, 0.9); }
.pk .k.next { background: linear-gradient(180deg, #c6f6ff 0%, #5fd8f2 100%); animation: pk-next 0.6s ease-in-out infinite alternate; }
.pk .kb.next { background: linear-gradient(180deg, #4fd0ee 0%, #148ab0 100%); }
.pk .k.auto { background: linear-gradient(180deg, #ffc6dc 0%, #ff7aa8 100%); }
@keyframes pk-next { to { filter: brightness(1.15); box-shadow: 0 0 18px rgba(95, 216, 242, 0.9); } }
.pi-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pi-bar .btn { color: #f4ecdf; border-color: rgba(255, 255, 255, 0.25); white-space: nowrap; }
.pi-nav { position: relative; flex: 1; display: flex; height: 22px; cursor: pointer; border-radius: 4px; overflow: hidden; }
.pi-nav i { flex: 1; background: #ece6da; border-right: 1px solid #6a5d70; }
.pi-nav i.c4 { background: #f5c04a; }
.pi-nav b { position: absolute; top: 0; bottom: 0; border: 2px solid #5fd8f2; border-radius: 4px; background: rgba(95, 216, 242, 0.25); transition: left 0.25s, width 0.25s; }
.pi-pedalrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.pi-pedal { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; border: 2px solid rgba(233, 200, 121, 0.5); background: rgba(255, 255, 255, 0.06); color: #f4ecdf; font-weight: 900; touch-action: none; user-select: none; }
.pi-pedal small { display: block; font-weight: 400; font-size: 0.72rem; color: #b9aec8; }
.pi-pedal.on { background: var(--goldgrad); color: #2a1a05; box-shadow: 0 0 22px rgba(233, 200, 121, 0.7); }
.pi-pedalrow label, .pi-pedalrow .muted { color: #b9aec8; }
.pi-ctrl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.pi-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.pi-box h3 { margin: 0 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.pi-box label { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 0.86rem; font-weight: 700; }
.pi-box select { width: 100%; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.pi-rec { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.btn.on { background: var(--ng); box-shadow: 0 0 0 4px rgba(214, 51, 77, 0.25); animation: rec-blink 1s infinite; }
.btn.ghost.on { color: #fff; }
@keyframes rec-blink { 50% { box-shadow: 0 0 0 9px rgba(214, 51, 77, 0.08); } }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ギター */
.gt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gt-now { display: flex; align-items: baseline; gap: 10px; }
.gt-now b { font: 700 2rem/1 var(--en); color: var(--wine); }
.gt-now small { color: var(--muted); }
.gt-now code { font: 700 0.8rem var(--jp); color: var(--muted); letter-spacing: 0.08em; }
.gt-main { display: grid; grid-template-columns: 1fr 210px; gap: 14px; }
.gt-board { position: relative; background: linear-gradient(180deg, #4a2a17, #2e1a0e); border-radius: 14px; padding: 10px 8px 4px; box-shadow: var(--shadow-lg); user-select: none; touch-action: manipulation; }
.gb-row { position: relative; display: grid; grid-template-columns: 34px 1.12fr 1.06fr 1fr .94fr .89fr .84fr .79fr .75fr .71fr .67fr .63fr .6fr; height: 40px; }
.gb-row::before { content: ''; position: absolute; left: 30px; right: 0; top: 50%; height: calc(1px + var(--s, 0) * 0.5px); background: linear-gradient(180deg, #fff6e0, #b9a27a); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6); pointer-events: none; z-index: 1; }
.gb-row[data-str='0']::before { height: 3.5px; } .gb-row[data-str='1']::before { height: 3px; } .gb-row[data-str='2']::before { height: 2.5px; } .gb-row[data-str='3']::before { height: 2px; } .gb-row[data-str='4']::before { height: 1.5px; } .gb-row[data-str='5']::before { height: 1.2px; }
.gb-row.vib::before { animation: str-vib 0.5s ease-out; }
@keyframes str-vib { 0%, 100% { transform: translateY(0); } 15% { transform: translateY(-2px); } 30% { transform: translateY(1.6px); } 45% { transform: translateY(-1px); } 60% { transform: translateY(0.6px); } }
.gb-row button { position: relative; z-index: 2; border: 0; background: transparent; border-right: 3px solid #c9c3b8; color: #fff; padding: 0; display: grid; place-items: center; cursor: pointer; }
.gb-row .gb-o { border-right: 7px solid #efe6d2; color: #ffe7a3; font-weight: 900; font-size: 1rem; }
.gb-row button:hover { background: rgba(255, 255, 255, 0.08); }
.gb-c i { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8db3, #c2385c); font: 900 0.62rem var(--round); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.gb-c.hit i, .gb-o.hit { filter: brightness(1.5); transform: scale(1.15); }
.gb-mk { display: grid; grid-template-columns: 34px 1.12fr 1.06fr 1fr .94fr .89fr .84fr .79fr .75fr .71fr .67fr .63fr .6fr; color: #e9c879; font-size: 0.7rem; text-align: center; padding-top: 2px; }
.gb-mk small { display: block; color: #a8916b; font-size: 0.62rem; }
.gt-right { display: flex; flex-direction: column; gap: 10px; }
.gt-strum { position: relative; flex: 1; min-height: 240px; border-radius: 18px; background: radial-gradient(circle at 50% 50%, #120a05 0 32%, #8a5a2b 33% 36%, #d9a866 37% 100%); box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4), var(--shadow); display: flex; flex-direction: column; justify-content: space-evenly; touch-action: none; cursor: grab; user-select: none; }
.gt-strum i { display: block; height: var(--w); background: linear-gradient(180deg, #fff6e0, #a89070); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); margin: 0 6px; }
.gt-strum i.vib { animation: str-vib 0.5s ease-out; }
.gt-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.gt-chords { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: 14px 0 4px; }
.gt-chords button { position: relative; padding: 10px 4px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 700 1.1rem var(--en); }
.gt-chords button kbd { position: absolute; top: 2px; left: 3px; font-size: 0.55rem; padding: 0 3px; border-width: 1px; opacity: 0.6; }
.gt-chords button[aria-pressed='true'] { background: var(--wine); color: #fff; border-color: var(--wine); }
.gt-prog { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
.gt-prog span { padding: 4px 9px; border-radius: 8px; background: var(--bg2); font: 700 0.95rem var(--en); transition: background 0.15s; }
.gt-prog span.on { background: var(--gold2); color: #2a1a05; }
.gt-prog p { flex-basis: 100%; margin: 6px 0 0; color: var(--muted); }

/* ピアノ・ヒーロー */
.hero-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.hs { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }
.hs b { font-size: 0.95rem; }
.hs small { font: 600 0.8rem var(--en); color: var(--muted); }
.hs .stars { color: var(--gold); font-size: 0.8rem; letter-spacing: 1px; }
.hs-best { font-size: 0.72rem; color: var(--ok); font-weight: 900; }
.hs[aria-pressed='true'] { border-color: var(--gold); background: var(--hl); }
.hero-opts { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 16px 0; }
.hero-opts > div { display: grid; gap: 4px; justify-items: center; }
.hero-stage { background: radial-gradient(120% 140% at 50% 0%, #1b1450 0%, #0a0820 60%, #040310 100%); border-radius: 26px; padding: 16px 14px; color: #eef; box-shadow: var(--shadow-lg); scroll-margin-top: 70px; }
.hero-hud { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.hero-hud h2 { margin: 0; font-family: var(--mincho); font-size: 1.3rem; }
.hero-hud h2 small { font: 600 0.9rem var(--en); color: #b9b3e0; margin-left: 6px; }
.hero-hud p { margin: 4px 0 0; color: #c9c3ea; }
.hero-hud a { color: #ffe7a3; }
.hero-sc { display: flex; gap: 14px; text-align: center; font: 700 0.7rem var(--jp); color: #9d97c9; letter-spacing: 0.1em; }
.hero-sc b { display: block; font: 700 1.7rem/1.1 var(--en); color: #ffe7a3; letter-spacing: 0; }
.hero-prog { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); margin: 10px 0 0; overflow: hidden; }
.hero-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5fd8f2, #f5c04a); }
.hero-play { position: relative; }
.hero-fall { display: block; width: 100%; height: 320px; }
.hero-judge { position: absolute; left: 0; right: 0; top: 38%; text-align: center; font: 900 2rem var(--en); letter-spacing: 0.06em; pointer-events: none; text-shadow: 0 0 18px currentColor; }
.hero-judge.perfect { color: #ffe066; } .hero-judge.great { color: #7cf0b0; } .hero-judge.good { color: #8fd3ff; } .hero-judge.miss { color: #ff7d93; font-size: 1.3rem; }
.hero-kb { height: 170px; }
.hero-result { display: flex; gap: 18px; align-items: center; margin-top: 16px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.07); }
.hero-result .big { font: 900 1.5rem var(--jp); margin: 0; }
.hero-result p { margin: 4px 0; }
.hero-result .tag { background: var(--goldgrad); color: #2a1a05; border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; }
.hero-rank { flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font: 900 3.2rem var(--en); background: var(--goldgrad); color: #2a1a05; box-shadow: 0 0 30px rgba(245, 192, 74, 0.6); }
.hero-rank.r-B, .hero-rank.r-C { background: linear-gradient(135deg, #8fd3ff, #4c6ee6); color: #fff; }

@media (max-width: 900px) {
  .pi-ctrl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .st-hero { min-height: 420px; }
  .st-hero::after { background: linear-gradient(180deg, rgba(14, 6, 22, 0.55) 0%, rgba(14, 6, 22, 0.9) 70%); }
  .pi-ctrl { grid-template-columns: 1fr; }
  .pi-roll { height: 120px; }
  .pk { height: 170px; }
  .pi-stage, .hero-stage { padding: 12px 8px; border-radius: 20px; }
  .pi-chord b { font-size: 1.6rem; }
  .gt-main { grid-template-columns: 1fr; }
  .gt-strum { min-height: 170px; }
  .gb-row { grid-template-columns: 26px 1.12fr 1.06fr 1fr .94fr .89fr .84fr .79fr .75fr .71fr .67fr .63fr .6fr; height: 36px; }
  .gb-mk { grid-template-columns: 26px 1.12fr 1.06fr 1fr .94fr .89fr .84fr .79fr .75fr .71fr .67fr .63fr .6fr; }
  .gb-row::before { left: 22px; }
  .gb-c i { width: 20px; height: 20px; font-size: 0.5rem; }
  .gb-row button { border-right-width: 2px; }
  .hero-fall { height: 250px; }
  .hero-kb { height: 140px; }
  .hero-hud { flex-direction: column; }
  .hero-result { flex-direction: column; text-align: center; }
}
