﻿.faq-page .first-anchor-nav {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.faq-page {
  --fi-bg: #fff2e9;
  --fi-muted: #7d7d7d;
  --fi-divider: #7d7d7d;
  --fi-faq-head: #c38949;
  --fi-faq-line: #c38949;
}

.faq-page .first-anchor-nav a.is-current {
  color: var(--fi-text);
}

.faq-page .first-anchor-nav a:nth-child(odd) {
  border-right: 1px solid var(--fi-muted);
}

.faq-groups {
  padding-bottom: 80px;
}

.faq-group {
  padding-top: 80px;
}

.faq-group-title {
  margin: 0;
  background: var(--fi-faq-head);
  color: #fff;
  border-radius: 5px;
  padding: 20px 10px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  font-weight: 400;
}

.faq-list {
  margin-top: 26px;
}

.faq-item {
  border-bottom: 1px solid var(--fi-faq-line);
}

.faq-page .faq-item-question {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 22px 0;
  color: inherit;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 28px;
  align-items: center;
  column-gap: 14px;
  cursor: pointer;
}

.faq-item-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  flex: 0 0 auto;
  padding-bottom: 2px;
  margin-right: 5px;
}

.faq-item-badge--q {
  background: var(--fi-faq-head);
  color: #fff;
}

.faq-item-badge--a {
  border: 3px solid var(--fi-faq-head);
  color: var(--fi-faq-head);
  background: transparent;
}

