/* ==========================================================
   CoreSol Landing Page — 星読みの夜 premium design
   (このファイルはLP専用。規約/Q&A等は styles.css を使用)
   ========================================================== */

:root {
  --bg-deep: #060412;
  --bg-mid: #0b0820;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  --gold: #f0c96c;
  --gold-light: #ffe9b0;
  --gold-deep: #b8862f;
  --lilac: #a58bff;
  --rose: #ff8fae;
  --mint: #6fe3c9;
  --sky: #7db8ff;

  --text-hi: #f7f4ff;
  --text-mid: #c9c4e4;
  --text-low: #8d87ad;

  --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Shippori Mincho B1', 'Hiragino Mincho ProN', serif;
  --font-arcana: 'Cinzel', 'Times New Roman', serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-card: 26px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(96, 60, 168, 0.28), transparent 55%),
    radial-gradient(100% 80% at 8% 18%, rgba(52, 38, 110, 0.32), transparent 52%),
    linear-gradient(180deg, var(--bg-mid), var(--bg-deep) 42%);
  color: var(--text-hi);
  font-family: var(--font-body);
  line-height: 1.9;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.02em;
}

p { color: var(--text-mid); }

ul[role="list"], ol[role="list"] { list-style: none; }

.container {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: inline; }
@media (min-width: 760px) { .sp-only { display: none; } }

/* ---------- 背景レイヤー ---------- */

#star-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.nebula {
  position: fixed;
  inset: -20%;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 22% 30%, rgba(165, 139, 255, 0.10), transparent 70%),
    radial-gradient(34% 28% at 78% 66%, rgba(255, 143, 174, 0.07), transparent 70%),
    radial-gradient(30% 26% at 60% 20%, rgba(111, 227, 201, 0.05), transparent 70%);
  animation: nebulaDrift 40s ease-in-out infinite alternate;
}

@keyframes nebulaDrift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

/* ---------- 共通パーツ ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: var(--font-arcana);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.eyebrow__line {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(240, 201, 108, 0.4);
  border-radius: 50%;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.text-gold {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-shine {
  background: linear-gradient(110deg,
      var(--gold-light) 0%, var(--gold) 22%, #fff6de 40%,
      var(--lilac) 62%, var(--gold) 82%, var(--gold-light) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineSweep 7s linear infinite;
}

@keyframes shineSweep {
  0%   { background-position: 0% center; }
  100% { background-position: -220% center; }
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading .eyebrow { justify-content: center; }

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
}

.section-heading__lead { font-size: 1rem; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(100%, 560px);
  margin: 0 auto;
  color: rgba(240, 201, 108, 0.7);
  font-size: 0.8rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 201, 108, 0.35));
}

.divider::after {
  background: linear-gradient(90deg, rgba(240, 201, 108, 0.35), transparent);
}

.divider span { animation: starPulse 3.2s ease-in-out infinite; }

@keyframes starPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.15) rotate(90deg); }
}

/* スクロール出現 */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 0.9s var(--ease-out) var(--d, 0s),
    filter 0.9s var(--ease-out) var(--d, 0s);
  will-change: opacity, transform, filter;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- ヘッダー ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.45s ease, border-color 0.45s ease, padding 0.45s ease;
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(8, 6, 20, 0.72);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-hi);
}

.logo__img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.nav {
  display: none;
  gap: 30px;
}

.nav a {
  position: relative;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--lilac));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav a:hover { color: var(--text-hi); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (min-width: 860px) { .nav { display: flex; } }

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid rgba(240, 201, 108, 0.45);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(240, 201, 108, 0.14), rgba(240, 201, 108, 0.04));
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s ease;
}

.header__cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(120deg, rgba(240, 201, 108, 0.24), rgba(240, 201, 108, 0.08));
  box-shadow: 0 10px 26px rgba(240, 201, 108, 0.18);
  color: #fff4d6;
}

/* ---------- App Store バッジ ---------- */

.app-store-badge {
  display: inline-flex;
  width: 190px;
  border-radius: 12px;
  line-height: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), filter 0.3s ease;
}

.app-store-badge:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 52px rgba(165, 139, 255, 0.28);
  filter: brightness(1.12);
}

