/* きりしまミュージックスクール — site styles */
:root {
  --blue: #384ad3;
  --blue-deep: #2a38a8;
  --orange: #ed5829;
  --coral: #f3a78f;
  --peach: #f9c5b4;
  --sand: #f4ebe4;
  --ink: #1c1c1c;
  --muted: #5c5c5c;
  --paper: #fbf7f3;
  --white: #ffffff;
  --line: #e6ded6;
  --shadow: 0 18px 40px rgba(28, 28, 28, 0.08);
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --max: 1100px;
  --header-h: 4.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(243, 167, 143, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(56, 74, 211, 0.08), transparent 50%),
    var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--orange); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(251, 247, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(28, 28, 28, 0.04);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.logo img {
  height: 2.35rem;
  width: auto;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--ink);
  background: var(--white);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  color: #fff !important;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .nav.is-open { display: flex; }
  .nav-cta { text-align: center; }
}

/* Layout */
.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}
.section-tight { padding: 3.25rem 0; }

.eyebrow {
  margin: 0 0 0.65rem;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 40rem;
}

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: #d4481d; color: #fff; }
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.78) 0%, rgba(20, 18, 16, 0.45) 48%, rgba(20, 18, 16, 0.2) 100%),
    linear-gradient(0deg, rgba(20, 18, 16, 0.55) 0%, transparent 45%);
}
.hero-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0 4.25rem;
}
.hero-brand {
  display: block;
  width: min(280px, 70vw);
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: rise 0.9s 0.1s ease forwards;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: rise 0.9s 0.25s ease forwards;
}
.hero-sub {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: rise 0.9s 0.4s ease forwards;
}
.hero .btn-row {
  opacity: 0;
  animation: rise 0.9s 0.55s ease forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.about-copy p { margin: 0 0 1rem; color: var(--muted); }
.about-copy p:last-child { margin-bottom: 0; }
.about-photo {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin-inline: auto; aspect-ratio: 5 / 4; }
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue), #5a6ef0 55%, #7b8af5);
  color: #fff;
  padding: 2.75rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
}
.cta-band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
}
.cta-band p {
  margin: 0;
  opacity: 0.92;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--blue);
}
.cta-band .btn-primary:hover {
  background: var(--peach);
  color: var(--ink);
}

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.course-link {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  border-radius: 1.1rem;
  overflow: hidden;
  min-height: 240px;
  isolation: isolate;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.course-link:hover { transform: translateY(-4px); }
.course-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.45s ease;
}
.course-link:hover img { transform: scale(1.06); }
.course-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(16, 16, 20, 0.82) 100%);
}
.course-link span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .course-grid { grid-template-columns: 1fr; }
}

.bridge {
  margin: 2.5rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* Features */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature {
  padding: 0.25rem 0.25rem 0;
}
.feature h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue);
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.feature-num {
  display: inline-block;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

@media (max-width: 800px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Experience */
.experience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: #141414;
  color: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
}
.experience-copy { padding: 2.25rem 2rem; }
.experience-copy .eyebrow { color: var(--coral); }
.experience-copy .section-title { color: #fff; }
.experience-copy p { color: rgba(255, 255, 255, 0.78); }
.experience-photo {
  min-height: 320px;
  height: 100%;
}
.experience-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
}

@media (max-width: 800px) {
  .experience { grid-template-columns: 1fr; }
  .experience-photo { min-height: 240px; order: -1; }
}

/* Teachers */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.teacher {
  text-decoration: none;
  color: inherit;
}
.teacher-photo {
  border-radius: 1.1rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
}
.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.teacher:hover .teacher-photo img { transform: scale(1.04); }
.teacher h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.teacher p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 800px) {
  .teacher-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(243, 167, 143, 0.18));
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.contact-info p { margin: 0.35rem 0; color: var(--muted); }
.contact-info a { font-weight: 700; }

.contact-form {
  display: grid;
  gap: 0.85rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(56, 74, 211, 0.35);
  border-color: var(--blue);
}
.contact-form textarea { min-height: 7rem; resize: vertical; }
.contact-form .btn { width: fit-content; border: none; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2rem;
  background:
    linear-gradient(120deg, rgba(56, 74, 211, 0.08), rgba(237, 88, 41, 0.08));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
}
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* Course detail blocks */
.course-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.course-block:nth-child(even) { direction: rtl; }
.course-block:nth-child(even) > * { direction: ltr; }
.course-block-photo {
  border-radius: 1.1rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.course-block-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-block h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--blue);
}
.course-block p { margin: 0 0 0.85rem; color: var(--muted); }
.points {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  background: rgba(56, 74, 211, 0.05);
  border-left: 3px solid var(--blue);
  border-radius: 0 0.75rem 0.75rem 0;
}
.points h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--orange);
}
.points ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.points li { margin: 0.25rem 0; }

@media (max-width: 800px) {
  .course-block,
  .course-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .course-block-photo { max-width: 420px; aspect-ratio: 5 / 4; }
}

/* Fees */
.fee-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 2rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}
.fee-table th,
.fee-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.fee-table th {
  background: rgba(56, 74, 211, 0.08);
  font-weight: 800;
}
.fee-table tr:last-child td { border-bottom: 0; }
.fee-note {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.65rem 1rem;
  background: var(--sand);
  border-radius: 999px;
  font-weight: 800;
  color: var(--orange);
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q.";
  color: var(--blue);
  margin-right: 0.4rem;
}
.faq details[open] summary { margin-bottom: 0.55rem; }
.faq details p {
  margin: 0;
  color: var(--muted);
}

/* PA page */
.pa-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.pa-service h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: var(--blue);
}
.pa-service p { margin: 0; color: var(--muted); }
.pa-price {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #141414;
  color: #fff;
  border-radius: 1.1rem;
}
.pa-price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  margin-top: 0.35rem;
  color: var(--coral);
}

@media (max-width: 700px) {
  .pa-services { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: #141414;
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.site-footer .logo-text,
.site-footer .logo { color: #fff; }
.site-footer .logo img {
  filter: brightness(0) invert(1);
  height: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.footer-links a:hover { color: var(--coral); }
.copy {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
