@charset "UTF-8";

/* ==========================================================
   よくある質問（ken-maeda.com/faq/）
   色・文字・ボタンなどの共通部分は /contact/css/contact.css を使う
   ========================================================== */

/* ---------- 区分 ---------- */
.faq-category { margin: 40px 0 0; }
.faq-category__title {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--c-accent);
  font-size: 18px;
  line-height: 1.5;
}
.faq-list {
  display: grid;
  gap: 8px;
}

/* ---------- 質問と答え（押すと開く） ---------- */
.faq-item {
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: #fff;
}
.faq-item[open] { border-color: var(--c-accent); }

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 48px 12px 16px;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }

/* 右端の「＋」。開いているときは「−」 */
.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background:
    linear-gradient(var(--c-text), var(--c-text)) center / 14px 2px no-repeat,
    linear-gradient(var(--c-text), var(--c-text)) center / 2px 14px no-repeat;
  content: "";
}
.faq-item[open] summary::after {
  background: linear-gradient(var(--c-text), var(--c-text)) center / 14px 2px no-repeat;
}
/* 下線は最初から透明で引いておき、ホバーで色だけを付ける（線を出し入れすると、ゆっくり変えられないため） */
.faq-item__question {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--hover-duration) var(--hover-easing);
}
.faq-item summary:hover .faq-item__question { text-decoration-color: var(--c-accent); }

@media (prefers-reduced-motion: reduce) {
  .faq-item__question { transition: none; }
}

/* 「Q」「A」の丸 */
.faq-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-accent-tint);
  color: var(--c-text);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.faq-mark--answer {
  border: 1px solid var(--c-line);
  background: #fff;
}
/* 「A」は下に出る部分が無いため、そのままだと丸の中央より上に見える。
   文字だけを 0.5px 下げる（余白で動かすと1px刻みになり、上か下に寄りすぎるため）。
   「Q」は下の尾まで含めて中央に見えるので、そのまま */
.faq-mark__char { transform: translateY(0.5px); }

.faq-item__answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 16px 16px;
}
.faq-item__body {
  min-width: 0;
  padding-top: 4px;
  font-size: 15px;
  line-height: 1.8;
}
.faq-item__body p { margin: 0 0 8px; }
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-item__body ul {
  margin: 0 0 8px;
  padding-left: 1.4em;
}
.faq-item__body li { margin-bottom: 4px; }

/* ---------- 最後の案内 ---------- */
.faq-cta {
  margin: 48px 0 0;
  padding: 24px 20px;
  border-radius: 4px;
  background: #f7f7f7;
  text-align: center;
}
.faq-cta__title {
  margin: 0 0 8px;
  font-size: 18px;
}
.faq-cta p { margin: 0; }
.faq-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- PC（600px以上）：ボタン3つを1列に同じ幅で並べる ---------- */
@media (min-width: 600px) {
  .faq-cta__buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 16px;
    letter-spacing: 0.08em;
  }
}

/* ---------- スマホ（599px以下）：ボタンは横幅いっぱい ---------- */
@media (max-width: 599px) {
  .faq-cta__buttons .btn { width: 100%; }
}
