/* 固定ページの「よくある質問」（inc/page-faq.php・2026-11-13）
   見た目はツアーページの p-faq（css/front.css）に合わせる。開閉は <details>（JS なし）。
   front.css が読み込まれないページでも同じ見た目になるよう、必要な指定をここに持つ。 */
.p-page-faq {
  max-width: 800px;
  margin: 56px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}
.p-page-faq__title {
  color: #333;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 24px;
}
@media (max-width: 768px) {
  .p-page-faq__title {
    font-size: 20px;
  }
}
.p-page-faq .p-faq__contents {
  display: flex;
  width: 100%;
  max-width: 800px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0; /* front.css も読まれるページで gap と margin が重ならないように */
  margin: 0 auto;
}
.p-page-faq .p-faq__item {
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0px 2.672px 6.68px 0px rgba(0, 0, 0, 0.25);
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
/* 旧 Safari は flex の gap が効かないので margin で間をあける */
.p-page-faq .p-faq__item + .p-faq__item {
  margin-top: 16px;
}
.p-page-faq .p-faq__item:hover {
  background: #f5faff;
}
.p-page-faq__summary {
  display: block;
  list-style: none;
  cursor: pointer;
}
.p-page-faq__summary::-webkit-details-marker {
  display: none;
}
.p-page-faq__summary::marker {
  content: "";
}
.p-page-faq .p-faq__question {
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  padding-left: 42px;
  padding-right: 34px;
  position: relative;
  min-height: 32px;
  display: flex;
  align-items: center;
}
@media (max-width: 768px) {
  .p-page-faq .p-faq__question {
    font-size: 14px;
  }
}
.p-page-faq .p-faq__question::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  background-image: url(../images/front/question.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 32px;
  height: 32px;
}
.p-page-faq .p-faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 24px;
  height: 24px;
  background-image: url(../images/front/icon-open.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.p-page-faq details[open] .p-faq__question::after {
  background-image: url(../images/front/icon-close.svg);
}
.p-page-faq .p-faq__answer {
  display: block;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  padding-left: 48px;
  padding-top: 10px;
  position: relative;
  min-height: 42px;
}
@media (max-width: 768px) {
  .p-page-faq .p-faq__answer {
    font-size: 14px;
  }
}
.p-page-faq .p-faq__answer p {
  color: #333;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 0.75em;
}
.p-page-faq .p-faq__answer p:last-child {
  margin-bottom: 0;
}
.p-page-faq .p-faq__answer a {
  color: #044b98;
  text-decoration: underline;
}
.p-page-faq .p-faq__answer::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  background-image: url(../images/front/answer.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 32px;
  height: 32px;
}
