/* ===== Base ===== */
:root {
  --bg: #171320;
  --bg-soft: #1f1a2b;
  --text: #f2eff7;
  --text-dim: #b9b2c9;
  --purple: #8b76c9;
  --purple-deep: #6f5b9e;
  --purple-btn: #7d6bd6;
  --cream: #d6b98c;
  --gold: #d4a951;
  --pink: #d9868f;
  --orange: #e8944a;
  --lavender: #cfc8e8;
  --mauve: #9678b0;
  --mauve-light: #a58bc0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
}

section {
  padding: 48px 24px;
}

/* ===== Common parts ===== */
.script-heading {
  font-family: "Dancing Script", cursive;
  font-size: 2.6rem;
  font-weight: 700;
  color: #7d5c86;
  margin-bottom: 16px;
}

.script-right {
  text-align: right;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: var(--purple-btn);
  color: #fff;
}

.btn-light {
  background: var(--text);
  color: var(--bg);
}

.btn-cta {
  background: var(--purple-btn);
  color: #fff;
  padding: 14px 40px;
}

/* 蛍光マーカー風ハイライト */
.underline-accent {
  background: linear-gradient(transparent 58%, rgba(125, 107, 214, 0.6) 58%);
  padding: 0 2px;
}

/* Phone frame (screenshot goes inside; empty frame shows a notch) */
.phone-frame {
  width: 150px;
  aspect-ratio: 1 / 2.17;
  border: 3px solid #4a4258;
  border-radius: 28px;
  background: #100d18;
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 8px;
  border-radius: 999px;
  background: #4a4258;
}

.phone-frame:has(img)::before {
  display: none;
}

.phone-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.phone-tilt {
  width: min(30vw, 135px);
  transform: rotate(7deg);
}

/* ===== Header ===== */
.header {
  padding: 20px 24px 0;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 900;
}

.logo span {
  font-style: italic;
}

.logo-note {
  background: linear-gradient(165deg, var(--purple) 25%, var(--cream) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Hero ===== */
.hero {
  padding-top: 48px;
  padding-bottom: 56px;
  text-align: left;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-text {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-title {
  font-size: clamp(1.15rem, 5.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 2;
  margin-bottom: 20px;
  white-space: nowrap;
}

.hero-lead {
  color: var(--text-dim);
  font-size: clamp(0.62rem, 3vw, 0.78rem);
  letter-spacing: 0.03em;
  margin-bottom: 32px;
  white-space: nowrap;
}

.hero-cta {
  display: flex;
  gap: 10px;
}

.hero-cta .btn {
  font-size: clamp(0.6rem, 2.75vw, 0.8rem);
  padding: 10px clamp(12px, 3.7vw, 18px);
  white-space: nowrap;
}

.hero-phone {
  flex: 0 0 auto;
}

/* ===== Why ===== */
.why .section-title {
  font-size: 1.4rem;
}

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

.compare-col h3 {
  font-size: 0.85rem;
  font-weight: 500;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid;
}

.compare-old h3 {
  color: #b9a5d6;
  border-color: var(--purple-btn);
}

.compare-new h3 {
  color: #d9985f;
  border-color: #d9985f;
  font-weight: 700;
}

.compare-col ul {
  list-style: none;
}

.compare-col li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

/* 丸囲みの ✕ / ✓ アイコン */
.mark {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border: 1.5px solid;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  margin-top: 4px;
}

.mark-x {
  color: #8a8494;
  border-color: #8a8494;
}

.mark-ok {
  color: #d5cfe0;
  border-color: #d5cfe0;
}

/* ===== Features ===== */
.features-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.feature {
  text-align: center;
}

/* Icon circle */
.feature-circle {
  width: 100%;
  max-width: 110px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(150deg, #5a4d7a, #443a5e);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.feature-circle svg {
  width: 46%;
  height: 46%;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: left;
}

/* ===== How to use (carousel) ===== */
.step-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.step-head-right {
  justify-content: space-between;
  align-items: center;
}

.step-num {
  font-family: "Alfa Slab One", serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1;
}

.step-num-pink {
  color: var(--pink);
}

.step-num-purple {
  color: var(--mauve);
}

.step-label {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.step-badge {
  color: var(--orange);
  font-weight: 900;
  font-size: 1.1rem;
}

.step-quote {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.step-title {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.7;
  margin-bottom: 16px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.step-points {
  list-style: none;
  margin-bottom: 24px;
}

.step-points li {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}

.step-points li::before {
  content: "\25B6";
  position: absolute;
  left: 0;
  color: var(--purple);
  font-size: 0.7rem;
  top: 4px;
}

.slide-phone {
  display: flex;
  justify-content: center;
}

/* carousel mechanics */
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 8px 4px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.carousel-arrow {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 8px;
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #4a4258;
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.active {
  background: var(--purple);
}

.how-tagline {
  text-align: center;
  margin-top: 48px;
  font-size: 1.05rem;
}

.how-tagline strong {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ===== Extra (05) ===== */
.extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  margin-top: 8px;
}

.extra-num {
  display: block;
  font-family: "Alfa Slab One", serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--mauve);
  line-height: 1;
  padding-left: 4px;
  position: relative;
  z-index: 0;
  margin-bottom: -7px; /* 番号の下端がカードの帯の裏に隠れる */
}

.extra-card {
  background: var(--bg-soft);
  border: 1px solid rgba(165, 139, 192, 0.6);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.extra-head {
  background: var(--mauve-light);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px 4px;
}

.extra-card p {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 12px 14px;
  text-align: center;
}

/* ===== Message ===== */
.message {
  text-align: center;
}

.message h2 {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.message p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.message p:last-child {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 20px;
}

/* ===== Closing ===== */
.closing {
  background: var(--lavender);
  padding: 56px 24px 64px;
  text-align: center;
}

.closing-card h2 {
  color: var(--purple-btn);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.closing-card p {
  color: #3c3552;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 28px;
}
