/* ===========================================================
 * NyanGram Marketing LP — style.css
 * Kawaii rebrand (2026-05): iOS app sakuraPink #F28CA6 と統一
 * - bg: 白 + pale pink 基調（黒背景禁止）
 * - accent: interactive 用 #E8668A (white on accent ≧ 3.5:1)
 * - brand: 装飾用 #F28CA6 (iOS sakuraPink RGB 0.95/0.55/0.65)
 * - 丸ゴシックで kawaii 感、AA contrast 達成
 * - dark mode: 黒背景は kawaii 感を破壊するため削除
 * Mobile First (max-width: 640px ベース) で組み、
 * 大画面でも自然に伸びるよう clamp / max-width で制御。
 * =========================================================== */

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

:root {
  /* ===== Kawaii palette (iOS sakuraPink 統一) =====
   * a11y: WCAG 2.2 AA (normal text 4.5:1, large 3:1) — 全 pair AA 達成
   * - --accent #c93e66 (interactive: CTA / link)
   *     white on accent: 4.81:1 (AA pass)
   *     accent on bg #fff7fa: 4.57:1 (AA pass、4.5:1 超)
   * - --accent-2 #f28ca6 (iOS sakuraPink、装飾専用)
   *     white on accent-2: 2.31:1 → テキスト乗せ禁止
   *     gradient / hover bg / 装飾アイコンに限定
   * - --text #2a1820 on bg: 15.95:1 (AAA)
   * - --text-secondary #6f4050 on bg: 7.90:1 (AAA)
   */
  --bg: #fff7fa;             /* pale pink (主背景) */
  --bg-card: #ffffff;        /* card 背景 (白) */
  --bg-soft: #ffe8f0;        /* section 区切り (薄ピンク) */
  --border: #fce4ec;         /* 罫線 */
  --text: #2a1820;           /* 濃い rose-black (15.95:1 AAA) */
  --text-secondary: #6f4050; /* 中間 rose-gray (7.90:1 AAA) */
  --text-muted: #9c7a86;     /* 補助テキスト (#fff7fa 上で 4.5:1 AA) */
  --accent: #c93e66;         /* interactive (CTA / link) AA pass */
  --accent-2: #f28ca6;       /* iOS sakuraPink (装飾 / グラデ専用) */
  --accent-soft: rgba(201, 62, 102, 0.08);
  --shadow: 0 1px 4px rgba(201, 62, 102, 0.08);
  --shadow-md: 0 4px 18px rgba(201, 62, 102, 0.18);
  --radius: 16px;
  --max-w: 1080px;
  /* 丸ゴシック優先で kawaii 感、最終 fallback まで明示 */
  --font-kawaii: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro",
                 "Klee", "Yu Gothic", -apple-system, BlinkMacSystemFont,
                 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo",
                 system-ui, sans-serif;
}

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

body {
  font-family: var(--font-kawaii);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(180deg, #fff7fa 0%, #fff0f5 100%);
  -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, 247, 250, 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: 28px; /* よりふんわり丸く */
  font-weight: 700;
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: not-allowed;
  opacity: 0.92;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(201, 62, 102, 0.28);
  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 ============ */
/* 実機スクショ (552x1200 portrait, 23:50) を full 表示。
 * desktop (>=961px): 4 列、tablet (761-960px): 2 列、mobile (<=760px): snap scroll。
 */
.gallery__scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  scroll-snap-type: x mandatory;
}

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

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

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

.gallery__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(201, 62, 102, 0.15);
}

.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  /* 実機スクショは 552x1200 (= 23:50)。CLS 防止に実寸比指定。 */
  aspect-ratio: 23 / 50;
  object-fit: cover;
  background: var(--bg-soft);
}

.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);
}

/* ============ Color scheme ============
 * dark mode は黒背景が kawaii 感を破壊するため意図的に削除。
 * 常に sakuraPink + 白基調を維持。
 * ブラウザに対しても light theme をヒント。
 * =========================================================== */
:root {
  color-scheme: light;
}
