:root {
  --purple: #670191;
  --deep-purple: #36014c;
  --wine: #660a00;
  --orange: #d35400;
  --ink: #2d2430;
  --line: #d8d0d8;
  --paper: #fffdfa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.035em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--purple); text-underline-offset: 0.2em; }
.nowrap { white-space: nowrap; }

#story,
#menu,
#online,
#profile,
#contact,
#access,
#other-project { scroll-margin-top: 24px; }

body.menu-open { overflow: hidden; }

.menu-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  width: 76px;
  height: 76px;
  padding: 8px;
  color: var(--wine);
  background: rgba(255, 253, 247, 0.95);
  border: 1px solid var(--wine);
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(55, 18, 37, 0.16);
  cursor: pointer;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.menu-toggle::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(177, 132, 45, 0.58);
  border-radius: 50%;
  pointer-events: none;
}

.menu-toggle:hover { transform: translateY(-2px); }
.menu-toggle:focus-visible { outline: 3px solid rgba(103, 1, 145, .28); outline-offset: 4px; }

.menu-icon {
  display: grid;
  gap: 5px;
  width: 25px;
}

.menu-icon i {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .28s ease, opacity .2s ease;
}

.menu-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .18em;
  padding-left: .18em;
}

.menu-toggle.is-open .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open .menu-icon i:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(24, 9, 24, .52);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1050;
  width: min(390px, calc(100% - 36px));
  height: 100dvh;
  overflow-y: auto;
  padding: 92px 38px 42px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(126, 35, 59, .05), transparent 29%),
    #fffdf7;
  border-left: 1px solid rgba(177, 132, 45, .62);
  box-shadow: -14px 0 42px rgba(27, 8, 25, .16);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .36s cubic-bezier(.22, .8, .28, 1), visibility .36s ease;
}

.menu-open .menu-backdrop { opacity: 1; visibility: visible; }
.menu-open .site-menu { transform: translateX(0); visibility: visible; }

.menu-brand { text-align: center; color: var(--wine); }
.menu-brand span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-style: italic;
  line-height: 1.2;
}
.menu-brand small { display: block; margin-top: 7px; font-size: 12px; letter-spacing: .2em; }

.menu-ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 20px;
  color: #a77b2e;
}
.menu-ornament::before,
.menu-ornament::after { content: ""; flex: 1; border-top: 1px solid rgba(167, 123, 46, .55); }
.menu-ornament span { font-size: 13px; }

.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu li { border-bottom: 1px solid rgba(102, 10, 0, .14); }
.site-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 4px;
  color: var(--wine);
  text-decoration: none;
  transition: padding .2s ease, color .2s ease;
}
.site-menu a:hover,
.site-menu a:focus-visible { color: var(--purple); padding-left: 10px; outline: none; }
.site-menu a span { font-size: 15px; font-weight: 700; letter-spacing: .11em; }
.site-menu a small {
  min-width: 0;
  max-width: 58%;
  color: #776d73;
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
  letter-spacing: .05em;
}

