/* ===========================================================
 * NyanGram Marketing LP — style.css
 * 配色は既存サブページ（support / privacy 等）の
 * --bg / --accent / --accent-2 を踏襲。
 * Mobile First (max-width: 640px ベース) で組み、
 * 大画面でも自然に伸びるよう clamp / max-width で制御。
 * =========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fff5f5;
  --bg-card: #ffffff;
  --bg-soft: #fff0f3;
  --border: #fce4ec;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --accent: #e8668a;
  --accent-2: #f9a8c9;
  --accent-soft: rgba(232, 102, 138, 0.08);
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 18px rgba(232, 102, 138, 0.12);
  --radius: 14px;
  --max-w: 1080px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 999;
}

/* Header */
.lp-header {
  position: sticky;
  top: 0;
  background: rgba(255, 245, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.lp-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lp-nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

.lp-nav__brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.lp-nav__lang {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.lp-nav__lang:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* Section base */
section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 20px;
}

@media (max-width: 640px) {
  section {
    padding: 48px 18px;
  }
}

/* ============ Hero ============ */
.hero {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.hero__icon {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}

.hero__app-name {
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--text);
}

.hero__sub {
  font-size: clamp(14px, 3vw, 16px);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.85;
}

.hero__cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: not-allowed;
  opacity: 0.85;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.cta-button:hover {
  text-decoration: none;
}

.cta-button[aria-disabled="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: not-allowed;
}

.cta-button[aria-disabled="true"]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.cta-button[aria-disabled="true"]:hover::after,
.cta-button[aria-disabled="true"]:focus::after {
  opacity: 1;
}

.cta-badge {
  font-size: 12px;
  color: var(--text-muted);
}

.hero__visual {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.hero__visual img {
  max-width: 320px;
  border-radius: 24px;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual img {
    animation: none;
  }
}

/* ============ Trust Bar ============ */
.trust {
  padding: 18px 20px;
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
  margin: 0;
}

.trust__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.trust__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.trust__badge::before {
  content: "✓";
  font-weight: 800;
}

/* ============ Features ============ */
.features__title,
.section-title {
  font-size: clamp(22px, 4.5vw, 30px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-lead {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 760px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card__sub {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============ Gallery ============ */
.gallery__scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  scroll-snap-type: x mandatory;
}

@media (max-width: 760px) {
  .gallery__scroll {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-padding: 0 18px;
  }

  .gallery__scroll > figure {
    scroll-snap-align: start;
  }
}

.gallery__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery__caption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.gallery__note {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ Bond Section ============ */
.bond {
  background: var(--bg-soft);
  border-radius: 24px;
  padding: 48px 24px;
  margin: 0 auto;
}

.bond__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .bond__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bond__item {
  text-align: center;
}

.bond__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.bond__level {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.bond__name {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============ Free CTA ============ */
.free-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: 24px;
  padding: 56px 24px;
}

.free-cta .section-title {
  color: #fff;
}

.free-cta__lead {
  font-size: 16px;
  opacity: 0.95;
  margin-bottom: 28px;
  line-height: 1.85;
}

.free-cta .cta-button {
  background: #fff;
  color: var(--accent);
  font-weight: 800;
}

.free-cta .cta-button[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.95);
}

.free-cta .cta-badge {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
}

/* ============ Footer ============ */
.lp-footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.lp-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.lp-footer__links a {
  color: var(--text-secondary);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.lp-footer__copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ Dark mode (minimal) ============ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1416;
    --bg-card: #221a1d;
    --bg-soft: #2a1f23;
    --border: #3a2a30;
    --text: #f5e6e9;
    --text-secondary: #c5b3b8;
    --text-muted: #8a7a7e;
    --accent: #f48fae;
    --accent-2: #f9a8c9;
    --accent-soft: rgba(244, 143, 174, 0.12);
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.5);
  }

  .lp-header {
    background: rgba(26, 20, 22, 0.92);
  }

  .free-cta .cta-button {
    color: #4a1a2a;
  }
}
