/* 勉強マジカ!? — 勉強の常識ウソホント大全 */
:root {
  --bg: #fbf8ff;
  --bg2: #f3eefe;
  --card: #ffffff;
  --ink: #1d1638;
  --ink2: #4a4469;
  --ink3: #635d85;
  --line: #e6def9;
  --brand: #6741d9;
  --brand2: #e64980;
  --gold: #fcc419;
  --grad: linear-gradient(120deg, #6741d9 0%, #ae3ec9 45%, #e64980 100%);
  /* 判定色は白文字で 4.5:1 以上（ライト）。ダークでは明るい色に戻す */
  --uso: #c92a2a;
  --hanbun: #b35c00;
  --honto: #087f5b;
  --mikettei: #3b5bdb;
  --focus: #c2255c;
  --on-v: #fff; /* 判定色の上の文字色 */
  --shadow: 0 1px 2px rgba(40, 20, 90, 0.06), 0 8px 28px rgba(60, 30, 140, 0.09);
  --shadow-lg: 0 2px 6px rgba(40, 20, 90, 0.08), 0 24px 60px rgba(60, 30, 140, 0.16);
  --r: 18px;
  --display: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
  --sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0f0b24;
  --bg2: #17113a;
  --card: #1b1540;
  --ink: #f1edff;
  --ink2: #c9c1ec;
  --ink3: #958cc0;
  --line: #2e2660;
  --uso: #ff6b81;
  --hanbun: #ffa94d;
  --honto: #38d9a9;
  --mikettei: #748ffc;
  --focus: #fcc419;
  --on-v: #14092e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f0b24;
    --bg2: #17113a;
    --card: #1b1540;
    --ink: #f1edff;
    --ink2: #c9c1ec;
    --ink3: #958cc0;
    --line: #2e2660;
    --uso: #ff6b81;
    --hanbun: #ffa94d;
    --honto: #38d9a9;
    --mikettei: #748ffc;
    --focus: #fcc419;
    --on-v: #14092e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: 'palt' 1;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
body.menu-open {
  overflow: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
:root[data-theme='dark'] a {
  color: #b197fc;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-wide {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.center {
  text-align: center;
}
[hidden] {
  display: none !important;
}

/* ---------- 判定の色 ---------- */
.v-uso {
  --vc: var(--uso);
}
.v-hanbun {
  --vc: var(--hanbun);
}
.v-honto {
  --vc: var(--honto);
}
.v-mikettei {
  --vc: var(--mikettei);
}
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 6px;
  border-radius: 999px;
  background: var(--vc);
  color: var(--on-v);
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
.stamp b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-size: 11px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-main {
  background: var(--grad);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(174, 62, 201, 0.35);
}
.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(174, 62, 201, 0.45);
}
.btn-ghost {
  background: var(--card);
  color: var(--ink) !important;
  border: 2px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--brand);
}
.btn-xl {
  padding: 18px 40px;
  font-size: 18px;
}

/* ---------- ヘッダー ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink) !important;
  flex-shrink: 0;
}
.logo-mark svg {
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(103, 65, 217, 0.35);
}
.logo-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-txt b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.logo-txt b i {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 1px;
}
.logo-txt small {
  font-size: 10.5px;
  color: var(--ink3);
  letter-spacing: 0.08em;
}
.logo-txt .logo-pre {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink2);
  margin-bottom: 1px;
}
.gnav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.gnav::-webkit-scrollbar {
  display: none;
}
.gnav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink2) !important;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.gnav a:hover,
.gnav a[aria-current] {
  background: var(--bg2);
  color: var(--brand) !important;
}
.hd-act {
  display: flex;
  gap: 6px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
}
.icon-btn svg,
.search-in svg,
.hero-search svg,
.search-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
/* ハンバーガー（スマホ・タブレット） */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: var(--ink);
}
.burger span {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
}
@media (max-width: 1020px) {
  .gnav {
    display: none;
  }
  .hd-act {
    margin-left: auto;
  }
  .burger {
    display: flex;
  }
  .hd-in {
    padding: 8px 14px;
    gap: 10px;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 380px) {
  .hd-theme {
    display: none;
  }
  .logo-txt b {
    font-size: 18px;
  }
  .hd-act {
    gap: 4px;
  }
}
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.drawer-bg {
  position: absolute;
  inset: 0;
  background: rgba(12, 6, 36, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--bg);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  padding: 14px 18px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.3, 0.9, 0.3, 1);
  outline: none;
}
.drawer.open .drawer-bg {
  opacity: 1;
}
.drawer.open .drawer-panel {
  transform: none;
}
.drawer-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.drawer-hd b {
  font-family: var(--display);
  font-size: 18px;
}
.drawer-hd svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.drawer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--ink3);
  font-size: 15px;
  margin-bottom: 10px;
  text-align: left;
}
.drawer-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer-main a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 6px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink) !important;
  text-decoration: none;
}
.drawer-main a[aria-current] {
  color: var(--brand) !important;
}
.drawer-main a span {
  color: var(--ink3);
  font-size: 22px;
}
.drawer-label {
  margin: 20px 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink3);
}
.drawer-v {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.drawer-v a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 2px solid var(--vc);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink) !important;
  text-decoration: none;
  background: var(--card);
}
.drawer-v a b {
  color: var(--vc);
  font-size: 18px;
}
.drawer-theme {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 800;
  font-size: 14px;
  text-align: left;
}
.drawer-sub a {
  display: block;
  padding: 10px 6px;
  font-size: 14px;
  color: var(--ink2) !important;
  text-decoration: none;
}

