/*
Theme Name: Luna Arcana Theme
Author: luna
Version: 1.0
*/

/* ↓ここから貼る */
 :root {
    --ink: #0d0b18;
    --deep: #13102a;
    --void: #08071a;
    --gold: #c9a84c;
    --gold-pale: #e8d5a0;
    --silver: #c0bdd4;
    --lavender: #7b6fa8;
    --violet: #4a3d72;
    --mist: rgba(192,189,212,0.12);
    --glow: rgba(201,168,76,0.15);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background-color: var(--void);
    color: var(--silver);
    font-family: 'Noto Serif JP', serif;
    font-weight: 200;
    line-height: 1.9;
    overflow-x: hidden;
  }

  /* ===== Stars ===== */
  .stars-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .stars-bg::before, .stars-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.7) 0%, transparent 100%),
      radial-gradient(1px 1px at 25% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 40% 8%, rgba(255,255,255,0.8) 0%, transparent 100%),
      radial-gradient(1px 1px at 55% 62%, rgba(255,255,255,0.4) 0%, transparent 100%),
      radial-gradient(1px 1px at 68% 22%, rgba(255,255,255,0.6) 0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 78% 48%, rgba(255,255,255,0.7) 0%, transparent 100%),
      radial-gradient(1px 1px at 88% 75%, rgba(255,255,255,0.5) 0%, transparent 100%),
      radial-gradient(1px 1px at 5% 85%, rgba(255,255,255,0.6) 0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 33% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
      radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.8) 0%, transparent 100%),
      radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,0.3) 0%, transparent 100%),
      radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.5) 0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 45% 50%, rgba(201,168,76,0.5) 0%, transparent 100%),
      radial-gradient(1px 1px at 72% 35%, rgba(201,168,76,0.3) 0%, transparent 100%);
  }
  .stars-bg::after {
    background-image:
      radial-gradient(1px 1px at 18% 28%, rgba(255,255,255,0.4) 0%, transparent 100%),
      radial-gradient(1px 1px at 37% 82%, rgba(255,255,255,0.6) 0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 52% 17%, rgba(255,255,255,0.5) 0%, transparent 100%),
      radial-gradient(1px 1px at 65% 58%, rgba(255,255,255,0.7) 0%, transparent 100%),
      radial-gradient(1px 1px at 82% 92%, rgba(255,255,255,0.4) 0%, transparent 100%),
      radial-gradient(1px 1px at 93% 43%, rgba(255,255,255,0.6) 0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 8% 67%, rgba(255,255,255,0.5) 0%, transparent 100%),
      radial-gradient(1px 1px at 28% 12%, rgba(192,189,212,0.6) 0%, transparent 100%),
      radial-gradient(1px 1px at 48% 36%, rgba(192,189,212,0.4) 0%, transparent 100%),
      radial-gradient(1px 1px at 75% 78%, rgba(255,255,255,0.3) 0%, transparent 100%);
    animation: twinkle 6s ease-in-out infinite alternate;
  }
  @keyframes twinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
  }

  /* ===== Nav ===== */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 60px;
    border-bottom: 1px solid rgba(201,168,76,0.12);
    background: rgba(8,7,26,0.8);
    backdrop-filter: blur(12px);
  }
  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-style: italic;
    color: var(--gold-pale);
    letter-spacing: 0.08em;
  }
  .nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
  }
  .nav-links a {
    color: var(--silver);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.25em;
    opacity: 0.7;
    transition: opacity 0.3s;
  }
  .nav-links a:hover { opacity: 1; color: var(--gold-pale); }

  /* ===== Hero ===== */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 40px 60px;
  overflow: hidden;
  background: var(--void);
}

.hero-moon {
  position: absolute;
  width: 480px;
  max-width: 42vw;
  height: auto;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.72;
  z-index: 0;
  filter: drop-shadow(0 0 18px rgba(201,168,76,0.12));
}

