/* このページを単体で設置するための共通部分の補正。 */
:root {
  --site-header-height: 60px;
}

html {
  scroll-padding-top: calc(var(--site-header-height) + 16px);
}

.header {
  background: #fff;
  border-bottom: 1px solid #ededed;
  flex-wrap: nowrap;
}

.header__logo a {
  display: block;
  width: 100%;
  height: 100%;
}

.header__btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.hambtn {
  display: block;
}

.nav__lists {
  flex-wrap: nowrap;
}

.nav__item {
  white-space: nowrap;
}

.nav__item:focus-within .pd {
  display: block;
  opacity: 1;
}

.pd {
  width: max-content;
  min-width: 100%;
  max-width: 310px;
}

.pd__list a {
  padding-inline: 16px;
  min-height: 44px;
}

.omw-page {
  padding-top: var(--site-header-height);
}

.skip-link {
  z-index: 1000;
}

.skip-link,
.bottom-bar a {
  text-decoration: none;
}

.footer__contents {
  padding-block: 28px;
}

.footer__text {
  margin-top: 16px;
  font-size: 13px;
}

.footer__cr p {
  margin: 0;
  padding-inline: 20px;
}

.footer__cr span::before {
  content: " / ";
}

.footer__cr span ::before {
  content: none;
}

.fnav__lists {
  width: 33.333%;
  padding-right: 16px;
}

.fnav__item {
  overflow-wrap: anywhere;
}

.fnav__item a {
  display: inline-block;
  padding-block: 4px;
}

@media (max-width: 1200px) {
  .header__logo {
    width: min(50%, 320px);
  }

  .header__content {
    margin-right: 0;
  }

  .header__btn {
    display: block;
    padding-right: 5%;
  }

  .nav {
    top: var(--site-header-height);
    display: block;
    height: calc(100vh - var(--site-header-height));
    height: calc(100dvh - var(--site-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .nav__wrap {
    margin-top: 22px;
  }

  .nav__lists {
    padding-inline: 0;
  }

  .nav__item {
    height: auto;
    white-space: normal;
    margin: 0 auto 14px;
    padding: 12px 18px;
  }

  .nav__item a {
    display: flex;
    justify-content: flex-start;
    min-height: 44px;
  }

  .pd {
    width: 100%;
    max-width: none;
    padding-left: 10px;
  }

  .pd__list {
    padding-block: 0;
  }

  .pd__list a {
    padding-inline: 0;
  }

  .pd-arrow {
    display: none;
  }

  .kenankyo-menu-open {
    overflow: hidden;
  }

  /* JavaScriptが無効でも全リンクをたどれるよう、メニューを本文の前に表示。 */
  .header:not([data-enhanced]) {
    position: relative;
    height: auto;
    flex-wrap: wrap;
  }

  .header:not([data-enhanced]) .header__content {
    width: 100%;
    height: auto;
  }

  .header:not([data-enhanced]) .nav {
    position: static;
    height: auto;
  }

  .header:not([data-enhanced]) + .omw-page {
    padding-top: 0;
  }
}

@media (max-width: 777px) {
  :root {
    --site-header-height: 65px;
  }

  .header {
    height: var(--site-header-height);
  }

  .header__logo {
    width: 60%;
    max-width: 320px;
  }

  .fnav__lists {
    width: 90%;
    padding: 0;
  }

  .fnav__item a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 12px;
  }

  .footer__item--left {
    width: 90%;
  }

  .footer__logo {
    max-width: 420px;
    margin-inline: 0;
  }

  .footer__text {
    padding-left: 0;
  }

  .footer__cr span::before {
    content: none;
  }
}

/* 画面下の固定バー（.bottom-bar）でフッターが隠れないようにする */
.footer {
  padding-bottom: 80px;
}

@media (max-width: 640px) {
  .footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

@media print {
  .kenankyo-shell,
  .bottom-bar {
    display: none;
  }

  .omw-page {
    padding-top: 0;
  }
}