/* 上へ戻る */
.to-top {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 70;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(174, 62, 201, 0.45);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.to-top:hover {
  transform: translateY(-3px);
}

/* ---------- 検索ダイアログ ---------- */
.search-dlg {
  width: min(680px, calc(100% - 24px));
  max-height: 80vh;
  margin: 8vh auto auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.search-dlg::backdrop {
  background: rgba(15, 8, 40, 0.55);
  backdrop-filter: blur(4px);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
}
.search-close {
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: 8px;
  font-size: 12px;
  padding: 2px 8px;
}
.search-res {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  max-height: calc(80vh - 70px);
}
.search-res a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink) !important;
}
.search-res a:hover,
.search-res a:focus {
  background: var(--bg2);
}
.search-res .stamp {
  grid-row: span 2;
  align-self: start;
}
.search-res b {
  font-weight: 700;
}
.search-res small {
  color: var(--ink3);
  font-size: 13px;
  line-height: 1.5;
}
.search-res .none {
  padding: 20px;
  color: var(--ink3);
  text-align: center;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  animation: kenburns 30s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 10, 50, 0.92) 0%, rgba(25, 12, 70, 0.78) 38%, rgba(25, 12, 70, 0.2) 70%, rgba(25, 12, 70, 0.05) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 18%);
}
@keyframes kenburns {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.12) translate(-1.5%, -1%);
  }
}
.hero-in {
  width: 100%;
  padding-top: 70px;
  padding-bottom: 90px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  margin: 0 0 18px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(252, 196, 25, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(252, 196, 25, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(252, 196, 25, 0);
  }
}
.hero-h1 {
  font-size: clamp(31px, min(8.6vw, 6.6vw + 10px), 82px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 20px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero-uso {
  position: relative;
  display: inline-block;
  background: linear-gradient(100deg, #ff8fab, #ff4d6d 40%, #ffd43b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hero-uso::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  top: 52%;
  height: 0.12em;
  border-radius: 99px;
  background: #ff4d6d;
  transform: rotate(-6deg) scaleX(0);
  transform-origin: left;
  animation: strike 0.7s 0.9s cubic-bezier(0.6, 0, 0.3, 1) forwards;
  box-shadow: 0 0 20px rgba(255, 77, 109, 0.6);
}
@keyframes strike {
  to {
    transform: rotate(-6deg) scaleX(1);
  }
}
.hero-lead {
  font-size: clamp(15px, 1.7vw, 18px);
  max-width: 600px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 26px;
}
.hero-lead strong {
  color: var(--gold);
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  padding: 7px 7px 7px 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  color: #6b6590;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  color: #1d1638;
  background: none;
}
.hero-search button {
  border: 0;
  background: var(--grad);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 999px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 34px;
}
.hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 130px));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-stats li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.hero-stats b {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
}
.hero-stats span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}
@media (max-width: 760px) {
  .hero {
    min-height: auto;
  }
  .hero-bg img {
    object-position: 62% 30%;
  }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(18, 10, 50, 0.55) 0%, rgba(18, 10, 50, 0.86) 45%, rgba(18, 10, 50, 0.95) 85%, var(--bg) 100%);
  }
  .hero-in {
    padding-top: 150px;
    padding-bottom: 50px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
}

/* ---------- セクション ---------- */
.sec {
  padding-top: 56px;
  padding-bottom: 20px;
}
.sec-hd {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  margin: 0 0 24px;
}
.sec-hd span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.sub-hd {
  font-size: 22px;
  margin: 34px 0 16px;
  padding-left: 14px;
  border-left: 6px solid var(--cc, var(--brand));
}
.sub-hd small,
.page-h1 small,
.page-hero h1 small,
.vhero h1 small {
  font-size: 0.55em;
  margin-left: 10px;
  color: var(--ink3);
  font-weight: 700;
}

/* ---------- 判定メーター ---------- */
.meter {
  display: flex;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  gap: 3px;
  background: var(--card);
}
.meter-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--vc);
  color: var(--on-v);
  font-family: var(--display);
  font-weight: 800;
  min-width: 46px;
  transform-origin: left;
  animation: grow 1.1s cubic-bezier(0.3, 0.9, 0.3, 1) both;
}
.meter-seg b {
  font-size: 20px;
}
.meter-seg em {
  font-style: normal;
  font-size: 20px;
}
.meter-seg:nth-child(2) {
  animation-delay: 0.1s;
}
.meter-seg:nth-child(3) {
  animation-delay: 0.2s;
}
.meter-seg:nth-child(4) {
  animation-delay: 0.3s;
}
@media (max-width: 600px) {
  .meter {
    height: 52px;
    gap: 2px;
  }
  .meter-seg {
    min-width: 30px;
    gap: 2px;
  }
  .meter-seg b,
  .meter-seg em {
    font-size: 14px;
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
}
.meter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.meter-legend a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 2px solid var(--vc);
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  background: var(--card);
}
.meter-legend a b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--vc);
  color: var(--on-v);
  font-size: 12px;
}
.meter-legend em {
  font-style: normal;
  color: var(--ink3);
  font-size: 13px;
}
.meter-note {
  margin: 14px 0 0;
  color: var(--ink2);
}
.meter-note strong {
  font-size: 1.4em;
  color: var(--uso);
  font-family: var(--display);
}

