/* Otonacica よくある質問ページ専用CSS */

.faq-page {
  --faq-green: #35483d;
  --faq-green-dark: #26382f;
  --faq-coral: #e57c65;
  --faq-paper: #f7f3eb;
  --faq-text: #30332f;
  --faq-muted: #74766f;
  --faq-line: #dedbd2;
  margin: 0;
  color: var(--faq-text);
  background: var(--faq-paper);
}

.faq-page *,
.faq-page *::before,
.faq-page *::after {
  box-sizing: border-box;
}

.faq-main {
  padding-bottom: 95px;
}

.faq-hero {
  padding: 75px 20px 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 20%, rgba(229, 124, 101, .14), transparent 25rem),
    radial-gradient(circle at 88% 80%, rgba(53, 72, 61, .12), transparent 28rem),
    #f5f1e8;
  text-align: center;
}

.faq-hero p:first-child {
  margin: 0 0 12px;
  color: var(--faq-coral);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
}

.faq-hero h1 {
  margin: 0 0 16px;
  color: var(--faq-green-dark);
  font: 500 38px/1.4 Georgia, "Times New Roman", "Noto Serif JP", serif;
  letter-spacing: .09em;
}

.faq-hero p:last-child {
  margin: 0;
  color: var(--faq-muted);
  font-size: 14px;
  line-height: 1.8;
}

.faq-content {
  width: min(900px, calc(100% - 48px));
}

.faq-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 52px 0 78px;
  border: 1px solid var(--faq-line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .7);
}

.faq-index a {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border-right: 1px solid var(--faq-line);
  color: var(--faq-green-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: color .2s, background .2s;
}

.faq-index a:last-child {
  border-right: 0;
}

.faq-index a:hover {
  color: #fff;
  background: var(--faq-green);
}

.faq-group {
  scroll-margin-top: 25px;
  margin-bottom: 80px;
}

.faq-group__title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.faq-group__title > span {
  color: rgba(53, 72, 61, .22);
  font: italic 42px/1 Georgia, serif;
}

.faq-group__title p {
  margin: 0 0 4px;
  color: var(--faq-coral);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
}

.faq-group__title h2 {
  margin: 0;
  color: var(--faq-green-dark);
  font: 500 23px/1.5 Georgia, "Times New Roman", "Noto Serif JP", serif;
  letter-spacing: .06em;
}

.faq-list {
  border-top: 1px solid var(--faq-line);
}

.faq-list details {
  border-bottom: 1px solid var(--faq-line);
  background: rgba(255, 255, 255, .46);
}

.faq-list summary {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 20px 62px 20px 58px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "Q";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faq-coral);
  font: 700 19px/1 Georgia, serif;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(53, 72, 61, .28);
  border-radius: 50%;
  color: var(--faq-green);
  font: 400 18px/1 Arial, sans-serif;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary:hover {
  color: var(--faq-green);
}

.faq-answer {
  position: relative;
  padding: 0 58px 25px;
  color: #5f625c;
  font-size: 14px;
  line-height: 2;
}

.faq-answer::before {
  content: "A";
  position: absolute;
  left: 20px;
  top: 5px;
  color: var(--faq-green);
  font: 700 19px/1 Georgia, serif;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  color: var(--faq-coral);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-contact {
  padding: 50px 30px;
  border-radius: 18px;
  background: var(--faq-green-dark);
  color: #fff;
  text-align: center;
}

.faq-contact > p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.faq-contact h2 {
  margin: 0 0 25px;
  font: 500 23px/1.6 Georgia, "Times New Roman", "Noto Serif JP", serif;
}

.faq-contact .btn {
  min-width: 210px;
}

@media (max-width: 760px) {
  .faq-main {
    padding-bottom: 60px;
  }

  .faq-hero {
    padding: 53px 18px 50px;
  }

  .faq-hero h1 {
    font-size: 30px;
  }

  .faq-content {
    width: calc(100% - 30px);
  }

  .faq-index {
    grid-template-columns: repeat(2, 1fr);
    margin: 35px 0 58px;
  }

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

  .faq-index a:nth-child(2n) {
    border-right: 0;
  }

  .faq-index a:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .faq-group {
    margin-bottom: 58px;
  }

  .faq-group__title {
    gap: 13px;
  }

  .faq-group__title > span {
    font-size: 34px;
  }

  .faq-group__title h2 {
    font-size: 20px;
  }

  .faq-list summary {
    min-height: 68px;
    padding: 17px 49px 17px 43px;
    font-size: 14px;
  }

  .faq-list summary::before,
  .faq-answer::before {
    left: 13px;
  }

  .faq-list summary::after {
    right: 12px;
  }

  .faq-answer {
    padding: 0 18px 22px 43px;
    font-size: 13px;
  }

  .faq-contact {
    padding: 40px 20px;
  }

  .faq-contact h2 {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-page *,
  .faq-page *::before,
  .faq-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}