body { margin: 0; }

.ja_page_shell { display: contents; }
.ja_page_shell .ja_main,
.ja_page_shell .ja_header nav,
.ja_page_shell .member_position,
.ja_page_shell .contact_btn {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

.language_nav {
  display: flex;
  align-items: center;
}

.language_switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language_switch a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.52;
  padding: 5px 2px;
  position: relative;
}

.language_switch a:hover,
.language_switch a:focus-visible,
.language_switch a[aria-current="page"] {
  opacity: 1;
}

.language_switch a[aria-current="page"]::after {
  background: currentColor;
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 2px;
  left: 20%;
  position: absolute;
  width: 60%;
}

.language_switch svg {
  display: block;
  height: 22px;
  width: 33px;
}

.ja_page_shell .title span,
.ja_page_shell .accordion_header {
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media only screen and (max-width: 767px) {
  .language_nav { padding: 12px 40px 20px; }
  .language_switch {
    background: #8dd8ff;
    border-radius: 999px;
    gap: 14px;
    justify-content: center;
    padding: 8px 14px;
    width: 100%;
  }
  .language_switch a { padding: 5px 3px; }
  .language_switch svg { height: 24px; width: 36px; }
  .ja_page_shell .accordion_header { font-size: 5.2vw; }
  .ja_page_shell .accordion_inner { font-size: 4.2vw; line-height: 1.85; }
}

@media print, screen and (min-width: 768px) and (max-width: 1199px) {
  .language_switch { gap: 7px; }
  .language_switch svg { height: 18px; width: 27px; }
}

@media print, screen and (min-width: 768px) {
  .ja_page_shell .maats_txt { line-height: 1.9; }
  .ja_page_shell .accordion_header { font-size: 3.1vw; }
  .ja_page_shell .accordion_inner { font-size: 1.45vw; line-height: 1.9; }
}

@media print, screen and (min-width: 992px) {
  .ja_page_shell .ja_header nav li { margin-right: 22px; }
  .ja_page_shell .ja_header nav li:last-child { margin-right: 0; }
  .ja_page_shell .ja_header nav li > a { font-size: 28px; }
}

#menu_btn:focus-visible,
.accordion_header:focus-visible,
a:focus-visible { outline: 3px solid #111; outline-offset: 4px; }

.accordion_inner[hidden],
#pageTop[hidden] { display: none !important; }

/* The original site used jQuery's slideToggle(), which injected an inline
   display value. Our accessible hidden-based toggle needs the equivalent
   visible state to override top.css's initial `display: none`. */
.accordion_inner:not([hidden]) {
  display: block;
  animation: faq-panel-open 0.35s ease-out both;
}

@keyframes faq-panel-open {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
