/* SleepMine LP — スタイル一式（アプリテーマ準拠） */

body.lp.lp--sleepmine {
  color-scheme: light;
  --color-bg: #f7f5f6;
  --color-surface: #f1eff1;
  --color-text: #1c1c1e;
  --color-text-muted: #6b6560;
  --color-accent: #6ba3c7;
  --color-accent-hover: #5690b5;
  --color-cta: #8b6f47;
  --color-cta-hover: #75603c;
  --color-border: #dbdbe0;
  --color-ring: #6ba3c7;
  --color-nav-bg: #f1eff1;
  --shadow-sm: 0 1px 3px rgba(28, 28, 30, 0.05);
  --shadow-md: 0 4px 16px rgba(28, 28, 30, 0.07);
  --shadow-cta: 0 2px 8px rgba(139, 111, 71, 0.22);
  --lp-max-width-wide: 60rem;
  --lp-gutter: 1rem;
  --lp-section-y: 3rem;
  --text-hero: clamp(1.75rem, 5vw, 2.5rem);
  --text-h2: clamp(1.375rem, 3.5vw, 1.75rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-caption: 0.8125rem;
  --text-legal: 0.6875rem;
  --leading-body: 1.75;
  --leading-heading: 1.3;
  --lp-app-icon-radius: 22%;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

@media (min-width: 48rem) {
  body.lp.lp--sleepmine {
    --lp-gutter: 1.5rem;
    --lp-section-y: 5rem;
  }
}

body.lp.lp--sleepmine main {
  max-width: none;
  padding: 0;
}

body.lp.lp--sleepmine a:not(.lp-cta):not(.lp-logo) {
  color: var(--color-accent);
}

body.lp.lp--sleepmine a:not(.lp-cta):not(.lp-logo):hover {
  color: var(--color-accent-hover);
}

body.lp.lp--sleepmine .site-nav a[aria-current="page"] {
  display: none;
}

.lp-skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.lp-skip:focus {
  left: var(--lp-gutter);
  top: var(--lp-gutter);
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

.lp-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: var(--space-md) var(--lp-gutter);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.lp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--lp-max-width-wide);
  margin: 0 auto;
}

@media (max-width: 47.99rem) {
  .lp-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .lp-header__inner .lp-logo {
    align-self: flex-start;
  }

  .lp-header__inner .site-nav {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
}

.lp-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.lp-logo:hover {
  color: var(--color-text);
}

.lp-logo__icon {
  display: block;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  line-height: 0;
  border-radius: var(--lp-app-icon-radius);
  overflow: hidden;
  background: var(--color-nav-bg);
}

.lp-logo__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--lp-app-icon-radius);
}

.lp-logo__icon--placeholder {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-cta);
  background: color-mix(in srgb, var(--color-cta) 10%, var(--color-surface));
}

.lp-section {
  padding-block: var(--lp-section-y);
}

.lp-section__inner {
  width: 100%;
  max-width: var(--lp-max-width-wide);
  margin: 0 auto;
  padding-inline: var(--lp-gutter);
}

.lp-section--hero {
  padding-top: var(--space-xl);
}

.lp-hero {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  text-align: center;
}

.lp-hero__tagline {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: var(--leading-body);
}

.lp-hero__title {
  margin: 0 0 var(--space-md);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: var(--leading-heading);
  letter-spacing: -0.02em;
}

.lp-hero__lead {
  margin: 0 0 var(--space-lg);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
}

.lp-hero__content {
  max-width: 28rem;
  margin-inline: auto;
}

.lp-heading {
  margin: 0 0 var(--space-lg);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: var(--leading-heading);
  letter-spacing: -0.02em;
}

.lp-heading--center {
  text-align: center;
}

.lp-prose {
  max-width: 36rem;
}

.lp-prose p {
  margin: 0 0 var(--space-md);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
}

.lp-prose p:last-child {
  margin-bottom: 0;
}

.lp-prose--center {
  margin-inline: auto;
  text-align: center;
}

.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  text-decoration: none;
  background: var(--color-cta);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-cta);
  transition: background 0.15s ease, transform 0.1s ease;
}

.lp-cta:hover {
  color: #ffffff;
  background: var(--color-cta-hover);
}

.lp-cta:active {
  transform: scale(0.98);
}

.lp-cta:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
}

