/* =============================================
   Q&A PAGE
   ============================================= */

:root {
  --qa-green:  #2f5d34;
  --qa-dark:   #33332c;
  --qa-bg:     #f8f7f2;
  --qa-beige:  #f2ede4;
  --qa-border: #e8e4da;
  --qa-label:  #9aa890;
}

.qa-main { background: var(--qa-bg); }

/* ------------------------------------------
   HERO
   ------------------------------------------ */
.qa-hero {
  position: relative;
  height: 44vh;
  min-height: 260px;
  background-color: #3a5a2a;
  background-image: linear-gradient(135deg, #2a4a1e 0%, #4a7a38 55%, #3a6030 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qa-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.22) 100%);
}
.qa-hero__body {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.qa-hero__label {
  font-size: 11px;
  letter-spacing: 6px;
  font-weight: 700;
  opacity: .75;
  margin: 0 0 10px;
}
.qa-hero__h1 {
  margin: 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: 3px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.qa-hero__sub {
  margin: 12px 0 0;
  font-size: clamp(12px, 1.4vw, 15px);
  opacity: .82;
  letter-spacing: 1px;
}

/* ------------------------------------------
   カテゴリナビ
   ------------------------------------------ */
.qa-cat-nav {
  background: var(--qa-green);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.qa-cat-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.qa-cat-nav__inner::-webkit-scrollbar { display: none; }
.qa-cat-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 18px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  flex-shrink: 0;
}
.qa-cat-nav__btn:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
}

/* ------------------------------------------
   本文エリア
   ------------------------------------------ */
.qa-body { padding: 64px 0; }
.qa-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ------------------------------------------
   カテゴリセクション
   ------------------------------------------ */
.qa-section {
  margin-bottom: 56px;
  scroll-margin-top: 70px;
}
.qa-section__h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--qa-dark);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--qa-green);
}
.qa-section__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--qa-green);
  color: #fff;
  flex: none;
}

/* ------------------------------------------
   Q&A アイテム（accordion）
   ------------------------------------------ */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qa-item {
  background: #fff;
  border: 1.5px solid var(--qa-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .18s;
}
.qa-item[open] {
  border-color: var(--qa-green);
}

.qa-item__q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--qa-dark);
  line-height: 1.55;
  transition: background .15s;
  user-select: none;
}
.qa-item__q::-webkit-details-marker { display: none; }
.qa-item__q::before {
  content: 'Q';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--qa-green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  flex: none;
}
.qa-item__q::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--qa-label);
  border-bottom: 2px solid var(--qa-label);
  transform: rotate(45deg) translateY(-3px);
  margin-left: auto;
  flex: none;
  transition: transform .22s;
}
.qa-item[open] .qa-item__q::after {
  transform: rotate(-135deg) translateY(-3px);
}
.qa-item__q:hover { background: #f6faf5; }

.qa-item__a {
  padding: 0 20px 20px 62px;
  font-size: 14px;
  line-height: 1.85;
  color: #555;
  border-top: 1px solid var(--qa-border);
  margin-top: -1px;
  padding-top: 16px;
  position: relative;
}
.qa-item__a::before {
  content: 'A';
  position: absolute;
  left: 20px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--qa-beige);
  color: var(--qa-green);
  font-size: 13px;
  font-weight: 900;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

/* ------------------------------------------
   お問い合わせ CTA
   ------------------------------------------ */
.qa-cta {
  margin-top: 64px;
  padding: 40px;
  background: var(--qa-beige);
  border-radius: 16px;
  text-align: center;
}
.qa-cta__text {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px;
}
.qa-cta__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.qa-cta__btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--qa-green);
  color: #fff;
  text-decoration: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(47,93,52,.25);
  transition: transform .2s, box-shadow .2s;
}
.qa-cta__btn-contact:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(47,93,52,.35); }
.qa-cta__btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--qa-green);
  text-decoration: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 18px;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1.5px solid #c6d8c0;
  transition: background .2s, border-color .2s;
}
.qa-cta__btn-tel:hover { background: #eef4ec; border-color: var(--qa-green); }

/* ------------------------------------------
   Responsive
   ------------------------------------------ */
@media (max-width: 768px) {
  .qa-cat-nav { padding: 0 0 0 16px; }
  .qa-body { padding: 40px 0; }
  .qa-inner { padding: 0 18px; }
  .qa-section { scroll-margin-top: 60px; }
  .qa-item__q { font-size: 14px; padding: 15px 16px; }
  .qa-item__a { padding: 14px 16px 16px 56px; }
  .qa-cta { padding: 28px 20px; }
  .qa-cta__btns { flex-direction: column; align-items: stretch; }
  .qa-cta__btn-contact,
  .qa-cta__btn-tel { justify-content: center; }
}
@media (max-width: 480px) {
  .qa-item__q::before { width: 24px; height: 24px; font-size: 11px; }
  .qa-item__a { padding-left: 48px; }
  .qa-item__a::before { width: 24px; height: 24px; font-size: 11px; }
}