.hero *:not(.hero-moon):not(.hero-orb) {
  position: relative;
  z-index: 2;
}
  .hero-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
      rgba(74,61,114,0.4) 0%,
      rgba(74,61,114,0.15) 40%,
      transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breathe 8s ease-in-out infinite;
  }
  @keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  }

  .moon-symbol {
    font-size: 64px;
    color: var(--gold-pale);
    margin-bottom: 40px;
    opacity: 0.9;
    animation: float 6s ease-in-out infinite;
    display: block;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.45em;
    color: var(--gold);
    opacity: 0.8;
    margin-bottom: 32px;
    text-transform: uppercase;
  }

  .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 7vw, 82px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--gold-pale);
    letter-spacing: 0.03em;
    margin-bottom: 24px;
  }
  .hero-title em {
    font-style: italic;
    color: #fff;
    opacity: 0.95;
  }

  .hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-style: italic;
    color: var(--silver);
    opacity: 0.7;
    letter-spacing: 0.12em;
    margin-bottom: 32px;
  }

  .hero-desc {
    max-width: 480px;
    font-size: 14px;
    color: var(--silver);
    opacity: 0.72;
    line-height: 2.1;
    margin-bottom: 40px;
  }

.hero-catch {
  margin-top: 24px;
  font-size: 16px;
  color: var(--silver);
  opacity: 0.75;
  line-height: 2;
}

.hero-note {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 16px;
}

 /* ===== CTAボタン強化 ===== */
.btn-primary {
  position: relative;
  display: inline-block;
  padding: 18px 56px;
  border: 1px solid var(--gold);
  color: var(--gold-pale);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.06);
  overflow: hidden;

  /* 光のベース */
  box-shadow:
    0 0 0 rgba(201,168,76,0),
    0 0 20px rgba(201,168,76,0.15);

  transition: all 0.4s ease;
}

/* ===== 光がスーッと流れる ===== */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );

  transition: 0.6s;
}

/* ===== ホバー時 ===== */
.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  color: #fff;

  /* 光が強くなる */
  box-shadow:
    0 0 12px rgba(201,168,76,0.5),
    0 0 30px rgba(201,168,76,0.3);
}

/* ===== ほんのり呼吸する光 ===== */
@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(201,168,76,0.15);
  }
  50% {
    box-shadow:
      0 0 20px rgba(201,168,76,0.3);
  }
}

.btn-primary {
  animation: glowPulse 3s ease-in-out infinite;
}


  /* ===== Divider ===== */
  .divider {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto 80px;
    opacity: 0.35;
  }
  .divider-line { flex: 1; height: 1px; background: var(--gold); }
  .divider-symbol { color: var(--gold); font-size: 14px; }

  /* ===== Section base ===== */
  section {
    position: relative;
    z-index: 1;
    padding: 100px 60px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-label {
    font-size: 10px;
    letter-spacing: 0.5em;
    color: var(--gold);
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 24px;
  }

  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 300;
    color: var(--gold-pale);
    line-height: 1.3;
    margin-bottom: 20px;
  }

  /* ===== About ===== */
  .about-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: center;
  }

  /* ===== フレーム ===== */
.portrait-frame {
  position: relative;
  max-width: 420px;
  padding: 14px;

  /* ほんのり面を作る */
  background: rgba(255,255,255,0.02);

  /* 外枠 */
  border: 1px solid rgba(201,168,76,0.25);

  /* 奥行き */
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.08),
    0 24px 50px rgba(0,0,0,0.65);

  /* ガラスっぽさ */
  backdrop-filter: blur(2px);
}

/* ===== 内側ライン① ===== */
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,168,76,0.18);
  pointer-events: none;
}

/* ===== 内側ライン② ===== */
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201,168,76,0.08);
  pointer-events: none;
}

