:root {
  --bg: #fff9fb;
  --text: #5B4333;
  --muted: #5B4333;
  --line: #eadfcf;
  --soft: #faf0f4;
  --accent: #f2dee7;
  --accent-deep: #ddb7c8;
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 50px rgba(91, 70, 80, 0.08);

  --header-bg: linear-gradient(90deg, rgba(255, 249, 251, 0.95) 0%, rgba(242, 222, 231, 0.92) 65%, rgba(221, 183, 200, 0.92) 100%);
  --header-bg-strong: linear-gradient(90deg, rgba(255, 249, 251, 0.98) 0%, rgba(242, 222, 231, 0.96) 65%, rgba(221, 183, 200, 0.96) 100%);
  --header-border: rgba(255, 255, 255, 0.26);
  --hero-grad-1: #f4e3eb;
  --hero-grad-2: #ddb7c8;
  --hero-grad-3: #cfa0b6;
  --hero-overlay: rgba(91, 70, 80, 0.12);
  --staff-tone: rgba(221, 183, 200, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 96px 0; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.site-header::after { content: none; }
.site-header::before { content: none; }
.site-header.scrolled,
.site-header.site-header-solid {
  background: var(--header-bg-strong);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(91, 70, 80, 0.08);
}
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.68);
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 20px;
  backdrop-filter: blur(8px);
}
.site-header.scrolled .brand-mark,
.site-header.site-header-solid .brand-mark {
  border-color: var(--line);
  background: var(--soft);
  color: var(--text);
}
.brand-sub {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-main {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.desktop-nav { display: flex; gap: 28px; margin-left: auto; }
.desktop-nav a {
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s ease;
}
.site-header.scrolled .desktop-nav a,
.site-header.site-header-solid .desktop-nav a {
  color: var(--text);
}
.desktop-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px; border-radius: 999px;
  margin-left: 8px;
  background: rgba(255,255,255,0.92); color: var(--text); font-size: 14px; font-weight: 600;
}
.site-header.scrolled .header-cta,
.site-header.site-header-solid .header-cta {
  background: var(--text);
  color: white;
}
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}
.site-header.scrolled .menu-button,
.site-header.site-header-solid .menu-button { color: var(--text); }
.mobile-nav {
  position: relative;
  z-index: 1;
  display: none;
  flex-direction: column;
  padding: 0 24px 20px;
  background: rgba(255, 250, 241, 0.98);
  border-top: 1px solid var(--line);
}
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav.open { display: flex; }
.mobile-cta { margin-top: 12px; background: var(--text); color: white; width: 100%; }

.hero {
  position: relative;
  min-height: 92vh;
  background: transparent;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: transparent;
}
.hero-content {
  position: relative;
  min-height: 92vh;
  display: grid; place-items: center;
  padding-top: 96px;
}
.hero-placeholder {
  width: min(100%, 920px);
  padding: 48px;
  border: 1px dashed rgba(255,255,255,0.58);
  border-radius: 32px;
  text-align: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(3px);
  color: white;
}
.hero-label {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.84);
}
.hero-placeholder h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.25;
}
.hero-placeholder p {
  width: min(100%, 720px);
  margin: 20px auto 0;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
}
.feature-cards {
  position: absolute;
  left: 50%; bottom: 40px; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.feature-card h3, .card h3, .contact-card h3 { margin: 0 0 10px; font-size: 18px; }
.feature-card:last-child h3{font-size:15px; white-space:nowrap;}
.feature-card p, .card p, .contact-card p, .section-heading p, .intro p, .subpage-hero p { margin: 0; color: var(--muted); }

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}
.intro h2, .section-heading h2, .contact-section h2, .subpage-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.25;
}
.section-heading { margin-bottom: 40px; }
.section-heading > p:last-child { max-width: 760px; }
.section-heading-tight { margin-bottom: 28px; }
.two-column-cards, .three-column-cards, .access-grid, .contact-grid, .detail-grid {
  display: grid;
  gap: 24px;
}
.two-column-cards { grid-template-columns: repeat(2, 1fr); }
.three-column-cards { grid-template-columns: repeat(3, 1fr); }
.access-grid { grid-template-columns: 1.1fr 0.9fr; }
.contact-grid { grid-template-columns: 1fr 0.95fr; align-items: center; }
.detail-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.detail-grid-reverse { grid-template-columns: 1fr 1fr; }
.card, .contact-card {
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(91, 70, 80, 0.05);
}
.accent-section { background: rgba(255, 255, 255, 0.72); }
.accent-section .card { background: var(--bg); }
.outline-button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
}
.outline-button {
  border: 1px solid var(--accent-deep);
  background: transparent;
}
.section-actions {
  margin-top: 24px;
  display: flex;
}
.section-actions-center {
  justify-content: center;
}
.summary-card {
  padding: 24px;
  display: grid;
  gap: 18px;
}
.summary-photo {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px dashed var(--accent-deep);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
  padding: 18px;
}
.summary-face-photo {
  min-height: 250px;
}
.summary-copy {
  display: grid;
  gap: 10px;
}
.course-card {
  display: grid;
  align-content: start;
  min-height: 220px;
}

