/* ========================================
   ベース設定
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========================================
   各セクション共通レイアウト
======================================== */
.image-section {
  text-align: center;
  margin: 80px 0;
}

picture {
  display: block;
  width: 100%;
}

picture img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
}

picture img:last-child {
  margin-bottom: 0;
}

#reason {
  margin-top: 0;
}

#reason picture:first-of-type img {
  margin-top: 0;
}

#about {
  margin-bottom: 0;
}

/* ========================================
   FV構成（画像＋ボタン縦並び）
======================================== */
#fv .fv-container {
  text-align: center;
}

#fv .fv-container picture img {
  width: 100%;
  height: auto;
}

/* ①FVボタン：PC 60% / SP 80% */
#fv .fv-button {
  margin-top: 30px;
}

#fv .fv-button img {
  width: 60%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ========================================
   理由・実績セクションのサイズ調整
======================================== */
#reason picture img,
#result picture img {
  display: block;
  margin: 0 auto 50px;
}

#reason picture:first-of-type img,
#result picture:first-of-type img {
  width: 100%;
}

#reason picture:not(:first-of-type) img,
#result picture:not(:first-of-type) img {
  width: 80%;
  max-width: 1000px;
}

#reason picture:last-of-type img,
#result picture:last-of-type img {
  margin-bottom: 0;
}

/* ========================================
   ③ ご利用の流れセクション（step1のみリンク、全て80%統一）
======================================== */
#flow {
  text-align: center;
  margin: 80px 0;
}

/* タイトル画像 */
#flow > picture:first-of-type img {
  width: 100%;
  margin-bottom: 50px;
}

/* step共通スタイル */
#flow .step {
  text-align: center;
  margin-bottom: 50px;
}

/* step1（リンクあり） */
#flow .step1 .step-link {
  display: block;
  text-decoration: none;
}

#flow .step1 .step-link img {
  width: 95%;!important;
  max-width: 950px;!important;
  height: auto;
  margin: 0 auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#flow .step1 .step-link:hover img {
  transform: scale(1.02);
  opacity: 0.9;
}

/* step2, step3（リンクなし） */
#flow .step2 picture img,
#flow .step3 picture img {
  width: 80%;
  max-width: 950px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* 最後のステップの余白調整 */
#flow .step:last-child {
  margin-bottom: 0;
}

/* ========================================
   FAQセクション
======================================== */
.faq-section {
  padding: 80px 20px;
  background: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 50px;
  color: #484848;
  line-height: 1.4;
}

.faq-question::before {
  content: "Q";
  font-weight: bold;
  color: #8d4bfd;
  margin-right: 10px;
}

.faq-answer::before {
  content: "A";
  font-weight: bold;
  color: #fc5957;
  margin-right: 10px;
}

.faq-item {
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.faq-question {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-weight: lighter;
  background-color: #ece2fd;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 20px 20px 18px;
  line-height: 1.7;
  color: #444;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ========================================
   ②CTA構成（画像＋ボタン＋画像）背景色反映
======================================== */
#cta {
  text-align: center;
  margin: 80px 0 0 0;
}

#cta picture img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* ②背景色を確実に反映 */
#cta .cta-button {
  background-color: #ffeded;
  padding: 50px 0;
  width: 100%;
}

/* ①CTAボタン：PC 60% / SP 80% */
#cta .cta-button a {
  display: block;
  width: 60%;
  max-width: 600px;
  margin: 0 auto;
}

#cta .cta-button img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

#cta .cta-button a:hover img {
  opacity: 0.85;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background: #fff;
  text-align: center;
  padding: 60px 50px 40px;
}

.footer-legal {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: left;
  font-size: 0.95rem;
  color: #484848;
  line-height: 1.7;
}

.footer-legal h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #484848;
}

.footer-legal p {
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 180px;
  margin: 80px auto 50px;
}

.footer-info {
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: left;
  font-size: 0.95rem;
  color: #444;
}

.footer-copy {
  font-size: 0.85rem;
  color: #686868;
}

/* ========================================
   スマホ対応（768px以下）
======================================== */
@media (max-width: 768px) {
  .image-section {
    margin: 50px 0;
  }

  picture img {
    margin-bottom: 24px;
  }

  /* ①FVボタン：SP 80% */
  #fv .fv-button img {
    width: 80%;
    max-width: 350px;
  }

  /* 理由・実績セクション */
  #reason picture:not(:first-of-type) img,
  #result picture:not(:first-of-type) img {
    width: 90%;
    margin-bottom: 30px;
  }

  /* ③flowセクション：スマホでも80%統一、余白確保 */
  #flow {
    margin: 50px 0;
  }

  #flow > picture:first-of-type img {
    margin-bottom: 30px;
  }

  #flow .step {
    margin-bottom: 40px;
  }

  /* step1だけ別サイズ */
  #flow .step1 .step-link img {
    width: 80%; !important;
  }

  /* step2, step3は統一 */
  #flow .step2 picture img,
  #flow .step3 picture img {
    width: 80%;
    max-width: 380px;
  }

  /* ①CTAボタン：SP 80% */
  #cta .cta-button {
    padding: 40px 0;
  }

  #cta .cta-button a {
    width: 80%;
    max-width: 350px;
  }

  /* FAQ */
  .faq-section {
    padding: 60px 15px;
  }

  .faq-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  /* Footer */
  .footer-logo img {
    max-width: 140px;
  }

  .footer-info {
    text-align: left;
    font-size: 0.9rem;
  }

  .footer-copy {
    font-size: 0.8rem;
  }
}

