@charset "utf-8";
/* ANDO HOTEL 奈良若草山 - FAQ (PC) */

html {
  scroll-behavior: smooth;
}

#pageHeader {
  margin: 0 auto 60px;
  text-align: center;
}

#pageHeader h1 {
  display: inline-block;
  text-align: center;
}

#pageHeader h1 .en {
  display: block;
  font-size: 3.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #371500;
  margin-bottom: 8px;
  line-height: 1;
}

#pageHeader h1 .ja {
  display: block;
  font-size: 1.6rem;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  color: #777;
  font-weight: normal;
  line-height: 1.4;
}

#page-faq {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 120px;
}

.faq--inner {
  width: 900px;
  margin: 0 auto;
}

/* カテゴリーリンクナビゲーション */
.faq--cat-link {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #C5C8B8;
  border-left: 1px solid #C5C8B8;
  background-color: #FFF;
  margin: 0 auto 90px;
}

.faq--cat-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 64px;
  padding: 0 16px;
  border-right: 1px solid #C5C8B8;
  border-bottom: 1px solid #C5C8B8;
  color: #4F4A4E;
  text-decoration: none;
  background-color: #FFF;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.35;
}

.faq--cat-link a::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  border-color: #9ca57d transparent transparent transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.faq--cat-link a:hover {
  background-color: #9ca57d;
  color: #FFF;
  opacity: 1;
}

.faq--cat-link a:hover::after {
  border-color: #FFF transparent transparent transparent;
  transform: translateY(-25%);
}

/* 各カテゴリーセクション */
.faq--cat-wrap {
  margin-bottom: 90px;
  scroll-margin-top: 110px;
}

.faq--cat-wrap h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 2.2rem;
  color: #371500;
  border-bottom: 2px solid #C5C8B8;
  padding-bottom: 16px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.faq--cat-wrap h2 .material-icons {
  color: #9ca57d;
  font-size: 2.6rem;
  line-height: 1;
}

/* Q&A アコーディオンリスト */
.faq--cat-wrap dl {
  border-top: 1px solid #C5C8B8;
}

.faq--cat-wrap dl > div {
  border-bottom: 1px solid #C5C8B8;
  background-color: #FFF;
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
}

.faq--cat-wrap dl > div.is-open {
  background-color: #F8F9F5;
  grid-template-rows: auto 1fr;
}

.faq--cat-wrap dl > div.is-open > dt {
  background-color: #E6E9DE;
}

/* 質問（Q） */
.faq--cat-wrap dt {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  font-size: 1.5rem;
  color: #333;
  line-height: 1.6;
  letter-spacing: 0.04em;
  padding: 22px 60px 22px 24px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.faq--cat-wrap dt:hover {
  color: #8D7E66;
}

/* ＋ / − アイコン */
.faq--cat-wrap dt::before,
.faq--cat-wrap dt::after {
  content: '';
  position: absolute;
  background-color: #9ca57d;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease;
}

/* 横線 */
.faq--cat-wrap dt::before {
  right: 24px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  transform: translateY(-50%);
}

/* 縦線 */
.faq--cat-wrap dt::after {
  right: 30.25px;
  top: 50%;
  width: 1.5px;
  height: 14px;
  transform: translateY(-50%);
}

.faq--cat-wrap dl > div.is-open dt::after {
  transform: translateY(-50%) rotate(90deg);
  opacity: 0;
}

/* 回答（A） */
.faq--cat-wrap dd {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: visibility 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
  padding-left: 24px !important;
  padding-right: 24px !important;
  font-size: 1.4rem;
}

.faq--cat-wrap dl > div.is-open dd {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  padding: 24px !important;
}

.faq--cat-wrap dd > p {
  margin: 0;
  color: #555;
  text-align: left;
  line-height: 1.85;
  letter-spacing: 0.05em;
}

.faq--cat-wrap .faq--add {
  margin-top: 14px;
  padding: 14px 18px;
  background-color: #FFF;
  border-left: 3px solid #9ca57d;
  border-radius: 2px;
}

.faq--cat-wrap .faq--add p {
  margin: 0;
  color: #666;
  font-size: 1.35rem;
  line-height: 1.75;
  text-align: left;
}
