/* ============================================
   qa.css - Q&Aページ専用スタイル
   ============================================ */

@font-face {
  font-family: 'Bernard MT Condensed';
  src: url('../fonts/bernard-mt-condensed.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   HERO
   ============================================ */

#qa-main .page-hero__img {
  object-position: center 95%;
}

#qa-main .page-hero__overlay {
  background-color: #564123;
  mix-blend-mode: multiply;
  opacity: 0.5;
}


.qa-page-section {
  background-color: var(--cream-light);
  padding: 6rem var(--side-padding-pc) 8rem;
}

.qa-page-section__inner {
  max-width: 860px;
  margin: 0 auto;
}


/* ============================================
   案内バナー
   ============================================ */

.qa-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--sage);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 5rem;
}

/* ノイズテクスチャ */
.qa-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.945 0 0 0 0 0.925 0 0 0 0 0.843 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}

/* 水彩テクスチャ */
.qa-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/suisai.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.qa-intro__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-intro__icon img {
  width: 40px;
  height: auto;
  display: block;
}

.qa-intro__text {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--brown-dark);
}


/* ============================================
   質問カテゴリー見出し
   ============================================ */

.qa-category {
  margin-bottom: 4rem;
}

.qa-category:last-child {
  margin-bottom: 0;
}

.qa-category__heading {
  font-family: 'Bernard MT Condensed', var(--font-nav);
  font-size: 2.25rem;
  letter-spacing: 0.05em;
  color: var(--brown-warm);
  margin-bottom: 0.5rem;
}

.qa-category__sub {
  margin-bottom: 0;
}

.qa-category .qa-list {
  margin-top: 1.5rem;
}


/* ============================================
   アコーディオン（このページ内は緑系の開閉色に）
   ============================================ */

.qa-category .qa-answer-inner {
  background-color: rgba(182, 201, 160, 0.3);
}

.qa-answer a {
  color: var(--brown-warm);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) {
  .qa-answer a:hover {
    opacity: 0.7;
  }
}

.qa-answer a:active {
  opacity: 0.7;
}


/* ============================================
   RESPONSIVE — mobile (≤ 768px)
   ============================================ */

@media (max-width: 768px) {
  .qa-page-section {
    padding: 4rem var(--side-padding-sp) 6rem;
  }

  .qa-intro {
    padding: 1.25rem 1.5rem;
    margin-bottom: 3rem;
  }

  .qa-category {
    margin-bottom: 3rem;
  }
}
