/* ===================================================
   1. 通常の投稿ページやサイト全体のベース（黒背景）
=================================================== */
body,
.wp-site-blocks {
  background-color: #121417 !important;
}

.has-tertiary-background-color,
div[class*="has-tertiary-background-color"],
.has-background {
  background-color: #121417 !important;
}

header.wp-block-template-part,
.wp-site-blocks > header {
  background-color: #121417 !important;
}

header.wp-block-template-part a,
header.wp-block-template-part p,
header.wp-block-template-part span {
  color: #f0f2f5 !important;
}

.wp-block-post-title,
h1.wp-block-post-title,
h2.wp-block-post-title,
.has-foreground-color {
  color: #ffffff !important;
}










/* ===================================================
   Google Fonts
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@700&display=swap');

/* ===================================================
   タロット占い専用レイアウト
=================================================== */

/* 全体背景・文字色・フォント */
body.page-id-829,
body:has(.is-tarot-layout),
body:has(.is-tarot-layout) .wp-site-blocks,
body:has(.is-tarot-layout) main {
  background: radial-gradient(circle at 50% 20%, #fff0f9 0%, #f3e5fc 50%, #e2d1fc 100%) !important;
  color: #4a3b5c !important;
  font-family: 'M PLUS Rounded 1c', sans-serif !important;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

/* 3D Perspective container */
.perspective-1000 {
  perspective: 1200px;
}

/* Card Geometry */
.card-base {
  width: 160px;
  height: 250px;
  border-radius: 16px;
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 640px) {
  .card-base {
    width: 180px;
    height: 280px;
  }
}

/* カード裏面（星空デザイン） */
.card-back {
  background: linear-gradient(135deg, #b19ffb 0%, #e8a2df 50%, #fbd5b5 100%) !important;
  border: 4px solid #fce38a;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.7), 0 10px 25px rgba(150, 100, 200, 0.3);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* カード表面 */
.card-front {
  background: linear-gradient(180deg, #fffbf5 0%, #fcecf5 100%) !important;
  border: 4px solid #f6d271;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 30px rgba(246, 210, 113, 0.3), 0 0 20px rgba(255, 182, 193, 0.2);
}

/* カード反転アニメーション */
.card-base.flipped {
  transform: rotateY(180deg) scale(1.08) !important;
  z-index: 50 !important;
}

/* ===================================================
   ヘッダー・メニューバー（黒背景を完全に解除し、可愛いすりガラス＋ゴールドラインへ）
=================================================== */

/* headerタグ本体および内部のブロック全体の背景・枠線を上書き */
body:has(.is-tarot-layout) header,
body:has(.is-tarot-layout) header.wp-block-template-part,
body:has(.is-tarot-layout) header .wp-block-group,
body:has(.is-tarot-layout) header .has-tertiary-background-color,
body:has(.is-tarot-layout) header .has-background {
  background: rgba(255, 245, 253, 0.9) !important;
  background-color: rgba(255, 245, 253, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 2px solid rgba(246, 210, 113, 0.7) !important;
  box-shadow: 0 4px 15px rgba(177, 159, 251, 0.15) !important;
}

/* サイトタイトル（Quest Palette） */
body:has(.is-tarot-layout) header :is(.wp-block-site-title a, a.wp-block-site-title__link, .wp-block-site-title) {
  color: #7c3aed !important;
  font-weight: 800 !important;
  font-family: 'Zen Maru Gothic', sans-serif !important;
  text-shadow: 0 2px 8px rgba(124, 58, 237, 0.2) !important;
}

/* メニュー項目リンク（ANIME TOPICS、紹介など） */
body:has(.is-tarot-layout) header :is(nav a, .wp-block-navigation-item__content, .wp-block-navigation a) {
  color: #6d4c87 !important;
  font-weight: 700 !important;
  font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif !important;
  font-size: 0.95rem !important;
  transition: all 0.25s ease !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
}

/* メニューのホバー演出（ふんわりピンク） */
body:has(.is-tarot-layout) header :is(nav a, .wp-block-navigation-item__content):hover {
  color: #db2777 !important;
  background: rgba(255, 182, 193, 0.3) !important;
}

/* ===================================================
   タイトルの背景透過・文字デザイン
=================================================== */

/* タイトル周辺ブロックの背景・影を透過 */
body:has(.is-tarot-layout) .entry-header,
body:has(.is-tarot-layout) .wp-block-post-title,
body:has(.is-tarot-layout) .wp-block-group:has(.wp-block-post-title),
body:has(.is-tarot-layout) .wp-block-group:has(h1) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* 投稿日時・カテゴリーリンクの調整 */
body:has(.is-tarot-layout) .wp-block-post-date,
body:has(.is-tarot-layout) .wp-block-post-terms,
body:has(.is-tarot-layout) .wp-block-post-terms a {
  color: #a894b8 !important;
  background: transparent !important;
  text-decoration: none !important;
}

/* タイトル本体（H1） */
body:has(.is-tarot-layout) :is(h1.wp-block-post-title, .wp-block-post-title, h1, .entry-title) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  -webkit-text-fill-color: initial !important;
  font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif !important;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem) !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
  text-align: center !important;
  color: #db2777 !important;
  text-shadow: 0 3px 10px rgba(219, 39, 119, 0.2) !important;
  margin: 30px auto 15px auto !important;
  padding: 0 15px !important;
  position: relative !important;
}

/* タイトル下のハートアクセントライン */
body:has(.is-tarot-layout) :is(h1.wp-block-post-title, .wp-block-post-title, h1)::after {
  content: "✧ 💖 ✧" !important;
  display: block !important;
  font-size: 15px !important;
  letter-spacing: 10px !important;
  color: #f472b6 !important;
  -webkit-text-fill-color: #f472b6 !important;
  margin-top: 12px !important;
  text-align: center !important;
}