/* ===== 画像 ===== */
.portrait-img {
  width: 100%;
  height: auto;
  display: block;

  /* トリミング */
  object-fit: cover;

  /* 高級トーン調整 */
  filter: brightness(0.92) contrast(1.05) saturate(1.05);

  /* 影で浮かせる */
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* ===== 月マーク（弱める） ===== */
.portrait-img::after {
  content: '☽';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px; /* 少し小さく */
  opacity: 0.08;   /* かなり弱める */
  color: var(--gold-pale);
}
  .about-body p {
    font-size: 15px;
    color: var(--silver);
    opacity: 0.75;
    line-height: 2.2;
    margin-bottom: 24px;
  }

  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
  }
  .tag {
    padding: 6px 20px;
    border: 1px solid rgba(201,168,76,0.3);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gold-pale);
    opacity: 0.8;
  }

  /* ===== Services ===== */
.services-bg {
  background: linear-gradient(180deg, transparent 0%, rgba(74,61,114,0.08) 50%, transparent 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
  border: 1px solid rgba(201,168,76,0.1);
}

/* ── ベースカード ── */
.service-card {
  padding: 56px 40px;
  border: 1px solid rgba(201,168,76,0.08);
  background: rgba(19,16,42,0.6);
  transition: background 0.4s;
  cursor: pointer;
  position: relative;
}
.service-card:hover {
  background: rgba(74,61,114,0.2);
}

/* ── 3枚目（宇宙の羅針盤）を強調 ── */
.service-card:last-child {
  background: rgba(74,61,114,0.25);
  border: 1px solid rgba(201,168,76,0.35);
  box-shadow:
    0 0 30px rgba(201,168,76,0.08),
    inset 0 0 40px rgba(74,61,114,0.15);
}
.service-card:last-child:hover {
  background: rgba(74,61,114,0.38);
}

/* ── おすすめバッジ ── */
.service-card:last-child::before {
  content: '✦ おすすめ';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(201,168,76,0.15), rgba(201,168,76,0.3), rgba(201,168,76,0.15));
  border: 1px solid rgba(201,168,76,0.5);
  border-top: none;
  color: var(--gold-pale);
  font-size: 10px;
  letter-spacing: 0.35em;
  padding: 6px 20px;
  white-space: nowrap;
}

/* ── 3枚目の価格を強調 ── */
.service-card:last-child .service-price {
  color: var(--gold-pale);
  font-size: 32px;
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}

/* カードの高さを揃える */
.services-grid {
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
}
.service-price {
  margin-top: auto;
}

/* 3枚目の「/ 年間」は小さいまま保つ */
.service-card:last-child .service-price span {
  font-size: 14px;
  color: var(--silver);
  opacity: 0.5;
  text-shadow: none;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.testimonial-card {
  padding: 48px 44px;
  border: 1px solid rgba(201,168,76,0.12);
  background: rgba(13,11,24,0.5);
  position: relative;
  transition: border-color 0.4s;
}
.testimonial-card:hover {
  border-color: rgba(201,168,76,0.28);
}

/* 装飾的な大きな引用符 */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  color: var(--gold);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
}

/* 星評価 */
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.testimonial-stars span {
  color: var(--gold);
  font-size: 13px;
  opacity: 0.85;
}

.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--gold-pale);
  opacity: 0.9;
  line-height: 1.9;
  margin-bottom: 28px;
}

/* 区切り線 */
.testimonial-card hr {
  border: none;
  border-top: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 20px;
}

.testimonial-attr {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--silver);
  opacity: 0.5;
  text-transform: uppercase;
}

 /* ===== Flow ===== */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 60px;
  position: relative;
}

/* ステップ間のコネクター線 */
.flow-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 16.6%;
  width: 66.6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.25;
}

.flow-step {
  padding: 0 32px;
  text-align: center;
}

/* 番号の円を強化 */
.step-num {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--gold-pale);
  background: var(--void);
  position: relative;

  /* ゴールドのグロー */
  box-shadow:
    0 0 0 4px rgba(201,168,76,0.06),
    0 0 16px rgba(201,168,76,0.15);

  /* ゆっくり呼吸 */
  animation: stepGlow 4s ease-in-out infinite;
}

