
/* ── スキップリンク ──────────────────────────── */
.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  padding: 10px 20px;
  background: var(--clr-brand);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: 700;
  border-radius: var(--r-md);
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; outline: 2px solid #fff; outline-offset: 2px; }

/* ── モダンリセット ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── フォーカスリング（キーボード操作時のみ・全要素共通の a11y デフォルト）
   個別コンポーネントが outline:none で消している場合も、これがキーボード時の最低限の可視性を担保。
   より強い見た目が必要な要素は各自で :focus-visible を上書きする。 */
:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}
/* マウス/タッチでのフォーカスではリングを出さない（クリック時のちらつき防止） */
:focus:not(:focus-visible) { outline: none; }

html {
  color-scheme: light;
  font-size: 16px; /* 標準 16px */
  font-feature-settings: "palt" 1;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); /* 固定ヘッダー分オフセット */
  scrollbar-color: var(--clr-brand-light) transparent;
  scrollbar-width: thin;
  overflow-x: hidden;
}

/* SP: ヘッダーが固定でないためオフセット不要 */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 16px;
  }
}

body {
  font-family: var(--font-jp);
  font-size: 1rem; /* 16px */
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
  /* PC: ヘッダー固定分オフセット */
  padding-top: var(--header-h);
}

/* 記事本文スコープ: text-align + 本文色を一括適用。
 * 本文は青みグレー (--clr-text-body)、見出しは濃紺 (--clr-text) でコントラストを保つ。
 * これで長文の読みやすさUP & 見出しがより立つ。 */
.cd-body,
.qd-explanation,
.page-content {
  text-align: justify;
  text-justify: inter-character;
  color: var(--clr-text-body);
}
.cd-body h2,
.cd-body h3,
.cd-body h4,
.qd-explanation h2,
.qd-explanation h3,
.qd-explanation h4,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--clr-text);
}

/* SP: ボトムナビ分の余白は site-footer 側で確保する。
 * 以前 body に padding-bottom を入れていたが、その余白がフッター背景の外
 * (body 背景) に出てしまい白い隙間として見えていた問題への対応。
 * フッターの紺色背景内に逃げ余白を入れることで隙間が消える。 */
@media (max-width: 767px) {
  body {
    padding-top: 0;
    padding-bottom: 0;
    background-color: var(--color-gray);
  }
  .site-footer {
    padding-bottom: calc(var(--bottom-nav-h) + 24px + env(safe-area-inset-bottom, 0px));
  }
}

img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: opacity var(--tr); }
a:hover { opacity: 0.8; }
button { cursor: pointer; font: inherit; background: none; border: none; }
:focus-visible { outline: 2px solid var(--clr-brand); outline-offset: 3px; }

.en { font-family: var(--font-en); }

/* 改行制御 */
.pc-br { display: inline; }
.sp-br { display: none; }
@media (max-width: 767px) {
  .pc-br { display: none; }
  .sp-br { display: inline; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--clr-brand-light); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-brand); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =====================================================
   HEADER — フローティングピル型
   PC/タブレットでは画面上端から少し離れた半透明のピルとして浮かせる。
   背景に溶け込みつつ blur で操作対象として読める質感に。
   ===================================================== */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 48px));
  height: auto;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* トップページ: 初期はさらに淡く、スクロール後にやや不透明へ */
#home .site-header {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-sm);
}
#home .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
}

/* トップページ: ヒーロー背景をヘッダー背後まで延ばす */
body#home {
  padding-top: 0;
}
#home .hero-section {
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 100px));
}
@media (max-width: 767px) {
  #home .hero-section {
    padding-top: 20px;
  }
}

/* SP: ヘッダーはフローティング化せず、関係配置でフラットに残す。
   主操作は .sp-bottom-nav（フローティングタブ）に任せる構成。 */
@media (max-width: 767px) {
  .site-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    height: 64px;
    min-height: 64px;
    background: var(--clr-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-bottom: 1px solid var(--clr-border);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
  }
  .header-inner {
    justify-content: center;
    align-items: center;
    height: 64px;
    padding: 0 12px;
  }
  .header-logo {
    align-items: center;
    margin: 0;
    transform: none;
  }
  .header-logo-img {
    max-height: 30px;
    height: auto;
    width: auto;
    display: block;
    transform: none;
  }
  /* SPは position:relative でヘッダーが flow に乗るので
   * body の padding-top（var(--header-h) 96px）は不要 */
  body {
    padding-top: 0;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: 100%;
  padding: 6px 22px;
  max-width: 100%;
  margin: 0 auto;
  gap: var(--sp-sm);
}

/* 検索展開時：ロゴを縮小してナビの改行を防ぐ */
.header-inner:has(.header-search-wrap.is-open) .header-logo {
  flex-shrink: 1;
  min-width: 0;
}
.header-inner:has(.header-search-wrap.is-open) .header-logo-img {
  height: 40px;
}
.header-inner:has(.header-search-wrap.is-open) .header-nav .nav-list {
  gap: 0;
}

/* ロゴ */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo-img {
  height: clamp(34px, 4vw, 44px);
  width: auto;
  display: block;
  image-rendering: auto;
  transform: translateZ(0);
  will-change: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.logo-text {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  font-style: normal;
  color: var(--clr-text);
  letter-spacing: -0.02em;
  transition: font-size 0.3s ease;
}
.logo-tagline {
  font-size: var(--fs-base);
  color: #7a5c4a;
  white-space: nowrap;
}

/* PCナビ */
.header-nav { display: none; margin-left: auto; flex-shrink: 1; min-width: 0; }
@media (min-width: 1024px) { .header-nav { display: block; } }

.header-nav .nav-list { display: flex; align-items: center; gap: clamp(2px, 1.2vw, 24px); flex-wrap: nowrap; }

.header-nav .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-text-muted);
  padding: 8px clamp(8px, 1.2vw, 16px);
  border-radius: var(--r-full);
  border-bottom: none;
  letter-spacing: 0.03em;
  transition: background var(--tr), color var(--tr), transform 0.2s ease, box-shadow 0.2s ease;
}
.header-nav .nav-link i {
  font-size: var(--fs-md);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.header-nav .nav-link:hover { transform: translateY(-2px); }
.header-nav .nav-link:hover i { transform: scale(1.25); }

/* ナビアイコン個別カラー */
.header-nav .nav-link--diagnosis i { color: var(--clr-pink); }
.header-nav .nav-link--quiz      i { color: var(--clr-quiz); }
.header-nav .nav-link--column    i { color: var(--clr-column); }

/* hover: カテゴリカラーのピル背景 */
.header-nav .nav-link--diagnosis:hover { background: var(--clr-pink-light); color: var(--clr-pink); box-shadow: var(--shadow-hover); }
.header-nav .nav-link--quiz:hover      { background: var(--clr-quiz-light); color: var(--clr-quiz); box-shadow: var(--shadow-hover); }
.header-nav .nav-link--column:hover    { background: var(--clr-bg-green);   color: var(--clr-column); box-shadow: var(--shadow-hover); }

/* アクティブ項目: 半透明ピル背景＋小さな星で控えめに強調。
   各識別色（診断=ピンク / クイズ=パープル / コラム=ティール）の薄い色面で塗る。 */
.header-nav .nav-link.is-active {
  color: var(--clr-text);
  background: rgba(88, 96, 168, 0.10);
}
.header-nav .nav-link.is-active::before {
  content: '✦';
  font-size: 0.7em;
  color: var(--color-warm-yellow);
  margin-right: 2px;
  line-height: 1;
}
.header-nav .nav-link--diagnosis.is-active { background: var(--clr-pink-light); color: var(--clr-pink); }
.header-nav .nav-link--quiz.is-active      { background: var(--clr-quiz-light); color: var(--clr-quiz); }
.header-nav .nav-link--column.is-active    { background: var(--clr-bg-green);   color: var(--clr-column); }

/* 今日の運勢ナビCTA — BUTTON SYSTEM と同色（パープル単色）に統一。
   ヘッダーに置く小型版なのでサイズだけ控えめにする。 */
.header-nav .nav-fortune {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--color-accent-blue);
  background-image: none;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  font-size: var(--fs-sm);
  line-height: 1;
  margin-left: var(--sp-xs);
  box-shadow: 0 4px 20px rgba(88, 96, 168, 0.22);
  transition: transform var(--tr), box-shadow var(--tr);
}
.header-nav .nav-fortune i { display: inline-block; }
.header-nav .nav-fortune::after { content: none; }
.header-nav .nav-fortune:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(88, 96, 168, 0.30);
  opacity: 1;
}

/* PC ハンバーガーボタン */
.menu-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 62px;
  height: 62px;
  background: var(--clr-brand);
  border-radius: 60% 40% 55% 45% / 45% 55% 42% 58%;
  animation: blob-morph 6s ease-in-out infinite;
  cursor: pointer;
  padding: 8px 6px 5px;
  transition: background var(--tr);
  position: fixed;
  top: calc((var(--header-h) - 62px) / 2);
  right: var(--sp-sm);
  z-index: 1005;
}
.menu-button:hover { background: var(--clr-brand-dark); }

@keyframes blob-morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 45% 55% 42% 58%; }
  33%       { border-radius: 45% 55% 40% 60% / 58% 42% 56% 44%; }
  66%       { border-radius: 52% 48% 62% 38% / 40% 60% 48% 52%; }
}

.hamburger-line {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-white);
  border-radius: var(--r-xs);
  transition: transform var(--tr), opacity var(--tr);
}


/* SP: PC用ハンバーガーを非表示（SPはボトムナビのボタンを使用） */
@media (max-width: 767px) { .menu-button { display: none; } }

/* PC(1024px〜): PCナビが表示されるため、ハンバーガーボタンは不要 */
@media (min-width: 1024px) { .menu-button { display: none; } }

/* タブレット横(1024〜1199px): 通常ナビが詰まらないよう運勢CTAをコンパクト化 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-nav .nav-list {
    gap: 4px;
  }
  .header-nav .nav-link {
    padding: 6px 10px;
    font-size: var(--fs-sm);
  }
  .header-nav .nav-fortune {
    padding: 6px 12px;
    font-size: var(--fs-xs);
    margin-left: 4px;
  }
  .header-search-wrap {
    margin-left: 4px;
  }
}

/* is-active 状態（JS で付与） */
.menu-button.is-active .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-button.is-active .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* =====================================================
   HEADER SEARCH（PC専用）
   ===================================================== */
.header-search-wrap {
  display: none;
  align-items: center;
  gap: 6px;
}
@media (min-width: 1024px) { .header-search-wrap { display: flex; } }

.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--clr-brand-light);
  color: var(--clr-brand);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--tr), color var(--tr);
  border: none;
}
.header-search-btn i { font-size: var(--fs-md); }
.header-search-btn:hover { background: var(--clr-brand); color: var(--clr-white); }

.header-search-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  background: var(--clr-white);
  border: 2px solid var(--clr-brand-light);
  border-radius: var(--r-full);
  pointer-events: none;
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.header-search-wrap.is-open .header-search-form {
  max-width: 300px;
  opacity: 1;
  pointer-events: auto;
}
/* タブレット: 検索フォームを少し小さく */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-search-wrap.is-open .header-search-form { max-width: 200px; }
}
.header-search-input {
  border: none;
  outline: none;
}
.header-search-input:focus-visible { outline: 2px solid var(--clr-brand); outline-offset: 2px; }
.header-search-input {
  padding: 7px 14px;
  font-size: var(--fs-sm);
  /* 固定幅 220px だと header-inner からはみ出すケースがあったので flex で伸縮 */
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  background: transparent;
  font-family: var(--font-jp);
  color: var(--clr-text);
}
.header-search-input::placeholder { color: var(--clr-text-muted); }
.header-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  height: 100%;
  color: var(--clr-brand);
  font-size: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--tr);
}
.header-search-submit:hover { color: var(--clr-brand-dark); }


/* =====================================================
   FULLSCREEN NAVIGATION
   ===================================================== */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  z-index: 1010;
  background-color: #EEF2FF;
  background-image: none;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;           /* 常にスクロールバー領域を確保 → 横ズレ防止 */
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  /* Replaced clip-path animation with opacity+transform to avoid composite-layer
     bleed bugs in some browsers / capture tools. isolation creates a new stacking
     context so painting cannot affect ancestors (including body). */
  isolation: isolate;
  will-change: opacity, transform;
  opacity: 0;
  transform: scale(0.4);
  transform-origin: calc(100% - 45px) 48px;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease,
              transform 0.6s cubic-bezier(0.77, 0, 0.18, 1),
              visibility 0s linear 0.6s;
}
.fullscreen-nav.is-open {
  /* is-open 時は確実に表示状態を担保（transition タイミングや上書きを防ぐ） */
  opacity: 1 !important;
  transform: scale(1) !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: opacity 0.4s ease,
              transform 0.6s cubic-bezier(0.77, 0, 0.18, 1),
              visibility 0s;
}

/* SP：フロートメニューボタン（右上）から展開 */
@media (max-width: 767px) {
  .fullscreen-nav { transform-origin: calc(100% - 37px) 37px; }
}

/* ── ヘッダー行 ───────────────────────────────── */
.fnav-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(16px, 3vw, 28px) clamp(20px, 5vw, 56px);
  flex-shrink: 0;
}

.fnav-logo .logo-text {
  font-size: clamp(2rem, 5vw, 3rem);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.35s ease 0.18s, transform 0.35s ease 0.18s;
  display: block;
}
.fullscreen-nav.is-open .fnav-logo .logo-text {
  opacity: 1;
  transform: translateY(0);
}

/* fnav ロゴ画像 */
.fnav-logo-img {
  height: clamp(48px, 5vw, 64px);
  width: auto;
  display: block;
  image-rendering: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s ease 0.18s, transform 0.35s ease 0.18s;
}
.fullscreen-nav.is-open .fnav-logo-img {
  opacity: 1;
  transform: translateY(0);
}

/* 閉じるボタン基本：ハンバーガーと同じ見た目・同じ位置 */
.fullscreen-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  background: var(--clr-brand-dark);
  color: var(--clr-white);
  border: none;
  cursor: pointer;
  transition: background var(--tr);
  top: calc((var(--header-h) - 62px) / 2);
  right: var(--sp-sm);
  width: 62px;
  height: 62px;
  border-radius: 60% 40% 55% 45% / 45% 55% 42% 58%;
  animation: blob-morph 6s ease-in-out infinite reverse;
  padding: 0;
}
.fullscreen-nav-close i { font-size: 1.3rem; line-height: 1; }
.fullscreen-nav-close:hover { background: var(--clr-brand); opacity: 1; }

/* 閉じるボタンはクリップ展開完了後にフェードイン → チラツキ防止 */
.fullscreen-nav .fullscreen-nav-close {
  opacity: 0;
  transition: background var(--tr), opacity 0.2s ease;
}
.fullscreen-nav.is-open .fullscreen-nav-close {
  opacity: 1;
  transition: background var(--tr), opacity 0.2s ease 0.5s;
}

/* SP: 右上に配置 */
@media (max-width: 767px) {
  .fullscreen-nav-close {
    top: 10px;
    right: var(--sp-sm);
    bottom: auto;
    left: auto;
    width: 62px;
    height: 62px;
    border-radius: 60% 40% 55% 45% / 45% 55% 42% 58%;
    animation: blob-morph 6s ease-in-out infinite reverse;
    padding: 0;
  }
}

/* ── メニューグリッド ─────────────────────────── */
.fnav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 20px);
  padding: 0 clamp(20px, 5vw, 56px) clamp(16px, 3vw, 28px);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  align-items: start;   /* カード自体の高さを中身に合わせる */
  align-content: start; /* グリッドの「行」を上に詰める（これで間隔が直ります） */
}

