:root {
  --ink: #272727;
  --muted: #6e6a66;
  --line: #aaa39d;
  --soft-line: #d2cdc8;
  --paper: rgba(255, 255, 255, 0.78);
  --content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button { font: inherit; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.page {
  min-height: 100vh;
  background: #fff url("/images/top_bg.jpg") center top / 1400px auto no-repeat;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 124px;
  border-bottom: 1px dotted var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  height: 124px;
  margin: 0 auto;
  padding: 35px 50px;
}
.brand { display: block; width: 280px; line-height: 0; }
.menu summary { display: none; }
.menu:not([open]) > nav { display: block; }
.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 18px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  text-underline-offset: 5px;
  white-space: nowrap;
  word-break: keep-all;
}
.nav a::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 32px;
  margin-right: 6px;
  background: url("/images/inside_gm.gif") 0 0 no-repeat;
}
.nav-school a::before { background-position: 0 -40px; }
.nav-adult a::before { background-position: 0 -80px; }
.nav-price a::before { background-position: 0 -120px; }
.nav-profile a::before { background-position: 0 -160px; }
.nav-gallery a::before { background-position: 0 -200px; }
.nav a:hover::before, .nav a:focus-visible::before, .nav a[aria-current="page"]::before { background-position-x: -180px; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { text-decoration: underline; }

main {
  width: min(var(--content), calc(100% - 100px));
  margin: 0 auto;
  padding: 20px 0 80px;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(600px, 1.05fr);
  gap: 38px;
  align-items: center;
  min-height: 500px;
}
.hero-visual { padding: 20px; text-align: center; }
.hero-copy { padding: 30px 0; }
.hero-catch { margin: 0 0 26px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; }
.hero-catch span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.hero-catch strong {
  display: block;
  font-size: clamp(14px, 4.55vw, 30px);
  font-weight: 500;
  line-height: 1.55;
  white-space: nowrap;
}
.owner-message {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
}
.message-line { display: block; }

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr);
  gap: 60px;
  align-items: end;
  min-height: 320px;
  padding: 70px 0 55px;
  border-bottom: 1px dotted var(--line);
}
.page-hero.compact { grid-template-columns: 1fr; min-height: 250px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.25;
}
.page-title::before, .section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 35px;
  background: url("/images/school_title.gif") 0 0 no-repeat;
}
.page-lead { max-width: 760px; margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 18px; }
.hero-note { margin: 0; padding: 22px 0 0; border-top: 1px solid #595757; font-weight: 700; }

.section, .content-section { padding: 48px 0; border-top: 1px dotted var(--line); }
.page-hero + .content-section { border-top: 0; }
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 500;
}
.numbered-section {
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr);
  gap: 50px;
  padding: 48px 0;
  border-top: 1px dotted var(--line);
}
.numbered-section:first-of-type { border-top: 0; }
.numbered-title { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 25px; font-weight: 500; }
.numbered-title small { display: block; margin-bottom: 6px; color: var(--muted); font-family: inherit; font-size: 13px; letter-spacing: .08em; }
.prose { min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul { margin: 0; padding-left: 1.25em; }
.prose li + li { margin-top: 10px; }
.prose ul ul { margin-top: 8px; }
.intro-list { margin: 0; padding: 26px 30px 26px 52px; background: var(--paper); border-top: 1px solid #595757; border-bottom: 1px solid #595757; }
.intro-list li + li { margin-top: 8px; }

.class-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px dotted var(--line); border-bottom: 1px dotted var(--line); }
.class-panel { padding: 30px 36px; }
.class-panel + .class-panel { border-left: 1px dotted var(--line); }
.class-panel h3 { margin: 0 0 8px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 24px; font-weight: 600; }
.class-panel p { margin: 8px 0; }
.class-panel .schedule { font-weight: 700; }
.text-link { display: inline-block; margin-top: 8px; font-weight: 700; text-underline-offset: 4px; }

.schedule-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 20px; }
.day-button { min-height: 58px; padding: 8px 6px; border: 1px solid #b4b0ac; color: var(--ink); background: rgba(255,255,255,.8); font-size: 13px; line-height: 1.35; cursor: pointer; }
.day-button span { display: block; }
.day-button[aria-selected="true"] { color: #fff; background: #3d3938; }
.day-button:focus-visible { outline: 2px solid #3d3938; outline-offset: 2px; }
.schedule-panel { min-height: 155px; padding: 24px 28px; border-top: 1px solid #595757; border-bottom: 1px solid #595757; background: var(--paper); }
.selected-date { margin: 0 0 13px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 22px; }
.schedule-event { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 8px 0; border-top: 1px dotted #bbb5af; }
.schedule-event:first-child { border-top: 0; }
.schedule-time { font-weight: 700; }
.schedule-empty { color: var(--muted); }
.schedule-footnote, .fine-print { margin: 14px 0 0; color: var(--muted); font-size: 12px; }

.access-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 50px; align-items: start; }
.map { width: 100%; max-width: 760px; border: 1px solid #c7c2bd; }
.access-grid p { margin-top: 0; }

.fee-block { padding: 36px 0; border-top: 1px dotted var(--line); }
.fee-block:first-of-type { border-top: 0; }
.fee-block h2 { margin: 0 0 22px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 28px; font-weight: 500; }
.fee-group { margin-top: 28px; }
.fee-group h3 { margin: 0 0 8px; font-size: 18px; }
.fee-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 120px; border-top: 1px solid var(--soft-line); }
.fee-row:last-child { border-bottom: 1px solid var(--soft-line); }
.fee-row > * { margin: 0; padding: 16px 12px; }
.fee-number { color: var(--muted); }
.fee-price { text-align: right; font-weight: 700; white-space: nowrap; }

.timetable { border-top: 1px solid var(--soft-line); }
.time-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); border-bottom: 1px solid var(--soft-line); }
.time-day { margin: 0; padding: 18px 12px; font-weight: 700; }
.time-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.time-slot { min-height: 76px; padding: 14px 12px; border-left: 1px solid var(--soft-line); }
.time-slot span { display: block; font-size: 12px; color: var(--muted); }
.time-slot strong { display: block; font-size: 14px; }

.profile-layout { display: grid; grid-template-columns: minmax(260px, .45fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.profile-photo { width: 100%; max-width: 420px; }
.history { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--soft-line); }
.history li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--soft-line); }
.history time { color: var(--muted); font-weight: 700; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gallery-card { display: block; min-width: 0; text-decoration: none; }
.gallery-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--soft-line); background: #ece9e6; }
.gallery-card.portrait img { object-fit: contain; background: rgba(255,255,255,.7); }
.gallery-card h2 { margin: 10px 0 2px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 19px; font-weight: 500; }
.gallery-card p { margin: 0; color: var(--muted); font-size: 13px; }
.gallery-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--soft-line); background: rgba(255,255,255,.55); color: var(--muted); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; }