.faq-item-question-text {
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.faq-item-toggle {
  width: 28px;
  height: 28px;
  color: var(--fi-faq-head);
  justify-self: end;
  margin-left: 0;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.faq-item-toggle::before {
  content: "+";
}

.faq-item.is-open .faq-item-toggle::before {
  content: "\2212";
}

.faq-item-answer {
  padding: 2px 0 30px;
}

.faq-item-answer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 14px;
}

.faq-item-answer-text {
  margin: 0;
  padding-top: 4px;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.faq-item-answer-text > :first-child {
  margin-top: 0;
}

.faq-item-answer-text > :last-child {
  margin-bottom: 0;
}

.faq-empty {
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--fi-muted);
}

@media (max-width: 767px) {
  .faq-page {
    --fi-bg: #fff2ea;
    --fi-faq-head: #c48a4a;
    --fi-faq-line: #c48a4a;
    --fi-muted: #7d7d7d;
    --fi-divider: #7d7d7d;
    background: #fff2ea;
  }

  .faq-page .faq-container {
    width: min(calc(100% - 18px), 760px);
  }

  .faq-page .first-anchor-nav {
    width: 100%;
    margin-top: 40px;
    border-bottom: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
  }

  .faq-page .first-anchor-nav a {
    min-height: 68px;
    padding: 8px 8px 13px;
    border-bottom: 2px solid #7d7d7d;
    color: #7d7d7d;
    gap: 8px;
    font-size: 12px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: 0;
    position: relative;
  }

  .faq-page .first-anchor-nav a:nth-child(odd) {
    border-right: 1px solid #7d7d7d;
  }

  .faq-page .first-anchor-nav a:nth-child(even) {
    border-right: 0;
  }

  .faq-page .first-anchor-nav a.is-current {
    color: #474747;
  }

  .faq-page .first-anchor-nav a.is-current::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: #474747;
  }

  .faq-page .first-anchor-nav i {
    width: 15px;
    height: 15px;
    border-right-width: 2px;
    border-bottom-width: 2px;
  }

  .faq-page .faq-groups {
    padding-bottom: 80px;
  }

  .faq-page .faq-group {
    padding-top: 80px;
  }

  .faq-page .faq-group-title {
    min-height: 64px;
    padding: 12px 10px;
    border-radius: 4px;
    background: #c48a4a;
    color: #fafafa;
    display: flex;
    align-items: center;
    font-size: 24px;
    line-height: 40px;
    font-weight: 500;
    letter-spacing: 1.2px;
  }

  .faq-page .faq-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .faq-page .faq-item {
    min-width: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #c48a4a;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .faq-page .faq-item.is-open {
    gap: 20px;
  }

  .faq-page .faq-item-question {
    min-height: 32px;
    padding: 0;
    grid-template-columns: 24px minmax(0, 1fr) 17px;
    column-gap: 10px;
  }

  .faq-page .faq-item-badge {
    width: 24px;
    height: 24px;
    margin-right: 0;
    padding-bottom: 1px;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.8px;
  }

  .faq-page .faq-item-badge--q {
    background: #c48a4a;
    color: #fafafa;
  }

  .faq-page .faq-item-badge--a {
    width: 26px;
    border: 1px solid #c48a4a;
    background: #fafafa;
    color: #c48a4a;
    letter-spacing: 0;
  }

  .faq-page .faq-item-question-text {
    color: #474747;
    font-size: 16px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: 0.8px;
  }

  .faq-page .faq-item-toggle {
    width: 17px;
    height: 28px;
    color: #c48a4a;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    line-height: 27.2px;
    font-weight: 700;
  }

  .faq-page .faq-item-toggle::before {
    content: "\ff0b";
  }

  .faq-page .faq-item.is-open .faq-item-toggle::before {
    content: "\ff0d";
  }

  .faq-page .faq-item-answer {
    min-width: 0;
    width: 100%;
    padding: 0;
  }

  .faq-page .faq-item-answer-inner {
    min-width: 0;
    width: 100%;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
  }

  .faq-page .faq-item-answer-text {
    min-width: 0;
    width: 100%;
    max-width: min(100%, calc(100vw - 76px));
    margin: 0;
    padding-top: 0;
    color: #474747;
    font-size: 16px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: 0.8px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .faq-page .faq-empty {
    margin-top: 24px;
    color: #82654d;
    font-size: 16px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: 0.8px;
  }
}

@media (min-width: 768px) {
  .faq-group-title {
    padding: 34px 28px 38px;
  }
}

@media (min-width: 768px) {
  .faq-page {
    --faq-pc-content-width: 940px;
    --faq-pc-anchor-width: 1020px;
    --faq-pc-side-space: 50px;
    --fi-faq-head: #c48a4a;
    --fi-faq-line: #c48a4a;
    background: #fff2ea;
    overflow-x: clip;
  }

  .faq-page .faq-container {
    width: min(calc(100% - var(--faq-pc-side-space) * 2), var(--faq-pc-content-width));
    max-width: var(--faq-pc-content-width);
  }

  .faq-page .first-anchor-nav {
    width: min(calc(100% - var(--faq-pc-side-space) * 2), var(--faq-anchor-width, var(--faq-pc-anchor-width)));
    max-width: var(--faq-anchor-width, var(--faq-pc-anchor-width));
    min-height: 120px;
    margin: 80px auto 0;
    border-bottom: 2px solid #7d7d7d;
    display: grid;
    grid-template-columns: var(--faq-anchor-grid, repeat(4, minmax(0, 1fr)));
  }

  .faq-page .first-anchor-nav a {
    min-height: 120px;
    padding: 20px 10px;
    border: 0;
    border-right: 1px solid #7d7d7d;
    color: #7d7d7d;
    gap: 16px;
    font-size: 24px;
    line-height: 48px;
    font-weight: 500;
    letter-spacing: 0;
    position: relative;
  }

  .faq-page .first-anchor-nav a:nth-child(odd) {
    border-right: 1px solid #7d7d7d;
  }

  .faq-page .first-anchor-nav a:last-child {
    border-right: 0;
  }

  .faq-page .first-anchor-nav a.is-current {
    color: #474747;
  }

  .faq-page .first-anchor-nav a.is-current::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: #474747;
  }

  .faq-page .first-anchor-nav i {
    width: 21px;
    height: 21px;
    border-right-width: 2px;
    border-bottom-width: 2px;
  }

  .faq-page .faq-groups {
    padding-bottom: 120px;
  }

  .faq-page .faq-group {
    padding-top: 80px;
  }

  .faq-page .faq-group-title {
    min-height: 64px;
    padding: 12px 10px;
    border-radius: 4px;
    background: #c48a4a;
    color: #fafafa;
    display: flex;
    align-items: center;
    font-size: 24px;
    line-height: 40px;
    font-weight: 500;
    letter-spacing: 1.2px;
  }

  .faq-page .faq-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .faq-page .faq-item {
    padding-bottom: 30px;
    border-bottom: 1px solid #c48a4a;
  }

  .faq-page .faq-item-question {
    min-height: 48px;
    padding: 0;
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    column-gap: 15px;
  }

  .faq-page .faq-item-badge {
    width: 36px;
    height: 36px;
    margin-right: 0;
    padding-bottom: 2px;
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 1.2px;
  }

  .faq-page .faq-item-badge--q {
    background: #c48a4a;
    color: #fafafa;
  }

  .faq-page .faq-item-badge--a {
    border: 1.5px solid #c48a4a;
    background: #fafafa;
    color: #c48a4a;
  }

  .faq-page .faq-item-question-text {
    color: #474747;
    font-size: 16px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: 0.8px;
  }

  .faq-page .faq-item-toggle {
    width: 24px;
    height: 42px;
    color: #c48a4a;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
  }

  .faq-page .faq-item-answer {
    padding: 30px 0 0;
  }

  .faq-page .faq-item-answer-inner {
    min-height: 48px;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    column-gap: 13px;
  }

  .faq-page .faq-item-answer-text {
    padding-top: 0;
    color: #474747;
    font-size: 16px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: 0.8px;
  }

  .faq-page .faq-empty {
    margin-top: 40px;
    color: #82654d;
    font-size: 16px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: 0.8px;
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .faq-page {
    --faq-pc-side-space: 28px;
  }

  .faq-page .first-anchor-nav {
    grid-template-columns: var(--faq-anchor-grid, repeat(4, minmax(0, 1fr)));
  }

  .faq-page .first-anchor-nav a {
    font-size: 20px;
  }
}
