/**
 * FAQ Archive Page Styles
 * よくある質問一覧ページ スマホ用CSS
 */

/* FAQ Container */
.faq {
  width: calc(100% - 40px);
  max-width: 500px;
  margin:0px auto 60px;
  padding-top: 90px;
}

.faq__title {
  font-size: 22px;
  line-height: 2;
  text-align: center;
  font-weight: 400;
  margin-bottom: 30px;
}

.faq__list {
  margin-bottom: 40px;
}

/* FAQ Grid */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FAQ Item */
.faq-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

/* Question */
.faq-item__question {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 16px 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
  background-color: #fafafa;
}

.faq-item__q-label {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-tan);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50%;
}

.faq-item__q-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Toggle Icon */
.faq-item__toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.faq-item.is-open .faq-item__toggle {
  transform: rotate(180deg);
}

.faq-item__icon {
  color: var(--color-accent-tan);
  width: 16px;
  height: 16px;
}

/* Answer */
.faq-item__answer {
  padding: 0 16px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.faq-item.is-open .faq-item__answer {
  margin: 12px 0 12px;
}

.faq-item__a-label {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e5e5;
  color: #666;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50%;
}

.faq-item__a-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  letter-spacing: 0.05em;
}

.faq-item__a-text p {
  margin-bottom: 1em;
}

.faq-item__a-text p:last-child {
  margin-bottom: 0;
}

.faq-item__a-text img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

.faq-item__a-text ul,
.faq-item__a-text ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.faq-item__a-text li {
  margin-bottom: 0.5em;
}

.faq-item__a-text strong {
  font-weight: 600;
}

/* No Posts Message */
.no-posts {
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: #666;
  margin: 40px 0;
}
