/* =========================================================================
   aishou.biz — base design system
   神秘性（深い夜空・星・金）× 信頼感（端正な余白・読みやすさ）
   各ブランドは --accent / --accent-2 を上書きして世界観を切り替える。
   ========================================================================= */

:root {
  /* --- 宇宙ベース（全ブランド共通） --- */
  --bg-0: #07060f;   /* 最深部 */
  --bg-1: #0d0b1d;   /* ベース */
  --bg-2: #15132e;   /* パネル */
  --bg-3: #1d1a3d;   /* 浮上面 */
  --line: rgba(233, 226, 255, 0.12);
  --line-strong: rgba(233, 226, 255, 0.22);

  --ink: #ece9ff;          /* 主要テキスト */
  --ink-soft: #b8b2d8;     /* 補助テキスト */
  --ink-faint: #7d77a3;    /* 控えめ */

  /* --- 信頼の金 --- */
  --gold: #e9c46a;
  --gold-deep: #c9a227;
  --gold-soft: rgba(233, 196, 106, 0.16);

  /* --- ブランドアクセント（デフォルト＝ポータル） --- */
  --accent: #8c6be0;
  --accent-2: #f107a3;
  --accent-soft: rgba(140, 107, 224, 0.16);

  /* --- 形・影 --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --shadow-1: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 24px 70px rgba(0, 0, 0, 0.55);
  --glow: 0 0 40px rgba(140, 107, 224, 0.35);

  --maxw: 1160px;

  --serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --display: "Cinzel", "Shippori Mincho", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-1);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 宇宙の地。星のキャンバスを後ろに敷く */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 78% -10%, rgba(140, 107, 224, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 12% 8%, rgba(241, 7, 163, 0.10), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(233, 196, 106, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
}
.cosmos canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* うっすら漂う霧 */
.cosmos::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(closest-side, rgba(140, 107, 224, 0.10), transparent);
  filter: blur(40px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-4%, -2%, 0) scale(1); }
  to   { transform: translate3d(5%, 3%, 0) scale(1.12); }
}

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

::selection { background: var(--accent); color: #fff; }

/* ---------- レイアウト ---------- */
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(60px, 9vw, 120px) 0; }

/* ---------- タイポ ---------- */
.eyebrow {
  font-family: var(--display);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.solo::after { display: none; }

.h-serif { font-family: var(--serif); font-weight: 600; line-height: 1.35; }

.title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.3;
  margin: 0.4em 0 0.5em;
  letter-spacing: 0.02em;
}
.title .grad { color: transparent; background: linear-gradient(120deg, var(--gold), #fff 40%, var(--accent)); -webkit-background-clip: text; background-clip: text; }

.lead { color: var(--ink-soft); font-size: clamp(0.98rem, 1.6vw, 1.12rem); max-width: 60ch; }

/* ---------- ボタン ---------- */
.btn {
  --bg: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.8em;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn-gold {
  color: #1a1430;
  background: linear-gradient(120deg, #f6dd9a, var(--gold) 50%, var(--gold-deep));
  box-shadow: 0 10px 30px rgba(233, 196, 106, 0.28);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(233, 196, 106, 0.40); }
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--glow); }
.btn-lg { padding: 1.1em 2.3em; font-size: 1.05rem; }

/* ---------- ガラスカード ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
}

/* ---------- 区切りの星 ---------- */
.divider-star {
  display: flex; align-items: center; gap: 18px;
  color: var(--gold); justify-content: center; margin: 8px 0;
}
.divider-star::before, .divider-star::after {
  content: ""; height: 1px; width: min(160px, 28vw);
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------- 共通ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(7, 6, 15, 0.85), rgba(7, 6, 15, 0.25));
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand-link { display: inline-flex; align-items: center; gap: 12px; }
.brand-link .logo { height: 34px; width: auto; display: block; }
.brand-link .logo-text { font-family: var(--display); font-weight: 700; letter-spacing: 0.18em; font-size: 1.06rem; }
.brand-link .logo-text b { color: var(--gold); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav .pill {
  padding: 0.5em 1.2em; border-radius: 100px; border: 1px solid var(--line-strong);
  color: var(--ink);
}
.nav .pill:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 回遊フッター（各占いページ共通） ---------- */
.cross-sell { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.cross-sell .head { text-align: center; margin-bottom: 36px; }
.cross-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.cross-card {
  position: relative; display: block; padding: 22px; border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.cross-card:hover { transform: translateY(-4px); border-color: var(--c, var(--accent)); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.cross-card .gl { font-size: 1.7rem; color: var(--c, var(--accent)); }
.cross-card .bn { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; margin: 8px 0 4px; }
.cross-card .tg { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.6; }
.cross-card .soon {
  position: absolute; top: 12px; right: 12px; font-size: 0.64rem; letter-spacing: 0.12em;
  color: var(--gold); border: 1px solid var(--gold-soft); padding: 2px 8px; border-radius: 100px;
}
.back-portal { text-align: center; margin-top: 40px; }

/* ---------- 共通フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 40px; color: var(--ink-faint); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer .about { max-width: 360px; }
.site-footer .about p { font-size: 0.86rem; line-height: 1.8; }
.site-footer .links { display: flex; gap: 50px; flex-wrap: wrap; }
.site-footer .links h5 { color: var(--ink-soft); font-size: 0.8rem; letter-spacing: 0.1em; margin: 0 0 14px; }
.site-footer .links a { display: block; font-size: 0.85rem; color: var(--ink-faint); padding: 4px 0; }
.site-footer .links a:hover { color: var(--ink); }
.site-footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- 出現アニメ ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .nav .hide-sm { display: none; }
  .site-header .bar { height: 62px; }
}
