/* =====================================================
   けい｜60精霊による魂のテーマ診断 LP
   夜明けトーン: 深い夜のネイビー → ラベンダー → 桜色
   ===================================================== */

:root {
  --night: #0c0f24;
  --night-2: #141834;
  --dusk: #292a52;
  --twilight: #4b4478;
  --lavender: #9088c2;
  --sakura: #e9c3cd;
  --dawn: #f7ebe0;
  --gold: #c9a45c;
  --gold-bright: #e9d08f;
  --gold-deep: #a5813d;
  --ink-light: #f0eae0;   /* 夜パートの文字 */
  --ink-soft: #cdc5da;    /* 夜パートの補助文字 */
  --ink-dark: #3a334f;    /* 夜明けパートの文字 */
  --ink-dark-soft: #6b6280;
  --bubble-bg: #fbf7f0;
  --panel-line: #b9a06a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  line-height: 2;
  background: linear-gradient(180deg,
    var(--night)   0%,
    var(--night-2) 18%,
    var(--dusk)    36%,
    var(--twilight) 52%,
    var(--lavender) 66%,
    var(--sakura)  78%,
    var(--dawn)    90%,
    var(--dawn)    100%);
  overflow-x: hidden;
}

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

.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 680px; }

.pc { display: inline; }
.sp { display: none; }

/* ---------- 共通見出し ---------- */

.sec { padding: 110px 0; }

.sec-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 14px;
}
.sec-en.dark { color: var(--gold-deep); }

.sec-title {
  font-size: clamp(24px, 4.6vw, 34px);
  font-weight: 700;
  text-align: center;
  line-height: 1.7;
  margin-bottom: 26px;
}

.sec-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- CTAボタン ---------- */

.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #211a38;
  font-weight: 700;
  font-size: clamp(15px, 2.6vw, 18px);
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 20px 52px;
  border-radius: 999px;
  box-shadow: 0 6px 30px rgba(201, 164, 92, 0.45), inset 0 1px 0 rgba(255, 243, 200, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 38px rgba(201, 164, 92, 0.6), inset 0 1px 0 rgba(255, 243, 200, 0.7);
}
.btn-cta.big { padding: 22px 60px; }
.btn-cta.small { padding: 13px 30px; font-size: 14px; box-shadow: 0 4px 18px rgba(80, 60, 20, 0.35); }

/* =====================================================
   ファーストビュー
   ===================================================== */

.fv {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.fv-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.png") center 70% / cover no-repeat;
  filter: brightness(0.92);
}
.fv-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 15, 36, 0.55) 0%,
    rgba(12, 15, 36, 0.25) 45%,
    rgba(12, 15, 36, 0.72) 100%);
}

.fv-stars i {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0.7;
  animation: twinkle 4.2s ease-in-out infinite;
}
.fv-stars i:nth-child(1) { top: 12%; left: 14%; animation-delay: 0s; }
.fv-stars i:nth-child(2) { top: 20%; left: 78%; animation-delay: 0.9s; }
.fv-stars i:nth-child(3) { top: 8%;  left: 52%; animation-delay: 1.7s; width: 2px; height: 2px; }
.fv-stars i:nth-child(4) { top: 30%; left: 30%; animation-delay: 2.4s; width: 2px; height: 2px; }
.fv-stars i:nth-child(5) { top: 16%; left: 90%; animation-delay: 3.1s; }
.fv-stars i:nth-child(6) { top: 34%; left: 66%; animation-delay: 1.2s; width: 2px; height: 2px; }
.fv-stars i:nth-child(7) { top: 6%;  left: 26%; animation-delay: 2.8s; }
.fv-stars i:nth-child(8) { top: 26%; left: 8%;  animation-delay: 3.6s; width: 2px; height: 2px; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.fv-inner {
  position: relative;
  z-index: 1;
  padding: 90px 24px 120px;
  max-width: 780px;
  animation: fvRise 1.6s ease both;
}

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

.fv-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.5em;
  color: var(--gold-bright);
  margin-bottom: 20px;
}

