/* ============================================================
   みるもん占い LP — starry night redesign
   Palette sampled from the master design:
   bg deep indigo #131643 / card navy #2e214e / gold #d9b97c
   lavender text #d9d0ee / badge cream #f6ead0 / LINE #06C755
   ============================================================ */

:root {
  --bg: #131643;
  --bg-deep: #0e1034;
  --card: #2e214e;
  --card-edge: #47356e;
  --gold: #d9b97c;
  --gold-bright: #ecd39e;
  --gold-dim: #a8905e;
  --lavender: #d9d0ee;
  --lavender-dim: #b3a6d6;
  --title: #e9dff7;
  --purple: #7c5fc0;
  --purple-deep: #5c4494;
  --cream: #f6ead0;
  --line-green: #06C755;
  --font-mincho: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-maru: "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mincho);
  background: var(--bg);
  color: var(--lavender);
  line-height: 1.8;
  overflow-x: hidden;
}

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

.container {
  width: min(100% - 2.5rem, 1024px);
  margin-inline: auto;
}

.nowrap { white-space: nowrap; display: inline-block; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 0.5em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- star field ---------- */
main {
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(236, 211, 158, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 8%, rgba(217, 208, 238, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 34% 62%, rgba(236, 211, 158, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 38%, rgba(217, 208, 238, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 74%, rgba(236, 211, 158, 0.65) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 86%, rgba(217, 208, 238, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 92%, rgba(236, 211, 158, 0.6) 50%, transparent 51%),
    var(--bg);
  background-size: 900px 700px;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ============ HERO ============ */
.hero {
  position: relative;
  max-width: 1024px;
  margin-inline: auto;
}

.hero-image { width: 100%; }

.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ============ CAMPAIGN BANNER ============ */
.campaign { padding: 1.2rem 0 2.8rem; }

.campaign-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(160deg, #221d55 0%, #191647 55%, #201a50 100%);
  border: 1px solid var(--gold-dim);
  outline: 1px solid rgba(217, 185, 124, 0.35);
  outline-offset: 4px;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(124, 95, 192, 0.25);
}

.campaign-banner::before,
.campaign-banner::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}
.campaign-banner::before { top: -5px; left: -5px; }
.campaign-banner::after  { bottom: -5px; right: -5px; }

.campaign-seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #fdf6e3, var(--cream) 55%, #e3cba0);
  color: var(--purple-deep);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  text-align: center;
  box-shadow:
    0 0 0 3px rgba(217, 185, 124, 0.45),
    0 0 26px rgba(236, 211, 158, 0.45);
}

.campaign-text {
  font-size: clamp(1.35rem, 3.6vw, 2.1rem);
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(236, 211, 158, 0.35);
  white-space: nowrap;
}

.campaign-price {
  font-size: 1.65em;
  color: #f3e0ae;
  margin-right: 0.08em;
}
.campaign-yen { font-size: 0.55em; }

/* ============ SECTION TITLE ============ */
.section-title,
.flow-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--title);
  letter-spacing: 0.12em;
  text-align: center;
}

.title-orn {
  flex: none;
  width: clamp(40px, 8vw, 90px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
  position: relative;
}
.title-orn::after {
  content: "";
  position: absolute;
  right: -4px; top: -3.5px;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg) scale(0.8);
}
.title-orn--right {
  background: linear-gradient(to left, transparent, var(--gold));
}
.title-orn--right::after { right: auto; left: -4px; }

/* ============ REASONS ============ */
.reasons { padding: 1rem 0 3.5rem; }

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2.2rem;
}

.reason-card {
  position: relative;
  background: linear-gradient(165deg, #34265a 0%, var(--card) 45%, #281c46 100%);
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  padding: 1.6rem 1rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 24px rgba(10, 8, 40, 0.5);
}

/* inner gold line — pseudo-element border (outline-offset breaks on older Safari) */
.reason-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(217, 185, 124, 0.5);
  border-radius: 6px;
  pointer-events: none;
}

.reason-card img {
  width: 96px;
  margin: 0 auto 0.9rem;
  border-radius: 6px;
}

.reason-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.reason-card p {
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--lavender);
}

