:root {
  --bg: #120a26;
  --bg-alt: #1a0f38;
  --fg: #fdf7ff;
  --muted: #c5b8e6;
  --accent: #6ec8ff;       /* ポップな水色 */
  --accent-2: #c07bff;     /* 紫 */
  --accent-3: #ff8ad1;     /* ビビッドピンク */
  --accent-4: #ffd86e;     /* 元気な黄色 */
  --glow: #6ef0ff;
  --card: #221546;
  --radius: 16px;
  --max: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", system-ui, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--fg);
  line-height: 1.7;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(2px 2px at 20% 30%, #ffffffcc, transparent),
    radial-gradient(2px 2px at 75% 18%, #ffffff99, transparent),
    radial-gradient(1.5px 1.5px at 50% 60%, #ffffffaa, transparent),
    radial-gradient(2px 2px at 88% 72%, #ffffff88, transparent),
    radial-gradient(1.5px 1.5px at 12% 80%, #ffffff99, transparent),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 460px at 82% -8%, #6ec8ff3d, transparent),
    radial-gradient(680px 480px at 6% 4%, #ff8ad13d, transparent),
    radial-gradient(620px 520px at 50% 110%, #c07bff45, transparent),
    radial-gradient(420px 360px at 95% 90%, #ffd86e2e, transparent);
  padding: 6rem 1.5rem 5rem;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero::before { width: 320px; height: 320px; background: var(--accent-3); top: -80px; left: -60px; animation: drift 14s ease-in-out infinite; }
.hero::after  { width: 280px; height: 280px; background: var(--accent); bottom: -90px; right: -50px; animation: drift 18s ease-in-out infinite reverse; }
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 3rem;
}

/* Portrait with glowing ring */
.hero__portrait {
  position: relative;
  justify-self: center;
  width: clamp(220px, 30vw, 320px);
  aspect-ratio: 1;
}
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--glow), var(--accent-3), var(--accent-2), var(--accent), var(--glow));
  filter: blur(16px);
  opacity: 0.6;
  z-index: 0;
  animation: spin 16s linear infinite;
}
.hero__portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ffffff33;
  box-shadow: 0 20px 60px #00000066, inset 0 0 40px #6ee7ff14, 0 0 0 8px #ff9ed614;
  animation: wobble 5s ease-in-out infinite;
}

/* ぷかぷか浮くキラキラ */
.sparkle {
  position: absolute;
  z-index: 2;
  width: 18px; height: 18px;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  background: var(--accent-3);
  filter: drop-shadow(0 0 6px var(--accent-3));
  animation: twinkle 2.4s ease-in-out infinite;
}
.sparkle--1 { top: 2%; right: 8%; animation-delay: 0s; }
.sparkle--2 { bottom: 12%; left: -2%; width: 13px; height: 13px; background: var(--glow); filter: drop-shadow(0 0 6px var(--glow)); animation-delay: 0.8s; }
.sparkle--3 { top: 38%; right: -6%; width: 10px; height: 10px; background: #fff; filter: drop-shadow(0 0 6px #fff); animation-delay: 1.5s; }
.sparkle--4 { bottom: 2%; right: 18%; width: 15px; height: 15px; background: var(--accent-4); filter: drop-shadow(0 0 6px var(--accent-4)); animation-delay: 1.1s; }
.sparkle--5 { top: 18%; left: 4%; width: 11px; height: 11px; background: var(--accent-2); filter: drop-shadow(0 0 6px var(--accent-2)); animation-delay: 0.4s; }

/* ぷかっと浮くハート */
.heart {
  position: absolute; z-index: 3;
  bottom: 18%; right: -4%;
  width: 26px; height: 26px;
  fill: var(--accent-3);
  filter: drop-shadow(0 0 8px var(--accent-3));
  animation: float 3.6s ease-in-out infinite;
}

/* ふきだし */
.bubble {
  position: absolute;
  z-index: 3;
  top: 6%;
  left: -8%;
  background: #fff;
  color: #2a2350;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 14px;
  white-space: nowrap;
  box-shadow: 0 8px 22px #00000040;
  animation: float 4s ease-in-out infinite;
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -7px; left: 22px;
  border: 7px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}

.hero__text { min-width: 0; }
.hero__eyebrow {
  display: inline-block;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2a1450;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent-4), var(--accent-3));
  box-shadow: 0 6px 18px #ff8ad13d;
}
.hero__title {
  font-size: clamp(3rem, 8.5vw, 5.4rem);
  line-height: 1.02;
  font-weight: 800;
  margin: 0 0 1.2rem;
  background: linear-gradient(100deg, var(--accent-4) 0%, var(--accent-3) 35%, var(--accent-2) 65%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hue 8s linear infinite;
}
.hero__lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 2.2rem; max-width: 36rem; }
.hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.04); }
.btn--primary {
  background: linear-gradient(120deg, var(--accent-3), var(--accent-2) 60%, var(--accent));
  color: #fff;
  box-shadow: 0 10px 26px #c07bff55;
}
.btn--primary:hover { box-shadow: 0 14px 34px #ff8ad177; }
.btn--ghost { border: 1px solid #ffffff33; color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 5rem 1.5rem; }
.section--alt {
  max-width: none;
  background:
    radial-gradient(600px 300px at 15% 20%, #ff8ad126, transparent),
    radial-gradient(600px 320px at 85% 80%, #6ec8ff26, transparent),
    linear-gradient(120deg, #2a1556, #1a0f38);
  border-radius: 36px;
  margin: 1rem;
  position: relative;
  overflow: hidden;
}
.section--alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section__title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 2rem;
  position: relative;
  padding-left: 0.9rem;
}
.card h3 { font-weight: 800; }
.voice { font-weight: 800; }
.section__title::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em;
  width: 4px; height: 1.2em;
  border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
}
.section__text { color: var(--muted); margin: 0 0 2rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  --c: var(--accent);
  position: relative;
  background: var(--card);
  border: 1.5px solid #ffffff14;
  border-radius: 22px;
  padding: 1.8rem 1.6rem;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--c), transparent 85%);
}
.card:nth-child(1) { --c: var(--accent); }
.card:nth-child(2) { --c: var(--accent-3); }
.card:nth-child(3) { --c: var(--accent-4); }
.card:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--c) 22%, transparent);
}
.card__icon {
  width: 44px; height: 44px; color: var(--c);
  margin-bottom: 1rem; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border-radius: 14px; padding: 9px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 30%, transparent);
}
.card h3 { margin: 0 0 0.6rem; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Divider ---------- */
.divider { display: flex; gap: 0.9rem; justify-content: center; align-items: center; padding: 1rem 0 0; }
.divider .star {
  width: 12px; height: 12px;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  background: var(--accent-3);
  filter: drop-shadow(0 0 5px var(--accent-3));
  animation: twinkle 2.4s ease-in-out infinite;
}
.divider .star--mid { width: 18px; height: 18px; background: var(--accent-4); filter: drop-shadow(0 0 6px var(--accent-4)); animation-delay: 0.6s; }

/* ---------- Voice quote ---------- */
.voice {
  margin: 0;
  font-size: clamp(1.2rem, 3.4vw, 1.7rem);
  line-height: 1.6;
  font-weight: 600;
  text-align: center;
  color: var(--fg);
}
.voice__by { text-align: center; color: var(--accent); margin: 1rem 0 0; letter-spacing: 0.05em; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 3rem 1.5rem; color: var(--fg); }
.footer p { margin: 0.3rem 0; }
.footer__copy { color: var(--muted); font-size: 0.85rem; }
.voice__by { color: var(--accent-3); }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hue { to { background-position: 200% center; } }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.12); }
}
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes wobble {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.3; }
  50% { transform: scale(1.15) rotate(20deg); opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero__text > * { animation: rise 0.7s ease both; }
.card { animation: rise 0.6s ease both; }
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.25s; }
.hero__text > *:nth-child(2) { animation-delay: 0.06s; }
.hero__text > *:nth-child(3) { animation-delay: 0.12s; }
.hero__text > *:nth-child(4) { animation-delay: 0.18s; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .section__title { padding-left: 0; }
  .section__title::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__portrait::before, .hero__portrait img, .hero__text > *,
  .sparkle, .bubble, .hero__title, .heart, .card, .divider .star,
  .hero::before, .hero::after { animation: none; }
  html { scroll-behavior: auto; }
}
