
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

:root {
  --faq-ink: #173b31;
  --faq-muted: #71877d;
  --faq-blue: #21865a;
  --faq-line: #e3ece6;
  --faq-bg: #f8fbf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--faq-ink);
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  background: #fff;
}

.faq-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}

.faq-hero {
  padding: 105px 0 76px;
  background:
    radial-gradient(ellipse at 85% 12%, #e7f6eb 0, transparent 42%),
    linear-gradient(180deg, #f8fcf8, #f4faf5);
  border-bottom: 1px solid #e8f0e9;
}

.faq-eyebrow,
.faq-section-kicker,
.faq-sidebar-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #248554;
}

.faq-eyebrow span {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: #8dc6a5;
  vertical-align: middle;
  margin: 0 9px;
}

.faq-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.055em;
  margin: 18px 0 14px;
  font-weight: 800;
}

.faq-dot {
  color: var(--faq-blue);
}

.faq-hero p {
  font-size: 14px;
  line-height: 2;
  color: #6b8275;
  margin: 0;
}

.faq-search {
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 650px;
  height: 64px;
  padding: 0 22px;
  background: white;
  border: 1px solid #e0ece3;
  box-shadow: 0 12px 38px #234e340d;
  border-radius: 12px;
}

.faq-search svg {
  width: 21px;
  color: #799789;
}

.faq-search input {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  color: var(--faq-ink);
}

.faq-search input::placeholder {
  color: #a2b5a9;
}

.faq-search kbd {
  font-size: 10px;
  letter-spacing: .1em;
  color: #a6b9ad;
  background: #f3f8f3;
  padding: 6px 9px;
  border-radius: 5px;
}

.faq-main {
  padding-top: 70px;
  padding-bottom: 110px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  gap: 70px;
}

.faq-sidebar-label {
  color: #899d90;
  margin: 4px 0 22px;
}

.faq-sidebar-label span {
  letter-spacing: 0;
  font-size: 11px;
  margin-left: 10px;
}

.faq-categories {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.faq-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #667e70;
  text-align: left;
  padding: 15px 16px;
  font: 600 14px 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: .2s;
}

.faq-category:hover {
  background: #f1f8f2;
}

.faq-category.active {
  background: #e5f5e9;
  color: #207b4d;
}

.faq-category .num {
  font: 700 11px 'DM Sans', sans-serif;
  color: #a5b9aa;
}

.faq-category.active .num {
  color: #329666;
}

.faq-help {
  border-top: 1px solid var(--faq-line);
  margin-top: 34px;
  padding-top: 29px;
}

.faq-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7f5eb;
  color: var(--faq-blue);
  border-radius: 50%;
  height: 28px;
  width: 28px;
  font-weight: 800;
  margin-bottom: 14px;
}

.faq-help strong {
  display: block;
  font-size: 13px;
}

.faq-help p {
  font-size: 12px;
  line-height: 1.9;
  color: #8a9e90;
  margin-top: 9px;
}

.faq-content-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

.faq-section-kicker {
  font-size: 10px;
}

.faq-content h2 {
  font-size: 27px;
  letter-spacing: -.045em;
  margin: 12px 0 8px;
}

.faq-content-top p {
  color: #8a9e90;
  font-size: 12px;
  margin: 0;
}

.faq-result-count {
  color: #8a9f90;
  font-size: 12px;
  white-space: nowrap;
  margin-bottom: 4px;
}

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

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  padding: 24px 3px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font: 600 14px/1.85 'Noto Sans JP', sans-serif;
  color: #244437;
}

.faq-question:hover {
  color: var(--faq-blue);
}

.faq-question .faq-plus {
  flex: none;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #dce9df;
  border-radius: 50%;
  color: #67977b;
  font: 400 20px 'DM Sans', sans-serif;
  transition: .2s;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
  background: #e8f6ec;
  color: var(--faq-blue);
  border-color: #e8f6ec;
}

.faq-answer {
  padding: 0 42px 27px 3px;
  font-size: 13px;
  line-height: 2.15;
  color: #617e6b;
  white-space: normal;
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: #345b43;
}

.faq-empty {
  text-align: center;
  padding: 80px 10px;
  color: #859b8b;
}

.faq-empty > div {
  font-size: 52px;
}

.faq-empty h3 {
  font-size: 16px;
  color: #355b42;
}

.faq-empty p {
  font-size: 13px;
}

.faq-bottom {
  margin-top: 55px;
  padding: 26px 30px;
  background: #f6fbf6;
  border: 1px solid #e5f1e7;
  border-radius: 12px;
}

.faq-bottom span {
  font-size: 13px;
  font-weight: 700;
}

.faq-bottom p {
  font-size: 12px;
  line-height: 1.8;
  color: #819889;
  margin: 7px 0 0;
}

.faq-footer {
  border-top: 1px solid #e7eee8;
  padding: 30px 0;
  color: #9dad9f;
  font-size: 11px;
}

.faq-footer .faq-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

