/* Shared brand components. Load after each page stylesheet. */
:root {
  --brand-teal: #006766;
  --brand-ink: #243d3b;
  --brand-muted: #596966;
  --brand-label: #956134;
  --brand-line: #d5e2df;
  --brand-rail-line: #c6d8d2;
  --brand-paper: #fffef5;
  --brand-font: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --brand-rail-width: 240px;
  --brand-contact-bottom: 86px;
  --brand-mobile-bar-height: 68px;
}
body.brand-site {
  font-family: var(--brand-font);
  color: var(--brand-ink);
  font-size: var(--body-size, 18px);
  line-height: 1.8;
  letter-spacing: 0;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
.brand-site.large-text { --body-size: 22px; }
.brand-site :is(button, input, select, textarea) { font-family: inherit; }
.brand-site :is(h1, h2, h3) { color: var(--brand-teal); font-weight: 700; line-height: 1.5; }
.brand-site h1 { font-size: 40px; }
.brand-site h2 { font-size: 28px; }
.brand-site a { color: var(--brand-teal); text-underline-offset: 5px; }
.brand-site :is(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--brand-label); outline-offset: 4px; }
.brand-site svg { stroke-width: 2; }
.brand-site :is(a, button) svg { pointer-events: none; }

/* Keep faces clear; shade only the logo and the actual height of the contents. */
.brand-site :is(.visual-rail, .brand-rail) > .rail-shade {
  pointer-events: none;
  background: linear-gradient(110deg, rgba(0,40,39,.7) 0, rgba(0,40,39,.48) 135px, rgba(0,40,39,.16) 230px, rgba(0,40,39,0) 320px);
}
.brand-site :is(.visual-rail, .brand-rail) > .rail-bottom {
  isolation: isolate;
  background: transparent;
  backdrop-filter: none;
}
.brand-site :is(.visual-rail, .brand-rail) > .rail-bottom::before {
  content: "";
  position: absolute;
  inset: -48px 0 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0,40,39,.9) 0, rgba(0,40,39,.78) calc(100% - 72px), rgba(0,40,39,0) 100%);
}

