/* ===========================================================
   いっぽ LP - common stylesheet
   Mobile-first / minimal JS / システムフォント中心
   =========================================================== */

:root {
  --ippo-pink: #E77886;
  --ippo-pink-dark: #D85C72;
  --ippo-orange: #FFA552;
  --ippo-gradient: linear-gradient(135deg, #E77886 0%, #FFA552 100%);
  --ippo-bg: #FFF8F4;
  --ippo-bg-soft: #FFEFE9;
  --ippo-card: #FFFFFF;
  --ippo-text: #4A3B3E;
  --ippo-text-light: #8C7B7E;
  --ippo-border: #F4DCD9;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 28px rgba(231, 120, 134, 0.16);
  --shadow-card: 0 6px 18px rgba(74, 59, 62, 0.08);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body.has-footprint-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('/assets/icon001.png');
  background-repeat: repeat;
  background-size: 160px 160px;
  opacity: 0.05;
  pointer-events: none;
}

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

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.4; }

p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:is(.pain-grid, .feature-grid, .steps, .game-grid) > .reveal:nth-child(2) { transition-delay: 0.06s; }
:is(.pain-grid, .feature-grid, .steps, .game-grid) > .reveal:nth-child(3) { transition-delay: 0.12s; }
:is(.pain-grid, .feature-grid, .steps, .game-grid) > .reveal:nth-child(4) { transition-delay: 0.18s; }
:is(.pain-grid, .feature-grid, .steps, .game-grid) > .reveal:nth-child(5) { transition-delay: 0.24s; }
:is(.pain-grid, .feature-grid, .steps, .game-grid) > .reveal:nth-child(6) { transition-delay: 0.3s; }
:is(.pain-grid, .feature-grid, .steps, .game-grid) > .reveal:nth-child(7) { transition-delay: 0.36s; }
:is(.pain-grid, .feature-grid, .steps, .game-grid) > .reveal:nth-child(8) { transition-delay: 0.42s; }

:is(.pain-card, .feature-card, .step-card, .game-card, .faq-item) {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:is(.pain-card, .feature-card, .step-card, .game-card, .faq-item):hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(74, 59, 62, 0.12);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--ippo-gradient);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(231, 120, 134, 0.26);
}

.btn-outline {
  background: #fff;
  color: var(--ippo-pink-dark);
  border: 2px solid var(--ippo-pink);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--ippo-bg-soft);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-block { width: 100%; }

.btn-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ippo-text-light);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 244, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ippo-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ippo-pink-dark);
  letter-spacing: 0.02em;
}

.logo .mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
}

.nav-toggle { display: none; }

.nav-toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--ippo-bg-soft);
  font-size: 1.3rem;
  cursor: pointer;
}

.nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ippo-text);
}

.nav a:hover { color: var(--ippo-pink-dark); }

.header-cta { display: none; }

@media (min-width: 860px) {
  .nav-toggle-label { display: none; }
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
}

/* mobile dropdown */
.nav-toggle:checked ~ .nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px 20px 24px;
  gap: 16px;
  border-bottom: 1px solid var(--ippo-border);
  box-shadow: var(--shadow-card);
}

/* ---------- Section base ---------- */

.section {
  padding: 72px 0;
}

.section-soft { background: var(--ippo-bg-soft); }

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ippo-bg-soft);
  color: var(--ippo-pink-dark);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1rem;
  color: var(--ippo-text-light);
  max-width: 640px;
}

.section-head {
  margin-bottom: 40px;
  text-align: center;
}

.section-head .section-lead { margin: 0 auto; }

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 64px;
  overflow: hidden;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  background: var(--ippo-gradient);
  top: -100px;
  right: -60px;
  animation: blob-float-1 9s ease-in-out infinite;
}

.hero::after {
  width: 240px;
  height: 240px;
  background: var(--ippo-orange);
  bottom: 90px;
  left: -50px;
  animation: blob-float-2 11s ease-in-out infinite;
}

@keyframes blob-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 28px) scale(1.12); }
}

@keyframes blob-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(26px, -22px) scale(1.08); }
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge,
.hero h1,
.hero-sub,
.hero-cta,
.btn-note,
.store-badges {
  opacity: 0;
  animation: hero-fade-up 0.7s ease forwards;
}

.hero-badge { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-sub { animation-delay: 0.28s; }
.hero-cta { animation-delay: 0.4s; }
.btn-note { animation-delay: 0.5s; }
.store-badges { animation-delay: 0.6s; }

.hero-cta .btn-primary {
  animation: hero-fade-up 0.7s ease forwards, cta-pulse 2.6s ease-in-out 1.6s infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--shadow-soft); }
  50% { box-shadow: 0 16px 36px rgba(231, 120, 134, 0.45); }
}

.hero-visual {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: hero-visual-enter 0.9s cubic-bezier(.21,1.02,.73,1) 0.3s forwards;
}

