/* Chiikawa Official — local clone styles */
:root {
  --pink: #ff9ec8;
  --pink-deep: #ff7ab0;
  --pink-soft: #ffe4f0;
  --cream: #fff8f4;
  --peach: #ffe8d6;
  --lavender: #f0e6ff;
  --mint: #d4f5e9;
  --sky: #d6eefc;
  --ink: #3a2f38;
  --ink-soft: #6b5a66;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(255, 126, 176, 0.18);
  --radius: 24px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.5rem;
  background: rgba(255, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 158, 200, 0.35);
}

.nav-logo {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s;
}

.nav-links a:hover {
  background: var(--pink-soft);
  transform: translateY(-1px);
}

.nav-cart {
  font-size: 1.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--pink-soft);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, #fff 0%, transparent 60%),
    linear-gradient(180deg, #ffe4f0 0%, #fff8f4 45%, #ffe8d6 100%);
  overflow: hidden;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blobs span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
  filter: blur(2px);
  animation: float 8s ease-in-out infinite;
}

.hero-blobs .b1 {
  width: 220px;
  height: 220px;
  background: #ffc1de;
  top: 8%;
  left: 6%;
  animation-delay: 0s;
}
.hero-blobs .b2 {
  width: 160px;
  height: 160px;
  background: #c9e8ff;
  top: 20%;
  right: 8%;
  animation-delay: -2s;
}
.hero-blobs .b3 {
  width: 120px;
  height: 120px;
  background: #d8f5e6;
  bottom: 18%;
  left: 18%;
  animation-delay: -4s;
}
.hero-blobs .b4 {
  width: 180px;
  height: 180px;
  background: #f0dfff;
  bottom: 10%;
  right: 14%;
  animation-delay: -1s;
}

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

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.hero-logo {
  width: min(280px, 70vw);
  margin: 0 auto 1rem;
  filter: drop-shadow(0 8px 20px rgba(255, 122, 176, 0.3));
}

.hero-jap {
  width: min(200px, 50vw);
  margin: 0 auto 1.25rem;
  opacity: 0.9;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.hero-tag {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 1.75rem;
}

.hero-trio {
  width: min(520px, 88vw);
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 16px 32px rgba(58, 47, 56, 0.12));
  animation: float 6s ease-in-out infinite;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(255, 122, 176, 0.4);
}

.btn-ghost {
  background: white;
  border-color: var(--pink);
  color: var(--pink-deep);
}

/* ---------- CA BAR — blur → sharp + bold ---------- */
.ca-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(640px, 94vw);
  margin: 0 auto 1.5rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(255, 158, 200, 0.55);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(255, 122, 176, 0.22);
  backdrop-filter: blur(8px);
}

.ca-label {
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--pink-deep);
}

.ca-value {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.15rem 0;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.7rem, 2.2vw, 0.88rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  border: none;
}

/* Start blurred + faint, then sharpen and go bold */
.ca-reveal {
  animation: ca-unblur 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  will-change: filter, opacity, letter-spacing, text-shadow;
}

@keyframes ca-unblur {
  0% {
    filter: blur(10px);
    opacity: 0.15;
    letter-spacing: 0.18em;
    font-weight: 400;
    text-shadow: 0 0 12px rgba(255, 122, 176, 0.5);
    transform: scale(0.98);
  }
  45% {
    filter: blur(4px);
    opacity: 0.55;
    letter-spacing: 0.08em;
    font-weight: 500;
  }
  75% {
    filter: blur(1.2px);
    opacity: 0.9;
    letter-spacing: 0.03em;
    font-weight: 650;
  }
  100% {
    filter: blur(0);
    opacity: 1;
    letter-spacing: 0.02em;
    font-weight: 700;
    text-shadow: none;
    transform: scale(1);
  }
}

/* Replay unblur gently every so often so it “runs” on the page */
.ca-reveal.is-ready {
  animation:
    ca-unblur 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both,
    ca-pulse-soft 5.5s ease-in-out 3.2s infinite;
}

@keyframes ca-pulse-soft {
  0%,
  88%,
  100% {
    filter: blur(0);
    opacity: 1;
  }
  92% {
    filter: blur(3px);
    opacity: 0.55;
  }
  96% {
    filter: blur(0);
    opacity: 1;
  }
}

.ca-copy {
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  box-shadow: 0 4px 14px rgba(255, 122, 176, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.ca-copy:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 18px rgba(255, 122, 176, 0.45);
}

.ca-copy:active {
  transform: scale(0.98);
}

.ca-copy.copied {
  background: linear-gradient(135deg, #7ed9b0 0%, #4cbc8a 100%);
  box-shadow: 0 4px 14px rgba(76, 188, 138, 0.35);
}

.ca-copy:disabled,
.ca-copy[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 10px rgba(255, 122, 176, 0.2);
}

.ca-copy:disabled:hover,
.ca-copy[disabled]:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(255, 122, 176, 0.2);
}

@media (max-width: 520px) {
  .ca-bar {
    width: 100%;
    padding-left: 0.85rem;
  }
  .ca-value {
    font-size: 0.68rem;
  }
}

/* ---------- SECTIONS ---------- */
section {
  padding: 4.5rem 1.25rem;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  display: block;
  text-align: center;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- MEET ---------- */
.meet {
  background: linear-gradient(180deg, var(--cream) 0%, var(--pink-soft) 100%);
}

.meet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .meet-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.meet-art {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(255, 122, 176, 0.25));
}

.meet-copy p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.meet-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- CHARACTERS ---------- */
.characters {
  background: var(--lavender);
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
}

.char-card {
  background: white;
  border-radius: var(--radius);
  padding: 1rem 0.75rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.char-card:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.char-card img {
  width: 100%;
  max-width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 0.6rem;
}

.char-card span {
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.95rem;
}

/* ---------- FUNNEL / FEATURES ---------- */
.features {
  background: var(--sky);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

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

/* ---------- ABOUT / Q&A ---------- */
.about {
  background: linear-gradient(180deg, var(--peach) 0%, var(--cream) 100%);
}

.qa-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qa-item {
  background: white;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(58, 47, 56, 0.06);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.qa-item[open] {
  border-color: var(--pink);
}

.qa-item summary {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.05rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.qa-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--pink-deep);
  flex-shrink: 0;
  transition: transform 0.2s;
}

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

.qa-item p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--ink-soft);
}

/* ---------- SOCIAL ---------- */
.social {
  background: var(--mint);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ig-grid a {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.ig-grid a:hover {
  transform: scale(1.04);
}

.ig-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-cta {
  text-align: center;
}

.social-cta img {
  width: min(280px, 70vw);
  margin: 0 auto 1rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #3a2f38;
  color: #f5eef2;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}

.footer-logo {
  height: 56px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-nagano {
  width: min(200px, 50vw);
  margin: 0 auto 1.25rem;
  opacity: 0.85;
}

.footer p {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.25rem 0;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-copy {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ---------- MISC ---------- */
.divider-wave {
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23ffe4f0' d='M0,24 C240,48 480,0 720,24 C960,48 1200,0 1440,24 L1440,48 L0,48 Z'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

.badge {
  display: inline-block;
  background: white;
  border: 2px solid var(--pink);
  color: var(--pink-deep);
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