/* ---------- 今日の常識 ---------- */
.today-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: var(--card);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.today-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
}
.today-txt {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.today-id {
  margin: 0;
  font-weight: 800;
  color: var(--ink3);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.today-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
}
.today-q {
  margin: 4px 0;
  color: var(--ink2);
  font-size: 14px;
}
.today-btns,
.predict-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.today-btns button,
.predict-btns button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  border-radius: 16px;
  border: 2px solid color-mix(in srgb, var(--vc) 40%, var(--line));
  background: color-mix(in srgb, var(--vc) 7%, var(--card));
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.today-btns button b,
.predict-btns button b {
  font-size: 24px;
  color: var(--vc);
  line-height: 1;
}
.today-btns button:hover,
.predict-btns button:hover {
  transform: translateY(-2px);
  border-color: var(--vc);
}
.today-btns button.picked,
.predict-btns button.picked {
  background: var(--vc);
  color: var(--on-v);
  border-color: var(--vc);
}
.today-btns button.picked b,
.predict-btns button.picked b {
  color: var(--on-v);
}
.today-btns button.answer,
.predict-btns button.answer {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vc) 35%, transparent);
  border-color: var(--vc);
}
.today-res {
  min-height: 1.5em;
  margin: 4px 0;
  font-weight: 800;
}
.today-go {
  align-self: flex-start;
}
@media (max-width: 760px) {
  .today-card {
    grid-template-columns: 1fr;
  }
  .today-txt {
    padding: 22px 20px;
  }
}
.res-ok {
  color: var(--honto);
}
.res-ng {
  color: var(--uso);
}
.res-near {
  color: var(--hanbun);
}

/* ---------- コーナー ---------- */
.corners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.corner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 300px;
  color: #fff !important;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.corner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.6s;
}
.corner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 25%, color-mix(in srgb, var(--cc) 55%, #0a0420) 100%);
}
.corner:hover img {
  transform: scale(1.06);
}
.corner-txt {
  padding: 22px;
  display: grid;
  gap: 4px;
}
.corner-txt b {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
}
.corner-txt em {
  position: absolute;
  top: 16px;
  right: 16px;
  font-style: normal;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cc);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.corner-txt small {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
@media (max-width: 860px) {
  .corners {
    grid-template-columns: 1fr;
  }
  .corner {
    min-height: 230px;
  }
}

/* ---------- 記録 ---------- */
.mine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mine-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.mine-box b {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mine-box span {
  margin-left: 4px;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 700;
}
.mine-box small {
  display: block;
  color: var(--ink3);
  font-size: 12px;
}
.bar {
  height: 8px;
  border-radius: 99px;
  background: var(--bg2);
  overflow: hidden;
  margin-top: 6px;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 99px;
  transition: width 1s;
}
@media (max-width: 760px) {
  .mine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 絞り込み ---------- */
.filters {
  display: grid;
  gap: 12px;
  margin: 22px 0 22px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.search-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--bg2);
  color: var(--ink3);
}
.search-in input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  color: var(--ink);
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--bg2);
  border-radius: 14px;
  justify-self: start;
}
.seg button {
  border: 0;
  background: none;
  padding: 7px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink2);
}
.seg button.on {
  background: var(--card);
  color: var(--brand);
  box-shadow: var(--shadow);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 2px solid var(--line);
  background: var(--card);
  padding: 5px 14px 5px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.chips button:first-child {
  padding-left: 14px;
}
.chips button b {
  color: var(--vc);
}
.chips button.on {
  border-color: var(--vc, var(--brand));
  background: var(--vc, var(--brand));
  color: var(--on-v);
}
.chips button.on[data-f-v=''] {
  color: #fff;
}
.chips button.on b {
  color: var(--on-v);
}
.filter-opts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
}
.filter-opts output {
  margin-left: auto;
  color: var(--ink3);
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
}
.switch span {
  width: 38px;
  height: 22px;
  border-radius: 99px;
  background: var(--line);
  position: relative;
  transition: background 0.2s;
}
.switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.switch input:checked + span {
  background: var(--brand);
}
.switch input:checked + span::after {
  transform: translateX(16px);
}
.switch input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- カード ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1020px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink) !important;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.3, 0.9, 0.3, 1), box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg2);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .card-img img {
  transform: scale(1.05);
}
.card-stamp {
  position: absolute;
  left: 10px;
  bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  padding: 4px 12px 4px 6px;
}
.card-hide {
  display: none;
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  place-items: center;
  font-family: var(--display);
}
.spoiler .card:not(.is-read) .card-stamp {
  display: none;
}
.spoiler .card:not(.is-read) .card-hide {
  display: grid;
}
.card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink3);
  letter-spacing: 0.05em;
}
.card-meta i {
  font-style: normal;
  color: var(--cc);
  background: color-mix(in srgb, var(--cc) 12%, transparent);
  padding: 1px 8px;
  border-radius: 6px;
}
.card-meta .new {
  font-size: 10.5px;
  color: #fff;
  background: var(--grad);
  padding: 1px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}
