:root{
  --bg:#000; --fg:#fff; --fg-soft:#cfcfcf;
  --overlay: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55) 40%, rgba(0,0,0,.7));
  --header-h: 64px;

  /* entertainment 既存トーン互換（やや青寄りの発光） */
  --bg-0: #0b0f14;
  --bg-1: #0f1621;
  --card-0: #111825;
  --card-1: #0f1a2c;
  --ink-0: #e7eef7;
  --ink-1: #a8b6c9;
  --pri:   #59b2ff;
  --pri-2: #2a86f0;
  --bd:    rgba(120,165,245,.25);
  --glow:  0 12px 30px rgba(80,140,220,.22), 0 2px 10px rgba(80,140,220,.18);
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ color-scheme: dark; }
body{
  margin:0; background:
    radial-gradient(1200px 800px at 20% -10%, #172233 0%, transparent 60%),
    radial-gradient(1200px 800px at 90% 120%, #0d1727 0%, transparent 60%),
    var(--bg-0);
  color:var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: system-ui, -apple-system, Segoe UI, Roboto,
    "Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic", Meiryo, sans-serif;
}

/* ===== 共通ヘッダー（相性診断と同一仕様） ===== */
.site-header{
  position:fixed; inset:0 0 auto 0; height:var(--header-h);
  display:flex; align-items:center; justify-content:flex-start; gap:8px; padding:0 16px;
  background: rgba(0,0,0,.35); backdrop-filter: blur(6px); z-index:50;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.brand{
  display:flex; align-items:center; gap:8px;
  font-weight:800; letter-spacing:.08em; font-size:18px; color:#fff; text-decoration:none;
}
.brand img{ display:block; }

.lang-switch{
  display:flex; gap:10px; align-items:center; margin-left:auto; margin-right:8px;
}
.lang-switch a{
  display:inline-flex; align-items:center; justify-content:center;
  height:28px; min-width:42px; padding:0 10px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
  color:#fff; text-decoration:none; font-size:12px; letter-spacing:.04em;
  background:rgba(255,255,255,.06);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.lang-switch a:hover{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.4); }
.lang-switch a.is-active{ background:#fff; color:#000; border-color:#fff; }

.hamburger{ width:44px; height:44px; border:0; background:transparent; cursor:pointer; position:relative; }
.hamburger span{ position:absolute; left:10px; right:10px; height:2px; background:#fff; transition:transform .25s ease, opacity .25s ease; }
.hamburger span:nth-child(1){ top:14px; } .hamburger span:nth-child(2){ top:21px; } .hamburger span:nth-child(3){ top:28px; }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.menu-panel{
  position:absolute; top:var(--header-h); right:12px; width:min(280px,90vw);
  background: rgba(10,10,10,.92); border:1px solid rgba(255,255,255,.08);
  border-radius:12px; overflow:hidden; z-index:60; box-shadow:0 24px 60px rgba(0,0,0,.6);
}
.menu-panel[hidden]{ display:none; }
.menu-panel ul{ list-style:none; padding:8px; margin:0; }
.menu-panel li a{ display:block; padding:14px 16px; color:#fff; text-decoration:none; border-radius:8px; }
.menu-panel li a:hover{ background: rgba(255,255,255,.06); }

/* ===== Top Banner Video（相性診断と同一） ===== */
.about-hero{
  margin-top: var(--header-h);
  position: relative;
  height: 500px;          /* PC視図 */
  background: #000;
  overflow:hidden;
}
.hero-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  display:block;
}
.hero-video--pc{ display:block; }
.hero-video--sp{ display:none; }
@media (max-width: 768px){
  .about-hero{ height: 200px; }
  .hero-video--pc{ display:none; }
  .hero-video--sp{ display:block; }
}

/* ===== Fortune（12星座）共通UI ===== */
.wrap{max-width:900px;margin:0 auto;padding:18px 6vw;}
.head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 14px}
.card{
  background:linear-gradient(180deg,var(--card-0),var(--card-1));
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  box-shadow: var(--glow), inset 0 0 .5px rgba(255,255,255,.25);
  padding:16px;
  margin:0 0 12px;
}
h1,h2,h3{color:#eaf2ff;margin:.2em 0}
.muted{color:var(--fg-soft)}
.center{text-align:center}
.right{margin-left:auto}

.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
select,button{font-size:1rem}
select{
  padding:10px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);color:var(--ink-0)
}
select:focus{outline:none;box-shadow:0 0 0 4px rgba(89,178,255,.25)}
.btn{
  border:0;border-radius:12px;padding:12px 16px;
  background:linear-gradient(180deg,rgba(89,178,255,.22),rgba(42,134,240,.16));
  color:#e8f4ff;cursor:pointer;box-shadow: var(--glow);
  text-decoration:none;
}
.btn:hover{filter:brightness(1.05)}
.btn:disabled{opacity:.6;cursor:not-allowed}

.loading{display:flex;gap:10px;align-items:center;justify-content:center}
.spinner{width:28px;height:28px;border:3px solid rgba(255,255,255,.12);border-top-color:var(--pri);border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.blink{color:#ff8686;font-weight:600;animation:blink 1s steps(2,start) infinite}
@keyframes blink{to{visibility:hidden}}

.title{font-weight:700;color:#d2e7ff;margin:2px 0 10px}
.grid{display:grid;grid-template-columns:1fr;gap:12px}
.item{
  background:rgba(255,255,255,.02);
  border-left:6px solid var(--pri);
  padding:12px 14px;border-radius:10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.item h3{margin:.1em 0 .4em;font-size:1rem;color:#eaf2ff;display:flex;gap:8px;align-items:center}
.rate{display:inline-flex;gap:2px;align-items:center}
.rate img{width:25px;height:25px;object-fit:contain;filter:drop-shadow(0 0 2px rgba(0,0,0,.35))}
.rate .emoji{font-size:17px;line-height:1}
.desc{color:#cfe0ff;line-height:1.7}
.foot{color:#9db2ce;font-size:.9rem;margin-top:8px}
.pop{animation:pop .44s ease-out both}
@keyframes pop{from{opacity:0;transform:translateY(6px) scale(.995)}to{opacity:1;transform:translateY(0) scale(1)}}
.prep .item{opacity:0;transform:translateY(8px)}
.reveal .item{animation:fadeUp .48s ease-out forwards}
.reveal .item:nth-child(1){animation-delay:.12s}
.reveal .item:nth-child(2){animation-delay:.22s}
.reveal .item:nth-child(3){animation-delay:.32s}
.reveal .item:nth-child(4){animation-delay:.42s}
@keyframes fadeUp{to{opacity:1;transform:translateY(0)}}

/* スマホで「選択＋スタート＋戻る」を崩れにくく */
@media (max-width:560px){
  .row{gap:8px}
  .btn,select{flex:1}
}

/* ネイティブのプルダウン配色調整 */
.wrap select{ color-scheme: dark; }
.wrap select option, .wrap select optgroup{ color:#0b1220 !important; background:#fff !important; }
@media (prefers-color-scheme: dark){
  .wrap select option, .wrap select optgroup{ color:#fff !important; background:#0b0f14 !important; }
}
