@charset "UTF-8";

/* ===== 1. カスタムプロパティ（統合版） ===== */
:root {
  /* レイアウト */
  --header-height-mobile: 70px;
  --header-height-desktop: 80px;
  --icon-size-mobile: 100px;
  --icon-size-desktop: 100px;
  --nav-gap-mobile: 8px;
  --nav-gap-desktop: 16px;
  --btn-radius: 12px;
  
  /* カラーパレット */
  --yume-white: #ffffff;
  --yume-pink: #FFD7F7;
  --yume-lav: #E8D7FF;
  --yume-mint: #D7F7FF;
  --yume-brown: #5C3B34;
  
  /* 虹色ヘッダー用 */
  --r1: #ffd7f7; --r2: #ffe8d7; --r3: #fff3c9; 
  --r4: #d7f7ff; --r5: #e8d7ff;
  
  /* テキスト */
  --text-color: var(--yume-brown);
}

/* ===== 2. リセット & グローバル ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height-mobile);
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: var(--header-height-desktop);
  }
}

/* ===== 3. フォント統一（Kaisei Opti） ===== */
html, body, header, nav, section, article,
h1, h2, h3, h4, h5, h6,
p, a, li, button, input, textarea, .btn, .toc-block, .for_more_detail {
  font-family: "Kaisei Opti", "Hiragino Mincho ProN", "Yu Mincho",
               "Noto Serif JP", serif !important;
  color: var(--text-color);
}

body { 
  line-height: 1.8; 
  letter-spacing: .02em; 
  background:
    linear-gradient(160deg,
      color-mix(in oklab, var(--yume-pink) 35%, #fff8ff) 0%,
      color-mix(in oklab, var(--yume-lav) 40%, #f7e5ff) 45%,
      color-mix(in oklab, var(--yume-mint) 30%, #faffef) 100%),
    radial-gradient(50rem 35rem at 15% 15%, rgba(255,200,255,.4) 0%, transparent 60%),
    radial-gradient(60rem 45rem at 80% 80%, rgba(200,255,255,.35) 0%, transparent 65%),
    var(--yume-white);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

h1, h2, h3 { 
  line-height: 1.4; 
  letter-spacing: .01em; 
  color: var(--yume-brown);
}

small, nav span, .btn, .toc-block .toc-list a { 
  letter-spacing: 0; 
}

/* ===== 4. 中央コンテナ（統合版） ===== */
.container {
  background: #fff;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: calc(var(--header-height-mobile) + 0.5em);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(180,130,255,.08);
}

@media (min-width: 768px) {
  .container {
    padding-top: calc(var(--header-height-desktop) + 0.5em);
  }
  section#hero {
    padding: 1.5em 1em 1em;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .container {
    width: 100%;
  }
}

/* ===== 5. 固定ヘッダー（虹色グラデーション） ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-mobile);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 虹色グラデーション */
  background: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r1)) !important;
  background-size: 400% 100%;
  animation: headerRainbow 18s ease-in-out infinite;
}

@media (min-width: 768px) {
  header {
    height: var(--header-height-desktop);
  }
}

@keyframes headerRainbow {
  0%   { background-position:   0% 0; }
  50%  { background-position: 100% 0; }
  100% { background-position:   0% 0; }
}

/* ===== 6. ヘッダーナビ（シンプル版） ===== */
header nav {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

header nav ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

header nav ul li {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* アイコン＋文字のみ（丸背景なし） */
header nav ul li a {
  width: auto !important;
  height: auto !important;
  padding: 4px 6px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-decoration: none;
  transition: transform .2s ease;
}

header nav ul li a:hover {
  transform: translateY(-2px);
}

header nav ul li a img {
  width: 40px;
  height: auto;
  filter:
    drop-shadow(0 3px 8px rgba(231, 22, 144, 0.3))
    drop-shadow(0 0 6px rgba(255,255,255,.4))
    saturate(1.2) contrast(1.1);
}

@media (min-width: 768px) {
  header nav ul li a img { 
    width: 54px; 
  }
}

header nav ul li a:hover img {
  filter: drop-shadow(0 5px 14px rgba(231, 22, 144, 0.3))
          saturate(1.25) contrast(1.15);
}

header nav ul li a span {
  font-weight: 700;
  color: var(--yume-brown) !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,.85),
    0 0 8px rgba(255,255,255,.55);
}

/* ===== 7. セクション共通 ===== */
section {
  padding: 3em 1.5em;
}

section#hero {
  margin-top: 0.5em;
  padding: 1.5em 0.5em 1em;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(180,130,255,.08);
}

section#hero h1 {
  margin-bottom: 0.75em;
  font-size: 2rem;
  line-height: 1.2;
}

section#hero p {
  margin: 0.5em 0 1.5em;
  font-size: 1rem;
}