.fv-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink-light);
  border: 1px solid rgba(201, 164, 92, 0.55);
  padding: 8px 22px;
  border-radius: 999px;
  margin-bottom: 34px;
  background: rgba(12, 15, 36, 0.35);
}
.fv-free {
  font-size: 12px;
  color: #241c3e;
  background: var(--gold-bright);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
}

.nowrap { white-space: nowrap; }

.fv-title {
  font-size: clamp(21px, 5.6vw, 44px);
  font-weight: 700;
  line-height: 1.85;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(8, 10, 28, 0.8);
}

.fv-sub {
  font-size: clamp(14px, 2.4vw, 16px);
  color: var(--ink-soft);
  margin-bottom: 44px;
  text-shadow: 0 1px 12px rgba(8, 10, 28, 0.9);
}

.fv-note {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--sakura);
}

.fv-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: rgba(240, 234, 224, 0.6);
  z-index: 1;
}
.fv-scroll span {
  display: block;
  width: 1px;
  height: 44px;
  margin: 0 auto 10px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =====================================================
   漫画
   ===================================================== */

.sec-manga { padding-top: 130px; }

.manga {
  max-width: 620px;
  margin: 60px auto 0;
  display: grid;
  gap: 44px;
}

.panel {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--panel-line);
  outline: 1px solid rgba(185, 160, 106, 0.25);
  outline-offset: 5px;
  box-shadow: 0 18px 50px rgba(4, 6, 20, 0.55);
  background: var(--night-2);
}

.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 吹き出し */
.bubble {
  position: absolute;
  background: var(--bubble-bg);
  color: #302a45;
  font-size: clamp(12px, 2.4vw, 16px);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  border-radius: 22px;
  max-width: 72%;
  box-shadow: 0 4px 16px rgba(20, 16, 40, 0.3);
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 30px;
  width: 14px;
  height: 14px;
  background: var(--bubble-bg);
  transform: rotate(45deg);
  border-radius: 0 0 4px 0;
}
.bubble.think { border-radius: 30px; }
.bubble.think::after {
  width: 9px; height: 9px;
  border-radius: 50%;
  bottom: -12px;
  transform: none;
}

/* ナレーション */
.narr {
  position: absolute;
  background: rgba(24, 20, 48, 0.92);
  color: var(--ink-light);
  font-size: clamp(11px, 2.2vw, 14px);
  line-height: 1.9;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border-left: 2px solid var(--gold);
  max-width: 86%;
  white-space: nowrap;
}
.narr.quote {
  white-space: normal;
  width: 88%;
  text-align: left;
  border-left: none;
  border-top: 2px solid var(--gold);
  background: rgba(24, 20, 48, 0.94);
  color: var(--gold-bright);
  font-size: clamp(11px, 2.1vw, 13.5px);
}
.narr.last {
  background: rgba(247, 235, 224, 0.94);
  color: var(--ink-dark);
  border-left: none;
  border-bottom: 2px solid var(--gold-deep);
  text-align: center;
  font-size: clamp(13px, 2.6vw, 16px);
}

/* =====================================================
   共感チェック
   ===================================================== */

.checklist {
  list-style: none;
  max-width: 640px;
  margin: 50px auto 0;
  display: grid;
  gap: 18px;
}

.checklist li {
  position: relative;
  background: rgba(20, 24, 52, 0.55);
  border: 1px solid rgba(144, 136, 194, 0.35);
  padding: 20px 24px 20px 60px;
  font-size: clamp(14px, 2.4vw, 16px);
  line-height: 1.9;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 14px;
  border-right: 2px solid var(--gold-bright);
  border-bottom: 2px solid var(--gold-bright);
  margin-top: -2px;
}

.empathy-close {
  text-align: center;
  margin-top: 44px;
  font-size: clamp(15px, 2.8vw, 18px);
  color: var(--gold-bright);
  letter-spacing: 0.1em;
}

