/* STST Q&A */

:root {
  --text: #222;
  --muted: #696969;
  --line: rgba(34,34,34,.12);
  --yellow: #f0c800;
  --yellow-soft: #fff7b5;
  --zebra-a: #eee;
  --zebra-b: #ddd;
  --header-height: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

button, input { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  color: #fff;
  background: rgba(34,34,34,.96);
  border-bottom: 3px solid var(--yellow);
}

.site-header__logo img { width: 156px; }

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.site-header__cta {
  padding: 10px 18px;
  color: #222;
  background: var(--yellow);
  border-radius: 999px;
}

/* TITLE */
.qa-page { padding-top: var(--header-height); }

.qa-title {
  padding: 100px 24px 84px;
  background:
    linear-gradient(rgba(255,255,255,.90), rgba(255,255,255,.90)),
    repeating-linear-gradient(-45deg,
      var(--zebra-a), var(--zebra-a) 20px,
      var(--zebra-b) 20px, var(--zebra-b) 40px);
  border-bottom: 12px solid var(--yellow);
}

.qa-title__inner,
.qa-search-section__inner,
.qa-list-section__inner {
  width: min(920px, 100%);
  margin-inline: auto;
}

.qa-title__eyebrow,
.qa-category__label {
  margin: 0 0 14px;
  color: #a58a00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.qa-title h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 76px);
  letter-spacing: -.055em;
}

.qa-title p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 600;
}

/* SEARCH */
.qa-search-section { padding: 54px 24px 40px; }

.qa-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 0 20px;
  border: 2px solid rgba(34,34,34,.10);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
}

.qa-search:focus-within { border-color: var(--yellow); }

.qa-search__input {
  width: 100%;
  padding: 18px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
}

.qa-search__clear {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 20px;
}

.qa-search__result {
  min-height: 22px;
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* LIST */
.qa-list-section { padding: 30px 24px 120px; }

.qa-category {
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 6px solid var(--yellow);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(0,0,0,.06);
}

.qa-category__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border: 0;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.qa-category__header:hover { background: #fffdf0; }

.qa-category__title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.04em;
}

.qa-category__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 25px;
  font-weight: 700;
}

.qa-category__content {
  display: none;
  padding: 0 24px 26px;
}

.qa-category.is-open .qa-category__content { display: block; }

/* ITEM */
.qa-item {
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.qa-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.qa-question__text {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 800;
}

.qa-question__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-soft);
  font-size: 19px;
}

.qa-answer { display: none; }
.qa-item.is-open .qa-answer { display: block; }

.qa-answer__inner {
  margin: 0 8px 24px;
  padding: 22px 24px;
  color: var(--muted);
  background: #f7f7f2;
  border-left: 5px solid var(--yellow);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 600;
}

/* SEARCH STATE */
.qa-category.is-search-hidden,
.qa-item.is-search-hidden { display: none; }

.qa-no-results {
  padding: 70px 24px;
  text-align: center;
  border-radius: 24px;
  background: #f7f7f2;
}

/* FOOTER */
.site-footer {
  padding: 72px 24px;
  text-align: center;
  color: rgba(255,255,255,.68);
  background: #0d0d14;
  border-top: 10px solid var(--yellow);
}

.site-footer img {
  width: 150px;
  margin: 0 auto 24px;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 22px;
  font-size: 12px;
}

@media (max-width: 640px) {
  :root { --header-height: 64px; }
  .site-header { padding-inline: 16px; }
  .site-header__logo img { width: 126px; }
  .site-header__nav > a:not(.site-header__cta) { display: none; }
  .qa-title { padding: 80px 18px 64px; }
  .qa-search-section { padding: 38px 18px 28px; }
  .qa-list-section { padding: 20px 18px 90px; }
  .qa-category__header { padding: 24px 20px; }
  .qa-category__content { padding: 0 16px 20px; }
}