.app-store-badge img { width: 100%; height: auto; }
.app-store-badge--lg { width: 210px; }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 128px 0 84px;
  overflow: hidden;
}

.hero__aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 42% at 74% 30%, rgba(165, 139, 255, 0.16), transparent 70%),
    radial-gradient(40% 34% at 18% 74%, rgba(240, 201, 108, 0.08), transparent 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
  align-items: center;
}

.hero__copy { text-align: center; }

.hero__eyebrow { justify-content: center; }

.hero__title {
  margin-bottom: 26px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: 0;
}

.hero__title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero__title-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineRise 1.1s var(--ease-out) forwards;
}

.hero__title-line:nth-child(1) > span { animation-delay: 0.12s; }
.hero__title-line:nth-child(2) > span { animation-delay: 0.26s; }
.hero__title-line:nth-child(3) > span { animation-delay: 0.42s; }

@keyframes lineRise {
  to { transform: translateY(0); }
}

.hero__eyebrow,
.hero__subtitle,
.hero__chips,
.hero__cta {
  opacity: 0;
  animation: softIn 1s var(--ease-out) forwards;
}

.hero__eyebrow { animation-delay: 0.05s; }
.hero__subtitle { animation-delay: 0.62s; }
.hero__chips { animation-delay: 0.74s; }
.hero__cta { animation-delay: 0.88s; }

@keyframes softIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__subtitle {
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 1.04rem;
  line-height: 2;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color 0.35s ease, color 0.35s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.hero__chips li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.68rem;
}

.hero__chips li:hover {
  border-color: rgba(240, 201, 108, 0.5);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(240, 201, 108, 0.12);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__cta-note {
  color: var(--text-low);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* HEROビジュアル */

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 26px 0;
}

.hero__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(120vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(240, 201, 108, 0.14), transparent 62%);
  filter: blur(30px);
  animation: ringBreath 7s ease-in-out infinite alternate;
}

.hero__ring::after {
  content: '';
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px dashed rgba(240, 201, 108, 0.22);
  animation: ringSpin 60s linear infinite;
}

@keyframes ringBreath {
  from { opacity: 0.7; transform: translate(-50%, -50%) scale(0.94); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

/* スマホモックアップ */

.phone {
  position: relative;
  width: min(280px, 68vw);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 40px;
  background: #070512;
  padding: 9px;
  box-shadow:
    0 40px 90px rgba(2, 0, 12, 0.75),
    inset 0 0 14px rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.phone img {
  border-radius: 32px;
  width: 100%;
}

.phone__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--gx, 30%) var(--gy, 20%),
      rgba(255, 255, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

[data-tilt]:hover .phone__glare { opacity: 1; }

.phone--hero {
  animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -16px; }
}

/* 浮遊キャラチップ */

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation:
    softIn 0.9s var(--ease-out) forwards,
    chipFloat 6s ease-in-out infinite 1.2s;
  will-change: transform;
}

.float-chip img {
  width: clamp(84px, 17vw, 124px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 14, 40, 0.6);
  box-shadow: 0 22px 44px rgba(2, 0, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.float-chip figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 7, 26, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-hi);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.float-chip figcaption span {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.float-chip--sol    { top: -6px;  left: 2%;  animation-delay: 0.9s, 1.2s; }
.float-chip--rabbit { top: 96px;  right: 0;  animation-delay: 1.05s, 2.4s; }
.float-chip--owl    { bottom: 48px; left: 4%; animation-delay: 1.2s, 3.1s; }

@keyframes chipFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

/* スクロールインジケータ */

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  opacity: 0;
  animation: softIn 1s var(--ease-out) 1.4s forwards;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--gold);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- キャラクター（タロットカード風） ---------- */

.character-section {
  position: relative;
  padding: 108px 0;
}

.tarot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .tarot-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 30px;
  }
}

.tarot-card {
  --accent: var(--gold);
  --accent-soft: rgba(240, 201, 108, 0.16);
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: 0 26px 60px rgba(2, 0, 12, 0.5);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), border-color 0.5s ease, box-shadow 0.5s ease;
}

.tarot-card--rabbit { --accent: var(--lilac); --accent-soft: rgba(165, 139, 255, 0.18); }
.tarot-card--owl    { --accent: var(--sky);   --accent-soft: rgba(125, 184, 255, 0.16); }