.card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spoiler .card:not(.is-read) p {
  display: none;
}
.card-read {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--honto);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.card.is-read .card-read {
  display: block;
}
.empty {
  text-align: center;
  color: var(--ink3);
  padding: 40px 0;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s, transform 0.6s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- バンド（診断・チャレンジ） ---------- */
.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 56px;
  padding-bottom: 20px;
}
.band-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.band-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s;
}
.band-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(20, 8, 60, 0.9) 100%);
}
.band-card:hover img {
  transform: scale(1.05);
}
.band-txt {
  padding: 24px 26px;
  display: grid;
  gap: 4px;
}
.band-txt small {
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.band-txt b {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
}
.band-txt em {
  font-style: normal;
  font-weight: 800;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .band {
    grid-template-columns: 1fr;
  }
}

/* ---------- このサイトの約束・FAQ ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: s;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.steps li > b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
}
.steps h3 {
  margin: 14px 0 6px;
  font-size: 19px;
}
.steps p {
  margin: 0;
  color: var(--ink2);
  font-size: 14px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 50px 18px 22px;
  font-weight: 800;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: 'Q';
  font-family: var(--display);
  color: var(--brand2);
  margin-right: 10px;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--ink3);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq details p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--ink2);
}
.faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-links a {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg2);
  text-decoration: none;
}

/* ---------- 一覧ページのヒーロー ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 40px 0 70px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero.short {
  padding-bottom: 50px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 60%, #0d0630) 0%, rgba(13, 6, 48, 0.75) 50%, rgba(13, 6, 48, 0.25) 100%), linear-gradient(0deg, var(--bg) 0, transparent 22%);
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 10px 0 8px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.page-hero h1 small {
  color: rgba(255, 255, 255, 0.85);
}
.page-hero p {
  max-width: 640px;
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}
.page-hero .crumbs a,
.page-hero .crumbs li {
  color: rgba(255, 255, 255, 0.85) !important;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--ink3);
}
.crumbs li + li::before {
  content: '›';
  margin-right: 4px;
  opacity: 0.6;
}
.crumbs a {
  color: var(--ink3) !important;
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.crumbs li[aria-current] {
  max-width: 28em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 10px 0 10px;
}
.page-lead {
  color: var(--ink2);
  margin: 0 0 22px;
}

/* 判定別 */
.vhero {
  padding: 34px 0 40px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--vc) 16%, var(--bg)) 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--line);
}
.vhero-in {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 10px;
}
.vhero h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  margin: 0 0 6px;
}
.vhero p {
  margin: 0;
  color: var(--ink2);
}
.vhero-other {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px !important;
}
.vhero-other a {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  border: 2px solid var(--vc);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink) !important;
  background: var(--card);
}
.vhero-other a b {
  color: var(--vc);
}
@media (max-width: 600px) {
  .vhero-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ---------- 記事 ---------- */
.art {
  padding-top: 26px;
}
.art-hd h1 {
  font-size: clamp(27px, 4.4vw, 44px);
  font-weight: 800;
  margin: 8px 0 12px;
  line-height: 1.38;
}
.q-open,
.q-close {
  color: var(--cc);
}
.art-hd h1 small {
  display: block;
  font-size: 0.45em;
  color: var(--ink3);
  margin-top: 4px;
}
.art-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 800;
}
.art-kicker a {
  color: #fff !important;
  background: var(--cc);
  text-decoration: none;
  padding: 3px 12px;
  border-radius: 999px;
}
.art-kicker span {
  color: var(--ink3);
  letter-spacing: 0.08em;
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink3);
}
.art-fig {
  margin: 0 0 26px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background: var(--bg2);
}
.art-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 予想 */
.predict {
  background: var(--card);
  border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--line));
  border-radius: 24px;
  padding: 22px 22px 18px;
  margin-bottom: 20px;
}
.predict h2 {
  margin: 0 0 4px;
  font-size: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.predict-badge {
  font-size: 12px;
  background: var(--grad);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
}
.predict-why {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink3);
}
.predict-skip {
  display: block;
  margin: 12px auto 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--ink3);
  text-decoration: underline;
}
.predict-result {
  margin: 10px 0 0;
  font-weight: 800;
  font-size: 17px;
  text-align: center;
  min-height: 0;
}
.predict-result:empty {
  display: none;
}
.predict.done .predict-skip {
  display: none;
}
.predict.done button[data-guess] {
  pointer-events: none;
}
@media (max-width: 560px) {
  .today-btns,
  .predict-btns {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 判定カード */
.verdict {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--vc) 14%, var(--card)), var(--card) 70%);
  border: 2px solid color-mix(in srgb, var(--vc) 45%, transparent);
  margin-bottom: 22px;
  overflow: hidden;
}
/* 予想する前は判定カードを出さない（ぼかしで見せると、壊れた表示に見えるため 2026-10-23 変更） */
.js .verdict.locked {
  display: none;
}
.verdict-stamp {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 5px solid var(--vc);
  color: var(--vc);
  display: grid;
  place-items: center;
  align-content: center;
  transform: rotate(-12deg);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--card), 0 0 0 6px color-mix(in srgb, var(--vc) 40%, transparent);
  font-family: var(--display);
  font-weight: 800;
}
.verdict-stamp b {
  font-size: 44px;
  line-height: 1;
}
.verdict-stamp span {
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}
.verdict-stamp.big {
  width: 130px;
  height: 130px;
}
.verdict.pop .verdict-stamp {
  animation: stampin 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes stampin {
  from {
    transform: rotate(-30deg) scale(2.4);
    opacity: 0;
  }
  to {
    transform: rotate(-12deg) scale(1);
    opacity: 1;
  }
}
.verdict-label {
  margin: 0;
  font-weight: 800;
  color: var(--ink2);
}
.verdict-label strong {
  font-family: var(--display);
  font-size: 26px;
  color: var(--vc);
}
.verdict-lead {
  margin: 4px 0 6px;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 800;
  line-height: 1.6;
}
.verdict-def {
  margin: 0;
  font-size: 13px;
  color: var(--ink3);
}
@media (max-width: 560px) {
  .verdict {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .verdict-stamp {
    width: 92px;
    height: 92px;
  }
  .verdict-stamp b {
    font-size: 36px;
  }
}

/* 音声プレーヤー */
.player {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(174, 62, 201, 0.3);
}
.pl-btn {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #ae3ec9;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}
.pl-btn:hover {
  transform: scale(1.06);
}
.pl-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.pl-btn .i-pause,
.player.playing .pl-btn .i-play {
  display: none;
}
.player.playing .pl-btn .i-pause {
  display: block;
}
.pl-main {
  flex: 1;
  min-width: 0;
}
.pl-title {
  margin: 0;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  align-items: baseline;
}
.pl-title small {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 600;
}
.pl-bar {
  width: 100%;
  accent-color: #fff;
  margin: 6px 0 0;
  height: 20px;
}
.pl-time {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
}
.pl-rate {
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* 本文 */
.art-body h2,
.refs h2 {
  font-size: 23px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.art-body h2::before,
.refs h2::before {
  content: '';
  width: 8px;
  height: 26px;
  border-radius: 4px;
  background: var(--grad);
}
.art-body h2:not(:first-child) {
  margin-top: 2.2em;
}
.art-body p {
  font-size: 17px;
  line-height: 2;
  margin: 0 0 1.4em;
  letter-spacing: 0.02em;
}
.tip {
  position: relative;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--card);
  margin: 10px 0 34px;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--card), var(--card)), var(--grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow);
}
.tip-hd {
  margin: 0 0 6px !important;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.tip p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.refs {
  background: var(--bg2);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 26px;
}
.refs ol,
.reflist {
  margin: 0;
  padding-left: 1.4em;
}
.refs li,
.reflist li {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.7;
}
.refs li p,
.reflist li p {
  margin: 0;
}
.ref-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  font-size: 13px;
}
.ref-links a {
  word-break: break-all;
}
.ok {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--honto);
  background: color-mix(in srgb, var(--honto) 12%, transparent);
  padding: 1px 8px;
  border-radius: 999px;
}
.refs-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink3);
}
.reflist li {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  list-style-position: outside;
}
.ref-used {
  margin-top: 6px !important;
  font-size: 12.5px;
  color: var(--ink3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ref-used a {
  background: var(--bg2);
  padding: 1px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.pg-sources .search-in {
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}

/* シェア */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
}
.share span {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink2);
  margin-right: 4px;
}
.share a,
.share button {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border: 0;
  color: #fff !important;
}
.sh-x {
  background: #111;
}
.sh-line {
  background: #06c755;
}
.sh-copy {
  background: var(--ink2);
}
.cta-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--brand) 8%, var(--card));
  border: 1px solid var(--line);
  margin-bottom: 26px;
}
.cta-mini p {
  margin: 0;
  flex: 1 1 300px;
  font-size: 15px;
}
.pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}
.pn a {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.6;
  transition: border-color 0.2s, transform 0.2s;
}
.pn a:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.pn small {
  display: block;
  color: var(--ink3);
  font-size: 12px;
}
.pn-next {
  text-align: right;
}
@media (max-width: 600px) {
  .pn {
    grid-template-columns: 1fr;
  }
}

