/* A — a school prospectus, in the paper and ink family of the JA16CT LP.
   Standalone: system fonts only; no imports, scripts or image dependencies. */
:root {
  color-scheme: light;
  --paper: #faf8f5;
  --sheet: #fffdf9;
  --paper-deep: #f3efea;
  --ink: #25232b;
  --text: #3a3740;
  --muted: #6f6a74;
  --rule: #ded7ce;
  --accent: #80516a;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --english: Baskerville, "Palatino Linotype", "Times New Roman", serif;
  background: var(--paper);
  color: var(--text);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body > header, body > footer { padding-inline: max(22px, calc((100% - 1120px) / 2)); }
body > header {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 20px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
a { color: var(--accent); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:not([href]) { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.site-name {
  color: var(--ink);
  font: 600 19px / 1.5 var(--english);
  letter-spacing: .1em;
  text-decoration: none;
  padding-block: 6px;
}
.site-nav { position: relative; width: 100%; min-width: 0; font-size: 12px; line-height: 1.6; }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
.site-nav > ul > li > a, .site-nav summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav p { margin: 0; }
.site-nav summary { cursor: pointer; gap: 5px; list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.site-nav details[open] > summary { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.site-nav details[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.site-nav .site-submenu {
  position: absolute;
  z-index: 6;
  inset: 100% 0 auto;
  max-height: 55svh;
  overflow-y: auto;
  padding: 10px 18px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  box-shadow: 0 12px 24px #25232b0d;
}
.site-submenu li + li { border-top: 1px solid var(--rule); }
.site-submenu a { display: block; padding-block: 12px; color: var(--ink); text-decoration: none; }
main { max-width: 1120px; min-height: 60svh; margin-inline: auto; padding: 48px 22px 80px; }
main div { min-width: 0; }
main:not(:has(.gallery-strip)) { max-width: 760px; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--mincho); font-weight: 600; letter-spacing: .065em; }
h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.65; margin: 0 0 32px; }
h2 { font-size: clamp(21px, 3vw, 28px); line-height: 1.7; margin: 48px 0 18px; }
h3 { font-size: 18px; line-height: 1.8; margin: 32px 0 12px; }
h4, h5, h6 { font-size: 16px; line-height: 1.8; margin: 24px 0 12px; }
p { white-space: pre-line; margin: 16px 0; }
main :where(p, h2, h3, h4, blockquote) { max-width: 44rem; }
main :where(ol, ul):not(.gallery-track) { padding-inline-start: 24px; }
main li { padding-inline-start: 3px; }
li > p { margin-block: 8px; }
li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; height: auto; margin-block: 24px; }
figure { max-width: 100%; margin: 28px 0; }
figcaption, time { color: var(--muted); font-size: 14px; }
main article { max-width: 44rem; margin-inline: auto; }
main article :where(h2, h3) { padding-block-start: 16px; border-top: 1px solid var(--rule); }
main nav :where(ul, ol) { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; font-size: 13px; }
main aside { padding: 20px; border: 1px solid var(--rule); background: var(--paper-deep); margin-bottom: 32px; }
main aside h2 { margin-top: 0; font-size: 18px; }
main aside ul { margin-bottom: 0; }
table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 28px; font-size: 14px; }
th, td { border: 1px solid var(--rule); padding: 14px; text-align: left; vertical-align: top; min-width: 7em; }
th { background: var(--paper-deep); color: var(--ink); font-weight: 600; }
caption { text-align: left; padding-block: 10px; font-weight: 600; }
blockquote { margin: 28px 0; padding: 8px 22px; border-left: 2px solid var(--accent); background: var(--paper-deep); }
pre { max-width: 100%; padding: 16px; white-space: pre-wrap; background: var(--paper-deep); }
hr { border: 0; border-top: 1px solid var(--rule); margin-block: 40px; }
/* The original home IDs let the same stylesheet work without changing markup. */
#comp-lsofc8qs1 h1 { font-size: clamp(24px, 6.4vw, 52px); line-height: 1.85; margin: 8px 0 28px; }
#comp-lsofc8qs1 h1::before { content: ""; display: block; width: 56px; height: 5px; margin-bottom: 28px; background: linear-gradient(to right, #e79fb5 0 25%, #f2cd8a 25% 50%, #8ccdc4 50% 75%, #a8afe8 75%); }
#comp-lsofc8qu1 { max-width: 38rem; font-size: 15px; line-height: 2.15; }
#comp-lsofc8qu1 p { margin-block: 6px; }
#comp-m06epe7c { margin-top: 44px; }
#comp-m089z5g6 { margin-top: 22px; }
#afe8n { counter-reset: home-section; }
#afe8n section:has(> div > div > div > div > div > h2) { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--rule); }
#afe8n :is(#comp-m06hl0ai, #comp-lu6myi1r, #comp-m06hr4hh, #comp-m06t2fkg) h2 { margin-top: 0; }
#afe8n :is(#comp-m06hl0ai, #comp-lu6myi1r, #comp-m06hr4hh, #comp-m06t2fkg) h2::before {
  counter-increment: home-section;
  content: counter(home-section, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font: 14px / 1.5 var(--english);
  letter-spacing: .16em;
}
#comp-m06hdsrt h2 { font: 400 15px / 2.1 var(--gothic); letter-spacing: .025em; }
#afe8n img { max-width: 640px; width: 100%; }
#comp-m06hlfdm img { max-width: 180px; }
#comp-m06taczt img { max-width: 48px; }
#comp-m06tc6i9 img { max-width: 160px; }
/* Scroll the strip, never the whole page. Cards stay legible on a 375px phone. */
.gallery-strip {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-block: 18px;
  border-block: 1px solid var(--rule);
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--muted) var(--paper-deep);
  scrollbar-width: thin;
}
.gallery-track { display: flex; align-items: stretch; gap: 18px; width: max-content; margin: 0; padding: 4px; list-style: none; }
.gallery-track > .gallery-card {
  flex: 0 0 clamp(160px, 44vw, 200px);
  width: clamp(160px, 44vw, 200px);
  min-width: 0;
  padding: 0;
  scroll-snap-align: start;
}
.gallery-card img { width: 100%; margin-block: 0; }
.gallery-card img + img { margin-top: 12px; }
li.gallery-card { border: 1px solid var(--rule); padding: 14px !important; background: var(--sheet); font-size: 13px; line-height: 1.8; }
li.gallery-card a { display: block; color: var(--ink); text-decoration: none; }
li.gallery-card :is(h3, p) { font-family: var(--gothic); font-size: 14px; line-height: 1.8; margin-block: 14px 8px; }
.sold-out { display: block; width: fit-content; max-width: 100%; margin-block: 12px; padding: 5px 12px; border: 1px solid var(--ink); color: var(--ink); background: var(--paper-deep); font: 600 11px / 1.6 var(--gothic); letter-spacing: .12em; }
body > footer { margin-top: 24px; padding-block: 40px max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--paper-deep); font-size: 13px; line-height: 1.9; }
footer h2 { max-width: 38rem; margin-block: 12px; font: 400 13px / 1.9 var(--gothic); letter-spacing: .025em; }
#comp-lqi6dpln h2 { margin: 0 0 24px; font: 600 21px / 1.5 var(--english); letter-spacing: .09em; }
footer a { display: inline-block; padding-block: 8px; }
footer img { max-width: 240px; }
@media (min-width: 48rem) {
  body > header { padding-block: 24px; }
  .site-nav { width: auto; font-size: 13px; }
  .site-nav > ul { gap: 4px 22px; }
  .site-nav .site-submenu { left: auto; min-width: 280px; }
  main { padding-top: 72px; padding-bottom: 112px; }
  #comp-lsofc8qs1 h1 { margin-block: 24px 32px; }
  #comp-m06epe7c { margin-top: 60px; }
  .gallery-track { gap: 24px; }
}
@media print {
  :root { background: #fff; color: #000; }
  body > header, body > footer { display: none; }
  main { max-width: none; padding: 0; }
  .gallery-strip { overflow: visible; }
  .gallery-track { flex-wrap: wrap; width: auto; }
  h1, h2, h3 { break-after: avoid; }
}

/* One paper-and-ink theme, shared by all 54 pages. */
html { scroll-behavior: smooth; }
main:has(:is(.blog-list, .reviews-section)) { max-width: 1120px; }
.latest-posts, .reviews-section, .reviews-summary { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--rule); }
.latest-posts > h2, .reviews-section > h2, .reviews-summary > h2 { margin-top: 0; }
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  margin-block: 20px 4px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

/* The 85% card basis intentionally leaves the next card in view on phones.
   Track width is the viewport width, so percentages never resolve against
   max-content. Each strip itself owns horizontal overflow and keyboard focus. */
.swipe-hint {
  max-width: none;
  margin: 16px 0 4px;
  text-align: right;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .14em;
}
.gallery-strip, .blog-strip, .review-strip {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-block: 18px;
  border-block: 1px solid var(--rule);
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--muted) var(--paper-deep);
  scrollbar-width: thin;
  mask-image: linear-gradient(to right, transparent, #000 6px, #000 calc(100% - 18px), transparent);
}
main :is(.gallery-track, .blog-track, .review-track) {
  display: flex;
  align-items: stretch;
  width: auto;
  gap: 16px;
  margin: 0;
  padding: 4px;
  list-style: none;
}
:is(.gallery-track, .blog-track, .review-track) > :is(.gallery-card, .blog-card, .review-card) {
  flex: 0 0 calc(85% - 12px);
  width: calc(85% - 12px);
  min-width: 0;
  scroll-snap-align: start;
}
/* Article cards reuse the first original image; its crop never changes the asset. */
main .blog-grid { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
.blog-card, .review-card {
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--sheet);
  box-shadow: 0 4px 12px #25232b04;
}
main :is(.blog-card, .review-card) article { max-width: none; margin: 0; padding: 22px; }
main .blog-card article { padding: 0 0 22px; }
.blog-card-link { display: block; color: var(--ink); text-decoration: none; }
.blog-card img, #afe8n .blog-card img { width: 100%; max-width: none; height: 210px; object-fit: contain; margin: 0; background: var(--paper-deep); }
main .blog-card h2 { font: 600 18px / 1.8 var(--mincho); margin: 0; padding: 22px 22px 12px; border: 0; letter-spacing: .025em; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-inline: 22px; font-size: 12px; }
.blog-meta time { font-size: 12px; }
.blog-meta a { color: var(--accent); }
.blog-pagination { margin-top: 36px; }
main .blog-pagination ol { justify-content: center; padding: 0; }
.blog-pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--rule); text-decoration: none; }
.blog-pagination [aria-current] { background: var(--ink); color: var(--sheet); }
main .blog-post { max-width: 42rem; font-size: 16px; line-height: 2.05; }
.blog-post h1 { font-size: clamp(26px, 4vw, 36px); }
.blog-post :is(h3, h4, h5, h6) { line-height: 1.85; }
.blog-post img { max-height: 720px; width: auto; margin: 32px auto; object-fit: contain; }
.blog-post pre { font-family: inherit; }
.article-return { max-width: 42rem; margin: 44px auto 0; border-top: 1px solid var(--rule); }
.blog-post li { margin-block: 4px; }
.survey-source, .review-note { color: var(--muted); font-size: 13px; }
.satisfaction-summary { display: grid; gap: 12px 48px; padding-block: 12px 24px; }
.satisfaction-score { color: var(--accent); font: 500 clamp(38px, 8vw, 60px) / 1.4 var(--english); margin: 8px 0; font-variant-numeric: tabular-nums; }
.satisfaction-score span { color: var(--muted); font-size: 22px; }
.satisfied-share { color: var(--ink); font-weight: 600; }
main .rating-distribution { list-style: none; padding: 0; margin: 16px 0; }
.rating-distribution li { display: grid; grid-template-columns: 2em minmax(0, 1fr) 3em; gap: 12px; align-items: center; font-size: 13px; font-variant-numeric: tabular-nums; margin-block: 6px; padding: 0; }
.rating-distribution meter { appearance: none; display: block; width: 100%; height: 12px; border: 0; border-radius: 0; background: var(--paper-deep); }
.rating-distribution meter::-webkit-meter-bar { border: 0; border-radius: 0; background: var(--paper-deep); }
.rating-distribution meter::-webkit-meter-optimum-value { background: var(--accent); }
.rating-distribution meter::-moz-meter-bar { background: var(--accent); }
main .review-card h3 { padding: 0; margin: 0 0 4px; border: 0; font: 600 16px / 1.8 var(--gothic); }
.review-card time { font-size: 12px; }
.review-stars { color: var(--accent); font-size: 15px; margin-block: 12px; }
.review-copy { font-size: 14px; line-height: 1.95; }
.review-copy p { white-space: pre-wrap; margin-block: 0; }
.review-copy summary { width: fit-content; min-height: 44px; padding-block: 12px 4px; color: var(--accent); cursor: pointer; text-underline-offset: .25em; text-decoration: underline; }
.review-copy details[open] > summary { margin-bottom: 12px; }
.review-note { margin-top: 20px; }
#diagnosis-reviews { scroll-margin-top: 24px; }

