:root {
  color-scheme: light;
  color: #171717;
  background: #f5f5f5;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }

body { margin: 0; }

[hidden] { display: none !important; }

button, a { touch-action: manipulation; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid #a71921;
  outline-offset: 3px;
}

.faq {
  --accent: #a71921;
  --accent-bg: #fff6f6;
  --border: #717171;
  width: min(100%, 480px);
  min-height: calc(100vh - 48px);
  min-height: calc(100dvh - 48px);
  margin: 24px auto;
  border: 1px solid #aaa;
  border-top: 4px solid var(--accent);
  background: #f4f4f4;
}

.faq--home { background: #fff; }

.faq__header, .faq__breadcrumbs {
  padding-inline: 16px;
  background: #fff;
}

.faq__header { padding-block: 12px 16px; }
.faq--home .faq__header { min-height: 116px; }

.faq__header h1 {
  margin: 0;
  font-size: clamp(21px, 6vw, 24px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.faq__intro {
  margin: 6px 0 0;
  color: #595959;
  font-size: 13px;
}

.faq__breadcrumbs { padding-top: 12px; }

.faq__breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #4d4d4d;
  font-size: 12px;
}

.faq__breadcrumbs li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq__breadcrumbs li + li::before {
  margin-inline-end: 8px;
  content: "›" / "";
}

.faq__breadcrumbs button {
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
}

.faq__content { padding: 16px 16px 24px; }

.faq__screen { position: relative; }

.faq--home .faq__screen { margin: -16px -16px 0; }

.faq__screen--sliding { overflow: clip; }

.faq__screen-outgoing {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
}

.faq__options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq__options--home {
  padding: 16px;
  background: #f4f4f4;
}

.faq__options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 55px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}

.faq__option-arrow {
  display: grid;
  flex: 0 0 23px;
  place-items: center;
  height: 23px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.faq__option-arrow::before {
  width: 11px;
  height: 11px;
  background: currentColor;
  mask: url("../img/gnav/arrow_right.svg") center / contain no-repeat;
  content: "";
}

.faq__options button:hover, .faq__options button:focus-visible {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

.faq__answer {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent-bg);
  font-size: 15px;
  font-weight: 600;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.faq__contact {
  margin-top: 16px;
  padding: 16px;
  background: #fff;
  text-align: center;
}

.faq__contact h2 { margin: 0; font-size: 15px; }
.faq__contact p { margin: 5px 0 10px; font-size: 13px; }

.faq__contact a, .faq__listing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
}

.faq__contact a {
  color: #fff;
  background: #111;
}

.faq__listing {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: inherit;
}

.faq__contact a::after, .faq__listing::after { content: "›" / ""; }

.faq__actions {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.faq__back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 4px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 700;
}

.faq__back::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  mask: url("arrow-back.svg") center / contain no-repeat;
  content: "";
}

@media (max-width: 520px) {
  .faq {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    border-inline: 0;
    border-bottom: 0;
  }
}
