/*-----------------------
header
------------------------*/
header {
  background-color: #fff;
  position: sticky;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  border-bottom: 1px solid #C3C3C3;
}

.header_contents a {
  font-weight: 600;
  height: fit-content;
  white-space: nowrap;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: inherit;
  padding: 1rem;
  width: 100%;
  max-width: 1180px;
  margin: auto;
}

.header__nav {
  width: 100%;
  text-align: right;
  color: var(--text);
}

.menu-list {
  display: flex;
  justify-content: flex-end;
  height: 39px;
  align-items: center;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-right: 2.4rem;
}

.menu-list li:last-of-type {
  margin-right: 0;
}

.header__title {
  width: 250px;
  display: block;
}

.header__title img {
  display: block;
  width: auto;
  height: 75px;
}

.l-user .nav-items__item {
  margin-right: 0;
}

/* ボタン */
.l-header .c-base-btn {
  padding: 0.2rem 1rem;
}

.l-header .c-base-btn a{
  line-height: 1.4;
}

.nav-items__item a:hover {
    color: var(--main);
    opacity: 1;
}

.nav-items__item .c-base-btn a:hover {
    color: #fff;
}

/* 利用者のみ */
.l-user .header_wrapper {
  max-width: 1000px;
  margin: auto;
}
.l-user .nav-items__item {
  text-align: center;
}
.l-user .menu-list {
  justify-content: space-between;
}
.l-user .header__nav {
  padding: 0 1rem;
}

/* ドロップメニュー */
.drop-menu {
    position: relative;
    height: 100%;
}
.child_menu {
    transform-origin: top;
    opacity: 0;
    display: none;
    transition: .3s;
    background: #E1F8DB;
    position: absolute;
    top: 3.8rem;
    left: -2.4rem;
    width: 110%;
    padding: 1rem;
    border-radius: 5px;
    left: 50%;
    transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
}

.child_menu a {
  width: 100%;
}

.drop-menu {
    cursor: pointer;
}

.drop-menu p:hover {
  color: var(--main);
}

@media screen and (min-width: 1080px) {
  .menu-list > .drop-menu:hover > .child_menu {
      visibility: visible;
      display: block;
      opacity: 1;
      cursor: pointer;
  }
}

/*-----------------------
ハンバーガー
------------------------*/
.header__hamburger {
  display: none;
  position: relative;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  margin-left: 1rem;
}

.header__hamburger span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--main);
  width: 45%;
}

.header__hamburger span:nth-of-type(1) {
  top: 15px;
}

.header__hamburger span:nth-of-type(2) {
  top: 23px;
}

.header__hamburger span:nth-of-type(3) {
  top: 31px;
}


.header__hamburger.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.header__hamburger.active span:nth-of-type(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

.nav-items__item .current {
  border-bottom: 2px solid var(--main);
  color: var(--main);
}

.sp_company_btn {
    display: none;
}

.p-header_shop_btn {
  height: fit-content;
  margin-right: 4rem;
}

.p-header_shop_btn__br {
  display: none;
}

@media screen and (max-width: 1180px) {
  .header__inner {
    padding: 1rem;
    z-index: 999;
  }
  .header__inner--active {
    background: #fff;
    display: block;
    height: 100vh;
  }
  .header__hamburger {
    display: block;
  }
  /* .header__hamburger.active {
    position: absolute;
    right: 1rem;
    top: 1rem;
  } */
  #js-nav {
    display: none;
  }

  #js-nav.active {
    display: block;
    height: 90vh;
    position: relative;
    overflow: hidden;
  }

  .header__menu {
    color: var(--main);
    background: #fff;
    height: calc(100dvh - 80px);
    padding-top: 5dvh;
  }

  .menu-list {
    display: block;
    width: 100%;
    height: fit-content;
    overflow-y: auto;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
  }

  .menu-list li,
  .menu-list .c-base-btn
  {
      margin: 3rem auto;
  }

  .menu-list li a {
    font-size: 2.4rem;
  }

  .p-header_company_btn {
    display: none;
  }

  .sp_company_btn {
    display: block;
  }

  .drop-menu {
    position: initial;
    background: #E1F8DB;
    padding-top:1rem;
    border-radius: 3px;
    height: unset;
  }

  .drop-menu .u-pc {
    display: none!important;
  }

  .drop-menu span{
    font-size: 2.4rem;
  }

  .child_menu{
    margin: auto;
    transition: unset;
    position: initial;
    visibility: visible;
    transform: none;
    padding:7px;
    opacity: 1;
    display: block;
    width: 100%;
  }

  .menu-list .child_menu li {
    margin: 1rem 0;
    display: block;
  }

  .no_scroll {
    overflow: hidden;
  }

  .nav-items__item.sp-user_btn
  {
    width: 40%;
    min-width: 280px;
    margin: auto;
    text-align: center;
  }

  .menu-list li {
    display: block;
    margin-bottom: 24px;
  }

  /*利用者のみ*/
  .l-user .header__inner--active {
    background: #fff;
    display: flex;
    height: 10vh;
  }

  /*事業者のみ*/
  .l-company .header__inner--active {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    height: 100vh;
  }

  .l-company .header__title {
    order: 1;
  }

  .l-company .header__hamburger {
    order: 2;
    position: relative;
    z-index: 1;
  }

  .l-company #js-nav {
    order: 3;
  }

  .l-company #js-nav.active {
    flex-basis: 100%;
    height: calc(100vh - 80px);
  }
}

