/* =============================================================================
 * FAQ — ページ固有スタイル (faq.css)
 * ============================================================================= */


.faq-section {
  padding-top: 3rem;
  background-color: #fff;
}

.faq-container {
  width: 100%;
  max-width: 56rem;
  /* max-w-4xl */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── ページタイトル（装飾ライン付き） ────────────────────────────────────── */

.faq-title-wrap {
  margin-bottom: 45px;
  text-align: center;
}

.faq-title__eyebrow {
  color: var(--color-brand);
  font-weight: 700;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  letter-spacing: 0.2em;
}

.faq-title {
  position: relative;
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
}

/* 装飾ライン（外側のうっすら赤） */
.faq-title__bar-outer {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 3px;
}

/* 装飾ライン（中央の赤い実線） */
.faq-title__bar-inner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 100%;
  background-color: var(--color-brand);
}

/* ── 本文（リード文） ────────────────────────────────────────────────────── */

.faq-intro {
  color: #000000;
  font-family: var(--font-serif);
  line-height: 25px;
  text-align: left;
  max-width: 48rem;
  /* max-w-3xl */
  margin: 0 auto 55px;
  font-size: 18px;
}

.faq-intro p+p {
  margin-top: 1.5rem;
}

/* ── カテゴリタブ ─────────────────────────────────────────────────────────── */

.faq-tabs {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  margin: 0 auto 5rem;
  width: 100%;
  max-width: 64rem;
  /* max-w-5xl */
}

/* タブ（非アクティブ） */
.faq-tab {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid #333;
  background-color: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 300ms;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

/* タブ（ホバー または アクティブ） */
.faq-tab:hover,
.faq-tab.is-active {
  background-color: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* タブ内のアイコンボックス */
.faq-tab__icon-wrap {
  width: 3.5rem;
  height: 2.5rem;
  background-color: transparent;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-tab__icon-wrap img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.faq-tab .icon-white {
  display: none;
}

.faq-tab:hover .icon-default,
.faq-tab.is-active .icon-default {
  display: none;
}

.faq-tab:hover .icon-white,
.faq-tab.is-active .icon-white {
  display: block;
}

.faq-tab__label {
  font-weight: 700;
  font-size: 18px;
  font-family: var(--font-serif);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .faq-section {
    padding-top: 2.5rem;
  }

  .faq-tabs {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
  }

  .faq-tab {
    flex: 0 0 calc(50% - 5px);
    padding: 12px 5px;
    gap: 8px;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
  }

  .faq-tab__icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
  }

  .faq-tab__icon-wrap img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .faq-tab__label {
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .faq-container {
    padding: 0 2.5rem;
  }

  .faq-title {
    font-size: 42px;
  }

  .faq-intro {
    font-size: 16px;
  }
}

/* =============================================================================