/* ===========================
   FAQ Page Styles
   =========================== */

:root {
  --fq-navy:      #2a6644;  /* Moderate dark green */
  --fq-navy-dark: #1a4830;  /* Deep green */
  --fq-blue:      #52a96e;  /* Fresh vibrant green */
  --fq-accent:    #52a96e;  /* Fresh green accent */
  --fq-bg-light:  #eaefea;  /* Very subtle mint bg */
  --fq-white:     #FFFFFF;
  --fq-text:      #2e3d2e;  /* Body text */
  --fq-gray:      #5a6e5c;  /* Muted green-gray text */
}

.fq-main {
  padding-top: 0;
}

/* ===========================
   ページヘッダー
   =========================== */

.fq-page-header {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.fq-page-header::before {
  content: 'FAQ';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 160px;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.fq-page-header__bg {
  position: absolute;
  inset: 0;
  background: var(--fq-navy-dark);
}

.fq-page-header__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* 画像なしのフォールバック */
.fq-page-header__bg img[src=""] {
  display: none;
}

.fq-page-header__bg:has(img[src=""]) {
  background: linear-gradient(135deg, #1a4830 0%, #2a6644 50%, #52a96e 100%);
}

.fq-page-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 72, 48, 0.80) 0%,
    rgba(26, 72, 48, 0.55) 100%
  );
  z-index: 1;
}

.fq-page-header__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 60px 60px;
  color: var(--fq-white);
}

.fq-page-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.fq-page-header__breadcrumb a {
  color: var(--fq-white);
  text-decoration: none;
}

.fq-page-header__breadcrumb a:hover {
  text-decoration: underline;
}

.fq-page-header__sub {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 10px;
}

.fq-page-header__title {
  font-family: "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS PMincho", "Noto Serif JP", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.fq-page-header__desc {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.9;
  margin: 0;
}

/* ===========================
   イントロセクション
   =========================== */

.fq-intro {
  background: var(--fq-white);
  padding: 64px 0;
}

.fq-intro__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}

.fq-intro__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fq-blue);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.fq-intro__label::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: var(--fq-blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.fq-intro__title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--fq-navy);
  line-height: 1.5;
  margin: 0 0 20px;
}

.fq-intro__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--fq-gray);
  margin: 0;
}

/* カテゴリボタン群 */
.fq-intro__categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fq-intro__cat-btn {
  display: block;
  background: var(--fq-navy);
  color: var(--fq-white);
  text-align: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.fq-intro__cat-btn:hover {
  background: var(--fq-blue);
  transform: translateY(-2px);
}

/* ===========================
   カテゴリバナー
   =========================== */

.fq-category-banner {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.fq-category-banner__bg {
  position: absolute;
  inset: 0;
  background: var(--fq-navy-dark);
}

.fq-category-banner__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.fq-category-banner__bg img[src=""] {
  display: none;
}

.fq-category-banner__bg:has(img[src=""]) {
  background: linear-gradient(135deg, #1a4830 0%, #2a6644 100%);
}

.fq-category-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 102, 68, 0.60);
}

/* 円形デコレーション */
.fq-category-banner::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border: 3px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  z-index: 1;
}

.fq-category-banner::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  z-index: 1;
}

.fq-category-banner__text,
.fq-category-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--fq-white);
}

.fq-category-banner__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.fq-category-banner__desc {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

/* ===========================
   アコーディオンセクション
   =========================== */

.fq-accordion-section {
  background: var(--fq-bg-light);
  padding: 48px 0 56px;
}

.fq-accordion-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  align-items: start;
}

/* ===========================
   FAQ アイテム（details/summary）
   =========================== */

.fq-col {
  display: flex;
  flex-direction: column;
}