@keyframes hero-visual-enter {
  from { opacity: 0; transform: translateX(40px) scale(0.92); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.phone-mockup {
  animation: phone-float 5s ease-in-out 1.2s infinite;
}

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

.hero .container {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ippo-pink-dark);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5.4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.hero h1 .accent {
  background: var(--ippo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ippo-text-light);
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
  opacity: 0.88;
}

.store-badge img {
  height: 48px;
  width: auto;
  display: block;
}

/* phone mockup (frame around an actual app screenshot) */

.phone-mockup {
  margin: 0 auto;
  width: min(280px, 80vw);
  background: #1d1d1f;
  border-radius: 42px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.phone-screen {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: 30px;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Pain points (あるある) ---------- */

.pain-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
}

.pain-card {
  background: var(--ippo-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--ippo-border);
}

.pain-card .emoji {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.pain-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 0.92rem;
  color: var(--ippo-text-light);
}

/* ---------- Bridge (loss aversion) ---------- */

.bridge {
  text-align: center;
  background: var(--ippo-gradient);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 24px;
}

.bridge h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin-bottom: 16px;
}

.bridge p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
  opacity: 0.96;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: var(--ippo-card);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--ippo-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--ippo-text-light);
}

/* ---------- How to use (steps) ---------- */

.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step-card {
  position: relative;
  background: var(--ippo-card);
  border-radius: var(--radius-md);
  padding: 28px 20px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ippo-gradient);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--ippo-text-light);
}

/* ---------- Gamification ---------- */

.game-panel {
  background: var(--ippo-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.rank-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.rank-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--ippo-bg-soft);
  color: var(--ippo-text-light);
}

.rank-pill.active {
  background: var(--ippo-gradient);
  color: #fff;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ippo-pink-dark);
  margin-bottom: 8px;
}

.progress-bar {
  height: 14px;
  border-radius: 999px;
  background: var(--ippo-bg-soft);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 68%;
  border-radius: 999px;
  background: var(--ippo-gradient);
}

.progress-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ippo-text-light);
}

.game-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}

.game-card {
  background: var(--ippo-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.game-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-card p {
  font-size: 0.9rem;
  color: var(--ippo-text-light);
}

.stamp-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.stamp {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--ippo-bg-soft);
}

.stamp.filled {
  background: var(--ippo-gradient);
  color: #fff;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--ippo-card);
  border-radius: var(--radius-md);
  padding: 6px 22px;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.3rem;
  color: var(--ippo-pink-dark);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding-bottom: 18px;
  font-size: 0.92rem;
  color: var(--ippo-text-light);
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  background: var(--ippo-gradient);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  color: #fff;
}

.final-cta h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.2rem);
  margin-bottom: 12px;
}

.final-cta p {
  margin-bottom: 28px;
  opacity: 0.95;
}

.final-cta .store-badges { justify-content: center; }

.final-cta .btn-outline {
  background: #fff;
  border: none;
}

.qr-box {
  margin: 28px auto 0;
  width: 132px;
  height: 132px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 10px;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.final-note {
  margin-top: 18px;
  font-size: 0.82rem;
  opacity: 0.9;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #2A2024;
  color: #E9DEE0;
  padding: 48px 0 28px;
  font-size: 0.86rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.footer-tag {
  max-width: 320px;
  color: #C9B9BC;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #A8979A;
  font-size: 0.78rem;
}

/* ---------- Simple inner pages (privacy / terms / contact) ---------- */

.page-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--ippo-text-light);
}

.legal {
  background: var(--ippo-card);
  border-radius: var(--radius-lg);
  padding: 40px clamp(20px, 5vw, 48px);
  box-shadow: var(--shadow-card);
  margin-bottom: 64px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--ippo-pink-dark);
}

.legal h2:first-child { margin-top: 0; }

.legal p, .legal li {
  font-size: 0.94rem;
  color: var(--ippo-text);
  margin-bottom: 10px;
}

.legal ul { padding-left: 1.4em; list-style: disc; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 0.88rem;
}

.legal th, .legal td {
  border: 1px solid var(--ippo-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--ippo-bg-soft);
  color: var(--ippo-pink-dark);
  white-space: nowrap;
}

.legal .updated {
  text-align: right;
  font-size: 0.82rem;
  color: var(--ippo-text-light);
  margin-bottom: 24px;
}

.contact-card {
  background: var(--ippo-card);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-card);
  margin-bottom: 64px;
  text-align: center;
}

.contact-card .feature-icon {
  margin: 0 auto 20px;
}

.contact-mail {
  display: inline-block;
  margin: 20px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ippo-pink-dark);
  word-break: break-all;
}

.contact-note {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--ippo-text-light);
  font-size: 0.9rem;
}

.contact-list {
  max-width: 480px;
  margin: 0 auto 28px;
  text-align: left;
}

.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--ippo-border);
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--ippo-pink-dark);
  font-weight: 700;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero::before,
  .hero::after,
  .hero-badge,
  .hero h1,
  .hero-sub,
  .hero-cta,
  .btn-note,
  .store-badges,
  .hero-cta .btn-primary,
  .hero-visual,
  .phone-mockup {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