/* 読書の進み具合 */
.progress-top {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 60;
}

/* ---------- 診断・チャレンジ ---------- */
.quiz,
.game {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  min-height: 300px;
}
.quiz-start,
.game-start {
  text-align: center;
  padding: 20px 0;
}
.quiz-intro {
  font-size: 17px;
}
.game-rules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.game-rules li {
  background: var(--bg2);
  border-radius: 16px;
  padding: 14px 10px;
  font-size: 13px;
  color: var(--ink2);
}
.game-rules b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
}
@media (max-width: 600px) {
  .game-rules {
    grid-template-columns: repeat(2, 1fr);
  }
  .quiz,
  .game {
    padding: 20px 16px;
  }
}
.q-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink3);
  margin-bottom: 8px;
}
.q-prog {
  height: 10px;
  border-radius: 99px;
  background: var(--bg2);
  overflow: hidden;
  margin-bottom: 24px;
}
.q-prog i {
  display: block;
  height: 100%;
  background: var(--grad);
  border-radius: 99px;
  transition: width 0.4s;
}
.q-text {
  font-family: var(--display);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  margin: 0 0 22px;
  line-height: 1.45;
}
.q-choices {
  display: grid;
  gap: 12px;
}
.q-choices button {
  text-align: left;
  padding: 18px 20px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: var(--card);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.q-choices button:hover {
  border-color: var(--brand);
  transform: translateX(4px);
}
.q-choices button i {
  font-style: normal;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg2);
  font-family: var(--display);
  color: var(--brand);
}
.q-anim {
  animation: qin 0.35s cubic-bezier(0.3, 0.9, 0.3, 1);
}
@keyframes qin {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
}
.q-back {
  margin-top: 16px;
  border: 0;
  background: none;
  color: var(--ink3);
  font-size: 13px;
  text-decoration: underline;
}
.result {
  text-align: center;
}
.gauge {
  --p: 0;
  width: 220px;
  height: 220px;
  margin: 10px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#ae3ec9 calc(var(--p) * 1%), var(--bg2) 0);
  position: relative;
}
.gauge::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--card);
}
.gauge b {
  position: relative;
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
}
.gauge b small {
  font-size: 18px;
  color: var(--ink3);
}
.result-rank {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.result-msg {
  color: var(--ink2);
  margin: 0 auto 20px;
  max-width: 560px;
}
.result-list {
  text-align: left;
  margin: 26px 0 10px;
}
.result-list h3 {
  font-size: 19px;
  margin: 0 0 12px;
}
.result-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.result-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg2);
}
.result-list li > b {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.result-list li a {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-top: 4px;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.quiz-list-lead {
  margin: -10px 0 20px;
  color: var(--ink2);
}
.quiz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 760px) {
  .quiz-list {
    grid-template-columns: 1fr;
  }
}
.quiz-list > li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ql-q {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.45;
}
.ql-q b {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
}
.ql-arts {
  display: grid;
  gap: 8px;
}
.ql-art {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: var(--bg2);
  color: var(--ink) !important;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.ql-art:hover {
  transform: translateX(3px);
  background: color-mix(in srgb, var(--brand) 10%, var(--bg2));
}
.ql-art img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
}
.ql-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.ql-txt .stamp {
  font-size: 12px;
}
.ql-t {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}

.g-card {
  perspective: 1200px;
}
.g-face {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.g-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/8;
  background: var(--bg2);
}
.g-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g-title {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}
.g-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink3);
  margin-bottom: 10px;
}
.g-hud b {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
}
.g-combo {
  color: var(--brand2) !important;
}
.g-feedback {
  text-align: center;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg2);
  animation: qin 0.3s;
}
.g-feedback .g-big {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  margin: 0;
}
.g-feedback p {
  margin: 6px 0;
}
.g-feedback .g-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.shake {
  animation: shake 0.4s;
}
@keyframes shake {
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(7px);
  }
  75% {
    transform: translateX(-4px);
  }
}
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}

