@charset "UTF-8";

.header-area {
  width: 100%;
  padding: 2.5rem 1.875rem;
  box-sizing: border-box;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  background-color: #FCF9F3;
  background: linear-gradient(to bottom, rgba(252, 250, 246, 1), rgba(252, 250, 246, 0));
  overflow: hidden;
  display: block;
}

.header__flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header__logo {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.header__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.header__nav-ul {
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.header__nav-li a {
  text-decoration: none;
  color: #543E1A;
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
}

.openbtn {
  display: none;
}

/* .sp__header-area {
  display: none;
} */

/* .sp__header-menu__area {
  display: none;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  background: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
} */
.sp__header-menu__area {
  display: none;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  background: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 15%;
}

/* メニュー開いたときに背景画像表示 */
.sp__header-menu__area.active {
  background-image: url('../img/footer__bg--image-sp.jpg');
  overflow: hidden;
}

.sp__header-menu {
  max-width: 60rem;
  width: 100%;
  margin: 0 auto;
}

@media screen and (max-width: 959px) {
  .header-area {
    display: none;
  }

  .sp__header-area {
    width: 100%;
    background-color: #FCF9F3;
    background: linear-gradient(to bottom, rgba(252, 250, 246, 1), rgba(252, 250, 246, 0));
    box-sizing: border-box;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    display: block;
  }

  .header__flex {
    display: none;
  }

  .sp__header__flex {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 15px;
    z-index: 2;
    position: fixed;
    right: 1rem;
  }

  .header__openlogo {
    display: flex;
    /* margin: 130px auto 80px auto; */
    margin: 40px auto 5rem auto;
    width: 70%;
  }

  .header__nav-ul {
    display: block;
    width: 70%;
    margin: auto;
  }

  .header__nav-li {
    padding-bottom: 30px;
  }

  .header__nav-li a {
    font-size: 18px;
  }

  .header__nav-li__detail {
    font-size: 14px;
    font-family: 'Noto Serif JP', serif;
    padding-bottom: 18px;
  }

  .header__nav-icon {
    display: flex;
    gap: 20px;
    margin: auto;
    padding-bottom: 80px;
    list-style: none;
  }

  .header__nav-icon .icon {
    width: 24px;
    height: auto;
    padding-top: 2px;
  }

  .openbtn {
    /* display: block;
    flex-shrink: 0; */
    display: block;
    position: fixed;
    /* ← 常に画面右上に */
    /* top: 20px; */
    /* right: 20px; */
    z-index: 10000;
    /* メニューより上に重ねる */
    background: transparent;
    border: none;
  }
}

/* ハンバーガー */
.openbtn {
  position: relative;
  background: transparent;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border: none;
}

.openbtn .openbtn-area {
  width: 40px;
  height: 40px;
}

.openbtn span {
  display: inline-block;
  transition: all 0.3s ease;
  position: absolute;
  height: 1px;
  background: #543E1A;
  width: 40px;
}

/* 初期位置 */
.openbtn span:nth-of-type(1) {
  top: 12px;
}

.openbtn span:nth-of-type(2) {
  top: 26px;
}

/* active（開いた状態）で×にする */
.openbtn.active span:nth-of-type(1) {
  top: 19px;
  transform: rotate(20deg);
}

.openbtn.active span:nth-of-type(2) {
  top: 19px;
  transform: rotate(-20deg);
}