/* D — facility palette. Shared component styles are loaded before this file. */
:root {
  --hashira-menu: #caaf92;
  --hashira-menu-hover: #dfcbb7;
  --hashira-menu-current: #e6d5c2;
  --hashira-ink: #382a20;
  --hashira-secondary: #4e3b30;
  --hashira-rule: #a8896c;
  --hashira-compact-paper: #f7f1e9;
}
html.hashira body.atsumi-site .hero-navigation {
  --pastel-nav: var(--hashira-menu);
  background-color: var(--hashira-menu) !important;
}
html.hashira body.atsumi-site .hero-navigation :is(.radial-choice,.reference-home) {
  color: var(--hashira-ink);
}
html.hashira body.atsumi-site .hero-navigation :is(.radial-choice,.reference-home):is(:hover,:focus-visible) {
  background-color: var(--hashira-menu-hover);
}
html.hashira body.atsumi-site .hero-navigation :is([aria-current="page"],[aria-expanded="true"]) {
  background-color: var(--hashira-menu-current);
}
html.hashira body.atsumi-site .hero-navigation :is(.radial-choice,.reference-home)::after {
  border-color: var(--hashira-rule);
}
html.hashira body.atsumi-site .mobile-menu-button:not([aria-expanded="true"]) {
  background-color: var(--hashira-menu) !important;
  color: var(--hashira-ink);
}
html.hashira body.atsumi-site #mobile-menu {
  background: var(--hashira-compact-paper) !important;
  border-color: #cdb59e;
}
html.hashira body.atsumi-site #mobile-menu > :is(a,details),
html.hashira body.atsumi-site #mobile-menu .nav-subjects > summary {
  background: transparent !important;
  color: var(--hashira-ink);
}
html.hashira body.atsumi-site #mobile-menu :is(a,summary):is(:hover,:focus-visible) {
  background-color: #eee3d6 !important;
}
html.hashira :is(.hero-navigation,#mobile-menu,.topbar,.reference-title) :is(.gh-en,.en),
html.hashira .subpage-title-en {
  color: var(--hashira-secondary) !important;
  opacity: 1 !important;
}
html.hashira body.atsumi-site :is(.medical-menu-grid,.medical-intro-links) a,
html.hashira .lower-page-scope .curve-subjects a {
  background-color: #fff !important;
  border-color: var(--hashira-rule) !important;
  color: var(--hashira-ink) !important;
}
html.hashira body.atsumi-site :is(.medical-menu-grid,.medical-intro-links) a:is(:hover,:focus-visible),
html.hashira .lower-page-scope .curve-subjects a:is(:hover,:focus-visible) {
  background-color: #f7f1e9 !important;
}
html.hashira :is(.medical-menu-grid,.nav-subject-links,.medical-intro-links,.curve-subjects) a > :first-child {
  min-inline-size: 0;
}
html.hashira :is(.medical-menu-grid,.medical-intro-links,.curve-subjects) a > [aria-hidden="true"] {
  flex-shrink: 0;
}
html.hashira .medical-menu-grid a {
  box-sizing: border-box;
  block-size: 52px;
  min-block-size: 52px;
  padding-block: 3px !important;
}
html.hashira :is(.medical-menu-grid,.medical-intro-links,.curve-subjects) .subject-label-long {
  line-height: 1.2;
  overflow-wrap: anywhere;
}
html.hashira #about .reference-message-grid > .about-photo {
  align-self: start;
}
@media (max-width: 760px) {
  html.hashira #about .reference-message-grid > .about-photo { align-self: stretch; }
}
/* Keep the same slot widths when the site has three subjects instead of four. */
@media (min-width: 641px) {
  html.hashira #medical-intro .medical-intro-links {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(210px, calc((100% - 48px) / 4))), 1fr));
  }
}
html.hashira #medical-intro .medical-intro-links a {
  padding-block: 4px;
}
html.hashira .curve-subjects a { padding-block: 3px; }

