:root {
  --pink:#FF00E0;
  --cyan:#00FFFF;
}

/* === 基本設定 === */
html, body {
  margin:0;
  padding:0;
  min-height:100%;
  background:#000;
  color:#fff;
  font-family:'Zen Kaku Gothic Antique', sans-serif;
  text-align:center;
  overflow-x:hidden;
}

/* === 背景層 === */
#bg-space {
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
}

#stars {
  position:absolute;
  inset:0;
  z-index:1;
  background:#000;
}

#nebula {
  position:absolute;
  inset:0;
  z-index:2;
  background:
    radial-gradient(circle at 20% 70%,rgba(255,0,224,0.25),transparent 70%),
    radial-gradient(circle at 80% 30%,rgba(0,255,255,0.25),transparent 70%);
  filter:blur(4px);
  animation:nebulaFlow 50s ease-in-out infinite alternate;
}

@keyframes nebulaFlow {
  0% {transform:translate(0,0);opacity:.4;}
  50% {transform:translate(-3%,2%);opacity:.9;}
  100% {transform:translate(3%,-2%);opacity:.6;}
}

/* === ヘッダー === */
header {
  position:relative;
  z-index:10;
  margin-top:2em;
}

header h1 {
  font-family:'Orbitron', sans-serif;
  letter-spacing:3px;
  font-size:clamp(1.8rem,4vw,3rem);
  text-shadow:0 0 20px var(--pink),0 0 30px var(--cyan);
}

header h2 {
  font-size:clamp(.9rem,2vw,1.2rem);
  color:var(--pink);
  margin-top:.5em;
}

/* === ナビ === */
nav {
  position:relative;
  z-index:10;
  margin:1.5em 0;
}

nav a {
  color:#fff;
  text-decoration:none;
  margin:0 1em;
  font-size:clamp(.9rem,2vw,1.2rem);
  position:relative;
}

nav a::after {
  content:'';
  position:absolute;
  left:0;
  bottom:-3px;
  width:100%;
  height:2px;
  background:var(--pink);
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .3s ease;
}

nav a:hover::after {
  transform:scaleX(1);
  transform-origin:left;
}

/* === フレイザー === */
.frazer {
  position:relative;
  z-index:10;
  margin-top:2em;
}

.frazer img {
  width:180px;
  animation:float 6s ease-in-out infinite;
  filter:drop-shadow(0 0 10px var(--pink)) drop-shadow(0 0 20px var(--cyan));
}

@keyframes float {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-20px); }
}

/* === SNSリンク === */
.sns-signal {
  position:relative;
  z-index:10;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-top:2em;
}

.insta-link {
  display:inline-flex;
  align-items:center;
  gap:.5em;
  color:#fff;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.3);
  border-radius:8px;
  padding:.6em 1.2em;
  background:rgba(255,255,255,.05);
  transition:all .4s ease;
  font-family:'Orbitron',sans-serif;
  letter-spacing:1px;
}

.insta-link:hover {
  color:var(--cyan);
  border-color:var(--pink);
  box-shadow:0 0 20px var(--pink),0 0 30px var(--cyan);
  transform:scale(1.05);
}

.insta-link svg {
  width:20px;
  height:20px;
  fill:currentColor;
}

/* === FRAZER SUPPLY STATION === */
.station-title {
  position:relative;
  z-index:10;
  font-family:'Orbitron',sans-serif;
  font-size:.9rem;
  letter-spacing:2px;
  margin-top:3em;
  text-shadow:0 0 8px var(--cyan),0 0 15px var(--pink);
  animation:glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
  0%{opacity:.7;}
  50%{opacity:1;}
  100%{opacity:.7;}
}

/* === ストア === */
.frazer-stores {
  position:relative;
  z-index:10;
  margin-top:1em;
  display:flex;
  justify-content:center;
  gap:1.5em;
  flex-wrap:wrap;
}

