:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #edf7f4;
  --ink: #17202a;
  --muted: #5f6f82;
  --line: #dbe3ea;
  --primary: #c41455;
  --primary-dark: #8c123f;
  --accent: #0f8b8d;
  --accent-soft: #e8f7f4;
  --gold: #b7791f;
  --gold-soft: #fff7e6;
  --success: #157347;
  --warn: #d96c06;
  --shadow: 0 20px 50px rgba(23, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(246, 248, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.header-nav,
.hero-actions,
.footer-inner,
.safety-layout {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--surface);
}

.brand span {
  overflow-wrap: anywhere;
}

.header-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.header-nav a,
.header-download {
  text-decoration: none;
}

.header-download {
  display: inline-flex;
  justify-content: center;
  min-width: 116px;
  padding: 10px 15px;
  border: 1px solid rgba(196, 20, 85, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fbfcfe 0%, #eef7f5 54%, #fff4f7 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg span {
  position: absolute;
  display: block;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 24px 60px rgba(23, 32, 42, 0.08);
}

.hero-bg span:nth-child(1) {
  width: 420px;
  height: 260px;
  right: 8%;
  top: 18%;
}

.hero-bg span:nth-child(2) {
  width: 280px;
  height: 180px;
  right: 18%;
  bottom: 12%;
  background: rgba(232, 247, 244, 0.74);
}

.hero-bg span:nth-child(3) {
  width: 220px;
  height: 220px;
  right: -60px;
  top: 44%;
  border-radius: 50%;
  background: rgba(196, 20, 85, 0.08);
}

.hero-product {
  position: absolute;
  right: clamp(28px, 8vw, 130px);
  top: 50%;
  z-index: 1;
  display: grid;
  gap: 16px;
  justify-items: center;
  transform: translateY(-46%);
  pointer-events: none;
}

.hero-product img {
  width: min(330px, 28vw);
  border-radius: 36px;
  filter: drop-shadow(0 30px 48px rgba(23, 32, 42, 0.22));
}

.hero-product-card {
  display: grid;
  min-width: 260px;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 36px rgba(23, 32, 42, 0.14);
}

.hero-product-card span {
  color: var(--muted);
  font-size: 13px;
}

.hero-product-card strong {
  color: var(--primary);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 112px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-kicker img {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(196, 20, 85, 0.18);
  border-radius: 22px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.1);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 139, 141, 0.24);
}

.hero-small {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 900;
}

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

h1 {
  max-width: 850px;
  margin: 0;
  font-size: 76px;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 26px 0 0;
  color: #334155;
  font-size: 22px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 16px 34px rgba(196, 20, 85, 0.22);
}

.button-primary:hover {
  box-shadow: 0 18px 38px rgba(15, 139, 141, 0.24);
}

.button-secondary,
.button-copy {
  background: #fff;
  border-color: var(--line);
  color: #0f172a;
}

.button-full {
  width: 100%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 12px;
  margin: 48px 0 0;
}

.hero-facts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.hero-facts dd {
  margin: 2px 0 0;
  font-weight: 900;
}

.section,
.download-band,
.visual-section,
.safety-band,
.final-cta {
  padding: clamp(64px, 8vw, 110px) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.download-band,
.install-section {
  background: var(--surface);
}

.download-layout,
.visual-layout,
.faq-layout {
  display: grid;
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.download-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
}

.visual-layout {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
}

.faq-layout {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  align-items: start;
}

.download-layout p,
.section-heading p,
.visual-copy p,
.safety-layout p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.download-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.download-status {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.download-status.is-ready {
  border-left-color: var(--success);
}

.download-status.is-fallback {
  border-left-color: var(--warn);
}

.download-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.download-meta span {
  color: var(--muted);
}

.download-notes {
  margin: 4px 0 16px;
  padding: 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #315b5b;
  font-size: 14px;
}

.download-panel .button {
  margin-top: 14px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

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

.feature-card {
  min-height: 206px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  margin-bottom: 18px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff1f5;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.feature-card:nth-child(3n + 2) .feature-icon {
  background: var(--accent-soft);
  color: #0c6768;
}

.feature-card:nth-child(3n) .feature-icon {
  background: var(--gold-soft);
  color: var(--gold);
}

.visual-section {
  background: #edf7f4;
}

.product-visual {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 28px;
  border: 1px solid rgba(15, 139, 141, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.product-visual img {
  width: min(260px, 72vw);
  border-radius: 28px;
  object-fit: contain;
}

.status-stack {
  display: grid;
  width: 100%;
  gap: 10px;
}

.status-stack div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-stack span {
  color: var(--muted);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-list li {
  min-height: 232px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
}

.step-list p {
  margin: 0;
  color: var(--muted);
}

.safety-band {
  background: #17202a;
  color: #fff;
}

.safety-layout {
  gap: 28px;
}

.safety-layout img {
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  border-radius: 28px;
  background: #fff;
  object-fit: contain;
}

.safety-layout p {
  color: rgba(255, 255, 255, 0.78);
}

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

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

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.final-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #8c123f 0%, #0f8b8d 100%);
  color: #fff;
}

.final-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final-inner h2 {
  max-width: 760px;
}

.site-footer {
  padding: 26px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
  font-weight: 900;
}

.footer-inner a {
  color: #fff;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

  .download-layout,
  .visual-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

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

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

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 20px;
  }

  .hero-product {
    opacity: 0.16;
    right: -54px;
  }

  .hero-product img {
    width: 300px;
  }

  .hero-product-card {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .brand span {
    font-size: 14px;
  }

  .header-download {
    min-width: 96px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .hero {
    min-height: 650px;
    align-items: flex-end;
  }

  .hero-inner {
    width: min(100% - 32px, 1120px);
    padding: 78px 0 52px;
  }

  .hero-kicker {
    align-items: flex-start;
  }

  .hero-kicker img {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 29px;
  }

  h3 {
    font-size: 18px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-facts,
  .feature-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    gap: 8px;
  }

  .button {
    width: 100%;
  }

  .product-visual {
    padding: 18px;
  }

  .status-stack div,
  .safety-layout,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
