/* ヘッダー全体 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100vw;
  background-color: #f0f0f0;
  box-shadow: 1px 1px 1px #e3e5ea;
}

/* ヒーロー用カスタムプロパティ */
:root {
  --hero-zoom-to: 1.35; /* 最大拡大率：好みで 1.2〜1.5 */
}

/* PC時はSPメニューを非表示 */
.sp_menu_wrapper {
  display: none;
}

/* メニューの下線アニメーション */
.header_menulist a {
  position: relative;
  font-size: 1rem;
}

.header_menulist a::after {
  position: absolute;
  left: 0;
  bottom: -10px;
  content: '';
  width: 100%;
  height: 2px;
  background: #014d03;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform 0.3s;
}

.header_menulist a:hover::after {
  transform: scale(1, 1);
  transform-origin: left top;
}

/* PCレイアウト */
.header_inner {
  margin: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sp_header_inner {
  display: none;
}

.header_block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px 0 41px;
  height: 50px;
}

.header_logo {
  width: 2.5rem;
}

.header_text-logo {
  height: 2rem;
}

.header_logo-wrapper {
  display: flex;
  align-items: center;
}

.header_menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 2rem;
}

.header_menulist {
  padding: 0 0.7rem;
}

.header_menulist:first-child {
  padding-left: 0;
}

.header_menulist:last-child {
  padding-right: 0;
}

.header_button_wrapper {
  display: flex;
}

.header_button:last-child {
  margin-left: 1.5rem;
}

.header_button {
  width: 11.5rem;
  align-items: center;
  font-weight: bold;
}

.header_button i {
  font-size: 1.3rem;
  font-weight: 600;
  margin-right: 1rem;
  color: #fff;
}

/* PC/SP共通：ロゴ比率を維持 */
.header_logo,
.header_text-logo {
  height: auto;
  width: auto;
  display: block;
}

/* PCサイズ */
.header_logo {
  width: 2.5rem;
}

.header_text-logo {
  height: 2rem;
}

/* 992px以下（タブレット〜SP） */
@media screen and (max-width: 992px) {
  .pc_only {
    display: none;
  }
  .sp_only {
    display: block;
  }

  /* SPヘッダー */
  .sp_header_inner {
    width: 100%;
    padding: 0 1rem;
    position: relative;
    margin: 16px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
  }

  .sp_header_logo {
    width: 160px;
  }

  .header_button_wrapper.sp_only {
    display: flex;
  }

  .sp_header_button {
    display: flex;
    background-color: #014d03;
    width: fit-content;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    height: 3rem;
    width: 3rem;
    margin-right: 1rem;
  }

  .sp_header_button > i {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    align-items: center;
    color: #fff;
  }

  /* 予約フローティングボタン */
  .sp_floating_button {
    position: fixed;
    right: 30px;
    bottom: 36px;
    z-index: 9999;
    text-decoration: none;
  }

  .sp_floating_icon {
    width: 64px;
    height: 64px;
    background: #014d03;
    opacity: 0.8;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    transition: 0.2s;
  }

  .sp_floating_icon:hover {
    background: rgba(0, 0, 0, 0.55);
  }

  /* ハンバーガーボタン */
  .open_btn {
    position: relative;
    width: 40px;
    height: 37px;
    cursor: pointer;
    z-index: 90;
    text-align: center;
    background: none;
    border: none;
    padding: 0;
  }

  .hamburger {
    width: 100%;
  }

  .hamburger span {
    display: block;
    position: absolute;
    width: 24px;
    border-bottom: 2px solid #014d03;
    -webkit-transition: 0.35s ease-in-out;
    transition: 0.35s ease-in-out;
    left: 8px;
  }

  .hamburger span:nth-child(1) {
    top: 11px;
  }

  .hamburger span:nth-child(2) {
    top: 17px;
  }

  .hamburger span:nth-child(3) {
    top: 23px;
  }

  .hamburger span:nth-child(1).open {
    top: 14px;
    transform: rotate(45deg);
    border-bottom: 2px solid #014d03;
  }

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

  .hamburger span:nth-child(3).open {
    top: 14px;
    transform: rotate(-45deg);
    border-bottom: 2px solid #014d03;
  }

  /* SPメニュー本体（右側スライド） */
  .sp_menu_wrapper {
    display: block;
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100%;
    padding: 5rem 0 3rem 0;
    background-color: #f0f0f0;
    color: #000;
    overflow: auto;
    z-index: 70;
    opacity: 1;
    transition: right 0.35s ease, opacity 0.3s ease;
  }

  .sp_menu_wrapper.active {
    right: 0;
    opacity: 1;
    z-index: 80;
  }

  .sp_menu_list {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  .sp_menu_list_item {
    margin-bottom: 1.5rem;
  }

  .sp_menu_link {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    color: #000;
  }

  .sp_menu_aub {
    font-size: 0.8rem;
  }

  .sp_button_wrapper .header_button {
    margin: 1rem auto;
  }

  main.fixed {
    height: 100vh;
    overflow: hidden;
  }

  /* 黒幕オーバーレイ */
  .sp_menu_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 60;
  }

  .sp_menu_overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* メニュー表示時のスクロール固定 */
  body.menu-open {
    overflow: hidden;
  }

  /* SP時ロゴ少し小さく */
  .sp_header_inner .header_logo {
    width: 2.2rem;
  }

  .sp_header_inner .header_text-logo {
    height: 1.8rem;
  }
}

/* 768px以下：PCヘッダー非表示、SPヘッダー表示 */
@media screen and (max-width: 768px) {
  .header_inner {
    display: none;
  }

  .sp_header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}