@media only screen and (min-width: 769px) {
  header {
    display: none !important;
  }
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/ebgaramond/v33/SlGWmQSNjdsmc35JDF1K5GRweDY1ZyHKpWiGIg.woff2) format('woff2');
  unicode-range: U +0460 -052F, U +1C80 -1C8A, U +20B4, U +2DE0 -2DFF, U + A640-A69F, U + FE2E-FE2F;
}

#qna {
  background-color: #e5e3df;
}

#qna section {
  padding-bottom: 80px;
}

.heading h1 {
  text-align: center;
  font-size: 3rem;
  line-height: 7rem;
  color: #1a1a1a;
}

.heading p {
  text-align: center;
  padding: 80px 0;
}

.qna-accordion-container {
  max-width: 1200px;
  margin: 165px auto 80px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 80px;
}

/* category */
.qna-category {
  width: 450px;
  top: 0;
}

.qna-category-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #1a1a1a;
  position: relative;
  margin-bottom: 50px;
  padding: 0;
  gap: 16px;
}

.qna-title {
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.5;

  display: inline-block;
  padding-bottom: 20px;
  border-bottom: #333 solid 1px;
  width: 100%;
}

.qna-subtitle {
  font-size: 1.8rem;
}

.qna-category-content {
  transition: max-height 0.3s ease-out;
}

/* プラス（+）とマイナス（−）のベーススタイル */
.qna-toggle-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-block;
  border-bottom: #333 solid 1px;
}

/* Horizontal line (Common for plus and minus) */
.qna-toggle-icon::before {
  content: "";
  position: absolute;
  bottom: 35px;
  left: 5px;
  width: 24px;
  height: 1px;
  background-color: #1a1a1a;
}

/* Vertical line (Only visible for the plus sign) */
.qna-toggle-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 1px;
  height: 24px;
  background-color: #1a1a1a;
  transform: translateX(-50%);
  transition: transform 0.25s ease-out;
}

/* 
  ボタンに「active」クラスがない時（閉じている時）はプラス。
  ボタンに「active」クラスがある時（開いている時）は、縦線を消してマイナスにする。
*/
.qna-category-header.active .qna-toggle-icon::after {
  transform: translateX(-50%) scaleY(0);
}

/* ================================== */

.qna-sub-menu {
  list-style: none;
  margin-bottom: 50px;
  padding-left: 32px;
}

.qna-sub-menu li {
  margin-bottom: 50px;
  font-size: 1.8rem;
}

.qna-sub-menu li:last-child {
  margin-bottom: 0;
}


/* ========================================= */

.qna-content {
  width: 100%;
  align-items: left;
}

.content-wrap {
  padding-bottom: 40px;
}

.content-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  gap: 16px;
  padding: 0;
}

/* .content-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #333 93%, transparent 93%, transparent 95%, #333 95%);
} */

.question {
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.5;
  text-align: left;
  display: flex;
  align-items: flex-start;
  color: #1a1a1a;

  padding-bottom: 20px;
  width: 100%;
  border-bottom: #333 1px solid;
}

.question-q {
  width: 30px;
  padding-right: 10px;
}

.content-header .arrow-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-block;
  border-bottom: #333 1px solid;
}

.content-header .arrow-icon::before {
  content: "";
  position: absolute;
  bottom: 24px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.content-header.active .arrow-icon::before {
  transform: rotate(225deg);
  bottom: 14px;
}

.answer {
  background-color: white;
  margin-top: 20px;
  padding: 24px;
  height: 100%;
}

.answer p {
  font-size: 1.8rem;
}

.answer a {
  text-decoration: underline;
}

.qna-ol {
  padding-left: 16px;
}

.qna-ol li {
  text-indent: -16px;
  font-size: 1.8rem;
}

.qna-ul li {
  padding-left: 16px;
  text-indent: -16px;
  font-size: 1.8rem;
}

@media only screen and (max-width: 768px) {

  #qna section {
    padding-bottom: 40px;
  }

  .qna-accordion-container {
    display: flex;
    flex-direction: column;
    margin-top: 80px;
    gap: 40px;
  }

  .qna-category {
    width: 100%;
  }

  .qna-content {
    width: 100%;
  }

  .question,
  .qna-title {
    font-size: 1.8rem;
  }

  .answer p,
  .answer li,
  .qna-sub-menu li {
    font-size: 1.4rem;
  }

  .qna-ul li {
    font-size: 1.4rem;
  }

  .qna-category-header {
    margin-bottom: 30px;
  }

  .qna-sub-menu li {
    margin-bottom: 30px;
  }
}






/* 追加260831 */
#qna h2 {
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 40px;

  &:nth-child(n+2) {
    margin-top: 80px;
  }
}

#qna h3 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 30px;
}

@media only screen and (max-width: 768px) {
  #qna h2 {
    font-size: 2rem;
    /* font-weight: 500;
      line-height: 1.5;
      margin-bottom: 40px; */

    &:nth-child(n+2) {
      margin-top: 80px;
    }
  }

  #qna h3 {
    font-size: 1.9rem;
    /* font-weight: 500;
      line-height: 1.5;
      margin-bottom: 20px; */
  }
}