section#hero img {
  display: block;
  margin: 0 auto 1.5em;
  max-width: 100%;
  height: auto;
}

section#hero .btn {
  margin-bottom: 2em;
}

section#hints,
section#cards {
  background-color: #FFFFFF;
  border-radius: 8px;
  margin: 2em 0;
  padding: 2em 1em;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ===== 8. セクション背景効果 ===== */
/* ヒント：ポップな丸 */
section#hints::before,
section#hints::after {
  content: "";
  position: absolute;
  inset: -12% -8% -8% -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(180px 140px at 18% 26%, color-mix(in oklab, var(--yume-pink) 55%, transparent) 0 60%, transparent 61%),
    radial-gradient(220px 160px at 88% 30%, color-mix(in oklab, var(--yume-lav) 55%,  transparent) 0 60%, transparent 61%),
    radial-gradient(160px 120px at 62% 78%, color-mix(in oklab, var(--yume-mint) 55%, transparent) 0 60%, transparent 61%),
    radial-gradient(120px 90px  at 10% 88%, color-mix(in oklab, var(--yume-pink) 40%, transparent) 0 60%, transparent 61%);
}

section#hints::after {
  opacity: .65;
  animation: hintsDrift 24s ease-in-out infinite;
}

@keyframes hintsDrift {
  0%{transform:translateY(0)} 
  50%{transform:translateY(-10px)} 
  100%{transform:translateY(0)}
}

/* カード一覧：淡雲 + ドットパターン */
section#cards::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 0% -10%,  color-mix(in oklab, var(--yume-lav) 22%, #fff) 0 40%, transparent 60%),
    radial-gradient(50rem 30rem at 105% 10%, color-mix(in oklab, var(--yume-mint) 22%, #fff) 0 35%, transparent 60%),
    radial-gradient(70rem 50rem at 50% 120%, color-mix(in oklab, var(--yume-pink) 18%, #fff) 0 40%, transparent 65%),
    var(--yume-white);
}

section#cards::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .25;
  pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1.5px);
  color: color-mix(in oklab, var(--yume-lav) 40%, var(--yume-white));
  background-size: 14px 14px;
  mix-blend-mode: multiply;
}

section#hints > *,
section#cards > * {
  position: relative;
  z-index: 1;
}

/* ===== 9. 見出しスタイル ===== */
section#hints h2,
section#cards h2 {
  font-size: 2rem;
  margin-bottom: 1.5em;
}

section#hints ul {
  display: inline-block;  
  text-align: left;
  margin: 1em auto 1.5em;
  padding-left: 1.2em;
  list-style: decimal inside;
}

section#hints ul li {
  margin-bottom: 0.6em;
}

/* ===== 10. カード一覧 ===== */
#cards .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin: 1em auto 2em;
  max-width: 800px;
}

#cards img {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: transform .25s ease, box-shadow .25s ease;
}

#cards .grid a:hover img {
  transform: translateY(-4px) rotate(-1.2deg);
  box-shadow: 0 10px 20px rgba(180,130,255,.25);
}

/* ===== 11. 解説・Q&A・About 共通コンテナ（統合版） ===== */
section#explanation,
section#qa,
section#about {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
}

.for_more_detail.tarot {
  max-width: 800px;
  margin: 0 auto;
  background:
    radial-gradient(28rem 22rem at 8% 10%,  color-mix(in oklab, var(--yume-lav) 38%, transparent) 0 45%, transparent 60%),
    radial-gradient(26rem 20rem at 90% 85%, color-mix(in oklab, var(--yume-pink) 32%, transparent) 0 45%, transparent 65%),
    var(--yume-white);
  border: 1px solid color-mix(in oklab, var(--yume-lav) 40%, var(--yume-white));
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(180,130,255,.10);
  padding: 2em 0.5em;
  margin-top: calc(var(--header-height-mobile) + 1em);
}

