@charset "utf-8";
/* dlight */
.dm {}

/* FAQ COMMON
================================================== */
html {
  scroll-behavior: smooth;
}

/* カテゴリーリンクナビゲーション */
.faq--cat-link {
  display: grid;
  border-top: 1px solid #C8C2B8;
  border-left: 1px solid #C8C2B8;
  background-color: #FFF;
}

.faq--cat-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid #C8C2B8;
  border-bottom: 1px solid #C8C2B8;
  color: #4F4A4E;
  text-decoration: none;
  background-color: #FFF;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: var(--font-ja-min);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
}

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

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

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

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

.faq--cat-wrap h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ja-min);
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #DDD8D0;
  letter-spacing: 0.05em;
}

.faq--cat-wrap h2 .material-icons {
  color: #938875;
  line-height: 1;
}

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

.faq--cat-wrap dl > div {
  border-bottom: 1px solid #DDD8D0;
  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: #FAF9F6;
  grid-template-rows: auto 1fr;
}
.faq--cat-wrap dl > div.is-open > dt {
  background-color: #F4EFE1;
}

/* 質問（Q） */
.faq--cat-wrap dt {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-ja-min);
  font-weight: 500;
  color: #333;
  line-height: 1.6;
  letter-spacing: 0.04em;
  transition: color 0.3s ease, background-color 0.3s ease;
}

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

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

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

/* 縦線（開くと回転して消える） */
.faq--cat-wrap dt::after {
  top: 50%;
  width: 1.5px;
  transform: translateY(-50%);
}

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

/* 回答（A） - CSS Gridによるdd開閉アコーディオン */
.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: 20px !important;
  padding-right: 20px !important;
}

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

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

.faq--cat-wrap .faq--add {
  margin-top: 10px;
}

.faq--cat-wrap .faq--add p {
  margin: 0;
  color: #777;
  line-height: 1.75;
}

/* SMARTPHONE
================================================== */
@media screen and (max-width: 768px) {
  
  .page--header {
    margin: 0 auto 60px;
  }
  
  /* FAQ ナビゲーション（SP） */
  .faq--cat-link {
    width: 90%;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto 50px;
  }

  .faq--cat-link a {
    min-height: 52px;
    padding: 10px 24px 10px 12px;
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .faq--cat-link a::after {
    right: 8px;
    border-width: 4px 3.5px 0 3.5px;
  }

  /* FAQ セクション（SP） */
  .faq--cat-wrap {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    scroll-margin-top: 70px;
  }

  .faq--cat-wrap h2 {
    font-size: 1.7rem;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 18px;
  }

  .faq--cat-wrap h2 .material-icons {
    font-size: 2.2rem;
  }

  .faq--cat-wrap dt {
    font-size: 1.35rem;
    padding: 18px 45px 18px 16px;
  }

  .faq--cat-wrap dt::before {
    right: 16px;
    width: 12px;
  }

  .faq--cat-wrap dt::after {
    right: 21.25px;
    height: 12px;
  }

  .faq--cat-wrap dd {
    font-size: 1.25rem;
    padding: 0 16px;
  }

  .faq--cat-wrap dd > p:first-child {
    padding-top: 4px;
  }

  .faq--cat-wrap dd > *:last-child {
    padding-bottom: 20px;
  }

  .faq--cat-wrap .faq--add {
    margin-top: 8px;
  }

  .faq--cat-wrap .faq--add p {
    font-size: 1.15rem;
  }
  
}

/* DESKTOP
================================================== */
@media screen and (min-width: 769px), print {
  
  /* FAQ ナビゲーション（PC） */
  .faq--cat-link {
    width: 850px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto 90px;
  }

  .faq--cat-link a {
    height: 56px;
    padding: 0 30px 0 20px;
    font-size: 1.35rem;
  }

  .faq--cat-link a::after {
    right: 16px;
    border-width: 5px 4px 0 4px;
  }

  /* FAQ セクション（PC） */
  .faq--cat-wrap {
    width: 850px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 90px;
    scroll-margin-top: 110px;
  }

  .faq--cat-wrap h2 {
    font-size: 2.2rem;
    padding-bottom: 16px;
    margin-bottom: 24px;
  }

  .faq--cat-wrap h2 .material-icons {
    font-size: 2.6rem;
  }

  .faq--cat-wrap dt {
    font-size: 1.5rem;
    padding: 24px 60px 24px 24px;
  }

  .faq--cat-wrap dt::before {
    right: 24px;
    width: 14px;
  }

  .faq--cat-wrap dt::after {
    right: 30.25px;
    height: 14px;
  }

  .faq--cat-wrap dd {
    font-size: 1.4rem;
  }

  .faq--cat-wrap .faq--add {
    margin-top: 12px;
    padding: 10px;
    background-color: #FFF;
  }

}

