/* --- 親アコーディオン（全体を隠す枠）のスタイル --- */
.cmn-faq-wrapper {
  max-width: 800px;
  margin: 40px auto;     /* ページ中央に配置 */
  padding: 0 20px;
  font-family: sans-serif;
}

/* 全体を開閉する大きなボタン */
.cmn-faq-main-trigger {
  background-color: #555; /* 高級感のある黒（物件に合わせて変更可） */
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 4px;
  border: #ddd 1px;
}
.cmn-faq-main-title {
  font-weight: bold;
  font-size: 16px;
}
.cmn-faq-main-icon {
  font-size: 12px;
  transition: transform 0.3s;
}

/* 全体が入るコンテナ（初期状態は高さ0で隠す） */
.cmn-faq-main-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out; /* 全体が滑らかに開閉する */
  background-color: #f9f9f9;
}

/* 親アコーディオンが開いたとき（wrapperに .is-active がついた時）の動き */
.cmn-faq-wrapper.is-active .cmn-faq-main-icon {
  transform: rotate(180deg); /* 矢印をひっくり返す */
}


/* --- 子アコーディオン（個別の設問）のスタイル --- */
.cmn-faq-section {
  padding: 10px 20px 20px 20px;
}
.cmn-faq-item {
  border-bottom: 1px solid #ddd;
}
.cmn-faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
}
.cmn-faq-q {
  font-weight: bold;
  color: #333;
  font-size: 16px;
  padding-right: 20px;
  text-align: left;
  line-height: 1.5; /* ★この行を追記します（文字の高さの1.5倍の行間を確保） */
}
.cmn-faq-icon {
  font-size: 18px;
  color: #666;
  transition: transform 0.3s;
}
.cmn-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
/* --- 回答エリア（div）全体の基本スタイル --- */
.cmn-faq-a {
  padding: 0 0 18px 0;
  color: #555;
  line-height: 1.6;
  font-size: 14px;
  text-align: left;
}

/* ★修正：結論部分のスタイル（画面幅に関わらず、このクラス内はすべて太字） */
.cmn-faq-lead {
  display: block;        /* 自動的に後ろで改行させる */
  font-weight: bold;
  color: #222;           /* 結論をしっかり読ませるため、少し濃い黒に */
  margin-bottom: 8px;    /* 下の詳細文章との間に少し隙間をあける */
}

/* リンク（aタグ）のスタイル */
.cmn-faq-a a {
  display: inline-block;
  margin-top: 12px;
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s;
}
.cmn-faq-a a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.cmn-faq-a ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
  list-style-type: disc;
}
.cmn-faq-a li {
  margin-bottom: 5px;
}

/* 個別アコーディオンが開いたときの動き（＋を×にする） */
.cmn-faq-item.is-open .cmn-faq-icon {
  transform: rotate(45deg);
}