:root {
  --ink: #f7f3ec;
  --muted: #b8aea2;
  --paper: #0d0d0f;
  --ivory: #171719;
  --white: #ffffff;
  --rose: #c7a66b;
  --rose-dark: #e2c78f;
  --gold: #d9b872;
  --gold-soft: #2d2618;
  --mode-blue: #1257d8;
  --blue-ice: #65a5ff;
  --blue-shadow: rgba(18, 87, 216, 0.38);
  --sage: #242826;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.095);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(18, 87, 216, 0.12), transparent 28%),
    radial-gradient(circle at 76% 4%, rgba(199, 166, 107, 0.17), transparent 30%),
    linear-gradient(180deg, #0b0b0d 0%, #111113 48%, #080809 100%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(11, 18, 31, 0.58), transparent 36%),
    rgba(8, 8, 9, 0.86);
  backdrop-filter: blur(14px);
}

.site-header > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #121212;
  background: linear-gradient(135deg, #f1dfb5, #a9843c);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px clamp(12px, 2vw, 20px);
  color: #cfc6bb;
  font-size: 0.94rem;
}

.site-nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: var(--blue-ice);
  color: #e4efff;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100svh - 64px));
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(34px, 6vw, 82px) clamp(18px, 6vw, 84px) clamp(52px, 7vw, 96px);
  overflow: hidden;
}

.hero > * {
  min-width: 0;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 13, 15, 0.98) 0%, rgba(13, 13, 15, 0.9) 45%, rgba(13, 13, 15, 0.58) 100%),
    radial-gradient(circle at 78% 26%, rgba(18, 87, 216, 0.26), transparent 30%),
    radial-gradient(circle at 20% 18%, rgba(199, 166, 107, 0.2), transparent 32%);
  content: "";
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18px;
  background: repeating-linear-gradient(90deg, #f0eee8 0 9%, #111 9% 11%, #f0eee8 11% 20%);
  content: "";
}

.hero-visual {
  position: relative;
  isolation: isolate;
  order: 2;
  align-self: stretch;
  min-height: 430px;
}

.hero-visual::before {
  position: absolute;
  inset: -1px;
  z-index: 1;
  border: 1px solid rgba(101, 165, 255, 0.3);
  background:
    linear-gradient(135deg, rgba(101, 165, 255, 0.17), transparent 34%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.08), transparent 38%);
  content: "";
  pointer-events: none;
}

.hero-piano {
  width: 100%;
  height: 100%;
  min-height: 430px;
  margin-inline: auto;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  box-shadow: var(--shadow);
  filter: saturate(0.78) contrast(1.12);
  scale: 1.02;
  translate: 0 var(--hero-parallax, 0px);
  animation: hero-drift 18s ease-in-out infinite alternate;
  will-change: scale, translate;
}