/* ── カード共通 ───────────────────────────────── */
.fnav-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(12px, 1.5vw, 20px) clamp(16px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(160, 60, 100, 0.12);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.fnav-card:hover {
  box-shadow: var(--shadow-hover);
  filter: brightness(1.04);
  opacity: 1 !important;
}

/* is-open 時にスタガーで登場 */
.fullscreen-nav.is-open .fnav-card:nth-child(1) {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.45s ease 0.22s,
              transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.22s;
}
.fullscreen-nav.is-open .fnav-card:nth-child(2) {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.45s ease 0.30s,
              transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.30s;
}
.fullscreen-nav.is-open .fnav-card:nth-child(3) {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.45s ease 0.37s,
              transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.37s;
}
.fullscreen-nav.is-open .fnav-card:nth-child(4) {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.45s ease 0.44s,
              transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.44s;
}

/* カード配色：白背景・上ボーダーなし */
.fnav-card--diagnosis { background: var(--clr-white); border: 1px solid var(--color-border); }
.fnav-card--quiz      { background: var(--clr-white); border: 1px solid var(--color-border); }
.fnav-card--column    { background: var(--clr-white); border: 1px solid var(--color-border); }
.fnav-card--fortune   { background: var(--clr-white); border: 1px solid var(--color-border); }

.fnav-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.fnav-card--diagnosis .fnav-card-icon { background: var(--clr-pink-light);  color: var(--clr-pink); }
.fnav-card--quiz      .fnav-card-icon { background: var(--clr-quiz-light);   color: var(--clr-quiz); }
.fnav-card--column    .fnav-card-icon { background: var(--clr-bg-green);     color: var(--clr-column); }
.fnav-card--fortune   .fnav-card-icon { background: rgba(246, 198, 91, 0.18); color: var(--clr-fortune); }

.fnav-card-body h3 {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
  margin-bottom: 4px;
}
.fnav-card-body p {
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  color: var(--clr-text-muted);
  line-height: 1.6;
}


/* 運勢カードのバッジ */
.fnav-badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--clr-orange);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
}

/* ── フッターエリア ───────────────────────────── */
.fnav-footer {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 24px);
  padding: clamp(12px, 2vw, 20px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 40px);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease 0.52s, transform 0.4s ease 0.52s;
}
.fullscreen-nav.is-open .fnav-footer {
  opacity: 1;
  transform: translateY(0);
}

.fnav-mascot {
  width: clamp(44px, 7vw, 72px);
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(160, 60, 100, 0.25));
}

.fnav-tagline {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 700;
  color: var(--clr-brand-dark);
  line-height: 1.65;
}
.fnav-tagline .fnav-tagline-sub {
  display: inline-block;
  margin-top: 4px;
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 400;
  color: var(--clr-text-muted);
  letter-spacing: 0.02em;
}

/* オーバーレイは不要（フルスクリーン化のため）*/
.menu-overlay { display: none !important; }

/* ── フルスクリーンメニュー 検索バー ─────────────── */
.fnav-search {
  padding: 0 clamp(20px, 5vw, 56px) clamp(12px, 2vw, 18px);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease 0.14s, transform 0.3s ease 0.14s;
}
.fullscreen-nav.is-open .fnav-search { opacity: 1; transform: translateY(0); }

.fnav-search-inner {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--clr-brand-light);
  border-radius: var(--r-full);
  padding: 4px 4px 4px 18px;
  gap: 4px;
}
.fnav-search-icon { color: var(--clr-brand); font-size: var(--fs-md); flex-shrink: 0; }
.fnav-search-input {
  flex: 1;
  border: none;
  outline: none;
}
.fnav-search-input:focus-visible { outline: 2px solid var(--clr-brand); outline-offset: 2px; }
.fnav-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 10px;
  font-size: clamp(0.88rem, 1.5vw, 0.95rem);
  font-family: var(--font-jp);
  color: var(--clr-text);
  min-width: 0;
}
.fnav-search-input::placeholder { color: var(--clr-text-muted); }
.fnav-search-btn {
  background: var(--clr-brand);
  color: var(--clr-white);
  border: none;
  border-radius: var(--r-full);
  padding: 8px 20px;
  font-size: var(--fs-sm);
  font-weight: 700;
  font-family: var(--font-jp);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--tr);
}
.fnav-search-btn:hover { background: var(--clr-brand-dark); }

/* ── フルスクリーンメニュー サブナビ ─────────────── */
.fnav-subnav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(12px, 2.5vw, 28px);
  padding: clamp(16px, 2.5vw, 22px) clamp(20px, 5vw, 56px);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid rgba(212, 99, 138, 0.20);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
}
.fullscreen-nav.is-open .fnav-subnav { opacity: 1; transform: translateY(0); }

@media (max-width: 480px) {
  .fnav-subnav { grid-template-columns: 1fr 1fr; }
  .fnav-subnav-col--follow { grid-column: 1 / -1; }
}

.fnav-subnav-title {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--clr-brand);
  margin-bottom: 10px;
}
.fnav-subnav ul { display: flex; flex-direction: column; gap: 7px; }
.fnav-subnav ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.75rem, 1.3vw, 0.82rem);
  color: var(--clr-text-muted);
  line-height: 1.4;
  transition: color var(--tr);
}
.fnav-subnav ul li a i { font-size: var(--fs-base); flex-shrink: 0; }
.fnav-subnav ul li a:hover { color: var(--clr-brand-dark); opacity: 1; }

/* SNS */
.fnav-sns { flex-direction: row !important; gap: 10px !important; }
.fnav-sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.2);
  color: var(--clr-white);
  transition: background var(--tr), opacity var(--tr);
  flex-shrink: 0;
}
.fnav-sns-link svg { width: 17px; height: 17px; }
.fnav-sns-link i { font-size: 17px; }
.fnav-sns-link:hover { background: rgba(255,255,255,0.45); opacity: 1; }

/* フッターのタイミングを subnav より後にずらす */
.fnav-footer { transition: opacity 0.4s ease 0.58s, transform 0.4s ease 0.58s; }


/* =====================================================
   HERO + TODAY 共通背景ラッパー
   ===================================================== */
.hero-today-wrap {
  position: relative;
  margin-bottom: 0;
}


/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  position: relative;
  padding: clamp(24px, 4vw, 56px) 0 0;
  margin-bottom: 0;
  background-color: #EDF4FB;
  background-image: url('../img/bg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
  /* スクロール時の背景の再描画（ブロック状の表示崩れ）を防ぐため
   * GPU 合成レイヤーに固定する。1枚のテクスチャとして合成されるので、
   * スクロールしても CPU 側の repaint が走らない。 */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.wave-hero-to-today {
  position: relative;
  height: 80px;
  margin-top: clamp(32px, 4vw, 64px);
  pointer-events: none;
}

/* 背面波：ラベンダー半透明、ゆっくり・逆位相 */
.wave-hero-to-today::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath d='M0,56 C240,74 480,74 720,56 C960,38 1200,38 1440,56 L1440,80 L0,80 Z' fill='rgba(63%2C103%2C216%2C0.10)'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 1440px 80px;
  animation: wave-tile 18s linear infinite;
  animation-delay: -7s;
}

/* 前面波：背景色と同色 */
.wave-hero-to-today::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath d='M0,52 C240,26 480,26 720,52 C960,76 1200,76 1440,52 L1440,80 L0,80 Z' fill='%23F7F9FE'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 1440px 80px;
  animation: wave-tile 11s linear infinite;
}

@keyframes wave-tile {
  from { background-position: 0 100%; }
  to   { background-position: -1440px 100%; }
}

@keyframes wave-tile-sp {
  from { background-position: 0 100%; }
  to   { background-position: -720px 100%; }
}

@media (max-width: 767px) {
  .wave-hero-to-today {
    height: 56px;
    overflow: hidden;
  }
  /* SP専用SVG（viewBox 720×56 でネイティブ描画） */
  .wave-hero-to-today::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 56'%3E%3Cpath d='M0,38 C120,56 240,56 360,38 C480,20 600,20 720,38 L720,56 L0,56 Z' fill='rgba(183%2C166%2C230%2C0.18)'/%3E%3C/svg%3E");
    background-size: 720px 56px;
    animation-name: wave-tile-sp;
    animation-duration: 14s;
  }
  /* 前面波：直下コンテンツの背景色（#F7F9FE）と一致させる。
     旧: fill='white' だと #FFFFFF で背景と微妙にズレて段差が見える */
  .wave-hero-to-today::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 56'%3E%3Cpath d='M0,34 C120,14 240,14 360,34 C480,54 600,54 720,34 L720,56 L0,56 Z' fill='%23F7F9FE'/%3E%3C/svg%3E");
    background-size: 720px 56px;
    animation-name: wave-tile-sp;
    animation-duration: 9s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-hero-to-today::before,
  .wave-hero-to-today::after { animation: none; }
}

.hero-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-auto-rows: auto;
  gap: clamp(10px, 1.5vw, 18px) clamp(20px, 3vw, 40px);
  align-items: start;
}

/* PCレイアウト: タイトル左上 / ビジュアル右（縦全体） / desc・stats・cta は自動配置 */
.hero-title-area { grid-column: 1; grid-row: 1; }
.hero-visual     { grid-column: 2; grid-row: 1 / span 10; display: flex; flex-direction: column; align-items: center; width: clamp(220px, 28vw, 340px); }
.hero-desc       { grid-column: 1; padding-top: clamp(4px, 1vw, 8px); }
.hero-stats      { grid-column: 1; }
.hero-cta        { grid-column: 1; }

/* 820〜899px: 小型タブレット横向き域。狭めの左カラム + 中型カード。
 * 850px付近でカードが極端に小さく見える問題への対応。 */
@media (min-width: 820px) and (max-width: 899px) {
  .hero-inner {
    grid-template-columns: minmax(360px, 1fr) minmax(300px, 330px);
    gap: 24px;
  }
  .hero-visual {
    width: clamp(300px, 36vw, 330px);
  }
  .hero-title-area,
  .hero-desc,
  .hero-stats,
  .hero-cta {
    max-width: 440px;
  }
}

/* 900〜1023px: 中型タブレット〜小型PC域。左カラム広め + カード大きめ。 */
@media (min-width: 900px) and (max-width: 1023px) {
  .hero-inner {
    grid-template-columns: minmax(420px, 1fr) minmax(320px, 360px);
    gap: 28px;
  }
  .hero-visual {
    width: clamp(320px, 36vw, 360px);
  }
}

/* PC (1024+): カラム幅を明示し、中央の余白が大きくなりすぎないように
 * 左カラム（テキスト群）は最大520pxで締め、右カードは少し大きめに。 */
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(420px, 520px) minmax(360px, 420px);
    justify-content: space-between;
    /* row-gap を圧縮：旧 clamp(10,1.5vw,18) は実測 54.6px まで肥大していたので明示固定 */
    gap: clamp(18px, 2.4vw, 32px) clamp(32px, 4vw, 56px);
  }
  .hero-visual {
    width: clamp(360px, 30vw, 420px);
    /* span 10 → span 4。タイトル/説明/タグ/CTA の4行に対応。
     * span 10 だと空行ぶんの row-gap が累積して下に巨大な余白ができていた。 */
    grid-row: 1 / span 4;
  }
  .hero-title-area,
  .hero-desc,
  .hero-stats,
  .hero-cta {
    max-width: 520px;
  }
  /* 波エリアまでの余白も詰める（旧 ~54px → 24px） */
  .wave-hero-to-today {
    margin-top: 24px;
  }
}

/* SP: キャッチコピー→説明文→タグ→画像→CTA */
@media (max-width: 767px) {

  .hero-section { padding: 20px 0 0; }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  /* SP hero 全体センター揃え */
  .hero-section .hero-inner > * { text-align: center; }
  .hero-title-area { order: 1; }
  .hero-title-area h1 { font-size: var(--fs-base); margin-bottom: 4px; margin-top: 4px; }
  .hero-title-area .hero-subcopy { font-size: var(--fs-xs); margin-top: 4px; }
  .hero-label { font-size: var(--fs-2xs); margin-bottom: 2px; }
  .hero-desc   { order: 2; font-size: var(--fs-2xs); line-height: 1.65; margin: 4px 0 8px; }
  .hero-stats  { order: 3; justify-content: center; gap: 5px; margin-bottom: 4px; }
  .hero-stat   { font-size: var(--fs-2xs); padding: 3px 8px; }
  .hero-visual { order: 4; width: 100%; max-width: 220px; align-self: center; }
  .hero-cta    { order: 5; align-items: center; gap: 6px; }
  .hero-cta-note { text-align: center; }
  .hero-cta .btn-diagnose { font-size: var(--fs-sm); padding: 10px 24px; }
  .hero-types-link { font-size: var(--fs-xs); justify-content: center; width: 100%; display: flex; }

  /* SHARE: SP でラベルとアイコンを縦並び */
  .hero-section .hero-desc { text-align: center; }
  .hero-section .hero-stats { justify-content: center; }
}

/* 旧タブレット指定の範囲を 768-819 までに縮小。
 * 820以上は新ルール（820-899 / 900-1023）に任せて、
 * 850px付近でカードが170pxまで縮む問題を解消。 */
@media (min-width: 768px) and (max-width: 819px) {
  .hero-visual { width: clamp(160px, 20vw, 210px); }
}

/* =====================================================
   PIXEL DOT DESIGN
   ===================================================== */

/* ── ヒーロー ドット背景グリッド ─────────────────── */
.hero-section {
  position: relative; /* already set, reinforcing */
}
.hero-inner { position: relative; z-index: 1; }

.fnav-header,
.fnav-search,
.fnav-grid,
.fnav-subnav,
.fnav-footer { position: relative; z-index: 1; }

/* ── ピクセル装飾パーツ ───────────────────────────── */
.hero-pixels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  transform: translateZ(0); /* 星レイヤーをカードと分離 */
}

/* ベース */
.px {
  position: absolute;
  display: block;
}

/* 星の瞬きアニメーション */
@keyframes px-pulse {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 1.0; }
}
.px                   { animation: px-pulse 3.2s ease-in-out infinite; }
.px:nth-child(2)      { animation-delay: 0.3s;  animation-duration: 2.8s; }
.px:nth-child(3)      { animation-delay: 0.7s;  animation-duration: 3.6s; }
.px:nth-child(4)      { animation-delay: 1.1s;  animation-duration: 2.5s; }
.px:nth-child(5)      { animation-delay: 1.5s;  animation-duration: 4.0s; }
.px:nth-child(6)      { animation-delay: 1.9s;  animation-duration: 3.1s; }
.px:nth-child(7)      { animation-delay: 2.3s;  animation-duration: 2.7s; }
.px:nth-child(8)      { animation-delay: 0.5s;  animation-duration: 3.8s; }
.px:nth-child(9)      { animation-delay: 1.3s;  animation-duration: 2.9s; }
.px:nth-child(10)     { animation-delay: 2.1s;  animation-duration: 3.4s; }
.px:nth-child(11)     { animation-delay: 0.9s;  animation-duration: 4.2s; }
.px:nth-child(12)     { animation-delay: 1.7s;  animation-duration: 3.0s; }

/* ── 形状：✦ 4角星（共通・太め） ── */
.px--star,
.px--star-lg {
  clip-path: polygon(50% 0%, 58% 40%, 100% 50%, 58% 60%, 50% 100%, 42% 60%, 0% 50%, 42% 40%);
}

/* ── 形状：✦ 4角星（小） ── */
.px--star {
  width: 16px; height: 16px;
  background: var(--color-lavender);
  filter: drop-shadow(0 0 5px rgba(183, 166, 230, 0.85));
}

/* ── 形状：✦ 4角星（大） ── */
.px--star-lg {
  width: 26px; height: 26px;
  background: var(--color-accent-blue);
  filter: drop-shadow(0 0 8px rgba(63, 100, 224, 0.75));
}

/* ── 星：ブルー・パープル系のみで塗り分け ── */
/* 星の配色: 背景（淡いNY風＋金ライン）に合わせて青/ティールを外し、
 * シャンパンゴールド 6 / 淡いラベンダー 4 / 青白 2 の比率に。
 * drop-shadow も従来 0.7+ → 0.35〜0.55 に圧縮し、上品なグロー感に。 */