.contact-box { max-width: 800px; padding: 30px; border-top: 1px solid #595757; border-bottom: 1px solid #595757; background: var(--paper); }
.contact-box strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 28px; font-weight: 500; }

.site-footer { min-height: 190px; padding: 34px 20px; color: #bcbcbc; background: #000 url("/images/footer_warap_bg.jpg") center top repeat-x; font-size: 12px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 0 0 22px; padding: 0; list-style: none; }
.footer-links a { text-underline-offset: 4px; }

@media (max-width: 74.999em) {
  .site-header { height: 64px; box-shadow: 0 3px 18px rgba(0,0,0,.08); }
  .header-inner { position: relative; width: 100%; height: 64px; padding: 13px 20px; }
  .brand { width: 205px; }
  .menu { position: static; }
  .menu:not([open]) > nav { display: none; }
  .menu summary { position: absolute; top: 10px; right: 10px; display: block; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: transparent; font-size: 0; list-style: none; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::before, .menu summary::after { content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: #595757; transition: top .3s ease, transform .3s ease; }
  .menu summary::before { top: 12px; }
  .menu summary::after { top: 24px; }
  .menu[open] summary::before { top: 18px; transform: rotate(45deg); }
  .menu[open] summary::after { top: 18px; transform: rotate(-45deg); }
  .nav { display: none; position: absolute; top: 64px; left: 0; width: 100%; min-height: 420px; margin: 0; padding: 20px; border-top: 1px dotted var(--line); background: rgba(255,255,255,.98); }
  .menu[open] > nav { display: block; }
  .menu[open] .nav { display: grid; grid-template-columns: 1fr; gap: 0; }
  .nav li { border-bottom: 1px dotted #c8c2bd; }
  .nav a { padding: 10px 0; font-size: 24px; font-weight: 600; }
  .home-hero { display: flex; min-height: 0; flex-direction: column; gap: 6px; }
}

@media (max-width: 47.999em) {
  main { width: min(100% - 40px, 620px); padding-top: 20px; }
  .hero-visual { padding: 10px 0 0; }
  .hero-copy { padding: 10px 0 38px; }
  .hero-catch { margin-bottom: 20px; }
  .owner-message { font-size: 15px; }
  .message-line { display: inline; }
  .page-hero, .page-hero.compact { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding: 52px 0 40px; }
  .page-title { font-size: 38px; }
  .page-lead { font-size: 16px; }
  .section, .content-section { padding: 36px 0; }
  .class-grid { grid-template-columns: 1fr; }
  .class-panel { padding: 24px 0; }
  .class-panel + .class-panel { border-top: 1px dotted var(--line); border-left: 0; }
  .numbered-section { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .intro-list { padding: 22px 20px 22px 40px; }
  .schedule-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day-button { min-height: 54px; font-size: 12px; }
  .schedule-panel { padding: 20px; }
  .schedule-event { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .access-grid, .profile-layout { grid-template-columns: 1fr; gap: 28px; }
  .map { width: 100%; max-width: none; }
  .fee-row { grid-template-columns: 38px minmax(0, 1fr); }
  .fee-row > * { padding: 14px 8px; }
  .fee-price { grid-column: 2; padding-top: 0; text-align: left; }
  .time-row { grid-template-columns: 42px minmax(0, 1fr); }
  .time-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time-slot { min-height: 70px; }
  .time-slot:nth-child(even) { border-left: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .history li { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 23.75em) {
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lower pages: restrained editorial rhythm based on Moridesign's page system. */
body:not([data-page="top"]) {
  font-size: 16px;
  line-height: 1.65;
}
body:not([data-page="top"]) .page {
  background: #fff;
}
body:not([data-page="top"]) main {
  width: min(1600px, calc(100% - 100px));
  padding-top: 0;
}
body:not([data-page="top"]) .page-hero,
body:not([data-page="top"]) .page-hero.compact {
  display: block;
  min-height: 0;
  margin-top: 100px;
  padding: 8px 0 80px;
  border-top: 8px solid #595757;
  border-bottom: 0;
}
body:not([data-page="top"]) .page-hero > div {
  display: flex;
  flex-direction: column;
}
body:not([data-page="top"]) .page-title {
  order: 1;
  display: block;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}
body:not([data-page="top"]) .page-title::before {
  display: none;
}
body:not([data-page="top"]) .eyebrow {
  order: 2;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}
body:not([data-page="top"]) .page-lead {
  order: 3;
  width: 50%;
  max-width: 760px;
  margin: 52px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.65;
}
body:not([data-page="top"]) .hero-note {
  width: 50%;
  margin: 36px 0 0;
  padding: 0;
  border: 0;
  font-size: 14px;
  font-weight: 600;
}
body:not([data-page="top"]) .page-hero + .content-section,
body:not([data-page="top"]) .content-section {
  padding: 16px 0 80px;
  border-top: 1px solid #595757;
}
body:not([data-page="top"]) .intro-list {
  width: calc(66.666% - 10px);
  margin: 0 0 0 auto;
  padding: 0 0 0 1.25em;
  border: 0;
  background: transparent;
  line-height: 1.8;
}
body:not([data-page="top"]) .numbered-section {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 20px;
  padding: 16px 0 72px;
  border-top: 1px solid #595757;
}
body:not([data-page="top"]) .numbered-section:first-of-type {
  border-top: 1px solid #595757;
}
body:not([data-page="top"]) .numbered-title {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}
body:not([data-page="top"]) .numbered-title small {
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
}
body:not([data-page="top"]) .prose {
  max-width: 800px;
  line-height: 1.8;
}
body:not([data-page="top"]) .prose li + li {
  margin-top: 14px;
}
body:not([data-page="top"]) .fee-block {
  padding: 16px 0 80px;
  border-top: 1px solid #595757;
}
body:not([data-page="top"]) .fee-block:first-of-type {
  border-top: 1px solid #595757;
}
body:not([data-page="top"]) .fee-block h2 {
  margin: 0 0 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 24px;
  font-weight: 600;
}
body:not([data-page="top"]) .fee-group {
  margin-top: 52px;
}
body:not([data-page="top"]) .fee-group h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}
body:not([data-page="top"]) .profile-layout {
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  gap: 20px;
}
body:not([data-page="top"]) .profile-photo {
  width: calc(100% - 20px);
  max-width: 480px;
}
body:not([data-page="top"]) .gallery-grid {
  gap: 50px 20px;
}
body:not([data-page="top"]) .gallery-card h2 {
  margin-top: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 500;
}
body:not([data-page="top"]) .gallery-card p {
  font-size: 12px;
}
body:not([data-page="top"]) .contact-box {
  max-width: 800px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
body:not([data-page="top"]) .contact-box strong {
  font-family: inherit;
  font-size: 24px;
  font-weight: 500;
}

@media (max-width: 63.999em) {
  body:not([data-page="top"]) .page-hero,
  body:not([data-page="top"]) .page-hero.compact {
    margin-top: 80px;
    padding: 6px 0 60px;
  }
  body:not([data-page="top"]) .page-title { font-size: 24px; }
  body:not([data-page="top"]) .page-lead {
    width: 75%;
    margin-top: 44px;
    font-size: 18px;
  }
  body:not([data-page="top"]) .hero-note { width: 75%; }
  body:not([data-page="top"]) .numbered-title,
  body:not([data-page="top"]) .fee-block h2 { font-size: 20px; }
}

@media (max-width: 39.999em) {
  body:not([data-page="top"]) main {
    width: calc(100% - 40px);
  }
  body:not([data-page="top"]) .page-hero,
  body:not([data-page="top"]) .page-hero.compact {
    margin-top: 76px;
    padding-bottom: 52px;
  }
  body:not([data-page="top"]) .page-lead,
  body:not([data-page="top"]) .hero-note,
  body:not([data-page="top"]) .intro-list {
    width: 100%;
  }
  body:not([data-page="top"]) .page-lead { margin-top: 38px; }
  body:not([data-page="top"]) .content-section,
  body:not([data-page="top"]) .page-hero + .content-section,
  body:not([data-page="top"]) .fee-block {
    padding-bottom: 60px;
  }
  body:not([data-page="top"]) .numbered-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 60px;
  }
  body:not([data-page="top"]) .fee-block h2 { margin-bottom: 36px; }
  body:not([data-page="top"]) .profile-layout { grid-template-columns: 1fr; gap: 32px; }
  body:not([data-page="top"]) .profile-photo { width: 100%; }
  body:not([data-page="top"]) .gallery-grid { gap: 34px 12px; }
  body:not([data-page="top"]) .contact-box { margin-left: 0; }
}

/* Lower pages keep the legacy Gyokuyokai visual language; only layout adapts. */
body:not([data-page="top"]) {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
body:not([data-page="top"]) .page {
  background: #fff url("/images/Body_top.jpg") center top / 1000px auto no-repeat;
}
body:not([data-page="top"]) main {
  position: relative;
  width: min(900px, calc(100% - 80px));
  min-height: 650px;
  padding: 22px 0 80px;
}
body:not([data-page="top"]) .page-hero,
body:not([data-page="top"]) .page-hero.compact {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 20px 20px 24px;
  border-top: 1px dotted #777;
  border-bottom: 0;
}
body:not([data-page="top"]) .page-hero > div {
  display: block;
}
body:not([data-page="top"]) .eyebrow {
  display: none;
}
body:not([data-page="top"]) .page-title {
  display: block;
  width: 320px;
  max-width: 100%;
  height: 35px;
  margin: 0;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: left top;
  color: transparent;
  font-size: 0;
  line-height: 0;
}
body:not([data-page="top"]) .page-title::before { display: none; }
body[data-page="school"] .page-title { background-image: url("/images/school_title.gif"); }
body[data-page="adult"] .page-title { background-image: url("/images/adult_title.gif"); }
body[data-page="price"] .page-title { background-image: url("/images/price_title.gif"); }
body[data-page="profile"] .page-title { background-image: url("/images/profile_title.gif"); }
body[data-page="gallery"] .page-title { background-image: url("/images/gallery_title.gif"); }
body[data-page="access"] .page-title { width: 180px; height: 25px; background-image: url("/images/access_title.gif"); }
body[data-page="support"] .page-title { background-image: url("/images/support_title.gif"); }
body:not([data-page="top"]) .page-lead {
  display: none;
  width: auto;
  margin: 10px 0 0 30px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
body[data-page="profile"] .page-lead,
body[data-page="gallery"] .page-lead,
body[data-page="access"] .page-lead,
body[data-page="support"] .page-lead {
  display: block;
}
body:not([data-page="top"]) .hero-note {
  width: auto;
  margin: 8px 0 0 30px;
  padding: 0;
  border: 0;
  font-size: 14px;
  font-weight: 700;
}
body:not([data-page="top"]) .page-hero + .content-section,
body:not([data-page="top"]) .content-section,
body:not([data-page="top"]) .fee-block {
  padding: 20px 20px 26px;
  border-top: 1px dotted #777;
}
body:not([data-page="top"]) .intro-list {
  width: auto;
  margin: 0;
  padding: 0 0 0 1.25em;
  border: 0;
  background: transparent;
  font-weight: 700;
  line-height: 1.65;
}
body:not([data-page="top"]) .numbered-section,
body:not([data-page="top"]) .numbered-section:first-of-type {
  display: block;
  padding: 22px 20px 24px;
  border-top: 1px dotted #777;
}
body:not([data-page="top"]) .numbered-title {
  width: 260px;
  max-width: 100%;
  height: 25px;
  margin: 0 0 10px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: left top;
  color: transparent;
  font-size: 0;
  line-height: 0;
}
body:not([data-page="top"]) .numbered-title small { display: none; }
body[data-page="school"] .numbered-section:nth-of-type(2) .numbered-title { background-image: url("/images/school_subtitle01.gif"); }
body[data-page="school"] .numbered-section:nth-of-type(3) .numbered-title { background-image: url("/images/school_subtitle02.gif"); }
body[data-page="school"] .numbered-section:nth-of-type(4) .numbered-title { background-image: url("/images/school_subtitle03.gif"); }
body[data-page="school"] .numbered-section:nth-of-type(5) .numbered-title { background-image: url("/images/school_subtitle04.gif"); }
body[data-page="school"] .numbered-section:nth-of-type(6) .numbered-title { background-image: url("/images/school_subtitle05.gif"); }
body[data-page="school"] .numbered-section:nth-of-type(7) .numbered-title { background-image: url("/images/school_subtitle06.gif"); }
body[data-page="adult"] .numbered-section:nth-of-type(1) .numbered-title { background-image: url("/images/adult_subtitle01.gif"); }
body[data-page="adult"] .numbered-section:nth-of-type(2) .numbered-title { background-image: url("/images/adult_subtitle02.gif"); }
body[data-page="adult"] .numbered-section:nth-of-type(3) .numbered-title { background-image: url("/images/adult_subtitle03.gif"); }
body[data-page="adult"] .numbered-section:nth-of-type(4) .numbered-title { background-image: url("/images/adult_subtitle04.gif"); }
body[data-page="adult"] .numbered-section:nth-of-type(5) .numbered-title { background-image: url("/images/adult_subtitle05.gif"); }
body:not([data-page="school"]):not([data-page="adult"]):not([data-page="top"]) .numbered-title {
  width: auto;
  height: auto;
  overflow: visible;
  background: none;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 20px;
  line-height: 1.4;
}
body:not([data-page="top"]) .prose {
  max-width: none;
  font-size: 14px;
  line-height: 1.7;
}
body:not([data-page="top"]) .prose ul { margin: 0; }
body:not([data-page="top"]) .prose li + li { margin-top: 4px; }
.legacy-sidebar {
  position: absolute;
  top: 22px;
  left: 0;
  width: 180px;
  font-size: 12px;
  line-height: 1.45;
}
.legacy-sidebar h2 { width: 180px; height: 25px; margin: 0 0 10px; line-height: 0; }
.legacy-sidebar-map { display: block; width: 180px; border: 1px solid #bbb; }
.legacy-sidebar p { margin: 8px 0 0; }
.legacy-sidebar a { text-underline-offset: 3px; }
body:not([data-page="top"]) .fee-block h2 {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}
body:not([data-page="top"]) .fee-group { margin-top: 20px; }
body:not([data-page="top"]) .fee-group h3 { margin: 0 0 8px; font-size: 14px; }
body:not([data-page="top"]) .fee-row { grid-template-columns: 36px minmax(0, 1fr) 90px; border-color: #bbb; }
body:not([data-page="top"]) .fee-row > * { padding: 10px 8px; }
body:not([data-page="top"]) .timetable,
body:not([data-page="top"]) .time-row { border-color: #bbb; }
body:not([data-page="top"]) .time-slot { border-color: #bbb; }
body:not([data-page="top"]) .profile-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
body:not([data-page="top"]) .profile-photo { width: 250px; max-width: 100%; }
body:not([data-page="top"]) .history li { padding: 6px 0; }
body:not([data-page="top"]) .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
body:not([data-page="top"]) .gallery-card h2 { font-size: 14px; }
body:not([data-page="top"]) .contact-box {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body:not([data-page="top"]) .contact-box strong { font-family: inherit; font-size: 22px; }

@media (max-width: 63.999em) {
  body:not([data-page="top"]) main {
    width: min(100% - 40px, 720px);
    padding: 20px 0 60px;
  }
  body:not([data-page="top"]) .page-hero,
  body:not([data-page="top"]) .page-hero.compact {
    margin: 0;
    padding: 18px 0 22px;
  }
  body:not([data-page="top"]) .page-hero + .content-section,
  body:not([data-page="top"]) .content-section,
  body:not([data-page="top"]) .fee-block,
  body:not([data-page="top"]) .numbered-section,
  body:not([data-page="top"]) .numbered-section:first-of-type {
    padding-right: 0;
    padding-left: 0;
  }
  body:not([data-page="top"]) .page-lead,
  body:not([data-page="top"]) .hero-note { margin-left: 20px; }
  .legacy-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr);
    gap: 0 20px;
    width: 100%;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px dotted #777;
  }
  .legacy-sidebar h2 { grid-column: 1 / -1; }
  .legacy-sidebar-map { width: 100%; max-width: 360px; }
  .legacy-sidebar p { margin-top: 0; }
}

@media (max-width: 39.999em) {
  body:not([data-page="top"]) .page { background-size: 760px auto; }
  body:not([data-page="top"]) .page-hero,
  body:not([data-page="top"]) .page-hero.compact { padding-top: 16px; padding-bottom: 20px; }
  body:not([data-page="top"]) .page-title { background-size: auto 35px; }
  body[data-page="access"] .page-title { background-size: auto 25px; }
  body:not([data-page="top"]) .profile-layout { grid-template-columns: 1fr; gap: 20px; }
  body:not([data-page="top"]) .profile-photo { display: block; margin-right: auto; margin-left: auto; }
  body:not([data-page="top"]) .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  body:not([data-page="top"]) .fee-row { grid-template-columns: 34px minmax(0, 1fr); }
  body:not([data-page="top"]) .fee-price { grid-column: 2; padding-top: 0; }
  .legacy-sidebar { grid-template-columns: 1fr; }
  .legacy-sidebar h2 { grid-column: auto; }
  .legacy-sidebar p { margin-top: 12px; }
}

/* Keep the landing introduction within the first viewport, as on teq.co.jp. */
body[data-page="top"] {
  --landing-header-height: 124px;
}
body[data-page="top"] .page {
  position: relative;
  background: #fff;
}
body[data-page="top"] .page::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: var(--landing-header-height);
  right: 0;
  left: 0;
  height: calc(100vh - var(--landing-header-height));
  height: calc(100svh - var(--landing-header-height));
  background: url("/images/top_bg.jpg") center top / auto 130% no-repeat;
}
body[data-page="top"] main {
  position: relative;
  z-index: 1;
  padding-top: 0;
}
body[data-page="top"] .home-hero {
  position: relative;
  min-height: calc(100vh - var(--landing-header-height));
  min-height: calc(100svh - var(--landing-header-height));
}
body[data-page="top"] .hero-visual {
  position: absolute;
  top: calc(50vh - var(--landing-header-height));
  top: calc(50svh - var(--landing-header-height));
  left: 50%;
  width: 100%;
  padding: 0;
  text-align: center;
  transform: translate(-50%, -50%);
}
body[data-page="top"] .hero-visual img {
  display: block;
  width: min(420px, 80vw);
  margin: 0 auto;
}
body[data-page="top"] .hero-copy {
  position: absolute;
  top: auto;
  bottom: 24px;
  left: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(900px, calc(100% - 40px));
  margin: 0;
  padding: 0;
  text-align: center;
  transform: translateX(-50%);
}

@media (max-width: 74.999em) {
  body[data-page="top"] {
    --landing-header-height: 64px;
  }
  body[data-page="top"] .home-hero {
    display: block;
  }
}
