/* ==============================================
   アコーディオン（履歴・共通）
=============================================== */
details.history-accordion {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  margin: 0;
  overflow: hidden;
}

summary.history-summary {
  display: block;
  position: relative;
  padding: 14px 45px 14px 20px;
  font-weight: bold;
  font-size: 15px;
  color: #333;
  background-color: #F7F7F7;
  cursor: pointer;
  list-style: none; /* デフォルトの三角アイコンを非表示 */
  user-select: none;
  transition: background-color 0.2s ease;
}

/* Safari向けの三角アイコン非表示 */
summary.history-summary::-webkit-details-marker {
  display: none;
}

summary.history-summary:hover {
  background-color: #eee;
}

/* 右側の開閉アイコン（＋マーク） */
summary.history-summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 300;
  color: #666;
  transition: transform 0.3s ease;
}

/* 開いた状態のアイコン（−に変化） */
details[open] summary.history-summary::after {
  content: "−";
}

/* 開いた中身の余白調整 */
details.history-accordion > *:not(summary) {
  padding: 15px 20px;
}

/* ==============================================
   お悩みボックス
=============================================== */
.trouble-box {
  position: relative;
  background: #FFFAFA;
  border: 2px solid #ECD8D8;
  border-radius: 12px;
  padding: 35px 25px 25px;
  margin: 40px auto 30px;
  max-width: 650px;
  box-shadow: 0 4px 15px rgba(210, 160, 160, 0.08);
}

.trouble-box-title {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: #D48383;
  color: #FFFFFF;
  font-size: 25px;
  font-weight: bold;
  padding: 6px 24px;
  border-radius: 30px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(212, 131, 131, 0.3);
}

.trouble-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
}

.trouble-list li {
  position: relative;
  font-size: 20px;
  line-height: 1.7;
  color: #444444;
  padding: 10px 0 10px 36px;
  border-bottom: 1px dashed #E8D0D0;
}

.trouble-list li:last-child {
  border-bottom: none;
}

/* チェックマークアイコン（SVG） */
.trouble-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 20px;
  height: 20px;
  background-color: #D48383;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
}

.trouble-list li strong {
  color: #C45B5B;
}

.trouble-foot {
  font-size: 14px;
  font-weight: bold;
  color: #555;
  text-align: center;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 12px;
  margin: 0;
  border: 1px solid #EBDADA;
}

/* ==============================================
   原因ブロック・アコーディオンボタン
=============================================== */
.gummy-cause-block {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.gummy-cause-block:last-child {
  border-bottom: none;
}

.treatment-more-btn {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 25px auto 10px;
  padding: 14px 20px;
  background: #F7FBFB;
  border: 2px solid #008899;
  border-radius: 30px;
  color: #008899 !important;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 2px 6px rgba(0, 136, 153, 0.1);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.treatment-more-btn::-webkit-details-marker {
  display: none; /* Safari用 */
}

.treatment-more-btn:hover {
  background: #008899;
  color: #FFFFFF !important;
}

.treatment-more-btn::after {
  content: ' ▼';
  font-size: 12px;
  margin-left: 8px;
  color: inherit;
}

/* 開いた状態（details[open]） */
details[open] .treatment-more-btn {
  background: #EEF8F8;
  border: 2px solid #008899;
  color: #008899 !important;
  margin-bottom: 25px;
}

details[open] .treatment-more-btn:hover {
  background: #008899;
  color: #FFFFFF !important;
}

details[open] .treatment-more-btn::after {
  content: ' ▲';
}

.treatment-detail-content {
  padding-top: 15px;
}

/* ==============================================
   Q&Aエリア
=============================================== */
.qa-area h2 {
  letter-spacing: 0.1em;
  margin-bottom: 60px;
  color: #413d3c;
    line-height: 1.6;
    margin: 8rem 0 4rem;
    padding: .4em 1em;
}
.qa-area h2 span {
  display: block;
  letter-spacing: 0.01rem;
}

.qa-area h2 strong {
  font-size: 2rem;
  font-weight: 600;
}

.qa-area .qa-list {
  margin-bottom: 5rem;
}

.qa-area .qa-list li {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 1.6rem 0;
  box-shadow: 2px 2px 4px #CCC;
  border: #CCC 1px solid;
  background: #FFF;
}

.qa-area .qa-list li + li {
  margin-top: 2rem;
}

.qa-area .qa-list li .q-text {
  position: relative;
  padding-left: 4rem;
  font-weight: bold;
  font-size: 19px;
}

.qa-area .qa-list li .a-text {
  position: relative;
  padding-left: 4rem;
  font-size: 16px;
  margin-bottom: 0;
}

.qa-area .qa-list li .q-text::before {
  content: "Q" !important;
  width: 3rem !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  background: #0B0B0D !important;
  border-radius: 50% !important;
  color: #FFF !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
}

.qa-area .qa-list li .a-text::before {
  content: "A" !important;
  width: 3rem !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  background: #8c7d3a !important;
  border-radius: 50% !important;
  color: #FFF !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