.hero-pixels .px:nth-child(1)  { background: #C9A85A; filter: drop-shadow(0 0 5px rgba(201, 168, 90, 0.35)); }
.hero-pixels .px:nth-child(2)  { background: #B7A6E6; filter: drop-shadow(0 0 5px rgba(183, 166, 230, 0.35)); }
.hero-pixels .px:nth-child(3)  { background: #C9A85A; filter: drop-shadow(0 0 5px rgba(201, 168, 90, 0.35)); }
.hero-pixels .px:nth-child(4)  { background: #EEF5FF; filter: drop-shadow(0 0 5px rgba(238, 245, 255, 0.55)); }
.hero-pixels .px:nth-child(5)  { background: #C9A85A; filter: drop-shadow(0 0 5px rgba(201, 168, 90, 0.35)); }
.hero-pixels .px:nth-child(6)  { background: #B7A6E6; filter: drop-shadow(0 0 5px rgba(183, 166, 230, 0.35)); }
.hero-pixels .px:nth-child(7)  { background: #C9A85A; filter: drop-shadow(0 0 5px rgba(201, 168, 90, 0.35)); }
.hero-pixels .px:nth-child(8)  { background: #EEF5FF; filter: drop-shadow(0 0 5px rgba(238, 245, 255, 0.55)); }
.hero-pixels .px:nth-child(9)  { background: #C9A85A; filter: drop-shadow(0 0 5px rgba(201, 168, 90, 0.35)); }
.hero-pixels .px:nth-child(10) { background: #B7A6E6; filter: drop-shadow(0 0 5px rgba(183, 166, 230, 0.35)); }
.hero-pixels .px:nth-child(11) { background: #C9A85A; filter: drop-shadow(0 0 5px rgba(201, 168, 90, 0.35)); }
.hero-pixels .px:nth-child(12) { background: #B7A6E6; filter: drop-shadow(0 0 5px rgba(183, 166, 230, 0.35)); }

/* SPでは星の主張をさらに抑える */
@media (max-width: 767px) {
  .hero-pixels .px {
    opacity: 0.65;
  }
}

/* ── ヒーロー：明背景用テキスト色 ── */
.hero-section .hero-label {
  background: none;
  border: none;
  color: var(--color-accent-blue);
}
.hero-section .hero-title-area h1 { color: var(--text-main); }
.hero-section .hero-stat {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 600;
  font-size: var(--fs-2xs);
}
/* 4色ピルはアクセント青(#5860A8)に一本化（Color Consistency Lock）。装飾の色分けは廃止。 */
.hero-stat--blue,
.hero-stat--purple,
.hero-stat--mint,
.hero-stat--yellow { background: rgba(88,96,168,0.12);  color: var(--color-accent-blue);  border-color: rgba(88,96,168,0.24) !important; }
.hero-section .hero-desc { color: rgba(24, 33, 58, 0.82); }
.hero-section .hero-cta-note { color: var(--text-muted); }



/* ── image-rendering：ピクセルアートを鮮明に（fnav装飾のみ） ── */
.fnav-card-deco {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* =====================================================
   PIXEL BADGES（Press Start 2P フォント適用）
   ===================================================== */

/* タイトルエリア */
.hero-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-accent-blue);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-xs);
}

.hero-title-area h1 {
  font-family: var(--font-jp);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--clr-text);
  margin-top: 10px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

/* ボディエリア */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-sm);
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.70);
  color: var(--clr-brand-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-full);
  box-shadow: 0 2px 8px rgba(160, 200, 240, 0.18);
}
.hero-stat i { font-size: 1rem; }

.hero-desc {
  /* PCの可読性向上：fs-sm(13.6px)→0.9rem(14.4px)で1段階大きく、
   * line-height: 2 で行間にゆとり、color は淡muted→濃いめのインクで沈み込みを解消。
   * H1直下とタグ直前のmarginを詰め、CTAの上半分がファーストビューに食い込むように調整。 */
  font-size: 0.9rem;
  color: rgba(24, 33, 58, 0.82);
  line-height: 2;
  margin: 6px 0 12px;
  text-align: left;
}


@media (min-width: 768px) and (max-width: 1023px) {
  .hero-desc {
    margin: 16px 0 24px;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .btn-diagnose {
    font-size: 1rem;
    padding: 11px 28px;
  }
}


@keyframes btn-pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(244, 143, 177, 0.50), 0 0 0 0 rgba(244, 143, 177, 0.4); }
  50%       { box-shadow: 0 4px 28px rgba(244, 143, 177, 0.70), 0 0 0 10px rgba(244, 143, 177, 0); }
}

.hero-cta {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-cta .btn-diagnose {
  margin: 12px 0;
}

/* =====================================================
   BUTTON SYSTEM — ソリッドCTA共通基盤
   .about-contact-btn を基準。各ボタンの個別CSSから gradient / shine / pulse /
   outline 強い発光を削除し、このベースで統一する。
   ===================================================== */
.about-contact-btn,
.cf-submit,
.btn-load-more,
.btn-col-load,
.pg-start-btn,
.pg-next-btn,
.fortune-btn,
.ad-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 48px;
  min-height: 52px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--color-accent-blue);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: var(--fs-base);
  font-family: var(--font-jp);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(88, 96, 168, 0.22);
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr);
}

.about-contact-btn:hover,
.cf-submit:hover,
.btn-load-more:hover,
.btn-col-load:hover,
.pg-start-btn:hover,
.pg-next-btn:hover,
.fortune-btn:hover,
.ad-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(88, 96, 168, 0.30);
  opacity: 1;
}

/* 役割別カラー */
.btn-col-load          { background: var(--color-teal);     box-shadow: 0 4px 20px rgba(63, 143, 134, 0.22); }
.btn-col-load:hover    { background: var(--color-teal);     box-shadow: 0 8px 28px rgba(63, 143, 134, 0.30); }

/* .fortune-btn は BUTTON SYSTEM デフォルト（accent-blue）をそのまま使用。
   以前はラベンダーで占い専用色にしていたが、pg-start-btn と統一する方針へ変更。 */

/* ── ヒーロー診断ボタン（.btn-diagnose）── BUTTON SYSTEM と同色（accent-blue）、サイズだけ大きめ */
.btn-diagnose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-accent-blue);
  color: var(--clr-white);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 16px 40px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(88, 96, 168, 0.22);
  transition: background var(--tr), box-shadow var(--tr), transform var(--tr);
}
.btn-diagnose::after { content: none; }
.btn-diagnose svg { width: 22px; height: 22px; }
.btn-diagnose:hover {
  background: var(--color-accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(88, 96, 168, 0.30);
  opacity: 1;
}

/* hero 内バリアント：サイズだけ少し可変、デザイン言語は同じ */
.hero-section .btn-diagnose,
.btn-diagnose--hero {
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  padding: clamp(13px, 1.8vw, 16px) clamp(36px, 4.5vw, 56px);
  letter-spacing: 0.02em;
}

/* スパークアイコン回転 */
.btn-diagnose-spark {
  font-size: 1.1em;
  animation: spark-twinkle 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes spark-twinkle {
  0%, 100% { transform: rotate(0deg)   scale(1);   opacity: 1; }
  30%       { transform: rotate(20deg)  scale(1.3); opacity: 0.85; }
  60%       { transform: rotate(-10deg) scale(0.9); opacity: 1; }
}

/* リップル波紋 */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: btn-ripple-anim 0.65s cubic-bezier(0, 0.5, 0.5, 1) forwards;
  pointer-events: none;
  z-index: 10;
}
@keyframes btn-ripple-anim {
  to { transform: scale(1); opacity: 0; }
}

/* サブCTA：ghost ピルボタン */
.hero-section .hero-types-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 26px;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(63, 100, 224, 0.38);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-accent-blue);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background var(--tr), border-color var(--tr), box-shadow var(--tr), gap var(--tr);
  margin-top: 0;
}
.hero-section .hero-types-link:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--color-accent-blue);
  box-shadow: 0 4px 18px rgba(88, 96, 168, 0.22);
  gap: 10px;
  opacity: 1;
}

@keyframes btn-pulse-glow-hero {
  0%, 100% { box-shadow: 0 2px 10px rgba(111, 134, 214, 0.28), 0 0 0 0 rgba(111, 134, 214, 0.22); }
  50%      { box-shadow: 0 2px 14px rgba(111, 134, 214, 0.38), 0 0 0 8px rgba(111, 134, 214, 0); }
}

.hero-cta-note {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-top: 8px;
}

.hero-types-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-accent-blue);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: gap var(--tr), opacity var(--tr);
}
.hero-types-link i { font-size: 1rem; }
.hero-types-link:hover { gap: 8px; opacity: 0.8; }

@media (max-width: 767px) {
  .hero-types-link { justify-content: center; }
}

.hero-count { font-size: var(--fs-sm); color: var(--clr-text-muted); margin-top: 10px; }

.hero-mascot {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-xs);
  margin-top: var(--sp-lg);
}
.hero-mascot img { width: 90px; }
.mascot-label { font-size: var(--fs-2xs); color: var(--clr-text-muted); line-height: 1.5; }

/* カードコンテナ（スタック用相対位置） */
@keyframes hero-float {
  0%, 100% { transform: translate3d(0, 0px, 0); }
  50%       { transform: translate3d(0, -12px, 0); }
}

.hero-card-container {
  position: relative;
  width: 100%;
  padding: 0 clamp(16px, 3vw, 28px);
}

/* 背後のカードスタック */
.hero-card-bg {
  position: absolute;
  width: 72%;
  opacity: 0.55;
  filter: blur(0.5px);
  pointer-events: none;
  top: clamp(12px, 2vw, 24px);
  z-index: 0;
}
.hero-card-bg img {
  border-radius: var(--r-md);
}
.hero-card-bg--1 {
  right: 0;
  transform: rotate(7deg);
}
.hero-card-bg--2 {
  left: 0;
  transform: rotate(-6deg);
}

@media (max-width: 767px) {
  .hero-card-bg { width: 60%; }
}

/* ── mindas-kun キャラクター装飾 ── */
@keyframes mindas-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.mindas-kun {
  position: absolute;
  pointer-events: none;
  image-rendering: auto;
  animation: mindas-float 4s ease-in-out infinite;
  z-index: 2;
  filter: drop-shadow(0 6px 18px rgba(48, 61, 61, 0.18));
}

/* ヒーロー：左下 */
.mindas-kun--hero {
  width: clamp(88px, 10vw, 120px);
  bottom: 56px;
  left: clamp(12px, 2.5vw, 32px);
  animation-delay: 0.5s;
}

/* Trend：右上 */
.mindas-kun--trend {
  width: clamp(80px, 9vw, 108px);
  top: clamp(20px, 3vw, 40px);
  right: clamp(40px, 6vw, 100px);
  animation-delay: 0.3s;
  z-index: 3;
}

/* フッター：右上 */
.mindas-kun--footer {
  width: clamp(80px, 9vw, 108px);
  top: -28px;
  left: clamp(60px, 8vw, 140px);
  animation-delay: 0.8s;
}

@media (max-width: 767px) {
  .mindas-kun--hero   { width: 72px; bottom: 36px; }
  .mindas-kun--trend  { width: 68px; right: 48px; top: 16px; }
  .mindas-kun--footer { width: 68px; top: -16px; }
}

/* スライドショー */
.hero-card-wrap {
  position: relative;
  z-index: 1;
  background: transparent;
  border-radius: var(--r-lg);
  padding: 0;
  width: 100%;
  animation: hero-float 4.5s ease-in-out infinite;
}

.hero-slider {
  position: relative;
  /* 画像のアスペクト比に合わせて自動調整 */
  width: 100%;
}

.hero-slider li {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  pointer-events: none;
  will-change: opacity; /* 全スライドのレイヤーを事前確保し、切り替え時の生成/破棄を防ぐ */
}
/* 最初の要素が高さを確保する */
.hero-slider li:first-child { position: relative; }

.hero-slider li.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slider li:not(:first-child).is-active { position: absolute; }

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}



/* =====================================================
   TODAY'S MINDAS
   ===================================================== */
.today-section {
  width: 100%;
  padding: clamp(48px, 6vw, 120px) 0 clamp(40px, 4vw, 72px);
  background-color: var(--color-ivory);
  position: relative;
  overflow: visible;
  z-index: 1;
}

.today-inner { max-width: var(--container-w); margin: 0 auto; padding: 0 var(--gutter); }

.today-header { text-align: center; margin-bottom: var(--sp-lg); position: relative; }

.today-tagline {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--text-sub);
  font-weight: 500;
  margin-top: 10px;
  letter-spacing: 0.03em;
}

.today-star {
  font-size: 0.45em;
  vertical-align: middle;
  margin: 0 6px;
  opacity: 0.45;
}
.today-star:first-child { color: var(--color-lavender); }
.today-star:last-child  { color: var(--color-accent-blue); }

.today-grid-wrap {
  position: relative;
}

.today-update-badge {
  position: absolute;
  top: -44px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-accent-blue);
  background: var(--color-mist-blue);
  border: 1px solid rgba(63, 100, 224, 0.20);
  border-radius: var(--r-full);
  padding: 5px 13px;
  text-decoration: none;
  transition: background var(--tr), border-color var(--tr);
}
.today-update-badge i { font-size: var(--fs-sm); }
.today-update-badge:hover { background: var(--color-accent-blue); color: #fff; border-color: var(--color-accent-blue); opacity: 1; }

@media (max-width: 767px) {
  .today-update-badge { top: -32px; margin-bottom: 10px; }
  .today-grid-wrap { padding-top: 42px; }
}

/* カテゴリバッジ */
.today-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0;
  margin-bottom: 8px;
}
.today-cat--quiz    { color: var(--color-accent-blue); }
.today-cat--column  { color: var(--clr-column); }
.today-cat--fortune { color: var(--color-lavender); }

.today-title {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 700;
  font-style: normal;
  color: var(--clr-text);
  line-height: 1.2;
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

@media (max-width: 767px) { .today-grid { grid-template-columns: 1fr; gap: var(--sp-sm); } }
@media (min-width: 768px) and (max-width: 1023px) { .today-grid { grid-template-columns: 1fr; } }

.today-card {
  background: var(--clr-white);
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .today-card { flex-direction: row; }
  .today-card-img { width: 160px; aspect-ratio: auto; flex-shrink: 0; }
  .today-card-footer { border-top: none; border-left: 1px solid var(--clr-border); display: flex; align-items: center; flex-shrink: 0; padding: var(--sp-md); }
}

.today-card-img {
  width: calc(100% - 20px);
  margin: 10px auto 0;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: calc(var(--r-md) - 4px);
}
.today-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.today-card:hover .today-card-img img { transform: scale(1.05); }


.today-card-body { padding: 12px var(--sp-md) 8px; flex: 1; text-align: left; }

.today-card-body h3 { font-size: var(--fs-base); font-weight: 700; margin-bottom: 8px; }
.today-card-body p  { font-size: var(--fs-sm); color: var(--clr-text-muted); line-height: 1.75; }

.today-card-footer { padding: 8px var(--sp-md) 18px; border-top: none; }

.btn-today {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  width: 100%;
  font-size: var(--fs-base); font-weight: 700;
  padding: 10px 20px; border-radius: var(--r-full);
  background: transparent;
  border: 2px solid currentColor;
  transition: background var(--tr), color var(--tr), box-shadow var(--tr);
  white-space: nowrap;
}
.btn-today i {
  position: absolute;
  right: 18px;
}
.btn-today svg { width: 17px; height: 17px; }

.btn-today--fortune { color: var(--color-lavender); border-color: var(--color-lavender); }
.btn-today--quiz    { color: var(--clr-quiz); }
.btn-today--column  { color: var(--clr-column); }

.btn-today--fortune:hover { background: var(--color-lavender); color: var(--clr-white); box-shadow: var(--shadow-hover); opacity: 1; border-color: var(--color-lavender); }
.btn-today--quiz:hover    { background: var(--clr-quiz);       color: var(--clr-white); box-shadow: var(--shadow-hover); opacity: 1; border-color: var(--clr-quiz); }
.btn-today--column:hover  { background: var(--clr-column);     color: var(--clr-white); box-shadow: var(--shadow-hover); opacity: 1; border-color: var(--clr-column); }


/* =====================================================
   TREND 波線区切り
   ===================================================== */
.wave-to-trend {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  line-height: 0;
  font-size: 0;
  pointer-events: none;
  z-index: 2;
}
.wave-to-trend svg { width: 100%; height: 100%; display: block; }

/* wave color: today → ivory */

.wave-from-trend {
  background: var(--color-ivory);
  line-height: 0;
  font-size: 0;
  margin-bottom: -2px;
  height: 60px;
}
.wave-from-trend svg { width: 100%; height: 100%; display: block; }


/* =====================================================
   TREND SECTION
   ===================================================== */
.trend-section {
  background: var(--color-ivory);
  position: relative;
  overflow: visible;
  border-radius: 0;
  padding-top: 48px;
  padding-bottom: 48px;
  z-index: 0;
}

/* 雲：境目またぎ（上=today↔trend / 下=trend↔quiz） */
.trend-cloud {
  position: absolute;
  width: min(28%, 380px);
  opacity: 0.85;
  pointer-events: none;
  display: block;
  z-index: 3;
}
.trend-cloud--tl {
  top: auto;
  bottom: 0;
  left: -10px;
  z-index: 3;
  animation: cloud-float-tl 5s ease-in-out infinite;
  animation-delay: 0.4s;
}
.trend-cloud--br {
  bottom: 0;
  right: -10px;
  animation: cloud-float-br 6s ease-in-out infinite;
  animation-delay: 1.2s;
}

@keyframes cloud-float-tl {
  0%, 100% { transform: translateY(50%); }
  50%       { transform: translateY(calc(50% - 12px)); }
}
@keyframes cloud-float-br {
  0%, 100% { transform: translateY(50%); }
  50%       { transform: translateY(calc(50% - 10px)); }
}

.trend-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  position: relative;
  z-index: 1;
}

