/* ============================================
   FAQ Page Styles (よくある質問専用テンプレート)
   - レイアウトは page.css の .page-container / .page-main を再利用
   - 本ファイルは FAQ コンテンツ領域のスタイルだけを担当
   - body クラス: "page-default page-faq" の両方が付与される前提
   ============================================ */

/* ============================================
   ページ見出しは common.css の .page-title* に統一
   ============================================ */

/* ============================================
   FAQ Content Wrapper
   - JS が処理するまで非表示にして、フラッシュを防ぐ
   ============================================ */
.faq-content {
  visibility: hidden;
}

.faq-content.is-ready {
  visibility: visible;
}

/* ============================================
   FAQ List
   ============================================ */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-item {
  background: #fff;
  margin-bottom: clamp(20px, calc(14px + 0.781vw), 30px);
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

/* ============================================
   FAQ Question (h2)
   ============================================ */

/* .faq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
} */

.faq-item__question {
  position: relative;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, calc(11px + 0.625vw), 20px);
  line-height: clamp(28px, calc(20px + 1.042vw), 40px);
  letter-spacing: 0.05em;
  color: #333;
  margin: 0;
  padding: 30px clamp(60px, calc(40px + 2.083vw), 90px) 30px clamp(20px, calc(13px + 1.302vw), 60px);
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
}

.faq-item__question:before {
  content: "Q. ";
}

.faq-item__question:hover {
  opacity: 0.85;
}

.faq-item__question:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

/* ============================================
   FAQ Icon (menu_arrow.svg)
   - 質問文の font-size を継承し、em 単位でサイズを連動
   - 16px / 10px は質問文 PC サイズ (20px) ベース
   ============================================ */
.faq-item__icon {
  position: absolute;
  top: 50%;
  right: clamp(20px, calc(13px + 1.302vw), 60px);
  transform: translateY(-50%) rotate(180deg);
  width: 0.8em;
  height: 0.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.faq-item__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.faq-item.is-open .faq-item__icon {
  transform: translateY(-50%) rotate(0deg);
}

/* ============================================
   FAQ Answer
   ============================================ */
.faq-item__answer {
  display: none;
  position: relative;
  padding: 30px clamp(20px, calc(13px + 1.302vw), 60px) clamp(40px, calc(28px + 1.563vw), 60px);
}

/* 上部の区切り線（左右に padding 分の余白を持たせる） */
.faq-item__answer::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(20px, calc(13px + 1.302vw), 60px);
  right: clamp(20px, calc(13px + 1.302vw), 60px);
  height: 1px;
  background: #d4d4d4;
}

.faq-item.is-open .faq-item__answer {
  display: block;
}

/* --- Answer typography --- */
.faq-item__answer,
.faq-item__answer p,
.faq-item__answer li,
.faq-item__answer span {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: clamp(13px, calc(10px + 0.313vw), 16px);
  line-height: clamp(26px, calc(20px + 0.781vw), 35px);
  letter-spacing: 0.05em;
  color: #333;
}

.faq-item__answer p {
  margin: 0 0 clamp(10px, calc(7px + 0.391vw), 15px);
}

.faq-item__answer p.has-background{
  background-color: var(--color-primary);
  color: #fff;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__answer a {
  color: var(--color-primary);
  text-decoration: underline;
}

.faq-item__answer a:hover {
  opacity: 0.7;
}

.faq-item__answer strong {
  font-weight: 900;
}

/* --- Sub headings inside answer (h3) --- */
.faq-item__answer h3 {
  font-size: clamp(15px, calc(11px + 0.521vw), 18px);
  line-height: clamp(28px, calc(20px + 1.042vw), 40px);
  letter-spacing: 0.05em;
  color: #333;
  margin: clamp(20px, calc(14px + 0.781vw), 30px) 0 clamp(10px, calc(7px + 0.391vw), 15px);
  font-weight: 700;
}

.faq-item__answer h3:first-child {
  margin-top: 0;
}

/* --- Lists inside answer --- */
.faq-item__answer ul {
  list-style: none;
  margin: 0 0 clamp(10px, calc(7px + 0.391vw), 15px);
  padding: 0;
}

.faq-item__answer ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: clamp(6px, calc(4px + 0.26vw), 10px);
}

.faq-item__answer ul li:last-child {
  margin-bottom: 0;
}

.faq-item__answer ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(10px, calc(7px + 0.391vw), 14px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.faq-item__answer ol {
  list-style: decimal;
  margin: 0 0 clamp(10px, calc(7px + 0.391vw), 15px);
  padding-left: 25px;
}

.faq-item__answer ol li {
  margin-bottom: clamp(6px, calc(4px + 0.26vw), 10px);
}

/* --- Note box (blockquote) --- */
.faq-item__answer blockquote {
  background: #b4b4b4;
  padding: clamp(20px, calc(14px + 0.781vw), 30px) clamp(20px, calc(13px + 1.302vw), 40px);
  margin: clamp(15px, calc(10px + 0.521vw), 20px) 0;
  border: 0;
  font-style: normal;
}

.faq-item__answer blockquote p {
  margin: 0 0 clamp(6px, calc(4px + 0.26vw), 10px);
}

.faq-item__answer blockquote p:last-child {
  margin-bottom: 0;
}

.faq-item__answer img{
  width: 100%;
  height: auto;
}

/* ============================================
   Responsive — Tablet (≤ 1199px)
   ============================================ */
@media (max-width: 1199px) {
  .faq-item__question {
    padding: 25px 70px 25px 30px;
  }

  .faq-item__icon {
    right: 30px;
  }

  .faq-item__answer {
    padding: 25px 30px 40px;
  }

  .faq-item__answer::before {
    left: 30px;
    right: 30px;
  }
}

/* ============================================
   Responsive — SP (≤ 767px)
   ============================================ */
@media (max-width: 767px) {
  .faq-item__question {
    font-size: 15px;
    line-height: 26px;
    padding: 20px 50px 20px 20px;
  }

  .faq-item__icon {
    right: 20px;
  }

  .faq-item__answer {
    padding: 20px 20px 25px;
  }

  .faq-item__answer::before {
    left: 20px;
    right: 20px;
  }

  .faq-item__answer h3 {
    font-size: 14px;
    line-height: 24px;
  }

  .faq-item__answer ul li {
    padding-left: 20px;
  }

  .faq-item__answer ul li::before {
    width: 8px;
    height: 8px;
    top: 9px;
  }

  .faq-item__answer blockquote {
    padding: 20px;
  }
}