/* よくある質問 ページ専用のスタイル（common.css・amenity.css の後に読む）
   ページ本体は scripts/build-faq.py が content/faq.md から作る */

.faq {
  width: 100%;
  max-width: 880px;
  padding: 20px 30px 100px;
  align-items: stretch;
  gap: 56px;
}

/* カテゴリへのジャンプ */
.faq-nav {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}
.faq-nav__link {
  flex-direction: row;
  padding: 9px 16px;
  border: 1px solid #d5dde0;
  border-radius: 999px;
  color: #222222;
  font-family: var(--font-sans-jp);
  font-size: 14px;
  line-height: 1.4;
}
.faq-nav__link:hover { border-color: #004f66; color: #004f66; }

/* カテゴリ */
.faq-cat {
  align-items: stretch;
  scroll-margin-top: 100px;
}
.faq-cat__title {
  justify-content: flex-start;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid #004f66;
  color: #222222;
  font-family: var(--font-serif-jp);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

/* 1問 */
.faq-item {
  display: block;
  width: 100%;
  border-bottom: 1px solid #e1e1e1;
}
.faq-item__q {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 40px 20px 0;
  color: #222222;
  font-family: var(--font-sans-jp);
  font-size: 16px;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  position: absolute;
  top: 22px;
  right: 6px;
  content: "+";
  color: #004f66;
  font-family: var(--font-lato);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] > .faq-item__q::after { transform: rotate(45deg); }
.faq-item__q:hover .faq-item__q-text { color: #004f66; }
.faq-item__mark {
  flex: none;
  color: #004f66;
  font-family: var(--font-lato);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.faq-item__q-text {
  display: block;
  flex: 1;
  text-align: left;
}
.faq-item__a {
  align-items: stretch;
  gap: 12px;
  padding: 0 40px 24px 32px;
}
.faq-item__p {
  display: block;
  color: #3d3d3d;
  font-family: var(--font-sans-jp);
  font-size: 15px;
  line-height: 1.9;
  text-align: left;
}
.faq-item__link {
  display: inline;
  color: #004f66;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-item__p strong { font-weight: 700; color: #222222; }

/* 最後の案内 */
.faq-cta {
  align-items: center;
  gap: 22px;
  padding: 44px 24px;
  background: #eeeeee;
}
.faq-cta__text {
  color: #222222;
  font-family: var(--font-serif-jp);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}
.faq-cta__buttons {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.faq-cta__contact,
.faq-cta__reserve {
  flex-direction: row;
  justify-content: center;
  min-width: 200px;
  padding: 15px 28px;
  font-family: var(--font-serif-jp);
  font-size: 16px;
  line-height: 1.4;
}
.faq-cta__contact { border: 1px solid #222222; color: #222222; background: #ffffff; }
.faq-cta__reserve { color: #ffffff; background: #004f66; }
.faq-cta__contact:hover, .faq-cta__reserve:hover { opacity: 0.85; }

@media (max-width: 540px) {
  .faq { padding: 10px 18px 70px; gap: 44px; }
  .faq-nav__link { padding: 7px 13px; font-size: 13px; }
  .faq-cat__title { font-size: 21px; }
  .faq-item__q { gap: 10px; padding: 17px 32px 17px 0; font-size: 15px; }
  .faq-item__q::after { top: 19px; }
  .faq-item__a { padding: 0 8px 20px 24px; }
  .faq-item__p { font-size: 14px; }
  .faq-cta__contact, .faq-cta__reserve { width: 100%; }
}