/* Clinic timetable and fixed-menu reference 2026-11-21.
   Explicit timetable scopes only; preserve content, geometry and other tables. */
body.atsumi-site[data-reference-opening] #hours-overview table.ta2.source-table,
body.atsumi-site[data-reference-opening] #guide-hours table.ta2.source-table{border-color:#a8896c!important;color:#382a20!important}
body.atsumi-site[data-reference-opening] #hours-overview table.ta2.source-table :is(th,td),
body.atsumi-site[data-reference-opening] #guide-hours table.ta2.source-table :is(th,td){background-color:#fff!important;border-color:#a8896c!important;color:#382a20!important}
body.atsumi-site[data-reference-opening] #hours-overview table.ta2.source-table tr:first-child > :is(th,td),
body.atsumi-site[data-reference-opening] #guide-hours table.ta2.source-table tr:first-child > :is(th,td){background-color:#caaf92!important}
body.atsumi-site[data-reference-opening] #hours-overview table.ta2.source-table tr:not(:first-child) > th,
body.atsumi-site[data-reference-opening] #guide-hours table.ta2.source-table tr:not(:first-child) > th{background-color:#f7f1e9!important}
/* Same 4px boundary + soft shadow geometry as the adopted Oono component. */
body.atsumi-site .hero-navigation.assembled-nav{box-shadow:0 4px 0 #f7f1e9,0 9px 14px rgba(56,42,32,.19)!important}
/* The same 4px occupies normal flow on TOP, without a second strip. */
@media(min-width:761px){body.atsumi-site[data-review-page="index.html"] .opening-motion-group{padding-bottom:4px;background-color:#f7f1e9}}


/* Compact menu palette — Atsumi computed reference, 2026-11-22.
   Color changes inside this panel only; preserve geometry and outside clinic colors. */
@media(max-width:640px){
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu{color:#333!important;background-color:#faf9f1!important;border-color:#bcded0!important;box-shadow:0 6px 18px rgb(20 85 64 / 8%)!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu>a,html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subjects>summary{color:#253c36!important;background-color:transparent!important;border-color:#253c36 #253c36 #d5e6dd!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .gh-en{color:#526b60!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subjects>summary::after{color:#253c36!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subject-links{color:#333!important;background-color:transparent!important;border-color:#333 #333 #333 #cbd8d2!important;box-shadow:none!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subject-links>a,html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subject-links>a:is(:hover,:focus-visible,[aria-current="page"]){color:#285b50!important;background-color:transparent!important;border-color:#80bba7!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subject-links>a *{color:inherit!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu>a:is(:focus-visible,[aria-current="page"]),html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subjects>summary:focus-visible{background-color:transparent!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu>a:hover,html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subjects>summary:hover{background-color:#edf5ee!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu :is(a,summary):focus-visible{outline-color:#338a74!important}
}
@media(min-width:641px) and (max-width:1024px){
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu{color:#333!important;background-color:transparent!important;border-color:#333!important;box-shadow:none!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu>a,html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subjects>summary,html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu>a:is(:hover,:focus-visible,[aria-current="page"]),html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subjects>summary:is(:hover,:focus-visible){color:#333!important;background-color:transparent!important;border-color:#333 #333 #fff!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .gh-en{color:#333!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subjects>summary::after{color:#333!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subject-links{color:#333!important;background-color:transparent!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subject-links>a,html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subject-links>a:is(:focus-visible,[aria-current="page"]){color:#285b50!important;background-color:#fff!important;border-color:#65b6a1!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subject-links>a *{color:inherit!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subject-links>a:hover{color:#285b50!important;background-color:#f6fbf9!important;border-color:#38957d!important}
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu :is(a,summary):focus-visible{outline-color:#315c6b!important}
}

@media(max-width:1024px){
 html.hashira body.atsumi-site .shared-header #mobile-menu.mobile-menu .nav-subjects{color:#333!important}
}

/* Keep the menu icon positioned inside its own button at every header width. */
html.hashira body.atsumi-site .shared-header .mobile-menu-button {position:relative}