.store {
  display:flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
  color:#fff;
  border:1px solid rgba(255,255,255,.2);
  border-radius:10px;
  padding:.8em 1.4em;
  width:140px;
  background:rgba(255,255,255,.05);
  transition:all .4s ease;
}

.store:hover {
  transform:translateY(-4px) scale(1.05);
  box-shadow:0 0 15px var(--pink),0 0 30px var(--cyan);
}

.store.suzuri:hover { border-color:var(--pink); }
.store.trinity:hover { border-color:var(--cyan); }

/* === 引用 === */
.quote {
  position:relative;
  z-index:10;
  font-size:clamp(.8rem,2vw,1.1rem);
  font-style:italic;
  opacity:.8;
  margin:2em 0 1em;
  text-shadow:0 0 8px rgba(255,255,255,.3);
}

/* === フッター === */
footer {
  position:relative;
  z-index:10;
  font-size:.7rem;
  opacity:.8;
  margin:2em 0 1em;
  text-shadow:0 0 5px rgba(255,255,255,.4);
}

/* === 汎用 === */
header, main, footer {
  position:relative;
  z-index:10;
}

/* === CHRONICLE TIMELINE === */
.timeline {
  position: relative;
  width: 90%;
  max-width: 700px;
  margin: 3em auto 6em;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 2em;
}
.entry {
  position: relative;
  margin-bottom: 3em;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
.entry.visible {
  opacity: 1;
  transform: translateY(0);
}
.entry::before {
  content: "";
  position: absolute;
  left: -1.15em;
  top: 0.3em;
  width: 12px;
  height: 12px;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--pink);
}
.entry h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--cyan);
  font-size: 1.1rem;
  margin-bottom: 0.3em;
}
.entry p {
  line-height: 1.7;
  font-size: 0.95rem;
  opacity: 0.9;
}
.entry small {
  display: block;
  margin-top: 0.4em;
  color: rgba(255,255,255,0.5);
}

/* === WALLPAPER PAGE === */
.wallpaper-preview {
  margin: 2em auto;
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255,255,255,0.2);
  transition: transform .4s ease, box-shadow .4s ease;
  display: block;
}

.wallpaper-preview img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  border-radius: 10px;
}

.download-btn {
  display: inline-block;
  margin-top: 1.2em;
  padding: .8em 1.6em;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 1px;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
  transition: transform .3s ease, box-shadow .3s ease;
}
.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--pink), 0 0 40px var(--cyan);
}

/* --- モバイル対応 --- */
@media (max-width: 600px) {
  .wallpaper-preview {
    margin: 1.5em auto;
    max-width: 95%;
    padding: 0;
  }

  .wallpaper-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
}









/* === ILLUSTRATIONS PAGE === */
/* === GALLERY === */
.gallery-intro {
  margin: 2em auto 3em;
  max-width: 700px;
  line-height: 1.8;
  font-size: 1rem;
  opacity: .9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  padding: 0 2em 3em;
  justify-items: center;
}

.gallery-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 1em;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
  transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px var(--pink), 0 0 25px var(--cyan);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.gallery-item h3 {
  margin-top: .8em;
  font-size: 1rem;
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
}

.gallery-item p {
  font-size: .9rem;
  margin-top: .5em;
  opacity: .85;
}

.store-links {
  margin-top: .8em;
  display: flex;
  justify-content: center;
  gap: 1em;
}

.store-links a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  padding: .4em .8em;
  font-size: .8rem;
  transition: all .3s ease;
}

.store-links a:hover {
  color: var(--cyan);
  border-color: var(--pink);
  box-shadow: 0 0 10px var(--pink), 0 0 20px var(--cyan);
}

/* === PAGINATION === */
.pagination {
  text-align: center;
  margin: 3em 0;
}
.pagination a {
  color: #fff;
  margin: 0 .3em;
  padding: .5em .8em;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 5px;
  text-decoration: none;
}
.pagination a.active {
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  border-color: transparent;
}
.pagination a:hover {
  color: var(--cyan);
  border-color: var(--pink);
}