.trend-header { margin-bottom: var(--sp-md); }

.trend-sub {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  margin-top: 8px;
  text-align: center;
}

.trend-title {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 700;
  font-style: normal;
  color: var(--clr-text);
  line-height: 1.2;
}
.trend-title .h1st { color: var(--color-accent-blue); }

.trend-tags { display: flex; flex-wrap: wrap; gap: var(--sp-sm); justify-content: center; margin-top: var(--sp-md); }

.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  padding: 6px clamp(14px, 4vw, 40px);
  background: var(--clr-white);
  border: 1px solid var(--border-color-light);
  border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--clr-text-muted);
  transition: background var(--tr), border-color var(--tr), color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.tag-pill i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  line-height: 1;
  flex: 0 0 auto;
  color: var(--color-accent-blue);
  opacity: 0.8;
}
.tag-pill:hover {
  background: var(--color-mist-blue-soft);
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  opacity: 1;
}


/* =====================================================
   CONTENTS WRAP（2カラム）
   ===================================================== */
.contents-wrap {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: var(--sp-xl) var(--gutter);
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--sp-lg);
  align-items: start;
}

/* SP: index のみ contents-wrap に背景色を設定（bg_base.webp が透ける下層ページには影響させない） */
@media (max-width: 767px) {
  body#home .contents-wrap {
    background-color: var(--clr-bg);
  }
}
@media (max-width: 1023px) { .contents-wrap { grid-template-columns: 1fr; } }

/* グリッド/フレックス子要素のmin-width崩れ防止 */
.contents-main,
.contents-sidebar { min-width: 0; }

/* ── セクション eyebrow ── */
.section-eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: var(--font-en);
}
.top-quiz    .section-eyebrow { color: var(--clr-quiz); }
.top-column  .section-eyebrow { color: var(--clr-column); }

/* ── セクションタイトル ── */
.section-title {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  /* 2px → 1px、色も薄めに。「ちゃんとした余白で区切れている」だけでメディアっぽくなる */
  border-bottom: 1px solid var(--border-color-light);
}
.section-title h2 { display: flex; align-items: baseline; gap: 10px; line-height: 1; }
.section-title .en {
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-weight: 700; font-style: normal;
  color: var(--clr-text);
}
/* 見出し1文字目：テーマカラー */
.section-title .en .h1st { color: var(--clr-brand); }
.section-sub { font-size: var(--fs-xs); color: var(--clr-text-muted); font-weight: 400; font-family: var(--font-jp); font-style: normal; }

/* PC: section-title内のmore-linkを表示、下部のwrapを非表示 */
.more-link-wrap { display: none; }

/* SP: wrapを表示、section-title内のmore-linkを非表示 */
@media (max-width: 767px) {
  .more-link-wrap { display: block; text-align: center; margin-top: var(--sp-md); margin-bottom: var(--sp-md); }
  .section-title .more-link--pc { display: none; }

  /* SP: trend上下padding短く */
  .trend-section { padding-top: 32px; padding-bottom: 32px; }

  /* SP: 雲を大きく */
  .trend-cloud { width: min(50%, 240px); }
}

/* タブレット: 雲をやや縮小 */
@media (min-width: 768px) and (max-width: 1023px) {
  .trend-cloud { width: min(40%, 300px); }
}

.more-link {
  display: inline-block;
  font-size: var(--fs-sm); color: var(--clr-text);
  padding: 8px 32px;
  border: 1px solid var(--clr-brand); border-radius: var(--r-full);
  transition: background var(--tr), color var(--tr);
  background-color: var(--clr-white);
}
.more-link:hover { background: var(--clr-brand); color: var(--clr-white); opacity: 1; }

/* ── タグ共通 ── */
.tag-group { display: flex; flex-wrap: wrap; gap: 6px; }

/* カード内タグの表示上限: PC=4, SP=3
 * (DOMはそのまま、CSSで n個目以降を非表示にして情報密度を抑える) */
.column-card .tag-group > :nth-child(n+5),
.quiz-card .tag-group > :nth-child(n+5) {
  display: none;
}
@media (max-width: 767px) {
  .column-card .tag-group > :nth-child(n+4),
  .quiz-card .tag-group > :nth-child(n+4) {
    display: none;
  }
}

/* タグチップ:
 * <body class="tag"> など他要素への命名衝突を避けるためコンテナにスコープする。
 * 使用箇所: .tag-group(カード) / .qd-tags(クイズ詳細) / .cd-tags(コラム詳細) */
.tag-group .tag,
.qd-tags .tag,
.cd-tags .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  font-size: var(--fs-xs);
  font-weight: 500;
  /* カードオーバーレイ向けのガラス調に統一（カテゴリバッジと整合）*/
  color: #667085;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(227, 232, 242, 0.85);
  border-radius: var(--r-full);
  padding: 4px 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--tr), color var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.tag-group .tag i,
.qd-tags .tag i,
.cd-tags .tag i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
  font-size: 0.8rem;
}

/* 詳細ページのタグはタップ対象としての視認性を上げるため少し大きく(高さ約35px)。
 * カード内 .tag-group は密度を保つため据え置き。 */
.qd-tags .tag,
.cd-tags .tag {
  padding: 8px 14px;
  gap: 4px;
}



/* ── 下層ページ共通：広告下の「戻る」ボタン ── */
.lower-back-wrap {
  text-align: center;
  margin-top: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.lower-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* .cd-back / .qd-back と padding を揃え、戻る系ボタンのサイズ感を統一する。
   * 「コラム一覧にもどる」「クイズ一覧にもどる」と縦に並んだときの不揃いを解消。 */
  padding: 10px 28px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-full);
  background: var(--clr-white);
  color: var(--clr-text-muted);
  font-size: var(--fs-base);
  font-weight: 500;
  text-decoration: none;
  font-family: var(--font-jp);
  transition: border-color var(--tr), color var(--tr), background var(--tr);
  cursor: pointer;
}
.lower-back-btn:hover {
  border-color: var(--clr-brand);
  color: var(--clr-brand);
  background: var(--clr-brand-light);
  opacity: 1;
}
.lower-back-btn i { font-size: 0.9em; line-height: 1; display: flex; align-items: center; }
/* ── バッジ ── */
.badge-new {
  /* NEW は機能ラベル。診断系の淡ピンクとは別の「ローズ」で分離する。 */
  display: inline-block;
  background: #E85D86; color: var(--clr-white);
  font-size: var(--fs-2xs); font-weight: 700; font-family: var(--font-en);
  padding: 2px 9px; border-radius: var(--r-full); line-height: 1.5;
}

/* 読了目安バッジ - 控えめなトーン、本文密度を上げずに「気軽に読める」感を出す */
.badge-read {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--color-mist-blue-soft);
  color: var(--text-sub);
  font-size: var(--fs-2xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
  line-height: 1.5;
  white-space: nowrap;
}
.badge-read i {
  font-size: 0.9em;
  line-height: 1;
}


/* ── QUIZ ───────────────────────────────────────── */
.top-quiz {
  margin-bottom: var(--sp-md);
  background: var(--clr-white);
  /* セクションカード（front-page のみ可視）：border・shadowを薄くして
   * 内部のカードと外箱の二重ボーダー感を緩和する。下層では body#lower 側で透明化される。 */
  border: 1px solid rgba(227, 232, 242, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--sp-md);
}
.quiz-slider-wrap { position: relative; }

/* 上1・下2 レイアウト */
.quiz-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-bottom: var(--sp-sm);
}

.quiz-right-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

/* 上：大カード */
.quiz-card--left {
  grid-column: auto !important;
  flex-direction: column;
  width: 100%;
}
.quiz-card--left .quiz-card-img {
  aspect-ratio: 16 / 3;
  width: calc(100% - 16px);
  margin: 8px auto 0;
  border-radius: calc(var(--r-md) - 4px);
}

@media (max-width: 767px) {
  .quiz-right-list { grid-template-columns: 1fr; }
}

/* 下：小カード（縦配置） */
.quiz-card--small {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
}
.quiz-card-img--sq {
  width: calc(100% - 16px) !important;
  margin: 8px auto 0 !important;
  aspect-ratio: 5 / 2 !important;
  height: auto;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: calc(var(--r-md) - 4px) !important;
}
.quiz-card-img--sq img { width: 100%; height: 100%; object-fit: cover; display: block; }

.quiz-card--small .quiz-card-body {
  flex: 1;
  padding: var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.quiz-card--small .quiz-card-body h3,
.quiz-card--small .quiz-card-body h2 {
  font-size: var(--fs-base);
  line-height: 1.5;
}
.quiz-card--small .quiz-card-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.6;
}
.quiz-card-desc {
  font-size: var(--fs-sm);
  color: var(--text-sub);
  line-height: 1.7;
  margin: 6px 0;
}

/* ── 大カテゴリバッジ（画像上オーバーレイ）
 * 全カテゴリでガラス調統一。カテゴリごとに色を変えるとテンプレ感・素人感が出るため、
 * 色での識別はやめてフォーマット（位置・字形）だけで「ここはカテゴリ」と伝える。
 * 「恋愛=ピンク」「占い=金」のような連想語に縛られない上品さを優先。 */
.card-cat-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  /* 0.68→0.76 で背景の透けを抑えて文字を読みやすく、
   * ボーダーも白→薄グレーにして輪郭をはっきり、影もそのまま */
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(227, 232, 242, 0.9);
  color: var(--text-main);
  text-shadow: none;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xs);
  pointer-events: none;
  z-index: 2;
}

/* カテゴリ色クラスを残して上書き無効化（HTML側の出力を変えずに見た目だけ統一）*/
.card-cat--blue,
.card-cat--navy,
.card-cat--purple,
.card-cat--pink,
.card-cat--yellow,
.card-cat--mint {
  background: rgba(255, 255, 255, 0.76) !important;
  color: var(--text-main) !important;
  border-color: rgba(227, 232, 242, 0.9) !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .quiz-layout { grid-template-columns: 1fr; }
}

/* SP: 横スクロールスライドショー（コラムと同一実装） */
@media (max-width: 767px) {
  .top-quiz {
    padding: var(--sp-md);          /* 16→24px、コラムセクションと統一 */
    border-radius: var(--r-md);
  }
  .quiz-slider-wrap { overflow: visible; padding-bottom: 10px; }

  .quiz-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 4px var(--sp-xs) var(--sp-xs);
  }
  .quiz-layout::-webkit-scrollbar { display: none; }

  .quiz-right-list { display: contents; }

  .quiz-card--left,
  .quiz-card--small {
    flex: 0 0 75%;
    max-width: 75%;
    scroll-snap-align: center;
    flex-direction: column;
    height: auto;
  }

  .quiz-card--left .quiz-card-img,
  .quiz-card--small .quiz-card-img--sq {
    width: calc(100% - 16px) !important;
    aspect-ratio: 3 / 2 !important;
    flex: none;
    height: auto;
  }

  /* SPスライダー内では1個目（featured）も2個目以降（small）と同じ見た目に統一 */
  .quiz-card--left .quiz-card-body {
    gap: 6px;
    min-width: 0;
  }
  .quiz-card--left .quiz-card-body h3,
  .quiz-card--left .quiz-card-body h2 {
    font-size: var(--fs-base);
    line-height: 1.5;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .quiz-layout { grid-template-columns: 1fr; }
}

/* PC: 2×2グリッド（下層ページ用に残す） */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-sm);
}

/* SP: トップページのみ横スクロールスライド（下層は #lower 用ルールで1段組に分離） */
@media (max-width: 767px) {
  body#home .quiz-slider-wrap {
    overflow: visible;
    padding-bottom: 10px;
  }
  body#home .quiz-grid {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 12px;
    padding: 4px var(--sp-xs) var(--sp-xs);
    margin-bottom: var(--sp-xs);
  }
  body#home .quiz-grid::-webkit-scrollbar { display: none; }
}

.quiz-card {
  background: var(--clr-white); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  transition: box-shadow var(--tr), transform var(--tr);
  text-decoration: none; color: inherit; cursor: pointer;
}
@media (max-width: 767px) { body#home .quiz-card { flex: 0 0 82%; max-width: 82%; scroll-snap-align: center; } }
.quiz-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); opacity: 1; }

.quiz-card-img {
  position: relative;
  width: calc(100% - 16px);
  margin: 8px auto 0;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  border-radius: calc(var(--r-md) - 4px);
  flex-shrink: 0;
}
.quiz-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.quiz-card:hover .quiz-card-img img { transform: scale(1.06); }
.quiz-card-body { padding: var(--sp-sm); flex: 1; display: flex; flex-direction: column; gap: 10px; }
.quiz-card-body h3,
.quiz-card-body h2 { font-size: var(--fs-base); font-weight: 700; line-height: 1.55; margin: 0; }
.quiz-card-meta { display: flex; align-items: center; gap: 8px; }

/* クイズセクション: ブルー系 */
.top-quiz .section-title .en .h1st { color: var(--clr-quiz); }
.top-quiz .section-title            { border-bottom-color: var(--clr-quiz-light); }
.top-quiz .more-link                { color: var(--clr-quiz); border-color: var(--clr-quiz); }
.top-quiz .more-link:hover          { background: var(--clr-quiz); color: var(--clr-white); }

/* コラムセクション: グリーン系 */
.top-column {
  position: relative;
  margin-bottom: var(--sp-md);
  background: var(--clr-white);
  /* セクションカード（front-page のみ可視）：border・shadowを薄くして
   * 内部のカードと外箱の二重ボーダー感を緩和する。下層では body#lower 側で透明化される。 */
  border: 1px solid rgba(227, 232, 242, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--sp-md);
}
.top-column .section-title .en .h1st { color: var(--clr-column); }
.top-column .section-title             { border-bottom-color: var(--clr-column-light); }
.top-column .more-link                 { color: var(--clr-column); border-color: var(--clr-column); }
.top-column .more-link:hover           { background: var(--clr-column); color: var(--clr-white); }

.btn-quiz {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-quiz);
  background: none;
  border: none;
  padding: 4px 0;
  margin: 10px 0 0;
  transition: gap var(--tr), opacity var(--tr);
}
.btn-quiz i { font-size: var(--fs-base); }
.btn-quiz:hover { gap: 8px; opacity: 1; }

/* SP スライドドット */
.quiz-dots { display: none; justify-content: center; gap: 6px; margin-top: var(--sp-sm); }
@media (max-width: 767px) { .quiz-dots { display: flex; } }

.quiz-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--clr-border); transition: background var(--tr), transform var(--tr); }
.quiz-dot.is-active { background: var(--clr-quiz); transform: scale(1.3); }

/* 広告バナー */
.ad-banner {
  background: var(--clr-bg-warm); border: 1px dashed var(--clr-border); border-radius: var(--r-sm);
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--clr-text-muted); font-size: var(--fs-sm);
  margin-bottom: var(--sp-xl); padding: var(--sp-sm);
}


/* ── COLUMNS（常に横並びを維持） ─────────────────── */
.top-column { margin-bottom: var(--sp-xl); }
.column-slider-wrap { position: relative; }
.column-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-sm); }

