/* 全体のリセットやベース設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: sans-serif;
    background-color: #f9f9f9;
    color: #1F1F1F;
    overflow-x: hidden; /* 横スクロールを防止 */
  }

  .hero {
    justify-content: center;
    display: flex;
    padding-top:60px;
  }

  .plans {
    justify-content: center;
    display: flex;
  }

  .wrapper{
    /* background: linear-gradient(135deg, #1a3f77 0%, #a6d4f5 100%); */
  }

  .title {
    text-align: center;
    font-size: 3rem;
    margin-top: 40px;
    font-weight:bold;
    color:#0F1F1F;
    font-family: "HGP創英角ゴシックUB", "HGS創英角ゴシックUB", "ヒラギノ角ゴ Pro W6", "Hiragino Kaku Gothic Pro W6", "メイリオ", Meiryo, sans-serif;
  }


  .sub-title {
    display: block;
    margin: 10px auto;
    width: 65%;
    text-align: center;
    font-size: 1rem;
  }

  .img-row {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .img-row img {
    width: 100px;
    height: 100px;
  }
  /* タブとコンテンツを包むコンテナ */
  .tabs-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 20px;
  }
  
  /* タブボタン */
  .tabs {
    display: flex;
    max-width: 250px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    margin: 0 auto;
    margin-bottom: 40px;
  }
  
  .tab {
    flex: 1;
    padding: 12px 20px;
    background-color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s;
  }
  
  /* アクティブなタブのスタイル */
  .tab.active {
    background-color: #C1E7FD;
  }
  
  /* タブコンテンツ */
  .tab-contents {
    position: relative;
    text-align: center;
    padding-top: 40px;
  }
  
  /* 各タブのコンテンツ。非表示をデフォルトに */
  .tab-content {
    display: none;
  }
  
  /* アクティブなコンテンツのみ表示 */
  .tab-content.active {
    display: block;
  }
  
  .tab-content h2 {
    margin-bottom: 10px;
    font-size: 20px;
  }
  
  .tab-content ul {
    margin-bottom: 20px;
    list-style: none;
  }
  
  .tab-content li {
    padding: 30px 20px;
  }
  
  /* 申し込みボタン */
  .subscribe-btn {
    background-color: #1a73e8;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  }
  
  .subscribe-btn:hover {
    background-color: #1664c4;
  }

  .subscribe-btn-red {
    /* background-color:rgb(55, 141, 254); */
    background-color:rgb(255, 42, 84);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  }
  
  .subscribe-btn-red:hover {
    /* background-color:rgb(29, 127, 255); */
    background-color:rgb(255, 0, 51);
  }

/* ======== プランカードリストのスタイル ======== */
.plan-list {
    display: flex;
    justify-content: center;
    gap: 20px; /* カード間の余白 */
    list-style: none; /* ulのマーカーを非表示 */
    margin: 0 auto;
    max-width: 1000px; /* レイアウト調整用: 横幅の最大値 */
}

.plan-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 300px;        /* カードの固定幅 */
    padding: 20px;
    text-align: center;  /* コンテンツを中央寄せ */
}

.plan-card-recommended {
  background-color: #FDF2F5;
  border: 4px solid #FC5376; 
  border-radius: 8px;
  width: 300px;        /* カードの固定幅 */
  padding: 20px;
  text-align: center;  /* コンテンツを中央寄せ */
}

/* プラン名 */
.plan-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 価格表示 */
.plan-card .price {
    font-size: 1.5rem;
}

.plan-card-recommended .price {
  font-size: 1.5rem;
}

.plan-card-recommended h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.pre-price {
    font-size: 0.9rem;
    color: #747775;
    text-decoration: line-through;
}

.sum-price {
  font-size: 0.9rem;
  color: #747775;
  padding-top: 10px;
}

.save {
    font-size: 1.1rem;
    color:rgb(20, 154, 60);
}

.pre-price, .save {
    display: inline-block; /* もしくは inline */
    margin-right: 10px;     /* 適度な余白を追加 */
}

.annotation {
    font-size: 0.8rem;
    color: #747775;
    margin-bottom: 20px;
    text-align: center;
}

.val {
  display: inline-block;
  justify-content: center;
  font-size: 0.9rem;
  color: #333333; 
  text-align: left;
  line-height: 1.8; 
  padding: 0 10px; 
  font-weight: 400; 
}