/* ---------- about ---------- */
.prose h2 {
  font-size: 23px;
  margin: 36px 0 12px;
}
.prose li {
  margin-bottom: 8px;
}
.vdefs {
  display: grid;
  gap: 10px;
}
.vdefs div {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--vc);
}
.vdefs dt {
  font-weight: 800;
  display: flex;
  gap: 10px;
  align-items: center;
}
.vdefs dd {
  margin: 4px 0 0;
  color: var(--ink2);
  font-size: 14px;
}
.author-box {
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.author-box p {
  margin: 0 0 4px;
}
.author-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
}
.author-name small {
  font-size: 13px;
  color: var(--ink3);
}
.nf {
  padding-top: 80px;
  padding-bottom: 80px;
}
.nf-mark {
  font-family: var(--display);
  font-size: 120px;
  line-height: 1;
  margin: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- フッター ---------- */
.ft {
  margin-top: 80px;
  background: #120d2b;
  color: #cfc8f0;
  padding: 50px 0 24px;
}
.ft a {
  color: #e9e3ff !important;
  text-decoration: none;
}
.ft a:hover {
  text-decoration: underline;
}
.ft-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 40px;
}
.ft .logo {
  color: #fff !important;
}
.ft .logo-txt small {
  color: #a59cd3;
}
.ft .logo-txt .logo-pre {
  color: #d9d2ff;
}
.ft-brand p {
  font-size: 13.5px;
  line-height: 1.8;
}
.ft-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ft h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 10px;
}
.ft ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  line-height: 2.1;
}
.ft-copy {
  text-align: center;
  font-size: 12px;
  color: #8f86bd;
  margin: 40px 0 0;
}
@media (max-width: 900px) {
  .ft-in {
    grid-template-columns: 1fr;
  }
  .ft-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* トースト */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 95;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}

@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media print {
  .hd,
  .ft,
  .predict,
  .player,
  .share,
  .band,
  .cta-mini,
  .pn,
  .filters {
    display: none !important;
  }
  .js .verdict.locked {
    filter: none;
    opacity: 1;
  }
}