@media screen and (max-width: 768px) {
  .header__title {
    width: 160px;
    display: block;
    padding: 1rem 0;
  }
  .header__hamburger {
    margin-left: 0;
  }
  .p-header_shop_btn a {
    font-size: 1.6rem;
  }
  .l-header .c-base-btn.p-header_shop_btn {
    padding: 0.5rem 1rem;
  }

  .p-header_shop_btn .c-arrow:after{
    font-size: 1.8rem;
    padding-left: 5px;
  }

}

@media screen and (max-width: 600px) {
  .p-header_shop_btn {
    margin-right: 1rem;
  }
  .p-header_shop_btn__br {
    display: block;
  }
}

@media screen and (max-width: 360px) {
  .header__title {
    width: 120px;
  }
  .p-header_shop_btn {
    margin-right: 0.5rem;
  }
}

@media screen and (min-width: 769px) {
  .l-user .header_wrapper {
    max-width: none;
  }

  .l-user .header__inner {
    max-width: 1180px;
    padding: 1rem;
  }

  .l-user .header__title {
    width: auto;
    flex-shrink: 0;
  }

  .l-user .header__title img {
    height: 75px;
  }

  .l-user #js-nav {
    display: block;
    height: auto;
    position: static;
    overflow: visible;
  }

  .l-user .header__nav {
    flex: 1;
    width: auto;
    padding: 0 2rem;
    text-align: center;
  }

  .l-user .menu-list {
    display: flex;
    justify-content: end;
    gap: 2.6rem;
    width: auto;
    height: auto;
    overflow: visible;
    position: static;
    text-align: center;
    transform: none;
    -webkit-transform: none;
    -ms-transform: none;
  }

  .l-user .menu-list li {
    display: flex;
    margin: 0;
  }

  .l-user .nav-items__item a {
    font-size: 1.6rem;
    letter-spacing: 0.06em;
  }

  .l-user .nav-items__item .current {
    padding-bottom: 0.3rem;
  }

  .l-user .header__actions {
    flex-shrink: 0;
  }

  .l-user .p-header_company_btn {
    display: block;
    min-width: 188px;
    padding: 0.55rem 1.1rem 0.55rem 1.4rem;
    border-radius: 4px;
  }

  .l-user .p-header_company_btn a {
    font-size: 1.8rem;
    line-height: 1.6;
  }

  .l-user .p-header_company_btn .c-arrow:after {
    font-size: 2rem;
  }

  .l-user .header__hamburger,
  .l-user .sp_company_btn {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .l-user .header__title {
    order: 1;
  }

  .l-user .header__actions {
    order: 2;
    position: relative;
    z-index: 1;
  }

  .l-user #js-nav {
    order: 3;
  }

  .l-user .header__inner--active {
    align-items: flex-start;
    flex-wrap: wrap;
    height: 100vh;
  }

  .l-user #js-nav.active {
    flex-basis: 100%;
    height: calc(100vh - 80px);
  }
}

/*-----------------------
footer
------------------------*/
.l-footer {
  background: var(--main);
}

.l-footer .f-contents {
  padding: 6rem 0;
}

.l-footer__logo {
  justify-content: center;
  align-items: center;
}

.l-footer__logo__cp
{
  width: auto;
  height: 150px;
  margin-right:6rem;
}

.l-footer__logo__city {
  width: auto;
  height: 100px;
}

.l-footer__logo__cp img,
.l-footer__logo__city img
{
  height: 100%;
  width: auto;
}

.copyright {
  color: #fff;
  margin-top: 4rem;
}

/*-----------------------
アニメーション
------------------------*/
#js-nav.active{
    animation-name: fadein;
    animation-duration: 0.3s;
}
@keyframes fadein{
    from{
    opacity: 0;
    }
    to{
    opacity: 1;
    }
}

@media screen and (max-width: 600px) {
  .l-footer__logo__cp {
      height: 40px;
      width: auto;
      margin-right: 1.5em;
  }
  .l-footer__logo__city {
    height: 30px;
    width: auto;
  }
}

@media screen and (max-width: 300px) {
  .l-footer__logo__cp {
     height: 30px; 
  }
  .l-footer__logo__city {
    height: 20px;
    width: auto;
  }
}