/* ==========================================================================
   Modern CSS Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
  color: #f5e9c8;
  background-color: #0a0612;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* ==========================================================================
   Site Header — 透過型ヘッダー
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    rgba(10, 6, 18, 0.55) 0%,
    rgba(10, 6, 18, 0) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f5e9c8;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.global-nav ul {
  display: flex;
  gap: 28px;
}

.global-nav a {
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #f5e9c8;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  transition: color 0.3s ease;
}

.global-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background-color: #d4af37;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.global-nav a:hover {
  color: #d4af37;
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

/* ==========================================================================
   Hero Wrapper — 動画背景セクション
   ========================================================================== */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-top-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8%;
  background: #0a0612;
  z-index: 1;
}

/* ==========================================================================
   CTA Button — 動画内ボタンに完全一致させる反応領域
   ========================================================================== */
.cta-button {
  position: absolute;
  left: 28%;
  top: 90%;
  transform: translate(-50%, -50%);
  width: 28%;
  max-width: 420px;
  height: 17%;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: none;
  border-radius: 9999px;

  font-family: 'Noto Serif JP', serif;
  font-size: 0;
  color: transparent;

  cursor: pointer;
  transition: box-shadow 0.35s ease, transform 0.35s ease;

  -webkit-tap-highlight-color: transparent;
}

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

/* 水晶玉のような淡い光のホバー演出 */
.cta-button:hover,
.cta-button:focus-visible {
  box-shadow:
    0 0 20px rgba(212, 175, 55, 0.8),
    0 0 60px rgba(180, 130, 220, 0.45),
    inset 0 0 30px rgba(255, 255, 255, 0.08);
  outline: none;
}

.cta-button:active {
  transform: translate(-50%, -50%) scale(0.98);
}

/* ==========================================================================
   Concept Section — 月詠子猫団のコンセプト（ヒーローと診断の間）
   ========================================================================== */
.concept-section {
  position: relative;
  width: 100%;
  padding: 12vh 5vw 14vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(80, 40, 140, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(60, 30, 100, 0.3) 0%, transparent 55%),
    linear-gradient(180deg, #050218 0%, #1a0a3e 50%, #0a0612 100%);
  color: #f5e9c8;
  overflow: hidden;
  text-align: center;
}

.concept-section::before,
.concept-section::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(245, 233, 200, 0.5);
  border-radius: 50%;
  box-shadow:
    20vw 8vh 0 rgba(245, 233, 200, 0.4),
    -25vw 15vh 0 rgba(245, 233, 200, 0.35),
    30vw -5vh 0 rgba(212, 175, 55, 0.5),
    -15vw -10vh 0 rgba(245, 233, 200, 0.3),
    10vw 25vh 0 rgba(212, 175, 55, 0.4),
    -30vw 5vh 0 rgba(245, 233, 200, 0.45),
    35vw 20vh 0 rgba(212, 175, 55, 0.3);
}

.concept-section::before {
  top: 20%;
  left: 50%;
  animation: twinkleA 5s ease-in-out infinite;
}

.concept-section::after {
  bottom: 25%;
  right: 30%;
  animation: twinkleA 7s ease-in-out infinite 1s;
}

@keyframes twinkleA {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1;   }
}

.concept-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  z-index: 2;
}

.concept-moon {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5vh;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
  animation: moonFloat 6s ease-in-out infinite;
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0);     opacity: 0.85; }
  50%      { transform: translateY(-8px);  opacity: 1;    }
}

.concept-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255, 215, 100, 0.95);
  margin-bottom: 6vh;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.4);
}

.concept-verse {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
  line-height: 2.4;
  letter-spacing: 0.1em;
  color: rgba(245, 233, 200, 0.95);
  margin-bottom: 4vh;
  animation: verseFadeIn 1.2s ease both;
}

.concept-verse:nth-child(3) { animation-delay: 0.3s; }
.concept-verse:nth-child(4) { animation-delay: 0.6s; }
.concept-verse:nth-child(5) { animation-delay: 0.9s; }

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

.concept-verse--mystery {
  font-style: italic;
  color: rgba(212, 175, 55, 0.85);
  margin-top: 5vh;
}

