/* ヘッダー部分：メニューが閉じているときは透明 */
.hs-sp-header-top-wrapper {
 background-color: transparent;
 transition: background-color 0.3s ease;
 position: fixed;
 top: 0; /* 画面の上部に配置 */
 left: 0; /* 画面の左端に配置 */
 width: 100%; /* 画面全体に幅を広げる */
 z-index: 899; /* .nav-overlayの900より後ろに表示 */
 min-height: 60px; /* コンテンツを包含するのに十分な高さ（調整が必要な場合があります） */
 padding: 40px 14px; /* 左右のパディングを追加して、ロゴとハンバーガーボタンが端に寄りすぎないように調整 */
 display: flex; /* ロゴとハンバーガーボタンの配置を調整するため */
 align-items: center; /* 垂直方向の中央揃え */
 justify-content: space-between; /* 要素間のスペースを均等に */
}

/* メニューが開いたときに白色にする */
.hs-sp-header-top-wrapper.active {
 background-color: white; /* 白色の背景 */
}




/* 既存のスタイルはそのまま */
/*** 三本線のメニュー ***/
.hs-hamburger-overlay {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* 線の調整 */
.hs-hamburger-overlay__line {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 2px;
  background-color: #333;
  transition: all 0.6s;
}

.hs-hamburger-overlay__line:nth-of-type(1) {
  top: 14px;
}
.hs-hamburger-overlay__line:nth-of-type(2) {
  top: 23px;
}
.hs-hamburger-overlay__line:nth-of-type(3) {
  top: 32px;
}

.hs-hamburger-overlay.active .hs-hamburger-overlay__line {
  background-color: #479e8f;
}

.hs-hamburger-overlay.active .hs-hamburger-overlay__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-225deg);
}
/* 真ん中の線は徐々に消える */
.hs-hamburger-overlay.active .hs-hamburger-overlay__line:nth-of-type(2) {
  opacity: 0;
  transform: translateY(0px) rotateY(225deg);
}
.hs-hamburger-overlay.active .hs-hamburger-overlay__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(225deg);
}

/**** 左上のロゴ ****/
.hs-sp-header-logo {
  position: fixed;
  top: 4px;
  margin: 10px;
  width: 50px;
}

/* ロゴの回転アニメーション */
.hs-sp-header-logo.rotate-forward {
  animation: logoSpinForward 0.6s forwards;
}