.tarot-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow:
    0 36px 70px rgba(2, 0, 12, 0.6),
    0 0 44px var(--accent-soft);
}

.tarot-card__frame {
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 16px;
  padding: 20px 20px 26px;
  height: 100%;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--accent-soft), transparent 62%);
}

.tarot-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: color-mix(in srgb, var(--accent) 85%, white);
  font-family: var(--font-arcana);
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
}

.tarot-card__numeral { font-size: 0.9rem; }

.tarot-card__portrait {
  position: relative;
  width: min(200px, 56%);
  margin: 0 auto 18px;
}

.tarot-card__portrait::after {
  content: '';
  position: absolute;
  inset: -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  filter: blur(14px);
}

.tarot-card__portrait img {
  border-radius: 24px;
  transition: transform 0.55s var(--ease-out);
}

.tarot-card:hover .tarot-card__portrait img {
  transform: scale(1.05) rotate(-1.2deg);
}

.tarot-card__body { text-align: center; }

.tarot-card__label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 88%, white);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.tarot-card__body h3 {
  margin-bottom: 10px;
  font-size: 1.42rem;
}

.tarot-card__body p {
  font-size: 0.92rem;
  line-height: 1.85;
  text-align: left;
}

/* ---------- できること（フィーチャー） ---------- */

.modes-section { padding: 108px 0; }

.modes-wrap {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.feature-text { text-align: center; }
.feature-text .eyebrow { justify-content: center; }

.feature-title {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
}

.feature-desc {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 2;
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.flow-reader-visual {
  width: min(540px, 100%);
  min-height: 620px;
  align-items: center;
  padding: 22px 0;
}

.phone--reader {
  width: min(280px, 58vw);
  animation: heroFloat 7s ease-in-out infinite;
}

.flow-reader-visual .float-chip--sol {
  top: 12px;
  left: 0;
}

.flow-reader-visual .float-chip--rabbit {
  top: 116px;
  right: 0;
}

.flow-reader-visual .float-chip--owl {
  bottom: 42px;
  left: 2%;
}

.feature-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(240, 201, 108, 0.2), transparent 66%);
  filter: blur(46px);
  animation: glowBreath 8s ease-in-out infinite alternate;
}

.feature-glow--mint  { background: radial-gradient(circle, rgba(111, 227, 201, 0.18), transparent 66%); }
.feature-glow--rose  { background: radial-gradient(circle, rgba(255, 143, 174, 0.18), transparent 66%); }
.feature-glow--lilac { background: radial-gradient(circle, rgba(165, 139, 255, 0.2), transparent 66%); }

.feature-device {
  position: relative;
  width: min(318px, 78vw);
  transition: transform 0.5s var(--ease-out), filter 0.5s ease;
  filter: drop-shadow(0 38px 70px rgba(2, 0, 12, 0.62));
}

.feature-device:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 44px 80px rgba(75, 190, 255, 0.2));
}

.feature-device img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes glowBreath {
  from { opacity: 0.7; transform: translate(-50%, -50%) scale(0.92); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

@media (min-width: 960px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-text { text-align: left; }
  .feature-text .eyebrow { justify-content: flex-start; }
  .feature-desc { margin: 0; }
  .feature-row:nth-child(even) .feature-text { order: 2; }
}

/* ---------- 使い方 3ステップ ---------- */

.steps-section { padding: 108px 0 96px; }

.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }

  .steps-grid::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(240, 201, 108, 0.35) 20%,
        rgba(240, 201, 108, 0.35) 80%, transparent);
  }
}

.step-card {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(165deg, var(--panel-strong), var(--panel));
  text-align: center;
  transition: transform 0.45s var(--ease-out), border-color 0.45s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 201, 108, 0.4);
}

.step-card__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border: 1px solid rgba(240, 201, 108, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 201, 108, 0.16), rgba(10, 7, 26, 0.9) 74%);
  color: var(--gold-light);
  font-family: var(--font-arcana);
  font-size: 1.02rem;
  font-weight: 600;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
}

.step-card p { font-size: 0.92rem; }

/* ---------- こんな夜に（マーキー） ---------- */