/* TOPページ用：上1（featured大カード）・下2（smallカード）レイアウト
   .quiz-layout / .quiz-right-list と同じ構造を踏襲 */
.column-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-bottom: var(--sp-sm);
}
.column-right-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

/* 上：大カード */
.column-card--left {
  flex-direction: column;
  width: 100%;
}
.column-card--left .column-card-img {
  aspect-ratio: 16 / 3;
  width: calc(100% - 16px);
  margin: 8px auto 0;
  border-radius: calc(var(--r-md) - 4px);
}

/* 下：小カード（縦配置） */
.column-card--small {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
}
.column-card-img--sq {
  width: calc(100% - 16px) !important;
  margin: 8px auto 0 !important;
  aspect-ratio: 5 / 2 !important;
  height: auto;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: calc(var(--r-md) - 4px) !important;
}
.column-card-img--sq img { width: 100%; height: 100%; object-fit: cover; display: block; }

.column-card--small .column-card-body {
  flex: 1;
  padding: var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.column-card--small .column-card-body h2,
.column-card--small .column-card-body h3 {
  font-size: var(--fs-base);
  line-height: 1.5;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .column-right-list { grid-template-columns: 1fr; }
}

/* SP: 横スクロールスライダー（quiz-layout と同じ挙動） */
@media (max-width: 767px) {
  .top-column {
    padding: var(--sp-md);          /* 16→24px、内側にゆとり */
    border-radius: var(--r-md);
    margin-bottom: var(--sp-lg);    /* 各セクション下に48pxの余白で詰まり感解消 */
  }
  .top-quiz {
    margin-bottom: var(--sp-lg);    /* 同上 */
  }
  /* セクションの上の余白も気持ち広めに */
  .contents-wrap {
    padding-top: var(--sp-md);
    padding-bottom: var(--sp-lg);
  }
  body#home .column-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 4px var(--sp-xs) var(--sp-xs);
  }
  body#home .column-layout::-webkit-scrollbar { display: none; }
  body#home .column-right-list { display: contents; }
  body#home .column-card--left,
  body#home .column-card--small {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: center;
    flex-direction: column;
    height: auto;
  }
  body#home .column-card--left .column-card-img,
  body#home .column-card--small .column-card-img--sq {
    width: calc(100% - 16px) !important;
    aspect-ratio: 3 / 2 !important;
    flex: none;
    height: auto;
  }

  /* SPスライダー内では1個目（featured）も2個目以降（small）と同じ見た目に統一 */
  body#home .column-card--left .column-card-body {
    gap: 6px;
    min-width: 0;
  }
  body#home .column-card--left .column-card-body h2,
  body#home .column-card--left .column-card-body h3 {
    font-size: var(--fs-base);
    line-height: 1.5;
  }
}

/* SP: トップページのみ横スクロールスライダー（下層は #lower 用ルールで1段組に分離） */
@media (max-width: 767px) {
  body#home .column-slider-wrap { overflow: visible; padding-bottom: 10px; }
  body#home .column-list {
    display: flex; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 12px;
    padding: 4px var(--sp-xs) var(--sp-xs);
  }
  body#home .column-list::-webkit-scrollbar { display: none; }
  body#home .column-card { flex: 0 0 82%; max-width: 82%; scroll-snap-align: center; }
}

/* column-dots（quiz-dotsと同スタイル） */
.column-dots {
  display: none;
}
@media (max-width: 767px) {
  .column-dots {
    display: flex; justify-content: center; gap: 6px;
    margin-top: var(--sp-sm);
  }
}
.column-dot {
  width: 8px; height: 8px; border-radius: var(--r-full);
  background: var(--clr-border);
  transition: background var(--tr), transform var(--tr);
}
.column-dot.is-active { background: var(--clr-column); transform: scale(1.3); }

.column-card {
  background: var(--clr-white); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  transition: box-shadow var(--tr), transform var(--tr);
  text-decoration: none; color: inherit; cursor: pointer;
}
.column-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); opacity: 1; }

.column-card-img {
  position: relative;
  flex-shrink: 0;
  width: calc(100% - 16px);
  margin: 8px auto 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: calc(var(--r-md) - 4px);
}
.column-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.column-card:hover .column-card-img img { transform: scale(1.06); }

/* SP: クイズカードと同一スタイル */
@media (max-width: 767px) {
  .column-card-img {
    width: calc(100% - 16px);
    margin: 6px auto 0;
    aspect-ratio: 3/2;
    border-radius: calc(var(--r-md) - 4px);
  }
  .column-card { flex-direction: column !important; }
}

.column-card-body { padding: var(--sp-sm); flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.column-meta { display: flex; align-items: center; gap: 8px; }
.c-date { font-size: var(--fs-xs); color: var(--clr-text-muted); font-family: var(--font-en); }
.column-card-body h3,
.column-card-body h2 { font-size: var(--fs-base); font-weight: 700; line-height: 1.55; margin: 0; }

.btn-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-column);
  background: none;
  border: none;
  padding: 4px 0;
  margin-top: auto;
  align-self: stretch;
  transition: gap var(--tr), opacity var(--tr);
}
.btn-more i { font-size: var(--fs-base); }
.btn-more:hover { gap: 8px; opacity: 1; }


/* =====================================================
   SIDEBAR
   ===================================================== */
.contents-sidebar { display: flex; flex-direction: column; gap: var(--sp-md); }

@media (min-width: 768px) and (max-width: 1023px) {
  .contents-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
  .ad-rect { grid-column: span 2; }
}

/* SP（〜480px）でサイドバー要素が右にはみ出すケースの防御:
 * 内部の長文タイトルや SVG が原因のことが多いので、min-width:0 + word-break で折り返し。
 * padding も var(--sp-md)=24px から var(--sp-sm)=16px に絞って実コンテンツ幅を確保。 */
@media (max-width: 480px) {
  .contents-sidebar > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .sidebar-ranking,
  .sidebar-news,
  .sidebar-follow {
    padding: var(--sp-sm);
  }
  /* SVG/img もコンテナを超えないように */
  .sidebar-ranking img,
  .sidebar-news img,
  .sidebar-follow svg {
    max-width: 100%;
    height: auto;
  }
}

/* ── Welcome ── */
.sidebar-welcome { background: var(--clr-white); border-radius: var(--r-md); padding: var(--sp-md); box-shadow: var(--shadow-sm); text-align: center; }
.sidebar-welcome h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; border-bottom: 1px solid var(--clr-border); padding-bottom: 10px; color: var(--color-accent-blue); }
.sidebar-welcome p { font-size: var(--fs-base); color: var(--clr-text-muted); line-height: 1.85; margin-bottom: var(--sp-sm); }

.btn-bookmark {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; box-sizing: border-box;
  font-size: var(--fs-sm); font-weight: 700; color: var(--clr-white);
  background: var(--clr-brand);
  border: 1px solid var(--clr-brand); border-radius: var(--r-full); padding: 10px 20px;
  transition: background var(--tr), box-shadow var(--tr);
  box-shadow: 0 3px 12px rgba(175, 157, 214, 0.4);
}
.btn-bookmark svg { width: 15px; height: 15px; }
.btn-bookmark:hover { background: var(--clr-brand-dark); border-color: var(--clr-brand-dark); box-shadow: var(--shadow-hover); opacity: 1; }

/* 広告 */
.ad-rect {
  background: var(--clr-bg-warm); border: 1px dashed var(--clr-border); border-radius: var(--r-sm);
  min-height: 250px; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); color: var(--clr-text-muted); text-align: center; padding: var(--sp-sm);
}
@media (max-width: 767px) { .ad-rect { min-height: 150px; } }

/* ── Ranking ── */
.sidebar-ranking {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}
.sidebar-ranking h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--clr-border);
  color: var(--text-main);
}
.sidebar-ranking h3 i {
  font-size: 1.5rem;
  color: var(--color-warm-yellow);
}

.rank-list { display: flex; flex-direction: column; }
.rank-list li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-base);
  line-height: 1.6;
  padding: 12px 0;
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--tr);
  overflow-wrap: break-word;
  word-break: break-all;
}
.rank-list li:last-child a { border-bottom: none; }
.rank-list li a:hover { color: var(--clr-brand); opacity: 1; }

.rank-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1;
}

.rank-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rank-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
}
.rank-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.rank-type {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.rank-type--quiz   { background: rgba(63, 100, 224, 0.1); color: var(--clr-quiz); }
.rank-type--column { background: rgba(61, 171, 138, 0.1); color: var(--clr-column); }

.rank-cat {
  font-size: var(--fs-2xs);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* 金・銀・銅 */
.rank-num--1 { background: #E8A800; }
.rank-num--2 { background: #9BAAB8; }
.rank-num--3 { background: #B07850; }

/* ── Follow Me ── */
.sidebar-follow {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.follow-eyebrow {
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 4px;
}
.follow-heading {
  font-family: var(--font-jp); font-size: 1.4rem; font-weight: 700; font-style: normal;
  color: var(--text-main); margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--clr-border);
}
.follow-sub {
  font-size: var(--fs-xs); color: var(--clr-text-muted); margin-top: 8px; margin-bottom: var(--sp-md);
}

/* ── Follow アイコン丸ボタン ── */
.follow-icons {
  display: flex;
  gap: 10px;
  margin-top: var(--sp-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.follow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  /* タップターゲットとして十分なサイズに調整(36→40px) */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity var(--tr);
}
.follow-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  opacity: 1;
}
.follow-icon svg { width: 16px; height: 16px; }
.follow-icon i   { font-size: 16px; }

.follow-icon--x         { background: #000; }
.follow-icon--threads   { background: #000; }
.follow-icon--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.follow-icon--line      { background: #06C755; }


/* ── ブックマーク トースト通知 ── */
.bookmark-toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--clr-text);
  color: var(--clr-white);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--r-full);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.bookmark-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 768px) {
  .bookmark-toast { bottom: 24px; }
}

/* =====================================================
   PAGE TOP
   ===================================================== */
.page-top {
  position: fixed;
  bottom: 92px;
  right: var(--sp-sm);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 72px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  filter: drop-shadow(0 6px 16px rgba(90, 60, 130, 0.3));
}
.page-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  animation: mindas-float 4s ease-in-out infinite;
}
.page-top-kun {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  image-rendering: auto;
}
.page-top-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--clr-brand-dark);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(179,157,219,0.4);
  border-radius: var(--r-full);
  padding: 3px 10px;
  white-space: nowrap;
}
.page-top:hover {
  transform: translateY(-8px) scale(1.1);
  opacity: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}
.page-top:active {
  transform: scale(0.92);
}

@media (min-width: 768px) {
  .page-top { bottom: var(--sp-lg); right: var(--sp-md); width: 80px; }
  .page-top-kun { width: 80px; height: 80px; }
}
@media (max-width: 767px) {
  .page-top { width: 64px; bottom: 100px; right: 12px; }
  .page-top-kun { width: 64px; height: 64px; }
}


/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: #171A35; color: var(--clr-white); padding: var(--sp-xl) 0 0; position: relative; overflow: visible; }

/* 以前ここで body の padding-bottom エリアをフッター色で塗っていたが、
 * body padding を 0 にして .site-footer 側に padding を持たせる方式に変更したため不要。 */

.footer-inner {
  max-width: var(--container-w); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-lg); margin-bottom: var(--sp-lg);
}
@media (max-width: 767px) { .footer-inner { grid-template-columns: 1fr; gap: var(--sp-md); } }
@media (min-width: 768px) and (max-width: 1023px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: var(--sp-sm); }

/* ロゴ：大きめに表示 */
.footer-logo img {
  height: 80px; width: auto;
  image-rendering: auto;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@media (max-width: 767px) { .footer-logo img { height: 60px; } }

.footer-sns { display: flex; gap: var(--sp-xs); }

.footer-sns-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: rgba(255,255,255,0.2);
  border-radius: var(--r-full); color: var(--clr-white); transition: background var(--tr), opacity var(--tr);
}
.footer-sns-link svg { width: 17px; height: 17px; }
.footer-sns-link i { font-size: 17px; }
.footer-sns-link:hover { background: rgba(255,255,255,0.45); opacity: 1; }

.footer-nav-title { font-family: var(--font-en); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; margin-bottom: var(--sp-sm); padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.5); opacity: 0.95; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: var(--fs-base); color: rgba(255,255,255,0.85); transition: color var(--tr); }
.footer-nav a:hover { color: var(--clr-white); opacity: 1; }

.footer-copyright {
  text-align: center; font-size: var(--fs-xs); color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.28);
  margin-top: var(--sp-md);
  padding: var(--sp-sm) var(--gutter);
}


/* =====================================================
   SP BOTTOM NAVIGATION（ハンバーガーを左端に）
   ===================================================== */
/* ── SP フローティングボトムナビ ── */
.sp-bottom-nav {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  height: 60px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-lg);
  box-shadow:
    0 8px 32px rgba(35, 58, 122, 0.14),
    var(--shadow-xs),
    inset 0 1px 0 rgba(255,255,255,0.8);
  z-index: 900;
  padding: 0 8px;
  gap: 2px;
}
@media (min-width: 768px) { .sp-bottom-nav { display: none; } }

/* ナビアイテム共通 */
.sp-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--clr-text-muted);
  padding: 6px 4px;
  border-radius: var(--r-lg);
  transition: color var(--tr), background var(--tr), transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.sp-nav-item i { font-size: 1.35rem; transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1); }
.sp-nav-item svg { width: 20px; height: 20px; }

.sp-nav-item:hover,
.sp-nav-item:active {
  transform: translateY(-3px);
  opacity: 1;
}
.sp-nav-item:hover i { transform: scale(1.15); }

/* ホーム */
.sp-nav-home i { color: var(--clr-brand); }
.sp-nav-home:hover { color: var(--clr-brand); background: var(--clr-brand-light); }

/* 診断 */
.sp-nav-item:nth-child(2) i { color: var(--clr-pink); }
.sp-nav-item:nth-child(2):hover { color: var(--clr-pink); background: var(--clr-pink-light); }

/* クイズ */
.sp-nav-item:nth-child(3) i { color: var(--clr-quiz); }
.sp-nav-item:nth-child(3):hover { color: var(--clr-quiz); background: var(--clr-quiz-light); }

/* コラム */
.sp-nav-item:nth-child(4) i { color: var(--clr-column); }
.sp-nav-item:nth-child(4):hover { color: var(--clr-column); background: var(--clr-bg-green); }

/* 運勢: SP下部ナビは他アイコンと同格、色はラベンダー主役で星だけゴールド（案A採用）
 * ゴールド単色だと警告色/課金バッジっぽく浮くため、ラベンダーで「占い・神秘感」を出し、
 * ゴールドは星アイコンの小アクセントだけ。運勢ページ内のCTA（紫）とも導線が繋がる。 */
/* SP下部ナビ 運勢:
 * 文字色は他メニューと完全統一（--clr-text-muted）。
 * アイコンだけ淡ラベンダーで「運勢らしい色」をほのかに残す。 */
.sp-nav-fortune {
  flex: 1;
  width: auto;
  height: auto;
  margin-top: 0;
  background: transparent;
  background-image: none;
  color: var(--clr-text-muted);
  border-radius: var(--r-lg);
  box-shadow: none;
  text-shadow: none;
  padding: 6px 4px;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.sp-nav-fortune i {
  font-size: 1.35rem;
  display: inline-block;
  color: var(--color-lavender);
}
.sp-nav-fortune:hover,
.sp-nav-fortune:active {
  background: var(--color-lavender-soft);
  color: #5B3FB8;
  box-shadow: none;
}

/* ── SP フロートメニューボタン ── */
.sp-float-menu {
  display: none;
  position: fixed;
  /* SPヘッダー64px内で上下中央: (64 - 44) / 2 = 10px */
  top: 10px;
  right: 14px;
  z-index: 1002; /* ヘッダー(1000)より上 */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(63, 100, 224, 0.20);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(35, 58, 122, 0.14), 0 1px 4px rgba(0,0,0,0.05);
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}
@media (max-width: 767px) {
  .sp-float-menu { display: flex; }
  /* メニュー開閉中はフロートボタンを隠して .fullscreen-nav-close に責務を集約 */
  body.is-menu-open .sp-float-menu { display: none; }
}
.sp-float-menu:hover {
  background: var(--color-mist-blue);
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(35, 58, 122, 0.22);
}
.sp-float-menu .sp-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sp-float-menu .sp-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--clr-brand-dark);
  border-radius: var(--r-xs);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease, width 0.2s ease;
}
/* 3本目は少し短くして変化をつける */
.sp-float-menu .sp-hamburger span:nth-child(3) {
  width: 12px;
}
/* is-active：× に変形 */
.sp-float-menu.is-active {
  background: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
  box-shadow: 0 4px 16px rgba(88, 96, 168, 0.35);
}
.sp-float-menu.is-active .sp-hamburger span {
  background: #ffffff;
  width: 18px;
}
.sp-float-menu.is-active .sp-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sp-float-menu.is-active .sp-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.sp-float-menu.is-active .sp-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =====================================================
   SCROLL REVEAL
   ===================================================== */
