.troubles {
  background: linear-gradient(
    to bottom,
    #FFF1E5 0%,
    #FFF1E5 30%,
    rgba(255, 241, 229, 0) 100%
  );
  padding-top: 50px;
}

.troubles-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .troubles-inner {
    padding: 0 10px;
  }
}

/* ===== troubles-problems 全体 ===== */
.troubles-problems{
  position: relative;
  background-image: url("../images/troubles-woman-01.svg");
  background-repeat: no-repeat;
  background-position: right center; /* PC：右寄せ、縦中央 */
  background-size: 200px auto;
  padding: 36px 24px; /* 仮の内側余白、後で調整可 */
  box-sizing: border-box;
}

/* ===== 見出し ===== */
.troubles-title{
  font-family: "Yu Mincho", "游明朝", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 1.78rem; /* 32px相当 (32/18 ≒ 1.78) */
  color: var(--color-brown);
  margin: 0 0 50px 0; 
  line-height: 1.2;
}

/* ===== リスト（PCは2カラム×3行、SPは1カラム） ===== */
.troubles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr; /* PC: 2カラム */
  grid-auto-rows: min-content;
  gap: 12px 12px; /* 行間・列間を狭く */
  justify-items: start; /* 左寄せ */
  justify-content: start;
  padding-right: 180px;
}


/* リスト項目 */
.troubles-list li{
  font-family: "Yu Gothic", "游ゴシック", 'Noto Sans JP', sans-serif;
  font-size: 1rem; /* 18px相当 */
  color: var(--color-gray);
  line-height: 1.6;
  position: relative;
  padding-left: 36px; /* チェックアイコン分の余白 */
  margin: 6px 0; /* 仮の上下マージン */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 表示時にクラスを付与してアニメーション */
.troubles-list li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* チェックアイコン（疑似要素） */
.troubles-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.39rem;  /* 25px相当 (25/18 ≒ 1.39) */
  height: 1.39rem;
  background-image: url("../images/troubles-check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

/* ===== スマホ調整（<=768px） ===== */
@media (max-width: 768px){
    
  .troubles {
    padding-top: 0;
  }

  .troubles-problems{
    background-position: right 10px;   /* SP：右寄せ上寄せ */
    background-size: 100px auto;      /* 少し小さくして調整 */
    padding: 55px 10px; /* スマホは左右パディング狭め */
  }

  .troubles-title{
    font-size: 1.44rem; /* 調整例：26px相当 (26/18 ≒ 1.44)  ※必要なら変更可 */
    margin-bottom: 30px;
    line-height: 1.6;
  }

  .troubles-list{
    grid-template-columns: 1fr; /* SP: 1カラム */
    gap: 10px 0;
    padding-right: 0;
  }

  .troubles-list li{
    padding-left: 34px; /* アイコン分の余白（微調整） */
    font-size: 1rem; /* 18px（そのまま） */
    margin: 0;
  }

  .troubles-list li::before{
    width: 1.28rem;  /* 23px相当 (23/18 ≒ 1.28) */
    height: 1.28rem;
  }
}

/* ===== PC向け微調整（必要なら） ===== */
@media (min-width: 769px){
  .troubles-problems{
    padding: 48px 36px; /* PCは余白を広めに */
  }
  .troubles-list li{ padding-left: 40px; } /* 大きめアイコンスペース */
  .troubles-list li::before{ width: 1.39rem; height: 1.39rem; }
}

/* ===== troubles-solution 全体 ===== */
.troubles-solution {
  position: relative;
  background-image: url("../images/troubles-woman-02.svg");
  background-repeat: no-repeat;
  background-position: left center; /* 左寄せ、縦中央 */
  background-size: 200px auto;      /* 横幅200px、縦は自動 */
  padding: 36px 0 36px 240px;               /* 仮の内側余白、後で調整可能 */
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 表示クラス */
.troubles-solution.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 見出し ===== */
.troubles-subtitle {
  font-family: "Yu Mincho", "游明朝", "Noto Serif JP", serif;
  font-weight: 600;                  /* SemiBold相当 */
  font-size: 1.78rem;                /* 32px相当 (32/18 ≒ 1.78) */
  color: var(--color-brown, #632600);
  margin: 60px 0 50px 0;                /* 仮のマージン */
  line-height: 1.;
}

/* ===== 文章 ===== */
.troubles-text {
  font-family: "Yu Gothic", "游ゴシック", "Noto Sans JP", sans-serif;
  font-size: 1rem;                   /* 18px相当 */
  color: var(--color-gray, #777777);
  line-height: 1.6;
}

/* 強調部分（pink + bold） */
.troubles-text span {
  color: var(--color-pink, #CC6969);
  font-weight: 700;
}

/* ===== SP調整（<=768px） ===== */
@media (max-width: 768px) {

  .troubles-solution {
    background-position: right 10px top;  /* SPは右上寄せ */
    background-size: 100px auto;          /* SPは少し小さく */
    padding: 20px 10px 40px;
  }

  .troubles-subtitle {
      font-size: 1.44rem;
      margin: 10px 5px 30px;      
    }

  .troubles-text {
    font-size: 1rem; 
  }
}