/* 検索欄のフォーカス（input の outline を消しているので枠で示す） */
.search-box:focus-within,
.search-in:focus-within,
.hero-search:focus-within {
  box-shadow: 0 0 0 3px var(--focus);
}
.hero-search:focus-within {
  box-shadow: 0 0 0 3px var(--gold), 0 12px 40px rgba(0, 0, 0, 0.3);
}
.q-text:focus-visible,
.g-title:focus-visible,
.result-rank:focus-visible {
  outline-offset: 6px;
}
.predict-btns button:disabled,
.today-btns button:disabled {
  cursor: default;
  opacity: 1;
  color: inherit;
}
.predict-btns button.picked:disabled,
.today-btns button.picked:disabled {
  color: var(--on-v);
}

/* 超絶勉強ハック：効果とやり方 */
.hack {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
}
.hack-effect {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 16px 20px;
  border-radius: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, #c2410c 14%, var(--card)), var(--card));
  border: 2px solid color-mix(in srgb, #c2410c 40%, transparent);
}
.hack-effect span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: #c2410c;
  padding: 3px 10px;
  border-radius: 999px;
}
.hack-effect strong {
  font-family: var(--display);
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.5;
}
.hack-how {
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hack-how h2 {
  margin: 0 0 10px;
  font-size: 19px;
}
.hack-how ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: h;
  display: grid;
  gap: 10px;
}
.hack-how li {
  counter-increment: h;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
  line-height: 1.6;
}
.hack-how li::before {
  content: counter(h);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
}
.card .card-effect {
  font-weight: 800;
  color: var(--ink);
}
.hacks-feature {
  position: relative;
}
.hacks-lead {
  margin: -10px 0 20px;
  color: var(--ink2);
}

/* 横に流れるカード列（スマホはスワイプ） */
.rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 18px;
}
@media (max-width: 760px) {
  .rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-left: -20px;
    margin-right: -20px;
    padding: 4px 20px 14px;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar {
    display: none;
  }
  .rail > .card {
    scroll-snap-align: start;
  }
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tabs [role='tab'] {
  border: 2px solid var(--line);
  background: var(--card);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  min-height: 44px;
}
.tabs [role='tab'][aria-selected='true'] {
  background: var(--cc);
  border-color: var(--cc);
  color: #fff;
}
.js .tab-panel[data-inactive] {
  display: none;
}
.all-cta {
  text-align: center;
  margin-top: 26px;
}
.all-cta .btn {
  max-width: 100%;
}
@media (max-width: 560px) {
  .btn-xl {
    padding: 16px 22px;
    font-size: 16px;
  }
}

/* 用語の説明 */
.gloss {
  margin: 0 0 26px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line));
}
.gloss summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
}
.gloss dl {
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.gloss dt {
  font-weight: 800;
  font-size: 14px;
  color: var(--brand);
}
.gloss dd {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
}

/* ---------- このサイトでわかること・メニュー ---------- */
.discover-hd {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 30px;
  align-items: center;
}
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.promises li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 700;
}
.promises b {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-family: var(--display);
}
.promises strong {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 60%, transparent) 62%);
}
.discover-cat {
  position: relative;
  margin: 0;
  width: 190px;
}
.discover-cat img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(80, 40, 160, 0.25));
}
.discover-cat figcaption {
  position: absolute;
  top: -6px;
  right: 120px;
  width: 170px;
  background: var(--card);
  border: 2px solid var(--brand);
  border-radius: 16px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.discover-cat figcaption::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 22px;
  border: 8px solid transparent;
  border-left-color: var(--brand);
}
@media (max-width: 760px) {
  .discover-hd {
    grid-template-columns: 1fr;
  }
  .discover-cat {
    width: 120px;
    justify-self: end;
    margin-top: -10px;
  }
  .discover-cat figcaption {
    right: 108px;
    top: 20px;
    width: 160px;
  }
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
@media (max-width: 1100px) {
  .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
.menu-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.menu-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s;
}
.menu-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 8, 60, 0.05) 20%, rgba(20, 8, 60, 0.88) 100%);
}
.menu-tile:hover img {
  transform: scale(1.07);
}
.menu-txt {
  padding: 10px 12px;
  display: grid;
  gap: 1px;
  line-height: 1.35;
}
.menu-txt small {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
}
.menu-txt b {
  font-family: var(--display);
  font-size: clamp(14px, 1.6vw, 17px);
}
.menu-txt em {
  position: absolute;
  top: 8px;
  right: 8px;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #3b1e8f;
  padding: 2px 9px;
  border-radius: 999px;
}