.insta-grid {
  align-items: stretch;
}
.insta-card {
  padding: 22px;
}
.insta-card-link {
  display: grid;
  gap: 18px;
  height: 100%;
}
.insta-media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px dashed var(--accent-deep);
  background: linear-gradient(180deg, rgba(242, 222, 231, 0.86) 0%, rgba(255, 249, 251, 0.95) 100%);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 18px;
}
.insta-copy {
  display: grid;
  gap: 10px;
}
.insta-meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-actions {
  margin-top: 28px;
}


.instagram-button {
  gap: 10px;
  padding-inline: 22px;
}
.instagram-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.instagram-icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.content-flow-wrap {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.content-flow-wrap > .section,
.content-flow-wrap > .intro {
  position: relative;
  z-index: 1;
}
.staff-flow {
  position: absolute;
  inset: 0 0 0 0;
  z-index: 0;
  pointer-events: none;
}
.staff-flow svg {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.content-flow-wrap-subpage {
  min-height: 100%;
}
.staff-flow-subpage svg {
  opacity: 0.82;
}

.map-frame {
  min-height: 320px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--accent-deep);
  box-shadow: 0 10px 30px rgba(91, 70, 80, 0.05);
  background: white;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}
.lesson-summary-card {
  max-width: 760px;
}
.map-placeholder, .photo-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  border: 1px dashed var(--accent-deep);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.large-photo {
  min-height: 420px;
}
.info-card { display: grid; gap: 20px; }
.contact-section {
  padding: 96px 0;
  background: var(--accent);
}
.contact-card {
  background: #fff7fa;
  border-color: var(--accent-deep);
}
.form-placeholder {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--accent);
  background: rgba(255,255,255,0.76);
  color: var(--muted);
}
.primary-button {
  width: 100%;
  margin-top: 18px;
  background: var(--text);
  color: white;
}
.contact-note { margin-top: 12px; text-align: center; }

.contact-section h2 {
  text-wrap: balance;
  line-break: strict;
}
.nowrap { white-space: nowrap; }
.title-sep { display: inline; }

.subpage-main {
  padding-top: 86px;
}
.subpage-hero {
  padding: 72px 0 44px;
  background: linear-gradient(180deg, rgba(242, 222, 231, 0.72) 0%, rgba(255, 249, 251, 0.78) 100%);
  border-bottom: 1px solid var(--line);
}
.subpage-hero-inner {
  max-width: 760px;
}
.detail-section-spaced {
  padding-top: 24px;
}
.detail-card {
  display: grid;
  align-content: center;
  gap: 18px;
}
.full-width-card {
  max-width: calc(50% - 12px);
}
.detail-card-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .full-width-card {
    max-width: none;
  }
  .detail-card-duo {
    grid-template-columns: 1fr;
  }
}
.price-table-wrap {
  overflow-x: visible;
  max-width: 584px;
  margin: 0 auto;
}
.price-table-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.price-table-duo .price-table-wrap {
  max-width: none;
  margin: 0;
}
@media (max-width: 768px) {
  .price-table-duo {
    grid-template-columns: 1fr;
  }
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}
.price-table th,
.price-table td {
  padding: 8px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  background: var(--soft);
  font-size: 17px;
}
.price-table td {
  font-size: 17px;
}
.price-table tbody td:first-child:not([colspan]) {
  padding-left: 88px;
}
.price-table td[colspan] {
  padding-left: 18px;
  font-size: 17px;
  white-space: nowrap;
}
.price-table th:first-child {
  padding-left: 56px;
}


@media (max-width: 1024px) {
  .staff-line { stroke-width: 1.5; }
  .staff-note { opacity: 0.8; }
}

@media (max-width: 820px) {
  .staff-flow { opacity: 0.45; }
  .staff-flow-subpage { opacity: 0.38; }
  .staff-note, .staff-note-sub { display: none; }
}