.brand-header { background: #fffaf0; }
.brand-header img { width: 100%; height: auto; }

.hero {
  position: relative;
  min-height: 610px;
  background: url("./assets/images/hero.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 8, 13, 0.08), rgba(12, 8, 13, 0.18));
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  writing-mode: vertical-rl;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.hero-copy p {
  margin: 0;
  font-size: clamp(25px, 2.65vw, 32px);
  font-weight: 600;
  letter-spacing: 0.3em;
}
.hero-copy h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: 0.19em; font-weight: 700; }

.section { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 84px 0; }

.chapter {
  position: relative;
  border-top: 1px solid rgba(102, 10, 0, .08);
  border-bottom: 1px solid rgba(102, 10, 0, .08);
}

.chapter-menu {
  background:
    radial-gradient(circle at 8% 18%, rgba(103, 1, 145, .045), transparent 28%),
    radial-gradient(circle at 92% 76%, rgba(177, 132, 45, .055), transparent 30%),
    #f8f5f7;
}

.chapter-profile {
  background: linear-gradient(135deg, #fffdfa 0%, #fbf7f2 58%, #f7f1ef 100%);
}

.closing-chapter {
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), transparent 18%),
    #f4f0eb;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(390px, 1.18fr);
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
}

.story-image { margin: 0; }
.story-image img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

.letter-heading,
.section-heading {
  margin: 0 0 44px;
  font-size: 27px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.letter-heading span { font-size: 47px; }
.purple { color: var(--purple); }
.wine { color: var(--wine); }
.orange { color: var(--orange); }
.section-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.flowing-copy p,
.menu-copy p,
.profile-copy p { margin: 0 0 1.65em; }

.menu-section { padding-top: 55px; }
.menu-section > .section-heading {
  width: min(100%, 520px);
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 88px);
  align-items: start;
  padding: 10px 0 34px;
}

.menu-card {
  position: relative;
  padding: clamp(26px, 3.2vw, 38px);
  background: rgba(255, 253, 250, .88);
  border: 1px solid rgba(102, 10, 0, .11);
  box-shadow: 0 20px 48px rgba(55, 18, 37, .07);
}

.piano-card { margin-top: 72px; }

.menu-image {
  width: calc(100% + 38px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 28px;
}

.reading-card .menu-image { margin-left: -54px; }
.piano-card .menu-image { margin-left: 16px; }

.menu-card h3 { margin: 0 0 28px; font-size: 23px; }
.reading-card h3,
.reading-card strong { color: var(--purple); }
.piano-card h3 { color: var(--wine); }
.menu-copy .lead { color: var(--wine); font-weight: 700; font-size: 19px; }

.course { margin-top: 30px; }
.course h4,
.lesson-price h4 { margin: 0 0 8px; font-size: 20px; }
.course h4 small { font-size: 14px; }
.course p,
.lesson-price p { margin: 0 0 8px; font-weight: 600; }
.lesson-price p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .58em; }
.lesson-detail,
.price-total { white-space: nowrap; }
.price strong,
.lesson-price strong { font-size: 19px; }
.price small,
.lesson-price small { font-size: 13px; }

.availability-section { padding-top: 36px; }

.letter-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto 70px;
  padding: 70px 48px 58px;
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 16%, rgba(177,132,45,.08) 0 1px, transparent 1.7px),
    radial-gradient(circle at 82% 72%, rgba(102,10,0,.05) 0 1px, transparent 1.7px),
    linear-gradient(145deg, #fffdf6, #fff8e8 55%, #fffdf7);
  background-size: 31px 31px, 37px 37px, auto;
  border: 1px solid rgba(102, 10, 0, .48);
  box-shadow:
    inset 0 0 0 8px rgba(255, 253, 247, .94),
    inset 0 0 0 9px rgba(177, 132, 45, .48),
    0 12px 34px rgba(82, 0, 19, .08);
}

.letter-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(177, 132, 45, .34);
  pointer-events: none;
}

.seal-mark {
  position: absolute;
  top: -25px;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #ead9a8;
  background: #7d1730;
  border: 3px double #c7a45a;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(82, 0, 19, .22);
  transform: translateX(-50%);
}

.flower-of-life {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
}

.flower-of-life::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border: 1px solid rgba(234, 217, 168, .78);
  border-radius: 50%;
}

.flower-of-life i {
  position: absolute;
  left: calc(var(--x) * 1px);
  top: calc(var(--y) * 1px);
  width: 11.2px;
  height: 11.2px;
  border: .8px solid #ead9a8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.letter-card h2 { margin: 12px 0; color: var(--wine); font-size: 27px; line-height: 1.55; }
.letter-card p { margin: 24px 0 0; }

.ornament {
  width: min(260px, 70%);
  height: 14px;
  margin: 0 auto;
  border-top: 1px solid rgba(167, 123, 46, .62);
  position: relative;
}

.ornament::after {
  content: "◇";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 12px;
  color: #9c732d;
  background: #fff9eb;
}

.ornament-bottom { transform: rotate(180deg); }

.payment-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px;
  text-align: center;
  border: 1px solid rgba(102, 10, 0, .28);
  background: #fffdf8;
  box-shadow:
    inset 0 0 0 7px #fffdf8,
    inset 0 0 0 8px rgba(177, 132, 45, .28),
    0 8px 24px rgba(82, 0, 19, .04);
}
.payment-card h2 { margin: 0 0 28px; color: var(--wine); font-size: 24px; }
.payment-card p { margin: 18px 0 0; }

