:root {
  color-scheme: light;
  --ink: #152c43;
  --muted: #465d70;
  --paper: #fefefd;
  --line: #cfdfec;
  --sky: #d8edfb;
  --deep: #285b82;
  --ice: #e4f2ff;
  --peach: #ffdcd1;
  --butter: #fff2c2;
  --mint: #daefe4;
  --header-height: 87px;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.75; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #235e87; outline-offset: 4px; }
.wrap { width: min(1140px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 11; padding: .5rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.header { position: sticky; z-index: 10; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
html { scroll-padding-top: var(--header-height); }
.header-inner { display: flex; align-items: center; justify-content: flex-start; gap: 24px; min-height: 77px; }
.brand { font: 400 31px/1.08 "Bodoni MT", Didot, "Times New Roman", serif; letter-spacing: .02em; text-decoration: none; }
.brand span { color: #235e87; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: .85rem; font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover, .text-link:hover { color: #235e87; }
.member { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--ink); padding: 9px 15px; min-height: 44px; white-space: nowrap; border-radius: 6px; font-weight: 800; font-size: .82rem; text-decoration: none; }
.member:hover { background: var(--sky); }
.eyebrow, .home-label { margin: 0 0 8px; color: var(--deep); font: italic 700 1.2rem Georgia, serif; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 48px; padding: 9px 16px; border: 1px solid var(--ink); border-radius: 6px; font-size: .88rem; font-weight: 800; text-decoration: none; }
.primary { background: var(--ink); color: white; }
.primary:hover { background: var(--deep); }
.secondary:hover { background: white; }
.section { padding-block: clamp(52px, 8vw, 105px); scroll-margin-top: 14px; }
.intro, .faq { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(26px, 6vw, 86px); align-items: start; }
h2, .detail-page h1 { margin: 0; font-size: clamp(1.75rem, 4.1vw, 3.3rem); font-weight: 900; line-height: 1.25; letter-spacing: -.04em; }
h3 { line-height: 1.4; }
.prose p:first-child { margin-top: 0; }
.prose, .lead, .genre-list p, .note { color: var(--muted); }
.text-link { display: inline-block; margin-top: 12px; color: var(--deep); font-weight: 800; text-underline-offset: .3em; }
.tinted { background: #eef7ff; border-block: 1px solid var(--line); }
.genre-list { display: grid; gap: 28px; margin-block: 32px 10px; }
.genre-list article { min-width: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); padding: 18px; }
.genre-number { color: #235e87; font: 800 .75rem monospace; }
.genre-list h3 { margin: 6px 0; font: 900 1.38rem/1.25 system-ui, sans-serif; }
.genre-list p { margin: 0; font-size: .89rem; }
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.activity-grid > div { border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 3vw, 32px); }
.practice { background: var(--mint); }
.activity-grid h3 { margin-top: 0; }
dl { margin: 0; }
dl div { display: grid; grid-template-columns: minmax(4.3rem, .37fr) 1fr; gap: .65rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
dt { font-weight: 800; }
dd { margin: 0; }
.note { font-size: .84rem; margin-bottom: 0; }
.join { background: var(--sky); border-block: 1px solid var(--ink); }
.join .lead { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 13px; }
.steps li::before { content: "0" counter(step); font: 800 .8rem monospace; }
.steps h3 { margin: 8px 0 6px; }
.steps p { margin: 0; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 13px 0; font-weight: 800; }
details p { margin: 0 0 16px; color: var(--muted); }
footer { background: var(--ink); color: white; padding-block: 27px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .82rem; }
.footer-inner .brand span { color: var(--sky); }
.footer-inner p { margin: 7px 0 0; }
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-main { flex: 1; display: grid; place-items: center; padding-block: 52px; }
.login-card { width: min(100%, 550px); padding: clamp(22px, 6vw, 56px); background: #eef7ff; border: 1px solid var(--ink); border-radius: 8px; box-shadow: 7px 7px 0 var(--deep); }
.login-card h1 { margin: 0; font-size: clamp(1.25rem, 5.2vw, 2.6rem); line-height: 1.3; white-space: nowrap; }
.login-status { display: inline-block; margin: 20px 0 0; padding: 3px 9px; border: 1px solid var(--deep); border-radius: 4px; font-size: .82rem; font-weight: 800; }
@media (max-width: 920px) {
  nav { gap: 13px; }
}
@media (max-width: 720px) {
  :root { --header-height: 110px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; gap: 0 12px; min-height: 63px; padding-block: 9px; }
  nav { order: 3; width: 100%; padding-top: 7px; gap: 5px 16px; font-size: .78rem; }
  nav a { display: inline-flex; align-items: center; min-height: 32px; }
  .intro, .faq, .activity-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
  .wrap { width: calc(100% - 28px); }
  .genre-list article { padding: 12px; }
  .footer-inner { flex-wrap: wrap; }
}

nav a[aria-current="page"] { color: #235e87; text-decoration: underline; text-underline-offset: .35em; }
.breadcrumb { display: flex; gap: 12px; padding-block: 15px; color: var(--muted); }
.detail-page main > .section:first-of-type { padding-top: clamp(36px, 6vw, 74px); }
.explore { border-top: 1px solid var(--line); }
[hidden] { display: none !important; }
.nav-group { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-dropdown { border: 0; }
.nav-dropdown:last-child { border: 0; }
.nav-dropdown > summary {
  display: grid; place-items: center; min-height: 44px;
  padding: 0; list-style: none; font-size: inherit; color: inherit;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-panel {
  position: absolute; z-index: 3; top: 100%; left: 0; min-width: 172px;
  display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); box-shadow: 0 8px 22px #152c4320;
}
.nav-panel a { display: block; padding: 9px 11px; white-space: nowrap; border-radius: 0; }
.nav-panel a + a { border-top: 1px solid var(--line); }
.nav-panel a:hover, .nav-panel a:focus-visible { background: var(--ice); }
.gallery {
  --gallery-side: calc(max(36px, (100% - 1140px) / 2) * .6);
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  width: 100%; min-width: 0;
}
@media (max-width: 720px) {
  .gallery { --gallery-side: 10.8px; }
}
@media (max-width: 375px) {
  .gallery { --gallery-side: 8.4px; }
}
.gallery-viewport { position: relative; width: 100%; overflow: hidden; }
.gallery-slides { position: relative; width: calc(100% - 2 * var(--gallery-side)); height: 100%; }
.gallery-slide { width: 100%; height: 100%; }
.gallery-arrows button {
  --arrow-size: clamp(22px, 3vw, 40px);
  position: absolute; inset-block: 0; width: var(--gallery-side);
  padding: 0; border: 0; background: transparent; cursor: pointer;
}
.gallery-arrows button:first-child { left: 0; --arrow-angle: -135deg; }
.gallery-arrows button:last-child { right: 0; --arrow-angle: 45deg; }
.gallery-arrows span {
  position: absolute;
  top: 50%;
  width: var(--arrow-size); height: var(--arrow-size);
  border: solid #f7faf8e6; border-width: 3px 3px 0 0;
  filter: drop-shadow(0 1px 3px #152c4373);
  transform: translate(-50%, -50%) rotate(var(--arrow-angle));
  opacity: 0; pointer-events: none;
}
.gallery-arrows button:first-child span { left: max(var(--arrow-size), 50%); }
.gallery-arrows button:last-child span { left: min(100% - var(--arrow-size), 50%); }
.gallery-arrows button:hover span, .gallery-arrows button:focus-visible span { opacity: 1; }
.gallery-arrows button:focus-visible { outline: 2px solid var(--deep); outline-offset: -2px; }
 .gallery-overlay {
  position: absolute; inset: 0; pointer-events: none;
}
.gallery-identity {
  --wordmark-size: clamp(3.5rem, 10vw, 10rem);
  position: absolute; top: clamp(20px, 5vw, 80px);
  left: max(4px, calc(max(18px, (100% - 1140px) / 2 - 72px) - 1em - var(--wordmark-size) * .67));
  color: var(--ink); max-width: calc(100% - 36px); text-shadow: 0 2px 14px #ffffff90;
}
.gallery-circle-name {
  margin: 0 0 5px; font-size: clamp(.7rem, 1.4vw, 1.25rem);
  font-weight: 700; letter-spacing: .09em; line-height: 1.5;
  text-shadow: 0 0 4px #ffffff75, 0 2px 14px #ffffff90;
}
.gallery-wordmark {
  margin: 0; color: inherit;
  font: 900 var(--wordmark-size)/1 "Arial Black", Arial, sans-serif;
  letter-spacing: -.07em;
}

.gallery-join {
  position: absolute; right: max(18px, calc((100% - 1140px) / 4 - 104px)); bottom: clamp(20px, 4vw, 60px);
  display: grid; place-content: center; width: clamp(136px, 14vw, 208px); aspect-ratio: 1;
  padding: 18px; border-radius: 46% 54% 49% 51% / 52% 45% 55% 48%;
  color: var(--ink); background: var(--butter); text-decoration: none;
  font-size: clamp(.95rem, 1.3vw, 1.25rem); line-height: 1.7; font-weight: 700;
  text-align: center; pointer-events: auto;
}
.gallery-join span { display: block; font-size: 1.6rem; line-height: 1; margin-top: 8px; }
.gallery-join:hover { background: var(--peach); }
.gallery-join:focus-visible { outline-offset: -6px; }
.gallery-slide[data-photo="2"] .photo-placeholder { background: #e7e8fc; }
#about.intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#about h1 { font-size: clamp(1.25rem, 2.1vw, 2rem); }
#about h1 span { display: block; white-space: nowrap; }
#about > * { min-width: 0; }
@media (max-width: 720px) {
  #about.intro { grid-template-columns: minmax(0, 1fr); }
  #about h1 { font-size: clamp(1.15rem, 5.3vw, 2rem); }
}
.gallery-slide { margin: 0; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photo-placeholder {
  display: grid; place-items: center; height: 100%;
  color: var(--deep); font-weight: 700; font-size: 1rem; letter-spacing: .1em;
  background: var(--sky);
}
.gallery-slide[data-photo="3"] .photo-placeholder { background: var(--mint); }
.gallery-slide[data-photo="4"] .photo-placeholder { background: var(--peach); }
.gallery-dots { display: flex; justify-content: center; padding-block: 4px; }
.gallery-dots button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; padding: 0; background: transparent; cursor: pointer;
}
.gallery-dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: #94b2c9;
}
.gallery-dots button:hover::before { background: #6388a5; }
.gallery-dots button[aria-current="true"]::before { background: var(--deep); }
.gallery-dots button:focus-visible { outline: 2px solid var(--deep); outline-offset: -6px; }
.home-label { margin: 0 0 8px; color: var(--deep); font: italic 700 1.2rem Georgia, serif; }
#about h1 { margin: 0; line-height: 1.35; }
.explore-grid { margin-top: 24px; border-top: 1px solid var(--line); }
.explore-grid a {
  display: grid; grid-template-columns: minmax(7em, 1fr) 2fr auto;
  align-items: center; gap: 12px; padding: 18px 6px;
  border-bottom: 1px solid var(--line); text-decoration: none;
}
.explore-grid a:hover { background: var(--ice); }
.explore-grid span { color: var(--muted); font-size: .9rem; }
.explore-grid b { color: var(--deep); }
@media (max-width: 600px) {
  .explore-grid a { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .explore-grid span { grid-column: 1; }
  .explore-grid b { grid-column: 2; grid-row: 1; }
}
.greeting { border-top: 1px solid var(--line); }
.greeting-copy { min-height: 112px; }
.schedule { max-width: 760px; margin-block: 24px 12px; border-top: 1px solid var(--line); }
.schedule div { padding-block: 16px; }
.schedule p { margin: 4px 0 0; }
.activity-grid h2 { font-size: clamp(1.25rem, 3vw, 1.85rem); }
.detail-page .genre-list h3 { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .site-nav { gap: 0 12px; }
  .nav-group:last-of-type .nav-panel { left: auto; right: 0; }
}

.site-nav { flex-wrap: nowrap; }
.site-nav .nav-group { --nav-color: #20658d; }
.site-nav .nav-genres { --nav-color: #a04764; }
.site-nav .nav-activity { --nav-color: #327458; }
.site-nav .nav-join { --nav-color: #986024; }
.site-nav .nav-faq { --nav-color: #6a59a0; }
.nav-dropdown[open] > summary,
.site-nav .nav-group:hover summary,
.site-nav .nav-group:hover > .nav-top,
.site-nav .nav-top:focus-visible,
.site-nav summary:focus-visible,
.site-nav .nav-panel a:hover,
.site-nav .nav-panel a:focus-visible,
.site-nav .nav-join:hover,
.site-nav .nav-join:focus-visible,
.site-nav .nav-faq:hover,
.site-nav .nav-faq:focus-visible { color: var(--nav-color); }
.nav-panel a:nth-child(2) { --nav-color: #20658d; }
.nav-panel a:nth-child(3) { --nav-color: #a04764; }
.nav-panel a:nth-child(4) { --nav-color: #327458; }
.nav-panel a:nth-child(5) { --nav-color: #986024; }
.nav-panel a:nth-child(6) { --nav-color: #6a59a0; }
.genre-list article { scroll-margin-top: calc(var(--header-height) + 20px); }
.social-links { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; }
.social-link { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; min-height: 44px; }
.social-link img { display: block; width: 22px; height: 22px; object-fit: contain; }
/* The official YouTube PNG includes transparent space around the mark. */
.social-youtube img { flex: none; width: 40px; height: auto; }
@media (max-width: 720px) {
  .social-line img { width: 36px; height: 36px; }
}
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.copyright { padding-top: 18px; margin-top: 18px; border-top: 1px solid #ffffff35; font-size: .75rem; }
@media (max-width: 1200px) {
  .header-inner { flex-wrap: wrap; justify-content: flex-start; gap: 0 18px; padding-block: 8px; }
  .header-inner .brand { margin-right: auto; }
  .header-inner .site-nav { order: 3; width: 100%; justify-content: flex-end; gap: 0 24px; }
  :root { --header-height: 110px; }
}
@media (max-width: 600px) {
  .header-inner { gap: 0 8px; }
  .header-menu > .social-links { order: 4; width: 100%; justify-content: center; }
  .header-inner .site-nav { justify-content: flex-end; flex-wrap: wrap; gap: 0 14px; }
  .header-inner .member { padding-inline: 12px; }
  .social-link { flex-basis: 44px; width: 44px; }
  :root { --header-height: 160px; }
  .footer-inner { flex-wrap: wrap; }
}

/* Keep grid children within the viewport at every window width. */
.genre-list article {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start; gap: 32px; padding: clamp(20px, 3vw, 40px);
}
.genre-copy, .instagram-posts { min-width: 0; }
.genre-copy h3 { font-family: inherit; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.genre-copy p { font-size: 1rem; line-height: 1.9; }
.instagram-posts { display: grid; gap: 18px; margin-top: 24px; }
.genre-list .instagram-posts { margin-top: 0; }
.instagram-fallback {
  display: grid; place-items: center; min-height: 180px; padding: 20px;
  background: var(--ice); color: var(--deep); text-underline-offset: .3em;
}
.instagram-posts .instagram-media { min-width: 0 !important; width: 100% !important; max-width: 540px !important; margin: 0 auto !important; }
.instagram-posts iframe { max-width: 100% !important; }
@media (max-width: 720px) {
  .genre-list article { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* Broad spaces and softly curved surfaces, informed by the supplied reference. */
.nav-top { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.nav-group { gap: 3px; }
.nav-dropdown > summary { min-width: 24px; min-height: 44px; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown > summary {
    position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0;
    overflow: hidden; clip-path: inset(50%);
  }
  .nav-dropdown > summary:focus-visible {
    position: static; width: 24px; height: 44px; clip-path: none; overflow: visible;
  }
}
.nav-panel { border-radius: 14px; padding: 10px; }
.header { border-bottom-color: transparent; }
.header-inner { min-height: 86px; }
body > main { min-width: 0; }
#about { padding-top: clamp(70px, 10vw, 145px); padding-bottom: clamp(70px, 10vw, 145px); }
#about h1 { font-weight: 700; letter-spacing: .04em; line-height: 1.65; }
.prose { line-height: 2.05; }
.section h1, .section h2 { letter-spacing: .035em; }
.greeting { border-top: 0; position: relative; background: var(--mint); border-radius: 40px 100px 50px 40px; padding-inline: clamp(24px, 4vw, 62px); }
.explore { border-top: 0; }
.explore-grid a { padding-block: 24px; }
.tinted { border: 0; border-radius: 0 0 48px 48px; }
.genre-list article { border: 0; border-radius: 30px; }
.genre-list article:nth-child(even) { background: #f9f7ee; }
.practice, .calendar { border-radius: 24px !important; }
.join { border: 0; border-radius: 48px 48px 0 0; }
.faq-link { padding-block: 20px 50px; }
.faq-page details { padding-block: 5px; }
.faq-topics { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.faq-topics a {
  display: block; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 16px; text-decoration: none;
}
.faq-topics a:hover { background: var(--ice); }
.faq-group + .faq-group { margin-top: 34px; }
.faq-group h2 { margin-bottom: 12px; font-size: 1.25rem; }
footer { color: var(--ink); background: #e8f2f8; }
.footer-inner .brand span { color: var(--deep); }
.copyright { border-top-color: var(--line); }
@media (max-width: 720px) {
  .header-inner { min-height: 63px; }
  .greeting { border-radius: 26px 52px 30px 26px; }
  .tinted { border-radius: 0 0 26px 26px; }
  .join { border-radius: 26px 26px 0 0; }
}


.header-inner.wrap,
.footer-inner.wrap,
.copyright.wrap { width: min(1760px, calc(100% - 96px)); }
.header-inner .brand { font-size: 36px; }
.site-nav { font-size: .95rem; }
.member { font-size: .9rem; }
@media (max-width: 720px) {
  .header-inner.wrap,
  .footer-inner.wrap,
  .copyright.wrap { width: calc(100% - 36px); }
  .header-inner .brand { font-size: 31px; }
  .site-nav { font-size: .78rem; }
  .member { font-size: .82rem; }
}

.header-inner .site-nav { margin-left: auto; }
.gallery-backdrop {
  position: absolute; inset: -28px; pointer-events: none;
  filter: blur(10px); opacity: .4; transform: scale(1.08);
}
.gallery-backdrop .photo-placeholder { color: transparent; }
.gallery-backdrop .gallery-slide img { object-position: center 70%; }
.gallery-backdrop:not(:empty) + .gallery-slides {
  --gallery-blend: clamp(26px, 8vw, 144px);
  mask-image: linear-gradient(
    to right,
    transparent,
    #0002 calc(var(--gallery-blend) * .22),
    #0008 calc(var(--gallery-blend) * .5),
    #000d calc(var(--gallery-blend) * .78),
    #000 var(--gallery-blend),
    #000 calc(100% - var(--gallery-blend)),
    #000d calc(100% - var(--gallery-blend) * .78),
    #0008 calc(100% - var(--gallery-blend) * .5),
    #0002 calc(100% - var(--gallery-blend) * .22),
    transparent
  );
}

.login-page .header-inner .member { margin-left: auto; }



.jazz-variants { display: grid; gap: 36px; min-width: 0; }
.jazz-variant h4 { margin: 0 0 12px; font-size: 1.1rem; }
.jazz-variant .instagram-posts { margin-top: 0; }
.media-block { margin: 48px auto 0; max-width: 960px; min-width: 0; }
.media-block h2 { margin-bottom: 20px; font-size: clamp(1.3rem, 3vw, 2rem); }
.youtube-player { display: block; border: 0; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; }

.year-calendar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 70px); margin-block: 36px 20px; }
.year-half h2 { font-size: 1.35rem; margin: 0 0 20px; }
.month-axis { list-style: none; padding: 0; margin: 0; }
.month-axis li { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); min-height: 105px; }
.month-label { align-self: start; padding-top: 12px; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.month-label small { font-size: .75rem; margin-left: 4px; }
.month-content { position: relative; border-left: 2px solid #b4ccdc; padding: 0 0 15px 22px; min-width: 0; }
.month-content::before { content: ""; position: absolute; left: -6px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--deep); }
.month-axis li:last-child .month-content { border-left-color: transparent; }
.month-event { padding: 12px 16px; border-radius: 12px; background: var(--ice); }
.month-event h3 { margin: 0; font-size: 1rem; }
.month-event p { margin: 5px 0 0; font-size: .85rem; color: var(--muted); }
.season-spring { background: var(--peach); }
.season-summer { background: var(--mint); }
.season-autumn { background: var(--butter); }
.season-winter { background: var(--sky); }
@media (max-width: 720px) {
  .year-calendar { grid-template-columns: minmax(0, 1fr); }
}

.month-content { display: grid; align-content: start; gap: 10px; }

.home-pv { margin-top: 28px; }
.home-pv h2 { margin: 0 0 14px; font-size: 1.25rem; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-icon { display: block; flex: 0 0 auto; width: 52px; height: 52px; object-fit: contain; border-radius: 10px; }
footer .brand-icon { width: 64px; height: 64px; border-radius: 12px; }
@media (min-width: 1201px) {
  body { --header-badge-size: clamp(112px, 8.5vw, 148px); }
  .header-inner { padding-left: var(--header-badge-size); }
  .header-inner > .brand { position: absolute; top: 0; left: 0; }
  .header-inner .brand-icon {
    width: var(--header-badge-size); height: var(--header-badge-size);
    border-radius: 0 0 28px 0;
  }
  .breadcrumb {
    width: auto;
    margin-left: max(calc(var(--header-badge-size) + 16px), calc((100% - 1140px) / 2));
    margin-right: max(36px, calc((100% - 1140px) / 2));
  }
}
@media (max-width: 1200px) {
  .header-inner { padding-block: 2px; }
  .header-inner .brand-icon { width: 56px; height: 56px; }
}
@media (max-width: 720px) {
  .header-inner .site-nav { padding-top: 0; }
  .header-inner .brand-icon { width: 52px; height: 52px; border-radius: 8px; }
  .brand { gap: 9px; }
}



.genre-overview { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 28px 36px; }
.genre-overview a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--deep); }
.genre-overview a:hover { background: var(--peach); }
.welcome-live-post { max-width: 540px; margin: 28px auto 0; }

.footer-brand { min-width: 0; gap: 16px; letter-spacing: normal; }
.footer-identity { display: grid; gap: 2.5px; min-width: 0; }
.footer-inner .footer-identity, .footer-inner .footer-identity span { color: var(--ink); }
.footer-circle-name { font: 700 .7rem/1.5 "Yu Gothic", "YuGothic", sans-serif; letter-spacing: .04em; }
.footer-wordmark { font: 900 2.5rem/1 "Arial Black", Arial, sans-serif; letter-spacing: -.07em; }
@media (max-width: 375px) {
  .footer-brand { gap: 10px; }
  .footer-circle-name { font-size: .62rem; }
  .footer-wordmark { font-size: 2.15rem; }
}

.genre-classification { display: grid; gap: 18px; }
.genre-overview-group { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; }
.genre-overview-links { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-overview a.genre-category { background: var(--sky); font-weight: 700; text-align: center; }
.genre-family { padding-top: 30px; scroll-margin-top: calc(var(--header-height) + 20px); }
.genre-family + .genre-family { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 54px; }
.nav-subgroup + .nav-subgroup { margin-top: 8px; padding-top: 8px; border-top: 2px solid var(--line); }
.nav-subgroup a.nav-category { font-weight: 800; background: var(--ice); }
.nav-genres .nav-panel { max-height: calc(100dvh - var(--header-height) - 20px); overflow-y: auto; }
@media (max-width: 600px) {
  .genre-overview-group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .genre-overview a.genre-category { justify-self: start; }
}

/* Measure the gap against the small circle name, trimming glyph padding where supported. */
.gallery-identity { font-size: clamp(.7rem, 1.4vw, 1.25rem); }
.gallery-circle-name { margin: 0 0 .5em; font-size: inherit; line-height: 1; }
.gallery-wordmark { line-height: .76; }
.footer-identity { font-size: .7rem; gap: .5em; }
.footer-circle-name { font-size: inherit; line-height: 1; }
.footer-wordmark { line-height: .76; }
@supports (text-box-trim: trim-both) {
  .gallery-circle-name, .gallery-wordmark,
  .footer-circle-name, .footer-wordmark {
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    line-height: 1;
  }
  .gallery-circle-name { margin-bottom: 1em; }
  .footer-identity { gap: 1em; }
}
@media (max-width: 375px) {
  .footer-identity { font-size: .62rem; }
}

/* Align the visible glyph edges, including the fonts' left side bearings. */
.gallery-circle-name, .footer-circle-name { position: relative; left: -.024em; }
.gallery-wordmark, .footer-wordmark { position: relative; left: -.0742em; }

.header-menu { display: contents; }
.mobile-menu-toggle { display: none; }

@media (max-width: 720px) {
  .mobile-menu-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    border: 0; border-radius: 0 0 0 12px; background: var(--ink); color: white;
    cursor: pointer; margin-left: auto;
  }
  .mobile-menu-toggle span {
    width: 22px; height: 2px; background: currentColor;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
  }
  .mobile-menu-toggle[aria-expanded="true"] { background: var(--deep); }
  .mobile-menu-toggle:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }
  .mobile-menu-toggle:not([hidden]) + .header-menu {
    position: absolute; top: 100%; inset-inline: 0; display: grid;
    gap: 12px; padding: 8px 18px 18px; background: var(--paper);
    max-height: calc(100dvh - var(--header-height)); overflow-y: auto;
    border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px #152c431f;
  }
  .mobile-menu-toggle:not([hidden])[aria-expanded="false"] + .header-menu { display: none; }
  .header-menu .site-nav {
    display: grid; justify-content: stretch; order: 0; gap: 0; width: 100%; font-size: 1rem;
  }
  .header-menu .nav-group { display: block; }
  .header-menu .nav-dropdown > summary {
    position: absolute; top: 0; right: 0; width: 44px; height: 44px;
    clip-path: none; overflow: visible;
  }
  .header-menu .nav-panel {
    position: static; max-height: none; padding-block: 2px;
    border: 0; border-radius: 0; box-shadow: none;
  }
  .header-menu .site-nav > * { border-bottom: 1px solid var(--line); }
  .header-menu .nav-top { padding-right: 48px; }
  .header-menu .site-nav > a { min-height: 44px; }
  .header-menu > .social-links { order: 0; }
  .mobile-menu-toggle:not([hidden]) + .header-menu > .member { justify-self: start; }

  .gallery { display: block; height: auto; }
  .gallery-viewport { aspect-ratio: 3 / 2; }
  .gallery-slides { width: 100%; }
  .gallery-slide img { object-fit: contain; }
  .gallery-backdrop, .gallery-arrows { display: none; }
  .gallery-backdrop:not(:empty) + .gallery-slides { mask-image: none; }
  .gallery-join {
    position: fixed; z-index: 5;
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: 96px; padding: 8px; border-radius: 50%;
    font-size: .75rem; line-height: 1.35;
    box-shadow: 0 3px 12px #152c432b;
  }
  .gallery-join span { font-size: 1.15rem; margin-top: 4px; }
  main:has(.gallery-join) + footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
