/* -----------------------
   リセット + ベース
------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px; /* PC用のベースパディング */
  overflow-x: hidden;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* -----------------------
   モバイル(768px以下)向け
------------------------ */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  h1 {
    font-size: 1.5rem;
  }
  /* フォームやボタンのスタイルを調整（Cognitoの認証フォーム用） */
  input[type="text"],
  input[type="password"],
  input[type="email"],
  button {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
  }
}

/* -----------------------
   全セクション共通
------------------------ */
section {
  width: 100%;
  text-align: center;
  padding: 4rem 1rem; 
}

/* -----------------------
   ヒーローセクション
------------------------ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  color: #fff;
}
.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
/* パララックス背景 */
.parallax-bg {
  position: absolute;
  width: 100%;
  height: 120%;
  left: 0;
  top: 0;
  background-image: url('Img/view1.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: 1;
  filter: blur(4px);
  box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.3);
}

/* -----------------------
   スクロールアニメーション用
------------------------ */
.fade-in,
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* テキストアニメーション用 */
.text-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
.text-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------
   Introセクション
------------------------ */
.section-intro p {
  line-height: 1.8;
  margin-bottom: 2rem;
}
.section-intro img {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* -----------------------
   特徴セクション
------------------------ */
.section-features {
  background: #f0f8ff;
}
.section-features .features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.section-features .feature-item {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.section-features .feature-item:hover {
  transform: translateY(-5px);
}
.section-features .feature-item img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
}
.section-features .feature-item h3 {
  margin-bottom: 0.5rem;
  color: #1E90FF;
}

/* -----------------------
   3ステップセクション
------------------------ */
.section-steps {
  background: #fff;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.section-steps h2 {
  margin-bottom: 3rem;
  font-size: 1.75rem;
  color: #1E90FF;
}

/* PC向けの基本レイアウト */
.step {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem 0;
  flex-wrap: wrap; /* レスポンシブ対応 */
  gap: 1rem;
}
.step-image,
.step-text {
  flex: 1 1 400px;
  max-width: 500px;
  padding: 0 1rem;
}
.step-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.step-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1E90FF;
}
.step-text p {
  line-height: 1.6;
}

/* ステップ1,2,3共通: PCでは左(画像)、右(テキスト)にしたい場合は調整 */
.step1 { /* ここは特に指定不要なら空でOK */ }
.step2 {
  flex-direction: row; /* PCでテキスト左、画像右 */
}
.step2 .step-text {
  order: 1;
}
.step2 .step-image {
  order: 2;
}
.step3 { /* ここも特に指定不要なら空でOK */ }

/* -----------------------
   ギャラリーセクション
------------------------ */
.section-gallery {
  background: #f0f8ff;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.section-gallery .gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.section-gallery .gallery-item {
  background: #fff;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s;
}
.section-gallery .gallery-item:hover {
  transform: scale(1.02);
}
.section-gallery .gallery-item img {
  width: 100%;
  height: auto;
}
.section-gallery .gallery-item p {
  padding: 1rem;
  text-align: left;
  margin: 0;
}

/* -----------------------
   フッター
------------------------ */
.footer {
  width: 100%;
  padding: 1rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* -----------------------
   レスポンシブ対応
   (768px以下の画面)
------------------------ */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  /* すべてのステップを縦並び & テキスト先行 → 画像後 */
  .step {
    flex-direction: column;
    padding: 1rem 0;
  }
  .step-text {
    order: 1;
  }
  .step-image {
    order: 2;
  }
  .step-image,
  .step-text {
    flex: 1 1 auto;
    max-width: 100%;
    padding: 0; /* 横の余白を詰める */
  }
}

/* フッターのXロゴ周りの追加スタイル */
.footer-logo {
  margin-bottom: 1rem; /* 下のリンクとの隙間 */
  text-align: center;  /* ロゴを中央寄せ */
}

.footer-logo img {
  width: 40px;    /* お好みでサイズ調整 */
  height: auto; 
  display: inline-block;
}

.footer-logo a:hover {
  opacity: 0.8;   /* ホバー時の軽いエフェクト */
  transition: 0.3s;
}
