@charset "UTF-8";

.site-header {
  width: 100%;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 80px;
  margin: 0 auto;
  padding: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
}

.main-nav {
  display: none;
}

/*spのハンバーガーメニュー*/
.openbtn {
  display: block;
  position: fixed;
  z-index: 4000;
  /*ボタンを最前面に*/
  top: 15px;
  right: 20px;
  cursor: pointer;
  width: 30px;
  height: 20px;
}
.openbtn span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #000;
  width: 80%;
  height: 2px;
}
.openbtn span:nth-of-type(1) {
  top: 15px;
}
.openbtn span:nth-of-type(2) {
  top: 23px;
}
.openbtn span:nth-of-type(3) {
  top: 31px;
}
.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 80%;
}
.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}
.openbtn.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 80%;
}
/*========= ナビゲーションのためのCSS ===============*/
#g-nav {
  display: block;
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 3000;
  /*ナビのスタート位置と形状*/
  top: 0;
  right: -120%;
  width: 60%;
  /*半分とか調整をする際は、g-nav-listも合わせる*/
  height: 100dvh;
  /*ナビの高さ - dvhを使用してモバイルブラウザのUIを考慮*/
  background: #fff;
  /*動き*/
  transition: all 0.6s;
}
#g-nav.panelactive {
  right: 0;
}
#g-nav.panelactive #g-nav-list {
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 3000;
  width: 60%;
  /*半分とか調整をする際は、g-navも合わせる*/
  height: 100dvh;
  /*表示する高さ - dvhを使用*/
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#g-nav ul {
  /*ナビゲーション天地中央揃え*/
  position: absolute;
  width: 100%;
  z-index: 3000;
  margin-top: 100px;
  padding-left: 20px;
}
#g-nav ul .sns-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  margin-left: 10px;
}
#g-nav ul .sns-wrapper .x-logo a img {
  width: 20px;
  height: 20px;
}
#g-nav ul .sns-wrapper .insta-logo a img {
  width: 25px;
  height: 25px;
}
#g-nav li {
  font-size: 1.5rem;
  list-style: none;
  text-align: left;
  padding-inline: 20px; /* 左右の余白 */
}
#g-nav li li:not(:first-child) {
  margin-top: 20px;
}
#g-nav li a {
  color: #000;
  text-decoration: none;
  padding: 10px 0; /* 上下のみpadding */
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #ddd; /* 下線を左右端べったりじゃなく余白を持たせる */
}
/*---------------navi内のボタンの設定---------------*/
/*ボタン設定*/
.g_nav_btn {
  width: 80%;
  margin: 50px auto;
}
.g_nav_btn_link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: min(2.08vw, 16px);
  padding-bottom: min(2.08vw, 16px);
  padding-left: min(1.3vw, 10px);
  padding-right: min(1.3vw, 10px);
  font-size: min(3.72vw, 16px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  border-radius: min(0.78vw, 6px);
  transition: all 0.3s ease;
  background-color: var(--btn-color);
  color: var(--white--);
}
/* オーバーレイのスタイル */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1500;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}
/* スクロール制御（メディアクエリ外に配置） */
html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

/*---------------header設定終了---------------*/

@media screen and (min-width: 1023px) {
  .main-nav {
    display: flex;
    align-items: center;
  }

  .main-nav ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    list-style: none;
  }

  .main-nav a {
    color: #222;
    font-size: 1.6rem;
    padding: 4px 0;
    text-decoration: none;
  }

  /*ボタン設定*/
  .main_btn {
    width: 100%;
    margin-left: 30px;
  }

  .main_btn a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 16px;
    padding-inline: 50px;
    font-size: min(1.11vw, 16px);
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
    border-radius: min(0.78vw, 6px);
    transition: all 0.3s ease;
    background-color: var(--btn-color);
    color: var(--white--);
  }

  .main_btn:hover {
    opacity: 0.8;
  }

  .openbtn {
    display: none;
  }
}

@media screen and (max-width: 300px) {
  .logo-img {
    max-width: 60%;
    height: 40px;
  }
  /* 画像も縮小対応 */
  .main_visual img {
    height: 100%;
    object-fit: cover;
  }
  .site-header {
    height: 48px;
    padding: 0;
  }
  .header-inner {
    padding: 8px;
  }
  .logo-img {
    max-width: 50%;
    height: 28px;
  }
  .openbtn {
    top: 8px;
    right: 30px;
    width: 24px;
    height: 16px;
  }
  .openbtn span {
    left: 6px;
    height: 2px;
    width: 70%;
  }
  .openbtn span:nth-of-type(1) {
    top: 6px;
  }
  .openbtn span:nth-of-type(2) {
    top: 10px;
  }
  .openbtn span:nth-of-type(3) {
    top: 14px;
  }
  .main-nav ul {
    gap: 8px;
  }
  .main-nav li {
    font-size: 1rem;
    padding-inline: 8px;
  }
  .main-nav a {
    font-size: 1rem;
    padding: 2px 0;
  }
  #g-nav {
    width: 90%;
    height: 100dvh;
    font-size: 1rem;
  }
  #g-nav ul {
    margin-top: 48px;
    padding-left: 8px;
  }
  #g-nav li {
    font-size: 1rem;
    padding-inline: 8px;
  }
  #g-nav li a {
    padding: 6px 0;
    font-size: 1rem;
  }
  .g_nav_btn {
    width: 90%;
    margin: 20px auto;
  }
  .g_nav_btn_link {
    font-size: 0.9rem;
    padding: 6px 8px;
  }
  #overlay {
    height: 100dvh;
  }
}