/* =====================================================
   悩みの正体
   ===================================================== */

.cause-body { margin-top: 40px; display: grid; gap: 26px; }
.cause-body p { font-size: clamp(14px, 2.4vw, 16px); }

.cause-key {
  margin-top: 56px;
  text-align: center;
  font-size: clamp(18px, 3.4vw, 24px);
  font-weight: 700;
  line-height: 2.1;
  color: var(--gold-bright);
  padding: 34px 20px;
  border-top: 1px solid rgba(201, 164, 92, 0.5);
  border-bottom: 1px solid rgba(201, 164, 92, 0.5);
  position: relative;
}
.cause-key::before, .cause-key::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  left: 50%;
  margin-left: -5px;
}
.cause-key::before { top: -5px; background: var(--dusk); }
.cause-key::after { bottom: -5px; background: var(--twilight); }

/* =====================================================
   診断とは
   ===================================================== */

.about-lead {
  text-align: center;
  margin: 40px auto 56px;
  max-width: 680px;
  font-size: clamp(14px, 2.4vw, 16px);
}

.spirits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}

.spirits li {
  text-align: center;
  border: 1px solid rgba(201, 164, 92, 0.45);
  background: rgba(18, 20, 46, 0.4);
  padding: 26px 10px 22px;
  display: grid;
  gap: 12px;
}

.spirit-name {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
}
.spirit-desc {
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.knows {
  max-width: 640px;
  margin: 64px auto 0;
  border: 1px solid rgba(201, 164, 92, 0.5);
  padding: 40px 36px;
  background: rgba(18, 20, 46, 0.5);
  position: relative;
}
.knows::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 164, 92, 0.2);
  pointer-events: none;
}

.knows-title {
  text-align: center;
  font-size: clamp(16px, 2.8vw, 19px);
  color: var(--gold-bright);
  margin-bottom: 24px;
  font-weight: 700;
}

.knows-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.knows-list li {
  padding-left: 26px;
  position: relative;
  font-size: clamp(14px, 2.4vw, 15.5px);
}
.knows-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.95em;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* =====================================================
   プロフィール
   ===================================================== */

.profile-card {
  margin-top: 44px;
  text-align: center;
  border: 1px solid rgba(144, 136, 194, 0.45);
  padding: 46px 32px;
  background: rgba(30, 28, 64, 0.45);
}

.profile-name {
  font-size: clamp(22px, 3.6vw, 28px);
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.profile-role {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 10px;
  letter-spacing: 0.1em;
}

.profile-text {
  font-size: clamp(14px, 2.4vw, 15.5px);
  margin-bottom: 26px;
}

.profile-quote {
  font-size: clamp(13px, 2.3vw, 15px);
  color: var(--sakura);
  border-top: 1px solid rgba(201, 164, 92, 0.35);
  padding-top: 26px;
  line-height: 2.2;
}

/* =====================================================
   夜明けパート共通（明るい背景）
   ===================================================== */

.on-light { color: var(--ink-dark); }
.on-light .sec-title { color: var(--ink-dark); }

/* =====================================================
   スクリーニング
   ===================================================== */

.screening-lead {
  text-align: center;
  margin: 40px auto 54px;
  font-size: clamp(14px, 2.5vw, 16.5px);
  color: var(--ink-dark);
}

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

.scr-card {
  padding: 40px 32px;
  line-height: 2;
}

.scr-card h3 {
  font-size: clamp(15px, 2.6vw, 18px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.9;
}

.scr-card ul { list-style: none; display: grid; gap: 12px; }
.scr-card li {
  position: relative;
  padding-left: 24px;
  font-size: clamp(13.5px, 2.3vw, 15px);
}

.scr-no {
  background: #2e2947;
  color: #d8d2e2;
  border-top: 3px solid #8d5b52;
}
.scr-no h3 { color: #e3b8ac; }
.scr-no li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.85em;
  width: 10px; height: 2px;
  background: #c08a7d;
}

.scr-yes {
  background: rgba(252, 248, 240, 0.85);
  border-top: 3px solid var(--gold);
  box-shadow: 0 12px 40px rgba(120, 90, 60, 0.14);
}
.scr-yes h3 { color: var(--gold-deep); }
.scr-yes li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 7px; height: 12px;
  border-right: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(45deg);
}

/* =====================================================
   流れ
   ===================================================== */

.flow {
  list-style: none;
  margin-top: 50px;
  display: grid;
  gap: 0;
}

.flow li {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 40px;
}
.flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 54px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(201, 164, 92, 0.2));
}

