/* お悩みセクション専用スタイル - リファクタリング済み */
/* style.cssよりも優先度を高くするためにセレクタを強化 */
body #first {
  background: #fff;
  padding: 50px 0;
  margin: 0;
}

body #first .main_worries {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

body #first .common_block {
  width: 100%;
  text-align: center;
}

/* オレンジ色の吹き出しタイトル - 現行版に合わせる */
body #first .sec_hukidashi {
  color: #fff;
  font-size: 24px;
  background: #f8ab00;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

#first .main_worries ul {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  list-style: none;
}

#first .main_worries ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  width: 100%;
}

#first .main_worries ul li img {
  width: 35%;
  max-width: 180px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

#first .main_worries ul li img:hover {
  transform: scale(1.05);
}

body #first .main_worries ul li p {
  width: 60%;
  background: #fff8e1;
  padding: 20px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 18px;
  line-height: 1.7;
  font-weight: normal;
  color: #333;
}

body #first .main_worries ul.pc li:nth-child(odd) p {
  order: 2 !important;
}

body #first .main_worries ul.pc li:nth-child(odd) img {
  order: 1 !important;
}

body #first .main_worries ul.pc li:nth-child(even) p {
  order: 1 !important;
}

body #first .main_worries ul.pc li:nth-child(even) img {
  order: 2 !important;
}

/* 吹き出しの三角形 */
body #first .main_worries ul li:nth-child(odd) p:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 24px;
  height: 24px;
  background: #fff8e1;
  transform: translateY(-50%) rotate(45deg);
  z-index: -1;
  border-radius: 4px;
}

body #first .main_worries ul li:nth-child(even) p:before {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 24px;
  height: 24px;
  background: #fff8e1;
  transform: translateY(-50%) rotate(45deg);
  z-index: -1;
  border-radius: 4px;
}

body #first .main_worries ul li p i {
  color: #f8ab00;
  margin-right: 10px;
  font-size: 18px;
}

body #first .main_worries .conclusion {
  text-align: center;
  margin-top: 30px;
}

body #first .main_worries .conclusion p {
  display: inline-block;
  font-size: 22px;
  font-weight: bold;
  color: #FF6B6B;
  background: #fff8e1;
  padding: 15px 40px;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* worries_item用のスタイル - 結論テキストエリア */
body #first .worries_item {
  justify-content: center;
  font-size: 20px;
  width: 80%;
  margin: 30px auto 0;
  text-align: center;
  font-weight: 600;
  color: #333;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* モバイル向けスタイル - style.cssの@mediaと一致させる */
@media screen and (max-width: 767px) {
  body #first .sec_hukidashi {
    font-size: 20px;
    width: 90%;
    margin: 0 auto 20px;
    text-align: center;
    padding: 10px 20px;
  }
  
  /* PC/SPクラスの表示制御はstyle.cssに定義済み */
  
  body #first .main_worries ul li {
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
  }

  /* 画像ペアは横並び */
  body #first .main_worries ul li.image-pair {
    flex-direction: row;
    justify-content: space-around;
    gap: 10px;
  }

  body #first .main_worries ul li img {
    width: 70%;
    margin-bottom: 15px;
    order: 1;
  }

  /* 画像ペア内の画像は幅を調整 */
  body #first .main_worries ul li.image-pair img {
    width: 48%;
    margin-bottom: 0;
  }
  
  body #first .main_worries ul li p {
    width: 90%;
    order: 2;
    font-size: 16px;
    padding: 15px;
  }
  
  /* モバイルでは吹き出しの三角形を非表示 */
  body #first .main_worries ul li p:before {
    display: none !important;
  }
  
  body #first .main_worries .conclusion p {
    font-size: 18px;
    padding: 12px 20px;
    width: 90%;
  }
  
  body #first .worries_item {
    width: 90%;
    font-size: 16px;
    padding: 15px;
  }
}
