/* ===== リセットCSS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}


/* ===== ヘッダー全体 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* ===== ナビゲーションメニュー ===== */
.nav {
  display: flex;
  gap: 1.5rem;
  transition: max-height 0.5s ease;
  overflow: hidden;
  max-height: 0;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.7;
}

.nav.open {
  max-height: 500px;
}

/* ===== ハンバーガー ===== */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media screen and (max-width: 767px) {
  .hamburger {
    display: block;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 100%;
    left: 0;
  }

  .nav.open {
    max-height: 300px;
    padding: 1rem 0;
  }
}

@media screen and (min-width: 768px) {
  .nav {
    display: flex;
    max-height: none;
    position: static;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
  }

  .hamburger {
    display: none;
  }
}


/* ===== トップに戻るボタン ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #00a27a;
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 50%;
  font-size: 1.2rem;
  text-align: center;
  text-decoration: none;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
}

.back-to-top.show {
  display: block;
}

.back-to-top:hover {
  background-color: #008e69;
  transform: scale(1.1);
}

/* ===== ヒーローセクション ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  margin: 0;
  padding-top: 70px; /* ヘッダーの高さに合わせる */
}

.hero-text {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  color: white;
  text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.8);
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: #ff7a00;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #008e69;
}

/* ===== モバイル用ヒーロー補正 ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero .cta-button {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

/* ===== タブレット用ヒーロー補正 ===== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    padding: 1rem 1.5rem;
    text-align: center;
  }
}

/* ===== PCサイズ ===== */
@media screen and (min-width: 1025px) {
  .hero-text {
    left: 51.5%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    text-align: center;
    white-space: normal;
  }
}


/* ===== 特徴セクション ===== */
.features {
  padding: 4rem 1rem;
  background-color: #f8f8f8;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #00a27a;
}

.feature-item p {
  font-size: 1rem;
  color: #555;
}

/* ===== レスポンシブ（768px以上）===== */
@media screen and (min-width: 768px) {
  .features-list {
    flex-direction: row;
    justify-content: space-between;
  }

  .feature-item {
    flex: 1;
  }
}

/* ========================
   実績・口コミセクション
======================== */
.results {
  padding: 60px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.results h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.result-item h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #222;
}

.result-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.result-item blockquote {
  font-style: italic;
  background-color: #fff;
  padding: 20px;
  border-left: 5px solid #333;
  margin: 0 auto;
  max-width: 700px;
  color: #555;
}

.customer-name {
  margin-top: 10px;
  font-weight: bold;
  color: #666;
  font-size: 0.95rem;
}

/* モバイル対応 */
@media (min-width: 768px) {
  .results-list {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .result-item {
    flex: 1;
    padding: 0 20px;
  }
}


/* トレーナー紹介セクション */
.trainer {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.trainer h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

/* トレーナーカード全体 */
.trainer-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* 個別カード */
.trainer-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 300px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.trainer-card:hover {
  transform: translateY(-5px);
}

/* トレーナー画像 */
.trainer-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* 名前と説明 */
.trainer-card h3 {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 10px;
}

.trainer-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .trainer-list {
    flex-direction: column;
    align-items: center;
  }
}

/* コース案内セクション */
.courses {
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.courses h2 {
  font-size: 2.4rem;
  margin-bottom: 50px;
  font-weight: 700;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.course-card {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.course-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
}

.course-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.course-card .price {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 15px;
  color: #222;
}

/* レスポンシブ対応 */
@media screen and (min-width: 768px) {
  .course-list {
    flex-direction: row;
    justify-content: center;
  }

  .course-card {
    width: 30%;
  }
}


/* 体験予約の流れセクション */
.contact-flow {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
}

.contact-flow h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #333;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  background-color: #f7f7f7;
  border-radius: 10px;
  padding: 30px 20px;
  flex: 1 1 280px;
  max-width: 300px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.step-number {
  display: inline-block;
  background-color: #e87e04;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.step p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* ===== フッターセクション ===== */
.footer {
  background-color: #111;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-sns {
  margin: 20px 0;
}

.footer-sns a {
  display: inline-block;
  margin: 0 8px;
  color: #fff;
  font-size: 24px;
  transition: opacity 0.3s;
}

.footer-sns a:hover {
  opacity: 0.7;
}

.footer .copyright {
  font-size: 0.8rem;
  color: #ccc;
  margin-top: 20px;
}

.footer-sns a {
  display: inline-block;
  margin: 0 8px;
  font-size: 24px;
  font-weight: bold; /* ←これで「X」が見栄えよくなる */
  color: #fff;
  transition: opacity 0.3s;
}

/* 体験予約用 */
.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: auto;
  background: #ff7a00;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-decoration: none;
  font-weight: bold;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.5s ease;
   animation: bounce 1.5s infinite;
}

.floating-cta.visible {
  opacity: 1;
}

.floating-cta.hidden {
  pointer-events: none;
}

/* パルスアニメーション */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.floating-cta {
  animation: pulse 2s infinite ease-in-out;
}