.concept-cta {
  display: inline-block;
  margin-top: 4vh;
  padding: 1em 3em;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  letter-spacing: 0.2em;
  color: #f5e9c8;
  background: linear-gradient(135deg, #4a2870 0%, #2a1450 100%);
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 9999px;
  text-decoration: none;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.concept-cta:hover,
.concept-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 24px rgba(212, 175, 55, 0.8),
    0 0 60px rgba(180, 130, 220, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   動画の音声 ON/OFF ボタン
   ========================================================================== */
.video-sound-toggle {
  position: absolute;
  top: 14vh;
  right: 24px;
  z-index: 3;
  padding: 0.5em 1em;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.78rem, 1.3vw, 0.9rem);
  letter-spacing: 0.1em;
  color: #f5e9c8;
  background: rgba(10, 6, 18, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 9999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.video-sound-toggle:hover,
.video-sound-toggle:focus-visible {
  outline: none;
  background: rgba(60, 30, 90, 0.85);
  border-color: rgba(212, 175, 55, 0.95);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.video-sound-toggle.is-on {
  background: rgba(120, 80, 180, 0.75);
  border-color: rgba(255, 215, 100, 0.85);
  color: rgba(255, 215, 100, 0.95);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.4);
}

/* インタールード内のボタンは下寄せ位置に */
.interlude-wrap .video-sound-toggle {
  top: auto;
  bottom: 24px;
}

@media (max-width: 480px) {
  .video-sound-toggle {
    top: 12vh;
    right: 12px;
    padding: 0.4em 0.8em;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   Interlude Section — コンセプトと診断の間の動画
   ========================================================================== */
.interlude-section {
  position: relative;
  width: 100%;
  background: #050218;
  overflow: hidden;
}

.interlude-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  overflow: hidden;
}

.interlude-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.interlude-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 5vw 8vh;
  background: linear-gradient(
    180deg,
    rgba(10, 6, 18, 0.3) 0%,
    rgba(10, 6, 18, 0) 30%,
    rgba(10, 6, 18, 0) 70%,
    rgba(10, 6, 18, 0.8) 100%
  );
  pointer-events: none;
}

.interlude-caption {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.2em;
  color: rgba(255, 215, 100, 0.95);
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.8), 0 0 28px rgba(212, 175, 55, 0.4);
  text-align: center;
  animation: interludeFadeIn 1.5s ease both 0.5s;
  opacity: 0;
}

@keyframes interludeFadeIn {
  to { opacity: 1; }
}

/* ==========================================================================
   Diagnosis Section — 診断フォーム
   ========================================================================== */
.diagnosis-section {
  position: relative;
  width: 100%;
  padding: 6vh 0 8vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(60, 30, 90, 0.4), transparent 60%),
    #0a0612;
}

.diagnosis-container {
  position: relative;
  width: min(92%, 1100px);
  margin: 0 auto;
  aspect-ratio: 1237 / 941;
  background-image: url('scene-diagnosis.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
}

.diagnosis-form {
  position: absolute;
  inset: 0;
}

/* 共通: 画像内テキストを覆い隠す入力要素 */
.form-input,
.form-select {
  position: absolute;
  transform: translate(-50%, -50%);
  background-color: #1a1a2e;
  color: #f5e9c8;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  text-align: center;
  padding: 0 0.5em;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus {
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* 未選択の生年月日は「年・月・日」を薄い文字で案内表示 */
.form-select.is-placeholder {
  color: rgba(245, 233, 200, 0.5);
}

/* STEP1: お名前入力欄（「例）山田 花子」を完全に塗りつぶす） */
.form-input--name {
  left: 19%;
  top: 37%;
  width: 22%;
  height: 8%;
}

/* STEP2: 生年月日 3つのセレクトボックス */
.form-select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(212, 175, 55, 0.8) 50%),
    linear-gradient(135deg, rgba(212, 175, 55, 0.8) 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 7px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5em;
}

.form-select--year {
  left: 50%;
  top: 37%;
  width: 19%;
  height: 7%;
}

.form-select--month {
  left: 50%;
  top: 47%;
  width: 19%;
  height: 7%;
}

.form-select--day {
  left: 50%;
  top: 55%;
  width: 19%;
  height: 7%;
}

/* STEP3: 悩み選択 — 画像上のボタンに重なる透明クリック領域 */
.concern-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 13%;
  height: 7%;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  z-index: 2;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.concern-btn:hover,
.concern-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 16px rgba(180, 130, 220, 0.7);
}

.concern-btn.selected {
  box-shadow:
    0 0 18px rgba(212, 175, 55, 0.9),
    0 0 40px rgba(212, 175, 55, 0.45),
    inset 0 0 12px rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.9);
}

/* STEP3 ボタン配置（2列×3行） */
.concern-btn--love     { left: 73%; top: 47%; }
.concern-btn--work     { left: 87%; top: 47%; }
.concern-btn--relation { left: 73%; top: 57%; }
.concern-btn--money    { left: 87%; top: 57%; }
.concern-btn--self     { left: 73%; top: 67%; }
.concern-btn--other    { left: 87%; top: 67%; }

/* 「今日の運勢」ボタン：「一番気になることを教えてください」の文字の位置に配置 */
.today-float {
  position: absolute;
  left: 80%;
  top: 29%;
  transform: translate(-50%, -50%);
  width: 26%;
  height: 11%;
  background: rgba(26, 26, 46, 0.98);
  border: 1px solid rgba(212, 175, 55, 0.75);
  border-radius: 14px;
  color: #ffe9a8;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(0.55rem, 1.6vw, 1rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.today-float:hover,
.today-float:focus-visible {
  outline: none;
  box-shadow: 0 0 16px rgba(255, 215, 100, 0.8);
  border-color: rgba(255, 215, 100, 0.95);
}

/* 決定ボタン */
.submit-area {
  display: flex;
  justify-content: center;
  margin-top: 4vh;
}

.submit-btn {
  position: relative;
  padding: 1em 3em;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f5e9c8;
  background: linear-gradient(135deg, #4a2870 0%, #2a1450 100%);
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 9999px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 24px rgba(212, 175, 55, 0.85),
    0 0 60px rgba(180, 130, 220, 0.5),
    inset 0 0 24px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   Result Section — 鑑定結果
   ========================================================================== */
.result-section {
  position: relative;
  padding: 10vh 5vw 12vh;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(80, 40, 140, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(120, 80, 180, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #050218 0%, #1a0a3e 50%, #0a0612 100%);
  color: #f5e9c8;
  overflow: hidden;
}

.result-section[aria-hidden="true"] {
  display: none;
}

.result-section.is-revealed {
  animation: fadeUp 0.9s ease both;
}

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

/* ==========================================================================
   ステップ画面（入力 → 世界観 → 待ち → 結果）
   ========================================================================== */
.step-screen { display: none; animation: fadeUp 0.7s ease both; }
.step-screen.is-active { display: block; }

/* TOP：背景動画（文字なし）→ 下にスクロールで入力 */
.home-hero {
  position: relative;
  width: 100%;
  height: 78vh;
  overflow: hidden;
  margin-bottom: 4vh;
}
.home-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero-hint {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  text-align: center;
  color: #f5e9c8;
  font-size: clamp(0.9rem, 2.4vw, 1.1rem);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  animation: heroHintBob 1.8s ease-in-out infinite;
}
@keyframes heroHintBob {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* 子猫紹介ページ */
.screen-kittens {
  min-height: 100vh;
  background: linear-gradient(180deg, #050218 0%, #1a0a3e 55%, #0a0612 100%);
  color: #f5e9c8;
  padding: 12vh 5vw 10vh;
}

.kittens-page { max-width: 1000px; margin: 0 auto; }

.kittens-title {
  text-align: center;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  letter-spacing: 0.1em;
  text-shadow: 0 0 22px rgba(180, 130, 220, 0.6);
  margin-bottom: 0.6em;
}

.kittens-lead {
  text-align: center;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.9;
  color: rgba(245, 233, 200, 0.85);
  max-width: 640px;
  margin: 0 auto 2.4em;
}

.kittens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.6em;
}

.kitten-card {
  background: linear-gradient(160deg, rgba(40, 28, 70, 0.6), rgba(15, 10, 30, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  padding: 1.4em 1.2em;
  text-align: center;
}

.kitten-card-img {
  width: clamp(120px, 60%, 160px);
  height: auto;
  border-radius: 14px;
  margin: 0 auto 0.8em;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.kitten-card-orb {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 0.8em; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #fff;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.4), inset 0 0 18px rgba(0, 0, 0, 0.3);
}

.kitten-card-name {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: #ffe9a8;
  margin-bottom: 0.3em;
}
.kitten-card-name small { font-size: 0.7em; font-weight: 400; color: rgba(245, 233, 200, 0.6); }

.kitten-card-tags {
  font-size: 0.85rem;
  color: rgba(255, 215, 100, 0.9);
  margin-bottom: 0.6em;
}

.kitten-card-phrase {
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255, 215, 100, 0.95);
  margin-bottom: 0.6em;
}

.kitten-card-desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(245, 233, 200, 0.9);
}

.kittens-back-row { text-align: center; margin-top: 2.4em; }

.wish-note { font-size: 0.82em; color: rgba(245, 233, 200, 0.75); }

/* ==========================================================================
   子猫クレーンゲーム
   ========================================================================== */
.screen-crane {
  min-height: 100vh;
  background: linear-gradient(180deg, #050218 0%, #1a0a3e 55%, #0a0612 100%);
  color: #f5e9c8;
  padding: 12vh 5vw 10vh;
}
.crane-page { max-width: 760px; margin: 0 auto; text-align: center; }

.crane-machine {
  position: relative;
  margin: 1.8em auto;
  padding: 48px 14px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(60, 35, 110, 0.5), rgba(20, 12, 40, 0.7));
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.crane-rail {
  position: absolute;
  top: 22px; left: 5%; right: 5%;
  height: 4px;
  background: rgba(212, 175, 55, 0.5);
  border-radius: 2px;
}

.crane-claw {
  position: absolute;
  top: 14px;
  left: 3%;
  font-size: 1.8rem;
  line-height: 1;
  z-index: 3;
  animation: craneMove 3.4s linear infinite;
}
.crane-cord {
  display: block;
  width: 2px; height: 18px;
  background: rgba(212, 175, 55, 0.6);
  margin: 0 auto;
}
.crane-claw.is-dropping { animation: none; }
.crane-claw.is-dropping .crane-cord { height: 96px; transition: height 0.55s ease; }

@keyframes craneMove {
  0%   { left: 3%; }
  50%  { left: 90%; }
  100% { left: 3%; }
}

/* 子猫は1列に並べる（アームの真下＝取れる子猫が1対1で決まる＝精度UP） */
.crane-floor {
  display: flex;
  gap: 4px;
  margin-top: 40px;
  align-items: flex-end;
}

.crane-kitten {
  flex: 1 1 0;
  min-width: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 3px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.2s ease;
}
.crane-kitten img { width: 100%; height: auto; border-radius: 6px; display: block; }
.crane-kitten-glyph { font-size: 1.3rem; }

/* 今アームの真下にいる子猫（狙い） */
.crane-kitten.is-target {
  background: rgba(255, 215, 100, 0.22);
  box-shadow: 0 0 14px rgba(255, 215, 100, 0.8);
  transform: translateY(-6px) scale(1.06);
}

.crane-kitten.is-caught {
  transform: translateY(-18px) scale(1.18);
  box-shadow: 0 0 26px rgba(255, 215, 100, 0.95);
  z-index: 2;
}

.crane-result { margin-top: 1.6em; }
.crane-win {
  font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  font-weight: 700;
  color: #ffe9a8;
  text-shadow: 0 0 18px rgba(255, 215, 100, 0.6);
  margin-bottom: 1em;
}
.crane-win-card {
  display: flex; gap: 1.2em; align-items: center; justify-content: center;
  flex-wrap: wrap;
  background: rgba(25, 16, 45, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 1.4em;
  text-align: left;
}
.crane-win-card img { width: clamp(120px, 32vw, 150px); border-radius: 12px; }
.crane-win-text { flex: 1 1 220px; }
.crane-win-name { font-size: 1.2rem; font-weight: 700; color: #ffe9a8; }
.crane-win-name small { font-weight: 400; color: rgba(245, 233, 200, 0.6); }
.crane-win-phrase { font-style: italic; color: rgba(255, 215, 100, 0.95); margin: 0.4em 0; }
.crane-win-desc { line-height: 1.85; color: rgba(245, 233, 200, 0.9); }
.crane-win-goods { margin-top: 0.6em; color: rgba(255, 215, 100, 0.9); font-size: 0.95rem; }

@media (max-width: 520px) {
  .crane-floor { gap: 2px; }
  .crane-kitten { padding: 2px; }
}

/* 今日の運勢タロット */
.screen-today {
  min-height: 100vh;
  background: linear-gradient(180deg, #050218 0%, #1a0a3e 55%, #0a0612 100%);
  color: #f5e9c8;
  padding: 12vh 5vw 10vh;
}
.today-page { max-width: 640px; margin: 0 auto; text-align: center; }
.today-date {
  font-size: 1.05rem;
  color: rgba(255, 215, 100, 0.9);
  letter-spacing: 0.08em;
  margin-bottom: 1em;
}
.today-card {
  display: flex;
  gap: 1.4em;
  align-items: flex-start;
  text-align: left;
  background: rgba(25, 16, 45, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 1.6em;
}
.today-card .tdive-frame { width: clamp(120px, 32vw, 160px); flex-shrink: 0; margin: 0; }
.today-card-text { flex: 1 1 auto; min-width: 0; }
.today-card-text .tdive-cardname { font-size: clamp(1.2rem, 3vw, 1.5rem); }
.today-card-text .tdive-meaning { font-size: clamp(1rem, 2.3vw, 1.18rem); line-height: 2; margin: 0.6em 0; }
.today-hint {
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  color: #ffe9a8;
  line-height: 1.9;
  margin-top: 0.8em;
  padding-top: 0.8em;
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
}
@media (max-width: 520px) {
  .today-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ② 世界観・③ 待ち：全画面動画＋中央テキスト */
.screen-world,
.screen-wait {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.world-video,
.wait-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.world-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 40%, rgba(10, 6, 25, 0.35) 0%, rgba(10, 6, 25, 0.75) 100%);
}

.world-inner,
.wait-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 16vh 7vw;
  text-align: center;
  color: #f5e9c8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 文字を読みやすくする下地パネル */
.world-panel {
  background: rgba(12, 8, 26, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: clamp(1.6em, 5vw, 2.6em) clamp(1.4em, 6vw, 2.8em);
  margin-bottom: 1.6em;
  max-width: 560px;
}

.world-inner .concept-title {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  letter-spacing: 0.2em;
  margin-bottom: 0.8em;
  text-shadow: 0 0 24px rgba(180, 130, 220, 0.7);
}

.world-inner .concept-verse {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 2.2;
  margin-bottom: 1.4em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.world-inner .concept-moon {
  font-size: 2.4rem;
  margin-bottom: 0.4em;
}

#world-next-btn { margin-top: 1.2em; }

/* ③ 待ち画面 */
.wait-cat {
  font-size: clamp(2.6rem, 9vw, 4rem);
  letter-spacing: 0.18em;
  margin-bottom: 0.4em;
  animation: tdiveFloat 1.6s ease-in-out infinite;
}

.wait-text {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #ffe9a8;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(255, 215, 100, 0.6), 0 2px 12px rgba(0, 0, 0, 0.8);
  animation: tdiveBlink 1.4s ease-in-out infinite;
  margin-bottom: 0.8em;
}

.wait-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: rgba(245, 233, 200, 0.9);
  line-height: 1.9;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* 入力ページ：念じてのメッセージ */
.wish-prompt {
  text-align: center;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: #ffe9a8;
  letter-spacing: 0.06em;
  line-height: 1.8;
  margin-bottom: 1em;
  text-shadow: 0 0 14px rgba(255, 215, 100, 0.4);
}

.result-container {
  max-width: 760px;
  margin: 0 auto;
}

.result-header {
  text-align: center;
  margin-bottom: 6vh;
}

.result-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: rgba(245, 233, 200, 0.55);
  margin-bottom: 0.8em;
}

.result-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 0.4em;
}

.result-title-suffix {
  font-size: 0.7em;
  margin-left: 0.2em;
  color: rgba(245, 233, 200, 0.7);
}

.result-date {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: rgba(245, 233, 200, 0.6);
  margin-bottom: 3vh;
}

/* 子猫ヒーロー（結果ヘッダー内に大きく表示） */
.result-kitten-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 36px);
  flex-wrap: wrap;
  padding: 3vh 2vw 2vh;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, rgba(40, 20, 70, 0.3) 0%, rgba(20, 10, 40, 0.2) 100%);
  border-radius: 16px;
  margin-top: 2vh;
}

.result-kitten-hero .kitten-meta {
  text-align: left;
  min-width: 180px;
}

.kitten-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgba(212, 175, 55, 0.7);
  margin-bottom: 0.4em;
}

/* オラクル導入文 */
.oracle-intro {
  text-align: center;
  font-style: italic;
  color: rgba(245, 233, 200, 0.7);
  margin-bottom: 1.5em;
  font-size: clamp(0.92rem, 1.6vw, 1rem);
}

.result-block {
  margin-bottom: 4vh;
  padding: clamp(20px, 4vw, 36px);
  background: rgba(20, 10, 40, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideUp 0.7s ease both;
}

.result-block:nth-child(2) { animation-delay: 0.10s; }
.result-block:nth-child(3) { animation-delay: 0.20s; }
.result-block:nth-child(4) { animation-delay: 0.30s; }
.result-block:nth-child(5) { animation-delay: 0.40s; }
.result-block:nth-child(6) { animation-delay: 0.50s; }
.result-block:nth-child(7) { animation-delay: 0.60s; }
.result-block:nth-child(8) { animation-delay: 0.70s; }
.result-block:nth-child(9) { animation-delay: 0.80s; }

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

.block-label {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: rgba(212, 175, 55, 0.75);
  margin-bottom: 1.2em;
  text-align: center;
}

/* 子猫プロフィール */
.kitten-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2em;
}

.kitten-avatar {
  --kitten-color1: #3d2160;
  --kitten-color2: #7a4ec7;
  width: clamp(170px, 40vw, 240px);
  aspect-ratio: 236 / 430;
  height: auto;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, var(--kitten-color2), var(--kitten-color1) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 44px var(--kitten-color2),
    0 0 0 2px rgba(212, 175, 55, 0.6);
  position: relative;
}

.kitten-avatar::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 26px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.kitten-glyph {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.kitten-meta {
  flex: 1;
  min-width: 200px;
}

.kitten-name {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.3em;
}

.kitten-reading {
  display: inline-block;
  font-size: 0.55em;
  color: rgba(245, 233, 200, 0.65);
  margin-left: 0.3em;
  font-weight: 400;
}

.yin-yang-badge {
  display: inline-block;
  padding: 0.2em 1em;
  margin: 0.5em 0 1em;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
}

.yin-yang-badge[data-yinyang="陰"] {
  border-color: rgba(120, 130, 200, 0.6);
  background: rgba(50, 60, 120, 0.25);
}

.yin-yang-badge[data-yinyang="陽"] {
  border-color: rgba(240, 180, 90, 0.7);
  background: rgba(180, 120, 50, 0.2);
}

.kitten-personality {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.8;
  color: rgba(245, 233, 200, 0.9);
}

.kitten-attrs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1em 2em;
  margin-top: 1.5em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.kitten-attrs > div { display: flex; flex-direction: column; gap: 0.2em; }

.kitten-attrs dt {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: rgba(212, 175, 55, 0.7);
}

.kitten-attrs dd {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 233, 200, 0.9);
  margin: 0;
}

/* 月相 */
.moon-name {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  text-align: center;
  letter-spacing: 0.18em;
  margin-bottom: 0.2em;
}

.moon-subtitle {
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: rgba(212, 175, 55, 0.85);
  margin-bottom: 1.2em;
}

.moon-description {
  font-size: 0.98rem;
  line-height: 1.95;
  text-align: center;
  color: rgba(245, 233, 200, 0.88);
}

/* オラクルカード */
.oracle-card {
  --card-border: rgba(212, 175, 55, 0.8);
  --card-glow:   rgba(212, 175, 55, 0.55);
  max-width: 380px;
  margin: 0 auto;
  padding: 2px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--card-border), rgba(180, 130, 220, 0.5));
  box-shadow: 0 0 40px var(--card-glow);
}

.oracle-card[data-state="欠け"] {
  --card-border: rgba(140, 150, 200, 0.7);
  --card-glow:   rgba(100, 110, 170, 0.5);
}

.oracle-card-inner {
  padding: clamp(20px, 4vw, 32px);
  background: linear-gradient(180deg, #1a0a3e 0%, #050218 100%);
  border-radius: 14px;
  text-align: center;
}

.oracle-card-state {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: rgba(212, 175, 55, 0.85);
  margin-bottom: 1em;
}

.oracle-card[data-state="欠け"] .oracle-card-state {
  color: rgba(160, 170, 220, 0.85);
}

.oracle-card-name {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  letter-spacing: 0.12em;
  margin-bottom: 0.8em;
}

.oracle-card-meaning {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 233, 200, 0.8);
  margin-bottom: 1.5em;
}

.oracle-card-message {
  font-size: 1rem;
  line-height: 1.9;
  font-style: italic;
  padding: 1.2em 1em;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  color: #f5e9c8;
}

/* 散文セクション共通（魂状態・共鳴・助言・伏線） */
.prose {
  font-family: 'Noto Serif JP', serif;
}

.prose p {
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  line-height: 2.1;
  margin-bottom: 1.4em;
  color: rgba(245, 233, 200, 0.95);
  letter-spacing: 0.02em;
}

.prose p:last-child { margin-bottom: 0; }

/* 1. 感情理解 — 大きめ・温かい */
.result-block--understanding .prose p {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 2.2;
}

.result-block--understanding .prose p:first-child {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: rgba(212, 175, 55, 0.95);
  letter-spacing: 0.08em;
  text-align: center;
}

/* 2. 現在の状態分析 */
.result-block--state .prose p {
  line-height: 2.15;
}

.result-block--state .prose p:first-child {
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: rgba(212, 175, 55, 0.9);
  letter-spacing: 0.1em;
  margin-bottom: 1.5em;
}

/* 4. 今の才能 — 金色のハイライト */
.result-block--talents {
  background: linear-gradient(180deg, rgba(60, 40, 20, 0.45) 0%, rgba(20, 10, 40, 0.55) 100%);
  border-color: rgba(212, 175, 55, 0.5);
}

.result-block--talents .prose strong {
  color: rgba(255, 215, 100, 0.95);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* 5. 小さな行動の提案 */
.result-block--actions .prose strong {
  color: rgba(180, 220, 200, 0.95);
  font-weight: 700;
  display: inline-block;
  padding: 0.1em 0;
}

.result-block--actions .prose p:nth-child(n+3):nth-child(-n+5) {
  padding: 0.8em 1em;
  background: rgba(40, 30, 60, 0.4);
  border-left: 2px solid rgba(180, 220, 200, 0.5);
  border-radius: 6px;
  margin-bottom: 1em;
}

/* 6. 今夜の一歩 — 強調 */
.result-block--today {
  background: linear-gradient(180deg, rgba(60, 30, 90, 0.5) 0%, rgba(20, 10, 40, 0.65) 100%);
  border-color: rgba(180, 130, 220, 0.45);
  box-shadow: 0 0 32px rgba(120, 80, 180, 0.25);
}

.result-block--today .prose p:nth-child(2) {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  text-align: center;
  color: #f5e9c8;
  padding: 0.8em 1em;
  margin: 1em 0;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  letter-spacing: 0.05em;
}

.result-block--today .prose strong {
  color: rgba(255, 220, 180, 0.98);
  letter-spacing: 0.05em;
}

/* 7. 来月への希望 — 静かに余韻 */
.result-block--hope {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(80, 50, 130, 0.4) 0%, rgba(20, 10, 40, 0.6) 70%);
  text-align: center;
}

.result-block--hope .prose p {
  text-align: center;
  line-height: 2.2;
}

.result-block--hope .prose p:first-child {
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  color: rgba(245, 233, 200, 0.95);
}

.result-block--hope .prose p:last-child {
  font-size: 0.92rem;
  color: rgba(212, 175, 55, 0.8);
  font-style: italic;
  margin-top: 1.5em;
}

.result-block--hope::after {
  content: '🌙';
  display: block;
  text-align: center;
  font-size: 1.8rem;
  margin-top: 1.5em;
  opacity: 0.6;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

/* オラクル（サイド・小さめ） */
.result-block--oracle-side {
  margin-top: 5vh;
  opacity: 0.92;
}

.result-block--oracle-side .block-label {
  opacity: 0.7;
}

/* 2. 共鳴している子猫 — 共鳴テキストは少し情緒的に */
.result-block--kitten .prose {
  margin-top: 1.5em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.result-block--kitten .prose p:nth-child(4) {
  font-style: italic;
  text-align: center;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: rgba(212, 175, 55, 0.9);
  padding: 0.8em 0;
}

/* 4. 心を軽くする助言 — 引用風 */
.result-block--advice {
  background: rgba(20, 10, 40, 0.7);
}

.result-block--advice .prose {
  padding: 1.5em clamp(1em, 3vw, 2em);
  border-left: 2px solid rgba(212, 175, 55, 0.6);
}

.result-block--advice .prose p {
  font-style: italic;
}

.result-block--advice .prose p:last-child {
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(212, 175, 55, 0.85);
  margin-top: 0.8em;
}

/* 5. 来月への伏線 — 静かに余韻を残す */
.result-block--foreshadowing {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(80, 50, 130, 0.4) 0%, rgba(20, 10, 40, 0.6) 70%);
  text-align: center;
}

.result-block--foreshadowing .prose p {
  text-align: center;
  line-height: 2.2;
}

.result-block--foreshadowing .prose p:first-child {
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  color: rgba(245, 233, 200, 0.95);
}

.result-block--foreshadowing .prose p:last-child {
  font-size: 0.9rem;
  color: rgba(212, 175, 55, 0.8);
  font-style: italic;
  margin-top: 1.2em;
}

/* 旧 .result-block--foreshadowing の月マークは .result-block--hope に移動 */

/* 詳細データセクション（折りたたみ） */
.detail-data {
  margin-top: 5vh;
  padding: 1.5em 1.5em 0.5em;
  background: rgba(20, 10, 40, 0.4);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: 12px;
}

.detail-data summary {
  cursor: pointer;
  padding: 1em 0;
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  color: rgba(212, 175, 55, 0.85);
  letter-spacing: 0.1em;
  text-align: center;
  list-style: none;
  user-select: none;
}

.detail-data summary::-webkit-details-marker {
  display: none;
}

.detail-data summary::before {
  content: '▶ ';
  display: inline-block;
  margin-right: 0.3em;
  transition: transform 0.3s ease;
  font-size: 0.7em;
}

.detail-data[open] summary::before {
  transform: rotate(90deg);
}

.detail-data summary:hover {
  color: rgba(255, 215, 100, 0.95);
}

.detail-data[open] {
  padding-bottom: 1.5em;
}

/* 守護オーラ */
.result-block--aura {
  background: linear-gradient(180deg, rgba(20, 10, 40, 0.7) 0%, rgba(40, 20, 70, 0.6) 100%);
  border-color: rgba(212, 175, 55, 0.5);
}

/* あなたのタイプ（動物占い風ラベル） */
.type-label {
  text-align: center;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 215, 100, 0.98);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  margin-bottom: 0.6em;
}

.type-summary {
  text-align: center;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  line-height: 1.9;
  color: rgba(245, 233, 200, 0.9);
  margin-bottom: 2em;
  padding: 0 1em;
}

.aura-blend {
  font-size: 0.82rem;
  color: rgba(245, 233, 200, 0.65);
  letter-spacing: 0.05em;
  margin-top: 0.6em;
  line-height: 1.7;
}

.aura-display {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 36px);
  flex-wrap: wrap;
  justify-content: center;
  padding: 1em 0;
}

.aura-orb {
  width: clamp(120px, 16vw, 160px);
  height: clamp(120px, 16vw, 160px);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  animation: auraGlow 4s ease-in-out infinite;
}

.aura-orb::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

@keyframes auraGlow {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

.aura-info { flex: 1; min-width: 180px; }

.aura-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.1em;
  margin-bottom: 0.2em;
  color: rgba(255, 215, 100, 0.95);
}

.aura-en {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: rgba(245, 233, 200, 0.7);
  margin-bottom: 0.8em;
}

.aura-element {
  font-size: 0.85rem;
  color: rgba(245, 233, 200, 0.65);
  letter-spacing: 0.05em;
}

/* ルビ・読みやすさ */
ruby rt {
  font-size: 0.55em;
  color: rgba(212, 175, 55, 0.75);
  letter-spacing: 0.05em;
  font-weight: 400;
}

.block-intro {
  font-size: 0.92rem;
  color: rgba(245, 233, 200, 0.7);
  margin-bottom: 1em;
  text-align: center;
  letter-spacing: 0.05em;
}

/* 結運の詩的＆平易表示 */
.chart-ketsuun {
  margin-top: 1em;
  padding: 1em 1.2em;
  background: rgba(60, 30, 90, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  text-align: center;
}

.ketsuun-poetic {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 215, 100, 0.95);
  letter-spacing: 0.05em;
  margin-bottom: 0.4em;
}

.ketsuun-plain {
  font-size: 0.92rem;
  color: rgba(245, 233, 200, 0.85);
  font-style: italic;
}

/* やさしい翻訳セクション */
.chart-translation-wrap {
  margin-top: 1.5em;
  padding: 1.2em 1.4em;
  background: rgba(20, 10, 40, 0.5);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 10px;
}

.chart-translation-title {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: rgba(212, 175, 55, 0.85);
  margin-bottom: 1em;
  text-align: center;
}

.chart-translation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chart-translation-list li {
  padding: 0.5em 0;
  line-height: 1.9;
  font-size: 0.92rem;
  color: rgba(245, 233, 200, 0.9);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.chart-translation-list li:last-child { border-bottom: none; }

.chart-translation-list strong {
  color: rgba(255, 215, 100, 0.95);
  letter-spacing: 0.05em;
}

.chart-translation-list .trans-desc {
  display: block;
  margin-top: 0.3em;
  padding-left: 0.5em;
  color: rgba(245, 233, 200, 0.85);
  font-size: 0.9rem;
  line-height: 1.8;
}

.chart-translation-list .trans-soul {
  padding: 0.8em;
  background: rgba(60, 30, 90, 0.3);
  border-left: 2px solid rgba(212, 175, 55, 0.6);
  border-radius: 6px;
  margin: 0.5em 0;
}

/* 通変星 */
.tongbianxing-wrap {
  margin-top: 1.5em;
  padding: 1.2em 1.4em;
  background: rgba(40, 25, 80, 0.45);
  border: 1px dashed rgba(180, 130, 220, 0.4);
  border-radius: 10px;
}

.tongbianxing-list {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0;
}

.tongbianxing-list li {
  padding: 0.8em 0;
  border-bottom: 1px solid rgba(180, 130, 220, 0.15);
  line-height: 1.8;
  font-size: 0.9rem;
}

.tongbianxing-list li:last-child { border-bottom: none; }

.tongbianxing-list strong {
  color: rgba(255, 215, 100, 0.9);
  letter-spacing: 0.05em;
}

.tongbianxing-list .tbx-brand {
  display: inline-block;
  padding: 0.1em 0.6em;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 4px;
  color: rgba(255, 215, 100, 0.95);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0.3em;
}

.tongbianxing-list .tbx-short {
  display: block;
  color: rgba(212, 175, 55, 0.85);
  font-size: 0.85rem;
  margin: 0.2em 0;
}

.tongbianxing-list .tbx-team-desc {
  display: block;
  color: rgba(245, 233, 200, 0.85);
  padding-left: 0.5em;
  font-style: italic;
}

/* 年運サイクル */
.year-cycle-wrap {
  margin-top: 1.5em;
  padding: 1.2em 1.4em;
  background: radial-gradient(ellipse at center, rgba(80, 50, 130, 0.35) 0%, rgba(20, 10, 40, 0.5) 70%);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  text-align: center;
}

.year-cycle-name {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 215, 100, 0.95);
  margin-bottom: 0.5em;
}

.year-cycle-name strong {
  display: block;
  font-size: 1.2em;
  margin-bottom: 0.3em;
  letter-spacing: 0.1em;
}

.year-cycle-desc {
  font-size: 0.95rem;
  color: rgba(245, 233, 200, 0.88);
  line-height: 1.9;
}

/* 十二運星 */
.juniunsei-wrap {
  margin-top: 1.5em;
  padding: 1.2em 1.4em;
  background: rgba(20, 10, 40, 0.5);
  border: 1px dashed rgba(255, 180, 80, 0.4);
  border-radius: 10px;
}

.juniunsei-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.juniunsei-list li {
  padding: 0.7em 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  line-height: 1.8;
  font-size: 0.92rem;
}

.juniunsei-list li:last-child { border-bottom: none; }

.juniunsei-list strong {
  color: rgba(255, 215, 100, 0.9);
}

.juniunsei-list .unsei-name {
  display: inline-block;
  padding: 0.1em 0.6em;
  background: rgba(255, 180, 80, 0.18);
  border: 1px solid rgba(255, 180, 80, 0.5);
  border-radius: 4px;
  color: rgba(255, 200, 130, 0.95);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.juniunsei-list .unsei-desc {
  display: block;
  margin-top: 0.3em;
  color: rgba(245, 233, 200, 0.88);
}

/* 月詠コンボ */
.combos-wrap {
  margin-top: 1.5em;
  padding: 1.2em 1.4em;
  background: rgba(30, 15, 60, 0.5);
  border: 1px dashed rgba(180, 130, 220, 0.5);
  border-radius: 10px;
}

.combo-card {
  margin-bottom: 1em;
  padding: 1em 1.2em;
  background: rgba(60, 30, 90, 0.4);
  border-left: 3px solid rgba(255, 215, 100, 0.7);
  border-radius: 6px;
}

.combo-card:last-child { margin-bottom: 0; }

.combo-brand {
  font-size: 1.1em;
  color: rgba(255, 215, 100, 0.95);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.3em;
}

.combo-type {
  font-size: 0.85rem;
  color: rgba(245, 233, 200, 0.65);
  margin-bottom: 0.5em;
}

.combo-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(245, 233, 200, 0.92);
}

.combo-empty {
  text-align: center;
  font-style: italic;
  color: rgba(245, 233, 200, 0.65);
  font-size: 0.9rem;
}

/* 五行の世界 */
.wuxing-details-wrap {
  margin-top: 1.5em;
  padding: 1.2em 1.4em;
  background: rgba(20, 10, 40, 0.5);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 10px;
}

.wuxing-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wuxing-details-list li {
  padding: 0.7em 0.8em;
  margin-bottom: 0.5em;
  border-radius: 6px;
  line-height: 1.8;
  font-size: 0.92rem;
}

.wuxing-details-list .wx-木 { background: rgba(80, 200, 120, 0.15); border-left: 3px solid #50C878; }
.wuxing-details-list .wx-火 { background: rgba(224, 17, 95, 0.15);   border-left: 3px solid #E0115F; }
.wuxing-details-list .wx-土 { background: rgba(255, 191, 0, 0.15);   border-left: 3px solid #FFBF00; }
.wuxing-details-list .wx-金 { background: rgba(229, 228, 226, 0.15); border-left: 3px solid #B8B8B8; }
.wuxing-details-list .wx-水 { background: rgba(15, 82, 186, 0.15);   border-left: 3px solid #0F52BA; }

.wuxing-details-list strong {
  color: rgba(255, 215, 100, 0.95);
  margin-right: 0.5em;
}

/* 月詠盤チャートテーブル — 内部の解説テキスト */
.tsukuyomi-chart-table td small {
  display: block;
  color: rgba(245, 233, 200, 0.55);
  font-size: 0.78em;
  margin-top: 0.3em;
  font-weight: 400;
}

.tsukuyomi-chart-table td strong {
  color: rgba(255, 215, 100, 0.95);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ペンタゴンチャート（姓名判断レーダー） */
.pentagon-chart-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5em 0 0.5em;
}

.pentagon-chart-svg {
  width: clamp(260px, 50vw, 360px);
  height: auto;
}

.pentagon-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em 1.5em;
  justify-content: center;
  margin-top: 1em;
  font-size: 0.88rem;
  color: rgba(245, 233, 200, 0.85);
  letter-spacing: 0.05em;
}

.pentagon-scores span {
  white-space: nowrap;
}

/* 本格姓名判断（画数ベース・7格） */
.result-block--proper-name {
  background: linear-gradient(180deg, rgba(60, 40, 20, 0.5) 0%, rgba(20, 10, 40, 0.65) 100%);
  border-color: rgba(212, 175, 55, 0.55);
}

.proper-name-strokes-row {
  font-size: 0.95rem;
  padding: 0.4em 0.6em;
  color: rgba(245, 233, 200, 0.9);
  letter-spacing: 0.05em;
}

.proper-name-strokes-row strong {
  color: rgba(255, 215, 100, 0.95);
  margin-right: 0.5em;
}

.proper-name-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
}

.proper-name-table th {
  background: rgba(30, 15, 60, 0.6);
  color: rgba(212, 175, 55, 0.85);
  padding: 0.6em 0.4em;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.proper-name-table td {
  padding: 0.7em 0.5em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  vertical-align: middle;
}

.proper-name-table td small {
  display: block;
  color: rgba(245, 233, 200, 0.55);
  font-size: 0.75em;
  margin-top: 0.2em;
}

.proper-name-table .kaku-main {
  background: rgba(80, 50, 130, 0.25);
}

.proper-name-table .kaku-main td {
  font-weight: 500;
}

.proper-name-table .kaku-num {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: rgba(255, 215, 100, 0.95);
  text-align: center;
}

.kaku-type {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  display: inline-block;
}

.kaku-dai-dai-kichi {
  background: rgba(255, 100, 100, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 100, 100, 0.5);
}

.kaku-dai-kichi {
  background: rgba(255, 180, 80, 0.18);
  color: #ffba50;
  border: 1px solid rgba(255, 180, 80, 0.4);
}

.kaku-han-kichi {
  background: rgba(180, 200, 100, 0.18);
  color: #c5d672;
  border: 1px solid rgba(180, 200, 100, 0.4);
}

.kaku-kyou {
  background: rgba(100, 130, 220, 0.18);
  color: #8a9fd6;
  border: 1px solid rgba(100, 130, 220, 0.4);
}

.kaku-keys {
  font-size: 0.85em;
  color: rgba(245, 233, 200, 0.8);
  line-height: 1.6;
}

/* 7格の詳細解説 */
.kaku-detail {
  margin-top: 1.5em;
  padding: 1em 1.2em;
  background: rgba(20, 10, 40, 0.45);
  border-left: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
}

.kaku-detail-head {
  font-size: 1rem;
  margin-bottom: 0.4em;
  color: rgba(255, 215, 100, 0.95);
}

.kaku-detail-head strong {
  letter-spacing: 0.05em;
}

.kaku-detail-keys {
  font-size: 0.88rem;
  color: rgba(245, 233, 200, 0.8);
  margin-bottom: 0.5em;
  letter-spacing: 0.05em;
}

.kaku-detail-desc {
  font-size: 0.93rem;
  line-height: 1.9;
  color: rgba(245, 233, 200, 0.92);
}

.proper-name-unknown {
  margin-top: 1em;
  padding: 0.6em 1em;
  background: rgba(140, 80, 50, 0.2);
  border: 1px solid rgba(220, 150, 80, 0.4);
  border-radius: 6px;
  font-size: 0.82rem;
  color: rgba(255, 200, 150, 0.9);
}

/* 選ばれた子猫フィーチャーカード */
.result-block--chosen {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(80, 50, 130, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, rgba(40, 20, 70, 0.8) 0%, rgba(20, 10, 40, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 50px rgba(180, 130, 220, 0.35);
  text-align: center;
  padding: clamp(28px, 5vw, 48px);
}

.result-block--chosen .block-label {
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: rgba(255, 215, 100, 0.95);
  margin-bottom: 2em;
  text-align: center;
}

.chosen-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

.chosen-orb {
  width: clamp(150px, 22vw, 200px);
  height: clamp(150px, 22vw, 200px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: chosenPulse 3s ease-in-out infinite;
}

.chosen-orb::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.chosen-orb::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.25);
}

@keyframes chosenPulse {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.04); }
}

.chosen-glyph {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(3.2rem, 8vw, 5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

.chosen-info {
  width: 100%;
  max-width: 480px;
}

.chosen-name {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 215, 100, 0.98);
  margin-bottom: 0.2em;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

.chosen-reading {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: rgba(245, 233, 200, 0.7);
  letter-spacing: 0.15em;
  margin-bottom: 1.5em;
}

.chosen-detailed-label {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffe9a8;
  margin: 0.4em 0 1.6em;
  padding: 0.5em 1em;
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, rgba(60, 40, 100, 0.35), rgba(120, 90, 40, 0.25));
  text-shadow: 0 0 14px rgba(255, 215, 100, 0.5);
}

.chosen-detailed-reading {
  margin-top: 1.6em;
  padding-top: 1.4em;
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
  text-align: left;
}

.chosen-detailed-reading p {
  font-size: clamp(0.95rem, 1.7vw, 1.06rem);
  line-height: 2;
  color: rgba(245, 233, 200, 0.92);
  letter-spacing: 0.04em;
  margin-bottom: 1em;
}

.chosen-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6em;
  margin-bottom: 2em;
}

.chosen-tag {
  display: inline-block;
  padding: 0.4em 1em;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
  color: rgba(245, 233, 200, 0.95);
}

.chosen-tag--yinyang[data-yinyang="陰"] {
  border-color: rgba(120, 130, 200, 0.6);
  background: rgba(50, 60, 120, 0.25);
}

.chosen-tag--yinyang[data-yinyang="陽"] {
  border-color: rgba(240, 180, 90, 0.7);
  background: rgba(180, 120, 50, 0.2);
}

.chosen-catchphrase {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-style: italic;
  color: rgba(255, 215, 100, 0.95);
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.chosen-personality {
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  line-height: 2;
  color: rgba(245, 233, 200, 0.92);
  letter-spacing: 0.04em;
  margin-bottom: 1.5em;
}

.chosen-onomatopoeia {
  font-size: 0.92rem;
  color: rgba(245, 233, 200, 0.8);
  letter-spacing: 0.1em;
}

.chosen-onomatopoeia-label {
  color: rgba(212, 175, 55, 0.85);
}

.chosen-onomatopoeia-value {
  color: rgba(255, 215, 100, 0.95);
  font-weight: 700;
  font-size: 1.05em;
  margin-left: 0.3em;
}

/* 子猫タロット ケルト十字 */
.result-block--tarot {
  background: linear-gradient(180deg, rgba(30, 15, 60, 0.7) 0%, rgba(20, 10, 40, 0.8) 100%);
  border: 1px solid rgba(180, 130, 220, 0.45);
  box-shadow: 0 0 36px rgba(120, 80, 180, 0.25);
}

/* 3枚引き — 大きくきれいに表示 */
.tarot-spread {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(14px, 3.5vw, 36px);
  flex-wrap: wrap;
  margin: 2em 0 1em;
}

.tarot3-item {
  flex: 1 1 0;
  min-width: 150px;
  max-width: 250px;
  text-align: center;
  animation: tarotFlip 0.7s ease both;
}

@keyframes tarotFlip {
  from { opacity: 0; transform: rotateY(90deg) scale(0.85); }
  to   { opacity: 1; transform: rotateY(0) scale(1); }
}

.tarot3-pos {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(212, 175, 55, 0.9);
  margin-bottom: 1em;
}

.tarot3-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(245, 233, 200, 0.6);
  margin-top: 0.3em;
}

/* カード枠 — 画像の自然な高さで全体表示（見切れゼロ） */
.tarot3-frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 28px rgba(180, 130, 220, 0.3);
  background: #15082a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  line-height: 0;
}

.tarot3-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 36px rgba(212, 175, 55, 0.45);
}

.tarot3-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.tarot3-frame.is-reversed img {
  transform: rotate(180deg);
}

.tarot3-name {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: rgba(255, 215, 100, 0.95);
  margin-top: 1em;
  letter-spacing: 0.05em;
}

.tarot3-orient {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.2em 0.9em;
  border-radius: 9999px;
  margin: 0.5em 0;
  letter-spacing: 0.1em;
}

.tarot-upright {
  background: rgba(255, 180, 80, 0.18);
  color: #ffba50;
  border: 1px solid rgba(255, 180, 80, 0.4);
  font-weight: 700;
}

.tarot-reversed {
  background: rgba(120, 130, 220, 0.18);
  color: #8a9fd6;
  border: 1px solid rgba(120, 130, 220, 0.4);
  font-weight: 700;
}

.tarot3-keyword {
  font-size: 0.95rem;
  color: rgba(212, 175, 55, 0.9);
  margin-bottom: 0.6em;
  letter-spacing: 0.03em;
}

.tarot3-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(245, 233, 200, 0.88);
  letter-spacing: 0.02em;
}

.tarot3-desc strong {
  color: rgba(255, 215, 100, 0.9);
}

@media (max-width: 520px) {
  .tarot-spread {
    gap: 10px;
  }
  .tarot3-item {
    min-width: 100px;
  }
  .tarot3-desc {
    font-size: 0.8rem;
  }
}

/* 月詠盤 CHART */
.result-block--chart {
  background: linear-gradient(180deg, rgba(40, 25, 80, 0.55) 0%, rgba(20, 10, 40, 0.7) 100%);
  border-color: rgba(180, 130, 220, 0.5);
  box-shadow: 0 0 32px rgba(120, 80, 180, 0.25);
}

.tsukuyomi-chart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.2em;
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
}

.tsukuyomi-chart-table th {
  padding: 0.6em 0.4em;
  background: rgba(30, 15, 60, 0.6);
  color: rgba(212, 175, 55, 0.85);
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.tsukuyomi-chart-table td {
  padding: 0.7em 0.5em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  vertical-align: middle;
}

.tsukuyomi-chart-table .chart-pillar strong {
  color: rgba(255, 215, 100, 0.95);
  letter-spacing: 0.08em;
}

.tsukuyomi-chart-table .chart-pillar small {
  display: block;
  color: rgba(245, 233, 200, 0.55);
  font-size: 0.7em;
  margin-top: 0.2em;
}

.tsukuyomi-chart-table .chart-soul {
  background: rgba(60, 35, 110, 0.35);
}

.tsukuyomi-chart-table .chart-soul td {
  font-weight: 500;
}

.chart-elements {
  text-align: center;
  font-size: 0.92rem;
  color: rgba(245, 233, 200, 0.85);
  letter-spacing: 0.05em;
  margin: 1em 0 0.8em;
  padding: 0.6em;
  background: rgba(20, 10, 40, 0.4);
  border-radius: 6px;
}

.chart-ketsuun {
  text-align: center;
  margin-top: 1em;
  padding: 1em;
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  color: rgba(255, 215, 100, 0.95);
  background: rgba(60, 30, 90, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  letter-spacing: 0.05em;
}

/* 序 — 姓名判断テーブル */
.result-block--name-fortune {
  background: linear-gradient(180deg, rgba(60, 40, 20, 0.45) 0%, rgba(20, 10, 40, 0.55) 100%);
  border-color: rgba(212, 175, 55, 0.5);
}

.name-fortune-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.5em;
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
}

.name-fortune-table th,
.name-fortune-table td {
  padding: 0.7em 0.8em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  text-align: left;
  vertical-align: middle;
}

.name-fortune-table th {
  color: rgba(212, 175, 55, 0.85);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  background: rgba(20, 10, 40, 0.4);
}

.name-fortune-table .nf-name {
  font-weight: 700;
  color: rgba(255, 215, 100, 0.95);
}

.nf-ketsuun {
  text-align: center;
  margin-top: 1.5em;
  padding: 1em;
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  color: rgba(245, 233, 200, 0.95);
  background: rgba(40, 25, 80, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  letter-spacing: 0.05em;
}

.nf-ketsuun strong {
  color: rgba(255, 215, 100, 0.98);
}

/* アクション */
.result-actions {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 6vh;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.9em 2.4em;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: #f5e9c8;
  border-radius: 9999px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.action-btn--share {
  background: linear-gradient(135deg, #4a2870 0%, #2a1450 100%);
  border: 1px solid rgba(212, 175, 55, 0.7);
}

.action-btn--share:hover,
.action-btn--share:focus-visible {
  outline: none;
  box-shadow:
    0 0 18px rgba(212, 175, 55, 0.7),
    0 0 50px rgba(180, 130, 220, 0.4);
  transform: translateY(-2px);
}

.action-btn--reset {
  background: transparent;
  border: 1px solid rgba(245, 233, 200, 0.4);
}

.action-btn--reset:hover,
.action-btn--reset:focus-visible {
  outline: none;
  background: rgba(245, 233, 200, 0.08);
  border-color: rgba(245, 233, 200, 0.7);
}

/* ==========================================================================
   相性の子猫
   ========================================================================== */
.affinity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4em;
  margin-top: 1.6em;
}

.affinity-card {
  padding: 1.6em 1.2em;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: linear-gradient(160deg, rgba(40, 28, 70, 0.5), rgba(15, 10, 30, 0.5));
  text-align: center;
}

.affinity-card--soulmate { border-color: rgba(240, 130, 180, 0.5); }
.affinity-card--growth   { border-color: rgba(120, 160, 240, 0.5); }

.affinity-orb {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 0.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.4), inset 0 0 18px rgba(0, 0, 0, 0.3);
}

.affinity-glyph {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.affinity-role {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: rgba(255, 215, 100, 0.9);
  margin-bottom: 0.3em;
}

.affinity-name {
  font-size: 1.15rem;
  color: #f5e9c8;
  margin-bottom: 0.7em;
}

.affinity-name small {
  font-size: 0.72em;
  color: rgba(245, 233, 200, 0.6);
  margin-left: 0.2em;
}

.affinity-desc {
  font-size: 0.92rem;
  line-height: 1.9;
  color: rgba(245, 233, 200, 0.88);
  text-align: left;
}

.affinity-image {
  display: block;
  width: clamp(110px, 40%, 140px);
  height: auto;
  margin: 0 auto 0.8em;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   子猫イラスト（鑑定結果に表示）
   ========================================================================== */
.chosen-portrait {
  --glow: rgba(255, 215, 100, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chosen-image {
  display: block;
  width: clamp(190px, 30vw, 280px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 0 36px var(--glow), 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: chosenPulse 3.2s ease-in-out infinite;
}

.kitten-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* ==========================================================================
   深層心理ファインダー
   ========================================================================== */
.result-block--psych {
  background: linear-gradient(160deg, rgba(50, 30, 80, 0.4), rgba(20, 12, 40, 0.4));
  border: 1px solid rgba(180, 140, 230, 0.35);
}

.psych-intro {
  text-align: center;
  margin-top: 1.2em;
}

.psych-intro-text {
  font-size: 0.95rem;
  color: rgba(245, 233, 200, 0.85);
  line-height: 1.9;
  margin-bottom: 1.4em;
}

.action-btn--psych {
  background: linear-gradient(135deg, #6a3a9e 0%, #3a2068 100%);
  border: 1px solid rgba(212, 175, 55, 0.7);
  margin-top: 0.5em;
}

.action-btn--psych:hover,
.action-btn--psych:focus-visible {
  outline: none;
  box-shadow: 0 0 18px rgba(180, 130, 220, 0.7), 0 0 50px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.psych-quiz {
  margin-top: 1.4em;
}

.psych-progress {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255, 215, 100, 0.85);
  text-align: center;
  margin-bottom: 1em;
}

.psych-question {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #f5e9c8;
  text-align: center;
  line-height: 1.8;
  margin-bottom: 1.6em;
}

.psych-options {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  max-width: 560px;
  margin: 0 auto;
}

.psych-option-btn {
  padding: 1.1em 1.4em;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.98rem;
  line-height: 1.6;
  text-align: left;
  color: #f5e9c8;
  background: rgba(30, 20, 55, 0.6);
  border: 1px solid rgba(180, 140, 230, 0.35);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.psych-option-btn:hover,
.psych-option-btn:focus-visible {
  outline: none;
  background: rgba(80, 50, 130, 0.55);
  border-color: rgba(255, 215, 100, 0.7);
  transform: translateY(-1px);
}

.psych-result-intro,
.psych-result-closing {
  font-size: 1rem;
  line-height: 2;
  color: rgba(245, 233, 200, 0.92);
  text-align: center;
  margin: 1.4em auto;
  max-width: 640px;
}

.psych-result-closing {
  color: rgba(255, 215, 100, 0.92);
  font-style: italic;
}

.psych-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  margin: 1.6em 0;
}

.psych-card {
  padding: 1.5em 1.4em;
  border-radius: 16px;
  border-left: 3px solid rgba(255, 215, 100, 0.6);
  background: rgba(25, 16, 45, 0.6);
}

.psych-card-theme {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: rgba(180, 140, 230, 0.95);
  margin-bottom: 0.3em;
}

.psych-card-title {
  font-size: 1.2rem;
  color: #ffe9a8;
  margin-bottom: 0.6em;
}

.psych-card-text {
  font-size: 0.96rem;
  line-height: 2;
  color: rgba(245, 233, 200, 0.9);
}

/* ==========================================================================
   深掘りタロット
   ========================================================================== */
.result-block--tdive {
  background: linear-gradient(160deg, rgba(30, 22, 60, 0.45), rgba(15, 10, 30, 0.45));
  border: 1px solid rgba(150, 130, 220, 0.35);
}

.tdive-intro { text-align: center; margin-top: 1.2em; }

.tdive-stage { margin-top: 1.4em; text-align: center; }

.tdive-progress {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255, 215, 100, 0.85);
  margin-bottom: 1em;
}

.tdive-card {
  display: flex;
  align-items: center;
  gap: 1.2em;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.4em;
}

.tdive-frame {
  width: clamp(120px, 24vw, 170px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 26px rgba(150, 130, 220, 0.35);
  line-height: 0;
  flex-shrink: 0;
  animation: tarotFlip 0.7s ease both;
}

.tdive-frame img { width: 100%; height: auto; display: block; }
.tdive-frame.is-reversed img { transform: rotate(180deg); }

.tdive-cardinfo { max-width: 360px; text-align: left; }

.tdive-cardname {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffe9a8;
  margin-bottom: 0.5em;
}

.tdive-orient {
  font-size: 0.8rem;
  margin-left: 0.5em;
  padding: 0.1em 0.6em;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: rgba(245, 233, 200, 0.85);
}

.tdive-meaning {
  font-size: 0.96rem;
  line-height: 1.9;
  color: rgba(245, 233, 200, 0.9);
}

.tdive-question {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: #f5e9c8;
  margin-bottom: 1.2em;
  line-height: 1.7;
}

.tdive-options {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  max-width: 520px;
  margin: 0 auto;
}

.tdive-minis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8em;
  margin: 1.4em 0;
}

/* 3枚引きスプレッド：縦に並べ、カードごとに間隔を空けて読みやすく */
.tdive-spread-row {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
  margin: 1.6em 0;
}

.tdive-spread-item {
  display: flex;
  gap: 1.2em;
  align-items: flex-start;
  text-align: left;
  padding-bottom: 1.6em;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}
.tdive-spread-item:last-child { border-bottom: none; padding-bottom: 0; }

.tdive-spread-pos {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 700;
  color: rgba(255, 215, 100, 0.95);
  margin-bottom: 0.4em;
}

.tdive-spread-sub {
  display: inline;
  font-size: 0.8em;
  font-weight: 400;
  color: rgba(245, 233, 200, 0.7);
  margin-left: 0.4em;
}

.tdive-spread-item .tdive-frame {
  width: clamp(110px, 30vw, 150px);
  flex-shrink: 0;
  margin: 0;
}

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

.tdive-spread-name {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 700;
  color: #f5e9c8;
}

.tdive-spread-name small { font-weight: 400; color: rgba(245, 233, 200, 0.6); }

.tdive-spread-theme {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 700;
  color: #ffe9a8;
  line-height: 1.7;
  margin: 0.4em 0;
}

.result-block--tdive .tdive-spread-mean { font-size: clamp(0.92rem, 2.1vw, 1.08rem); line-height: 1.95; }

.tdive-spread-mean {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  line-height: 1.8;
  color: rgba(245, 233, 200, 0.88);
  margin-top: 0.3em;
}

/* 位置の導入文（過去・現在・未来の枠取り） */
.tdive-spread-lead {
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  line-height: 1.85;
  color: rgba(245, 233, 200, 0.96);
  margin: 0.5em 0;
}

.tdive-spread-lead strong { color: #ffe9a8; font-weight: 700; }

/* 締めの寄り添い文 */
.tdive-spread-close {
  font-size: clamp(0.85rem, 1.95vw, 1.02rem);
  line-height: 1.95;
  color: rgba(230, 220, 200, 0.85);
  margin-top: 0.7em;
  padding-top: 0.7em;
  border-top: 1px dashed rgba(212, 175, 55, 0.28);
}

.tdive-q { margin-top: 1.6em; }

.tdive-frame--mini {
  width: 100%;
  margin: 0 auto 0.5em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.tdive-mini { text-align: center; }
.tdive-mini-pos { font-size: 0.82rem; color: rgba(255, 215, 100, 0.9); }
.tdive-mini-name { font-size: 0.9rem; font-weight: 700; color: #f5e9c8; }
.tdive-mini-name small { font-weight: 400; color: rgba(245, 233, 200, 0.6); }
.tdive-mini-mean { font-size: 0.78rem; color: rgba(245, 233, 200, 0.75); line-height: 1.6; }

.tdive-result-lead,
.tdive-tone {
  text-align: center;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(245, 233, 200, 0.92);
  margin: 1.2em auto;
  max-width: 620px;
}

.tdive-tone { color: rgba(255, 215, 100, 0.92); }

.tdive-story {
  max-width: 620px;
  margin: 1.4em auto;
}

.tdive-story p {
  font-size: 0.98rem;
  line-height: 2;
  color: rgba(245, 233, 200, 0.92);
  margin-bottom: 0.9em;
  padding-left: 1em;
  border-left: 2px solid rgba(212, 175, 55, 0.4);
}

.tdive-closing {
  text-align: center;
  font-style: italic;
  color: rgba(255, 215, 100, 0.92);
  line-height: 1.9;
  max-width: 620px;
  margin: 1.4em auto;
}

@media (max-width: 600px) {
  .tdive-minis { grid-template-columns: repeat(2, 1fr); }
}

/* 深掘りタロット：願いごとテキスト＆待ち演出 */
.tdive-wish {
  font-size: clamp(0.98rem, 1.9vw, 1.12rem);
  color: rgba(255, 215, 100, 0.95);
  line-height: 1.8;
  margin-bottom: 1.2em;
  letter-spacing: 0.04em;
}

.tdive-loading {
  text-align: center;
  padding: 2em 0 1.4em;
}

.tdive-loading-video {
  display: block;
  width: clamp(190px, 44vw, 280px);
  height: auto;
  margin: 0 auto 0.6em;
  border-radius: 18px;
  box-shadow: 0 0 36px rgba(180, 130, 220, 0.5), 0 8px 30px rgba(0, 0, 0, 0.5);
}

.tdive-loading-cat {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  letter-spacing: 0.15em;
  margin: 0.2em 0;
  animation: tdiveFloat 1.6s ease-in-out infinite;
}

@keyframes tdiveFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1.06); }
}

.tdive-loading-text {
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  color: #ffe9a8;
  letter-spacing: 0.08em;
  animation: tdiveBlink 1.3s ease-in-out infinite;
}

@keyframes tdiveBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* テーマ選択ボタン */
.tdive-themes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9em;
  max-width: 520px;
  margin: 1.2em auto 0;
}

.tdive-theme-btn {
  padding: 1.1em 1em;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: #f5e9c8;
  background: linear-gradient(135deg, rgba(80, 50, 130, 0.5), rgba(40, 25, 70, 0.5));
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tdive-theme-btn:hover,
.tdive-theme-btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(255, 215, 100, 0.8);
  box-shadow: 0 0 18px rgba(180, 130, 220, 0.6);
}

/* 救済カード */
.tdive-rescue {
  margin: 1.6em auto;
  max-width: 640px;
  padding: 1.4em;
  border-radius: 16px;
  border: 1px solid rgba(240, 150, 90, 0.5);
  background: rgba(60, 30, 25, 0.35);
}

.tdive-rescue-head {
  color: #ffd0a0;
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1em;
}

.tdive-rescue-card {
  display: flex;
  gap: 1.2em;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}

.tdive-rescue-text { flex: 1 1 240px; text-align: left; }
.tdive-rescue-name { font-size: 1.1rem; font-weight: 700; color: #ffe9a8; margin-bottom: 0.4em; }
.tdive-rescue-mean { color: rgba(245, 233, 200, 0.95); margin-bottom: 0.6em; }
.tdive-rescue-advice { color: rgba(245, 233, 200, 0.85); line-height: 1.9; }

.tdive-retry-row {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6em;
}

/* 12子猫タロット：文字を大きく＆自由入力欄 */
.result-block--tdive .tdive-cardname { font-size: clamp(1.2rem, 2.8vw, 1.5rem); }
.result-block--tdive .tdive-meaning  { font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 2; }
.result-block--tdive .tdive-question { font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.8; font-weight: 700; }
.result-block--tdive .psych-option-btn { font-size: clamp(1.05rem, 2.4vw, 1.2rem); padding: 1.2em 1.4em; }
.result-block--tdive .tdive-story p { font-size: clamp(1.1rem, 2.6vw, 1.3rem); line-height: 2.1; }
.result-block--tdive .tdive-closing { font-size: clamp(1.08rem, 2.5vw, 1.28rem); line-height: 2.1; }
.result-block--tdive .tdive-result-lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); }
.result-block--tdive .tdive-tone { font-size: clamp(1.05rem, 2.4vw, 1.25rem); }
.result-block--tdive .tdive-rescue-head { font-size: clamp(1.02rem, 2.3vw, 1.18rem); }
.result-block--tdive .tdive-rescue-name { font-size: clamp(1.15rem, 2.6vw, 1.35rem); }
.result-block--tdive .tdive-rescue-mean,
.result-block--tdive .tdive-rescue-advice { font-size: clamp(1.02rem, 2.3vw, 1.18rem); line-height: 2; }
.result-block--tdive .block-label { font-size: clamp(1.3rem, 3vw, 1.6rem); }

.tdive-free-wrap {
  display: flex;
  gap: 0.6em;
  margin-top: 0.6em;
  flex-wrap: wrap;
}

.tdive-free-input {
  flex: 1 1 220px;
  padding: 1em 1.2em;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  color: #f5e9c8;
  background: rgba(20, 12, 40, 0.7);
  border: 1px solid rgba(180, 140, 230, 0.45);
  border-radius: 12px;
}

.tdive-free-input::placeholder { color: rgba(245, 233, 200, 0.5); }
.tdive-free-input:focus { outline: none; border-color: rgba(255, 215, 100, 0.8); }

.tdive-free-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .tdive-themes { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Responsive — 動画/画像に対する％比率を維持
   ========================================================================== */
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 14px;
    gap: 8px;
  }

  .logo {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .global-nav ul {
    gap: 14px;
  }

  .global-nav a {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
  }

  .cta-button {
    width: 35%;
    max-width: none;
  }

  /* 入力フォーム：スマホでは画像を画面いっぱい近くまで大きく */
  .diagnosis-section { padding: 10vh 0 6vh; }
  .diagnosis-container { width: 96%; }
  .form-input,
  .form-select {
    font-size: clamp(0.62rem, 2.6vw, 0.9rem);
  }

  /* 結果・各画面：余白を詰めて読みやすく */
  .result-section { padding: 10vh 4vw 10vh; }
  .result-block { padding: 1.3em 1em; }
  .screen-kittens, .screen-today { padding: 11vh 4vw 9vh; }

  /* スプレッドの絵は小さめに、文章を広く */
  .tdive-spread-item .tdive-frame { width: clamp(96px, 26vw, 130px); }
}

@media (max-width: 480px) {
  .header-inner { padding: 10px 12px; }
  .logo { font-size: 0.92rem; }

  .global-nav ul {
    gap: 11px;
  }

  .global-nav a {
    font-size: 0.74rem;
  }

  .submit-btn {
    padding: 0.8em 2em;
    letter-spacing: 0.08em;
  }

  /* 3枚引き：スマホでは絵を上、文章を下に縦積みで広く読める */
  .tdive-spread-item { flex-direction: column; align-items: center; text-align: center; }
  .tdive-spread-item .tdive-frame { width: clamp(120px, 42vw, 160px); }
  .tdive-spread-text { width: 100%; }

  .kittens-grid { grid-template-columns: 1fr 1fr; gap: 1em; }
}
