:root {
    color-scheme: dark;
    --background: #080d1d;
    --surface: #10182c;
    --text: #f4f6fc;
    --secondary: #b8c1d4;
    --muted: #a1acc3;
    --line: #28344d;
    --gold: #ffd24a;
    --cyan: #58dcf4;
    --pink: #ff8da8;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }

.container { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link:focus {
    position: fixed;
    z-index: 2;
    inset: 16px auto auto 16px;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--surface);
}

.site-header { border-bottom: 1px solid #202a41; }
.header-inner, .footer-inner, .contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.header-inner { min-height: 78px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.23rem;
    font-weight: 750;
    letter-spacing: -.045em;
    white-space: nowrap;
}
.brand img { flex: none; border: 1px solid #2f3853; border-radius: 10px; }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.site-header nav a { color: var(--secondary); padding-block: 11px; font-size: .85rem; font-weight: 650; white-space: nowrap; }
.site-header nav a:hover, .footer-link:hover { color: var(--text); }
.site-header .nav-contact { padding-inline: 17px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); }
.site-header .nav-contact:hover { border-color: var(--cyan); }

.hero {
    display: grid;
    grid-template-columns: .87fr 1.13fr;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    padding-block: 70px 76px;
}
.hero h1 { font-size: clamp(4rem, 7.3vw, 7.35rem); font-weight: 780; line-height: .89; letter-spacing: -.085em; }
.hero-tagline {
    display: block;
    margin-top: 17px;
    color: var(--cyan);
    font-size: clamp(1.45rem, 3.15vw, 2.88rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -.05em;
}
.hero-intro { max-width: 39ch; margin-top: 26px; color: var(--secondary); font-size: clamp(.98rem, 1.34vw, 1.1rem); line-height: 1.95; line-break: strict; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 22px; margin-top: 30px; }
.platforms { color: var(--muted); font-size: .84rem; font-weight: 650; white-space: nowrap; }
.button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.3;
    transition: background-color 160ms, border-color 160ms;
}
.button span { font-size: 1.04rem; }
.button-primary { background: var(--gold); color: #171004; }
.button-primary:hover { background: #ffe07c; }
.button-secondary { color: var(--text); border-color: #485775; }
.button-secondary:hover { background: #202c46; border-color: var(--secondary); }

.hero-art, .practice-art {
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #26324e;
    border-radius: 23px;
    background: #090f21;
}
.hero-art { aspect-ratio: 1.27; box-shadow: 0 18px 80px #02050e80; }
.hero-art img, .practice-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art img { object-position: center; }

.section { padding-block: 73px; }
.features { border-block: 1px solid #202a41; background: #0c1224; }
.section-heading { margin-bottom: 29px; }
.section-label { color: var(--cyan); font-size: .77rem; font-weight: 750; letter-spacing: .15em; }
h2 { font-size: clamp(1.95rem, 4vw, 3.5rem); font-weight: 770; line-height: 1.24; letter-spacing: -.05em; }
.section-label + h2 { margin-top: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.feature-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(18px, 2.5vw, 29px);
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(150deg, #162038, var(--surface) 68%);
}
.feature-tempo { --accent: var(--gold); }
.feature-stems { --accent: var(--cyan); }
.feature-pitch { --accent: var(--pink); }
.feature-card h3, .repeat-strip h3 { font-size: 1.24rem; font-weight: 750; letter-spacing: -.025em; }
.feature-card > p, .repeat-strip p { color: var(--secondary); font-size: .91rem; line-height: 1.8; }
.feature-card > p { margin-top: 10px; margin-bottom: 22px; }
.feature-detail { min-height: 108px; margin: auto 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.metric { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; color: var(--accent); }
.metric > span { font-size: clamp(1.35rem, 2.4vw, 1.95rem); font-weight: 750; line-height: 1.15; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-unit { margin-left: 3px; font-size: .56em; }
.metric small { color: var(--muted); font-size: .7rem; }
.tempo-scale { position: relative; height: 5px; margin-top: 16px; border-radius: 10px; background: linear-gradient(90deg, #ff9f38, #ffd24a 37.5%, #414963 37.5%); }
.tempo-scale span { position: absolute; inset: 50% auto auto 37.5%; width: 11px; height: 11px; border: 2px solid #151c2f; border-radius: 50%; background: var(--gold); transform: translate(-50%, -50%); }
.scale-labels { display: grid; grid-template-columns: 37.5% 1fr; grid-template-rows: auto; margin-top: 7px; color: var(--muted); font-size: .66rem; }
.scale-labels span:nth-child(2) { grid-area: 1 / 2; justify-self: start; transform: translateX(-50%); }
.scale-labels span:last-child { grid-area: 1 / 2; justify-self: end; }
.stem-detail { min-inline-size: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 7px; }
.stem-detail label {
    display: grid;
    min-height: 39px;
    place-items: center;
    border: 1px solid #384660;
    border-radius: 6px;
    color: var(--secondary);
    cursor: pointer;
    font-size: .76rem;
    font-weight: 690;
    white-space: nowrap;
}
.stem-detail label:hover { border-color: var(--cyan); }
.stem-detail input:checked + label { border-color: #367a96; background: #163c50; color: #9beeff; }
.stem-detail input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; }
.stem-options { grid-column: 1 / -1; color: var(--secondary); font-size: .76rem; line-height: 1.55; }
.stem-options p { display: none; }
#stem-2:checked ~ .stem-options .stem-two,
#stem-4:checked ~ .stem-options .stem-four,
#stem-6:checked ~ .stem-options .stem-six { display: block; }
.pitch-keys { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px; height: 24px; margin-top: 12px; }
.pitch-keys span { border: 1px solid #3a4160; border-radius: 3px; background: #252d47; }
.pitch-keys span:nth-child(7) { border-color: #ff8da8; background: #ff8da8; }
.pitch-keys span:nth-child(6), .pitch-keys span:nth-child(8) { border-color: #9e576f; background: #694055; }

.repeat-strip { display: flex; align-items: center; gap: 18px; margin-top: 15px; padding: 19px 25px; border: 1px solid var(--line); border-radius: 13px; background: #111a2e; }
.repeat-strip p { margin-top: 3px; }
.repeat-symbol { display: inline-flex; flex: none; gap: 6px; align-items: center; padding: 10px 12px; border: 1px solid #3e4d72; border-radius: 8px; color: #b8cfff; font-size: .93rem; font-weight: 750; }
.repeat-symbol span { color: #91a7d5; }

.practice { padding-block: 92px; }
.practice-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(30px, 7vw, 104px); }
.practice-art { aspect-ratio: 1.28; }
.practice-art img { object-position: 58% center; }
.practice-list { display: grid; gap: 15px; margin-top: 26px; }
.practice-list div { padding-left: 14px; border-left: 2px solid var(--gold); }
.practice-list div:nth-child(2) { border-color: var(--cyan); }
.practice-list div:nth-child(3) { border-color: var(--pink); }
.practice-list dt { font-size: .94rem; font-weight: 750; }
.practice-list dd { margin-top: 3px; color: var(--secondary); font-size: .88rem; line-height: 1.7; }

.name-origin { padding-block: clamp(30px, 4.5vw, 54px); border-top: 1px solid #202a41; }
.name-origin h2 { font-size: clamp(1.4rem, 2.7vw, 1.9rem); }
.name-origin p { max-width: 48em; margin-top: 10px; color: var(--secondary); font-size: .91rem; line-height: 1.8; }

.contact { padding-block: 48px; border-block: 1px solid #26334e; background: linear-gradient(115deg, #121e37, #0e162a 70%); }
.contact h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
.contact p { margin-top: 8px; color: var(--secondary); font-size: .91rem; line-height: 1.7; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-inner { min-height: 92px; }
.footer-inner .brand { font-size: 1rem; }
.footer-inner .brand img { border-radius: 8px; }
.footer-link { color: var(--secondary); font-size: .82rem; font-weight: 650; }
.footer-link span { margin-left: 5px; }

@media (max-width: 1000px) {
    .container { width: calc(100% - 72px); }
    .hero { padding-block: 57px 62px; }
    .hero h1 { font-size: clamp(3.75rem, 8.8vw, 6rem); }
    .hero-art { aspect-ratio: 1.02; }
    .section { padding-block: 60px; }
}

@media (max-width: 760px) {
    .container { width: calc(100% - 40px); }
    .header-inner { min-height: 63px; }
    .site-header nav { gap: 13px; }
    .site-header nav a { font-size: .77rem; }
    .site-header .nav-contact { padding-inline: 9px; }
    .brand { gap: 7px; font-size: 1.04rem; }
    .site-header .brand img { width: 33px; height: 33px; border-radius: 8px; }
    .hero, .practice-grid { grid-template-columns: minmax(0, 1fr); }
    .hero { gap: 28px; padding-block: 45px 38px; }
    .hero h1 { font-size: clamp(3.65rem, 12vw, 6rem); }
    .hero-tagline { margin-top: 10px; font-size: clamp(1.53rem, 5vw, 2.48rem); }
    .hero-intro { margin-top: 19px; }
    .hero-actions { margin-top: 21px; }
    .hero-art { aspect-ratio: 1.47; }
    .hero-art, .practice-art { border-radius: 15px; }
    .section { padding-block: 42px; }
    .section-heading { margin-bottom: 21px; }
    .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
    .feature-card { padding: 18px 19px; }
    .feature-card > p { margin-bottom: 15px; }
    .feature-detail { min-height: 88px; }
    .repeat-strip { margin-top: 11px; padding: 14px; gap: 10px; }
    .repeat-symbol { padding: 8px; }
    .practice-grid { gap: 25px; }
    .practice-art { aspect-ratio: 1.47; }
    .contact-inner { align-items: flex-start; flex-direction: column; gap: 17px; }
    .contact { padding-block: 34px; }
    .footer-inner { min-height: 72px; }
}

@media (max-width: 385px) {
    .container { width: calc(100% - 32px); }
    .header-inner { gap: 8px; }
    .site-header nav { gap: 8px; }
    .site-header nav a { font-size: .7rem; }
    .site-header .nav-contact { padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
