/* トップページ専用スタイル */

.faq-guide {
  margin-top: 40px;
  background-color: #fff;
  color: #665f53;
  font-family: "Shippori Mincho", serif;
}

@media screen and (min-width: 769px) {
  .faq-guide {
    margin-top: 60px;
  }
}

/* インナー */
.faq-guide__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* 説明文 */
.faq-guide__description {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.05em;
  text-align: center;
}

/* カード全体 */
.faq-guide__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  margin-top: 50px;
}

@media screen and (min-width: 769px) {
  .faq-guide__cards {
    grid-template-columns: repeat(2, minmax(0, 500px));
    justify-content: center;
    gap: 40px;
  }
}

/* カード */
.faq-guide__card {
  box-sizing: border-box;
  min-width: 0;
  padding: 55px 30px;
  border: 1px solid #665f53;
}

@media screen and (min-width: 769px) {
  .faq-guide__card {
    min-height: 420px;
  }
}

/* 右側カード：予約 */
.faq-guide__card--reserve {
  border-color: #b58b9a;
}

/* カードタイトル */
.faq-guide__title {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.67;
  letter-spacing: 0.05em;
  text-align: center;
}

@media screen and (min-width: 769px) {
  .faq-guide__title {
    font-size: 30px;
  }
}

/* 予約カードのタイトル */
.faq-guide__card--reserve .faq-guide__title {
  color: #b58b9a;
}

/* カード説明文 */
.faq-guide__text {
  margin: 30px 0 0;
  font-family: "Shippori Mincho", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .faq-guide__text {
    margin-top: 45px;
    margin-bottom: 30px;
    font-size: 16px;
  }
}

/* FAQカード内の共通ボタン */
.faq-guide .contact__button {
  flex-shrink: 0;
  gap: 24px;
  width: 100%;
  max-width: 320px;
  min-height: 60px;
  margin-top: 40px;
  padding: 12px 20px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* LINE・カレンダーアイコン */
.faq-guide .contact__button::before {
  position: static;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  transform: none;
}

/* 予約ボタン */
.faq-guide .contact__button--booking {
  background-color: #b58b9a;
}

/* ボタン内テキスト */
.faq-guide .contact__button p {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* FAQカード ボタンの位置を統一 */

/* カードの高さを揃える */
.faq-guide__cards {
  align-items: stretch;
}

/* カード内部を縦方向に配置 */
.faq-guide__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

/* 説明文 */
.faq-guide__text {
  width: 100%;
  margin-bottom: 30px;
  color: #333333;
}

/* ボタンを下側に揃える */
.faq-guide .contact__button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 0;
}

/* FAQ 一覧 */
.faq-list {
  margin-top: 80px;
  padding-bottom: 100px;
  background-color: #fff;
  color: #665f53;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .faq-list {
    margin-top: 125px;
    padding-bottom: 150px;
  }
}

/* インナー */
.faq-list__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .faq-list__inner {
    padding-inline: 25px;
  }
}

/* FAQ セクションタイトル */
.faq-list .section-title__en {
  color: #c0b1a3;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 769px) {
  .faq-list .section-title__en {
    font-size: 53.75px;
  }
}

.faq-list .section-title__ja {
  color: #333;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 769px) {
  .faq-list .section-title__ja {
    font-size: 39.85px;
  }
}

/* FAQ カテゴリー */

/* カテゴリーグループ */
.faq-list__group {
  margin-top: 50px;
}

/* FAQ カテゴリー */
.faq-list__category {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 文字数に合わせた横幅 */
  width: fit-content;
  max-width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 10px 30px;
  border-radius: 100px;
  background-color: #c0b1a3;
  color: #fff;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6667;
  letter-spacing: 0.025em;
  text-align: center;
  /* 改行しない */
  white-space: nowrap;
}

/* PC */
@media screen and (min-width: 769px) {
  .faq-list__category {
    font-size: 18px;
  }
}

/* 狭いSPでは文字サイズ・余白を調整 */
@media screen and (max-width: 374px) {
  .faq-list__category {
    padding-inline: 15px;
    font-size: 13px;
  }
}

/* Q&A */
.faq-list__items {
  margin-top: 45px;
}

/* 各Q&A */
.faq-list__item {
  padding: 30px 0;
  border-bottom: 1px dotted #c0b1a3;
}

@media screen and (min-width: 769px) {
  .faq-list__item {
    padding-block: 40px;
  }
}

/* 最初のQ&A */
.faq-list__item:first-child {
  padding-top: 0;
}

/* 質問・回答共通 */
.faq-list__question,
.faq-list__answer {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 10px;
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.025em;
  text-align: left;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .faq-list__question,
  .faq-list__answer {
    font-size: 18px;
  }
  .faq-list__answer {
    font-size: 16px;
  }
}

/* 質問 */
.faq-list__question {
  color: #665f53;
}

.faq-list__question::before {
  content: "Q.";
}

/* 回答 */
.faq-list__answer {
  margin-top: 30px;
  color: #333;
}

.faq-list__answer::before {
  content: "A.";
  color: #999;
}

/* FAQ 注記 */
.faq-list__note {
  margin: 30px 0 0;
  color: #333;
  font-family: "Shippori Mincho", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.025em;
  text-align: left;
}

