@charset "UTF-8";
/* FAQ一覧（/faq-list/）カテゴリーアイコン */
.faq-catlist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 40px auto 80px;
  padding: 0;
  list-style: none;
}
/* アイコン＋テキストを1枚のカードに */
.faq-catlist__link {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding: 24px 12px 20px;
  border: 1px solid #e3d8c3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(169, 138, 82, 0.1);
  color: #8a6d3b;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.faq-catlist__link:hover,
.faq-catlist__link:focus-visible {
  border-color: #A98A52;
  background: #fdfbf6;
  box-shadow: 0 6px 14px rgba(169, 138, 82, 0.18);
  transform: translateY(-2px);
}
.faq-catlist__icon {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}
/* アイコン未設置時のダミー */
.faq-catlist__icon--dummy {
  border-radius: 50%;
  background: #eee;
}
.faq-catlist__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
}
/* クリックできることが分かるよう矢印を付ける */
.faq-catlist__name::after {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* FAQカテゴリー（/faq-list/xxx/）一覧へ戻る */
.faq-backlink {
  margin: 60px 0 80px;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .faq-catlist {
    grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
    gap: 10px;
    margin: 20px auto 60px;
  }
  .faq-catlist__link {
    gap: 8px;
    padding: 16px 6px 14px;
    border-radius: 10px;
  }
  .faq-catlist__name::after {
    width: 5px;
    height: 5px;
    border-width: 1.5px;
  }
  .faq-catlist__icon {
    width: 64px;
    height: 64px;
  }
  .faq-catlist__name {
    font-size: 1.4rem;
  }
}

/* FAQ記事下「その他のよくある質問」 */
.faq-otherlist {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.faq-otherlist li {
  border-bottom: 1px solid #ddd;
}
.faq-otherlist li:first-child {
  border-top: 1px solid #ddd;
}
.faq-otherlist a {
  display: block;
  padding: 15px 30px 15px 27px;
  background: url(../../common/img/icon-q.svg) no-repeat 0 50% / 18px 16px;
  color: #333;
  text-decoration: none;
  position: relative;
}
.faq-otherlist a::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid #999;
  border-right: 1px solid #999;
  transform: translateY(-50%) rotate(45deg);
}
.faq-otherlist a:hover {
  opacity: 0.7;
}

/* FAQ一覧（/faq-list/）キーワード検索 */
.faq-search {
  max-width: 800px;
  margin: 0 auto 80px;
}
/* 「キーワード検索」「閲覧の多いQ&A」の見出し */
.faq-tab {
  display: inline-block;
  margin: 0;
  padding: 0 40px 8px 4px;
  border-bottom: 3px solid #A98A52;
  font-size: 1.5rem;
  font-weight: bold;
}
.faq-search__box {
  margin-top: -1px;
  padding: 24px 20px;
  border-top: 1px solid #ddd;
  background: #f9f7f1;
}
.faq-search__label {
  display: block;
  margin-bottom: 12px;
  font-size: 1.6rem;
  font-weight: bold;
}
.faq-search__row {
  display: flex;
  gap: 8px;
}
.faq-search__field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.faq-search__button {
  flex-shrink: 0;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 4px;
  background: #A98A52;
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
.faq-search__button:hover {
  opacity: 0.8;
}
.faq-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
  pointer-events: none;
}
.faq-search__input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 14px 0 44px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 1.6rem; /* iOSでのズーム防止に16px以上 */
  -webkit-appearance: none;
  appearance: none;
}
.faq-search__input:focus {
  outline: none;
  border-color: #A98A52;
  box-shadow: 0 0 0 2px rgba(169, 138, 82, 0.25);
}
.faq-search__popular-title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 20px 0 10px;
  font-size: 1.4rem;
}
.faq-search__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.faq-search__keywords a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #A98A52;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.3;
  text-decoration: none;
  transition: opacity 0.2s;
}
.faq-search__keywords a:hover {
  opacity: 0.8;
}

/* 検索結果のポップアップ */
.faq-modal {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 800px;
  max-height: calc(100% - 64px);
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #333;
  overflow: auto;
}
.faq-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.faq-modal__inner {
  padding: 0 24px 24px;
}
.faq-modal__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 20px 0 12px;
  border-bottom: 1px solid #ccc;
  background: #fff;
}
.faq-modal__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.4;
}
.faq-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f9f7f1;
  color: #333;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.faq-modal__close:hover {
  background: #eee6d8;
}
.faq-modal__message {
  padding: 20px 0;
  text-align: center;
}
.faq-modal dl:not(:last-child) {
  margin-bottom: 10px;
}
/* ポップアップ表示中は背面をスクロールさせない */
.is-faq-modal-open {
  overflow: hidden;
}

/* 閲覧の多いQ&A */
.faq-popular {
  max-width: 800px;
  margin: 0 auto 80px;
}
.faq-popular__list {
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid #ddd;
  list-style: none;
}
.faq-popular__list li {
  position: relative;
  padding-left: 16px;
}
.faq-popular__list li:not(:last-child) {
  margin-bottom: 12px;
}
.faq-popular__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #A98A52;
}
.faq-popular__list a {
  color: #333;
  line-height: 1.6;
}
.faq-popular__list a:hover {
  color: #A98A52;
}

@media screen and (max-width: 767px) {
  .faq-popular {
    margin-bottom: 60px;
  }
  .faq-search {
    margin-bottom: 60px;
  }
  .faq-search__box {
    padding: 20px 15px;
  }
  .faq-search__keywords a {
    font-size: 1.3rem;
  }
  .faq-search__button {
    padding: 0 18px;
  }
  .faq-modal {
    width: calc(100% - 20px);
    max-height: calc(100% - 40px);
  }
  .faq-modal__inner {
    padding: 0 15px 20px;
  }
  .faq-modal__title {
    font-size: 1.6rem;
  }
}

