body {
  margin: 0;
  background: #f5f5f5;
}

/* LP */
.lp-container {
  max-width: 750px;
  margin: 0 auto;
}

.lp-container img {
  width: 100%;
  display: block;
}

/* ボタン */
.btn-wrap {
  position: relative;
}

.btn-link {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 8%;
  height: 12%;
}

/* SEO */
.seo-text {
  position: absolute;
  left: -9999px;
}

/* ハンバーガー */
.menu-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 40px;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle div {
  height: 4px;
  background: #5fc4c7;
  margin: 6px 0;

  /* ▼これがアニメーションの正体 */
  transition: all 0.3s ease;
}

/* ×に変形 */
.menu-toggle.on div:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.on div:nth-child(2) {
  opacity: 0;
}

.menu-toggle.on div:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* メニュー */
.menu-list {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 80px 20px;
  list-style: none;
}

.menu-list.active {
  display: block;
}

.menu-list li {
  margin-bottom: 20px;
}

/* サブメニュー */
.submenu {
  max-height: 0;
  overflow: hidden;
  padding-left: 20px;
  transition: max-height 0.4s ease;
}
.has-submenu > a::after {
  content: "▼";
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.3s;
}

.has-submenu.open > a::after {
  transform: rotate(180deg);
}
/* 開いたとき */
.has-submenu.open .submenu {
  max-height: 200px; /* ←中身に応じて調整 */
}

.menu-toggle.on div:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.on div:nth-child(2) {
  opacity: 0;
}

.menu-toggle.on div:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
.menu-list {
  text-align: center;
}

.menu-list li {
  max-width: 300px;
  margin: 0 auto 20px;
}
.menu-list {
  background: rgba(255,255,255,0.95);
}
.menu-list li a {
  display: block;
  padding: 10px 0;
  color: #333;
  text-decoration: none;

  transition: all 0.3s ease; /* ←アニメーション */
}

.menu-list li a:hover {
  color: #5fc4c7; /* ウルシアカラー */
}
.submenu li a {
  display: block;
  padding: 6px 0;
  color: #666;

  transition: all 0.3s ease;
}

.submenu li a:hover {
  color: #5fc4c7;
  transform: translateX(5px); /* ←ちょい右に動く */
}
.menu-list li a:hover {
  background: rgba(95, 196, 199, 0.1);
  border-radius: 6px;
}

/**********初回限定アイコン*************/
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* 表示・非表示のアニメーション */
}

/* スマホ */
@media (max-width: 768px) {
    #back-to-top {
        right: 0;
        bottom: 40px;
    }
}

#back-to-top img {
    display: block; /* 画像をブロック要素として扱う */
    transition: opacity 0.3s ease; /* ホバー時の透明度変化 */
}

/* デフォルト（PC用）のサイズ */
#back-to-top img {
    width: 150px; /* PCでの画像の幅 */
    height: auto; /* 縦横比を保つ */
}

/* スマホ用のスタイル */
@media (max-width: 768px) {
    #back-to-top img {
        width: 120px; /* スマホでの画像の幅 */
    }
}

#back-to-top img.hover {
    display: none; /* 初期状態ではホバー画像を非表示 */
}

/* マウスオーバー時のスタイル */
#back-to-top:hover img.normal {
    display: none; /* 通常の画像を非表示 */
}

#back-to-top:hover img.hover {
    display: block; /* ホバー時の画像を表示 */
    opacity: 1; /* ホバー画像は不透明にする */
}

/* パルス（ふわふわ）アニメーション */
@keyframes floatPulse {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.08) translateY(-5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

/* ボタンに適用 */
#back-to-top {
  animation: floatPulse 2.5s ease-in-out infinite;
}