body {
  margin: 0;
  background-color: #fff;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.help-container {
  width: 90%;
  max-width: 1100px;
  justify-content: center;
  padding: 130px 10px 120px; /* 上下左右の余白を増やす */
  box-sizing: border-box;
}

/* 各スライド */
.slide {
  display: none;
}

.slide.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

/* 画像とテキストのレイアウト統一 */
.slide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: 60vh; /* 画像やテキストの高さを揃える */
  box-sizing: border-box;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.slide-content img {
  width: 45%;
  max-height: 60vh;
  object-fit: contain;
  flex-shrink: 0;
}

.text {
  flex: 1;
  text-align: left;
  max-width: 50%;
  padding: 20px;
}

.text h2 {
  color: #07ae6e;
  font-size: 1.8rem; /* 小さく */
  margin-bottom: 20px;
  text-align: center;
}

.text p {
  font-size: 1.1rem; /* 少し大きく */
  line-height: 1.8;
}

/* 下のボタンエリアを固定配置 */
.controls {
  position: fixed;
  bottom: 40px; /* 固定値で下に */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  background: white;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
  z-index: 1000;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.controls button {
  background-color: #07ae6e;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.controls button:hover {
  transform: scale(1.01);
}

/* ページ位置のドット */
.dots {
  display: flex;
  gap: 8px;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: #ccc;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #07ae6e;
}

/* フェードアニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* モバイル用 */
@media (max-width: 820px) {
  .help-container {
    position: relative;
    padding: 25% 10px 70px;
    height: 100vh; /* 画面全体を占有して安定させる */
    overflow: hidden;
  }

  .slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    height: calc(100vh - 20%); /* 上下パディング分を引く */
    overflow: hidden;
    margin: 0;
    gap: 6%;
  }

  /* 画像部分：全体の約7割を占める */
  .slide-content img {
    display: block;
    width: auto;
    height: 45vh;       /* 縦の高さを画面の35%に統一 */
    max-width: 97%;     /* 横の最大幅を制限 */
    object-fit: contain;/* 画像全体を見せる（トリミングしない） */
    margin-bottom: 0;
  }

  .text {
    max-width: 95%;
    flex-shrink: 0;
  }

  .text h2 {
    font-size: 1.3rem;
  }

  .text p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 auto;
  }

  /* 下部ボタン調整 */
  .controls {
    position: absolute;
    bottom: 5%;
    display: flex;
    justify-content: center;
    gap: 50px;
  }

  .controls button {
    height: 40px;
    width: 80px;
    font-size: 1rem; /* ボタン内の文字を小さく */
    padding: 2px 13px; /* 全体を小さく */
    border-radius: 8px;
    white-space: nowrap;
  }

  .dot {
    height: 8px;
    width: 8px;
  }

}