/* FAQ記事下のアンケート「この質問は役に立ちましたか？」 */
.faq-feedback {
  max-width: 800px;
  margin: 60px auto 0;
  padding: 28px 24px;
  border-radius: 8px;
  background: #f9f7f1;
  text-align: center;
}
.faq-feedback__question {
  margin: 0;
  font-size: 1.7rem;
  font-weight: bold;
  line-height: 1.6;
}
.faq-feedback__answers {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.faq-feedback__answer {
  min-width: 120px;
  padding: 10px 24px;
  border: 1px solid #A98A52;
  border-radius: 999px;
  background: #fff;
  color: #A98A52;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.faq-feedback__answer:hover {
  background: #A98A52;
  color: #fff;
}
.faq-feedback__label {
  display: block;
  margin: 12px 0 10px;
  font-size: 1.4rem;
  line-height: 1.7;
  text-align: left;
}
.faq-feedback__textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 1.6rem; /* iOSでのズーム防止に16px以上 */
  line-height: 1.6;
  resize: vertical;
}
.faq-feedback__textarea:focus {
  outline: none;
  border-color: #A98A52;
  box-shadow: 0 0 0 2px rgba(169, 138, 82, 0.25);
}
.faq-feedback__hp {
  position: absolute;
  left: -9999px;
}
.faq-feedback__note {
  margin: 8px 0 16px;
  color: #666;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: left;
}
.faq-feedback__submit {
  min-width: 200px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: #A98A52;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
.faq-feedback__submit:hover {
  opacity: 0.8;
}
.faq-feedback__submit:disabled {
  opacity: 0.5;
  cursor: default;
}
.faq-feedback__error {
  margin: 12px 0 0;
  color: #db126f;
  font-size: 1.3rem;
}

/* お問い合わせ・LINEへの誘導 */
.faq-contact {
  max-width: 800px;
  margin: 40px auto 80px;
  text-align: center;
}
.faq-contact__title {
  margin: 0 0 16px;
  font-size: 1.6rem;
  font-weight: bold;
}
.faq-contact__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.faq-contact__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  max-width: 320px;
  padding: 16px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s;
}
.faq-contact__button:hover {
  opacity: 0.8;
}
.faq-contact__button--form {
  background: #A98A52;
}
.faq-contact__button--line {
  background: #06C755; /* LINEのブランドカラー */
}

@media screen and (max-width: 767px) {
  .faq-feedback {
    margin-top: 40px;
    padding: 24px 15px;
  }
  .faq-feedback__question {
    font-size: 1.5rem;
  }
  .faq-feedback__answer {
    min-width: 0;
    flex: 1;
    max-width: 140px;
  }
  .faq-contact {
    margin-bottom: 60px;
  }
  .faq-contact__buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .faq-contact__button {
    width: 100%;
  }
}

/* ==========================================
   FAQ記事（/faq-list/xxx/ の質問ページ）
   一覧・アンケートと同じトンマナ（ゴールド #A98A52 / ベージュ #f9f7f1）に揃える
   ========================================== */
.single-faq .main-contents {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* カテゴリー */
.faq-single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 16px;
  padding: 0;
  list-style: none;
}
.faq-single-cats a {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid #A98A52;
  border-radius: 999px;
  background: #fff;
  color: #8a6d3b;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.faq-single-cats a:hover {
  background: #A98A52;
  color: #fff;
}

/* 質問（Q） */
.single-faq .post-title {
  position: relative;
  margin: 0;
  padding: 2px 0 20px 56px;
  border-bottom: 1px solid #e3d8c3;
  color: #333;
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1.5;
}
.single-faq .post-title::before,
.single-faq .editor::before {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}
.single-faq .post-title::before {
  content: "Q";
  top: 0;
  background: #A98A52;
  color: #fff;
}
.single-faq .post-head:not(:has(*)) { /* 中身がコメントだけの空の枠は非表示 */
  display: none;
}

/* 回答（A） */
.single-faq .editor {
  position: relative;
  margin-top: 24px;
  padding: 4px 0 0 56px;
  color: #333;
  line-height: 1.9;
}
.single-faq .editor::before {
  content: "A";
  top: 0;
  border: 1px solid #A98A52;
  background: #f9f7f1;
  color: #A98A52;
}
.single-faq .editor p:empty {
  display: none;
}
.single-faq .editor a {
  color: #8a6d3b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single-faq .editor a:hover {
  text-decoration: none;
}
.single-faq .editor strong {
  background: linear-gradient(transparent 60%, #f3ead8 60%);
}

/* その他のよくある質問（見出しを一覧ページの「キーワード検索」などと同じタブ風に） */
.single-faq .recommend {
  margin-top: 60px;
  padding: 0;
  background: none;
}
.single-faq .recommend .sub-tit {
  display: inline-block;
  margin: 0;
  padding: 0 40px 8px 4px;
  border-bottom: 3px solid #A98A52;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: left;
}
.single-faq .faq-otherlist {
  margin-top: -1px;
}

@media screen and (max-width: 767px) {
  .faq-single-cats {
    margin-top: 20px;
  }
  .single-faq .post-title {
    padding: 0 0 16px 46px;
    font-size: 1.9rem;
  }
  .single-faq .post-title::before,
  .single-faq .editor::before {
    width: 34px;
    height: 34px;
    font-size: 1.7rem;
  }
  .single-faq .editor {
    padding-left: 46px;
    line-height: 1.8;
  }
  .single-faq .recommend {
    margin-top: 40px;
  }
}