@media (max-width: 1024px) {
  .feature-cards,
  .intro-grid,
  .three-column-cards,
  .access-grid,
  .contact-grid,
  .detail-grid,
  .detail-grid-reverse {
    grid-template-columns: 1fr;
  }
  .feature-cards {
    position: static;
    transform: none;
    padding: 0 24px 24px;
    margin-top: -30px;
  }
  .hero { padding-bottom: 24px; }
}

@media (max-width: 820px) {
  .desktop-nav, .desktop-only { display: none; }
  .menu-button { display: block; margin-left: auto; align-self: center; }
  .hero-content { min-height: 78vh; }
  .hero-placeholder { padding: 34px 24px; }
  .two-column-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1120px); }
  .section, .contact-section { padding: 72px 0; }
  .header-inner { padding: 14px 0; }
  .brand-mark { width: 40px; height: 40px; }
  .hero-placeholder h1, .subpage-hero h1 { font-size: 30px; }
  .subpage-main { padding-top: 78px; }
  .subpage-hero { padding: 56px 0 36px; }
}



/* color update based on reference image: warm ivory / light beige */
:root{
  --color-bg:#fffaf1 !important;
  --color-bg-soft:#fff6e9 !important;
  --color-main:#f4e7d3 !important;
  --color-main-deep:#b9a792 !important;
  --color-accent:#c7b49d !important;
  --color-text:#5B4333 !important;
  --color-muted:#9b8874 !important;
  --color-white:#ffffff !important;
}

html,
body{
  background:#fffaf1 !important;
  color:#5B4333 !important;
}

body,
.site,
.page,
main,
section,
.section,
.intro,
.about,
.lesson,
.access,
.contact{
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 35%),
    linear-gradient(180deg,#fffaf1 0%,#fff7ec 52%,#f7ecda 100%) !important;
}