/* Visible at rest, with no opacity:0 state and no script-dependent classes. */
@keyframes academy-rise {
  from { opacity: .75; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes academy-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}
@keyframes academy-reveal {
  from { opacity: .85; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
main h1, #comp-lsofc8qu1 { animation: academy-rise .75s ease-out; }
#comp-lsofc8qu1 { animation-delay: .12s; }
#comp-lsofc8qs1 h1::before { animation: academy-float 7s ease-in-out infinite; }
:is(.gallery-card, .blog-card, .review-card) { animation: academy-rise .65s ease-out; transition: transform .22s ease, box-shadow .22s ease; }
:is(.gallery-card, .blog-card, .review-card):nth-child(4n + 2) { animation-delay: .08s; }
:is(.gallery-card, .blog-card, .review-card):nth-child(4n + 3) { animation-delay: .16s; }
:is(.gallery-card, .blog-card, .review-card):nth-child(4n) { animation-delay: .24s; }
.text-button, .site-nav a, .blog-pagination a, footer a[href] { transition: transform .2s ease, background-color .2s ease; }
@media (hover: hover) {
  :is(.gallery-card, .blog-card, .review-card):hover { transform: translateY(-4px); box-shadow: 0 10px 22px #25232b12; }
  :is(.text-button, .blog-pagination a, footer a[href]):hover { transform: translateY(-2px); }
}
:is(.gallery-card, .blog-card, .review-card):focus-within { box-shadow: 0 8px 20px #25232b12; }
:is(.text-button, .blog-pagination a):active, :is(.gallery-card, .blog-card, .review-card):active { transform: translateY(-2px); }
@supports (animation-timeline: view()) {
  .latest-posts, .reviews-section, #afe8n section:has(h2), .blog-post section, .blog-grid > .blog-card {
    animation: academy-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}
@media (min-width: 48rem) {
  .gallery-track > .gallery-card { flex-basis: 200px; width: 200px; }
  .gallery-track:has(> li) > .gallery-card { flex-basis: 280px; width: 280px; }
  .blog-track > .blog-card, .review-track > .review-card { flex-basis: 320px; width: 320px; }
  main .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .satisfaction-summary { grid-template-columns: 1fr 1fr; align-items: center; }
  .swipe-hint:has(+ .gallery-strip .gallery-card:last-child:nth-child(-n+2)) { display: none; }
}
@media (min-width: 72rem) {
  main .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swipe-hint:has(+ :is(.gallery-strip, .blog-strip, .review-strip) :is(.gallery-card, .blog-card, .review-card):last-child:nth-child(-n+3)) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  :is(.gallery-card, .blog-card, .review-card, .text-button, .blog-pagination a, footer a[href]):is(:hover, :active) { transform: none !important; }
}
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .swipe-hint { display: none; }
  .gallery-strip, .blog-strip, .review-strip { overflow: visible; mask-image: none; }
  main :is(.gallery-track, .blog-track, .review-track) { flex-wrap: wrap; }
}
