.oda-editor-content{font-family:"Noto Sans JP",sans-serif;line-height:1.9;overflow-wrap:anywhere}
.oda-editor-content>*+*{margin-top:1.5em}
.oda-editor-content h2,.oda-editor-content h3{font-family:"Shippori Mincho",serif;line-height:1.5}
.oda-editor-content img{max-width:100%;height:auto;border-radius:6px}
.oda-editor-content iframe{max-width:100%}
.oda-editor-content table{border-collapse:collapse;width:100%}
.oda-editor-content td,.oda-editor-content th{border:1px solid #d9d0c2;padding:1em;text-align:left}
.oda-editor-content a:not(.lp-button){text-decoration:underline;text-underline-offset:.2em;color:#78603c}
.oda-editor-content .lp-button{margin-top:3rem}
.oda-pagination,.nav-links{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap;margin-top:2rem}
.oda-pagination a,.oda-pagination span,.nav-links a,.nav-links span{padding:.6em 1em;border:1px solid #d9d0c2}
.oda-pagination .current,.nav-links .current{background:#847049;color:#fff}
.admin-bar .site-header{top:32px}
@media(max-width:782px){.admin-bar .site-header{top:46px}.oda-editor-content{font-size:15px}.oda-editor-content table{font-size:13px}}

/* Constrain inherited article grids; wide comparison tables scroll locally. */
.oda-editor-content { grid-template-columns: minmax(0, 1fr); }
.oda-editor-content > * { min-width: 0; }
.oda-editor-content .table__scroll,
.oda-editor-content .fg-compare { max-width: 100%; overflow-x: auto; }
.oda-editor-content .table__scroll table { min-width: 720px; }

.oda-editor-content pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.oda-editor-content .oda-news-signature {
    text-align: right;
}

/* Keep the language control in the header's normal layout on every device. */
.header-language {
  position: relative;
  align-self: center;
  justify-self: end;
  color: #59482b;
}
.header-language:not(:has(.gt_selector)) { display: none; }
.header-language .gt_selector {
  display: block;
  appearance: none;
  box-sizing: border-box;
  width: 9.5em;
  min-height: 44px;
  padding: 0.4em 2.2em 0.4em 1em;
  border: 1px solid #a8997c;
  border-radius: 100px;
  background: #fff;
  color: inherit;
  font: 500 14px/1.4 system-ui, sans-serif;
  cursor: pointer;
}
.header-language::after {
  position: absolute;
  top: 50%;
  right: 1em;
  width: 0.45em;
  height: 0.45em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  content: "";
}
.header-language select:focus-visible {
  outline: 2px solid #705b31;
  outline-offset: 3px;
}
@media (max-width: 1199px) {
  .site-header > .header-language {
    align-self: flex-start;
    margin-inline: auto 6px;
  }
  .header-language .gt_selector {
    width: 44px;
    min-height: 48px;
    border-color: var(--color-gold);
    border-radius: 4px;
    /* The native select covers the globe for touch and keyboard input. */
    padding: 0;
    color: transparent;
    background: #fff;
  }
  .header-language .gt_selector option { color: #292621; background: #fff; }
  .header-language::after { content: none; }
  .header-language__globe {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 22px;
    height: 22px;
    margin: auto;
    color: var(--color-gold);
    pointer-events: none;
  }
  .site-header__identity { max-width: calc(100% - 100px); }
}
@media (max-width: 359px) {
  .site-header__brand { flex-basis: 64px; width: 64px; }
  .site-header__brand .brand-mark { width: 54px; }
  .header-contact { padding-inline: 7px; }
  .header-contact__tel { font-size: 18px; }
}
@media (min-width: 1200px) {
  .site-header > .header-language {
    position: absolute;
    inset-block-start: 22px;
    inset-inline-end: 0;
    z-index: 1;
  }
  .header-language__globe { display: none; }
  .site-header #primary-navigation { width: min(830px, calc(100% - 396px)); }
  html:is(:lang(ja), :lang(zh)) .site-header .primary-nav { width: calc(100% - 64px); }
  .site-header .header-reservations {
    grid-template-columns: repeat(3, minmax(0, auto));
    align-items: center;
  }
  .site-header:has(.header-language .gt_selector) .header-reservations {
    padding-inline-end: calc(133px + 16px);
  }
  .header-language .gt_selector { min-height: 40px; }
}

/* Machine translation changes line lengths. Retain the type scale and let copy wrap. */
html:is(.translated-ltr, :lang(en), :lang(zh)) :is(main, footer, .site-header__nav) {
  overflow-wrap: break-word;
  word-break: normal;
}
html:is(.translated-ltr, :lang(en), :lang(zh)) :is(.primary-nav a, .header-reservations__link) {
  white-space: normal;
  line-height: 1.4;
}
html:is(.translated-ltr, :lang(en), :lang(zh)) .primary-nav a { min-width: 0; }
html:is(.translated-ltr, :lang(en), :lang(zh)) .header-reservations__link { text-align: center; }
html:is(.translated-ltr, :lang(en), :lang(zh)) .text-token { white-space: normal; }

/* Medical navigation shares the same three groups on desktop and mobile. */
.site-header {
  --menu-paper: #fcfbf8;
  --menu-rule: #e4dfd4;
  --menu-gold: #78633f;
  --menu-ease: cubic-bezier(.22, 1, .36, 1);
}
.site-header .primary-nav { position: relative; }
.medical-menu > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: .55em;
  color: inherit;
  cursor: pointer;
  list-style: none;
}
.medical-menu > summary::-webkit-details-marker { display: none; }
.medical-menu > summary::after, .medical-menu__panel a::after {
  content: "";
  flex: none;
  width: .44em;
  height: .44em;
  border: solid var(--menu-gold);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.medical-menu[open] > summary::after { transform: rotate(225deg); }
.medical-menu > summary:is(:hover, :focus-visible), .medical-menu[open] > summary { color: var(--menu-gold); }
.medical-menu__panel { color: #302d28; background: var(--menu-paper); }
.medical-menu__groups { display: grid; gap: 22px; }
.medical-menu__group h2 {
  display: flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 .4em;
  font: 500 1.15rem/1.5 var(--font-serif);
  color: var(--menu-gold);
}
.medical-menu__group h2::before {
  content: "";
  width: 16px;
  height: 1px;
  flex: none;
  background: #b39a6b;
}
.medical-menu__group ul { margin: 0; padding: 0; list-style: none; }
.primary-nav .medical-menu__panel a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  min-height: 44px;
  padding: .55em 1.25em;
  border-bottom: 1px solid var(--menu-rule);
  white-space: normal;
  font-size: .9375rem;
  font-weight: 400;
}
.medical-menu__panel a::after { transform: rotate(-45deg); }
.medical-menu__panel a:is(:hover, :focus-visible) { color: #654f2c; background: #f1ede4; }
.primary-nav .medical-menu__all[aria-current] { text-decoration: none; }
.primary-nav .medical-menu__all {
  margin-top: 18px;
  color: #675232;
  background: #f1ede4;
  border: 0;
  border-radius: 4px;
}
@media (min-width: 1200px) {
  .medical-menu__panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(100%, 720px);
    max-height: calc(100dvh - var(--site-header-height, 142px) - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 28px 16px;
    border: 1px solid #d8cfbe;
    border-top: 2px solid #a98f5e;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 14px 30px -12px #4d402b40;
  }
  .medical-menu__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
  }
  .medical-menu__group--private {
    grid-column: 2;
    grid-row: 1 / span 2;
    border-inline-start: 1px solid var(--menu-rule);
    padding-inline-start: 26px;
  }
  html:lang(en) .site-header .primary-nav { flex-wrap: nowrap; column-gap: 12px; }
  html:lang(en) .medical-menu { min-width: 0; }
}
@media (max-width: 1199px) {
  html:has(.site-header .menu-toggle[aria-expanded="true"]) { overflow: hidden; }
  .site-header:has(.menu-toggle[aria-expanded="true"]) { z-index: 1000; transform: none; }
  .site-header::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--menu-paper);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .site-header:has(.menu-toggle[aria-expanded="true"])::before { opacity: 1; visibility: visible; pointer-events: auto; }
  .has-js .site-header #primary-navigation {
    display: block;
    position: fixed;
    inset: calc(var(--site-header-offset, 120px) - 4px) 0 0;
    width: 100%;
    max-height: none;
    padding: 10px max(20px, 5vw) max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--menu-paper);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .has-js .site-header #primary-navigation:not(.is-open) { opacity: 0; visibility: hidden; pointer-events: none; }
  .site-header .primary-nav { display: flex; flex-direction: column; gap: 0; }
  .site-header .primary-nav > a, .medical-menu > summary { min-height: 48px; padding-inline: 1em; }
  .medical-menu > summary { justify-content: space-between; border-bottom: 1px solid var(--menu-rule); }
  .medical-menu__groups { padding: 16px; background: #fff; border-radius: 6px; }
  .medical-menu__panel { padding-block: 10px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .medical-menu > summary::after { transition: transform 300ms var(--menu-ease); }
  .medical-menu__panel a { transition: background-color 160ms ease, color 160ms ease; }
  .medical-menu__panel a::after { transition: translate 180ms ease; }
  .medical-menu__panel a:is(:hover, :focus-visible)::after { translate: 2px 0; }
  @supports selector(details::details-content) {
    .medical-menu::details-content {
      opacity: 0;
      transition: opacity 180ms ease, content-visibility 180ms allow-discrete;
    }
    .medical-menu[open]::details-content {
      opacity: 1;
      transition-duration: 350ms;
    }
    .medical-menu__panel { translate: 0 -7px; transition: translate 260ms var(--menu-ease); }
    .medical-menu[open] > .medical-menu__panel { translate: 0 0; }
    @media (max-width: 1199px) {
      @supports (interpolate-size: allow-keywords) {
        .medical-menu::details-content {
          interpolate-size: allow-keywords;
          block-size: 0;
          overflow: clip;
          transition: block-size 240ms var(--menu-ease), opacity 200ms ease, content-visibility 240ms allow-discrete;
        }
        .medical-menu[open]::details-content { block-size: auto; transition-duration: 380ms; }
      }
    }
  }
  @media (max-width: 1199px) {
    .site-header::before { transition: opacity 230ms ease, visibility 0s linear 230ms; }
    .site-header:has(.menu-toggle[aria-expanded="true"])::before { transition: opacity 320ms ease; }
    .has-js .site-header #primary-navigation {
      transition: opacity 330ms ease, translate 380ms var(--menu-ease), visibility 0s;
    }
    .has-js .site-header #primary-navigation:not(.is-open) {
      translate: 0 -9px;
      transition: opacity 180ms ease, translate 220ms ease, visibility 0s linear 220ms;
    }
  }
}
