/* ============================================================
 * FAQ詳細ページ専用スタイル
 *
 * /website-production/faq/ で適用。
 * アコーディオン本体（.atb-faq-list / .atb-faq-item / .atb-faq-item__*）の
 * スタイルは page-website-production.css の流用。
 * ここでは ヒーロー / 目次 / CTA / scroll-margin など本ページ固有のみ定義。
 * ============================================================ */

/* 料金ページの .production-page と同じ全幅技法。
 * 親 main の max-width を破って画面端まで背景色を伸ばし、
 * 内側の各セクションは .__inner で max-width 中央寄せに戻す。 */
.atb-faq-page {
  background: #f7f6e8;
  color: #333;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ------------------------------------------------------------
 * ヒーロー
 * ------------------------------------------------------------ */

.atb-faq-hero {
  background: #3f3b00;
  color: #ededdc;
  padding: 96px 24px 80px;
}

.atb-faq-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.atb-faq-hero__label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin: 0 0 16px;
  color: rgba(237, 237, 220, 0.6);
  text-transform: uppercase;
}

.atb-faq-hero__title {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
  line-height: 1.3;
}

.atb-faq-hero__lead {
  font-size: 0.95rem;
  line-height: 1.95;
  color: rgba(237, 237, 220, 0.85);
  margin: 0;
}

@media (max-width: 768px) {
  .atb-faq-hero {
    padding: 80px 20px 64px;
  }
  .atb-faq-hero__lead {
    font-size: 0.88rem;
    text-align: left;
  }
  .atb-faq-hero__lead br {
    display: none;
  }
}

/* ------------------------------------------------------------
 * 目次
 * ------------------------------------------------------------ */

.atb-faq-toc {
  padding: 48px 24px 8px;
}

.atb-faq-toc__inner {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e0dccc;
  padding: 24px 28px;
}

.atb-faq-toc__details > .atb-faq-toc__list {
  margin-top: 16px;
}

.atb-faq-toc__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #3f3b00;
  user-select: none;
}

/* details::marker / Webkit triangle 非表示 */
.atb-faq-toc__summary::-webkit-details-marker {
  display: none;
}

.atb-faq-toc__summary-label {
  font-size: 0.95rem;
}

.atb-faq-toc__summary-icon {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.atb-faq-toc__details[open] .atb-faq-toc__summary-icon {
  transform: rotate(180deg);
}

.atb-faq-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}

.atb-faq-toc__item {
  border-bottom: 1px dashed #e8e3cd;
}

.atb-faq-toc__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.55;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.atb-faq-toc__link:hover {
  color: #c45c3a;
}

.atb-faq-toc__num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #c45c3a;
  flex-shrink: 0;
  width: 22px;
}

.atb-faq-toc__text {
  flex: 1;
}

@media (max-width: 768px) {
  .atb-faq-toc {
    padding: 32px 20px 0;
  }
  .atb-faq-toc__inner {
    padding: 20px 22px;
  }
  .atb-faq-toc__list {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ------------------------------------------------------------
 * アコーディオンコンテンツ
 *
 * 本体の .atb-faq-list / .atb-faq-item / .atb-faq-item__* は
 * page-website-production.css のクラスを流用するため、ここでは
 * ラッパーのみ定義し、scroll-margin-top で固定ヘッダー回避。
 * ------------------------------------------------------------ */

.atb-faq-content {
  padding: 32px 24px 64px;
}

.atb-faq-content__inner {
  max-width: 880px;
  margin: 0 auto;
}

.atb-faq-page .atb-faq-list {
  /* tinted 背景セクション内のスタイル流用が page-website-production.css 側にあるため、
   * 本ページでは direct な配置でも視認性を確保するために少しだけ調整する */
  margin-top: 0;
}

.atb-faq-page .atb-faq-item {
  scroll-margin-top: 96px; /* 固定ヘッダー高さ + 余白 */
  border-bottom: 1px solid #d8d3bd;
}

@media (max-width: 768px) {
  .atb-faq-content {
    padding: 24px 20px 48px;
  }
}

/* ------------------------------------------------------------
 * CTA
 * ------------------------------------------------------------ */

.atb-faq-cta {
  background: #fff;
  padding: 64px 24px 80px;
  border-top: 1px solid #e0dccc;
}

.atb-faq-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.atb-faq-cta__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 28px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.atb-faq-cta__link--secondary {
  background: transparent;
  color: #3f3b00;
  border: 1px solid #3f3b00;
}

.atb-faq-cta__link--secondary:hover {
  background: #3f3b00;
  color: #ededdc;
}

.atb-faq-cta__link--primary {
  background: #c45c3a;
  color: #fff;
}

.atb-faq-cta__link--primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.atb-faq-cta__link-arrow {
  font-family: 'Outfit', sans-serif;
  transition: transform 0.2s ease;
}

.atb-faq-cta__link:hover .atb-faq-cta__link-arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .atb-faq-cta__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .atb-faq-cta__link {
    padding: 18px 22px;
  }
}