/* ============ FLOW + PHONE + CTA ============ */
.flow-cta { padding: 1.5rem 0 3.5rem; }

.flow-cta-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.flow-title { justify-content: flex-start; margin-bottom: 1.8rem; white-space: nowrap; }
.flow-title .title-orn { width: clamp(24px, 4vw, 56px); }

.flow-steps { list-style: none; display: grid; gap: 1.5rem; }

.flow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.flow-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fdf6e3, var(--cream) 60%, #e0c795);
  color: var(--purple-deep);
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(217, 185, 124, 0.4), 0 0 16px rgba(236, 211, 158, 0.3);
}

.flow-step h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--title);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.flow-step p {
  font-size: 0.86rem;
  color: var(--lavender-dim);
  line-height: 1.75;
}

.phone { position: relative; }

.phone::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(closest-side, rgba(124, 95, 192, 0.35), transparent 70%);
  pointer-events: none;
}

.phone img {
  position: relative;
  width: clamp(200px, 22vw, 246px);
  border-radius: 26px;
  box-shadow: 0 14px 44px rgba(8, 6, 34, 0.65);
}

/* --- CTA column --- */
.cta { text-align: center; }

.cta-heading {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 700;
  color: var(--title);
  letter-spacing: 0.1em;
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.cta-offer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.cta-offer::before {
  content: "";
  position: absolute;
  inset: -18% -6%;
  background: radial-gradient(closest-side, rgba(236, 211, 158, 0.22), transparent 72%);
  pointer-events: none;
}

.cta-badge {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  gap: 0.1rem;
  width: 205px;
  height: 158px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 30%, #fdf7e6, var(--cream) 58%, #ecd6a8);
  box-shadow:
    0 0 0 2px rgba(246, 234, 208, 0.35),
    0 0 44px rgba(236, 211, 158, 0.4);
  padding-block: 1.1rem;
}

.cta-badge-limited {
  font-size: 1.05rem;
  font-weight: 700;
  color: #6e569f;
  letter-spacing: 0.14em;
}

.cta-badge-price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #8a68b8;
  text-shadow: 0 1px 0 #fff;
}
.cta-badge-price span { font-size: 0.5em; }

.cta-badge-sub {
  font-size: 1.1rem;
  font-weight: 700;
  color: #6e569f;
  letter-spacing: 0.1em;
}

.cta-mascot { flex: none; width: clamp(120px, 12vw, 155px); }

.line-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  padding: 1.05rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(to bottom, #1fd06a, var(--line-green) 55%, #05b34c);
  color: #fff;
  font-family: var(--font-maru);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.line-button:hover,
.line-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(6, 199, 85, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.line-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--line-green);
}
.line-icon svg { width: 30px; height: 30px; }

.cta-fine {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--lavender-dim);
  letter-spacing: 0.08em;
}

/* ============ RECOMMEND ============ */
.recommend { padding: 0.5rem 0 3rem; }

.recommend-figure .recommend-art {
  width: 100%;
  filter: drop-shadow(0 10px 30px rgba(9, 7, 38, 0.5));
}

/* mobile-friendly HTML recreation — the wide artwork's text is illegible below ~700px */
.recommend-mobile { display: none; }

@media (max-width: 700px) {
  .recommend-figure .recommend-art { display: none; }
  .recommend-mobile {
    display: block;
    position: relative;
    background: linear-gradient(160deg, #f7ecec 0%, #f3e4de 55%, #eeddd8 100%);
    border: 1px solid rgba(201, 164, 92, 0.6);
    border-radius: 16px;
    padding: 1.5rem 1.3rem 1.3rem;
    color: #4a3880;
    box-shadow: 0 10px 36px rgba(9, 7, 38, 0.45);
  }
  .recommend-mobile::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(201, 164, 92, 0.35);
    border-radius: 12px;
    pointer-events: none;
  }
  .recommend-mobile h3 {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #4a3880;
    margin-bottom: 1rem;
  }
  .recommend-mobile ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin: 0; padding: 0;
  }
  .recommend-mobile li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
    font-weight: 600;
  }
  .recommend-mobile img {
    width: 96px;
    margin: 0.4rem 0.2rem 0 auto;
    opacity: 0.95;
  }
}

