/*
Theme Name: darumanoki Theme
Author: 
Version: 1.0
*/
:root {
  --main-color: #006B3D;
  --sub-color: #AB901A;
  --text-color: #313131;
}

/********************************************
  ヘッダー設定
********************************************/
.gnavi {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  z-index: 1000;
  background-color: transparent;
}

.gnavi-inner {
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: auto;
  height: 100%;
}

#menu-gnavi {
  display: flex;
  list-style: none;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  flex-grow: 1;
  max-width: 900px;
  max-width: 960px;
}

#menu-gnavi .menu-item a {
  font-size: clamp(15px, 15 / 1300 * 100vw, 17px);
  font-weight: bold;
  color: var(--main-color);
  height: 100%;
  display: block;
  position: relative;
}

#menu-gnavi .menu-item:last-child {
  margin-left: 200px;
  margin-left: 250px;
  margin-right: 30px;
}

/*メニューホバー時：アンダーライン出現*/
#menu-gnavi .menu-item a::after {
  position: absolute;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: var(--main-color);
  bottom: -5px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

#menu-gnavi .menu-item a:hover::after {
  visibility: visible;
  bottom: -2px;
  opacity: 1;
}



.header-logo {
  position: absolute;
  aspect-ratio: 179/170;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
  width: 179px;
}

.header-logo img {
  aspect-ratio: 179/170;
  width: 100%;
  height: auto;
  transition: 0.3s;
}

.btn-header-book {
  color: #fff;
  background-color: #90740B;
  width: 180px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0;
  font-size: clamp(15px, 15 / 1300 * 100vw, 17px);
  transition: 0.3s;
}

.btn-header-book .calendar {
  background: url("../images/common/calendar.png") no-repeat center center / contain;
  width: 17px;
  height: 17px;
  margin-right: 7px;
}

.btn-header-book:hover {
  filter: brightness(1.3);
}

.gnavi-inner_langage {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.gnavi-inner_langage a {
  color: #006B3D;
  display: inline-block;
  position:relative;
  width:fit-content;
}

.gnavi-inner_langage a::after {
  border-bottom: 1px solid #006B3D;
  content:"";
  position:absolute;
  left: 0;
  bottom: -2px;
  height:1px;
  width:100%;
  visibility: hidden;
  transition: 0.3s ;
  opacity: 0;
}

.gnavi-inner_langage a:hover::after {
  border-bottom: 1px solid #006B3D;
  visibility: visible;
  bottom: 0;
  opacity: 1;
}


/*インスタグラムアイコン*/
.header-instagram-link {
  margin-top: 8px;
  transition: 0.3s;
}

.header-instagram-link:hover {
  transform: scale(1.1);
}



/*スクロールダウン時のヘッダー*/
.gnavi.is-scrolled {
  background-color: #fff;
  height: 70px;
  z-index: 10000;
}

.gnavi.is-scrolled .header-logo {
  top: -24px;
}

.gnavi.is-scrolled .header-logo img {
  transform: scale(0.6);
  transform-origin: center center;
}

@media screen and (max-width: 1310px) {
  .gnavi-inner {
    justify-content: space-between;
    padding-left: 2em;
  }

  #menu-gnavi {
    max-width: 820px;
    max-width: 950px;
  }

  .header-logo {
    width: 140px;
    height: auto;
  }

  .btn-header-book {
    width: 150px;
  }

  .gnavi-inner {
    gap: 28px;
  }

  #menu-gnavi .menu-item:last-child {
    margin-left: 220px;
    margin-right: 70px;
  }
}

@media screen and (max-width: 1100px) {
  #menu-gnavi .menu-item:last-child {
    margin-right: 30px;
  }

  #menu-gnavi {
    gap: 12px;
  }

  #menu-gnavi .menu-item a {
    font-size: 14px;
  }
}

.gnavi-sp {
  display: none;
}

/* ハンバーガーボタンのスタイル */
.hamburger {
  display: none;
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  transition: 0.3s;
}