/* Font controls use the same borders on both pages, including mobile end caps. */
.brand-site .brand-size-control { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; line-height: 1.8; color: var(--brand-ink); }
.brand-site .brand-size-control > span { font-size: 16px; font-weight: 400; }
.brand-site .brand-size-control > div { display: flex; gap: 0; border: 0; }
.brand-site .brand-size-control button { min-width: 44px; min-height: 44px; width: auto; padding: 1px 6px; border: 1px solid var(--brand-teal); border-radius: 0; background: #fff; color: var(--brand-ink); font-size: 16px; font-weight: 400; line-height: 1.8; }
.brand-site .brand-size-control button[aria-pressed="true"] { background: var(--brand-teal); color: #fff; }

/* Visual tokens and interactions shared by every primary CTA. */
.brand-site .button { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 54px; padding: 14px 16px; border: 1px solid var(--brand-teal); border-radius: 4px; background: var(--brand-teal); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.6; text-align: center; text-decoration: none; box-shadow: 0 3px 0 #003e3d; transition: background .2s, box-shadow .2s, transform .2s; }
.brand-site .button:hover { background: #004f4e; transform: translateY(-2px); box-shadow: 0 5px 0 #003e3d; }
.brand-site .button:active { transform: translateY(1px); box-shadow: 0 1px 0 #003e3d; }

/* Sidebar content may differ; CTA and phone always occupy the same bottom slots. */
.brand-site .brand-navigation { position: fixed; inset: 0 0 0 auto; width: var(--brand-rail-width); height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; justify-content: stretch; align-items: stretch; gap: 14px; padding: 88px 16px var(--brand-contact-bottom); background: #edf3f1; border-left: 1px solid #b8d0ca; font-size: 16px; overflow: visible; }
.brand-site .brand-navigation > .brand-size-control { position: absolute; top: 24px; right: 16px; left: 16px; margin: 0; padding: 0; }
.brand-site .brand-navigation > :is(.desktop-nav, .next-event) { align-self: end; min-height: 0; max-height: 100%; overflow-y: auto; scrollbar-width: thin; margin: 0; padding: 0; border: 0; }
.brand-site .brand-navigation :is(.nav-title, .next-event .eyebrow) { display: block; margin: 0 0 8px; color: var(--brand-label); font-size: 16px; font-weight: 700; line-height: 1.6; }
.brand-site .brand-navigation :is(.desktop-nav a, .compact-event) { position: relative; display: flex; align-items: center; flex-wrap: wrap; width: 100%; min-height: 88px; padding: 12px 24px 12px 0; margin: 0; border: 0; border-top: 1px solid var(--brand-rail-line); border-radius: 0; background: transparent; color: var(--brand-teal); font-size: 19px; font-weight: 700; line-height: 1.5; text-align: left; text-decoration: none; box-shadow: none; }
.brand-site .brand-navigation .compact-event { display: block; }
.brand-site .brand-navigation .next-date { font-size: 19px; font-weight: 700; line-height: 1.5; }
.brand-site .brand-navigation .compact-venue { font-size: 16px; font-weight: 400; line-height: 1.5; }
.brand-site .brand-navigation :is(.desktop-nav a, .compact-event):hover { background: #dfece8; }
.brand-site .brand-navigation :is(.desktop-nav a, .compact-event) > svg { position: absolute; right: 0; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); }
.brand-site .brand-rail-actions { display: grid; grid-template-rows: 64px 60px; gap: 14px; margin: 0; padding: 0; }
.brand-site .brand-rail-actions > .button { width: 100%; min-height: 64px; height: 64px; padding: 10px 8px; flex-direction: row; gap: 6px; font-size: 16px; line-height: 1.5; box-shadow: 0 2px 0 #003e3d; }
.brand-site .brand-rail-actions > .button svg { width: 18px; height: 18px; }
.brand-site .brand-rail-actions > .button span { min-width: 0; overflow-wrap: normal; word-break: normal; }
.brand-site .brand-rail-actions .rail-phone { display: flex; flex-direction: column; justify-content: center; height: 60px; margin: 0; color: #825730; font-size: 16px; font-weight: 400; line-height: 1.6; text-align: center; text-decoration: none; }
.brand-site .brand-rail-actions .rail-phone span { display: block; }
.brand-site .brand-rail-actions .rail-phone strong { display: block; font-size: 21px; font-weight: 700; white-space: nowrap; }
.brand-site .brand-rail-actions .rail-phone svg { width: 17px; height: 17px; margin-right: 7px; }

/* One Scroll affordance: same copy, arrow, rhythm and reduced-motion behavior. */
.brand-site .brand-scroll-cue { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; min-height: 50px; margin: 0; padding: 0; color: var(--brand-teal); text-decoration: none; font-size: 14px; font-weight: 400; line-height: 1.4; }
.brand-site .brand-scroll-cue svg { width: 26px; height: 26px; animation: brand-scroll-float 2.4s ease-in-out infinite; }
.brand-site .brand-scroll-cue:hover { color: #004f4e; }
@keyframes brand-scroll-float { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
.brand-site .brand-back-top { position: fixed; bottom: 18px; right: 16px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #b8d0ca; border-radius: 50%; background: #fff; color: var(--brand-teal); box-shadow: 0 2px 10px #00000010; }
.brand-site .brand-back-top svg { width: 22px; height: 22px; }
.brand-site :is(.site-footer, .page-footer) { background: var(--brand-teal); color: #fff; font-size: 16px; line-height: 1.8; }
.brand-site :is(.site-footer, .page-footer, .visual-rail, .brand-rail) a { color: #fff; }
.brand-site :is(.site-footer, .page-footer) small { color: #fff; font-size: 16px; }
.brand-site :is(.visual-rail, .brand-rail) :is(a, button):focus-visible { outline-color: #fff; }
.brand-mobile-contact { display: none; }
.brand-site :is(.mobile-header, .mobile-menu) { display: none; }
.brand-site .cta-arrow { animation: brand-cta-nudge 4.8s ease-in-out 1; animation-delay: 1s; }
@keyframes brand-cta-nudge { 0%, 45%, 100% { transform: translateX(0); } 15%, 30% { transform: translateX(5px); } 22%, 38% { transform: translateX(0); } }

@media (min-width: 1200px) {
  .brand-site .home-hero { position: relative; padding-bottom: 88px; }
  .brand-site .brand-scroll-cue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); }
}
@media (min-width: 1200px) and (max-height: 760px) {
  .brand-site .brand-navigation :is(.desktop-nav a, .compact-event) { min-height: 78px; padding-block: 8px; }
}
@media (min-width: 1200px) and (max-height: 650px) {
  .brand-site .brand-navigation { padding-top: 76px; gap: 10px; }
  .brand-site .brand-navigation :is(.desktop-nav a, .compact-event) { min-height: 70px; padding-block: 6px; }
}
@media (max-width: 1199px) {
  .brand-site .brand-navigation { display: none; }
  .brand-site .mobile-header { display: flex; position: relative; z-index: 60; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; background: var(--brand-teal); color: #fff; }
  .brand-site .mobile-logo { display: flex; align-items: center; flex: none; color: #fff; text-decoration: none; }
  .brand-site .mobile-logo > img { display: block; width: 90px; height: 90px; object-fit: contain; }
  .brand-site .mobile-header-tools { display: flex; align-items: center; gap: 12px; }
  .brand-site .mobile-header-tools .brand-size-control > span { display: none; }
  .brand-site .mobile-header .menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #fff; }
  .brand-site .menu-toggle svg { width: 24px; height: 24px; }
  .brand-site .mobile-header :is(a, button):focus-visible { outline-color: #fff; }
  .brand-site .menu-toggle:hover, .brand-site .menu-toggle[aria-expanded="true"] { background: #ffffff20; }
  .brand-site .mobile-menu { display: block; position: absolute; top: 110px; left: 0; right: 0; z-index: 55; max-height: calc(100dvh - 110px - var(--brand-mobile-bar-height) - env(safe-area-inset-bottom) - 16px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 28px 26px; background: #fff; border-bottom: 1px solid var(--brand-teal); box-shadow: 0 12px 20px #173b3612; }
  .brand-site .mobile-menu .next-event { margin: 0 0 20px; padding: 0; border: 0; }
  .brand-site .mobile-menu .eyebrow { margin: 0 0 8px; color: var(--brand-label); font-size: 16px; font-weight: 700; line-height: 1.6; }
  .brand-site .mobile-menu .compact-event { position: relative; display: block; width: 100%; min-height: 88px; margin: 0; padding: 14px 26px 14px 0; border: 0; border-top: 1px solid var(--brand-rail-line); border-radius: 0; background: transparent; color: var(--brand-teal); line-height: 1.5; text-align: left; }
  .brand-site .mobile-menu .compact-event:hover { background: #dfece8; }
  .brand-site .mobile-menu .next-date { display: block; font-size: 19px; font-weight: 700; line-height: 1.5; }
  .brand-site .mobile-menu .compact-venue { display: block; margin-top: 4px; font-size: 16px; font-weight: 400; line-height: 1.5; }
  .brand-site .mobile-menu .compact-event > svg { position: absolute; right: 0; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); }
  .brand-site :is(.mobile-header, .mobile-brand) .brand-size-control button { border-color: #fff; background: transparent; color: #fff; }
  .brand-site :is(.mobile-header, .mobile-brand) .brand-size-control button:first-child { border-radius: 4px 0 0 4px; }
  .brand-site :is(.mobile-header, .mobile-brand) .brand-size-control button:last-child { border-radius: 0 4px 4px 0; border-left: 0; }
  .brand-site :is(.mobile-header, .mobile-brand) .brand-size-control button[aria-pressed="true"] { background: #fff; color: var(--brand-teal); }
  .brand-site .brand-mobile-contact { position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: 1.55fr 1fr; padding: 0 0 env(safe-area-inset-bottom); border: 0; background: var(--brand-teal); box-shadow: 0 -1px 12px #00000012; }
  .brand-site .brand-mobile-contact a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--brand-mobile-bar-height); padding: 10px 8px; border: 0; color: #fff; text-align: center; text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1.5; }
  .brand-site .brand-mobile-contact a:first-child { background: var(--brand-teal); }
  .brand-site .brand-mobile-contact a:last-child { display: flex; flex-direction: column; gap: 0; background: #875d38; }
  .brand-site .brand-mobile-contact a:last-child strong { font-size: 16px; white-space: nowrap; }
  .brand-site .brand-mobile-contact svg { width: 18px; height: 18px; }
  .brand-site .brand-mobile-contact a:first-child .cta-arrow { display: block; }
  .brand-site .brand-scroll-cue { position: fixed; inset: auto 20px calc(90px + env(safe-area-inset-bottom)) auto; z-index: 25; padding: 6px; border-radius: 4px; background: #fffef5e8; text-shadow: 0 1px 2px #fff; transform: none; }
  .brand-site.has-scrolled .brand-scroll-cue { display: none; }
  .brand-site .brand-back-top { right: 12px; bottom: calc(90px + env(safe-area-inset-bottom)); }
  .brand-site :is(.site-footer, .page-footer) { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .brand-site h1 { line-height: 1.6; }
}
@media (max-width: 540px) {
  .brand-site .mobile-header { padding: 8px 24px; }
  .brand-site .mobile-logo > img { width: 82px; height: 82px; }
  .brand-site .mobile-menu { top: 98px; max-height: calc(100dvh - 98px - var(--brand-mobile-bar-height) - env(safe-area-inset-bottom) - 16px); }
}
@media (max-width: 350px) { .brand-site .mobile-header { padding-inline: 20px; } }
@media (max-width: 480px) { .brand-site h1 { font-size: 32px; } .brand-site h2 { font-size: 26px; } }
@media (max-width: 350px) { .brand-site h1 { font-size: 28px; } .brand-site .brand-mobile-contact a { font-size: 14px; } .brand-site .brand-mobile-contact a:last-child strong { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .brand-site .brand-scroll-cue svg { animation: none; }
  .brand-site .cta-arrow { animation: none; }
  .brand-site .button { transition: none; }
  .brand-site .button:hover, .brand-site .button:active { transform: none; }
}
@media print {
  .brand-site :is(.brand-navigation, .brand-mobile-contact, .brand-back-top, .brand-scroll-cue, .mobile-header, .mobile-menu) { display: none !important; }
  .brand-site h1, .brand-site h2 { font-size: 22pt; }
}
