/*
 Theme Name:   AiKaiwaa
 Theme URI:    https://brioworks.biz/
 Description:  A more advanced child theme for Twenty Twenty-One, focusing on a modern & Japanese-inspired design.
 Author:       o1 (ChatGPT)
 Author URI:   https://brioworks.biz/wp-admin/
 Template:     twentytwentyone
 Version:      1.0
*/

/* ==========================
   親テーマのCSSを読み込んだ上で、カスタムスタイルを上書き
   ========================== */

/* ----- 全体の基本設定 ----- */
body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #f7fafc;
  color: #333;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* ヒーローセクション（メインビジュアル） */
.hero-section {
  background: url('img/hero-pattern.png') center/cover no-repeat, #0f172a; /* 背景画像＋濃紺 */
  color: #fff;
  padding: 120px 20px;
  text-align: center;
  position: relative;
}
.hero-section .hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-section .hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
  color: #e2e8f0;
}
.hero-section .cta-button {
  background-color: #f59e0b;
  color: #fff;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.hero-section .cta-button:hover {
  background-color: #d97706;
}

/* フェードインアニメーション (スクロールで表示) */
.fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fadein.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- セクション共通 ----- */
.section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #0f172a;
}
.section-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  color: #666;
}

/* ----- 特徴（Features） ----- */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.feature-item {
  background: #fff;
  flex: 1 1 250px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 30px 20px;
  text-align: center;
}
.feature-item h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #f59e0b;
}

/* ----- 料金プラン（Pricing） ----- */
.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.pricing-card {
  background: #fff;
  flex: 1 1 300px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  padding: 40px 20px;
  transition: all 0.3s ease;
}
.pricing-card:hover {
  border-color: #f59e0b;
  transform: translateY(-5px);
}
.pricing-plan-name {
  font-weight: bold;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-size: 1.8rem;
  color: #0f172a;
  margin-bottom: 1rem;
}
.pricing-details {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.pricing-details li {
  margin: 0.5rem 0;
}

/* ----- ユーザーの声（Testimonials） ----- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.testimonial {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 300px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.testimonial p {
  margin-bottom: 0.5rem;
  font-style: italic;
  color: #555;
}
.testimonial .user-name {
  font-weight: bold;
  color: #0f172a;
  margin-top: 0.5rem;
}

/* ----- FAQ ----- */
.faq-item {
  background: #fff;
  margin-bottom: 10px;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
}
.faq-item h4 {
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.faq-item p {
  display: none;
  margin: 0;
  padding-top: 10px;
  color: #444;
}
.faq-item.open p {
  display: block;
}

/* ----- 最終CTA (Call to Action) ----- */
.final-cta-section {
  text-align: center;
  padding: 60px 20px;
  background: #f59e0b;
  color: #fff;
}
.final-cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.final-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.final-cta-section .cta-button {
  background: #fff;
  color: #0f172a;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.final-cta-section .cta-button:hover {
  background: #e2e8f0;
}

/* ----- メディアクエリ ----- */
@media screen and (max-width: 768px) {
  .hero-section .hero-title {
    font-size: 2rem;
  }
  .features-list,
  .pricing-cards,
  .testimonials {
    flex-direction: column;
  }
  .feature-item, .pricing-card, .testimonial {
    margin: 10px auto;
  }
}
