/* ==========================================================================
   FAQ Page Styles - Delfino Recruit Website (2026-09-01 Theme)
   100% Strictly Aligned with work/daily/interview hero section standards
   ========================================================================== */

/* ---------- Hero Section (100% Aligned with work-hero / interview-hero) ---------- */
.faq-hero {
  position: relative;
  overflow: hidden;
  background-image: var(--g-hero-band);
  padding: 92px 20px 40px;
  text-align: center;
}

.faq-hero__inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faq-hero__label {
  font-family: var(--f-gothic);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-image: var(--g-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.faq-hero__title {
  font-family: var(--f-mincho);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.faq-hero__title-em {
  font-style: normal;
  border-bottom: 2px solid var(--c-accent-1);
  padding-bottom: 2px;
}

.faq-hero__lead {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.85;
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 721px) {
  .faq-hero {
    padding: 145px 40px 60px;
  }
  .faq-hero__title {
    font-size: 36px;
  }
  .faq-hero__lead {
    font-size: 16px;
  }
}

/* ---------- Decorative Wordmark Customization (FAQ Page) ---------- */
.faq-hero + .wordmark-band {
  margin-block-start: 36px;
}

.faq-hero + .wordmark-band .wordmark-band__text {
  font-size: 50px;
  animation-duration: 40s; /* ゆったりスローな速度 */
}

/* ---------- Main FAQ Container ---------- */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 10vw, 120px);
}

/* ---------- Section Header with Photo (添付画像レイアウト準拠) ---------- */
.faq-category {
  margin-bottom: clamp(48px, 6vw, 72px);
}

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

.faq-category__header {
  text-align: center;
  margin-bottom: 32px;
}

.faq-category__photo-wrapper {
  display: block;
  max-width: 440px;
  margin: 0 auto 24px;
  position: relative;
}

.faq-category__photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: var(--r-card); /* 長方形の角丸カード */
  box-shadow: var(--sh-photo);
  display: block;
}

.faq-category__eyebrow {
  font-family: var(--f-gothic);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
  background-image: var(--g-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.faq-category__title {
  font-family: var(--f-mincho);
  font-size: var(--fs-section-title);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.35;
}

/* ---------- Accordion Card List ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: opacity var(--dur-reveal) var(--ease-elegant), transform var(--dur-reveal) var(--ease-elegant), box-shadow var(--dur-hover) var(--ease-elegant), border-color var(--dur-hover) var(--ease-elegant);
}

.faq-card:nth-child(1) { transition-delay: 0ms; }
.faq-card:nth-child(2) { transition-delay: 150ms; }
.faq-card:nth-child(3) { transition-delay: 300ms; }

.faq-card:hover {
  box-shadow: 0 16px 48px rgb(120 90 80 / 0.1);
  border-color: var(--c-accent-1);
}

/* Q Header Button */
.faq-card__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease;
}

.faq-card__question:focus-visible {
  box-shadow: inset 0 0 0 2px var(--c-accent-1);
}

.faq-card__q-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.faq-card__q-badge,
.faq-card__a-badge {
  font-family: var(--f-mincho);
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  flex-shrink: 0;
  display: inline-block;
  background-image: var(--g-accent); /* Category 01 と完全同一のグラデーションピンク */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-top: 2px;
}

.faq-card__q-text {
  font-family: var(--f-gothic);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.5;
}

/* Plus/Minus Icon Toggle */
.faq-card__toggle {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 18px;
  transition: transform 0.3s var(--ease-elegant), background-color 0.3s ease, color 0.3s ease;
}

.faq-card.is-active .faq-card__toggle {
  transform: rotate(45deg);
  background: var(--c-accent-1);
  color: var(--c-text);
}

/* Answer Body (Accordion Content) */
.faq-card__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-elegant);
}

.faq-card.is-active .faq-card__answer {
  grid-template-rows: 1fr;
}

.faq-card__answer-inner {
  overflow: hidden;
}

.faq-card__answer-body {
  padding: 24px 28px 28px 28px;
  font-family: var(--f-gothic);
  font-size: var(--fs-body);
  line-height: var(--lh-body-loose);
  color: var(--c-text);
  border-top: 1px solid var(--c-hairline);
  margin-top: 4px;
}

.faq-card__a-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.faq-card__a-text {
  flex: 1;
}

.faq-card__answer-body strong {
  font-weight: 700;
}

/* Highlight Box inside Answer */
.faq-highlight-box {
  margin-top: 18px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(234, 197, 196, 0.22) 0%, rgba(255, 234, 167, 0.18) 100%);
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  font-size: var(--fs-body-sm);
  color: var(--c-text);
  line-height: 1.6;
}

.faq-highlight-box__title {
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.faq-highlight-box__title i {
  font-size: 18px;
  color: var(--c-accent-1);
  line-height: 1;
}

/* ---------- Still Have Questions CTA Section (他ページ同一の1024px幅) ---------- */
.faq-still-wrapper {
  max-width: var(--container); /* 1024px */
  margin: 0 auto clamp(80px, 10vw, 120px);
  padding: 0 var(--gutter);
}

.faq-still-cta {
  background: linear-gradient(135deg, rgba(234, 197, 196, 0.2) 0%, rgba(255, 234, 167, 0.15) 100%);
  border-radius: 32px;
  padding: clamp(36px, 5vw, 48px) clamp(24px, 4vw, 48px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

@media (min-width: 768px) {
  .faq-still-cta {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 40px;
  }
}

.faq-still-cta__photo-wrapper {
  width: 100%;
  max-width: 320px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.faq-still-cta__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faq-still-cta__content {
  flex: 1;
}

.faq-still-cta__title {
  font-family: var(--f-mincho);
  font-size: var(--fs-section-title);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
}

.faq-still-cta__body {
  font-family: var(--f-gothic);
  font-size: var(--fs-body);
  color: var(--c-muted);
  line-height: var(--lh-body-loose);
  margin-bottom: 24px;
}

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

@media (min-width: 768px) {
  .faq-still-cta__actions {
    justify-content: flex-start;
  }
}

/* Responsive Overrides */
@media (max-width: 767px) {
  .faq-card__question {
    padding: 20px 20px;
  }
  .faq-card__q-content {
    gap: 12px;
  }
  .faq-card__q-badge {
    font-size: 20px;
    width: 28px;
    height: 28px;
  }
  .faq-card__q-text {
    font-size: 15px;
  }
  .faq-card__answer-body {
    padding: 0 20px 20px 20px;
  }
  .faq-category__photo {
    height: 160px;
  }
}
