:root {
  color-scheme: dark;
  --background: #121212;
  --surface: #1e1e1e;
  --surface-strong: #222222;
  --border: #444444;
  --text: #e0e0e0;
  --muted: #bdbdbd;
  --purple: #bb86fc;
  --purple-dark: #3700b3;
  --blue: #007bff;
  --blue-hover: #0056b3;
  --green: #26a269;
  --orange: #f59f00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: Arial, "Noto Sans JP", sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 60px 0 0;
  background-color: var(--background);
  color: var(--text);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 8px 12px;
  border-radius: 4px;
  background: #ffffff;
  color: #000000;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  width: 100%;
  height: 60px;
  align-items: center;
  justify-content: center;
  background: rgba(18, 18, 18, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.global-menu {
  max-width: 100%;
}

.global-menu ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 0;
  overflow-x: auto;
  list-style: none;
  white-space: nowrap;
  font-size: 14px;
  scrollbar-width: thin;
}

.global-menu li {
  margin: 0 15px;
}

.global-menu a {
  color: var(--purple);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.global-menu a:hover,
.global-menu a:focus-visible {
  color: #ffffff;
}

h1,
h2,
h3,
h4 {
  color: var(--purple);
  line-height: 1.35;
}

h2 {
  margin-top: 56px;
}

p,
ul,
ol,
table {
  text-align: justify;
}

ul,
ol {
  margin-left: 20px;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  display: flex;
  height: 58vh;
  min-height: 450px;
  max-height: 620px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.background-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(18, 18, 18, 0.84));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 32px 20px;
}

.hero-kicker {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  line-height: 0.94;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.hero h1 span {
  font-size: 0.52em;
  letter-spacing: 0.06em;
}

.hero-copy {
  margin: 22px 0 10px;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.download-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--blue);
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.download-link:hover,
.download-link:focus-visible {
  background: var(--blue-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-download {
  margin-top: 18px;
  font-size: 1.1em;
}

.hero-meta,
.hero-sub-link {
  margin: 8px 0 0;
  color: #dddddd;
  font-size: 0.9rem;
  text-align: center;
}

.hero-sub-link a {
  color: #ffffff;
  text-decoration: underline;
}

.lead-section {
  padding-top: 18px;
}

.eyebrow,
.feature-number,
.flow-label {
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lead-section h2 {
  margin-top: 6px;
  font-size: clamp(1.65rem, 5vw, 2.25rem);
}

.lead {
  font-size: 1.1rem;
}

.output-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1.2fr);
  align-items: center;
  margin: 34px 0;
}

.flow-source,
.flow-output {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.flow-source strong,
.flow-output strong {
  color: #ffffff;
}

.flow-source > span:last-child,
.flow-output > span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.flow-line {
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.flow-destinations {
  display: grid;
  gap: 10px;
}

.flow-output {
  position: relative;
  padding-left: 40px;
}

.status-dot {
  position: absolute;
  top: 23px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(38, 162, 105, 0.75);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.feature-card-wide {
  grid-column: 1 / -1;
}

.feature-card h3 {
  margin: 0 0 8px;
}

.feature-card p:last-child {
  margin-bottom: 0;
}

.feature-number {
  margin: 0 0 4px;
}

.control-preview {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid #555555;
  border-radius: 8px;
  background: #181818;
}

.control-preview-title,
.control-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.control-preview-title {
  justify-content: space-between;
  margin-bottom: 14px;
  color: #ffffff;
  font-weight: bold;
}

.ready-badge {
  color: var(--green);
  font-size: 0.82rem;
}

.control-chip {
  min-width: 150px;
  flex: 1 1 0;
  padding: 9px 12px;
  border-radius: 4px;
  background: #454545;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: bold;
  text-align: center;
}

.control-chip.is-on {
  background: var(--green);
}

.control-preview p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

table,
th,
td {
  border: 1px solid var(--border);
}

th,
td {
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  width: 29%;
  background: var(--surface-strong);
}

.notice-box {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--purple);
  background: var(--surface);
}

.notice-box h3 {
  margin-top: 0;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps > li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid #333333;
}

.step-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--purple-dark);
  color: #ffffff;
  font-weight: bold;
}

.steps h3 {
  margin: 0;
}

.steps p {
  margin: 6px 0 0;
}

.download-container {
  margin: 24px 0;
  text-align: center;
}

.checksum-link {
  margin: 10px 0 0;
  text-align: center;
}

details {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  padding: 14px 18px;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
}

.important {
  margin: 40px 0 20px;
  padding: 15px;
  border-left: 5px solid var(--purple);
  background-color: var(--purple-dark);
  color: #ffffff;
}

.important h2 {
  margin-top: 0;
}

.related-tools-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.related-tools-item {
  margin: 12px 0;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--surface);
}

.related-tools-item a {
  font-weight: bold;
}

.related-tools-desc {
  margin: 6px 0 0;
  color: #cccccc;
  font-size: 0.95em;
}

.trademark-notice {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  margin-top: 40px;
  padding: 20px 0 10px;
  border-top: 1px solid #333333;
  color: #888888;
  font-size: 0.9em;
  text-align: center;
}

.site-footer p {
  text-align: center;
}

@media (max-width: 700px) {
  .container {
    padding: 14px;
  }

  .global-menu {
    overflow: hidden;
  }

  .global-menu li {
    margin: 0 11px;
  }

  .hero {
    min-height: 480px;
  }

  .desktop-only {
    display: none;
  }

  .output-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow-line {
    width: 2px;
    height: 32px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--purple), var(--blue));
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-wide {
    grid-column: auto;
  }

  .control-preview-row {
    flex-direction: column;
    align-items: stretch;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  th {
    border-bottom: 0;
  }

  td {
    border-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .background-video {
    display: none;
  }

  .hero {
    background: linear-gradient(135deg, #241238, #121212 68%);
  }
}