.fq-item {
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.fq-item__q {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: var(--fq-navy);
  border: 1px solid #d0d8d0;
  border-left: 4px solid var(--fq-navy);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.fq-item__q::-webkit-details-marker {
  display: none;
}

.fq-item__q::marker {
  display: none;
}

/* 右側の▼矢印 */
.fq-item__q::after {
  content: '▼';
  font-size: 10px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.fq-item[open] > .fq-item__q {
  background: var(--fq-navy);
  color: var(--fq-white);
  border-color: var(--fq-navy);
}

.fq-item[open] > .fq-item__q::after {
  transform: rotate(180deg);
}

.fq-item__q:hover {
  background: #eaefea;
  color: var(--fq-navy);
}

/* Q アイコン */
.fq-item__q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--fq-navy);
  color: var(--fq-white);
  font-size: 14px;
  font-weight: 900;
  border-radius: 4px;
  flex-shrink: 0;
  flex-shrink: 0;
}

.fq-item[open] > .fq-item__q .fq-item__q-icon {
  background: var(--fq-white);
  color: var(--fq-navy);
}

/* Aエリア */
.fq-item__a {
  background: var(--fq-white);
  padding: 18px 20px 18px 62px;
  border-left: 4px solid var(--fq-accent);
  animation: fqSlideDown 0.3s ease;
}

@keyframes fqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fq-item__a p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--fq-text);
  margin: 0;
}

/* ===========================
   関連サービスセクション
   =========================== */

.fq-services {
  background: var(--fq-white);
  padding: 72px 0;
}

.fq-services__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.fq-services__label {
  font-size: 13px;
  color: var(--fq-blue);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.fq-services__title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--fq-navy);
  margin: 0 0 48px;
}

.fq-services__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.fq-service-card {
  background: var(--fq-bg-light);
  border-radius: 8px;
  padding: 28px 16px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fq-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 92, 58, 0.15);
}

.fq-service-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--fq-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fq-service-card__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.fq-service-card__icon img[src=""] {
  display: none;
}

/* アイコン画像がない場合の番号表示 */
.fq-service-card:nth-child(1) .fq-service-card__icon::after { content: '①'; }
.fq-service-card:nth-child(2) .fq-service-card__icon::after { content: '②'; }
.fq-service-card:nth-child(3) .fq-service-card__icon::after { content: '③'; }
.fq-service-card:nth-child(4) .fq-service-card__icon::after { content: '④'; }
.fq-service-card:nth-child(5) .fq-service-card__icon::after { content: '⑤'; }

.fq-service-card__icon:has(img[src=""]) {
  color: var(--fq-white);
  font-size: 18px;
  font-weight: 700;
}

.fq-service-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--fq-navy);
  margin: 0 0 12px;
}

.fq-service-card__text {
  font-size: 12px;
  line-height: 1.7;
  color: var(--fq-gray);
  margin: 0;
  text-align: left;
}

/* ===========================
   CTAセクション
   =========================== */

.fq-cta {
  background: var(--fq-navy-dark);
  border-top: 4px solid var(--fq-accent);
  padding: 72px 24px;
  text-align: center;
}

.fq-cta__inner {
  max-width: 700px;
  margin: 0 auto;
}

.fq-cta__title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--fq-white);
  line-height: 1.5;
  margin: 0 0 16px;
}

.fq-cta__text {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
}

.fq-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.fq-cta__btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fq-cta__btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.fq-cta__btn--primary {
  background: var(--fq-accent);
  color: var(--fq-white);
}

.fq-cta__btn--tel {
  background: var(--fq-white);
  color: var(--fq-navy);
}

/* ===========================
   レスポンシブ
   =========================== */

@media (max-width: 900px) {
  .fq-intro__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fq-intro__categories {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .fq-intro__cat-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 120px;
  }

  .fq-accordion-section__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fq-services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .fq-page-header {
    min-height: 280px;
  }

  .fq-page-header__content {
    padding: 40px 20px;
    max-width: 100%;
  }

  .fq-page-header__content {
    padding: 0 20px;
  }

  .fq-intro {
    padding: 40px 0;
  }

  .fq-intro__inner {
    padding: 0 16px;
  }

  .fq-intro__cat-btn {
    flex: 1 1 100%;
  }

  .fq-accordion-section {
    padding: 32px 0 40px;
  }

  .fq-accordion-section__inner {
    padding: 0 16px;
  }

  .fq-category-banner {
    height: 160px;
  }

  .fq-category-banner__title {
    font-size: 1.2rem;
  }

  .fq-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fq-service-card:last-child {
    grid-column: 1 / -1;
  }

  .fq-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .fq-cta__btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}