.profile-section { padding-top: 62px; }
.profile-inner {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(360px, 1.08fr);
  align-items: center;
  width: min(960px, 100%);
  margin: 0 auto;
}
.profile-visual { position: relative; z-index: 1; transform: translateX(28px); }
.profile-inner h3 { margin: 0 0 22px 18px; color: var(--wine); font-size: 36px; }
.profile-inner img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 42px rgba(82, 0, 19, .11); }
.profile-copy {
  width: 100%;
  padding: 54px 48px 42px 76px;
  background: rgba(255, 253, 250, .82);
  border-left: 1px solid rgba(177, 132, 45, .48);
  box-shadow: 0 16px 42px rgba(82, 0, 19, .05);
}
.profile-nowrap { white-space: nowrap; }

.contact-section { padding-top: 68px; padding-bottom: 64px; }
.contact-intro,
.contact-form { width: min(760px, 100%); margin: 0 auto; }
.contact-intro { margin-bottom: 36px; }
.contact-intro p { margin: 0 0 24px; }

.contact-form { padding: 38px 42px; background: #fff; border: 1px solid #e2dce1; }
.form-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 0;
  padding: 14px 0;
  border: 0;
}

.form-row > label,
.form-row > legend,
.form-row > .form-label { padding-top: 8px; font-weight: 600; }
.required > label::after,
.required > legend::after,
.required > .form-label::after { content: " *"; color: #a31131; }
.form-row legend small,
.form-label small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; }

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8c0c7;
  border-radius: 2px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

textarea { resize: vertical; }
input:focus,
select:focus,
textarea:focus { outline: 2px solid rgba(103, 1, 145, 0.24); border-color: var(--purple); }
.inline-option { display: block; margin-top: 8px; font-size: 13px; }
.option-group { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 8px; }
.choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 2px;
}
.choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 13px;
  color: #5f505b;
  background: #fffdfa;
  border: 1px solid #d3c9d0;
  border-radius: 3px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.choice-group label:nth-child(3) { grid-column: 1 / -1; }