.lp-cta--soon {
  pointer-events: none;
  cursor: default;
  color: var(--color-text-muted);
  background: var(--color-surface);
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.lp-cta--soon:hover,
.lp-cta--soon:active {
  color: var(--color-text-muted);
  background: var(--color-surface);
  transform: none;
}

.lp-feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

body.lp.lp--sleepmine .lp-prose--center + .lp-feature-grid,
body.lp.lp--sleepmine .lp-heading--center + .lp-feature-grid {
  margin-top: var(--space-xl);
}

.lp-card {
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.lp-icon {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.lp-card__title {
  margin: 0 0 var(--space-xs);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.lp-card__body {
  margin: 0 0 var(--space-md);
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
}

.lp-card__body:last-child {
  margin-bottom: 0;
}

.lp-list {
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.lp-list li + li {
  margin-top: var(--space-xs);
}

.lp-list--check {
  max-width: 28rem;
  margin-inline: auto;
}

.lp-list--center {
  text-align: center;
}

.lp-list--check li::before {
  content: "● ";
  color: var(--color-accent);
}

.lp-pricing-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  max-width: none;
  margin-inline: 0;
  padding: 0;
  list-style: none;
}

.lp-pricing-card {
  text-align: center;
}

.lp-note {
  margin: var(--space-lg) auto 0;
  max-width: 32rem;
  font-size: var(--text-caption);
  line-height: 1.5;
  text-align: center;
  color: var(--color-text-muted);
}

.lp-section--cta-final {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.lp-section--legal {
  padding-block: var(--space-lg);
}

.lp-legal {
  max-width: 30rem;
  margin-inline: auto;
}

#tokushoho,
#app-terms,
#pricing {
  scroll-margin-top: 4rem;
}

.lp-legal__prose {
  padding-top: 0.5rem;
}

.lp-legal__heading {
  margin: var(--space-md) 0 var(--space-xs);
  font-size: var(--text-small);
  font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 82%, var(--color-text-muted));
}

.lp-legal__heading:first-child {
  margin-top: 0;
}

.lp-legal__prose p {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-legal);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.lp-legal__updated {
  margin-top: var(--space-md) !important;
  font-size: var(--text-caption) !important;
  color: var(--color-text-muted) !important;
}

.lp-legal__details {
  border-top: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
}

.lp-legal__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding-block: 0.35rem;
  font-size: var(--text-legal);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lp-legal__summary::-webkit-details-marker {
  display: none;
}

.lp-legal__summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-muted);
}

.lp-legal__details[open] .lp-legal__summary::after {
  content: "−";
}

.lp-legal__summary:hover {
  color: var(--color-text);
}

.lp-legal__body {
  padding-top: 0.25rem;
  padding-bottom: 0.15rem;
}

.lp-legal__list {
  margin: 0;
}

.lp-legal__row {
  display: grid;
  grid-template-columns: minmax(5.75rem, 7.25rem) 1fr;
  gap: 0.2rem var(--space-sm);
  padding: 0.3rem 0;
  font-size: var(--text-legal);
  line-height: 1.45;
  color: var(--color-text-muted);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
}

.lp-legal__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lp-legal__row:first-child {
  padding-top: 0;
}

.lp-legal__row dt {
  margin: 0;
  font-weight: 500;
  color: color-mix(in srgb, var(--color-text) 82%, var(--color-text-muted));
}

.lp-legal__row dd {
  margin: 0;
}

.lp-legal__row a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.1em;
}

.lp-legal__row a:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 22rem) {
  .lp-legal__row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

.lp-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lp-cta-block .lp-cta {
  margin-top: var(--space-md);
}

.lp-footer {
  padding: var(--space-xl) var(--lp-gutter);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.lp-footer__inner {
  max-width: var(--lp-max-width-wide);
  margin: 0 auto;
  text-align: center;
}

.lp-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: var(--text-small);
}

.lp-footer__nav a {
  text-decoration: none;
}

.lp-footer__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lp-footer__copy {
  margin: 0;
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.lp-media {
  display: block;
  margin-inline: auto;
  max-width: 100%;
}

.lp-media--hero {
  width: min(100%, 17.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 19.5;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.lp-media--hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.lp-split {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

.lp-split__text {
  max-width: 36rem;
}

.lp-subheading {
  margin: 0 0 var(--space-md);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.lp-subheading--center {
  text-align: center;
}

.lp-feature-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

.lp-feature-text {
  max-width: 36rem;
  margin-inline: auto;
}

.lp-media--feature {
  width: min(100%, 15rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 19.5;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.lp-media--feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
  object-position: center top;
}

.lp-section--steps {
  padding-block: var(--space-xl);
}

.lp-diagram--steps {
  display: block;
  width: 100%;
  max-width: var(--lp-max-width-wide);
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.lp-diagram--steps img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.lp-media--premium {
  width: min(100%, 15rem);
  margin-inline: auto;
}

.lp-media--premium img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.lp-note--left {
  margin-inline: 0;
  text-align: left;
}

@media (min-width: 48rem) {
  .lp-hero {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .lp-hero__content {
    margin-inline: 0;
  }

  .lp-media--hero {
    margin-inline: 0 auto;
  }

  .lp-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lp-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .lp-split--reverse .lp-split__text {
    order: 2;
  }

  .lp-split--reverse .lp-media {
    order: 1;
  }

  .lp-split__text {
    margin-inline: 0;
  }

  .lp-media--feature {
    margin-inline: 0 auto;
  }

  .lp-media--premium {
    margin-inline: 0 auto;
  }

  .lp-section--steps {
    padding-block: var(--lp-section-y);
  }
}
