:root {
  --bg: #f6f8fb;
  --ink: #182133;
  --muted: #667085;
  --panel: #ffffff;
  --line: #d9e2ef;
  --blue: #2458d3;
  --blue-dark: #173f9a;
  --green: #0f766e;
  --gold: #b7791f;
  --rose: #c2416b;
  --shadow: 0 18px 44px rgba(24, 33, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", "Yu Gothic UI", "Meiryo", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(231, 238, 249, 0.96), rgba(246, 248, 251, 0.6) 420px),
    var(--bg);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 226, 239, 0.9);
  background: rgba(246, 248, 251, 0.86);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(24, 33, 51, 0.12);
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
}

.share-button:hover,
.share-button:focus-visible {
  background: #2458d3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 7px;
  color: #334155;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.is-current {
  background: #e8eef8;
  color: var(--blue-dark);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.hero {
  min-height: min(560px, calc(100vh - 108px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.25rem, 7vw, 5.6rem);
  line-height: 0.98;
  font-weight: 520;
  letter-spacing: 0;
}

.home-title {
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  line-height: 1.08;
}

.lead {
  margin: 18px 0 0;
  max-width: 680px;
  color: #475467;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 620;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: #93b4ee;
  box-shadow: 0 10px 22px rgba(36, 88, 211, 0.14);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.hero-visual {
  min-height: 410px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background: #1d2939;
}

.hero-visual.video-panel {
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
  display: block;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
}

.hero-visual.video-panel::after {
  display: none;
}

.hero-video-frame {
  min-height: 358px;
  background: #0f172a;
}

.hero-video-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 358px;
  border: 0;
  display: block;
}

.visual-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.7;
}

.visual-caption.video-caption {
  position: static;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-refresh {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f8fb;
  color: var(--blue-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.video-refresh:hover {
  transform: rotate(18deg);
  border-color: #93b4ee;
  background: #e8eef8;
}

.video-refresh:disabled {
  cursor: not-allowed;
  color: var(--muted);
}

.section {
  margin-top: 42px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 540;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 620;
}

p {
  line-height: 1.85;
}

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

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

.card,
.note,
.policy-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 8px 20px rgba(24, 33, 51, 0.05);
}

.card p,
.note p,
.policy-block p {
  margin: 0;
  color: #475467;
}

.card .meta {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 650;
}

.list {
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: #475467;
  line-height: 1.9;
}

.software-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.software-panel,
.screenshot-carousel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 33, 51, 0.05);
}

.software-panel {
  padding: 22px;
  box-shadow: var(--shadow);
}

.software-panel .meta {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 650;
}

.software-facts {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.software-fact {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #475467;
}

.software-fact strong {
  color: var(--ink);
  font-weight: 650;
}

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

.software-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}

.software-tile {
  width: 100%;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(24, 33, 51, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.software-tile:hover,
.software-tile:focus-visible,
.software-tile.is-active {
  transform: translateY(-1px);
  border-color: #93b4ee;
  box-shadow: 0 12px 26px rgba(36, 88, 211, 0.12);
}

.software-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(36, 88, 211, 0.95), rgba(15, 118, 110, 0.9));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 760;
  overflow: hidden;
}

.software-icon-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.software-tile-copy {
  min-width: 0;
}

.software-toggle-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e8eef8;
  color: var(--blue-dark);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease;
}

.software-tile:hover .software-toggle-icon,
.software-tile:focus-visible .software-toggle-icon {
  background: #dbe8ff;
}

.software-tile.is-active .software-toggle-icon {
  transform: rotate(180deg);
}

.software-tile-title {
  margin: 0 0 8px;
  font-size: 1.24rem;
  font-weight: 650;
}

.software-tile-description {
  margin: 0;
  color: #475467;
  font-size: 0.95rem;
  line-height: 1.75;
}

.software-detail[hidden] {
  display: none;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.28s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-height: 320px;
  margin: 0;
  padding: 18px;
}

.screenshot-placeholder {
  min-height: 280px;
  border: 1px dashed #93b4ee;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  color: #334155;
  background:
    linear-gradient(135deg, rgba(36, 88, 211, 0.08), rgba(15, 118, 110, 0.08)),
    #f8fbff;
}

.screenshot-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.carousel-button {
  min-width: 42px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 650;
}

.carousel-button:hover {
  border-color: #93b4ee;
  background: #e8eef8;
}

.carousel-status {
  color: #475467;
  font-size: 0.92rem;
}

.difficulty-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.difficulty-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rank {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 7px;
  background: #e8eef8;
  color: var(--blue-dark);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: start;
}

.callout {
  border-left: 4px solid var(--gold);
  background: #fffbeb;
}

.footer {
  border-top: 1px solid var(--line);
  background: #eef3fa;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #475467;
}

.footer a {
  color: var(--blue-dark);
}

.page-title {
  padding: 42px 0 24px;
}

.page-title h1 {
  font-size: clamp(2rem, 5.5vw, 4.6rem);
}

.coming-soon {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
}

.coming-soon .card {
  max-width: 640px;
}

.embed-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.embed-panel iframe {
  width: 100%;
  min-height: 760px;
  border: 0;
  display: block;
  background: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.privacy-check {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 620;
}

.field-requirement {
  font-size: 0.9em;
  font-weight: 700;
}

.field-requirement.is-required {
  color: var(--rose);
}

.field-requirement.is-optional {
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  padding: 11px 12px;
}

.form-field textarea {
  min-height: 190px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(36, 88, 211, 0.22);
  border-color: #93b4ee;
}

.field-hint {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.song-field-panel {
  display: grid;
  gap: 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  visibility: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.song-field-panel.is-visible {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.song-select-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.32fr) minmax(0, 1fr);
  gap: 8px;
}

.privacy-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.7;
}

.privacy-check input {
  margin-top: 0.35em;
}

.contact-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status.is-success {
  color: var(--green);
  font-weight: 650;
}

.form-status.is-error {
  color: var(--rose);
  font-weight: 650;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .nav-wrap {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-actions {
    width: 100%;
    padding-right: 118px;
  }

  .share-button {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 30;
    min-height: 36px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .software-hero,
  .split,
  .grid,
  .software-card-grid,
  .grid.two,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 300px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .song-select-row {
    grid-template-columns: 1fr;
  }

  .embed-panel iframe {
    min-height: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