.concern-section {
  padding: 108px 0;
  overflow: hidden;
}

.concern-section .section-heading { margin-bottom: 44px; }

.marquee {
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marqueeMove 36s linear infinite;
}

.marquee__track--reverse { animation: marqueeMoveR 42s linear infinite; }

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__row {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.marquee__row li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-mid);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.marquee__row li::before {
  content: '☾';
  color: var(--lilac);
  font-size: 0.8rem;
}

.marquee__track--reverse .marquee__row li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.7rem;
}

.marquee__row li:hover {
  border-color: rgba(240, 201, 108, 0.5);
  color: var(--gold-light);
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marqueeMoveR {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ---------- 最終CTA ---------- */

.cta-section {
  position: relative;
  padding: 130px 0 140px;
  text-align: center;
  overflow: hidden;
}

.cta-section__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(140vw, 900px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(240, 201, 108, 0.13), transparent 55%),
    radial-gradient(circle at 40% 60%, rgba(165, 139, 255, 0.1), transparent 60%);
  filter: blur(40px);
  animation: glowBreath 9s ease-in-out infinite alternate;
}

.cta-trio {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 30px;
}

.cta-trio img {
  width: clamp(72px, 14vw, 104px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(20, 14, 40, 0.55);
  box-shadow: 0 20px 40px rgba(2, 0, 12, 0.5);
  animation: chipFloat 5.5s ease-in-out infinite;
}

.cta-trio img:nth-child(1) { animation-delay: 0.4s; transform: rotate(-5deg); }
.cta-trio img:nth-child(2) { width: clamp(86px, 16vw, 120px); }
.cta-trio img:nth-child(3) { animation-delay: 0.9s; transform: rotate(5deg); }

.cta-section h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
}

.cta-section p {
  margin-bottom: 34px;
  font-size: 1rem;
}

/* ---------- フッター ---------- */

.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line-soft);
  background: rgba(4, 2, 12, 0.7);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  margin-bottom: 34px;
}

.footer-nav a {
  color: var(--text-low);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-nav a:hover { color: var(--gold-light); }

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.84rem;
}

.footer-bottom span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
}

/* ---------- レスポンシブ調整 ---------- */

@media (min-width: 992px) {
  .container, .header__inner { padding-inline: 48px; }

  .hero { padding: 150px 0 100px; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero__copy { text-align: left; }
  .hero__eyebrow { justify-content: flex-start; }
  .hero__subtitle { margin-left: 0; }
  .hero__chips { justify-content: flex-start; }
  .hero__cta { flex-direction: row; align-items: center; gap: 18px; }
}

@media (max-width: 520px) {
  .container, .header__inner { padding-inline: 18px; }

  .header__cta { padding: 8px 13px; font-size: 0.78rem; }
  .nav { display: none; }

  .hero { padding: 108px 0 72px; }
  .hero__grid { gap: 40px; }
  .hero__title { line-height: 1.4; }
  .hero__subtitle { font-size: 0.95rem; }

  .float-chip--sol    { top: -14px; left: -2px; }
  .float-chip--rabbit { top: 72px;  right: -4px; }
  .float-chip--owl    { bottom: 30px; left: -2px; }

  .float-chip figcaption { padding: 4px 11px; font-size: 0.7rem; }

  .flow-reader-visual {
    min-height: 530px;
  }

  .flow-reader-visual .float-chip img {
    width: clamp(72px, 22vw, 94px);
  }

  .flow-reader-visual .float-chip--sol {
    top: 8px;
    left: -4px;
  }

  .flow-reader-visual .float-chip--rabbit {
    top: 96px;
    right: -4px;
  }

  .flow-reader-visual .float-chip--owl {
    bottom: 28px;
    left: -2px;
  }

  .character-section, .modes-section,
  .steps-section, .concern-section { padding: 78px 0; }

  .modes-wrap { gap: 78px; }
  .cta-section { padding: 96px 0 104px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; filter: none; }
  .hero__title-line > span { transform: none; }
  .hero__eyebrow, .hero__subtitle, .hero__chips, .hero__cta,
  .float-chip, .hero__scroll { opacity: 1; }
  .marquee__track { animation: none !important; }
}