.choice-group label:hover { border-color: rgba(103, 1, 145, .55); }
.choice-group label:has(input:checked) {
  color: var(--purple);
  background: #f7f0f8;
  border-color: var(--purple);
  box-shadow: inset 0 0 0 1px rgba(103, 1, 145, .1);
}
.choice-group input { margin: 0; accent-color: var(--purple); }
.form-control { min-width: 0; }
.form-help {
  margin: 8px 0 0;
  color: #71656f;
  font-size: 12px;
  line-height: 1.7;
}
.form-submit { text-align: center; padding-top: 28px; }
.form-submit button {
  min-width: 210px;
  padding: 12px 30px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: var(--purple);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.form-note { margin: 12px 0 0; color: #71656f; font-size: 12px; }
.reply-note {
  margin: 24px auto 0;
  padding-top: 18px;
  max-width: 520px;
  text-align: left;
  color: #665b63;
  border-top: 1px solid #e4dde2;
  font-size: 12px;
  line-height: 1.8;
}

.social-section,
.access-section { text-align: center; }
.closing-grid {
  display: grid;
  grid-template-columns: minmax(260px, .76fr) minmax(390px, 1.24fr);
  align-items: center;
  gap: 48px;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 84px;
  border-top: 1px solid rgba(102, 10, 0, .18);
}
.closing-grid .section { width: 100%; margin: 0; padding: 58px 0 0; }
.social-section { padding-right: 38px !important; border-right: 1px solid rgba(177, 132, 45, .3); }
.social-section img { width: 232px; margin: 0 auto 28px; }
.social-section p { margin: 18px 0; }
.access-section { padding-left: 12px !important; }
.access-section img { width: min(640px, 100%); margin: 0 auto 36px; }
.access-section p { margin: 22px 0; }

.project-divider { width: min(860px, calc(100% - 48px)); border: 0; border-top: 1px solid #81747c; margin: 20px auto 0; }
.other-project {
  text-align: center;
}
.project-content { width: min(640px, 100%); margin: 0 auto; }
.other-project img { width: min(100%, 520px); margin: 0 auto 32px; }
.other-project h2 { margin: 0 0 28px; font-size: 27px; }
.other-project p { margin: 0 0 32px; }
.project-button {
  display: inline-block;
  min-width: 210px;
  padding: 11px 28px;
  color: #fff;
  background: #000f69;
  text-decoration: none;
}

footer { padding: 30px 24px; text-align: center; font-size: 14px; border-top: 1px solid #eee8eb; }

@media (max-width: 760px) {
  body { font-size: 15px; line-height: 1.9; }
  .brand-header img { min-height: 132px; object-fit: cover; }
  .menu-toggle { top: 14px; right: 14px; width: 64px; height: 64px; gap: 6px; }
  .menu-icon { width: 21px; gap: 4px; }
  .menu-toggle.is-open .menu-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-toggle.is-open .menu-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .site-menu { width: min(350px, calc(100% - 24px)); padding: 82px 25px 34px; }
  .site-menu a { padding: 16px 2px; }
  .hero { min-height: 500px; background-position: center; }
  .hero-copy { gap: 22px; }
  .hero-copy p { font-size: 23px; letter-spacing: .27em; }
  .hero-copy h1 { font-size: 30px; }
  .section { width: min(100% - 34px, 650px); padding: 62px 0; }
  .story-grid,
  .menu-grid { grid-template-columns: 1fr; }
  .story-grid { width: min(88%, 520px); margin: 0 auto; gap: 42px; }
  .story-image { width: min(82%, 390px); margin: 0 auto; }
  .letter-heading { margin-bottom: 32px; }
  .menu-grid { width: min(100%, 520px); margin: 0 auto; gap: 72px; padding-bottom: 8px; }
  .menu-card { width: 100%; margin: 0 auto; padding: 28px 24px; }
  .piano-card { margin-top: 0; }
  .menu-image,
  .reading-card .menu-image,
  .piano-card .menu-image { width: 100%; margin-left: 0; }
  .letter-card { padding: 60px 26px 48px; }
  .letter-card h2 { font-size: 24px; }
  .payment-card { padding: 38px 24px; }
  .profile-inner { grid-template-columns: 1fr; width: min(100%, 580px); }
  .profile-visual { transform: none; }
  .profile-inner h3 { margin: 0 0 22px; text-align: center; font-size: 32px; }
  .profile-inner img { border-radius: 12px 12px 0 0; box-shadow: none; }
  .profile-copy { padding: 38px 30px 28px; border-top: 1px solid rgba(177, 132, 45, .48); border-left: 0; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 6px; }
  .form-row > label,
  .form-row > legend,
  .form-row > .form-label { padding-top: 0; }
  .choice-group { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .choice-group label { width: 100%; }
  .choice-group label:nth-child(3) { grid-column: auto; }
  .closing-grid { grid-template-columns: 1fr; width: min(100% - 34px, 650px); gap: 0; padding-bottom: 62px; }
  .closing-grid .section { padding-top: 52px; }
  .social-section { padding-right: 0 !important; padding-bottom: 52px !important; border-right: 0; border-bottom: 1px solid rgba(177, 132, 45, .3); }
  .access-section { padding-left: 0 !important; }
  .other-project img { width: min(100%, 520px); margin-bottom: 28px; }
}

@media (max-width: 420px) {
  .section { width: calc(100% - 28px); }
  .story-copy,
  .menu-copy,
  .contact-intro { padding: 0 4px; }
  .profile-copy { padding: 32px 10px 24px; }
  .profile-nowrap {
    font-size: inherit;
    letter-spacing: -0.015em;
  }
  .menu-card h3 { font-size: 21px; }
  .course h4,
  .lesson-price h4 { font-size: 18px; }
  .letter-card { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 370px) {
  .profile-copy { font-size: clamp(11px, 3.75vw, 14px); }
}
