:root {
  --faq-ink: #222;
  --faq-muted: #6b7280;
  --faq-line: #e6e8ef;
  --faq-bg: #fff;
  --faq-accent: #80bc00;
  --faq-accent-weak: #f3f4f6;
  --faq-radius: 10px;
}

.faq {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  color: var(--faq-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP",
    Arial, sans-serif;
}

.service-section-title {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  background-image: url("../img/top_img_02.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #333;
  overflow: hidden;
  margin-top: 0;
}

.service-section-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.service-section-title * {
  position: relative;
  z-index: 2;
}

.service-text {
  flex: 1;
  min-width: 320px;
}

.faq-intro {
  font-size: 14px;
  color: var(--faq-muted);
  margin: 0 0 18px;
}

.faq-contact-link {
  color: inherit;
  text-decoration: underline;
}

.faq-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 2px solid #000000;
  padding: 10px 0 20px;
  margin-bottom: 18px;
  position: relative;
}

.faq-tab-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.faq-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 70px;
  font-size: 14px;
  line-height: 1.4;
  padding: 0 8px;
  border: 1px solid var(--faq-line);
  border-radius: 6px;
  background: #fff;
  color: var(--faq-ink);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-tab:hover {
  background: var(--faq-accent-weak);
}

#tab-account:checked + .faq-tab,
#tab-order:checked + .faq-tab,
#tab-payment:checked + .faq-tab,
#tab-shipping:checked + .faq-tab,
#tab-product:checked + .faq-tab,
#tab-other:checked + .faq-tab {
  background: var(--faq-accent);
  color: #fff;
  border-color: var(--faq-accent);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04) inset;
}

.faq-tab:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.faq-panels {
  margin-top: 6px;
}

.faq-panel {
  display: none;
}

#tab-account:checked ~ .faq-panels #panel-account {
  display: block;
}

#tab-order:checked ~ .faq-panels #panel-order {
  display: block;
}

#tab-payment:checked ~ .faq-panels #panel-payment {
  display: block;
}

#tab-shipping:checked ~ .faq-panels #panel-shipping {
  display: block;
}

#tab-product:checked ~ .faq-panels #panel-product {
  display: block;
}

#tab-other:checked ~ .faq-panels #panel-other {
  display: block;
}

.faq-panel-title {
  font-size: 18px;
  margin: 10px 0 30px;
  padding: 0 0 10px;
  border-bottom: 2px solid #000000;
  letter-spacing: 0.04em;
}

.faq-panel-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
}

.faq-panel-title span {
  background: #fff;
  padding: 0 12px;
}

.accordion {
  display: grid;
  gap: 8px;
}

.accordion-item {
  background: var(--faq-bg);
  border: 1px solid var(--faq-line);
  border-radius: var(--faq-radius);
  overflow: clip;
}

.accordion-summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 44px 16px 16px;
  font-weight: 600;
  font-size: 15px;
}

.accordion-summary::-webkit-details-marker {
  display: none;
}

.accordion-summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: var(--faq-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.accordion-item[open] .accordion-summary::after {
  content: "–";
  color: var(--faq-ink);
}

.accordion-summary:hover {
  background: var(--faq-accent-weak);
}

.accordion-summary:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
  border-radius: calc(var(--faq-radius) - 2px);
}

.accordion-content {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--faq-line);
  color: #333;
  font-size: 14px;
  line-height: 1.75;
}

.accordion-summary::before {
  content: "Q.";
  font-weight: 800;
  color: var(--faq-accent);
  margin-right: 6px;
}

.accordion-item[open] .accordion-content p:first-child::before {
  content: "A. ";
  font-weight: 800;
  color: var(--faq-accent);
}

.faq.faq--animated .accordion-content {
  overflow: hidden;
  will-change: height, opacity, padding;
}

.accordion-item[open] {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .accordion-summary {
    padding: 14px 42px 14px 14px;
    font-size: 14px;
  }

  .accordion-content {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .faq-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .faq-tab {
    height: 60px;
    font-size: 13px;
    padding: 0 6px;
  }
}