@keyframes logoSpinForward {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

/* ロゴの逆回転アニメーション */
.hs-sp-header-logo.rotate-backward {
  animation: logoSpinBackward 0.6s forwards; /* メニューを閉じる時間を調整することも可能 */
}

@keyframes logoSpinBackward {
  from {
    transform: rotate(180deg); /* 360度から開始 */
  }
  to {
    transform: rotate(0deg); /* 0度に戻る */
  }
}

/*** メニューを開いたとき ***/
.nav-overlay {
  position: fixed;
  top: 80px; /*上部の空白*/
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #f8f8f2;
  visibility: hidden;
  opacity: 0;
  transition: all 0.6s;
  z-index: 900;
}

.nav-overlay.active {
  visibility: visible;
  opacity: 1;
}

.sp-menu-main-content-wrapper {
  width: 100%;
  text-align: center;
}

/*** 上部グレーの波線 ***/
.sp-footer-top-gray {
  margin-top: -2%;
}

/*** 背景グレー ***/
.nav-gray-wrapper {
  background-color: #f8f8f2;
  padding: 10px 0 10px;
  margin-top: -2%;
  margin-bottom: -2%;
}

/****　リンク ****/
.hs-sp-link-block-wrapper {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-sp-link-block-wrapper {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s;
}

.nav-overlay.active .hs-sp-link-block-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.active .hs-sp-link-block-wrapper:nth-child(1) {
  transition-delay: 0.1s;
}
.nav-overlay.active .hs-sp-link-block-wrapper:nth-child(2) {
  transition-delay: 0.2s;
}
.nav-overlay.active .hs-sp-link-block-wrapper:nth-child(3) {
  transition-delay: 0.3s;
}
.nav-overlay.active .hs-sp-link-block-wrapper:nth-child(4) {
  transition-delay: 0.4s;
}

.hs-sp-link a, #hs-menu-about {
  display: inline-block;
  padding: 7px;
  color: #3e3a39;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.hs-sp-link a:hover,
.hs-sp-header-bottom-link-wrapper a:hover {
  color: #479E8F;
}


/*** aboutの開閉：初期状態で非表示にする ***/
.hs-sp-child-link-wrapper {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s;
}

/* 開いているときに適用されるスタイル */
.hs-sp-child-link-wrapper.is-open {
  display: block; /* 表示する */
  opacity: 1; /* フェードイン */
  transform: translateY(0); /* 上にスライド */
}


/* 私たちの想いなど */
.hs-sp-child-link-wrapper a {
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

/* 上部の線 */
.hs-sp-upper-line {
  position: relative;
}

.hs-sp-upper-line::before {
  content: "";
  display: block;
  width: 300px;
  height: 1px;
  background-color: #dcdcd6;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* 下線 */
.hs-sp-link-block-wrapper:last-of-type .hs-sp-upper-line:last-child::after {
  content: "";
  display: block;
  width: 300px;
  height: 1px;
  background-color: #dcdcd6;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.contact-btn-arrow-svg {
  margin-right: 20px;
  width: 20px;
  fill: white;
}

/*** 問い合わせボタン ****/
.hs-sp-contact-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px auto 25px;
  max-width: 170px;
  padding: 8px 30px 8px 15px;
  color: #fff;
  transition: 0.3s ease-in-out;
  background: #479e8f;
  border-radius: 50px;
  z-index: 0;
  overflow: hidden;
}

.hs-sp-contact-btn a {
  color: #fff;
  transition: 0.3s ease-in-out;
  font-weight: 600;
  text-decoration: none;
}

/* ボタンホバー時の挙動 */
.hs-sp-contact-btn:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  display: block;
  background: #5fbdae;
  transition: 0.3s;
  left: 0;
}
.hs-sp-contact-btn:hover:after {
  width: 100%;
  z-index: -1;
}

/**** ボタン下リンク（プラポリと勧誘方針） ****/
.hs-sp-header-bottom-link-wrapper {
  margin: 25px 0;
}

.hs-sp-header-bottom-link-wrapper a {
  color: black;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s;
}

.hs-sp-header-bottom-link-wrapper a:first-child {
  padding-right: 20px;
}

/*** 背景 黄色 ***/
.sp-footer-bottom-yellow {
  background-color: #fff096;
  margin-top: -2%;
  height: 100vh;
}

/***** 問い合わせボタン以下もフワッと表示 ******/
/* お問い合わせボタン */
.hs-sp-contact-btn {
  opacity: 0; /* 初期状態は非表示 */
  transform: translateY(20px); /* 初期位置は少し下 */
  transition: all 0.6s; /* アニメーションの時間 */
}

/* プライバシーポリシー・勧誘方針のラッパー */
.hs-sp-header-bottom-link-wrapper {
  opacity: 0; /* 初期状態は非表示 */
  transform: translateY(20px); /* 初期位置は少し下 */
  transition: all 0.6s; /* アニメーションの時間 */
}

/* 最下部の黄色い波線SVGのラッパー */
.sp-footer-bottom-yellow-wrapper {
  opacity: 0; /* 初期状態は非表示 */
  transform: translateY(20px); /* 初期位置は少し下 */
  transition: all 0.6s; /* アニメーションの時間 */
}

/* メニューがアクティブになったときにアニメーションを開始 */
.nav-overlay.active .hs-sp-contact-btn,
.nav-overlay.active .hs-sp-header-bottom-link-wrapper,
.nav-overlay.active .sp-footer-bottom-yellow-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* それぞれの要素に遅延を設定して順番に表示 */
.nav-overlay.active .hs-sp-contact-btn {
  transition-delay: 0.5s; /* hs-sp-link-block-wrapper:nth-child(4) の次 */
}

.nav-overlay.active .hs-sp-header-bottom-link-wrapper {
  transition-delay: 0.6s; /* お問い合わせボタンの次 */
}

.nav-overlay.active .sp-footer-bottom-yellow-wrapper {
  transition-delay: 0.7s; /* プライバシーポリシー・勧誘方針の次 */
}

/***** ピンクの花びらのアニメーション *****/
.pink-logo-animation-wrapper {
  position: absolute; /* 親要素 (nav-overlay) に対して絶対配置 */
  bottom: -150px; /* 画面下から完全に隠れるように調整（画像の高さによる） */
  left: 40px; /* ★左からの位置調整 */
  transform: translateX(-50%); /* 中央寄せ */
  width: 80px; /* 画像の表示サイズを調整してください */
  height: auto;
  opacity: 0; /* 最初は非表示 */
  z-index: 950; /* メニューコンテンツより手前、ハンバーガーより奥 */
  pointer-events: none; /* クリックイベントを無効化し、下の要素をクリックできるようにする */
}

.pink-logo-animated {
  width: 100%; /* 親ラッパーの幅に合わせる */
  height: auto;
  display: block;
}

/* アニメーションのキーフレーム定義 */
@keyframes slideUpAndFadeOutStraight {
  0% {
    transform: translate(-50%, 0px) rotate(0deg); /* 画面下部からの相対位置 */
    opacity: 0;
  }
  10% {
    opacity: 1; /* 少し上がってから表示開始 */
  }
  100% {
    transform: translate(-50%, -100vh) rotate(270deg); /* さらに上へ移動して完全に消える */
    opacity: 0;
  }
}

/* メニューがアクティブになったときにピンクの花びらのアニメーションを開始 */
.nav-overlay.active .pink-logo-animation-wrapper.animate {
  animation: slideUpAndFadeOutStraight 5s forwards; /* ★キーフレーム名を変更 */
}

/* アニメーション　逆回転 */
@keyframes slideUpAndFadeOutStraight-reverse {
  0% {
    transform: translate(0, 0px) rotate(0deg) scale(0.7); /* 画面下部からの相対位置 */
    opacity: 0;
  }
  10% {
    opacity: 1; /* 少し上がってから表示開始 */
  }
  100% {
    transform: translate(-50%, -100vh) rotate(-270deg) scale(1.5); /* さらに上へ移動して完全に消える */
    opacity: 0;
  }
}

/* メニューがアクティブになったときにピンクの花びらのアニメーションを開始 */
.nav-overlay.active .pink-logo-animation-wrapper.animate {
  animation: slideUpAndFadeOutStraight 5s forwards; /* ★キーフレーム名を変更 */
}

/***** 黄色の花びら *****/
.yellow-logo-animation-wrapper {
  position: absolute;
  bottom: -150px;
  right: 0px; /* ★ピンクは left:40px、黄色は right:40px で左右対称 */
  width: 80px;
  height: auto;
  opacity: 0;
  z-index: 950;
  pointer-events: none;
}

.yellow-logo-animated {
  width: 100%;
  height: auto;
  display: block;
}

/* アニメーション適用時の設定 */
.nav-overlay.active .yellow-logo-animation-wrapper.animate {
  animation: slideUpAndFadeOutStraight-reverse 5s forwards;
  animation-delay: 0.3s; /* ★ピンクより0.5秒遅らせる */
}