/* ベルリン音楽教室 ------------------------------------------------ */

:root {
  --bg: #fafaf8;
  --bg-alt: #f2f2ef;
  --ink: #2b2b2b;
  --ink-soft: #6b6b6b;
  --line: #e2e2dd;
  --accent: #1f3a5f;
  --accent-dark: #16293f;
  --measure: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  font-feature-settings: "palt";
}

h1, h2, h3, h4 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Layout ---------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.measure { max-width: var(--measure); }

section { padding: 7.5rem 0; }
section + section { padding-top: 0; }

.section-alt {
  background: var(--bg-alt);
  padding: 7.5rem 0;
}
section + .section-alt { padding-top: 7.5rem; }

.stack > * + * { margin-top: 2rem; }
.stack-tight > * + * { margin-top: 1rem; }

/* Header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: .9rem;
}

.nav a { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .5rem .8rem;
  font: inherit;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
}

/* Hero ------------------------------------------------------------ */

.hero { padding: 6rem 0 7rem; }

.hero .eyebrow {
  font-size: .9rem;
  color: var(--ink-soft);
  letter-spacing: .08em;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  letter-spacing: .01em;
  margin-bottom: 2rem;
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.75rem;
}

.hero-figure {
  margin-top: 4.5rem;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero-figure img { width: 100%; }

/* Typography blocks ----------------------------------------------- */

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin-bottom: 2.5rem;
}

.sub-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.note {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.pull {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.85;
  margin: 0;
}

/* Buttons --------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  transition: background .18s ease;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }

.btn-quiet {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: .9rem 2.2rem;
  border-radius: 4px;
  font-size: .95rem;
  transition: background .18s ease, color .18s ease;
}
.btn-quiet:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* Course list ----------------------------------------------------- */

.courses { border-top: 1px solid var(--line); }

.course {
  display: grid;
  grid-template-columns: 13rem 1fr auto;
  gap: 2.5rem;
  align-items: baseline;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.course h3 { font-size: 1.2rem; }

.course .desc {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.85;
}

.course .price {
  font-size: .95rem;
  white-space: nowrap;
  color: var(--ink);
}

.course .price small {
  display: block;
  font-size: .8rem;
  color: var(--ink-soft);
  white-space: normal;
}

/* Feature list ---------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 3rem 3.5rem;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: .75rem;
}

.feature p {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* Teacher --------------------------------------------------------- */

.teacher {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 3.5rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.teacher:last-child { border-bottom: none; }

.teacher-photo {
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}

.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }

.teacher h3 { font-size: 1.35rem; margin-bottom: .4rem; }

.teacher .role {
  font-size: .875rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.teacher h4 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 2rem 0 .6rem;
}

.teacher ul { margin: 0; padding-left: 1.15rem; }
.teacher li { font-size: .95rem; line-height: 1.9; }

/* Definition rows -------------------------------------------------- */

.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}

.row dt { color: var(--ink-soft); }
.row dd { margin: 0; }

/* FAQ -------------------------------------------------------------- */

.qa { border-top: 1px solid var(--line); }

.qa details {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  padding: 1.5rem 2.5rem 1.5rem 0;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  list-style: none;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "+";
  position: absolute;
  right: .25rem;
  top: 1.4rem;
  font-size: 1.25rem;
  color: var(--ink-soft);
  line-height: 1;
}

.qa details[open] summary::after { content: "\2212"; }

.qa .answer {
  padding: 0 2.5rem 1.75rem 0;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* Steps ----------------------------------------------------------- */

.steps { counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: "Noto Serif JP", serif;
  font-size: 1.4rem;
  color: var(--ink-soft);
  line-height: 1.2;
}

.step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step p { font-size: .95rem; color: var(--ink-soft); }

/* CTA -------------------------------------------------------------- */

.cta {
  background: var(--accent);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 1.5rem;
}

.cta p {
  color: rgba(255, 255, 255, .82);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.cta .btn {
  background: #fff;
  color: var(--accent);
}
.cta .btn:hover { background: rgba(255, 255, 255, .88); }

/* Footer ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 3rem;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  font-size: .875rem;
}

.footer-nav a { color: var(--ink); }

.site-footer address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 2;
}

.copyright {
  color: var(--ink-soft);
  font-size: .8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* Utilities -------------------------------------------------------- */

.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .2rem .7rem;
  font-size: .8rem;
  color: var(--ink-soft);
  margin: 0 .4rem .4rem 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.center { text-align: center; }

/* Responsive ------------------------------------------------------- */

@media (max-width: 860px) {
  .teacher { grid-template-columns: 11rem 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }

  section, .section-alt { padding: 5rem 0; }
  section + section { padding-top: 0; }
  section + .section-alt { padding-top: 5rem; }

  .hero { padding: 3.5rem 0 4.5rem; }
  .hero-figure { margin-top: 3rem; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.5rem;
  }

  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; width: 100%; }

  .nav-toggle { display: block; }

  .course {
    grid-template-columns: 1fr;
    gap: .75rem;
    padding: 2rem 0;
  }

  .course .price { white-space: normal; }

  .teacher {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 3rem 0;
  }

  .teacher-photo { max-width: 13rem; }

  .row { grid-template-columns: 1fr; gap: .35rem; padding: 1.25rem 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .features { gap: 2.5rem; }

  .step { grid-template-columns: 2.25rem 1fr; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Forms ----------------------------------------------------------- */

.form-field { margin-bottom: 2rem; }

.form-field label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: .6rem;
}

.form-field .req {
  display: inline-block;
  font-size: .7rem;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: .05rem .4rem;
  margin-left: .5rem;
  vertical-align: 1px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .85rem 1rem;
  transition: border-color .18s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form-field textarea { resize: vertical; line-height: 1.8; }

button.btn {
  border: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