.hero-copy {
  order: 1;
  min-width: 0;
  max-width: 640px;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid rgba(101, 165, 255, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(18, 87, 216, 0.14), rgba(255, 255, 255, 0.045));
  box-shadow: 0 0 28px rgba(18, 87, 216, 0.14);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.lead {
  max-width: 42rem;
  margin: 24px 0;
  color: #d3c9bb;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid rgba(217, 184, 114, 0.74);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.26),
    0 0 30px rgba(18, 87, 216, 0.14);
}

.button.primary {
  color: #101012;
  background: linear-gradient(135deg, #ead6a4, #b99046);
}

.button.secondary {
  color: #f0d99d;
  background: rgba(255, 255, 255, 0.035);
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.summary article {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  background: #101012;
}

.summary article::after {
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: rgba(217, 184, 114, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.2rem;
  line-height: 1;
  content: "♪";
}

.summary-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 800;
}

.summary p,
.price-card p,
.trial-grid p,
.course-grid p,
.info-grid p,
.faq p,
.note-panel li,
.fine-print {
  color: var(--muted);
}

.section {
  padding: clamp(52px, 8vw, 98px) clamp(18px, 6vw, 84px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head p:last-child {
  color: var(--muted);
}

.trial-section {
  background:
    radial-gradient(circle at 82% 12%, rgba(18, 87, 216, 0.11), transparent 30%),
    linear-gradient(135deg, rgba(20, 20, 22, 0.98), rgba(12, 12, 14, 0.98)),
    linear-gradient(90deg, rgba(217, 184, 114, 0.08), transparent);
}

.trial-grid,
.course-grid,
.local-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.trial-grid article,
.course-grid article,
.local-grid article {
  position: relative;
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.trial-grid article:hover,
.course-grid article:hover,
.local-grid article:hover,
.price-card:hover {
  transform: translateY(-2px);
  border-color: rgba(101, 165, 255, 0.34);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(18, 87, 216, 0.1);
}

.course-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.local-section {
  background:
    radial-gradient(circle at 18% 22%, rgba(18, 87, 216, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(33, 36, 35, 0.98), rgba(12, 12, 14, 0.98));
}

.local-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.local-grid p {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.note-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 36px);
  border-left: 6px solid var(--mode-blue);
  background:
    radial-gradient(circle at 84% 18%, rgba(18, 87, 216, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.note-panel ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 18px;
}

.price-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.price-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-ice), #f0d99d, #8e6d31);
  content: "";
}

.price-card h3 {
  min-height: 2.7em;
}

.price {
  margin: 8px 0 14px;
  color: #f1dca8;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.2;
}

.fine-print {
  margin-top: 18px;
  font-size: 0.92rem;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.fee-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  text-align: left;
}

.fee-table th,
.fee-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.fee-table thead th {
  color: #111;
  background: linear-gradient(135deg, #ead6a4, #b99046);
}

.fee-table tbody th {
  color: #f1dca8;
  white-space: nowrap;
}

.fee-table tbody tr:last-child th,
.fee-table tbody tr:last-child td {
  border-bottom: 0;
}

.detail-section {
  position: relative;
  margin-inline: clamp(18px, 6vw, 84px);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

section[id="detail"] {
  padding-block: clamp(34px, 5vw, 58px);
}

section[id="detail"] + section[id="detail"] {
  margin-top: 14px;
}

section[id="detail"] p {
  max-width: 760px;
  color: var(--muted);
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: var(--rose-dark);
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
  color: var(--muted);
}

.keyboard-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-height: 260px;
  border: 10px solid #050505;
  border-radius: 2px;
  background: #050505;
  box-shadow: var(--shadow);
}

.keyboard-strip span {
  position: relative;
  border-right: 1px solid #d7d2ca;
  background: linear-gradient(#f8f6f0, #cfc8bd);
}

.keyboard-strip span:nth-child(2)::before,
.keyboard-strip span:nth-child(3)::before,
.keyboard-strip span:nth-child(5)::before,
.keyboard-strip span:nth-child(6)::before,
.keyboard-strip span:nth-child(7)::before {
  position: absolute;
  top: 0;
  left: -28%;
  width: 55%;
  height: 58%;
  border-radius: 0 0 5px 5px;
  background: #1f1b18;
  content: "";
}

.info-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.info-grid > * {
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
}

.info-grid > div {
  background: var(--sage);
  color: #fff;
}

.info-grid > div .section-label {
  color: #f6e6c6;
}

.faq {
  max-width: 1040px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.035);
}

details {
  border-top: 1px solid var(--line);
  background: transparent;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 800;
}

summary::marker {
  color: var(--gold);
}

details p {
  margin: 0 0 20px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

details[open] p {
  opacity: 1;
  transform: translateY(0);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: clamp(44px, 7vw, 80px) clamp(18px, 6vw, 84px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(4, 4, 5, 0.98), rgba(18, 16, 13, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 60px);
}

.contact .section-label {
  color: var(--gold);
}

.contact p {
  color: #d6cbbd;
}

.contact-list {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-list a,
.contact-list span {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.04);
}

.contact-list a:hover {
  border-color: rgba(216, 169, 77, 0.72);
  background: rgba(216, 169, 77, 0.12);
}

.site-footer {
  padding: 22px clamp(18px, 6vw, 84px);
  color: var(--muted);
  background: #050505;
}

.site-footer p {
  margin: 0;
  color: #c8bfb2;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms ease,
    border-color 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-drift {
  from {
    scale: 1.02;
  }

  to {
    scale: 1.07;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .local-grid {
    max-width: none;
  }

  .hero,
  .two-column,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .hero-copy {
    order: 2;
  }

  .summary,
  .trial-grid,
  .course-grid,
  .local-grid,
  .price-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  .brand {
    font-size: 1.05rem;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    padding: 8px 0;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  h1 {
    max-width: 9.6em;
    font-size: clamp(1.85rem, 7.6vw, 2.12rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    line-break: anywhere;
    text-wrap: wrap;
    white-space: normal;
    word-break: break-all;
  }

  .lead {
    font-size: 0.98rem;
    max-width: 19.5em;
    overflow-wrap: anywhere;
    line-break: strict;
    text-wrap: wrap;
    white-space: normal;
    word-break: normal;
  }

  .hero-visual,
  .hero-piano {
    min-height: 230px;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .keyboard-strip {
    min-height: 190px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