.recommend-box {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.8rem 2.2rem;
  border-radius: 18px;
  background: linear-gradient(150deg, #efe9fb 0%, #ded4f2 55%, #d3c6ec 100%);
  border: 1px solid rgba(217, 185, 124, 0.55);
  color: #3c2f63;
  box-shadow: 0 10px 36px rgba(9, 7, 38, 0.45);
}
.recommend-box::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(217, 185, 124, 0.35);
  border-radius: 14px;
  pointer-events: none;
}

.recommend-main h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  font-weight: 700;
  color: #4a3880;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 1.2rem;
}

.recommend-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.4rem;
}

.recommend-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(150deg, #8a68b8, #6c4fa0);
  position: relative;
  box-shadow: 0 2px 6px rgba(74, 56, 128, 0.4);
}
.check::after {
  content: "";
  position: absolute;
  left: 6px; top: 4px;
  width: 7px; height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(40deg);
}

.recommend-side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 1px solid rgba(74, 56, 128, 0.25);
  padding-left: 1.4rem;
}

.recommend-side p {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 2;
}

.recommend-side img { flex: none; width: clamp(110px, 12vw, 150px); }

/* ============ FAQ ============ */
.faq { padding: 0.5rem 0 3rem; }

.faq-list { max-width: 720px; margin: 2rem auto 0; display: grid; gap: 0.9rem; }

.faq-item {
  background: linear-gradient(165deg, #34265a 0%, var(--card) 55%, #281c46 100%);
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.3rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.3rem; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.faq-item p {
  padding: 0 1.3rem 1.1rem;
  font-size: 0.9rem;
  color: var(--lavender);
  line-height: 1.9;
}

/* ============ CLOSING ============ */
.closing { padding: 1rem 0 4rem; }

.closing-message {
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--lavender);
  letter-spacing: 0.08em;
  line-height: 2.3;
}

/* crescent moon glyph */
.moon {
  display: inline-block;
  width: 0.9em; height: 0.9em;
  margin-left: 0.25em;
  vertical-align: -0.1em;
  background: var(--gold-bright);
  -webkit-mask: radial-gradient(circle at 68% 32%, transparent 46%, #000 48%);
  mask: radial-gradient(circle at 68% 32%, transparent 46%, #000 48%);
  border-radius: 50%;
}
.recommend-side .moon { background: #8a68b8; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(217, 185, 124, 0.25);
  padding: 1.6rem 0 2rem;
}

.site-footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--lavender-dim);
}

.site-footer-note {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: #8d80b5;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .reason-grid { grid-template-columns: repeat(2, 1fr); }

  .flow-cta-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .flow-title { justify-content: center; }
  .flow-steps { justify-items: start; }
  .phone { display: none; }

  .recommend-box { grid-template-columns: 1fr; }
  .recommend-side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(74, 56, 128, 0.25);
    padding-top: 1.2rem;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .campaign-banner {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.3rem 1rem;
  }
  .campaign-text { white-space: normal; text-align: center; }

  .reason-card h3 { font-size: 0.88rem; }
  .reason-card p br { display: none; }
  .reason-card p { text-align: center; }
  .reason-card { padding: 1.2rem 0.7rem 1.1rem; }
  .reason-card img { width: 72px; }

  .recommend-list { grid-template-columns: 1fr; }
  .recommend-list li { white-space: normal; }

  .cta-badge { width: 180px; height: 140px; }
  .cta-badge-price { font-size: 2.6rem; }
}

@media (max-width: 380px) {
  .cta-badge { width: 150px; height: 118px; padding-block: 0.8rem; }
  .cta-badge-limited { font-size: 0.9rem; }
  .cta-badge-price { font-size: 2.15rem; }
  .cta-badge-sub { font-size: 0.95rem; }
  .cta-mascot { width: 96px; }

  .line-button { font-size: 0.95rem; padding: 0.9rem 1rem; gap: 0.6rem; white-space: nowrap; }
  .line-icon { width: 38px; height: 38px; }
  .line-icon svg { width: 25px; height: 25px; }
}