/* ゲーム一覧の全体 */
.game-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 820px;
    margin: 40px auto;
}

/* カード本体 */
.game-card {
    background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(14,165,233,0.15));
    border: 1px solid rgba(56,189,248,0.25);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 0 20px rgba(14,165,233,0.15);
    backdrop-filter: blur(3px);
    transition: 0.25s ease;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 26px rgba(56,189,248,0.35);
}

/* タイトル */
.game-title {
    color: #38bdf8;
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

/* 説明文 */
.game-desc {
    color: #dbeafe;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* PLAYボタン */
.game-play-btn {
    display: inline-block;
    padding: 10px 26px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    font-weight: 700;
    border-radius: 999px;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 4px 12px rgba(14,165,233,0.35);
}

.game-play-btn:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
}

/* スマホ対応 */
@media (max-width: 600px) {
    .game-card { padding: 20px; }
    .game-title { font-size: 20px; }
}







/* === 共通セクション（文章ブロック） === */
section {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 3em auto;
  padding: 0 1.5em;
  text-align: left;
  line-height: 1.9;
  opacity: 0.9;
}

section h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 1em;
  text-shadow: 0 0 10px var(--pink), 0 0 15px var(--cyan);
}

section p {
  font-size: 1rem;
  margin-bottom: 1.4em;
}








/* ============================
   TAROT SECTION
   ============================ */
/* === TAROT AREA === */
.tarot-area {
  position: relative;
  z-index: 10;
  margin: 3em auto 4em;
  width: 90%;
  max-width: 700px;
}

.tarot-title {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
  font-size: 1.4rem;
  text-shadow: 0 0 12px var(--pink), 0 0 18px var(--cyan);
}

.tarot-lead {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.8em;
}

/* テーブル全体：背景は Fraz er UNIVERSE の宇宙と馴染むよう透明＋ぼかし */
#tarot-table {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 260px;
  margin: 2em auto 1em;
  border-radius: 14px;
  overflow: hidden;
  padding: 6px;
  backdrop-filter: blur(4px);
  background: radial-gradient(circle at 20% 80%, rgba(255,0,224,0.08), transparent 70%)
              rgba(0,0,0,0.4);
}

/* カード群コンテナ */
#tarot-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

/* カード一枚 */
.tarot-card {
  position: absolute;
  width: 70px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  transform-origin: center center;
}

.tarot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* シャッフル中のゆらぎ */
.tarot-card.shuffling {
  transition: transform 0.4s ease, top 0.4s ease, left 0.4s ease;
}

/* ボタン */
.tarot-actions {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1.2em;
}

.tarot-btn {
  padding: 0.7em 1.8em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 12px rgba(255,255,255,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.tarot-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 18px var(--pink), 0 0 24px var(--cyan);
}

.hidden {
  display: none;
}

/* スマホ調整 */
@media (max-width: 600px) {
  #tarot-table {
    height: 220px;
  }
  .tarot-card {
    width: 56px;
    height: 96px;
  }
}





/* =======================
   FRAZER TAROT RESULT
======================= */
#tarot-result {
  text-align:center;
  padding:4em 1.5em;
  max-width:850px;
  margin:auto;
}

.tarot-heading {
  font-family:'Orbitron',sans-serif;
  letter-spacing:1px;
  margin-bottom:1.5em;
}

.tarot-card-wrap {
  margin:2em auto 3em;
}

.tarot-card-img {
  width:260px;
  max-width:70vw;
  transition:0.3s;
}

.tarot-card-img:hover {
  transform:scale(1.05);
}

.tarot-info {
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:12px;
  padding:2em 1.5em;
  max-width:650px;
  margin:2em auto;
  line-height:1.85;
}

.tarot-card-name {
  font-size:2rem;
  font-weight:700;
  letter-spacing:2px;
  margin-bottom:0.3em;
  font-family:'Orbitron',sans-serif;
}