@media (min-width: 768px) {
  .for_more_detail.tarot {
    margin-top: calc(var(--header-height-desktop) + 1em);
  }
}

.article_ttl_h1 {
  font-size: 2rem;
  text-align: center;
  position: relative;
  margin-bottom: 1em;
}

.article_ttl_h1 .underline_wide_img {
  display: block;
  width: 100px;
  height: 4px;
  background: #ff6685;
  margin: 0.5em auto;
  border-radius: 2px;
}

/* ===== 12. 記事ブロック ===== */
.articles {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.article {
  background: #fff;
  padding: 1.5em;
  border-radius: 10px;
  margin-bottom: 1em;
}

.for_more_detail.tarot .article {
  background-color: #ffffff !important;
}

.article_h2,
.article_h3 {
  margin-bottom: 0.75em;
}

.article_h3.sub {
  font-size: 1.1rem;
  margin-top: 1.5em;
}

.text_main {
  line-height: 1.8;
  margin-bottom: 1em;
  max-width: 70ch;
}

/* ===== 13. 質問例ブロック（統合版） ===== */
.example-block {
  background:
    radial-gradient(28rem 22rem at 8% 10%,  color-mix(in oklab, var(--yume-lav) 45%, transparent) 0 45%, transparent 60%),
    radial-gradient(26rem 20rem at 90% 85%, color-mix(in oklab, var(--yume-pink) 40%, transparent) 0 45%, transparent 65%),
    var(--yume-white);
  border: 1px solid color-mix(in oklab, var(--yume-lav) 40%, var(--yume-white));
  border-radius: 8px;
  margin: 0 -1em 2em;
  padding: 1.5em;
}

.bad_good {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  margin-bottom: 0.8em;
}

.bad,
.good {
  display: inline-block;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 0.2em 0.6em;
  font-size: 0.9em;
  font-weight: bold;
  color: #333;
  margin-right: 0.5em;
  vertical-align: middle;
}

.text_sub {
  margin-top: 0.8em;
  margin-bottom: 1.5em;
  line-height: 1.6;
}

/* ===== 14. 目次ブロック（統合版） ===== */
.toc-block {
  background:
    radial-gradient(28rem 22rem at 8% 10%,  color-mix(in oklab, var(--yume-lav) 45%, transparent) 0 45%, transparent 60%),
    radial-gradient(26rem 20rem at 90% 85%, color-mix(in oklab, var(--yume-pink) 40%, transparent) 0 45%, transparent 65%),
    var(--yume-white);
  border: 1px solid color-mix(in oklab, var(--yume-lav) 40%, var(--yume-white));
  border-radius: 8px;
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.toc-title {
  margin: 0 0 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid color-mix(in oklab, var(--yume-brown) 45%, #fff);
  text-align: center;
  position: relative;
  font-size: 1.25rem;
}

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

.toc-list > li {
  margin-bottom: .75rem;
}

.toc-list > li:last-child {
  margin-bottom: 0;
}

.toc-list > li > a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: var(--yume-brown);
}

.toc-num {
  flex-shrink: 0;
  width: 2em;
  text-align: right;
  color: #AAA;
  font-weight: bold;
}

.toc-sublist {
  list-style: none;
  margin: 0.5em 0 0 2.5em;
  padding: 0;
}

.toc-sublist li a {
  display: block;
  padding: 0.25em 0;
  text-decoration: none;
  color: var(--yume-brown);
}

/* ===== 15. セクションタイトル装飾 ===== */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25em;
  margin: 2em 0 1em;
  font-size: 1.5rem;
  color: var(--yume-brown);
  border-bottom: 1px solid color-mix(in oklab, var(--yume-brown) 55%, #fff);
  z-index: 1;
}

.section-title::before {
  content: attr(data-number);
  position: absolute;
  top: -0.5em;
  left: 0;
  font-size: 6rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.05);
  z-index: -1;
}

@media (max-width: 767px) {
  .section-title::before {
    font-size: 4rem;
    top: -0.3em;
  }
}

/* ===== 16. 箇条書き ===== */
.dot {
  list-style: disc outside;
  margin: 1em 0;
  padding-left: 1.5em;
}

.dot > li {
  margin-bottom: 0.5em;
}

.dot li li {
  list-style: circle outside;
  margin-top: 0.5em;
  margin-left: 1em;
}

/* ===== 17. イントロセクション ===== */
/*section#intro {
  border-radius: 8px;
  margin: 0 auto 0em;
  padding: 2em 1.5em;
  max-width: 800px;
  text-align: center;
}

@media (min-width: 768px) {
  section#intro {
    margin-top: calc(var(--header-height-desktop) + 1em);
  }
}

section#intro .intro-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5em;
  color: #5C3B34;
}

section#intro .intro-cta .btn {
  padding: 12px 24px;
  font-size: 1rem;
}

/* ===== 18. ボタン（統合版） ===== */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #ffd7f7, #e8d7ff, #d7f7ff);
  color: #5C3B34;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  margin: 0.5em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(200,150,255,0.3);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(200,150,255,0.5);
}