/* ── スクロールリビール（強化版） ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal][data-dir="left"]  { transform: translateX(-36px); }
[data-reveal][data-dir="right"] { transform: translateX(36px); }
[data-reveal][data-dir="up"]    { transform: translateY(28px); }
[data-reveal][data-dir="none"]  { transform: none; }
[data-reveal].is-visible        { opacity: 1; transform: none; }

[data-reveal][data-delay="100"] { transition-delay: 0.10s; }
[data-reveal][data-delay="200"] { transition-delay: 0.20s; }
[data-reveal][data-delay="300"] { transition-delay: 0.30s; }
[data-reveal][data-delay="400"] { transition-delay: 0.40s; }
[data-reveal][data-delay="500"] { transition-delay: 0.50s; }
[data-reveal][data-delay="600"] { transition-delay: 0.60s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* SP: 本文(cd-card / qd-card 等)は記事全長が画面より長く、IntersectionObserver の
 * threshold 0.1 (10% 可視) に届かず reveal が永久に発火しない → 記事が真っ白に見える。
 * そのため SP では reveal を即時表示にし、aside (.contents-sidebar) 内だけ動作を残す。 */
@media (max-width: 767px) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .contents-sidebar [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .contents-sidebar [data-reveal][data-dir="left"]  { transform: translateX(-36px); }
  .contents-sidebar [data-reveal][data-dir="right"] { transform: translateX(36px); }
  .contents-sidebar [data-reveal][data-dir="up"]    { transform: translateY(28px); }
  .contents-sidebar [data-reveal][data-dir="none"]  { transform: none; }
  .contents-sidebar [data-reveal].is-visible        { opacity: 1; transform: none; }
}

/* ── グレイン質感オーバーレイ ── */
.has-grain { position: relative; }
.has-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.055;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}



/* =====================================================
   LOWER PAGE ANIMATIONS
   下層ページ共通アニメーション
   ===================================================== */

/* ── lower-hero：ロード時タイトルアニメーション ── */
@keyframes lower-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lower-hero .breadcrumb-list {
  animation: lower-fade-up 0.6s ease 0.1s both;
}
.lower-hero .lower-title-en {
  animation: lower-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.lower-hero .lower-title-jp {
  animation: lower-fade-up 0.7s ease 0.55s both;
}

/* ── カード stagger：親が is-visible になったときに子を順番に ── */
@keyframes card-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Quiz カード */
.top-quiz.is-visible .quiz-card {
  animation: card-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.top-quiz.is-visible .quiz-card:nth-child(1) { animation-delay: 0.05s; }
.top-quiz.is-visible .quiz-card:nth-child(2) { animation-delay: 0.15s; }
.top-quiz.is-visible .quiz-card:nth-child(3) { animation-delay: 0.25s; }
.top-quiz.is-visible .quiz-card:nth-child(4) { animation-delay: 0.35s; }
.top-quiz.is-visible .quiz-card:nth-child(n+5) { animation-delay: 0.45s; }

/* Column カード */
.top-column.is-visible .column-card {
  animation: card-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.top-column.is-visible .column-card:nth-child(1) { animation-delay: 0.05s; }
.top-column.is-visible .column-card:nth-child(2) { animation-delay: 0.18s; }
.top-column.is-visible .column-card:nth-child(3) { animation-delay: 0.31s; }
.top-column.is-visible .column-card:nth-child(n+4) { animation-delay: 0.44s; }

/* tag-list（タグページ）*/
.tag-list.is-visible .column-card {
  animation: card-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tag-list.is-visible .column-card:nth-child(1) { animation-delay: 0.05s; }
.tag-list.is-visible .column-card:nth-child(2) { animation-delay: 0.15s; }
.tag-list.is-visible .column-card:nth-child(3) { animation-delay: 0.25s; }
.tag-list.is-visible .column-card:nth-child(4) { animation-delay: 0.35s; }
.tag-list.is-visible .column-card:nth-child(5) { animation-delay: 0.45s; }
.tag-list.is-visible .column-card:nth-child(n+6) { animation-delay: 0.55s; }

/* ランキングリスト */
.sidebar-ranking.is-visible .rank-list li {
  animation: card-fade-up 0.5s ease both;
}
.sidebar-ranking.is-visible .rank-list li:nth-child(1) { animation-delay: 0.1s; }
.sidebar-ranking.is-visible .rank-list li:nth-child(2) { animation-delay: 0.2s; }
.sidebar-ranking.is-visible .rank-list li:nth-child(3) { animation-delay: 0.3s; }

/* Today's カード（トップページ・既存data-revealと共存） */
.today-grid .today-card[data-reveal].is-visible {
  animation: card-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* cd-card 内のセクション（sitepolicy等） */
.cd-body > div[id] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* sp-toc（目次） */
.sp-toc {
  animation: lower-fade-up 0.7s ease 0.5s both;
}

@media (prefers-reduced-motion: reduce) {
  .lower-hero .breadcrumb-list,
  .lower-hero .lower-title-en,
  .lower-hero .lower-title-jp,
  .top-quiz.is-visible .quiz-card,
  .top-column.is-visible .column-card,
  .tag-list.is-visible .column-card,
  .sidebar-ranking.is-visible .rank-list li,
  .sp-toc {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* =====================================================
   SP 共通
   ===================================================== */
@media (max-width: 767px) {
  /* ── カードのシャドウを除去 ── */
  .quiz-card   { box-shadow: none; }
  .column-card { box-shadow: none; }

  /* ── Quiz / Column SP 完全統一（色以外） ── */
  .top-quiz,
  .top-column {
    padding: 16px 10px 12px;
    margin-bottom: 16px;
    border-radius: var(--r-md);
  }

  .top-quiz .section-title,
  .top-column .section-title {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  /* カード幅・スナップ */
  .quiz-card--left,
  .quiz-card--small,
  .column-card {
    flex: 0 0 75%;
    max-width: 75%;
    scroll-snap-align: center;
    flex-direction: column !important;
    height: auto;
  }

  /* 画像
   * .column-card-img は外した（archive のコラム一覧は column.css の #lower で 5/2 にする）
   * トップ最新コラムの --sq variant はこのルールに含まれないが、別途 body#home スコープで
   * 3/2 が適用される（style.css 上のほうの body#home ルール）。 */
  .quiz-card--left .quiz-card-img,
  .quiz-card--small .quiz-card-img--sq {
    width: calc(100% - 16px) !important;
    margin: 6px auto 0 !important;
    aspect-ratio: 3 / 2 !important;
    height: auto;
    border-radius: calc(var(--r-md) - 4px);
  }

  /* カード内テキスト */
  .quiz-card-body,
  .quiz-card--small .quiz-card-body,
  .column-card-body,
  .column-card--small .column-card-body {
    padding: 8px 10px 6px;
    gap: 6px;
  }

  .quiz-card-body h3,
  .quiz-card-body h2,
  .column-card-body h3,
  .column-card-body h2 { font-size: var(--fs-sm); }

  /* ボタン */
  .btn-quiz,
  .btn-more { font-size: 0.8rem; margin: 4px 0 0; }

  .column-card-body .btn-more {
    display: flex;
    width: 100%;
  }

  /* ── ランキング ── */
  .sidebar-ranking h3 { font-size: 1rem; }
  .rank-list li a     { font-size: var(--fs-sm); padding: 10px 0; }
  .rank-num           { font-size: var(--fs-sm); width: 30px; height: 30px; flex-shrink: 0; }
  .ranking-sub        { font-size: var(--fs-2xs); }
}


/* =====================================================
   LOWER PAGE — 下層ページ共通（#lower）
   トップページには影響しない
   ===================================================== */

/* ── ページ全体 ── */
body#lower {
  background-color: var(--clr-white);
  /* フローティングピル化に合わせて body 上余白は撤去。
     上端の余白は .lower-hero 側に持たせ、淡い空背景がピル下まで伸びる構成にする。 */
  padding-top: 0;
}

/* ── 件数表示（quiz_list / column_list / tag 共通） ── */
.tag-count {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-top: 0;
  margin-bottom: var(--sp-sm);
  padding-left: 2px;
}
.tag-count-num {
  font-family: var(--font-en);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--clr-brand-dark);
}

/* ── パンくず＋ページタイトル ヒーローエリア ──
   ピルがフロートする分の上余白を内側で取り、淡い空背景がピル下まで覗くようにする。 */
.lower-hero {
  background-image: url('../img/bg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: var(--sp-md);
  position: relative;
  overflow: hidden;
  margin-bottom: -2px;
}
@media (max-width: 767px) {
  .lower-hero { padding-top: 0; }
}

.lower-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.70) 80%,
    rgba(255, 255, 255, 1.00) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* コラム一覧は読み物メディア寄り。空背景の幻想感を薄めて、記事カードを主役に。 */
body.post-type-archive-column .lower-hero::before,
body.tax-mindas_category .lower-hero::before,
body.tag .lower-hero::before {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.88) 60%,
    rgba(255, 255, 255, 1.00) 100%
  );
}

/* ── パンくずリスト ── */
.breadcrumb {
  background: transparent;
  border-bottom: 1px solid rgba(35, 58, 122, 0.10);
  position: relative;
  z-index: 1;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  list-style: none;
  margin: 0 auto;
  padding: 10px var(--gutter);
  max-width: var(--container-w);
  font-size: 0.8rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color var(--tr);
}

.breadcrumb-item a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.breadcrumb-item span[aria-current="page"] {
  color: var(--text-main);
  /* 最後のパンくず（記事タイトル）が長すぎるとパンくず全体が折り返して見苦しくなるので、
   * 表示は1行省略。SEO 構造化データ的にはフル文字列が DOM に残るので影響なし。
   * 日本語前提で 1ch ≒ 半角1文字幅。全角はその約2倍幅なので、
   * 24ch ≒ 全角12文字、12ch ≒ 全角6文字程度で表示が切れる目安。 */
  display: inline-block;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
@media (max-width: 767px) {
  .breadcrumb-item span[aria-current="page"] {
    max-width: 12ch;
  }
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  margin: 0 6px;
  color: var(--text-muted);
}

/* ── ページタイトル ── */
.lower-hero-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: var(--sp-md) var(--gutter) 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .lower-hero {
    padding-bottom: var(--sp-lg);
  }
  .lower-hero-inner {
    padding-top: var(--sp-lg);
  }
}

.lower-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* 英語タイトル：斜体、濃紺テキスト、短いアクセントバー付き */
.lower-title-en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--text-main);
  padding-bottom: 14px;
  position: relative;
}

/* タイトル下のアクセントバー */
.lower-title-en::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--color-accent-blue);
  border-radius: var(--r-full);
  opacity: 0.6;
}

/* 1文字目：アクセントブルー */
.lower-title-en .h1st {
  color: var(--color-accent-blue);
}

/* JP サブタイトル：両脇に細いラインを添える */
.lower-title-jp {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.lower-title-jp::before,
.lower-title-jp::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(35, 58, 122, 0.20);
  flex-shrink: 0;
}

/* ── 「更に読み込む」ボタン ── BUTTON SYSTEM が適用される（追加スタイルのみ） */
.btn-load-more {
  margin: var(--sp-md) auto 0;
  width: fit-content;
}
.btn-load-more i {
  font-size: 1.1em;
  transition: transform var(--tr);
}

.btn-load-more:hover i {
  transform: translateY(2px);
}

/* ローディング中状態 */
.btn-load-more.is-loading {
  pointer-events: none;
  opacity: 0.6;
}

/* ── SP 調整 ── */
@media (max-width: 767px) {
  .lower-hero {
    padding-bottom: var(--sp-sm);
  }
  .lower-hero-inner {
    padding-top: var(--sp-sm);
  }

  .lower-title-jp {
    white-space: normal;
    text-align: center;
    /* SPで横線装飾と本文が同じ行幅を奪い合うと「ム」だけ落ちる崩れが起きるため、
       装飾線は隠して中央寄せのテキストのみにする。 */
    gap: 0;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1.55;
    letter-spacing: 0.02em;
  }
  .lower-title-jp::before,
  .lower-title-jp::after {
    display: none;
  }

  .btn-load-more {
    width: 100%;
    max-width: 320px;
  }
}

/* ── #lower：見出しとコンテンツの間隔 ── */
#lower .contents-wrap {
  padding-top: var(--sp-sm);
}

/* 下層アーカイブ：外側の大枠（白カード）を撤去。
 * カード自体が独自のborder + shadowを持っているため、外側ラッパーは二重ボックスになる。
 * メディアサイト感を出すため、カードを直接ページ背景に並べる「素のレイアウト」へ。
 * front-page では .top-quiz / .top-column が「セクションカード」として機能するので
 * body#lower でスコープして、トップページの装飾は維持する。 */
body#lower .top-quiz,
body#lower .top-column {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* SP下層: .contents-wrap の左右paddingを .contents-sidebar と同じ var(--sp-sm) に揃える。
 * これでメインカラム・サイドバー・件数表示・ページネーションすべて同じ左右余白で揃う。 */
@media (max-width: 767px) {
  body#lower .contents-wrap {
    padding-left: var(--sp-sm);
    padding-right: var(--sp-sm);
  }
}

/* ── #lower SP：スライダーを解除して1段組表示 ── */
@media (max-width: 767px) {
  #lower .quiz-slider-wrap {
    overflow: visible;
  }
  #lower .quiz-slider-wrap::after {
    display: none;
  }
  #lower .quiz-grid {
    display: flex;
    flex-direction: column;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    gap: 12px;
    flex-wrap: unset;
  }
  #lower .quiz-card {
    flex: none;
    max-width: none;
    width: 100%;
    scroll-snap-align: none;
  }
  #lower .quiz-dots {
    display: none;
  }
  /* NOTE: #lower .column-* 系のSPルールは column.css に集約済み */

  /* カード内コンパクト化 */
  #lower .quiz-card-body {
    padding: 8px;
    gap: 6px;
  }
  #lower .quiz-card-body h3,
  #lower .quiz-card-body h2 {
    font-size: var(--fs-base);
    line-height: 1.5;
  }
  #lower .tag-group {
    gap: 2px;
  }
  #lower .tag-group .tag,
  #lower .qd-tags .tag,
  #lower .cd-tags .tag {
    font-size: var(--fs-2xs);
  }
  #lower .tag-group .tag i,
  #lower .qd-tags .tag i,
  #lower .cd-tags .tag i {
    font-size: var(--fs-xs);
    line-height: 1;
    display: flex;
    align-items: center;
  }
  #lower .btn-quiz {
    font-size: var(--fs-xs);
    padding: 6px 8px;
    gap: 4px;
    margin: 8px 0 4px;
  }
  #lower .btn-quiz i {
    font-size: var(--fs-sm);
  }
  #lower .badge-new {
    font-size: 0.6rem;
    padding: 1px 6px;
  }
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: var(--sp-lg) 0 var(--sp-md);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* =====================================================
   BRUSHUP ENHANCEMENTS
   ===================================================== */

/* ── ヒーロー サブコピー ── */
.hero-subcopy {
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  color: var(--text-sub);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── .btn-diagnose の active 押下感だけ補強。色は上のメイン定義（BUTTON SYSTEM 準拠）に任せる。 */
.btn-diagnose:active {
  transform: scale(0.96) !important;
  transition: transform 0.1s ease;
}

/* ── ヒーローカード：ホバー傾き ── */
.hero-card-wrap {
  transition: transform 0.35s ease;
}
.hero-card-wrap:hover {
  transform: rotate(-2deg) scale(1.04) translateY(-4px);
}


/* ── Trend タグ：ホバーで浮く ── */
.tag-pill { transition: background var(--tr), border-color var(--tr), color var(--tr), transform var(--tr), box-shadow var(--tr); }
.tag-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ── Quiz カード：ホバー強化 ── */
.quiz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(36, 54, 95, 0.12);
}

