@charset "UTF-8";

header {
  background: #F5F5F1;
}

section {
  padding: 0;
  padding-bottom: 5em;
  margin-bottom: 2em;
}

h2.second_h2 {
  font-size: 4.4vw;
  line-height: 1.2;
  width: 100%;
  padding: 0 0 1vw;
  background: #F5F5F1;
  text-align: center;
  color: #D49090;
}
h2.second_h2 span {
  display: block;
  margin: 0 auto 2vw;
}
h2.second_h2 span img {
  display: block;
  margin: 0 auto;
}
h2.second_h2 span + span {
  background: url(../img/h2_bd.png) no-repeat bottom center;
  padding: 0 0 2vw;
}

/* SPレイアウト */
@media screen and (max-width: 768px) {
  h2.second_h2 {
    font-size: 24px;
    padding: 0 0 10px;
  }
  h2.second_h2 span {
    margin: 0 auto 10px;
  }
  h2.second_h2 span img {
    max-width: 120px;
    height: auto;
  }
  h2.second_h2 span + span {
    padding: 0 0 10px;
    background-size: 60px auto;
  }
}

/* ==========================================================================
   FAQ アコーディオン (WordPress 標準 Details ブロック装飾)
   ========================================================================== */
.faq-content {
  margin: 4vw auto;
}

/* details要素全体の枠線とデザイン */
.faq-content .wp-block-details {
  border: 1px solid #EAEAE2;
  border-radius: 4px;
  margin-bottom: 24px;
  background: #FFF;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(63, 56, 53, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-content .wp-block-details:hover {
  border-color: #D49090;
  box-shadow: 0 4px 12px rgba(212, 144, 144, 0.08);
}

/* 質問エリア (summary) */
.faq-content .wp-block-details summary {
  padding: 24px 50px 24px 60px;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  position: relative;
  list-style: none; /* デフォルトの三角形矢印を消す */
  user-select: none;
  background-color: #FDFBFA;
  color: #343426;
  transition: background-color 0.3s ease;
}

/* Safari 用の三角形矢印消去 */
.faq-content .wp-block-details summary::-webkit-details-marker {
  display: none;
}

/* Qアイコンの追加 */
.faq-content .wp-block-details summary::before {
  content: "Q";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "游明朝体", "Yu Mincho", serif;
  font-size: 24px;
  font-weight: bold;
  color: #D49090;
}

/* 右端の開閉（プラス）マーク */
.faq-content .wp-block-details summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: #9A9A8B;
  transition: transform 0.3s ease;
}

/* 開いている状態 (open) のスタイル */
.faq-content .wp-block-details[open] summary {
  background-color: #FFF;
}

/* 開いている時はマイナスマークに変更 */
.faq-content .wp-block-details[open] summary::after {
  content: "−";
}

/* 回答エリアのコンテナ (.wp-block-details__content) */
.faq-content .wp-block-details__content {
  padding: 24px 40px 24px 60px;
  border-top: 1px solid #F2F2EC;
  background: #FFF;
  position: relative;
}

/* Aアイコンの追加 */
.faq-content .wp-block-details__content::before {
  content: "A";
  position: absolute;
  left: 24px;
  top: 24px;
  font-family: "游明朝体", "Yu Mincho", serif;
  font-size: 24px;
  font-weight: bold;
  color: #9A9A8B;
}

.faq-content .wp-block-details__content p {
  margin: 0 0 1em;
  line-height: 1.8;
  font-size: 15px;
  color: #555545;
}

.faq-content .wp-block-details__content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   レスポンシブ (スマホ)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .faq-content {
    margin: 20px auto;
  }

  .faq-content .wp-block-details {
    margin-bottom: 16px;
  }

  /* 質問エリア (summary) の余白調整 */
  .faq-content .wp-block-details summary {
    padding: 16px 40px 16px 45px;
    font-size: 14px;
  }

  .faq-content .wp-block-details summary::before {
    left: 16px;
    font-size: 20px;
  }

  .faq-content .wp-block-details summary::after {
    right: 16px;
    font-size: 18px;
  }

  /* 回答エリアの余白調整 */
  .faq-content .wp-block-details__content {
    padding: 16px 20px 16px 45px;
  }

  .faq-content .wp-block-details__content::before {
    left: 16px;
    top: 16px;
    font-size: 20px;
  }

  .faq-content .wp-block-details__content p {
    font-size: 13px;
  }
}
