/* Common Japanese site navigation, independent of the home contents list. */
body .s-header {
  height: 92px;
  background: rgba(255, 255, 255, .94);
  color: #20251f;
  border-bottom: 1px solid rgba(32, 37, 31, .08);
  box-shadow: none;
  z-index: 100;
}
body .s-header .s-header-inner {
  width: calc(100% - 64px) !important;
  max-width: none !important;
  height: 100%;
  margin-inline: auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px !important;
}
body .s-header .s-brand {
  color: inherit;
  font-size: 24px;
  letter-spacing: .04em !important;
  white-space: nowrap;
}
body .s-header .s-brand small {
  font-size: 11px;
  letter-spacing: .02em !important;
}
body .s-header .s-nav {
  display: flex !important;
  align-items: center;
  gap: 22px;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}
body .s-header .s-nav a {
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}
body .s-header .s-nav .s-btn {
  min-height: 44px;
  padding: 12px 18px;
  color: #20251f;
  background: #fff;
  border: 1px solid rgba(32, 37, 31, .35);
}
body .s-header .s-mobile-menu { display: none !important; }
body .s-header a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
body .s-header a:focus-visible,
body .s-header summary:focus-visible,
.s-page-toc a:focus-visible {
  outline: 2px solid #596951;
  outline-offset: 4px;
}
body #main [id] { scroll-margin-top: 116px; }
.s-anchor-alias { display: block; height: 0; }
.s-page-toc {
  position: static;
  margin: 0;
  padding: 20px 0;
  background: #fff;
  border-bottom: 1px solid rgba(32, 37, 31, .12);
  color: #20251f;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}
.s-page-toc .s-page-toc-inner {
  display: flex;
  align-items: baseline;
  gap: 12px 28px;
  max-width: 1140px;
}
.s-page-toc #page-toc-title {
  flex-shrink: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .02em;
}
.s-page-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.s-page-toc li { margin: 0; padding: 0; }
.s-page-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: normal;
  text-decoration: underline;
  text-decoration-color: rgba(32, 37, 31, .3);
  text-underline-offset: 4px;
}
.s-page-toc a:hover { text-decoration-color: currentColor; }
@media (max-width: 1050px) {
  body .s-header { height: 74px; }
  body .s-header .s-header-inner {
    width: calc(100% - 32px) !important;
    gap: 12px !important;
  }
  body .s-header .s-brand { font-size: 19px; }
  body .s-header .s-brand small { font-size: 9px; }
  body .s-header .s-nav { display: none !important; }
  body .s-header .s-mobile-menu { display: block !important; position: relative; }
  body .s-header .s-mobile-menu summary {
    min-height: 44px;
    padding: 10px 8px;
    color: inherit;
    font-size: 14px;
  }
  body .s-header .s-mobile-menu nav {
    position: absolute;
    right: 0;
    top: 48px;
    box-sizing: border-box;
    width: min(300px, calc(100vw - 32px));
    max-height: calc(100svh - 142px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    background: #fff;
    color: #20251f;
    border: 1px solid rgba(32, 37, 31, .12);
    box-shadow: 0 18px 45px rgba(32, 37, 31, .1);
  }
  body .s-header .s-mobile-menu nav a {
    display: block;
    min-height: 44px;
    padding: 10px 12px;
    color: inherit;
    font-size: 15px;
    line-height: 1.6;
    text-decoration: none;
  }
  body .s-header .s-mobile-menu a[aria-current="page"] { background: #f0f0ee; }
  body .s-header .s-mobile-secondary {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(32, 37, 31, .12);
  }
  body #main [id] { scroll-margin-top: 94px; }
}
@media (max-width: 600px) {
  .s-page-toc { padding: 16px 0; }
  .s-page-toc .s-page-toc-inner { display: block; }
  .s-page-toc #page-toc-title { margin-bottom: 8px; }
  .s-page-toc ul { gap: 0 18px; }
}