/* ===== 19. Back to top ===== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #daa0e9;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

/* ===== 20. 画像・トピック ===== */
.topic_img {
  text-align: center;
  margin-bottom: 1em;
  background-color: #ffffff;
  padding: 1em;
  border-radius: 8px;
}

.topic_img img {
  max-width: 100%;
  height: auto;
}

.for_more_detail.tarot .articles > .article:first-of-type .topic_img {
  margin: 0 -1.5em 1em;
  padding: 0;
}

.for_more_detail.tarot .articles > .article:first-of-type .topic_img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 21. ディバイダー ===== */
.divider_block {
  width: 100%;
  height: 1px;
  background: #ddd;
  margin: 2em 0;
}

/* ===== 22. ウェーブ ===== */
.yume-wave {
  display: block;
  width: 100%;
  height: 64px;
  margin: -10px 0 0 0;
  filter: drop-shadow(0 -2px 6px rgba(200,150,255,.18));
}

.yume-wave path {
  fill: #fff;
}

/* ===== 23. フッター ===== */
footer {
  padding: 2em 0;
  text-align: center;
  color: #aa88cc;
  font-size: 0.9em;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.6);
}

footer p {
  margin: 0;
}

/* ===== 24. アニメーション（統合版） ===== */
@keyframes universalFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes universalDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(12px); }
}

/* ===== 25. 星・雲レイヤー ===== */
.sparkle-layer,
.cloud-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.sparkle {
  position: absolute;
  width: var(--s, 12px);
  height: var(--s, 12px);
  clip-path: polygon(50% 0%, 60% 35%, 100% 50%, 60% 65%, 50% 100%, 40% 65%, 0% 50%, 40% 35%);
  background: radial-gradient(circle at 50% 45%, #fff 0 40%, rgba(255,255,255,0) 70%);
  opacity: .95;
  filter:
    drop-shadow(0 0 2px var(--yume-white))
    drop-shadow(0 0 4px color-mix(in oklab, var(--yume-pink) 70%, transparent))
    drop-shadow(0 0 6px color-mix(in oklab, var(--yume-lav) 60%, transparent))
    drop-shadow(0 0 10px color-mix(in oklab, var(--yume-mint) 55%, transparent));
  animation: universalFloat var(--d, 9s) ease-in-out infinite,
             universalDrift calc(var(--d, 9s) * 1.1) ease-in-out infinite;
}

.cloud-puff {
  position: absolute;
  opacity: 0.3;
  mix-blend-mode: multiply;
  animation: universalFloat var(--cd, 18s) ease-in-out infinite;
  filter: drop-shadow(0 3px 6px rgba(180,130,255,.1));
  pointer-events: none;
  transition: opacity .4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .sparkle, .cloud-puff {
    animation: none;
  }
}

/* ===== 26. ローディング（統合版） ===== */
#first-visit-loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background: rgb(218, 146, 202);
  background-image:
    radial-gradient(1200px 900px at 50% 40%, rgba(255,255,255,.12) 0 50%, transparent 70%);
  overflow: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}

#first-visit-loader .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .88;
  mix-blend-mode: screen;
  animation: blobFloat var(--d, 20s) ease-in-out infinite;
}