/* ---------- マスコット「マジカにゃん」 ---------- */
.nyan {
  position: fixed;
  left: calc(10px + env(safe-area-inset-left));
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 65;
  width: 92px;
  height: 92px;
}
.nyan-btn {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 8px 14px rgba(60, 30, 140, 0.35));
}
.nyan-btn img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.nyan-close {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink2);
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s;
}
.nyan:hover .nyan-close,
.nyan:focus-within .nyan-close,
.nyan.talking .nyan-close {
  opacity: 1;
}
.nyan-bubble {
  position: absolute;
  left: 70px;
  bottom: 80px;
  width: min(290px, calc(100vw - 100px));
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--brand);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: var(--shadow-lg);
  transform-origin: 0% 100%;
}
.nyan-bubble::after {
  content: '';
  position: absolute;
  left: 10px;
  bottom: -11px;
  border: 9px solid transparent;
  border-top-color: var(--brand);
  border-bottom: 0;
}
.nyan-bubble a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 800;
}
.nyan-bubble .stamp {
  margin: 0 2px;
}
.nyan-q {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.nyan-q button {
  flex: 1;
  border: 2px solid var(--vc);
  background: color-mix(in srgb, var(--vc) 8%, var(--card));
  border-radius: 12px;
  padding: 6px 4px;
  font-weight: 800;
  font-size: 12px;
}
@media (min-width: 900px) {
  .nyan {
    width: 116px;
    height: 116px;
  }
  .nyan-bubble {
    left: 96px;
    bottom: 100px;
  }
}
@media print {
  .nyan {
    display: none !important;
  }
}

/* 光の粒（ヒーロー） */
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.sparkles i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffe8a3 40%, rgba(255, 220, 120, 0) 70%);
  opacity: 0;
}
.hero-in,
.page-hero-in {
  position: relative;
  z-index: 1;
}
.hero-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 200, 0.18) 50%, transparent 65%);
  transform: translateX(-100%);
  z-index: 0;
}

/* 動き：ヒーローの文字は fx.js が順に出す。JS が動かなくても 2.5 秒後には必ず見える */
.mo :is(.hero-eyebrow, .hero-h1, .hero-lead, .hero-search, .hero-cta, .hero-stats li, .page-hero h1, .page-hero-in > p, .vhero h1, .vhero-in p):not(.fx-in) {
  opacity: 0;
  animation: bm-failsafe 0s 2.5s forwards;
}
@keyframes bm-failsafe {
  to {
    opacity: 1;
  }
}
.nyan-peek {
  position: fixed;
  left: calc(6px + env(safe-area-inset-left));
  bottom: calc(6px + env(safe-area-inset-bottom));
  z-index: 65;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.nyan-peek img {
  width: 140%;
  height: auto;
  margin: -4px 0 0 -20%;
}

/* 用語集 */
.yogo {
  display: grid;
  gap: 12px;
  margin: 0;
}
.yogo > div {
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.yogo dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: var(--brand);
}
.yogo dd {
  margin: 4px 0 0;
}
.yogo dd p {
  margin: 0 0 6px;
}
.yogo summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink3);
}
.yogo ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
  font-size: 14px;
}
.gloss-more {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.drawer-corners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.drawer-corners a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--bg2);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink) !important;
  text-decoration: none;
}
.drawer-corners i {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cc);
}

/* ---------- はじめての人へ ---------- */
.wakaba {
  width: 28px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.hero-beginner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -14px 0 26px;
  padding: 8px 18px 8px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #1d1638 !important;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.hero-beginner:hover {
  transform: translateY(-2px);
}
.hero-beginner span {
  display: grid;
  line-height: 1.3;
}
.hero-beginner small {
  font-size: 11.5px;
  color: #5b5578;
  font-weight: 700;
}
.guide-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 6px 0 10px;
}
.guide-hero .wakaba {
  width: 56px;
  margin-top: 8px;
}
.guide-kicker {
  margin: 0;
  font-weight: 800;
  color: #007a36;
  letter-spacing: 0.08em;
}
.guide-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(21px, 2.8vw, 26px);
  margin: 44px 0 14px;
}
.guide-h2 b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 18px;
}
.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 760px) {
  .guide-steps {
    grid-template-columns: 1fr;
  }
}
.guide-steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.gs-n {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
}
.guide-steps h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}
.guide-steps p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink2);
}
.anat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  border-left: 4px solid var(--line);
  padding-left: 14px;
}
.anat li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
}
.anat i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-style: normal;
  font-weight: 800;
}
.anat b {
  font-size: 16px;
}
.anat p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--ink2);
}
.guide-note {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 18%, var(--card));
  font-size: 14.5px;
}
.courses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .courses {
    grid-template-columns: 1fr;
  }
}
.course {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.course-hd {
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 10px;
  align-items: center;
}
.course-hd span {
  grid-row: span 2;
  font-size: 28px;
}
.course-hd b {
  font-family: var(--display);
  font-size: 17px;
}
.course-hd small {
  color: var(--ink3);
  font-size: 12px;
}
.course ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.course a {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg2);
  color: var(--ink) !important;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}
.course a .stamp {
  font-size: 11px;
  flex-shrink: 0;
}
.guide-corners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 700px) {
  .guide-corners {
    grid-template-columns: 1fr;
  }
}
.guide-corners a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--cc);
  color: var(--ink) !important;
  text-decoration: none;
}
.guide-corners b {
  font-family: var(--display);
}
.guide-corners em {
  font-style: normal;
  font-weight: 800;
  color: var(--ink3);
  font-size: 13px;
}
.guide-corners small {
  grid-column: 1 / -1;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.6;
}
.guide-list {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.guide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}