/* ── Quiz Featured カード（最初の1枚を大きく） ── */
@media (min-width: 768px) {
  .quiz-card--featured {
    grid-column: span 2;
  }
  .quiz-card--featured .quiz-card-img {
    aspect-ratio: 16 / 7;
  }
  .quiz-card--featured .quiz-card-body h3,
  .quiz-card--featured .quiz-card-body h2 {
    font-size: 1.25rem;
  }
  .quiz-card--featured .quiz-card-body {
    padding: var(--sp-md);
  }
  .quiz-card--featured .quiz-card-img img {
    object-position: center 30%;
  }

  /* Column Featured カードも同じ比率・余白に揃える（クイズと一致） */
  .column-card--featured {
    grid-column: span 2;
  }
  .column-card--featured .column-card-img {
    aspect-ratio: 16 / 7;
  }
  .column-card--featured .column-card-body h3,
  .column-card--featured .column-card-body h2 {
    font-size: 1.25rem;
  }
  .column-card--featured .column-card-body {
    padding: var(--sp-md);
  }
  .column-card--featured .column-card-img img {
    object-position: center 30%;
  }
}

/* ── Column カード：ホバー強化 ── */
.column-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ── フッター上部：アクセントバー ── */
.site-footer::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-blue) 0%, var(--color-lavender) 100%);
  opacity: 0.7;
}

/* ── スクロール時 星が流れる（軽量版） ── */
@keyframes star-drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-40px); }
}
.hero-pixels .px--star-lg {
  animation: px-pulse 3s ease-in-out infinite, star-drift 8s linear infinite alternate;
}
.hero-pixels .px--star {
  animation: px-pulse 3s ease-in-out infinite, star-drift 12s linear infinite alternate-reverse;
}
/* nth-child 上書き後もアニメーション継続 */
.hero-pixels .px:nth-child(odd)  { animation: px-pulse 3.2s ease-in-out infinite, star-drift 8s  linear infinite alternate; }
.hero-pixels .px:nth-child(even) { animation: px-pulse 2.8s ease-in-out infinite, star-drift 12s linear infinite alternate-reverse; }


/* =====================================================
   SAMPLE IMAGE PLACEHOLDER
   サンプル画像をカテゴリ別グラデーションで演出
   ===================================================== */
.quiz-card-img img[src*="sample"],
.column-card-img img[src*="sample"] {
  object-fit: cover;
  background: var(--clr-white);
}
.top-quiz .quiz-card-img img[src*="sample"] {
  background: var(--clr-white);
}
.top-column .column-card-img img[src*="sample"] {
  background: var(--clr-white);
}


/* =====================================================
   DETAIL SHARE — quiz_detail / column_detail 共通シェアエリア
   ===================================================== */
.detail-share {
  padding: var(--sp-sm) 0;
  margin-bottom: var(--sp-sm);
  text-align: center;
}
.detail-share-eyebrow {
  font-family: var(--font-en);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--clr-text-muted);
  margin-bottom: 10px;
}
.detail-share-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.detail-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* タップターゲット(.follow-icon と統一) 36→40px */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: #000;
  border: none;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.detail-share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); opacity: 1; }
.detail-share-btn svg  { width: 15px; height: 15px; flex-shrink: 0; }
.detail-share-btn i    { font-size: 15px; line-height: 1; }
.detail-share-btn--x         { background: #000; }
.detail-share-btn--x:hover   { background: #222; }
.detail-share-btn--threads   { background: #101010; }
.detail-share-btn--threads:hover { background: #2a2a2a; }
.detail-share-btn--line      { background: #06C755; }
.detail-share-btn--line:hover { background: #05b04c; }
.detail-share-btn--native    { background: linear-gradient(135deg, #7B61C7 0%, #3F64E0 100%); color: #fff; box-shadow: 0 2px 8px rgba(100,80,210,0.3); }
.detail-share-btn--native:hover { background: linear-gradient(135deg, #6A50B8 0%, #2E54D0 100%); }

/* =====================================================
   DARK MODE
   ===================================================== */


/* =====================================================
   CONTENT SECTIONS — VISUAL HIERARCHY
   ===================================================== */

/* ── Today: カードごとにテーマ色背景 ── */
.today-card--quiz {
  background: linear-gradient(148deg, #eef3ff 0%, #f8faff 55%, var(--clr-white) 100%);
  border-color: rgba(63, 100, 224, 0.14);
}
.today-card--column {
  background: linear-gradient(148deg, #edf8f3 0%, #f5fbf8 55%, var(--clr-white) 100%);
  border-color: rgba(61, 171, 138, 0.14);
}
.today-card--fortune {
  background: linear-gradient(148deg, #f2efff 0%, #f8f5ff 55%, var(--clr-white) 100%);
  border-color: rgba(123, 97, 199, 0.14);
}

/* ── Quiz section: セクション背景 + featured カード ──
 * グラデーションは「色味を残す」程度に控えめに。透明度0.72で背景になじませる。
 * グラスデザイン（backdrop-filter）はメディアサイトのトーンと合わないので使わない。 */
.top-quiz {
  background: linear-gradient(155deg, rgba(245, 248, 255, 0.72) 0%, var(--clr-white) 52%);
}
.quiz-card--featured {
  background: linear-gradient(160deg, #edf2ff 0%, var(--clr-white) 55%);
  border-color: rgba(63, 100, 224, 0.18) !important;
  box-shadow: 0 6px 24px rgba(88, 96, 168, 0.10), 0 1px 4px rgba(88, 96, 168, 0.05) !important;
}

/* ── Column section: セクション背景 ── */
.top-column {
  background: linear-gradient(155deg, rgba(243, 251, 247, 0.72) 0%, var(--clr-white) 52%);
}

/* =====================================================
   HERO — IMPACT ENHANCEMENTS
   ===================================================== */

/* ① 背景に奥行き：ラジアルグロー（青系のみ） + 背景画像
 * 旧 rgba(90,60,210,0.16) の右寄り紫オーバーレイは外して、青系の控えめなグローだけ残す。 */
#home .hero-section {
  background-color: #e6ebff;
  background-image:
    radial-gradient(ellipse 38% 42% at 18% 32%, rgba(63, 100, 224, 0.10) 0%, transparent 55%),
    url('../img/bg.webp');
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center bottom;
}

/* 対角ライトレイ */
#home .hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    122deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 28%,
    transparent 52%
  );
  pointer-events: none;
  z-index: 0;
  animation: light-ray-pulse 7s ease-in-out infinite;
}

@keyframes light-ray-pulse {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; }
}

/* ② カード下オーラグロー */
.hero-card-container::before {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -8%;
  height: 55%;
  background: radial-gradient(ellipse 85% 100% at 50% 100%, rgba(63, 103, 216, 0.22) 0%, transparent 70%);
  filter: blur(22px);
  animation: card-aura-pulse 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes card-aura-pulse {
  0%, 100% { opacity: 0.45; transform: scaleX(0.88); }
  50%       { opacity: 1;    transform: scaleX(1.08); }
}

/* ③ 背面カードの独立浮遊 */
@keyframes card-bg-float-1 {
  0%, 100% { transform: rotate(7deg)  translateY(0px); }
  50%       { transform: rotate(7.8deg) translateY(-9px); }
}
@keyframes card-bg-float-2 {
  0%, 100% { transform: rotate(-6deg)  translateY(0px); }
  50%       { transform: rotate(-6.8deg) translateY(-7px); }
}
.hero-card-bg--1 { animation: card-bg-float-1 5.5s ease-in-out infinite; }
.hero-card-bg--2 { animation: card-bg-float-2 6.2s ease-in-out infinite 0.8s; }

/* ④ カードのシャドウ：透過画像のためなし */

/* ⑤ ロード時エントランス（時差フェードイン） */
@keyframes hero-enter-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

#home .hero-label        { animation: hero-enter-up 0.65s cubic-bezier(0.22,1,0.36,1) both 0.05s; }
#home .hero-title-area h1{ animation: hero-enter-up 0.70s cubic-bezier(0.22,1,0.36,1) both 0.18s; }
#home .hero-desc         { animation: hero-enter-up 0.65s cubic-bezier(0.22,1,0.36,1) both 0.32s; }
#home .hero-stats        { animation: hero-enter-up 0.65s cubic-bezier(0.22,1,0.36,1) both 0.45s; }
#home .hero-cta          { animation: hero-enter-up 0.65s cubic-bezier(0.22,1,0.36,1) both 0.57s; }
#home .hero-visual       { animation: hero-enter-up 0.80s cubic-bezier(0.22,1,0.36,1) both 0.08s; }
#home .hero-pixels       { animation: hero-enter-up 1.00s cubic-bezier(0.22,1,0.36,1) both 0.28s; }

/* SP: エントランスは軽く */
@media (max-width: 767px) {
  #home .hero-label,
  #home .hero-title-area h1,
  #home .hero-desc,
  #home .hero-stats,
  #home .hero-cta,
  #home .hero-visual,
  #home .hero-pixels {
    animation-duration: 0.5s;
    animation-delay: 0s;
  }
  .hero-card-container::before { display: none; }
}

/* アクセシビリティ：動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  #home .hero-section::before,
  .hero-card-container::before { animation: none; }
  .hero-card-bg--1,
  .hero-card-bg--2             { animation: none; }
  #home .hero-label,
  #home .hero-title-area h1,
  #home .hero-desc,
  #home .hero-stats,
  #home .hero-cta,
  #home .hero-visual,
  #home .hero-pixels           { animation: none; }
}

/* =====================================================
   PRE-FOOTER — About mindas.
   ===================================================== */
.pre-footer {
  background-image:
    linear-gradient(
      to bottom,
      rgba(30, 35, 64, 0.78) 0%,
      rgba(30, 35, 64, 0.94) 100%
    ),
    url('https://images.unsplash.com/photo-1761597128652-465753a580fc?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  /* Photo: abstract bokeh / Unsplash License */
}

.pre-footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px) var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  position: relative;
  z-index: 1;
}

.pre-footer-visual { flex-shrink: 0; }
.pre-footer-kun {
  width: clamp(56px, 7vw, 80px);
  image-rendering: auto;
  animation: mindas-float 4s ease-in-out infinite;
  display: block;
}

.pre-footer-text { flex: 1; min-width: 0; }
.pre-footer-eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-lavender);
  margin-bottom: 4px;
}
.pre-footer-body {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.pre-footer-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-full);
  padding: 10px 22px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--tr), border-color var(--tr), color var(--tr), gap var(--tr);
}
.pre-footer-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  gap: 9px;
  opacity: 1;
}

@media (max-width: 767px) {
  .pre-footer-inner { flex-wrap: wrap; }
  .pre-footer-visual { display: none; }
  .pre-footer-text { width: 100%; }
  .pre-footer-link { width: 100%; justify-content: center; }
}

/* =====================================================
   MASCOT SYSTEM
   ===================================================== */

/* ── ページローダー ── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-mist-blue-soft);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  /* ローダーは演出のみで操作を遮らない（メニュー等の最初のタップが無効になる問題対策） */
  pointer-events: none;
}
#page-loader.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-kun-wrap {
  display: inline-block;
  animation: loader-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.loader-kun {
  width: 88px;
  image-rendering: auto;
  animation: loader-float 2.8s ease-in-out 0.6s infinite;
}
@keyframes loader-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.loader-text {
  font-family: var(--font-en);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-accent-blue);
  letter-spacing: 0.08em;
  animation: loader-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both 0.1s;
}
@keyframes loader-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.88); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── ヒーロー吹き出しラッパー ── */
.mindas-kun-wrap {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.mindas-kun-wrap--hero {
  bottom: 48px;
  right: clamp(80px, 21vw, 300px);
}
/* wrap内では img の position をリセット */
.mindas-kun-wrap .mindas-kun {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
}

/* ── 吹き出し（ヒーロー用：下向き矢印） ── */
.mindas-hero-bubble {
  background: #fff;
  border: 2px solid rgba(63, 100, 224, 0.24);
  border-radius: 14px 14px 14px 8px;
  padding: 7px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--clr-text);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  position: relative;
  animation: bubble-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both 1.4s;
}
/* 下向き矢印（外枠） */
.mindas-hero-bubble::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 16px;
  border: 6px solid transparent;
  border-top-color: rgba(63, 100, 224, 0.24);
}
/* 下向き矢印（内側白） */
.mindas-hero-bubble::after {
  content: '';
  position: absolute;
  top: calc(100% - 2px);
  left: 17px;
  border: 5px solid transparent;
  border-top-color: #fff;
  z-index: 1;
}
@keyframes bubble-pop {
  from { opacity: 0; transform: scale(0.72) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── セクション案内マスコット ── */
.section-kun {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}
.section-kun-img {
  width: 58px;
  flex-shrink: 0;
  animation: mindas-float 4.5s ease-in-out infinite;
  image-rendering: auto;
}

/* 吹き出し本体（左向き矢印・キャラ側へ） */
.section-kun-bubble {
  background: #fff;
  border: 2px solid rgba(63, 100, 224, 0.2);
  border-radius: 8px 14px 14px 14px;
  padding: 7px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--clr-text);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  position: relative;
  margin-bottom: 14px;
}
/* 左向き矢印（外枠） */
.section-kun-bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -11px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: rgba(63, 100, 224, 0.2);
}
/* 左向き矢印（内側白） */
.section-kun-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #fff;
  z-index: 1;
}

/* コラム用：緑系の枠線 */
.section-kun--col .section-kun-bubble {
  border-color: rgba(61, 171, 138, 0.22);
}
.section-kun--col .section-kun-bubble::before {
  border-right-color: rgba(61, 171, 138, 0.22);
}

/* SP: コンパクト表示 */
@media (max-width: 767px) {
  .section-kun-img { width: 44px; }
  .section-kun-bubble {
    font-size: var(--fs-2xs);
    padding: 5px 10px;
    margin-bottom: 10px;
  }
  /* ヒーロー吹き出しは SP で非表示 */
  .mindas-hero-bubble { display: none; }
  .mindas-kun-wrap--hero {
    bottom: 36px;
  }
}

/* ローダーはアクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  .loader-kun, .loader-text { animation: none; }
  #page-loader { transition: none; }
}

/* =====================================================
   SP MOBILE — SNS流入最適化
   ===================================================== */

/* swipe-hint: PC では非表示 */
.swipe-hint { display: none; }

@media (max-width: 767px) {

  /* ① FV縦長最適化: カード→CTA の順にする */
  .hero-visual { order: 2 !important; width: 72% !important; max-width: 230px !important; }
  .hero-cta    { order: 3 !important; width: 100%; }
  .hero-desc   { order: 4 !important; }
  .hero-stats  { order: 5 !important; }

  /* ② SPの診断ボタン: コンパクトに。診断ボタンと「診断タイプを見る」を同じ幅で揃える。
   * 親 .hero-cta に max-width をかけ、子は width:100% にすることで両ボタンが同一幅 */
  .hero-cta {
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }
  .hero-section .btn-diagnose,
  .btn-diagnose--hero {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem !important;
    padding: 12px 24px !important;
    justify-content: center;
  }
  .hero-section .hero-types-link {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.82rem;
  }
  .hero-cta .btn-diagnose {
    font-size: 0.95rem;
    padding: 12px 24px;
  }

  /* ③ スワイプUI: 右端フェード（続きある感） */
  .quiz-slider-wrap,
  .column-slider-wrap {
    position: relative;
  }
  .quiz-slider-wrap::after,
  .column-slider-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: calc(100% - 28px);
    width: 48px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.92));
    pointer-events: none;
    z-index: 2;
  }

  /* スワイプヒントテキスト */
  .swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--fs-2xs);
    color: var(--clr-text-muted);
    margin-top: 8px;
    font-weight: 500;
    animation: swipe-fade 2.5s ease-in-out infinite;
  }
  .swipe-hint i { font-size: var(--fs-sm); }

  @keyframes swipe-fade {
    0%, 100% { opacity: 0.38; }
    50%       { opacity: 0.85; }
  }

}