/* SPメニュー表示 */
@media screen and (max-width: 1000px) {
  .gnavi {
    display: none;
  }

  .gnavi-sp {
    display: block;
    position: relative;
    z-index: 1000;
    height: 65px;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }

  .home .gnavi-sp::after {
    content: "";
    background: url(../images/top/fv-bg2.jpg) no-repeat center center / cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
  }

  .hamburger {
    display: block;
  }

  .gnavi-sp-inner {
    display: none;
    /* JSで開閉 */
    background: #EBE6DC;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: calc(100vh + 85px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.8em;
    padding-top: 100px;
  }

  .gnavi-sp.open .gnavi-sp-inner {
    display: flex;
  }

  .header-logo {
    z-index: 999;
  }

  .header-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.8em;
    text-align: center;
  }

  .header-menu li a,
  .header-home {
    color: var(--main-color);
    font-size: clamp(16px, 16 / 450 * 100vw, 18px);

  }

  .header-logo {
    top: 10px;
    width: 130px;
  }


  .gnavi-sp.is-scrolled .header-logo img {
    transform: scale(0.6);
    transform-origin: center center;
  }

  .gnavi-sp.is-scrolled .header-logo {
    top: -24px;
  }

}

/* 開閉時のハンバーガー変形 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* メニューオープン時にスクロール停止 */
body.menu-open {
  overflow: hidden;
  height: 100%;
}

@media screen and (max-width: 600px) {
  .gnavi-sp {
    height: 48px;
  }

  .home .gnavi-sp::after {
    height: 48px;
  }

  .header-logo {
    width: 81px;
  }

  .gnavi-sp.is-scrolled .header-logo img {
    transform: scale(0.8);
    transform-origin: center center;
  }

  .gnavi-sp.is-scrolled .header-logo {
    top: -5px;
  }

  .gnavi-sp.is-scrolled::after {
    content: none;
  }

  .hamburger {
    top: 10px;
  }

  .btn-header-book-sp {
    max-width: 240px;
    height: 50px;
    font-size: 14px;
  }
}

/*********************************************
  下層ページ：ヘッダータイトル
*********************************************/
.pagetitle-container {
  position: relative;
  width: 100%;
  height: 300px;
  background-image: url(../images/common/bg-pagetitle.jpg);
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 85px;
}

.page-rental-space .pagetitle-container {
  height: clamp(300px, 28vw, 420px);
}

.title-wrapper {
  margin: auto;
  margin-bottom: 50px;
  padding: 0 20px;

  .title {
    font-family: 'Yu Mincho Light', 'YuMincho', 'Yu Mincho', '游明朝体', 'Yu Mincho Light', 'YuMincho', 'Yu Mincho', '游明朝体', "Zen Old Mincho", sans-serif;
    font-size: clamp(35px, 35 / 1000 * 100vw, 54px);
    font-weight: 500;
    color: var(--main-color);
    text-align: center;
    line-height: 1.5;
    margin: auto;
  }

  .en-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--sub-color);
    text-align: center;
    line-height: 1;
    text-transform: capitalize;
    margin: 20px 0 0;
  }

  .sub-title {
    font-family: 'Yu Mincho Light', 'YuMincho', 'Yu Mincho', '游明朝体', 'Yu Mincho Light', 'YuMincho', 'Yu Mincho', '游明朝体', "Zen Old Mincho", sans-serif;
    font-size: clamp(22px, 22 / 1000 * 100vw, 32px);
    font-weight: 500;
    color: var(--main-color);
    text-align: center;
    line-height: 1;
    text-transform: capitalize;
    margin: 0 0 6px;
  }
}

.page-rental-space {
  .title-wrapper {
    margin-bottom: 60px;

    .en-title {
      margin: 40px 0 0;
    }
  }
}

.single-post .pagetitle-container {
  .title-wrapper {
    margin: auto;
  }
}


@media screen and (max-width: 850px) {
  .pagetitle-container {
    margin-top: 65px;
    height: max(150px, 40vw);
  }


  .page-rental-space .pagetitle-container {
    height: clamp(200px, 45vw, 420px);
  }

  .title-wrapper {
    margin-bottom: auto;

    .title {
      font-size: clamp(21px, 21 / 375 * 100vw, 35px);
      font-size: clamp(21px, 21 / 500 * 100vw, 35px);
      margin-bottom: 10px;
    }

    .en-title {
      font-size: clamp(10px, 10 / 375 * 100vw, 20px);
    }

    .sub-title {
      font-size: clamp(12px, 12 / 500 * 100vw, 20px);
    }
  }

  .page-rental-space {
    .title-wrapper {
      margin-bottom: auto;

      .en-title {
        margin: 20px 0 0;
      }
    }

  }

}

@media screen and (max-width: 600px) {

  .title-wrapper {
    .en-title {
      margin: 10px 0 0;
    }
  }

  .pagetitle-container {
    margin-top: 48px;
  }
}