#first-visit-loader .b1 {
  background: radial-gradient(circle at 30% 30%, var(--yume-pink,#FFD7F7) 0 60%, transparent 70%);
  width: 70vmin; height: 70vmin;
  left: -10%; top: -10%;
  --d: 24s;
}

#first-visit-loader .b2 {
  --mint-strong: color-mix(in oklab, var(--yume-mint, #D7F7FF) 85%, #9EE7FF);
  background: radial-gradient(circle at 55% 45%, var(--mint-strong) 0 62%, transparent 72%);
  mix-blend-mode: normal !important;
  opacity: .95;
  filter: blur(60px) saturate(1.25);
  width: 82vmin; height: 82vmin;
  right: -10%; top: -2%;
  --d: 26s;
  animation-delay: -4s;
}

#first-visit-loader .b3 {
  background: radial-gradient(circle at 40% 70%, var(--yume-mint,#D7F7FF) 0 60%, transparent 70%);
  width: 80vmin; height: 80vmin;
  left: 5%; bottom: -15%;
  --d: 28s;
  animation-delay: -8s;
}

@keyframes blobFloat {
  0%   { transform: translate(0,0) scale(1); }
  25%  { transform: translate(8%, -6%) scale(1.05); }
  50%  { transform: translate(-6%, 8%) scale(1.1); }
  75%  { transform: translate(5%, -4%) scale(1.03); }
  100% { transform: translate(0,0) scale(1); }
}

#first-visit-loader .loader-bubbles {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 12px;
}

#first-visit-loader .loader-bubbles .b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #FFFFFF 0 35%, #FFE9FF 36% 72%, #C27BFF 73% 100%);
  box-shadow:
    0 0 0 3px rgba(255,255,255,.90),
    0 6px 16px rgba(150, 70, 255, .35),
    inset 0 -4px 10px rgba(130, 60, 230, .25);
  mix-blend-mode: normal;
  opacity: 1;
  animation: bubble 1.5s infinite ease-in-out;
}

#first-visit-loader .loader-bubbles .b:nth-child(1) {
  background:
    radial-gradient(circle at 30% 30%, #FFFFFF 0 35%, #E7F6FF 36% 72%, #5EB7FF 73% 100%);
  box-shadow:
    0 0 0 3px rgba(255,255,255,.92), 0 6px 16px rgba(50,140,255,.35), inset 0 -4px 10px rgba(30,120,240,.22);
}

#first-visit-loader .loader-bubbles .b:nth-child(2) {
  background:
    radial-gradient(circle at 30% 30%, #FFFFFF 0 35%, #FFF5D6 36% 72%, #FFC957 73% 100%);
  box-shadow:
    0 0 0 3px rgba(255,255,255,.92), 0 6px 16px rgba(255,170,70,.35), inset 0 -4px 10px rgba(220,140,40,.22);
  animation-delay: .25s;
}

#first-visit-loader .loader-bubbles .b:nth-child(3) {
  background:
    radial-gradient(circle at 30% 30%, #FFFFFF 0 35%, #F2E3FF 36% 72%, #B07CFF 73% 100%);
  box-shadow:
    0 0 0 3px rgba(255,255,255,.92), 0 6px 16px rgba(176,124,255,.35), inset 0 -4px 10px rgba(150,90,240,.22);
  animation-delay: .5s;
}

@keyframes bubble {
  0%,80%,100% { transform: translateY(0); opacity:.9; }
  40% { transform: translateY(-16px); opacity:1; }
}

#first-visit-loader .loader-text {
  font-family:"Kaisei Opti","Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;
  font-size:18px;
  color:var(--yume-brown,#5C3B34);
  margin-top:12px;
  text-shadow: 0 2px 10px rgba(255,255,255,.6);
}

#first-visit-loader.hide {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

/* ===== 27. クラウドトランジション ===== */
.cloud-overlay {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}

.cloud svg .fill {
  fill: #fff7ff;
}

.cloud svg .stroke {
  stroke: #caa8ff;
  stroke-width: 2;
  fill: none;
}

@keyframes cloudIn {
  0%   { transform: translate(var(--tx),var(--ty)) scale(0.6) rotate(var(--rot)); opacity:0; }
  60%  { opacity:1; }
  100% { transform: translate(0,0) scale(1) rotate(0deg); opacity:1; }
}

@keyframes cloudOut {
  0%   { transform: translate(0,0) scale(1); opacity:1; }
  100% { transform: translate(var(--otx),var(--oty)) scale(1.1); opacity:0; }
}

body.fade-out .main-root {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cloud-stage {
  position: absolute;
  width: 1200px;
  height: 1000px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cloud {
    animation-duration: 200ms !important;
  }
}