.tarot-card-name .en {
  font-size:0.75em;
  opacity:0.7;
  letter-spacing:1px;
  display:block;
  margin-top:0.1em;
  font-weight:400;
}

.tarot-pos {
  margin-bottom:1.5em;
  font-weight:700;
  opacity:0.85;
  font-size:1.1rem;
}

.tarot-text {
  font-size:1.05rem;
  white-space:pre-line;
  text-align:left;
  margin:auto;
}

.tarot-actions {
  margin-top:3em;
}

.tarot-btn-back {
  display:inline-block;
  padding:0.7em 1.4em;
  border:1px solid #0ff;
  color:#0ff;
  text-decoration:none;
  border-radius:4px;
  transition:0.2s;
}

.tarot-btn-back:hover {
  background:#0ff;
  color:#111;
}





/* =========================================
   FRAZER 数秘術（必要最低限・壊れない最終版）
========================================= */

/* 全体 */
.frazer-numerology-section {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    color: #111;
}

/* タイトル・数字 */
.fn_num {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #111;
}

.fn_result_title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #111;
}

/* キーワード（例：大地の守り手 / 《キーワード》安定・努力・基盤） */
.fn_keywords {
    color: #111;
    background: #f3f3f3;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 18px;
    font-weight: bold;
}

/* フォーム */
.fn_birthday_wrap {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.fn_select {
    padding: 10px;
    font-size: 1rem;
}

/* ===== ボタン：見やすい白ベース ===== */
.fn_btn {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;               /* 白背景 */
    color: #111;                    /* 文字は濃く */
    border: 1px solid #ccc;         /* 薄い枠線で視認性UP */
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}
.fn_btn:hover {
    background: #f0f0f0;
}


/* 画像 */
.fn_img {
    width: 70%;
    max-width: 320px;
    margin: 20px auto;
    display: block;
}

/* メッセージ（本文） */
.fn_message {
    background: #f4f4f4;
    padding: 18px 20px;
    border-radius: 10px;
    margin-top: 20px;
    line-height: 1.7;
    text-align: left;
    color: #111;
}


/* SNSシェアアイコン */
.fn_share {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.fn_sns {
    width: 40px;
    height: 40px;
    display: inline-block;
    border-radius: 50%;
    background: #ddd;
    position: relative;
}

/* X（旧Twitter） */
.fn_sns.x::before {
    content: "X";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #111;
}

/* Facebook */
.fn_sns.fb::before {
    content: "f";
    font-size: 22px;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -58%);
    color: #1877f2;
    font-weight: bold;
}

/* LINE */
.fn_sns.line::before {
    content: "L";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #00c300;
    font-weight: bold;
}




/* ===============================
   FRAZER UNIVERSE : world_heritage.css
   他CSSと衝突しないよう全クラスは wh- で統一
================================ */

/* ページ全体 */
.wh-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 15px 60px;
}

/* 説明文ボックス */
.wh-intro {
    background: rgba(255,255,255,0.92);
    padding: 22px 26px;
    border-radius: 10px;
    margin-bottom: 35px;
    border-left: 5px solid #77c9ff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* 遺産カード */
.wh-card {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 22px 28px;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ホバー効果（上品） */
.wh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* タイトル */
.wh-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

/* サブ情報 */
.wh-sub {
    font-size: .92rem;
    color: #666;
    margin-bottom: 12px;
}

/* 説明文 */
.wh-desc {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 14px;
    color: #444;
}

/* 画像 */
.wh-img img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: block;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .wh-card {
        padding: 18px 22px;
    }
    .wh-title {
        font-size: 1.4rem;
    }
}


.wh-intro,
.wh-intro * {
    color: #222 !important;
}


.wh-img {
    text-align: center;
    margin-top: 15px;
}

.wh-img img {
    display: inline-block;
    max-width: 320px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ddd;
}
