/* ヘッダ */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--stone-0);
  padding: 2rem 6rem 1rem;
  z-index: 30;
}
@media screen and (max-width: 82em) {
  .l-header {
    padding: 2rem 0.5rem 1rem;
    font-size: 0.9rem;
  }
}
@media screen and (max-width: 60em) {
  .l-header {
    background: none;
  }
}
.l-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  height: auto;
}

/* ロゴ */
.header-logo {
  display: block;
}
.header-logo svg {
  margin: 0;
}
@media screen and (max-width: 60em) {
  .header-logo {
    display: none;
  }
}

/* ナビゲーション */
.nav-container, .nav-list {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* メインナビ */
.main-nav {
  margin-right: 0.5rem;
}

/* ナビゲーション上段 */
.nav-upper li {
  padding: 0 0.2rem;
}

/* 会員用メニュー */
.nav-member {
  display: flex;
  align-items: center;
}

/* お問い合わせボタン */
.nav-contact-toggle {
  font-weight: bold;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1em 2em 1em calc(5em - 15px);
  transition: 0.3s;
  text-decoration: none;
  color: var(--stone-0);
  border-radius: 0.5rem;
  background: var(--red-7);
  box-shadow: 0 5px 0 var(--red-7);
  margin-left: 10px;
}

.nav-contact-toggle p {
  margin: 0;
}

.nav-contact-toggle .nav-contact-toggle-icon {
  position: absolute;
  bottom: 0.5em;
  left: -10px;
  display: inline-block;
  width: 5em;
  height: 5em;
  line-height: 5em;
  text-align: center;
  color: var(--red-7);
  font-size: 80%;
  font-weight: bold;
  background: var(--red-0);
  border: 3px solid var(--red-7);
  border-radius: 50%;
  box-sizing: border-box;
  transform: rotate(-10deg);
}

.nav-contact-toggle .nav-contact-toggle-icon::before {
  position: absolute;
  content: "";
  bottom: -5px;
  right: -10px;
  border: 9px solid transparent;
  border-left: 15px solid var(--red-0);
  transform: rotate(45deg);
}

.nav-contact-toggle:hover {
  transform: translate(0, 3px);
  background: var(--red-7);
  box-shadow: 0 2px 0 var(--red-7);
}

/* ナビゲーション下段 */
.nav-lower li {
  position: relative;
  padding: 0.5rem 1rem;
}

@media screen and (max-width: 82em) {
  .nav-lower li {
    padding: 0.5rem;
  }
}

/* メニュー下線あり */
.nav-show-under a {
  position: relative;
}

.nav-show-under a::after {
  position: absolute;
  left: 0;
  content: '';
  width: 100%;
  height: 0.5px;
  background: var(--stone-9);
  bottom: -5px;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: transform 0.3s;
}

.nav-show-under a:hover::after {
  transform: scale(1, 1);
}

/* サブメニュー */
.nav-parent {
  position: relative;
  display: inline-block;
}

.nav-child-toggle::after {
  content: '';
  --icon_color: currentColor;
  --icon_size: 0.43em;
  --border_width: 2px;
  display: inline-block;
  width: var(--icon_size);
  height: var(--icon_size);
  border: solid var(--border_width) var(--icon_color);
  border-top: 0;
  border-left: 0;
  transform: translateY(-25%) rotate(45deg);
  margin-left: .52em;
}

.nav-child-list {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--stone-0);
  padding: 20px;
  box-shadow: 3px 5px 20px 0 rgba(0, 0, 128, 0.2);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 40;
}

.nav-parent:hover .nav-child-list,
.nav-parent .open .nav-child-list {
  opacity: 1;
  visibility: visible;
  transition: opacity .24s ease .12s, visibility .24s ease;
}

.nav-child-list li {
  white-space: nowrap;
  min-width: 100px;
}

.nav-child-list li a {
  display: block;
  line-height: 1.4;
  position: relative;
  padding: 5px 0;
  transition: color .12s, background .12s, border .12s;
}

/* ハンバーガーメニュー */
#menu__toggle {
  display: none;
}
.menu__btn {
  transition-duration: 0.25s;
  box-sizing: border-box;
  align-items: center;
  background: linear-gradient(90deg, var(--teal-9), var(--teal-11));
  border-radius: 50%;
  color: var(--stone-0);
  display: flex;
  flex-direction: column;
  height: 55px;
  justify-content: center;
  position: fixed;
  right: 24px;
  top: 8px;
  transition: color .4s cubic-bezier(.645,.045,.355,1), background .4s cubic-bezier(.645,.045,.355,1), box-shadow .4s cubic-bezier(.645,.045,.355,1), transform .4s ease-in-out, top .4s cubic-bezier(.645,.045,.355,1), right .4s cubic-bezier(.645,.045,.355,1), left .4s cubic-bezier(.645,.045,.355,1);
  width: 55px;
  cursor: pointer;
  z-index: 100;
}
.menu__btn span {
  display: inline-block;
  position: absolute;
  width: 50%;
  height: 2px;
  background-color: var(--stone-0);
  top: 50%;
  transform: translateY(-50%);
}
.menu__btn span::before,
.menu__btn span::after {
  content: '';
  display: inline-block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--stone-0);
  transition-duration: 0.25s;
}
.menu__btn span::before {
  top: -8px;
}

.menu__btn span::after {
  top: 8px;
}

#menu__toggle:checked + .menu__btn span {
  background-color: transparent;
}

#menu__toggle:checked + .menu__btn span::before {
  transform: rotate(45deg);
  top: 0;
  background-color: var(--stone-0);
}

#menu__toggle:checked + .menu__btn span::after {
  transform: rotate(-45deg);
  top: 0;
  background-color: var(--stone-0);
}
.contact-link-mobile {
  display: none;
}
@media screen and (min-width: 60em) {
  .menu__btn {
    display: none;
  }
}
@media screen and (max-width: 60em) {
  .main-nav {
    width: 180px;
    margin: 0;
  }
  #menu__toggle:checked ~ .nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--stone-0);
    padding: 5rem 0;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
  }
  .nav-list {
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .nav-contact {
    display: flex;
    justify-content: center;
  }
  .nav-container {
    display: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--stone-0);
    z-index: 10;
  }
  .nav-upper .nav-list {
    flex-direction: row;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
  }
  .nav-contact {
    display: none;
  }
  .nav-lower .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
    margin-top: 1rem;
  }
  .nav-lower .nav-list li {
    width: 100%;
  }
  .nav-lower .nav-list li a {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
  }
  .contact-link-mobile {
    display: list-item;
  }
  .nav-child-list {
    position: static;
    transform: none;
    background: none;
    padding: 0 1rem;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .nav-parent.open .nav-child-list {
    display: block;
  }
  .nav-child-list li a {
    padding-left: 1rem;
  }
}