/* 各ステップで時間差をつける */
.flow-step:nth-child(2) .step-num { animation-delay: 1.3s; }
.flow-step:nth-child(3) .step-num { animation-delay: 2.6s; }

@keyframes stepGlow {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(201,168,76,0.06),
      0 0 16px rgba(201,168,76,0.15);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(201,168,76,0.1),
      0 0 28px rgba(201,168,76,0.35);
  }
}

/* ステップ間の星マーク */
.flow-step:not(:last-child)::after {
  content: '✦';
  position: absolute;
  top: 14px;
  right: -8px;
  font-size: 10px;
  color: var(--gold);
  opacity: 0.4;
}

.flow-step {
  position: relative;
}

.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--gold-pale);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.step-desc {
  font-size: 13px;
  color: var(--silver);
  opacity: 0.55;
  line-height: 2;
}

  /* ===== CTA ===== */
  .cta-section {
    text-align: center;
    padding: 120px 40px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(201,168,76,0.1);
  }
  
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 260px;
  transform: translate(-50%, -50%);

  background: radial-gradient(
    ellipse,
    rgba(255,255,255,0.18) 0%,   /* 白の光 */
    rgba(201,168,76,0.12) 30%,   /* ゴールド少し */
    rgba(201,168,76,0.05) 50%,
    transparent 70%
  );

  filter: blur(30px); /* ぼかしが超重要 */
  pointer-events: none;
  z-index: 0;
}

  /* ===== Footer ===== */
  footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--silver);
    opacity: 0.3;
  }

  /* ===== Scrollbar ===== */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--void); }
  ::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 36px 0 28px;
  border: 1px solid rgba(201,168,76,0.15);
  background: rgba(201,168,76,0.08);
}

.stat {
  padding: 24px 20px;
  background: rgba(13,11,24,0.7);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(201,168,76,0.3);
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--silver);
  opacity: 0.6;
}

#star-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}


/* ============================================
   モバイル対応 (@media)
   ============================================ */
@media (max-width: 768px) {

  /* ── Nav ── */
  nav {
    padding: 20px 24px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-links {
    display: none; /* スマホではハンバーガー想定で非表示 */
  }

  /* ── Hero ── */
  .hero {
    padding: 100px 24px 60px;
  }
  .moon-symbol {
    font-size: 48px;
  }

  /* ── Section共通 ── */
  section {
    padding: 72px 24px;
  }

  /* ── About ── */
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .portrait-frame {
    max-width: 100%;
  }
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── 鑑定メニュー：1カラムに ── */
  .services-grid {
    grid-template-columns: 1fr;
  }
  /* おすすめバッジの位置調整 */
  .service-card:last-child::before {
    top: -1px;
  }

  /* ── 口コミ：1カラムに ── */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* ── 鑑定の流れ：縦並びに ── */
  .flow-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  /* 横のコネクター線を非表示 */
  .flow-steps::before {
    display: none;
  }
  /* ステップ間の星マークも非表示 */
  .flow-step::after {
    display: none;
  }

  /* ── CTA ── */
  .cta-section {
    padding: 80px 24px;
  }

  /* ── Footer ── */
  footer {
    padding: 32px 24px;
    font-size: 10px;
  }
}

/* ── 横スクロール防止 ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  /* サービスセクションの左右パディング調整 */
  .services-bg {
    padding: 72px 24px;
  }

  /* カードのパディングをスマホ用に縮小 */
  .service-card {
    padding: 40px 28px;
  }

  /* 口コミカードのパディング縮小 */
  .testimonial-card {
    padding: 36px 28px;
  }

  /* CTAボタンを画面幅に合わせる */
  .btn-primary {
    padding: 18px 32px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* 以下、全部貼る */