/* =========================
   Variables
========================= */
:root {
  --font-family-jp: "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-family-en: "Poppins", arial, sans-serif;
  --font-family-latin: "Poppins", arial, sans-serif;
  --color-main: #009140;
  --color-white: #fff;
  --text-secondary: #495057;
  --text-primary: #212529;
}

#breadcrumb {
  display: none;
}

/* =========================
   faq-detail
========================= */
.faq-detail {
  display: block;
  margin-block-start: 100px;
  padding-block: 0px 64px;
  background: #fff;

  @media (768px <= width) {
    margin-block-start: 128px;
    padding-block: 40px 80px;
  }
  
  .faq__header {
    margin-bottom: 40px;

    .section-header__subtitle {
      margin-bottom: 11px;
      font-family: var(--font-family-latin);
      font-size: 12px;
      font-weight: 700;
      font-style: normal;
      line-height: 1.4;
      text-align: center;
      text-transform: uppercase;
      color: var(--text-brand);

      @media (768px <= width) {
        font-size: 14px;
      }
    }

    .section-header__title {
      font-family: var(--font-family-jp);
      font-size: 24px;
      font-weight: 700;
      font-style: normal;
      line-height: 1.4;
      text-align: center;
      color: var(--text-primary);
      margin-top: 0;
      margin-bottom: 0;

      @media (768px <= width) {
        font-size: 28px;
      }
    }
  }
}

.faq-detail__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: #009140;
}

.faq-detail__title {
  margin-bottom: 40px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #212529;
}

.faq-detail__list {
  display: grid;
  margin-bottom: 40px;
}

.faq-detail__item {
  overflow: hidden;
  background: #fff;
  border-top: 1px solid #adb5bd;
}

.faq-detail__item:last-of-type {
  border-bottom: 1px solid #adb5bd;
}

details[open] .summary {
  background-color: #f1f3f5;
}

.faq-detail__item[open] .faq-detail__summary {
  background-color: #f1f3f5;
}

.faq-detail__summary {
  display: flex;
  position: relative;
  align-items: center;
  gap: 12px;
  padding: 16px 8px 15px 33px;
  list-style: none;
  cursor: pointer;
  user-select: none;

  @media (768px <= width) {
    padding: 23px 8px 25px 33px;
  }
}

.faq-detail__summary:hover {
  background-color: #f1f3f5;
}

.faq-detail__summary ::-webkit-details-marker {
  display: none;
}

.faq-detail__question {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-family-jp);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary, #212529);
}

.faq-detail__question::before {
  content: "Q.";
  display: inline-block;
  position: absolute;
  top: 16px;
  left: 8px;
  flex: 0 0 auto;
  font-family: var(--font-family-latin);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-brand, #009140);

  @media (768px <= width) {
    top: 23px;
  }
}

.faq-detail__arrow {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background: #009140;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.faq-detail__item[open] .faq-detail__arrow {
  transform: rotate(180deg);
}

.faq-detail__answer {
  overflow: hidden;
}

.faq-detail__answer-text {
  position: relative;
  padding: 18px 8px 16px 32px;
  font-family: var(--font-family-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary, #212529);

  @media (768px <= width) {
    padding: 26px 8px 23px 32px;
  }
}

.faq-detail__answer-text::before {
  content: "A.";
  display: inline-block;
  position: absolute;
  top: 19px;
  left: 9px;
  font-family: var(--font-family-latin);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: #d92d20;

  @media (768px <= width) {
    top: 25px;
  }
}

.faq-detail__answer-text a {
  font-weight: bold;
  text-decoration: underline;
}
