:root {
  --bg-base: #0a090f;
  --bg-band: #17161c;
  --bg-surface: #161616;
  --bg-elevated: #202020;
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --border-accent: rgba(230,57,70,0.5);
  --text-primary: #f0f0f0;
  --text-secondary: #b6aaaa;
  --text-muted: #777;
  --red: #d91a01;
  --red-dark: #b01500;
  --red-pale: #ff8070;
  --red-dim: rgba(230,57,70,0.09);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Noto Sans JP", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--band { background: var(--bg-band); }
.section--steps { background: var(--bg-base); }
.section-label { text-align: center; margin-bottom: 16px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 4px 12px;
}
.tag--red { color: var(--red-pale); background: var(--red-dim); border-color: var(--border-accent); }
.section-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 19px;
  font-weight: 300;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.65;
}
.grad {
  background: linear-gradient(135deg, #fff 0%, #d0d0d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.nav:has(.nav__mobile-panel.open) {
  background: #000;
}
.nav--scrolled {
  background: rgba(23,22,28,0.7);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.nav--scrolled .nav__logo img {
  height: 25px !important;
  transition: height .3s ease;
}
.nav--scrolled .nav__inner {
  height: 60px;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 24px;
  transition: height .3s ease;
}
.nav__logo img { height: 28px; display: block; }
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 14px; color: #fff; transition: color .2s; }
.nav__links a:hover { color: var(--text-primary); }
.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 24px 4px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b6aaaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.lang-switch option { background: #1a1a1a; color: var(--text-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.btn--primary { color: #fff; background: var(--red); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--outline { color: var(--text-primary); background: transparent; border-color: var(--border); }
.btn--outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.btn--lg { font-size: 16px; padding: 14px 24px; border-radius: var(--radius-md); }
.btn svg { flex: 0 0 auto; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile-panel {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #000;
  border-bottom: 1px solid transparent;
  padding: 16px 20px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.nav__mobile-panel.open { display: flex; }
.nav__mobile-panel a {
  display: block;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: background .15s;
}
.nav__mobile-panel a:not(.btn):hover { background: rgba(255,255,255,0.06); }
.nav__mobile-panel .btn--primary {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
}
.nav-panel-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.hero {
  position: relative;
  padding: 176px 0 112px;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(10,9,15,0.1), var(--bg-base) 80%),
    radial-gradient(circle at 50% 10%, rgba(217,26,1,0.22), transparent 34%),
    var(--bg-base);
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 88px;
  width: min(780px, 92vw);
  height: 420px;
  transform: translateX(-50%);
  background: url("/images/hero-bg_02.png") center top / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}
.hero__eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.hero__title {
  font-size: 76px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 28px;
}
.hero__desc {
  margin: 0 auto 36px;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
}
.hero__note {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: -16px auto 0;
}
.work-step {
  max-width: 720px;
}
.work-step__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.work-step__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  color: var(--red-pale);
  background: var(--red-dim);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 32px;
  align-items: center;
}
.command-copy {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d0d10;
  overflow: hidden;
}
.command-copy__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.completion {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.completion__title {
  font-size: 42px;
  line-height: 1.14;
  font-weight: 700;
  margin-bottom: 16px;
}
.completion__text {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
  margin: 0 auto;
}
.command-copy__label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}
pre {
  padding: 22px;
  overflow-x: auto;
  color: #e8e1df;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.copy-status {
  color: var(--red-pale);
  font-size: 13px;
  min-height: 22px;
  margin-top: 14px;
}
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 13px;
}
.footer__copy { color: var(--text-muted); font-size: 13px; }

@media (min-width: 1101px) {
  .nav__mobile-panel { display: none !important; }
}

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { height: 60px; padding: 0 16px; }
  .nav__right { gap: 10px; }
  .nav__logo img { width: 110px; height: auto; }
  .lang-switch { padding: 4px 20px 4px 8px; font-size: 11px; }
  .hero { padding: 140px 0 84px; }
  .hero__title { font-size: 54px; }
  .section-title { font-size: 42px; }
  .work-step__title { font-size: 36px; }
  .command-panel { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .hero__title { font-size: 42px; }
  .section-title { font-size: 34px; }
  .work-step__title { font-size: 30px; }
  .completion__title { font-size: 30px; }
  .btn--lg { width: 100%; white-space: normal; }
  .command-copy__header { align-items: flex-start; flex-direction: column; }
  .command-copy__header .btn { width: 100%; }
  pre { font-size: 12px; }
}
