:root {
  --bg: #05060f;
  --bg-soft: #0a0c1c;
  --surface: rgba(18, 23, 43, 0.82);
  --surface-strong: rgba(25, 31, 58, 0.92);
  --border: rgba(190, 205, 255, 0.14);
  --border-strong: rgba(120, 166, 255, 0.34);
  --text: #eef2ff;
  --text-soft: #c0c8dd;
  --text-muted: #8791ac;
  --blue: #4d89ff;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --gold: #ffc56b;
  --green: #53e39c;
  --danger: #ff6b8a;
  --shadow: 0 22px 70px -34px rgba(0, 0, 0, 0.85);
  --container: 1120px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(77, 137, 255, 0.08), transparent 360px),
    linear-gradient(135deg, rgba(34, 211, 238, 0.05), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(170, 190, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 190, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
  opacity: 0.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: calc(100% - 48px);
  max-width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand img {
  flex: 0 0 auto;
}

.header-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.header-nav a,
.footer-links a,
.text-link {
  transition: color 160ms ease;
}

.header-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--cyan);
}

.help-hero {
  padding: 76px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 10px;
  color: #b9c7ff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.hero-lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 16px;
}

.status-panel,
.search-shell,
.faq-panel,
.side-filter,
.checklist-card,
.popular-card,
.category-card,
.empty-state {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-panel {
  padding: 20px;
}

.status-panel p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
}

.status-panel .status-kicker {
  margin-bottom: 8px;
  color: var(--green);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-section {
  padding: 18px 0 18px;
}

.search-shell {
  padding: 22px;
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(190, 205, 255, 0.2);
  border-radius: 8px;
}

.search-box:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(77, 137, 255, 0.14);
}

.search-box span {
  color: var(--cyan);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: #7d87a4;
}

.clear-button,
.copy-button,
.category-button,
.related-link,
.chip-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(190, 205, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.copy-button,
.related-link {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.clear-button:hover,
.copy-button:hover,
.category-button:hover,
.related-link:hover,
.chip-button:hover {
  border-color: var(--border-strong);
  background: rgba(77, 137, 255, 0.14);
  color: var(--text);
}

.search-meta {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.section {
  padding: 58px 0;
}

.linked-section {
  padding: 22px 0 0;
}

.linked-head {
  margin-bottom: 12px;
}

.linked-head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
}

.section-quiet {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
  margin-bottom: 22px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.popular-card {
  display: grid;
  gap: 10px;
  min-height: 148px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.popular-card strong {
  font-size: 15px;
  line-height: 1.5;
}

.popular-card span,
.category-card span {
  color: var(--text-muted);
  font-size: 12px;
}

.popular-card:hover,
.category-card:hover {
  border-color: var(--border-strong);
  background:
    linear-gradient(180deg, rgba(77, 137, 255, 0.09), rgba(255, 255, 255, 0)),
    var(--surface-strong);
}

.category-tabs,
.side-filter > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-button.active,
.chip-button.active {
  border-color: rgba(34, 211, 238, 0.5);
  background: linear-gradient(135deg, rgba(77, 137, 255, 0.32), rgba(34, 211, 238, 0.18));
  color: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.category-card {
  min-height: 118px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
}

.category-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.faq-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.side-filter {
  position: sticky;
  top: 88px;
  padding: 16px;
}

.side-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.side-filter > div {
  display: grid;
  grid-template-columns: 1fr;
}

.side-filter .category-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.faq-panel {
  padding: 20px;
}

.faq-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.result-count {
  margin: 0;
  color: var(--text-muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  white-space: nowrap;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  scroll-margin-top: 90px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(190, 205, 255, 0.14);
  border-radius: 8px;
  overflow: clip;
}

.faq-item[open] {
  border-color: var(--border-strong);
  background: rgba(18, 24, 48, 0.88);
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

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

.faq-title {
  font-weight: 800;
  line-height: 1.55;
}

.faq-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(190, 205, 255, 0.15);
  border-radius: 8px;
  color: var(--cyan);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
}

.faq-item[open] .faq-toggle {
  color: var(--gold);
}

.faq-body {
  padding: 0 18px 18px;
}

.faq-body p {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 14px;
}

.faq-body ul {
  margin: 0 0 14px 1.2em;
  padding: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.faq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
}

.faq-category,
.keyword-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(190, 205, 255, 0.14);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.faq-category {
  color: #cfe5ff;
  background: rgba(77, 137, 255, 0.14);
}

.faq-actions,
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.faq-actions {
  margin-top: 16px;
}

.related-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(190, 205, 255, 0.1);
}

.related-title {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  padding: 24px;
}

.empty-state p {
  margin: 10px 0 14px;
  color: var(--text-soft);
}

.text-link {
  color: #b7d7ff;
  font-weight: 800;
}

.contact-section {
  padding-bottom: 82px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.contact-lead {
  margin: 18px 0 0;
  color: var(--text-soft);
}

.checklist-card {
  padding: 22px;
}

.checklist-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-card li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
}

.checklist-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.72);
}

.site-footer {
  padding: 32px 0 42px;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .faq-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .status-panel,
  .side-filter {
    position: static;
  }

  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 32px);
    max-width: var(--container);
  }

  .header-inner {
    min-height: 62px;
  }

  .header-nav {
    display: none;
  }

  .help-hero {
    padding: 48px 0 22px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(28px, 7.4vw, 32px);
    word-break: break-all;
  }

  .search-shell,
  .faq-panel,
  .checklist-card {
    padding: 16px;
  }

  .search-box {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 54px;
  }

  .clear-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .popular-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .faq-panel-head {
    display: grid;
    gap: 8px;
  }

  .result-count {
    white-space: normal;
  }

  .faq-item summary {
    padding: 14px;
  }

  .faq-body {
    padding: 0 14px 16px;
  }

  .status-panel,
  .search-shell,
  .faq-panel,
  .side-filter,
  .checklist-card,
  .popular-card,
  .category-card,
  .faq-item,
  .keyword-pill,
  .faq-category {
    min-width: 0;
  }

  .copy-button,
  .related-link {
    min-width: 0;
  }

  .hero-lead,
  .status-panel p,
  .faq-body p,
  .faq-title {
    max-width: 22em;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .faq-title,
  .related-link {
    max-width: calc(100vw - 96px);
  }

  .related-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .related-link {
    width: 100%;
    max-width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