header,
.site-header,
.header,
.nav,
.navbar{
  background:linear-gradient(90deg,#fffdf8 0%,#fff8ec 60%,#f0e2cd 100%) !important;
  border-color:#eadfcf !important;
}

.hero,
.mv,
.main-visual,
.first-view,
.keyvisual{
  background:
    radial-gradient(circle at 23% 12%, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 38%),
    linear-gradient(135deg,#fffaf1 0%,#f8efdE 58%,#ead8b8 100%) !important;
}

.card,
.feature-card,
.feature-box,
.box,
.panel,
.lesson-card,
.access-card,
.contact-card{
  background:#ffffff !important;
  border-color:#eadfcf !important;
  box-shadow:0 16px 34px rgba(150,115,70,.10) !important;
}

.btn,
.button,
.cta,
.nav-cta,
a[class*="btn"]{
  background:#b9a792 !important;
  color:#ffffff !important;
  border-color:#b9a792 !important;
}

h1,h2,h3,h4,
.logo,
.site-title,
.section-title{
  color:#5B4333 !important;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
  font-weight: 500 !important;
}

small,
.sub,
.lead,
.section-label,
.en,
.note{
  color:#9b8874 !important;
}

/* 五線譜・音符はv7の配置を活かし、参考画像に近い淡いベージュへ */
.music-staff,
.staff-line,
.note-mark,
.decoration,
[class*="staff"],
[class*="music"],
[class*="note"]{
  color:#d8c7ae !important;
  border-color:#d8c7ae !important;
}



/* v15 requested fixes:
   1) remove explanations in top feature boxes
   2) center feature headings
   3) remove vertical side seams and section-divider look by unifying backgrounds
*/

/* Use one continuous page background */
html,
body{
  background:#fffaf1 !important;
  color:#5B4333 !important;
}

body,
.site,
.page,
main,
section,
.section,
.intro,
.about,
.lesson,
.access,
.contact,
.news,
.footer,
.site-footer,
[class*="section"],
[class*="area"],
[class*="block"]{
  background-color:#fffaf1 !important;
  border-top:0 !important;
  border-bottom:0 !important;
}

/* Remove inner band that made left/right vertical color seams */
.container,
.inner,
.section-inner,
.content,
.wrapper,
[class*="inner"],
[class*="container"],
[class*="wrapper"]{
  background:transparent !important;
  border-left:0 !important;
  border-right:0 !important;
  border-top:0 !important;
  border-bottom:0 !important;
}

/* Keep cards white */
.card,
.feature-card,
.feature-box,
.box,
.panel,
.lesson-card,
.access-card,
.contact-card{
  background:#ffffff !important;
  border-color:#eadfcf !important;
  box-shadow:0 16px 34px rgba(150,115,70,.10) !important;
}

/* Top feature boxes: hide the explanation paragraphs and center the title */
.feature-card,
.feature-box,
.features .card,
.feature-list .card{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

.feature-card p,
.feature-box p,
.features .card p,
.feature-list .card p{
  display:none !important;
}

.feature-card h3,
.feature-box h3,
.features .card h3,
.feature-list .card h3{
  margin:0 !important;
  padding:0 !important;
  width:100% !important;
  text-align:center !important;
}

/* If feature cards are generic cards near the hero, target by heading text via structure fallback */
.hero + * .card,
.mv + * .card,
.main-visual + * .card,
.first-view + * .card{
  text-align:center !important;
}

/* Remove visible horizontal dividers between large sections */
hr,
section + section,
.section + .section{
  border-top:0 !important;
}

/* Cancel large alternate background panels that caused the screenshot seam */
.about,
.lesson,
.access,
.contact{
  background:transparent !important;
}


/* v16: restore normal alignment in feature boxes */
.feature-card,
.feature-box,
.features .card,
.feature-list .card{
  display:block !important;
  text-align:left !important;
}

.feature-card h3,
.feature-box h3,
.features .card h3,
.feature-list .card h3{
  margin:initial !important;
  padding:initial !important;
  width:auto !important;
  text-align:left !important;
}

/* keep description hidden */
.feature-card p,
.feature-box p,
.features .card p,
.feature-list .card p{
  display:none !important;
}


/* v17: restore normal alignment everywhere except keep feature descriptions hidden */
.card,
.feature-card,
.feature-box,
.lesson-card,
.access-card,
.contact-card{
  text-align:left !important;
}

.card h2,.card h3,.card h4,
.feature-card h2,.feature-card h3,.feature-card h4,
.feature-box h2,.feature-box h3,.feature-box h4,
.lesson-card h2,.lesson-card h3,.lesson-card h4,
.access-card h2,.access-card h3,.access-card h4{
  text-align:left !important;
  width:auto !important;
  margin-bottom:1rem !important;
}

.card p,
.lesson-card p,
.access-card p,
.contact-card p{
  text-align:left !important;
}

/* only top feature-box descriptions remain hidden */
.feature-card p,
.feature-box p{
  display:none !important;
}

/* v18: top page hero matched to provided reference */
:root{
  --top-ivory:#fffaf2;
  --top-cream:#f8eddc;
  --top-brown:#5B4333;
  --top-muted:#b88e99;
  --top-card:#fffdf8;
}

.site-header{
  position:sticky !important;
  top:0 !important;
  background:linear-gradient(90deg,#fffdf8 0%,#fff8ed 72%,#efe0cd 100%) !important;
  box-shadow:none !important;
}
.header-inner{
  width:min(1500px, calc(100% - 120px));
  padding:18px 0 !important;
  min-height:98px;
}
.brand-mark{
  width:52px !important;
  height:52px !important;
  color:#dfd1c4 !important;
  border-color:#eadfd4 !important;
  background:rgba(255,255,255,.35) !important;
}
.brand-sub{font-size:14px !important; letter-spacing:.28em !important; color:#5B4333 !important;}
.brand-main{font-size:20px !important; color:#5B4333 !important;}
.desktop-nav{gap:46px !important; align-items:center !important;}
.desktop-nav a{font-size:16px !important; font-weight:500 !important; color:#5B4333 !important;}
.header-cta{
  min-width:174px !important;
  height:58px !important;
  margin-left:10px !important;
  border-radius:999px !important;
  background:#b78f99 !important;
  color:#fff !important;
  font-size:17px !important;
  letter-spacing:.08em !important;
}

.hero{
  min-height:620px !important;
  padding:0 0 40px !important;
  background:
    linear-gradient(90deg, rgba(255,250,242,.98) 0%, rgba(255,250,242,.90) 31%, rgba(255,250,242,.12) 48%, rgba(255,250,242,0) 64%),
    url('./hero-piano.png') center right / auto 100% no-repeat,
    linear-gradient(90deg,#fffaf2 0%,#f8eddc 100%) !important;
  overflow:visible !important;
}
.hero-overlay{
  background:none !important;
  pointer-events:none;
}
.hero-overlay::before{
  content:"";
  position:absolute;
  left:0;
  top:52px;
  width:48%;
  height:220px;
  background-repeat:no-repeat;
  background-size:contain;
  opacity:.58;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 220'%3E%3Cg fill='none' stroke='%23d7bfb3' stroke-width='1.5' opacity='.75'%3E%3Cpath d='M0 96 C150 28 270 132 420 72 S640 88 760 52'/%3E%3Cpath d='M0 112 C150 44 270 148 420 88 S640 104 760 68'/%3E%3Cpath d='M0 128 C150 60 270 164 420 104 S640 120 760 84'/%3E%3Cpath d='M0 144 C150 76 270 180 420 120 S640 136 760 100'/%3E%3Cpath d='M0 160 C150 92 270 196 420 136 S640 152 760 116'/%3E%3C/g%3E%3Cg fill='%23c99f9b' opacity='.72'%3E%3Ctext x='35' y='145' font-size='78'%3E𝄞%3C/text%3E%3Ctext x='240' y='90' font-size='48'%3E♪%3C/text%3E%3Ctext x='430' y='88' font-size='54'%3E♫%3C/text%3E%3Ctext x='590' y='68' font-size='42'%3E♪%3C/text%3E%3C/g%3E%3C/svg%3E");
}
.hero-content{
  min-height:520px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:min(1500px, calc(100% - 120px)) !important;
  padding-top:0 !important;
}
.hero-placeholder{
  width:690px !important;
  margin-top:42px !important;
  padding:38px 46px 40px !important;
  border:1px solid #eee1d5 !important;
  border-radius:28px !important;
  background:rgba(255,253,248,.94) !important;
  box-shadow:0 18px 44px rgba(88,60,35,.08) !important;
  color:#5B4333 !important;
  backdrop-filter:blur(4px) !important;
}
.hero-label{
  margin-bottom:24px !important;
  color:#bf8d9a !important;
  font-size:17px !important;
  font-weight:700 !important;
  letter-spacing:.28em !important;
}
.hero-placeholder h1{
  color:#5B4333 !important;
  font-family:"M PLUS Rounded 1c","Hiragino Sans",sans-serif !important;
  font-size:37px !important;
  line-height:1.75 !important;
  letter-spacing:.06em !important;
  font-weight:500 !important;
}
.hero-placeholder p:not(.hero-label){
  color:#5B4333 !important;
  font-size:15px !important;
  line-height:2 !important;
  max-width:590px !important;
}
.feature-cards{
  position:relative !important;
  left:auto !important;
  bottom:auto !important;
  transform:none !important;
  width:min(1280px, calc(100% - 120px)) !important;
  margin:0 auto !important;
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:26px !important;
}
.feature-card{
  min-height:155px !important;
  padding:30px 34px !important;
  border-radius:25px !important;
  background:rgba(255,255,255,.92) !important;
  border:1px solid #eadfd4 !important;
  box-shadow:0 18px 38px rgba(100,70,40,.08) !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
}
.feature-card::before{
  content:"♪";
  display:block;
  color:#bd8f99;
  font-size:42px;
  line-height:1;
  margin-bottom:18px;
  opacity:.9;
  font-family:"M PLUS Rounded 1c","Hiragino Sans",sans-serif;
}
.feature-card:nth-child(2)::before{content:"♬";}
.feature-card:nth-child(3)::before{content:"♟"; font-size:35px; transform:rotate(180deg);}
.feature-card h3{
  margin:0 !important;
  text-align:center !important;
  color:#5B4333 !important;
  font-family:"M PLUS Rounded 1c","Hiragino Sans",sans-serif !important;
  font-size:29px !important;
  font-weight:500 !important;
  letter-spacing:.07em !important;
}

@media (max-width: 1100px){
  .header-inner{width:min(100% - 40px,1120px);}
  .desktop-nav{gap:22px !important;}
  .hero{background-position:center right -240px !important;}
  .hero-content,.feature-cards{width:min(100% - 40px,1120px) !important;}
  .hero-placeholder{width:min(620px,100%) !important;}
}
@media (max-width: 820px){
  .site-header{position:sticky !important;}
  .header-inner{min-height:auto;}
  .hero{
    min-height:auto !important;
    padding:330px 0 32px !important;
    background:
      linear-gradient(180deg, rgba(255,250,242,0) 0%, rgba(255,250,242,.82) 48%, rgba(255,250,242,1) 72%),
      url('./hero-piano.png') top center / auto 380px no-repeat,
      #fffaf2 !important;
  }
  .hero-overlay::before{width:90%; top:280px; opacity:.35;}
  .hero-content{min-height:auto !important;}
  .hero-placeholder{margin-top:0 !important; padding:30px 24px !important;}
  .hero-placeholder h1{font-size:28px !important; line-height:1.65 !important;}
  .feature-cards{grid-template-columns:1fr !important; gap:16px !important;}
  .feature-card{min-height:116px !important;}
}

/* v19: uploaded piano image is inserted directly into the top page */
.hero{
  position:relative !important;
  min-height:720px !important;
  background:#fffaf2 !important;
  overflow:hidden !important;
}
.hero-main-photo{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:78% center !important;
  z-index:0 !important;
}
.hero-overlay{
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  background:linear-gradient(90deg, rgba(255,250,242,.96) 0%, rgba(255,250,242,.72) 33%, rgba(255,250,242,.18) 55%, rgba(255,250,242,0) 100%) !important;
}
.hero-overlay::before{display:none !important;}
.hero-content{
  position:relative !important;
  z-index:2 !important;
  min-height:620px !important;
}
.hero-placeholder{
  background:rgba(255,253,248,.88) !important;
}
.feature-cards{
  position:relative !important;
  z-index:3 !important;
}
@media (max-width: 760px){
  .hero{min-height:680px !important; padding-top:360px !important;}
  .hero-main-photo{height:390px !important; bottom:auto !important; object-position:center top !important;}
  .hero-overlay{background:linear-gradient(180deg, rgba(255,250,242,0) 0%, rgba(255,250,242,.65) 52%, rgba(255,250,242,1) 100%) !important;}
}

/* v20: reference-like top layout with the piano photo fixed on the right */
@media (min-width: 821px){
  .site-header{
    position:sticky !important;
    top:0 !important;
    z-index:100 !important;
    height:105px !important;
    background:linear-gradient(90deg,#fffdf8 0%,#fff8ed 72%,#efe0cd 100%) !important;
  }
  .header-inner{
    width:min(1640px, calc(100% - 140px)) !important;
    min-height:105px !important;
    padding:0 !important;
  }
  .hero{
    position:relative !important;
    min-height:0 !important;
    padding:0 0 42px !important;
    overflow:hidden !important;
    background:
      linear-gradient(90deg, rgba(255,250,242,1) 0%, rgba(255,250,242,.98) 31%, rgba(255,250,242,.70) 43%, rgba(255,250,242,.20) 54%, rgba(255,250,242,0) 68%),
      url('./hero-piano.png') center right / auto 585px no-repeat,
      #fffaf2 !important;
  }
  .hero-main-photo{
    display:none !important;
  }
  .hero-overlay{
    position:absolute !important;
    inset:0 !important;
    z-index:1 !important;
    background:none !important;
  }
  .hero-overlay::before{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    left:0 !important;
    top:46px !important;
    width:690px !important;
    height:235px !important;
    opacity:.56 !important;
    background-repeat:no-repeat !important;
    background-size:contain !important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 220'%3E%3Cg fill='none' stroke='%23d7bfb3' stroke-width='1.5' opacity='.75'%3E%3Cpath d='M0 96 C150 28 270 132 420 72 S640 88 760 52'/%3E%3Cpath d='M0 112 C150 44 270 148 420 88 S640 104 760 68'/%3E%3Cpath d='M0 128 C150 60 270 164 420 104 S640 120 760 84'/%3E%3Cpath d='M0 144 C150 76 270 180 420 120 S640 136 760 100'/%3E%3Cpath d='M0 160 C150 92 270 196 420 136 S640 152 760 116'/%3E%3C/g%3E%3Cg fill='%23c99f9b' opacity='.72'%3E%3Ctext x='35' y='145' font-size='78'%3E𝄞%3C/text%3E%3Ctext x='240' y='90' font-size='48'%3E♪%3C/text%3E%3Ctext x='430' y='88' font-size='54'%3E♫%3C/text%3E%3Ctext x='590' y='68' font-size='42'%3E♪%3C/text%3E%3C/g%3E%3C/svg%3E") !important;
  }
  .hero-content{
    position:relative !important;
    z-index:2 !important;
    width:min(1640px, calc(100% - 140px)) !important;
    min-height:585px !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
  }
  .hero-placeholder{
    width:805px !important;
    margin:10px 0 0 0 !important;
    padding:36px 40px 42px !important;
    border-radius:30px !important;
    border:1px solid #eee1d5 !important;
    background:rgba(255,253,248,.94) !important;
    box-shadow:0 18px 44px rgba(88,60,35,.08) !important;
    text-align:center !important;
  }
  .hero-label{
    color:#bf8d9a !important;
    font-size:17px !important;
    letter-spacing:.30em !important;
    font-weight:700 !important;
    margin:0 0 24px !important;
  }
  .hero-placeholder h1{
    color:#5B4333 !important;
    font-family:"M PLUS Rounded 1c","Hiragino Sans",sans-serif !important;
    font-size:40px !important;
    line-height:1.6 !important;
    letter-spacing:.04em !important;
    font-weight:500 !important;
    margin:0 !important;
  }
  .hero-placeholder p:not(.hero-label){
    max-width:none !important;
    margin:28px 0 0 !important;
    color:#5B4333 !important;
    font-size:16px !important;
    line-height:2 !important;
  }
  .feature-cards{
    position:relative !important;
    z-index:3 !important;
    width:min(1440px, calc(100% - 320px)) !important;
    margin:0 auto !important;
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    gap:26px !important;
  }
  .feature-card{
    min-height:196px !important;
  }
}

/* v25: keep gradient as-is; move only the hero piano photo farther right */
@media (min-width: 821px){
  .hero{
    background-position: center center, right -360px center, center center !important;
    background-size: auto, auto 585px, auto !important;
  }
}

/* v27: Separate the photo position from the gradient position.
   Keep the photo fixed at the v25 right-third placement, and move only the white gradient start. */
@media (min-width: 821px){
  .hero{
    background-image:url('./hero-piano.png') !important;
    background-position:right -360px center !important;
    background-size:auto 585px !important;
    background-repeat:no-repeat !important;
    background-color:#fffaf2 !important;
  }
  .hero::after{
    content:"" !important;
    position:absolute !important;
    inset:0 !important;
    z-index:1 !important;
    pointer-events:none !important;
    background:linear-gradient(90deg, rgba(255,250,242,1) 0%, rgba(255,250,242,.98) 40%, rgba(255,250,242,.70) 50%, rgba(255,250,242,.20) 60%, rgba(255,250,242,0) 68%) !important;
  }
  .hero-overlay{
    z-index:1 !important;
    background:none !important;
  }
  .hero-content,
  .feature-cards{
    position:relative !important;
    z-index:2 !important;
  }
}


/* v28 duplicate: photo position independent from gradient */
@media (min-width: 821px){
  .hero{
    background-image:url('./hero-piano.png') !important;
    background-repeat:no-repeat !important;
    background-size:auto 585px !important;
    background-position:calc(100vw - 740px) center !important;
    background-color:#fffaf2 !important;
  }
  .hero::after{
    content:"" !important; position:absolute !important; inset:0 !important; z-index:1 !important; pointer-events:none !important;
    background:linear-gradient(90deg, rgba(255,250,242,1) 0%, rgba(255,250,242,.98) 40%, rgba(255,250,242,.70) 50%, rgba(255,250,242,.20) 60%, rgba(255,250,242,0) 68%) !important;
  }
  .hero-main-photo{display:none !important;}
  .hero-overlay{z-index:1 !important; background:none !important;}
  .hero-content,.feature-cards{position:relative !important; z-index:2 !important;}
}

/* v32: feature titles centered correctly inside each top card */
.feature-cards .feature-card{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
}
.feature-cards .feature-card h3{
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  text-align:center !important;
  line-height:1.45 !important;
}
.feature-cards .feature-card::before{
  align-self:center !important;
  text-align:center !important;
}


/* v35 hero message refinement */
.hero-placeholder{
  max-width: 640px !important; /* slightly narrower */
}
.hero-placeholder p{
  font-size: 2rem !important;
  line-height: 1.5 !important;
  margin-top: 24px !important;
  font-weight: 500 !important;
}


/* モバイルでは手動改行<br>を無効にして自然な折り返しにする */
@media (max-width: 768px) {
  .studio-card p br,
  .detail-card p br,
  .summary-copy p br,
  .wish-list li br,
  .wish-text br,
  .hero-subtitle br,
  .trouble-list-about li br,
  .trouble-closing-about br,
  .pillar-center-text br,
  .contact-intro br,
  .section-heading p br,
  .subpage-hero p br {
    display: none;
  }
}

/* Instagram embeds: captioned on desktop, no caption on mobile */
.insta-frame-mobile { display: none; }
@media (max-width: 768px) {
  .insta-frame-desktop { display: none; }
  .insta-frame-mobile { display: block; }
}

/* Mobile: crop the bottom bar ("この投稿をInstagramで見る" etc.) */
.insta-frame-crop { display: none; }
@media (max-width: 768px) {
  .insta-frame-crop {
    display: block;
    position: relative;
    width: 100%;
    /* 正方形画像 + ヘッダー分の高さだけ表示し、下部のリンク帯を隠す */
    padding-top: calc(100% + 64px);
    overflow: hidden;
  }
  .insta-frame-crop .insta-frame-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 900px;
    display: block;
  }
}


/* 各ページ上部の帯：小見出しも題名と同じ明朝に揃える */
.subpage-hero .eyebrow {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
}


/* 上部ナビゲーション：題名と同じ明朝に揃える */
.desktop-nav a,
.mobile-nav a,
.header-cta,
.brand,
.logo {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
}

/* ==========================================================
   モバイルでもPCと同じように五線と音符を表示する（全ページ共通）
   ========================================================== */
@media (max-width: 1024px) {
  .staff-line { stroke-width: 2.1; }
  .staff-note { opacity: 1; }
}

@media (max-width: 820px) {
  .staff-flow {
    opacity: 1;
    display: block !important;
    visibility: visible !important;
  }
  .staff-flow-subpage { opacity: 1; }
  .staff-flow svg,
  .staff-flow-subpage svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    opacity: 0.9;
  }
  /* PCと同様に音符を表示（以前はモバイルで非表示だった） */
  .staff-flow text,
  .staff-note,
  .staff-note-sub {
    display: inline !important;
    visibility: visible !important;
  }
}

/* ==========================================================
   モバイル専用の調整（PC表示には影響しません）
   ・追加の音符はモバイルのときだけ表示
   ・五線の始まり（上端）をモバイルのときだけ濃く
   ========================================================== */
.staff-note-mobile-group,
.staff-note-mobile {
  display: none;
}

@media (max-width: 820px) {
  .staff-note-mobile-group { display: inline !important; }
  .staff-note-mobile { display: inline !important; }

  .staff-fade-top1 { stop-opacity: 0.18 !important; }
  .staff-fade-top2 { stop-opacity: 0.22 !important; }
  .staff-fade-top3 { stop-opacity: 0.26 !important; }
}

/* モバイル：ホームの五線の終わり（下端）を濃く／三本柱の図に重なる音符を非表示 */
@media (max-width: 820px) {
  .staff-fade-bot1 { stop-opacity: 0.30 !important; }
  .staff-fade-bot2 { stop-opacity: 0.26 !important; }
  .staff-fade-bot3 { stop-opacity: 0.22 !important; }

  .staff-flow text.staff-note-hide-mobile,
  .staff-note-hide-mobile {
    display: none !important;
  }
}

/* モバイル：五線譜が本文（お問い合わせ等）の上に乗らないよう、必ず背面に置く */
@media (max-width: 820px) {
  .content-flow-wrap > *:not(.staff-flow) {
    position: relative;
    z-index: 1;
  }
  .staff-flow {
    z-index: 0 !important;
  }
}

/* ==========================================================
   モバイルのヘッダーバー（教室名＋メニュー）を元のホームと同じ設定に揃える
   ホーム原型: header-inner width = min(1500px, 100% - 120px), min-height = 98px
   ========================================================== */
@media (max-width: 820px){
  .header-inner{
    width: min(1500px, calc(100% - 120px)) !important;
    min-height: 98px !important;
  }
}

/* ==========================================================
   モバイル修正：ヘッダーの見切れ・変な折り返しを防ぐ
   （屋号／サブタイトルを1行に収め、左右の余白を詰める）
   ========================================================== */
@media (max-width: 820px){
  .header-inner{
    width: calc(100% - 36px) !important;
    min-height: 72px !important;
    padding: 12px 0 !important;
    gap: 12px !important;
  }
  .brand{ gap: 10px !important; }
  .brand-mark{
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 auto !important;
  }
  .brand-text{ min-width: 0 !important; }
  .brand-sub{
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
    white-space: nowrap !important;
  }
  .brand-main{
    font-size: 17px !important;
    white-space: nowrap !important;
  }
  .menu-button{
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }
}
@media (max-width: 380px){
  .brand-sub{ font-size: 10px !important; letter-spacing: 0.06em !important; }
  .brand-main{ font-size: 15px !important; }
  .brand-mark{ width: 38px !important; height: 38px !important; }
}

/* ==========================================================
   モバイル専用／PC専用の改行制御
   ========================================================== */
.sp-br { display: none; }
.pc-br { display: inline; }
@media (max-width: 768px) {
  .sp-br { display: inline; }
  .pc-br { display: none; }
  /* .detail-card p br の !important 指定より高い詳細度で上書き */
  .detail-card p br.pc-br { display: none !important; }
  .detail-card p br.sp-br { display: inline !important; }
}