.flow-num {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 22px;
  display: grid;
  place-items: center;
  background: rgba(252, 248, 240, 0.8);
}

.flow h3 {
  font-size: clamp(15px, 2.7vw, 18px);
  font-weight: 700;
  margin-bottom: 6px;
  padding-top: 8px;
}
.flow p { font-size: clamp(13px, 2.3vw, 14.5px); color: var(--ink-dark-soft); }

.flow-note {
  font-size: 13px;
  color: var(--ink-dark-soft);
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin-top: 8px;
}

/* =====================================================
   FAQ
   ===================================================== */

.faq {
  border-bottom: 1px solid rgba(58, 51, 79, 0.25);
  margin-top: 18px;
}
.faq:first-of-type { border-top: 1px solid rgba(58, 51, 79, 0.25); margin-top: 44px; }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 40px;
  position: relative;
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 16px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  position: absolute;
  left: 6px;
  top: 22px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--gold-deep);
  font-size: 20px;
  line-height: 1.6;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.faq p {
  padding: 0 12px 26px 40px;
  font-size: clamp(13.5px, 2.3vw, 15px);
  color: var(--ink-dark-soft);
}

/* =====================================================
   最終CTA・フッター
   ===================================================== */

.sec-final {
  text-align: center;
  padding-bottom: 140px;
}

.final-title {
  font-size: clamp(24px, 4.6vw, 34px);
  font-weight: 700;
  line-height: 1.9;
  margin-bottom: 26px;
}

.final-sub {
  font-size: clamp(14px, 2.5vw, 16px);
  color: var(--ink-dark-soft);
  margin-bottom: 48px;
}

.final-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-dark-soft);
}

.footer {
  text-align: center;
  padding: 60px 20px 90px;
  border-top: 1px solid rgba(58, 51, 79, 0.2);
  background: var(--dawn);
}

.footer-brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ink-dark);
  margin-bottom: 10px;
}
.footer-copy { font-size: 12px; color: var(--ink-dark-soft); letter-spacing: 0.12em; }

/* =====================================================
   モバイル追従CTA
   ===================================================== */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(12, 15, 36, 0.9);
  backdrop-filter: blur(8px);
  text-align: center;
  transform: translateY(110%);
  transition: transform 0.45s ease;
  z-index: 50;
}
.sticky-cta.show { transform: translateY(0); }

/* =====================================================
   スクロール出現
   ===================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fv-inner { animation: none; }
  .fv-stars i, .fv-scroll span { animation: none; }
}

/* =====================================================
   レスポンシブ
   ===================================================== */

@media (max-width: 768px) {
  .pc { display: none; }
  .sp { display: inline; }

  .sec { padding: 84px 0; }

  .spirits { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .spirits li { padding: 16px 4px 14px; }
  .spirit-desc { font-size: 10px; letter-spacing: 0; }

  .screening-cards { grid-template-columns: 1fr; }

  .btn-cta { padding: 18px 38px; }
}

@media (max-width: 480px) {
  .manga { gap: 30px; }

  .bubble { padding: 10px 14px; }
  .narr { padding: 8px 12px; }

  .spirits { grid-template-columns: repeat(2, 1fr) repeat(2, 1fr); }
  .spirits { grid-template-columns: repeat(2, 1fr); }
  .spirits li:last-child { grid-column: 1 / -1; }

  .knows { padding: 30px 22px; }
  .scr-card { padding: 30px 22px; }
}
