:root {
  color-scheme: light;
  --bg: #fdfdfd;
  --surface: #ffffff;
  --surface-warm: #fffaf0;
  --line: #f0dca8;
  --accent: #d47a00;
  --accent-dark: #8a4d00;
  --accent-soft: #ffcc66;
  --text: #2f2f2f;
  --muted: #646464;
  --shadow: 0 12px 28px rgba(120, 80, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  font-family: "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.75;
}

a {
  color: var(--accent-dark);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: #ffffff;
  background: #090b0d;
  border-radius: 6px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.app-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.site-logo {
  width: auto;
  height: 36px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--accent);
  text-decoration: none;
}

.site-nav .language-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 4px 6px;
}

.site-nav .header-download {
  padding: 6px 12px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 8px;
}

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

.hero {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 30px;
  padding: clamp(24px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(30, 20, 10, 0.16);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.content {
  padding: clamp(22px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.content section + section {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 14px;
  padding-left: 10px;
  color: var(--accent);
  border-left: 6px solid var(--accent-soft);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.35;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

ol,
ul {
  padding-left: 1.4em;
}

li + li {
  margin-top: 7px;
}

.notice {
  padding: 16px 18px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.notice p:last-child,
.content section > :last-child {
  margin-bottom: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 28%;
  color: var(--accent-dark);
  background: var(--surface-warm);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
}

.page-footer {
  padding: 24px 16px;
  color: #333333;
  text-align: center;
  background: #ffe9b3;
  border-top: 3px solid var(--accent-soft);
}

.page-footer p {
  margin-bottom: 4px;
}

.page-footer p:last-child {
  margin-bottom: 0;
}

.footer-inner {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 8px 0;
  font-weight: 700;
}

/* Dance Player landing page */
.landing-page {
  overflow-x: hidden;
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
  background: #f7f7f4;
}

.landing-page .app-site-header {
  padding-top: env(safe-area-inset-top);
}

.lp-shell {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.lp-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 145, 0, 0.24), transparent 30%),
    radial-gradient(circle at 12% 86%, rgba(255, 190, 70, 0.12), transparent 36%),
    #090b0d;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.4fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
  padding-top: clamp(26px, 4vw, 42px);
  padding-bottom: clamp(30px, 5vw, 54px);
}

.lp-hero-copy {
  min-width: 0;
}

.lp-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lp-app-icon {
  width: clamp(82px, 10vw, 112px);
  height: clamp(82px, 10vw, 112px);
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24%;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(0,0,0,.38);
}

.lp-hero .eyebrow {
  color: #ffbd59;
}

.lp-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  letter-spacing: -.035em;
  white-space: nowrap;
}

html[lang="en"] .lp-hero h1 {
  font-size: clamp(2.05rem, 3.7vw, 3rem);
}

.lp-main-copy {
  margin: 24px 0 6px;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  font-weight: 900;
  line-height: 1.35;
}

.lp-sub-copy {
  max-width: 700px;
  margin-bottom: 16px;
  color: #d7d9dc;
  font-size: clamp(.98rem, 1.5vw, 1.12rem);
  line-height: 1.65;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.trust-badges li {
  margin: 0;
  padding: 5px 10px;
  color: #fff6e8;
  background: rgba(255,145,0,.13);
  border: 1px solid rgba(255,189,89,.35);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.download-panel {
  scroll-margin-top: 80px;
}

.download-panel h2 {
  margin: 0 0 3px;
  padding: 0;
  color: #ffffff;
  border: 0;
  font-size: 1.12rem;
}

.device-advice {
  min-height: 1.6em;
  margin-bottom: 10px;
  color: #d7d9dc;
  font-size: .88rem;
}

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

.store-option {
  display: flex;
  min-height: 94px;
  padding: 14px 16px;
  color: #ffffff;
  background: #1b1e22;
  border: 1px solid #454a51;
  border-radius: 14px;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.store-option[href]:hover,
.store-option[href]:focus-visible {
  background: #25292e;
  border-color: #ff9a16;
  transform: translateY(-2px);
}

.store-option[aria-disabled="true"] {
  color: #999da3;
  background: #111316;
  border-color: #30343a;
  cursor: default;
  opacity: .78;
}

.store-option[aria-disabled="true"] .store-option-label,
.store-option[aria-disabled="true"] small {
  color: #858a91;
}

.store-option.is-recommended {
  background: linear-gradient(145deg, #8a4d00, #d47a00);
  border-color: #ffbd59;
  box-shadow: 0 12px 28px rgba(212,122,0,.22);
}

.store-option-label {
  color: #ffbd59;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.store-option.is-recommended .store-option-label {
  color: #fff1d6;
}

.store-option strong {
  margin: 2px 0;
  font-size: 1rem;
  line-height: 1.35;
}

.store-option small {
  color: #aeb3b9;
  font-size: .7rem;
}

.store-option.is-recommended small {
  color: #fff0d6;
}

.store-badge-link {
  min-height: 94px;
  padding: 12px 18px;
  align-items: center;
}

.store-badge-link img {
  display: block;
  max-width: 100%;
  flex: 0 0 auto;
}

/* Google配布画像の上下余白を含め、黒いバッジ本体の高さをAppleバッジとそろえる。 */
.store-badge-link--apple img {
  width: auto;
  height: 52px;
}

.store-badge-link--google img {
  width: auto;
  height: 68px;
}

.no-script-note {
  margin: 10px 0 0;
  color: #d7d9dc;
  font-size: .8rem;
}

.qr-card {
  padding: 24px;
  color: #222222;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  box-shadow: 0 24px 58px rgba(0,0,0,.34);
}

.qr-card h2 {
  margin: 0 0 14px;
  padding: 0;
  color: #2f2f2f;
  border: 0;
  font-size: 1.25rem;
}

.qr-image {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 12px;
  image-rendering: pixelated;
}

.qr-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .85rem;
}

.qr-card code {
  display: block;
  color: var(--accent-dark);
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.lp-section {
  padding: clamp(54px, 8vw, 92px) 0;
}

.lp-section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

.lp-section-heading h2,
.privacy-highlight h2 {
  margin-bottom: 10px;
  padding: 0;
  color: var(--text);
  border: 0;
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
}

.lp-section-heading > p:last-child {
  color: var(--muted);
}

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

.feature-item {
  min-width: 0;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e7d7b7;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.feature-number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.feature-item h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.feature-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .9rem;
}

.screenshot-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.privacy-highlight {
  background: #fff5df;
  border-top: 1px solid #f0dca8;
  border-bottom: 1px solid #f0dca8;
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
  gap: 24px 52px;
  align-items: center;
}

.privacy-grid > div:first-child p:last-child {
  margin-bottom: 0;
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  margin: 0;
  padding: 12px;
  color: #714000;
  background: #ffffff;
  border: 1px solid #f0dca8;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 800;
}

.privacy-points li::before {
  content: "✓";
  margin-right: 6px;
  color: #18854b;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
}

.company-section {
  padding: clamp(30px, 5vw, 48px) 0;
  background: #ffffff;
}

.company-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.company-intro .eyebrow {
  margin-bottom: 3px;
}

.company-intro h2 {
  margin: 0;
  padding: 0;
  color: var(--text);
  border: 0;
  font-size: clamp(1.25rem, 2.7vw, 1.8rem);
}

.company-link {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: var(--accent-dark);
  border: 1px solid #d5b676;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.company-link:hover,
.company-link:focus-visible {
  color: #ffffff;
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--accent-dark);
  background: #ffffff;
  border-color: #d5b676;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: #ffffff;
}

@media (max-width: 820px) {
  .lp-hero-grid {
    grid-template-columns: 1fr;
  }

  .qr-card {
    display: none;
  }

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

@media (max-width: 680px) {
  .header-inner {
    gap: 10px;
  }

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

  .page {
    width: min(100% - 24px, 960px);
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table th {
    border-bottom: 0;
  }

  .app-site-header .header-inner {
    flex-direction: row;
    align-items: center;
  }

  .app-brand {
    min-width: 0;
    font-size: .83rem;
  }

  .app-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .app-site-header .site-nav {
    flex: 0 0 auto;
  }

  .lp-shell {
    width: min(100% - 24px, 1060px);
  }

  .lp-hero-grid {
    display: block;
    min-height: calc(100svh - 55px - env(safe-area-inset-top));
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .lp-title-row {
    gap: 12px;
  }

  .lp-title-row > div {
    min-width: 0;
  }

  .lp-app-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  .lp-hero h1 {
    font-size: clamp(1.55rem, 7.7vw, 2.1rem);
    white-space: normal;
  }

  html[lang="en"] .lp-hero h1 {
    font-size: clamp(1.45rem, 6.4vw, 1.8rem);
  }

  .lp-main-copy {
    margin-top: 14px;
    font-size: 1.38rem;
  }

  .lp-sub-copy {
    margin-bottom: 10px;
    font-size: .84rem;
    line-height: 1.5;
  }

  .trust-badges {
    gap: 5px;
    margin-bottom: 12px;
  }

  .trust-badges li {
    padding: 3px 8px;
    font-size: .68rem;
  }

  .download-panel h2 {
    font-size: 1rem;
  }

  .device-advice {
    min-height: 0;
    margin-bottom: 7px;
    font-size: .74rem;
    line-height: 1.4;
  }

  .store-options {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .store-option {
    min-height: 76px;
    padding: 10px;
    border-radius: 11px;
  }

  .store-badge-link {
    grid-column: 1 / -1;
    min-height: 84px;
    padding: 7px 12px;
  }

  .store-option strong {
    font-size: .82rem;
  }

  .store-option small {
    font-size: .62rem;
  }

  .store-option.is-recommended {
    grid-column: 1 / -1;
    min-height: 82px;
    order: -1;
  }

  .store-option.is-secondary {
    grid-column: 1 / -1;
    min-height: 58px;
  }

  .store-badge-link.is-recommended,
  .store-badge-link.is-secondary {
    min-height: 84px;
  }

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

  .feature-item {
    padding: 18px;
  }

  .feature-number {
    margin-bottom: 12px;
  }

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

  .privacy-points {
    grid-template-columns: 1fr 1fr;
  }

  .company-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 360px) {
  .app-brand span {
    max-width: 145px;
    line-height: 1.2;
  }

  .site-nav .header-download {
    padding: 5px 8px;
    font-size: .76rem;
  }

  .lp-hero-grid {
    padding-top: 13px;
  }

  .lp-app-icon {
    width: 58px;
    height: 58px;
  }

  .lp-hero h1 {
    font-size: 1.35rem;
  }

  html[lang="en"] .lp-hero h1 {
    font-size: 1.18rem;
  }

  .lp-main-copy {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 1.2rem;
  }

  .trust-badges li {
    font-size: .62rem;
  }

  .store-option {
    min-height: 70px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