@media screen and (min-width: 769px) {
  .faq-list__note {
    margin-top: 50px;
    font-size: 16px;
    text-align: center;
  }
}

/* FAQ ご質問が見つからない方へ */
.faq-contact.faq-contact--guide {
  box-sizing: border-box;
  width: 100%;
  padding: 0 20px 80px;
  font-family: "Shippori Mincho", serif;
}

/* PC */
@media screen and (min-width: 769px) {
  .faq-contact.faq-contact--guide {
    padding-bottom: 120px;
  }
}

/* インナー */
.faq-contact--guide .faq-contact__inner {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  padding: 50px 20px;
  background-color: #f0eeee;
  text-align: center;
}

/* PC */
@media screen and (min-width: 769px) {
  .faq-contact--guide .faq-contact__inner {
    padding: 60px 40px;
  }
}

/* 見出し */
.faq-contact--guide .faq-contact__title {
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #c0b1a3;
  color: #665f53;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
}

@media screen and (min-width: 769px) {
  .faq-contact--guide .faq-contact__title {
    font-size: 30px;
  }
}

/* 説明文 */
.faq-contact--guide .faq-contact__text {
  width: 100%;
  max-width: 750px;
  margin: 30px auto 0;
  color: #333;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.05em;
  text-align: center;
}

@media screen and (min-width: 769px) {
  .faq-contact--guide .faq-contact__text {
    font-size: 16px;
  }
}

/* LINEボタン */
.faq-contact--guide .contact__button {
  padding: 12px 50px;
  font-size: 16px;
  line-height: 1.5;
}

/* LINEアイコン */

/* ボタン内テキスト */
.faq-contact--guide .contact__button p {
  margin: 0;
  padding: 0;
  color: #fff;
  font: inherit;
}

/* FAQ ご質問が見つからない方へ LINEボタンのサイズ調整 */
.faq-contact--guide .contact__button {
  width: 100%;
}

/* LINEアイコン */

/* FAQ案内ボックス */
.faq-contact.faq-contact--guide {
  background-color: #fff;
  background-image: none;
}

/* グレー背景 */
.faq-contact.faq-contact--guide > .faq-contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f0eeee;
}

/* LINEボタン */
.faq-contact--guide .contact__button {
  width: min(100%, 320px);
  padding: 0 50px;
}

/* ボタンのテキスト */
.faq-contact--guide .contact__button-text {
  background-color: transparent;
}

/* ボタンの文字 */

/* FAQ案内 LINEボタン修正 */
.faq-contact--guide .contact__button {
  margin: 40px auto 0;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  height: 60px;
  min-height: 60px;
  padding: 0 55px;
  border-radius: 100px;
  background-color: #665f53;
}

/* LINEアイコン */

/* ボタンのテキスト */

/* FAQ案内 LINEボタン修正 */

/* LINEアイコン */
.faq-contact--guide .contact__button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 34px;
  display: block;
  width: 36px;
  height: 36px;
  margin: 0;
  background-image: url("/system_panel/uploads/images/icon_line.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translateY(-50%);
}

/* ボタンのテキスト */
.faq-contact--guide .contact__button-text {
  position: static;
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
  background: transparent;
  transform: none;
}

/* FAQ案内ボタンはアイコンと文字を一緒に中央配置 */
.faq-contact--guide .contact__button {
  gap: 24px;
  padding-inline: 20px;
}

.faq-contact--guide .contact__button::before {
  position: static;
  flex: 0 0 36px;
  transform: none;
}

@media screen and (max-width: 791px) {
  .faq-guide .faq-guide__description {
    text-align: left;
  }
}

/* FAQ案内文の1つ目の改行は623px以下だけ表示 */
.faq-list ~ .faq-contact--guide .faq-contact__text br:nth-of-type(1) {
  display: none;
}

@media screen and (max-width: 623px) {
  .faq-list ~ .faq-contact--guide .faq-contact__text br:nth-of-type(1) {
    display: inline;
  }
}

/* 375pxでも案内文の2行目が折り返さないよう字間を調整 */
@media screen and (max-width: 414px) {
  .faq-contact--guide .faq-contact__text {
    letter-spacing: 0;
  }
}

/* FAQページ下部のお問い合わせ */
@media screen and (max-width: 902px) {
  .faq-list ~ .page-contact .page-contact__text {
    text-align: left;
  }
}

@media screen and (max-width: 1023px) {
  .faq-list ~ .page-contact .page-contact__buttons {
    width: 100%;
    max-width: 350px;
    margin-inline: auto;
  }
  .faq-list ~ .page-contact .page-contact__buttons > .contact__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 15px 32px;
  }
  .faq-list ~ .page-contact .page-contact__buttons > .contact__button::before {
    position: static;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    transform: none;
  }
}

/* Keep content clear of the fixed desktop buttons. */
@media screen and (min-width: 1024px) and (max-width: 1399px) {
  .faq-guide__inner,
  .faq-list__inner {
    width: calc(100% - 135px);
    margin-inline-end: 110px;
  }
  .faq-contact--guide .faq-contact__inner {
    width: calc(100% - 135px);
    margin-inline-end: max(110px, (100% - 1000px) / 2);
  }
}
