/* ==========================================
   FAQページ専用スタイル
========================================== */

/* 共通スタイルのインポート */
@import url('common.css');
@import url('header.css');
@import url('footer.css');
.faq-page {
  padding: 80px var(--space-lg) var(--space-3xl);
}

/* FAQアンカーリンク */
.faq-anchors {
  margin-bottom: var(--space-3xl);
}

.faq-anchors ul {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.faq-anchors li {
  flex-shrink: 0;
  width: 30%;
  border-bottom: 1px solid #d2cec4;
  padding: 0 0 10px;
}

.faq-anchors a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.faq-anchors a:hover {
  opacity: 0.7;
}

.faq-anchors a svg {
  flex-shrink: 0;
}

.faq-page-description {
  font-size: var(--font-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

.faq-category {
  margin-bottom: var(--space-3xl);
}

/* FAQアコーディオンスタイル */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  cursor: pointer;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  transition: var(--transition);
  border-bottom: #c19b2a 1px dotted;
}

.faq-item.active .faq-question {
  border-bottom: none;
}

.faq-q {
  line-height: 1;
  font-weight: 400;
  color: #c19b2a;
  font-size: 26px;
  margin-top: -4px;
  cursor: pointer;
  font-family: 'Zen Kaku Gothic New';
}

.faq-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.faq-toggle {
  position: relative;
  width: 22px;
  height: 22px;
  margin: auto 0;
  background-color: #c19b2a;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-item.active .faq-toggle {
  background-color: #fff;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background-color: #fff;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background-color 0.3s ease;
}

.faq-toggle::before {
  top: 50%;
  left: 50%;
  width: 60%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  top: 50%;
  left: 50%;
  width: 1px;
  height: 60%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-toggle::before,
.faq-item.active .faq-toggle::after {
  background-color: #c19b2a;
}

.faq-item.active .faq-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--space-md);
  background-color: #c19b2a;
  border-radius: 0 0 0 var(--radius-sm);
  gap: var(--space-sm);
  align-items: flex-start;
  opacity: 0;
  transition:
    max-height 0.4s ease-out,
    opacity 0.3s ease,
    padding 0.4s ease;
}

.faq-item.active .faq-answer {
  display: flex;
  max-height: 500px;
  opacity: 1;
  padding: var(--space-lg) var(--space-md);
}

.faq-a {
  line-height: 1;
  font-weight: 400;
  color: #fff;
  font-size: 24px;
  font-family: 'Zen Kaku Gothic New';
  min-width: 24px;
}

.faq-answer-text {
  flex: 1;
  color: #fff;
}

.faq-answer-text p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
}

.faq-answer-text .link {
  font-weight: 500;
  text-decoration: underline;
}

.faq-answer-text ol {
  list-style-type: decimal;
  padding-left: 1em;
  font-size: var(--font-sm);
}

.faq-back-button {
  text-align: center;
  margin-top: var(--space-3xl);
}

.btn-back-to-top {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-md);
  font-weight: bold;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-back-to-top:hover {
  background-color: #6d0000;
}

/* FAQ問い合わせセクション */
.faq-contact {
  margin-top: var(--space-3xl);
  text-align: left;
}

.faq-contact .section-title {
  margin-bottom: var(--space-md);
}

.faq-contact p {
  font-size: var(--font-md);
  line-height: 1.8;
}

.faq-contact a {
  color: #c19b2a;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.faq-contact a:hover {
  opacity: 0.7;
}