/* アイコンと文字のベースライン揃え用のスタイル追加 */
.val svg {
  vertical-align: middle;
  margin-bottom: 3px;
  margin-right: 5px;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.recommended {
  position: absolute;
  max-width: 200px;
  display: inline;
  margin-top:-90px;
  margin-left: -100px;
}

/* 2列レイアウト（左画像・右テキスト） */
.waiting {
  display: flex;
  flex-direction: row; /* 横並びに変更 */
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  max-width: 800px;
  padding: 20px;
  text-align: left; /* テキストを左揃えに */
  border: 3px solid #ddd;
  border-radius: 8px;
  margin-bottom: 30px;
}

.waiting img {
  max-width: 100px;
  height: auto;
  flex-shrink: 0; /* 画像のサイズを固定 */
}

.waiting p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  text-align: center;
}

// ユーザーの声→カードスライダー
.slider-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  overflow-x: hidden;
  height: auto; /* コンテンツの高さに合わせる */
  min-height: 350px; /* 最小の高さを設定して、カード切替時のジャンプを防止 */
}

.cards {
  display: flex;
  transition: transform 0.3s ease-in-out;
  align-items: center;
  min-height: 300px; /* カードの最小高さを設定 */
}

.card {
  flex: 0 0 60%;
  max-width: 400px;
  min-height: 250px;
  height: auto; /* 内容に応じた高さ */
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  opacity: 0.3;
  transition: opacity 0.3s;
  margin: 0 10px;
  margin-top: 40px;
}

.card.active {
  opacity: 1;
}

.icon {
  width: 60px;
  height: 60px;
  background-color: #007bff;
  border-radius: 50%;
  margin: 0 auto 10px;
  overflow: hidden;
  margin-top: -50px;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  margin-bottom:20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #333;
}

/* Q&Aセクション全体のスタイリング */
.QA {
  width: 100%;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.QA .title {
  margin-bottom: 15px;
}

.QA .sub-title {
  margin-bottom: 20px;
}

/* FAQ項目のコンテナ */
.faq-section {
  padding: 0px 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 550px; /* 幅を制限して中央に配置 */
  margin: 0 auto;
}

/* 各FAQ項目 */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.faq-item:last-child {
  margin-bottom: 0;
}


.faq-question:hover {
  background-color:rgb(235, 235, 235);
}

/* 回答部分 */
.faq-answer {
  padding: 20px;
  background-color: #fff;
  color: #444;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
  padding: 0;
}
/* 質問の前のアイコンを削除し、新しいSVG風の三角形に置き換え */
.faq-question::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;  /* 右向き三角形の形状 */
  border-color: transparent transparent transparent #0957D0; /* 右向き三角形の色 */
  margin-right: 12px;
  transition: transform 0.3s ease;
}

/* 開かれたときは下向き三角形に変更 */
details[open] > summary.faq-question::before {
  content: "";
  transform: rotate(90deg); /* 右向き三角形を90度回転させて下向きにする */
}

/* 質問自体の配置を左寄せに修正 */
.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  background-color:rgb(245, 245, 245);
  padding: 18px 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左寄せに変更 */
  transition: background-color 0.3s;
  text-align: center; 
}

/* 既存のdetails > summaryのafter疑似要素を削除 */
details > summary::after {
  display: none;
}

details[open] > summary::after {
  display: none;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .faq-question {
    font-size: 1rem;
    padding: 15px;
    max-width:100%;
  }
  
  .faq-answer {
    padding: 15px;
    font-size: 0.95rem;
  }

  .faq-section {
    padding: 25px 10px;
    max-width: 400px; /* 幅を100%に */
  }
}

/* モバイル表示では縦並びに戻す */
@media screen and (max-width: 768px) {
  .waiting p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
    .title{
        font-size: 1.4rem;
    }
    .sub-title {
        font-size: 0.9rem;
    }

    .plan-list {
        flex-direction: column;
    }
    .plan-card {
        width: 100%;
    }

    .plan-card-recommended {
      width: 100%;
      margin-top: 50px;
  }

  .tab-contents {
    padding-top: 0px;
  }

  html, body {
    overflow-x: hidden; /* 横スクロールを無効化 */
  }
  
  .slider-container {
    min-height: 300px; /* モバイル表示での最小の高さ */
    touch-action: pan-y; /* 垂直方向のスクロールのみを許可 */
  }
}