:root {
  color-scheme: light;
  --bg: #fff7ec;
  --text: #4a382e;
  --muted: #8a7566;
  --line: #ffe4c4;
  --line-strong: #ffd39e;
  --card: #ffffff;
  --accent: #ff8f3c;
  --accent-dark: #f4741a;
  --yellow: #ffcf4d;
  --yellow-soft: #fff0bf;
  --pink: #ff9bb5;
  --pink-soft: #ffe0e8;
  --mint: #7fd4c1;
  --shadow: 0 18px 44px rgb(240 150 80 / 20%);
  --shadow-soft: 0 10px 26px rgb(240 150 80 / 14%);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family:
    "M PLUS Rounded 1c",
    "Hiragino Maru Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    system-ui,
    sans-serif;
  font-weight: 500;
  line-height: 1.75;
  background:
    radial-gradient(circle at 12% -8%, rgb(255 207 77 / 40%), transparent 30rem),
    radial-gradient(circle at 108% 4%, rgb(255 155 181 / 34%), transparent 26rem),
    radial-gradient(circle at 50% 120%, rgb(127 212 193 / 22%), transparent 30rem),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
}

.background-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.background-deco span {
  position: absolute;
  font-size: 2rem;
  opacity: 0.5;
  animation: floaty 7s ease-in-out infinite;
}

.background-deco span:nth-child(1) {
  top: 14%;
  left: 6%;
}

.background-deco span:nth-child(2) {
  top: 30%;
  right: 8%;
  animation-delay: -2s;
}

.background-deco span:nth-child(3) {
  bottom: 20%;
  left: 10%;
  animation-delay: -4s;
}

.background-deco span:nth-child(4) {
  bottom: 12%;
  right: 12%;
  animation-delay: -1s;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header + ticker ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgb(255 247 236 / 96%), rgb(255 247 236 / 72%) 70%, transparent);
  backdrop-filter: blur(6px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #fff;
  object-fit: cover;
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b6b, #ff8f3c);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.ticker {
  position: sticky;
  top: 66px;
  z-index: 7;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(135deg, #fff2cf, #ffe6ef);
}

.ticker__label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  background: linear-gradient(135deg, #ff6b6b, #ff8f3c);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ticker__track {
  display: inline-block;
  padding: 8px 0;
  padding-left: 90px;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 700;
  color: #b5561d;
  animation: ticker 18s linear infinite;
}

.ticker__track span {
  margin: 0 22px;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 28px, 620px);
  margin: 0 auto;
  padding: 18px 0 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 4px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: 12px;
  padding: 26px 22px 28px;
  border: 2px solid #fff;
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 8%, rgb(255 207 77 / 40%), transparent 40%),
    radial-gradient(circle at 8% 96%, rgb(255 155 181 / 32%), transparent 42%),
    var(--card);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto 16px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero__character {
  width: min(260px, 66%);
  height: auto;
  margin: 0 auto 6px;
  display: block;
  filter: drop-shadow(0 14px 22px rgb(240 150 80 / 26%));
  animation: bob 4.5s ease-in-out infinite;
}

h1 {
  margin: 6px 0 12px;
  font-size: clamp(1.7rem, 7vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

h1 .accent {
  color: var(--accent-dark);
}

.hero__sub {
  max-width: 30rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.hero--sub {
  padding-bottom: 24px;
}

.hero--sub h1 {
  font-size: clamp(1.6rem, 6.5vw, 2.3rem);
}

/* ---------- KPI ---------- */
.kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.kpi__item {
  padding: 16px 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fff8ec);
  box-shadow: var(--shadow-soft);
}

.kpi__num {
  font-size: clamp(1.35rem, 6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent-dark);
}

.kpi__num small {
  font-size: 0.62em;
  font-weight: 800;
}

.kpi__label {
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Section titles ---------- */
.section-title {
  margin: 40px 4px 16px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Action cards (top page) ---------- */
.actions {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.action-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 2px solid #fff;
  background: var(--card);
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.action-card:hover,
.action-card:active {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgb(240 150 80 / 28%);
}

.action-card__emoji {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 1.9rem;
}

.action-card--pr .action-card__emoji {
  background: var(--yellow-soft);
}

.action-card--video .action-card__emoji {
  background: var(--pink-soft);
}

.action-card__body h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
}

.action-card__body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.action-card__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--accent));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

/* ---------- Plan cards ---------- */
.plan-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.plan-card {
  border-radius: var(--radius);
  border: 2px solid #fff;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.plan-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--yellow-soft), #fff);
  border-bottom: 1px dashed var(--line-strong);
}

.plan-card--pink .plan-card__head {
  background: linear-gradient(135deg, var(--pink-soft), #fff);
}

.plan-card--mint .plan-card__head {
  background: linear-gradient(135deg, #dbf5ee, #fff);
}

.plan-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.plan-card--pink .plan-card__tag {
  background: var(--pink);
}

.plan-card--mint .plan-card__tag {
  background: var(--mint);
}

.plan-card__head h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
}

.plan-card__body {
  padding: 18px 20px 22px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.plan-price__main {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.1;
}

.plan-price__unit {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.plan-desc {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
}

.plan-points {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.plan-points li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.plan-points li::before {
  content: "🍮";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.95rem;
}

.plan-card--pink .plan-points li::before {
  content: "🎀";
}

.plan-card--mint .plan-points li::before {
  content: "🌱";
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--yellow), var(--accent) 65%, var(--accent-dark));
  box-shadow: 0 14px 28px rgb(244 116 26 / 30%);
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.16s ease;
}

.button:hover,
.button:active {
  transform: translateY(-2px);
}

.button--ghost {
  color: var(--accent-dark);
  background: #fff;
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
}

/* ---------- Form ---------- */
.form-card {
  margin-top: 18px;
  padding: 22px 20px 24px;
  border-radius: var(--radius);
  border: 2px solid #fff;
  background: var(--card);
  box-shadow: var(--shadow);
}

.selected-plan {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--yellow-soft);
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.selected-plan.is-shown {
  display: flex;
}

.selected-plan span {
  color: var(--accent-dark);
}

.form {
  display: grid;
  gap: 16px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

label .req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  vertical-align: middle;
}

label .hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  min-height: 54px;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  background: #fffdf9;
  font: inherit;
  font-weight: 600;
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #c9b4a2;
  font-weight: 500;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(255 143 60 / 18%);
}

.form__note {
  margin: 2px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--pink-soft);
  color: #b5476a;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.6;
}

.form__status {
  min-height: 1.6em;
  margin: 4px 0 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.7;
}

.form__status.is-error {
  color: #e0544c;
}

button.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  margin-bottom: 8px;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Animations ---------- */
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 860px) {
  .container {
    width: min(100% - 48px, 960px);
    padding-top: 30px;
  }

  .hero {
    padding: 40px 44px 42px;
  }

  .hero__character {
    width: 240px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
  }

  .plan-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .plan-list--single {
    grid-template-columns: minmax(0, 460px);
    justify-content: center;
  }

  .form-card {
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__character,
  .background-deco span,
  .ticker__track {
    animation: none;
  }
}