#faq-empty[hidden] {
  display: none;
}

@media (max-width: 800px) {
  .faq-hero {
    padding: 76px 0 54px;
  }

  .faq-main {
    padding-top: 38px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq-sidebar-label {
    margin-bottom: 12px;
  }

  .faq-categories {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .faq-categories::-webkit-scrollbar {
    display: none;
  }

  .faq-category {
    width: auto;
    white-space: nowrap;
    flex: none;
    gap: 10px;
    padding: 12px 16px;
  }

  .faq-help {
    display: none;
  }

  .faq-content h2 {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .faq-wrap {
    width: calc(100% - 36px);
  }

  .faq-hero {
    padding: 62px 0 48px;
  }

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

  .faq-hero p {
    font-size: 12px;
  }

  .desktop-only {
    display: none;
  }

  .faq-search {
    height: 57px;
    padding: 0 16px;
  }

  .faq-search kbd {
    display: none;
  }

  .faq-question {
    font-size: 13px;
    padding: 20px 0;
  }

  .faq-answer {
    padding-right: 10px;
    font-size: 12px;
  }

  .faq-footer .faq-wrap {
    flex-direction: column;
  }

  .faq-content-top {
    align-items: start;
  }
}










/* =========================================
   FAQ Responsive Design
   Tablet / Smartphone
========================================= */

/* タブレット */
@media screen and (max-width: 1024px) {
  .faq-wrap {
    width: calc(100% - 48px);
    max-width: 100%;
  }

  .faq-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 36px;
  }

  .faq-main {
    padding-top: 50px;
    padding-bottom: 80px;
  }

  .faq-hero {
    padding: 85px 0 65px;
  }

  .faq-content {
    min-width: 0;
  }

  .faq-question {
    gap: 16px;
    overflow-wrap: anywhere;
  }
}

/* スマートフォン・小型タブレット */
@media screen and (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .faq-wrap {
    width: calc(100% - 36px);
    max-width: 100%;
  }

  /* ヒーロー */
  .faq-hero {
    padding: 64px 0 46px;
  }

  .faq-hero h1 {
    font-size: clamp(28px, 7vw, 36px);
    line-height: 1.4;
    margin: 14px 0 12px;
  }

  .faq-hero p {
    font-size: 12px;
    line-height: 1.9;
  }

  .faq-eyebrow {
    font-size: 10px;
    letter-spacing: .1em;
  }

  /* 検索欄 */
  .faq-search {
    width: 100%;
    max-width: 100%;
    height: 56px;
    margin-top: 26px;
    padding: 0 15px;
    gap: 10px;
    border-radius: 10px;
  }

  .faq-search input {
    width: 100%;
    min-width: 0;
    font-size: 13px;
  }

  .faq-search kbd {
    display: none;
  }

  /* 2カラムから1カラムへ */
  .faq-main {
    padding-top: 30px;
    padding-bottom: 65px;
  }

  .faq-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .faq-sidebar,
  .faq-content {
    width: 100%;
    min-width: 0;
  }

  /* カテゴリーを横スクロールに */
  .faq-sidebar-label {
    margin: 0 0 12px;
  }

  .faq-categories {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .faq-categories::-webkit-scrollbar {
    display: none;
  }

  .faq-category {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    padding: 11px 15px;
    gap: 12px;
    white-space: nowrap;
    border: 1px solid #e3ece6;
    background: #fff;
    font-size: 12px;
    border-radius: 8px;
  }

  .faq-category.active {
    background: #e5f5e9;
    border-color: #c5e6ce;
    color: #207b4d;
  }

  .faq-help {
    display: none;
  }

  /* 質問一覧 */
  .faq-content-top {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }

  .faq-content h2 {
    font-size: 23px;
    line-height: 1.5;
    margin: 8px 0;
  }

  .faq-content-top p {
    font-size: 11px;
    line-height: 1.8;
  }

  .faq-result-count {
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 24px;
  }

  /* アコーディオン */
  .faq-question {
    min-height: 66px;
    padding: 19px 0;
    gap: 12px;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }

  .faq-question .faq-plus {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 18px;
  }

  .faq-answer {
    padding: 0 4px 24px 0;
    font-size: 12px;
    line-height: 2;
    overflow-wrap: anywhere;
  }

  .faq-bottom {
    margin-top: 38px;
    padding: 22px 20px;
  }

  .faq-footer {
    padding: 24px 0;
  }

  .faq-footer .faq-wrap {
    flex-direction: column;
    gap: 8px;
  }
}

/* 小型スマートフォン */
@media screen and (max-width: 375px) {
  .faq-wrap {
    width: calc(100% - 28px);
  }

  .faq-hero {
    padding: 52px 0 38px;
  }

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

  .faq-category {
    padding: 10px 12px;
    font-size: 11px;
  }

  .faq-content h2 {
    font-size: 21px;
  }

  .faq-question {
    font-size: 12px;
  }

  .faq-result-count {
    font-size: 10px;
  }
}