/* ── star.webp SP：width 100% ── */
@media (max-width: 767px) {
  .hero-today-wrap::before {
    background-size: 100% auto;
  }
  .lower-hero::before {
    background-size: 100% auto;
  }
}

/* =====================================================
   BENTO GRID
   ===================================================== */
.bento-section {
  padding: var(--sp-lg) 0 var(--sp-xl);
}
.bento-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ── カード共通 ── */
.bento-card {
  border-radius: var(--r-md);
  padding: var(--sp-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  min-height: 180px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
}
a.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(30, 35, 64, 0.16);
}
.bento-card-eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.bento-card-title {
  font-size: clamp(0.88rem, 1.6vw, 1.1rem);
  font-weight: 700;
  line-height: 1.5;
  margin-top: auto;
}
.bento-card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 2px;
  opacity: 0.9;
}

/* ── 今日の運勢 (1×1) ── */
.bento-card--fortune {
  grid-column: span 1;
  color: var(--clr-text);
  gap: var(--sp-sm);
  padding: var(--sp-lg);
  background:
    radial-gradient(circle at 75% 35%, rgba(63, 103, 216, 0.12), transparent 34%),
    radial-gradient(circle at 18% 22%, rgba(47, 158, 154, 0.08), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f7f9fe 48%, #eef4fb 100%);
  border: 1px solid rgba(63, 103, 216, 0.14);
  box-shadow: 0 18px 48px rgba(36, 54, 95, 0.08);
}
.bento-card--fortune::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -42px;
  height: 150px;
  background:
    radial-gradient(circle at 10% 70%, rgba(255,255,255,0.95) 0 42px, transparent 44px),
    radial-gradient(circle at 26% 58%, rgba(255,255,255,0.9) 0 58px, transparent 60px),
    radial-gradient(circle at 48% 76%, rgba(255,255,255,0.82) 0 76px, transparent 78px),
    radial-gradient(circle at 72% 62%, rgba(255,255,255,0.9) 0 62px, transparent 64px),
    radial-gradient(circle at 90% 76%, rgba(255,255,255,0.95) 0 48px, transparent 50px);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}
.bento-card--fortune::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(63, 103, 216, 0.5) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(47, 158, 154, 0.35) 0 2px, transparent 2.5px);
  background-size: 160px 160px, 220px 220px;
  background-position: 24px 32px, 96px 78px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
/* コンテンツを擬似要素の上に */
.bento-card--fortune > * { position: relative; z-index: 1; }

/* ── Trend of mindas (3×1) ── */
.bento-card--trend {
  grid-column: span 3;
  background: var(--clr-white);
  border: var(--border-medium) solid var(--clr-border);
  flex-direction: row;
  align-items: center;
  gap: var(--sp-lg);
  min-height: auto;
  padding: var(--sp-md) var(--sp-lg);
}
@media (max-width: 767px) {
  .bento-card--trend {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-sm);
    padding: var(--sp-sm) var(--sp-md);
  }
}
.bento-trend-header { flex-shrink: 0; }
.bento-trend-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.4;
}
.bento-trend-title .h1st { color: var(--clr-brand); }
.bento-trend-sub {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-top: 2px;
}
.bento-trend-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

/* ── 今日の運勢カード内パーツ ── */
.bf-label {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  background: var(--color-accent-blue-soft);
  border: 1px solid rgba(63, 103, 216, 0.22);
  border-radius: var(--r-full);
  padding: 2px 10px;
  width: fit-content;
}
.bf-title {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.4;
}
.bf-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.8;
}
.bf-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: var(--sp-xs) 0;
}
.bf-card-img {
  width: clamp(70px, 30%, 100px);
  filter: drop-shadow(0 6px 16px rgba(60, 30, 120, .15));
  transition: transform 0.3s ease;
}
.bento-card--fortune:hover .bf-card-img { transform: translateY(-6px); }
.bf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-accent-blue);
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1;
  width: fit-content;
  align-self: center;
  box-shadow: 0 4px 20px rgba(88, 96, 168, 0.22);
  transition: transform 0.2s, box-shadow var(--tr);
}
.bento-card--fortune:hover .bf-cta {
  transform: translateX(3px);
  box-shadow: 0 8px 28px rgba(88, 96, 168, 0.30);
}

/* ── 今日のクイズ / 今日のコラム (1×1) ── */
.bento-card--quiz,
.bento-card--column {
  grid-column: span 1;
  background: var(--clr-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  color: var(--clr-text);
  padding: 0;
  gap: 0;
}
.bento-card--quiz:hover,
.bento-card--column:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
/* 「今日のクイズ」「今日のコラム」ラベルもピル状にして「今日の運勢」と統一 */
.bento-card--quiz .bento-card-eyebrow,
.bento-card--column .bento-card-eyebrow {
  border-radius: var(--r-full);
  padding: 2px 10px;
  width: fit-content;
  opacity: 1;
  letter-spacing: 0.2em;
}
.bento-card--quiz .bento-card-eyebrow {
  color: var(--clr-quiz);
  background: var(--clr-quiz-light);
  border: 1px solid rgba(63, 103, 216, 0.22);
}
.bento-card--column .bento-card-eyebrow {
  color: var(--clr-column, var(--clr-brand));
  background: var(--clr-column-light, var(--clr-brand-light));
  border: 1px solid rgba(47, 158, 154, 0.22);
}

/* 画像ラッパー（カテゴリバッジ用にrelative） */
.bento-card-img-wrap {
  position: relative;
  width: calc(100% - 16px);
  margin: 8px auto 0;
  aspect-ratio: 5 / 3;
  border-radius: calc(var(--r-md) - 4px);
  overflow: hidden;
  flex-shrink: 0;
}
.bento-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bento-card--quiz:hover .bento-card-thumb,
.bento-card--column:hover .bento-card-thumb { transform: scale(1.06); }

/* テキストエリア */
.bento-card-body {
  padding: var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.bento-card-body .btn-quiz { margin-top: auto; }

.bento-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bento-update-badge {
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--clr-text-muted);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  padding: 1px 8px;
  white-space: nowrap;
}
.bento-card-desc {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  line-height: 1.7;
}
.bento-card-body .bento-card-eyebrow { margin: 0; }
.bento-card-body .bento-card-title {
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

/* ── 16タイプ診断（小） (3×1) ── */
.bento-card--diagnosis {
  grid-column: span 3;
  background: var(--clr-bg);
  border: var(--border-medium) solid var(--clr-border);
  color: var(--clr-text);
  flex-direction: row;
  align-items: center;
  gap: var(--sp-md);
  min-height: auto;
  padding: var(--sp-sm) var(--sp-md);
}
.bento-card--diagnosis .bento-card-eyebrow { color: var(--clr-text-muted); opacity: 1; }
.bento-card--diagnosis .bento-card-title {
  font-size: var(--fs-base);
  margin-top: 0;
  flex: 1;
}
.bento-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-brand);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.bento-card--diagnosis:hover .bento-card-cta { background: var(--clr-brand-dark); }
.bento-deco--diagnosis {
  width: 48px;
  flex-shrink: 0;
  image-rendering: auto;
  pointer-events: none;
  animation: mindas-float 4s ease-in-out infinite;
}



/* ── タブレット (768–1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .bento-grid { gap: 12px; }
}

/* ── SP (≤767px) ── */
@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* 運勢: 全幅 */
  .bento-card--fortune {
    grid-column: span 2;
    padding: var(--sp-sm);
    gap: var(--sp-xs);
  }

  /* クイズ・コラム: 全幅 */
  .bento-card--quiz,
  .bento-card--column { grid-column: span 2; }

  /* 診断バー: 全幅・縦並び */
  .bento-card--diagnosis {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-sm);
    padding: var(--sp-sm);
  }
  .bento-card-cta { width: 100%; justify-content: center; }

  /* Trend: 全幅 */
  .bento-card--trend {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-sm);
    padding: var(--sp-sm) var(--sp-md);
  }

  .bento-card-title { font-size: var(--fs-sm); }
  .bf-title { font-size: var(--fs-md); }
}


/* =====================================================
   REFINEMENT LAYER (visual polish: 引き算とルール統一)
   - 既存スタイルを末尾で控えめに上書きしてプロ感を底上げする
   - 大改修ではなく、密度・装飾・主従関係を整える調整層
   ===================================================== */

/* ── 1. ヘッダーを静かに（PC/タブレット横） ── */
@media (min-width: 1024px) {
  .header-logo-img {
    height: 52px;
  }
  .header-inner {
    gap: 24px;
  }
  .header-nav .nav-link {
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 6px 12px;
  }
  .header-nav .nav-fortune {
    padding: 7px 16px;
    font-size: var(--fs-xs);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(88, 96, 168, 0.22);
    margin-left: 8px;
  }
  .header-search-wrap {
    margin-left: 8px;
  }
}

/* ── 2. ファーストビュー：H1主役・装飾控えめ ── */
.hero-section .hero-title-area h1 {
  color: #18213a;
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.72);
}
.hero-section .hero-desc {
  color: rgba(24, 33, 58, 0.78);
}
.hero-pixels .px {
  opacity: 0.55;
}

/* ── 3. CTA階層: 主＝青ベタ / 補助＝白枠 / タグ＝影なし ── */
.tag-pill {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.7);
}
.tag-pill:hover {
  box-shadow: none;
}
.tag-group .tag,
.tag-group a {
  box-shadow: none;
}

/* ── 4. 英字見出しを控えめに：日本語サブを主役へ昇格 ── */
.section-title h2 {
  align-items: center;
  gap: 12px;
}
.section-title .en {
  font-size: clamp(0.78rem, 1.3vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  opacity: 0.55;
}
.section-title .en .h1st {
  color: var(--clr-brand);
  opacity: 0.7;
}
/* セクション上の英字 eyebrow も少し薄く */
.section-eyebrow {
  opacity: 0.65;
}
.section-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--clr-text);
}
/* Trend カード見出しも同様に英字を控えめへ */
.bento-trend-title {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bento-trend-title .en {
  font-size: 0.78em;
  letter-spacing: 0.14em;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  opacity: 0.75;
  margin-right: 4px;
}

/* ── 5. カードはフラット寄り：影と角丸を抑える ── */
.bento-card {
  border-radius: var(--r-md);
  border: 1px solid rgba(35, 58, 122, 0.08);
}
a.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}
.bento-card--fortune {
  box-shadow: var(--shadow-lg);
}
.bento-card--trend {
  border: 1px solid rgba(35, 58, 122, 0.08);
}
.quiz-card,
.column-card {
  border-radius: var(--r-md);
}

/* ── 6. 後半セクションの余白拡大（SP: サイドバーが下に流れる） ── */
@media (max-width: 1023px) {
  .contents-sidebar {
    gap: clamp(24px, 4vw, 36px);
    margin-top: clamp(32px, 6vw, 56px);
  }
}
@media (max-width: 480px) {
  .sidebar-ranking,
  .sidebar-news,
  .sidebar-follow,
  .sidebar-welcome {
    padding: var(--sp-md);
  }
  .rank-list li a {
    padding: 14px 0;
  }
}

/* ── 7. 色の主張を抑える：装飾色は控えめに、テキストは濃紺で締める ── */
.hero-stat--blue,
.hero-stat--purple,
.hero-stat--mint,
.hero-stat--yellow { background: rgba(88,96,168,0.09); }

/* ── 8. SP下部ナビを少し控えめに（存在感を弱めてアプリ感を抑制） ── */
.sp-bottom-nav {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 -6px 20px rgba(35, 58, 122, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-color: rgba(63, 100, 224, 0.10);
}
.sp-nav-item {
  font-size: 0.6rem;
}
.sp-nav-item i {
  font-size: 1.2rem;
}

/* =====================================================
   FINAL OVERRIDE: SPメニュー表示を確実化
   末尾に置くことで Cascade 順で確実に勝つ。
   さらに JS 側で inline style も付与しているため三重の保険。
   ===================================================== */
.fullscreen-nav.is-open {
  opacity: 1 !important;
  transform: scale(1) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 閉じるボタン: 開いた状態では即座に見える（押せるが見えない問題の解消） */
.fullscreen-nav.is-open .fullscreen-nav-close {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  /* 元の 0.5s delay を短縮し、開いた直後から見えるように */
  transition: background var(--tr), opacity 0.25s ease 0.1s !important;
}

/* =====================================================
   階層感の調整: ページタイトル・下層見出し・サイドバー見出し
   小さい本文補助はそのまま、見出し階層だけ整える
   ===================================================== */

/* ── 下層ページのタイトルを「英字キッカー + 日本語タイトル」構造に反転 ── */
/* 元: lower-title-en が主役（28〜45px）、lower-title-jp がサブ（14〜16px）
   調整: lower-title-en をキッカー扱い（小・薄・letter-spacing 広）、
         lower-title-jp を本タイトル（大・太・濃）にして読みやすく */
.lower-hero .lower-title-en {
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  opacity: 0.7;
  padding-bottom: 8px;
}
.lower-hero .lower-title-en::after {
  width: 24px;
  height: 2px;
  opacity: 0.5;
}
.lower-hero .lower-title-en .h1st {
  opacity: 0.9;
}
.lower-hero .lower-title-jp {
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.04em;
}
.lower-hero .lower-title-jp::before,
.lower-hero .lower-title-jp::after {
  width: 28px;
  opacity: 0.7;
}

/* ── サイドバー見出しを本文主役の邪魔にならないサイズへ ── */
@media (min-width: 1024px) {
  .sidebar-ranking h3,
  .sidebar-news h3 {
    font-size: 1.125rem; /* 22.4px → 18px */
  }
  .sidebar-ranking h3 i,
  .sidebar-news h3 i {
    font-size: 1.2rem;
  }
}

/* ローダー: フェードアウトと同時に visibility も切り替え（display:none は JS が後処理） */
#page-loader.is-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}


/* =====================================================
   AD CTA BANNER — page-ad「広告・タイアップのご依頼」のCTAボックス
   memory: CTAはborderなし、淡い背景で存在感を出す方針
   ===================================================== */
.ad-cta-banner {
  margin: var(--sp-lg) 0;
  padding: var(--sp-md);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(88, 96, 168, 0.08), rgba(63, 143, 134, 0.08));
}

.ad-cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-md);
}

.ad-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-blue);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(88, 96, 168, 0.22);
}

.ad-cta-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ad-cta-lead {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
  color: var(--color-text, inherit);
}

.ad-cta-sub {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}

.ad-cta-btn {
  white-space: nowrap;
  padding: 14px 28px;
  min-height: 48px;
  font-size: var(--fs-sm);
}

@media (max-width: 767px) {
  .ad-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: var(--sp-sm);
  }
  .ad-cta-text {
    justify-items: center;
  }
  .ad-cta-btn {
    width: 100%;
  }
}


/* =====================================================
   FOOTER OPERATOR — 「Operated by Logasphere」表記
   ===================================================== */
.footer-operator {
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  padding: var(--sp-sm) var(--gutter) 0;
  letter-spacing: 0.06em;
}

.footer-operator .en {
  letter-spacing: 0.12em;
}

.footer-operator-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: color var(--tr), text-decoration-color var(--tr);
  margin-left: 4px;
}

.footer-operator-link:hover {
  color: var(--clr-white);
  text-decoration-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

/* =====================================================
   SQUIRCLE — corner-shape プログレッシブエンハンスメント
   参考: https://ics.media/en/entry/260226/
   対応ブラウザ(Chrome/Edge系)でのみ角を superellipse(squircle) に。
   未対応(Safari/Firefox)は通常の border-radius にフォールバック。
   角丸は各要素側で var(--r-*) 済み。ここでは形状だけ上書き。
   ※適用先を増やしたい場合はこのセレクタ一覧に追記する。
   ===================================================== */
@supports (corner-shape: squircle) {
  .bento-card,
  .quiz-card,
  .column-card,
  .news-card,
  .card-quiz,
  .card-column,
  .about-contact-btn,
  .cf-submit,
  .btn-load-more,
  .btn-col-load,
  .pg-start-btn,
  .pg-next-btn,
  .fortune-btn,
  .ad-cta-btn {
    corner-shape: squircle;
  }
}
