/* ================================================================
   原田英語の折り紙 — style.css
   色はすべて :root のトークン。ダークは [data-theme=dark] と OS 設定（auto）で
   ================================================================ */
:root {
  --bg: #fbf6ec;
  --bg2: #f3ead9;
  --card: #fffdf8;
  --ink: #1f1a2e;
  --ink2: #3d3650;
  --muted: #6c6481;
  --line: #eadfca;
  --brand: #d6334a;
  --brand2: #2b4c9b;
  --gold: #e6a51c;
  --grad: linear-gradient(120deg, #d6334a 0%, #ee6a3a 50%, #e6a51c 100%);
  --shadow: 0 1px 2px rgba(60, 30, 20, 0.06), 0 10px 26px -10px rgba(60, 30, 20, 0.22);
  --shadow-lg: 0 2px 4px rgba(60, 30, 20, 0.06), 0 28px 56px -18px rgba(60, 30, 20, 0.35);
  --stage: radial-gradient(ellipse at 50% 35%, #fffaf0 0%, #f4ead6 70%, #ead9bb 100%);
  --r: 20px;
  --jp: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
  --round: 'Zen Maru Gothic', var(--jp);
  --display: 'Fraunces', Georgia, serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #15121d;
  --bg2: #1d1928;
  --card: #221d2f;
  --ink: #f4efe6;
  --ink2: #dcd4c6;
  --muted: #a9a0b8;
  --line: #342d43;
  --brand: #ff6b7d;
  --brand2: #8fa8ff;
  --gold: #ffc14d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 26px -10px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 28px 56px -18px rgba(0, 0, 0, 0.8);
  --stage: radial-gradient(ellipse at 50% 35%, #2d2638 0%, #1f1a29 75%, #17131f 100%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    --bg: #15121d;
    --bg2: #1d1928;
    --card: #221d2f;
    --ink: #f4efe6;
    --ink2: #dcd4c6;
    --muted: #a9a0b8;
    --line: #342d43;
    --brand: #ff6b7d;
    --brand2: #8fa8ff;
    --gold: #ffc14d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 26px -10px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 28px 56px -18px rgba(0, 0, 0, 0.8);
    --stage: radial-gradient(ellipse at 50% 35%, #2d2638 0%, #1f1a29 75%, #17131f 100%);
    color-scheme: dark;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.8 var(--jp);
  overflow-x: hidden;
  /* 和紙のような、ごく薄い繊維 */
  background-image: radial-gradient(rgba(150, 110, 60, 0.05) 1px, transparent 1.2px), radial-gradient(rgba(150, 110, 60, 0.04) 1px, transparent 1.4px);
  background-size: 23px 23px, 37px 37px;
  background-position: 0 0, 11px 17px;
}
img,
svg {
  max-width: 100%;
}
img {
  height: auto;
  display: block;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 8px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 10px;
}
.small {
  font-size: 13px;
  color: var(--muted);
}
.print-only {
  display: none;
}

/* ---- 日本語・英語の切りかえ ---- */
:root[data-lang='ja'] .en:not(.keep) {
  display: none !important;
}
:root[data-lang='en'] .ja:not(.keep) {
  display: none !important;
}
.ja + .en {
  margin-left: 0.35em;
}
span.en {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
:root[data-lang='both'] span.ja + span.en {
  opacity: 0.72;
  font-size: 0.86em;
}

/* ---- ヘッダー ---- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px rgba(214, 51, 74, 0.7);
  transform: rotate(-6deg);
}
.logo-mark svg {
  width: 30px;
  height: 30px;
}
.logo-t {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font: 900 21px var(--round);
}
.logo-t small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.logo-t em {
  font: 800 10px var(--display);
  letter-spacing: 0.32em;
  color: var(--brand);
  font-style: normal;
}
.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--ink2);
  font-weight: 700;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.nav a .en {
  font-size: 10.5px;
  opacity: 0.65;
  margin: 0;
}
:root[data-lang='both'] .nav a span.ja + span.en {
  font-size: 10.5px;
}
.nav a:hover,
.nav a[aria-current] {
  background: var(--bg2);
  color: var(--brand);
}
.hd-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.langsw {
  display: flex;
  background: var(--bg2);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--line);
}
.langsw button {
  border: 0;
  background: none;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
}
.langsw button[aria-pressed='true'] {
  background: var(--card);
  color: var(--brand);
  box-shadow: var(--shadow);
}
.themesw,
.menu-btn {
  border: 1px solid var(--line);
  background: var(--card);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 17px;
}
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-open .menu-btn span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-open .menu-btn span:nth-child(2) {
  opacity: 0;
}
.menu-open .menu-btn span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
/* ヘッダーの「さがす」：広い画面は入力欄、せまい画面は虫めがねボタン → ヘッダーの下に開く */
.hd-search {
  position: relative;
  display: flex;
  align-items: center;
}
.hd-q {
  width: 168px;
  padding: 9px 40px 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  transition: width 0.25s, border-color 0.2s;
}
.hd-q:focus {
  width: 230px;
  border-color: var(--brand);
  outline: none;
}
.hd-q::-webkit-search-cancel-button {
  display: none;
}
.hd-s-btn {
  position: absolute;
  right: 4px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
}
.hd-s-btn svg {
  width: 18px;
  height: 18px;
}
.hd-s-btn:hover {
  color: var(--brand);
}
.hd-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35);
  padding: 6px;
  z-index: 60;
}
.hd-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.hd-results a:hover,
.hd-results a[aria-selected='true'] {
  background: var(--bg2);
}
.hd-results img {
  width: 64px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}
.hr-ic {
  width: 64px;
  text-align: center;
  font-size: 22px;
  flex: none;
}
.hr-t {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.hr-t b {
  font-size: 15px;
}
.hr-t small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-results a.hr-all {
  justify-content: center;
  font-weight: 800;
  color: var(--brand);
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  margin-top: 4px;
}
.hr-none {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
@media (max-width: 1140px) {
  .hd-q {
    display: none;
  }
  .hd-s-btn {
    position: static;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
  }
  .search-open .hd-search {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 10px 16px 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 20px -14px rgba(0, 0, 0, 0.35);
    justify-content: center;
  }
  .search-open .hd-q {
    display: block;
    width: 100%;
    max-width: 560px;
    font-size: 16px;
    padding: 11px 16px;
  }
  .search-open .hd-s-btn {
    margin-left: 8px;
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    flex: none;
  }
  .search-open .hd-results {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 32px));
    top: calc(100% - 4px);
  }
  .hd-in {
    position: relative;
  }
}
@media (max-width: 920px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .hd-tools {
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  .logo-t {
    font-size: 18px;
  }
  .langsw button {
    padding: 4px 7px;
  }
  .hd-in {
    gap: 8px;
    padding: 8px 12px;
  }
}

/* ---- ボタン・チップ ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.btn.primary {
  background: var(--grad);
  color: #fff;
  border: 0;
}
.btn.primary:hover {
  color: #fff;
}
.lv {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  padding: 1px 10px 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.lv i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: -1px;
}
.cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink2);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1px 11px;
  border-radius: 999px;
}
.orig {
  font-size: 12px;
  font-weight: 800;
  padding: 1px 11px;
  border-radius: 999px;
  border: 1px dashed var(--muted);
  color: var(--muted);
}
.orig.original {
  border: 0;
  background: var(--grad);
  color: #fff;
}
.chips-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.chip {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink2);
  transition: all 0.2s;
}
.chip i {
  font-style: normal;
  color: var(--c, var(--gold));
  font-size: 11px;
  margin-right: 3px;
  letter-spacing: -1px;
}
.chip.on {
  background: var(--c, var(--ink));
  border-color: var(--c, var(--ink));
  color: #fff;
}
.chip.on i {
  color: #fff;
}
.chip:not(.on):hover {
  border-color: var(--c, var(--brand));
  color: var(--c, var(--brand));
}

/* ---- ヒーロー ---- */
.hero {
  position: relative;
  min-height: min(84vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 42%, transparent 75%), linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero-in {
  padding: 48px clamp(18px, 5vw, 72px);
  max-width: 720px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.kicker > span:first-child {
  background: var(--grad);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--display);
}
.hero-h {
  margin: 0;
  font: 900 clamp(34px, 5.4vw, 74px) / 1.15 var(--round);
  letter-spacing: -0.01em;
}
.hero-h span {
  display: block;
}
.hero-h em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-h .h-en {
  font: 800 clamp(18px, 2.4vw, 28px) var(--display);
  color: var(--brand2);
  margin-top: 10px;
  letter-spacing: 0.01em;
}
.hero-lead {
  font-size: 17px;
  color: var(--ink2);
  margin: 18px 0 24px;
  max-width: 34em;
}
.hero-lead .en {
  display: block;
  margin: 6px 0 0 !important;
  font-family: var(--jp);
  font-weight: 500;
  font-size: 14px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-stats li {
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  backdrop-filter: blur(6px);
}
.hero-stats b {
  display: block;
  font: 800 26px var(--display);
  color: var(--ink);
  line-height: 1.1;
}
.hero-stats .en {
  margin: 0 !important;
}
.hero-live {
  position: relative;
  align-self: end;
  justify-self: end;
  width: min(440px, 92%);
  aspect-ratio: 1 / 1.05;
  margin: 0 clamp(18px, 4vw, 56px) 40px 0;
  border-radius: 28px;
  background: color-mix(in srgb, var(--card) 62%, transparent);
  border: 1px solid color-mix(in srgb, #fff 60%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-live canvas {
  position: absolute;
  inset: 8% 6% 14%;
  width: 88%;
  height: 78%;
}
.hero-live .live-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--card) 85%, transparent);
}
.hero-live .live-cap i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e03131;
  box-shadow: 0 0 0 4px rgba(224, 49, 49, 0.2);
  animation: pulse 1s infinite alternate;
}
.hero-live .live-cap a {
  margin-left: auto;
  font-size: 13px;
}
.hero-h .l2 {
  white-space: nowrap;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, color-mix(in srgb, var(--bg) 92%, transparent) 55%, var(--bg) 100%);
  }
  .hero-live {
    justify-self: center;
    width: min(360px, 88%);
    margin: 0 auto 30px;
  }
  .hero-in {
    padding-top: 0;
  }
}

/* ---- 特長 ---- */
.feats {
  max-width: 1200px;
  margin: 0 auto 10px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
}
.feat > span {
  font-size: 28px;
}
.feat b {
  font: 800 16px var(--round);
}
.feat b .en {
  display: block;
  margin: 0 !important;
  font-size: 13px;
}
.feat small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.feat small .en {
  display: none;
}
@media (max-width: 860px) {
  .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- セクション ---- */
.sec {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 18px 24px;
}
.big-h {
  font: 900 clamp(28px, 4vw, 42px) / 1.2 var(--round);
  margin: 0 0 18px;
}
.big-h .en {
  display: block;
  margin: 2px 0 0 !important;
  font-size: 0.5em;
  color: var(--brand);
  opacity: 1 !important;
}
.sec-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.finder {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q {
  width: 100%;
  max-width: 520px;
  padding: 13px 18px 13px 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23998' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 16px center / 18px no-repeat;
  font-size: 16px;
}
.q:focus {
  border-color: var(--brand);
  outline: none;
}
.none {
  text-align: center;
  color: var(--muted);
  padding: 30px;
}

/* ---- 作品いちらん：カテゴリーごと ---- */
.mgroup {
  margin: 0 0 34px;
}
.mg-h {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 14px;
  padding: 0 0 8px;
  border-bottom: 3px solid color-mix(in srgb, var(--c) 35%, transparent);
  font: 800 22px var(--round);
}
.mg-h .en {
  font: 700 15px var(--display);
  color: var(--muted);
}
.mg-n {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.mg-more {
  display: block;
  margin: 16px auto 0;
  padding: 10px 26px;
  border: 2px solid var(--c);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 800 15px var(--round);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s;
}
.mg-more:hover {
  background: var(--c);
  color: #fff;
}
.mg-more .en {
  font-family: var(--display);
  font-size: 13px;
  margin-left: 6px;
}

/* ---- カード ---- */
.cards.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 18px;
}
/* 横スクロールはさせない：はみ出す分は下の行へ折り返す */
.cards.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 16px;
  padding: 4px 0 18px;
}
.cards.row > .row-x {
  display: none;
}
.row-more {
  --c: var(--brand);
  margin-top: 4px;
  white-space: nowrap;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.card-art {
  position: relative;
  aspect-ratio: 1 / 0.86;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--paper) 14%, #fffdf8) 0%, color-mix(in srgb, var(--paper) 26%, #f2e8d6) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
:root[data-theme='dark'] .card-art {
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--paper) 22%, #2a2436) 0%, #1c1826 100%);
}
.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.card-fold {
  position: absolute;
  inset: 9% 12%;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 12px rgba(60, 30, 20, 0.25));
  transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.card-bg + .card-fold {
  inset: auto 5% 5% auto;
  width: 46%;
  height: 52%;
}
.card:hover .card-fold {
  transform: scale(1.08) rotate(-4deg);
}
.thumb-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.badge-orig {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--grad);
  color: #fff;
  font: 800 10px var(--display);
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 999px;
}
.card-body {
  padding: 12px 14px 14px;
}
.card h3 {
  margin: 0 0 6px;
  font: 800 18px/1.3 var(--round);
}
.card h3 small {
  display: block;
  font: 600 13px var(--display);
  color: var(--muted);
}
:root[data-lang='en'] .card h3 {
  font-size: 0;
}
:root[data-lang='en'] .card h3 small {
  font-size: 17px;
  color: var(--ink);
}
.card-meta {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
}
.steps-n .en {
  margin: 0 !important;
  font-size: 1em !important;
  opacity: 1 !important;
  font-family: inherit;
}
:root[data-lang='both'] .steps-n .en {
  display: none;
}

/* ---- レベル ---- */
.levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.lvbox {
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--line);
  border-top: 5px solid var(--c);
  padding: 16px;
}
.lvbox h3 {
  margin: 0;
  font: 800 16px var(--round);
  color: var(--c);
}
.lvbox h3 .en {
  display: block;
  margin: 0 !important;
  font-size: 13px;
}
.lv-ic {
  font-size: 28px;
  margin: 0;
}
@media (max-width: 860px) {
  .levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- ティーザー ---- */
.teasers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.teaser {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  background: var(--grad);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.teaser.t-words {
  background: linear-gradient(135deg, #2b4c9b, #5f3dc4);
}
.teaser.t-print {
  background: linear-gradient(135deg, #2b8a3e, #1098ad);
}
.teaser img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.teaser:hover img {
  transform: scale(1.06);
}
.teaser:hover {
  color: #fff;
  transform: translateY(-4px);
}
.teaser > div {
  position: relative;
  padding: 22px;
  background: linear-gradient(0deg, rgba(20, 10, 30, 0.85), rgba(20, 10, 30, 0));
  width: 100%;
}
.teaser .kicker {
  color: #ffd43b;
}
.teaser h2 {
  margin: 0 0 4px;
  font: 900 24px var(--round);
}
.teaser h2 .en {
  display: block;
  margin: 0 !important;
  font-size: 15px;
}
.teaser p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.teaser p .en {
  display: none;
}
@media (max-width: 860px) {
  .teasers {
    grid-template-columns: 1fr;
  }
}

/* ---- 作品ページ ---- */
.crumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 18px 0;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
}
.mp-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 18px 14px;
}
.mp-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.mp-head h1 {
  margin: 8px 0 2px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font: 900 clamp(32px, 5vw, 52px) / 1.15 var(--round);
}
.mp-head h1 .en-n {
  font: 800 clamp(20px, 2.6vw, 28px) var(--display);
  color: var(--lv);
}
.mp-desc {
  margin: 4px 0 8px;
  color: var(--ink2);
  max-width: 60em;
}
.mp-desc .en {
  display: block;
  margin: 0 !important;
  font-family: var(--jp);
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}
.mp-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink2);
}
.mp-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.stage-wrap {
  position: sticky;
  top: 70px;
  background: var(--card);
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stage {
  position: relative;
  aspect-ratio: 4 / 3.1;
  background: var(--stage);
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}
.hud {
  position: absolute;
  left: 14px;
  top: 12px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.hud-step {
  font: 800 13px var(--display);
  letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--card) 85%, transparent);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--ink2);
}
.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  font-size: 32px;
  padding-left: 7px;
  box-shadow: 0 16px 34px -10px rgba(214, 51, 74, 0.8);
  transition: opacity 0.3s, transform 0.3s;
}
.big-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.stage.started .big-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
}
.cap {
  padding: 14px 20px 6px;
  min-height: 92px;
  border-top: 1px solid var(--line);
}
.cap p {
  margin: 0;
}
.cap-ja {
  font: 800 19px/1.5 var(--round);
}
.cap-en {
  font: 600 17px/1.5 var(--display);
  color: var(--brand2);
  margin-top: 2px !important;
}
.cap .num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font: 800 15px var(--display);
  margin-right: 8px;
  vertical-align: 2px;
}
.ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 12px;
  flex-wrap: wrap;
}
.ctrl > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 17px;
  display: grid;
  place-items: center;
}
.ctrl > button.play {
  width: 54px;
  height: 54px;
  background: var(--grad);
  color: #fff;
  border: 0;
  font-size: 21px;
  box-shadow: 0 8px 18px -8px rgba(214, 51, 74, 0.8);
}
.ticks {
  flex: 1;
  min-width: 120px;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0 6px;
}
.ticks button {
  flex: 1;
  height: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--line);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.ticks button.done {
  background: color-mix(in srgb, var(--brand) 55%, var(--line));
}
.ticks button.on {
  background: var(--brand);
  height: 14px;
}
.ticks button i {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--gold);
}
.ctrl-r {
  display: flex;
  gap: 6px;
}
.pill {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  height: 36px;
  min-width: 42px;
  padding: 0 10px;
  font-weight: 800;
  font-size: 13px;
}
.pill[aria-pressed='true'],
.pill[aria-expanded='true'] {
  background: var(--ink);
  color: var(--bg);
}
.papers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 16px 16px;
}
.papers button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background-size: cover;
  position: relative;
}
.papers button[aria-pressed='true'] {
  border-color: var(--ink);
  transform: scale(1.1);
  box-shadow: var(--shadow);
}
.papers button span {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  font-size: 10px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--muted);
  display: none;
}
.papers button:hover span {
  display: block;
}
@media (max-width: 960px) {
  .mp-grid {
    grid-template-columns: 1fr;
  }
  .stage-wrap {
    position: relative;
    top: 0;
  }
}
@media (max-width: 520px) {
  .ctrl-r {
    width: 100%;
    justify-content: center;
  }
  .stage {
    aspect-ratio: 1 / 1;
  }
  .cap-ja {
    font-size: 17px;
  }
  .cap-en {
    font-size: 15px;
  }
}
/* 大きな画面 */
.stage-wrap:fullscreen {
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: var(--card);
}
.stage-wrap:fullscreen .stage {
  flex: 1;
  aspect-ratio: auto;
}
.stage-wrap:fullscreen .cap-ja {
  font-size: 28px;
}
.stage-wrap:fullscreen .cap-en {
  font-size: 24px;
}

/* 手順のリスト */
.sec-h {
  font: 900 22px var(--round);
  margin: 0 0 12px;
}
.sec-h .en {
  font-size: 15px;
  color: var(--brand);
}
.st-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.st {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.st.on {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent), var(--shadow);
  transform: translateX(4px);
}
.st-btn {
  border: 0;
  background: var(--stage);
  border-radius: 12px;
  padding: 6px;
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.st-fig svg {
  width: 100%;
  height: auto;
  max-height: 136px;
  display: block;
}
.st-n {
  position: absolute;
  left: 6px;
  top: 6px;
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font: 800 15px/28px var(--display);
  text-align: center;
  z-index: 1;
}
.st-txt p {
  margin: 0;
}
.st-txt .ja {
  font: 700 16.5px/1.6 var(--round);
}
.st-txt .en {
  font: 600 15.5px/1.55 var(--display);
  color: var(--brand2);
  margin: 4px 0 0 !important;
}
.st-tip {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px !important;
}
.gl {
  color: inherit;
  text-decoration: underline dotted 1.5px;
  text-decoration-color: color-mix(in srgb, var(--gold) 80%, transparent);
  text-underline-offset: 4px;
}
.gl:hover {
  background: color-mix(in srgb, var(--gold) 25%, transparent);
  border-radius: 4px;
}
.say {
  border: 0;
  background: color-mix(in srgb, var(--brand2) 12%, transparent);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  font-size: 14px;
  vertical-align: middle;
  margin-left: 4px;
}
.say.playing {
  background: var(--brand2);
  animation: pulse 0.8s infinite alternate;
}
@keyframes pulse {
  to {
    transform: scale(1.12);
  }
}
@media (max-width: 520px) {
  .st {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
  }
  .st-txt .ja {
    font-size: 15px;
  }
}

/* 作品の下のセクション */
.mp-play,
.mp-fact,
.mp-words,
.mp-tools,
.mp-next {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 18px;
}
.mp-play,
.mp-fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  max-width: 1244px;
  margin: 12px auto;
  padding: 18px 22px;
}
.mp-play p,
.mp-fact p {
  margin: 0;
}
.mp-play .en,
.mp-fact .en {
  font-family: var(--display);
  color: var(--brand2);
  margin-top: 6px !important;
}
.wl {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 10px;
}
.wl li {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px 8px 14px;
}
.wl a,
.wl-x {
  flex: 1;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.wl b {
  font: 700 16px var(--display);
}
.wl span span,
.wl a span {
  font-size: 13px;
  color: var(--muted);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s;
}
.tool:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  color: var(--ink);
}
.tool-ic {
  font-size: 28px;
}
.tool b {
  font: 800 16px var(--round);
}
.tool b .en {
  display: block;
  margin: 0 !important;
  font-size: 13px;
}
.tool small {
  color: var(--muted);
  font-size: 13px;
}
.tool small .en {
  display: none;
}
/* 動画を作っている間：進み具合のバー */
.tool.busy {
  border-color: var(--brand);
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 18%, var(--card)) var(--p, 0%), var(--card) var(--p, 0%));
}
@media (max-width: 720px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- フッター ---- */
.ft {
  margin-top: 60px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
}
.ft-in {
  max-width: 1280px;
  margin: auto;
  padding: 36px 18px 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: 28px;
}
.ft-brand p {
  font-size: 14px;
  color: var(--ink2);
}
.ft-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ft-nav a {
  color: var(--ink2);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.ft-credit p {
  margin: 0 0 8px;
}
.credit {
  font-size: 15px;
}
.credit a {
  font-weight: 800;
}
.copy {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .ft-in {
    grid-template-columns: 1fr;
  }
}

/* ---- 出てくる動き ---- */
.mo .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mo .rv.in {
  opacity: 1;
  transform: none;
}

/* ---- 印刷 ---- */
@media print {
  @page {
    size: A4;
    margin: 10mm;
  }
  body {
    background: #fff;
    font-size: 11px;
  }
  .hd,
  .ft,
  .crumbs,
  .stage-wrap,
  .mp-tools,
  .mp-next,
  .mp-words,
  .say,
  .big-play,
  .skip {
    display: none !important;
  }
  .print-only {
    display: block;
  }
  .mp-head h1 {
    font-size: 24px;
  }
  .mp-desc,
  .mp-meta {
    font-size: 11px;
  }
  .mp-grid {
    display: block;
    padding: 0;
  }
  .steps .sec-h {
    display: none;
  }
  .st-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .st {
    display: flex;
    flex-direction: column;
    break-inside: avoid;
    border: 1px solid #ccc;
    padding: 6px;
    transform: none !important;
    box-shadow: none !important;
  }
  .st-btn {
    background: #fff;
    width: 100%;
    aspect-ratio: auto;
  }
  .st-fig svg {
    max-height: 150px;
  }
  .st-txt .ja {
    font-size: 11.5px;
  }
  .st-txt .en {
    font-size: 11px;
    display: block !important;
  }
  .stamp-btn {
    display: none;
  }
  .mp-play,
  .mp-fact {
    border: 1px solid #ccc;
    padding: 6px 10px;
    margin: 6px 0;
  }
  .print-foot {
    margin-top: 8px;
    text-align: center;
    font-size: 10px;
    color: #555;
  }
}

/* カテゴリーのタイル */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cat-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--c);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.3s;
}
.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.6s;
}
.cat-tile:hover {
  transform: translateY(-4px);
  color: #fff;
}
.cat-tile:hover img {
  transform: scale(1.07);
}
.ct-in {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  background: linear-gradient(0deg, rgba(20, 10, 30, 0.8), transparent);
  display: flex;
  flex-direction: column;
}
.ct-ic {
  font-size: 22px;
}
.cat-tile b {
  font: 900 18px var(--round);
  line-height: 1.25;
}
.cat-tile b .en {
  display: block;
  margin: 0 !important;
  font-size: 12.5px;
  opacity: 0.9 !important;
}
.cat-tile small {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}
.cat-tile small .en {
  font-size: 1em !important;
}
@media (max-width: 860px) {
  .cat-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* できた！スタンプ・ずかん */
/* できあがりカードの下に横いっぱい。左に丸いはんこ、右に「日本語／英語」を2段 */
.stamp-btn {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 20px 10px 10px;
  border: 2.5px dashed var(--brand);
  border-radius: 18px;
  background: var(--card);
  color: var(--brand);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--brand) 25%, transparent);
  transition: background 0.2s, box-shadow 0.2s;
}
.stamp-btn:hover {
  background: color-mix(in srgb, var(--brand) 7%, var(--card));
}
.stamp-btn:active {
  box-shadow: 0 1px 0 color-mix(in srgb, var(--brand) 25%, transparent);
}
.stamp-ic {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2.5px solid var(--brand);
  background: var(--card);
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  transition: transform 0.3s;
}
.stamp-t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 17px;
}
.stamp-btn .ja {
  font: 800 1em/1.35 var(--round);
  color: inherit;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.stamp-btn .en {
  font: 700 0.86em/1.3 var(--display);
  color: var(--muted);
  margin: 0 !important;
}
.stamp-btn .stamp-on {
  display: none;
}
.stamp-btn.on {
  border-style: solid;
  background: var(--brand);
  color: var(--card);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--brand) 55%, #000);
}
.stamp-btn.on .stamp-off {
  display: none;
}
.stamp-btn.on .stamp-on {
  display: flex;
}
.stamp-btn.on .en {
  color: var(--card);
  opacity: 0.9;
}
.stamp-btn.on .stamp-ic {
  border-color: var(--card);
  transform: rotate(-12deg);
}
.card.done .card-art::after {
  content: '💮';
  position: absolute;
  right: 8px;
  top: 6px;
  font-size: 30px;
  transform: rotate(-12deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}
.zukan .zk-in {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.zk-count {
  font: 800 18px var(--round);
  margin: 0;
}
.zk-count b {
  font: 800 34px var(--display);
  color: var(--brand);
}
.zk-bar {
  height: 14px;
  background: var(--bg2);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}
.zk-bar i {
  display: block;
  height: 100%;
  background: var(--grad);
  border-radius: 999px;
  transition: width 1s;
}
.zk-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bdg {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border-radius: 14px;
  padding: 6px 12px;
  opacity: 0.45;
  filter: grayscale(1);
}
.bdg.on {
  opacity: 1;
  filter: none;
  background: color-mix(in srgb, var(--gold) 20%, var(--card));
}
.bdg b {
  font-size: 22px;
}
.bdg small {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 800;
}
.bdg small .en {
  margin: 0 !important;
  font-size: 11px;
}
.bdg em {
  font: 800 12px var(--display);
  color: var(--muted);
  font-style: normal;
}

/* ---- ドロワー（スマホのメニュー） ---- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.drawer-bg {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 30, 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--bg);
  box-shadow: -20px 0 50px rgba(20, 10, 30, 0.3);
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer.open {
  pointer-events: auto;
}
.drawer.open .drawer-bg {
  opacity: 1;
}
.drawer.open .drawer-panel {
  transform: none;
}
.menu-open,
.menu-open body {
  overflow: hidden;
}
.dr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.dr-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 18px;
}
.dr-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dr-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.dr-links a[aria-current] {
  border-color: var(--brand);
  box-shadow: inset 4px 0 0 var(--brand);
}
.dr-ic {
  font-size: 22px;
  width: 34px;
  text-align: center;
}
.dr-t {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.dr-t b {
  font: 800 16px var(--round);
}
.dr-t small {
  font: 600 12px var(--display);
  color: var(--muted);
}
.dr-go {
  font-size: 22px;
  color: var(--muted);
}
.dr-h {
  margin: 12px 0 2px;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}
.dr-h .en {
  font-size: 11px;
}
.dr-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dr-cats a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
}
.dr-set {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dr-set .langsw {
  justify-content: space-between;
}
.dr-set .langsw button {
  flex: 1;
  min-height: 40px;
  font-size: 14px;
}
.themesw.wide {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.dr-credit {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* ---- 上へ戻る ---- */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(214, 51, 74, 0.75);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.to-top svg {
  width: 24px;
  height: 24px;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  transform: translateY(-3px);
}
.menu-open .to-top {
  opacity: 0;
  pointer-events: none;
}

/* ---- スマホの細かい調整 ---- */
@media (max-width: 560px) {
  .hd-tools .langsw {
    display: none;
  }
  .hd-tools .themesw {
    display: none;
  }
  .sec {
    padding: 40px 14px 18px;
  }
  .feats {
    padding: 0 14px;
    gap: 10px;
  }
  .feat {
    padding: 14px;
  }
  .cards.grid,
  .cards.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card h3 {
    font-size: 16px;
  }
  .card-body {
    padding: 10px 10px 12px;
  }
  .card-meta .steps-n {
    display: none;
  }
  .card-meta .lv .en {
    display: none;
  }
  :root[data-lang='en'] .card-meta .lv .en {
    display: inline;
  }
  :root[data-lang='en'] .card-meta .lv .ja {
    display: none;
  }
  .card-meta .lv {
    max-width: 100%;
    overflow: hidden;
  }
  .hero-in {
    padding: 8px 16px 24px;
  }
  .hero-lead {
    font-size: 15.5px;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    justify-content: center;
    padding: 14px 16px;
  }
  .btn .en {
    font-size: 12px;
  }
  .hero-stats li {
    padding: 6px 12px;
  }
  .hero-stats b {
    font-size: 21px;
  }
  /* チップは段ちがいにならないよう、同じ幅のマスにそろえる */
  .chips-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .chips-row:has(> [data-lv]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* レベルは星を上・名前を下の2段にして、3列でも切れないように */
  .chips-row:has(> [data-lv]) .chip {
    flex-direction: column;
    gap: 0;
    padding: 4px;
    line-height: 1.15;
  }
  .chips-row:has(> [data-lv]) .chip i {
    margin: 0;
  }
  :root[data-lang='both'] .chip span.ja + span.en,
  :root[data-lang='both'] .mg-more span.ja + span.en {
    display: none;
  }
  .chip {
    min-height: 40px;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
    overflow: hidden;
  }
  .mp-head h1 {
    gap: 6px 10px;
  }
  .mp-meta {
    font-size: 13px;
    gap: 4px 12px;
  }
  .mp-grid {
    padding: 6px 10px 20px;
  }
  .stage-wrap {
    border-radius: 20px;
  }
  .cap {
    padding: 12px 14px 4px;
    min-height: 0;
  }
  .ctrl {
    padding: 6px 10px 12px;
    gap: 6px;
  }
  .ticks {
    order: 5;
    flex-basis: 100%;
    padding: 6px 2px 0;
  }
  .ctrl-r {
    order: 4;
    margin-left: auto;
    width: auto;
  }
  .papers button {
    width: 44px;
    height: 44px;
  }
  .phero {
    min-height: 260px;
  }
  .phero-in {
    padding: 90px 14px 14px;
  }
  .gw {
    padding: 12px;
    gap: 10px;
  }
  .gw-term {
    font-size: 19px;
  }
  .qz-card {
    padding: 14px;
  }
  .qz-opt {
    font-size: 15px;
    padding: 12px 6px;
  }
  .ft-in {
    padding: 28px 14px 90px;
  }
}
@media (max-width: 360px) {
  .logo-t {
    font-size: 16px;
  }
  .logo-mark {
    width: 34px;
    height: 34px;
  }
  .cards.grid,
  .cards.row {
    gap: 8px;
  }
  .ctrl > button {
    width: 40px;
    height: 40px;
  }
  .ctrl > button.play {
    width: 48px;
    height: 48px;
  }
}

/* Codex のアイコン（絵文字の代わり） */
img.emo {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  vertical-align: -0.28em;
  object-fit: contain;
  margin: 0 0.06em;
}
.ctrl svg,
.big-play svg {
  width: 22px;
  height: 22px;
}
.big-play svg {
  width: 38px;
  height: 38px;
}
.big-play {
  padding-left: 4px;
  display: grid;
  place-items: center;
}
.say img.emo {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0;
}
.say {
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.qz-listen img.emo {
  width: 80px;
  height: 80px;
}
.qz-listen {
  background: var(--card) !important;
  border: 3px solid var(--line) !important;
}
.qz-rank img.emo {
  width: 96px;
  height: 96px;
}
.stamp-ic img.emo {
  width: 34px;
  height: 34px;
}

/* 姉妹サイト・お問い合わせ */
.ft-sisters {
  grid-column: 1 / -1;
  order: -1;
}
.ft-h {
  font-weight: 800;
  margin: 0 0 8px;
}
.ft-h .en {
  font-size: 12px;
}
.ft-sisters ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.ft-sisters a {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  transition: transform 0.2s, border-color 0.2s;
}
.ft-sisters a:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  color: var(--ink);
}
.ss-ic {
  font-size: 28px;
}
.ft-sisters b {
  display: block;
  font: 800 15px var(--round);
}
.ft-sisters small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.ft-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ft-contact .btn {
  padding: 10px 18px;
}
@media (max-width: 860px) {
  .ft-sisters ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .ft-sisters ul {
    grid-template-columns: 1fr;
  }
}
.dr-sis {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dr-sis a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.sis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 12px;
}
.sis {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
}
.sis:hover {
  border-color: var(--brand);
  color: var(--ink);
}
.sis-ic {
  font-size: 30px;
}
.sis b {
  font: 800 16px var(--round);
}
.sis small {
  font: 600 12px var(--display);
  color: var(--brand);
}
.sis span:last-child {
  font-size: 13px;
  color: var(--muted);
}

/* 英語版へのリンク */
.lang-link {
  font: 800 12px var(--display);
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #fff;
  background: var(--brand2);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}
.lang-link:hover {
  color: #fff;
  filter: brightness(1.1);
}
.lang-link[lang='ja'] {
  font-family: var(--round);
  letter-spacing: 0;
  background: var(--brand);
}
.nav a {
  white-space: nowrap;
  padding: 7px 9px;
}

/* 英語版：英語を主に */
:root[data-lang='en'] .hero-h .h-en {
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.1;
  color: var(--ink);
  margin-top: 0;
}
:root[data-lang='en'] .mp-head h1 .en-n {
  order: -1;
  font-size: 1em;
  color: var(--ink);
}
:root[data-lang='en'] .mp-head h1 .ja-n {
  font-size: 0.5em;
  color: var(--muted);
}

/* レベルちがいの別バージョン */
.mp-ver {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.mp-ver a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: var(--c);
  border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 10%, var(--card));
  border-radius: 999px;
  padding: 2px 12px;
}
.mp-ver i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: -1px;
}
.mp-versions {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px;
}

/* ================= はらだくん ================= */
.owl-greet {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.owl-big {
  border: 0;
  background: none;
  padding: 0;
  width: 128px;
  height: 128px;
  flex: none;
  filter: drop-shadow(0 12px 16px rgba(60, 30, 20, 0.28));
}
.owl-big img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.owl-bubble {
  position: relative;
  margin: 0 0 40px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14.5px;
  max-width: 340px;
  box-shadow: var(--shadow);
}
.owl-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  bottom: 16px;
  width: 16px;
  height: 16px;
  background: var(--card);
  border-left: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  transform: rotate(45deg);
}
.owl-bubble span[lang='en'] {
  font-family: var(--display);
  color: var(--brand2);
  font-size: 13px;
}
.owl-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 6px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--gold) 14%, var(--card));
  border: 1.5px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 16px;
}
.owl-tip img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: none;
}
.owl-tip p {
  margin: 0;
  font-weight: 700;
  font-size: 14.5px;
}
.phero-owl {
  position: absolute;
  right: max(18px, 4vw);
  bottom: 6px;
  width: clamp(110px, 16vw, 210px);
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 14px 18px rgba(40, 20, 30, 0.3));
}
.qz-owl {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.nf-owl {
  width: 200px;
  height: auto;
  margin: 0 auto;
}
.ft-owl {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: -6px;
}
/* 背景を飛ぶ紙の鶴 */
.fly-cranes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.fly-cranes i {
  position: absolute;
  left: 0;
  width: var(--s);
  height: var(--s);
  opacity: 0;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.15));
}
.fly-cranes svg {
  width: 100%;
  height: 100%;
}
.hero-in,
.phero-in {
  position: relative;
  z-index: 1;
}
@media (max-width: 560px) {
  .owl-big {
    width: 96px;
    height: 96px;
  }
  .owl-bubble {
    font-size: 13.5px;
  }
  .phero-owl {
    width: 96px;
    bottom: auto;
    top: 70px;
  }
}

/* ================================================================
   作品ページ以外（ことば・クイズ・フレーズ・トリビア・プリント・このサイト）
   ビルドで style.css の後ろにつなげる
   ================================================================ */
.phero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--grad);
}
.phero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.phero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 80%);
}
.phero-in {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 18px 18px;
}
.phero h1 {
  margin: 0;
  font: 900 clamp(32px, 5vw, 56px) / 1.15 var(--round);
}
.phero h1 .en {
  display: block;
  margin: 2px 0 0 !important;
  font-size: 0.48em;
  color: var(--brand);
  opacity: 1 !important;
}
.phero .lead {
  max-width: 46em;
  color: var(--ink2);
  font-weight: 600;
}
.phero .lead .en {
  display: block;
  margin: 0 !important;
  font-family: var(--jp);
  font-size: 14px;
  font-weight: 500;
}

/* 用語集 */
.gwords {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.gcat-h {
  margin-top: 30px;
}
.gw {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}
.gw:target {
  outline: 3px solid var(--gold);
}
.gw-demo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--stage);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gw-demo canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gw-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 11px;
  background: var(--card);
  border-radius: 999px;
  padding: 0 7px;
  color: var(--muted);
}
.gw-demo.playing .gw-play {
  display: none;
}
.gw-ic {
  font-size: 44px;
}
.gw h3 {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}
.gw-term {
  font: 800 22px var(--display);
  color: var(--brand2);
}
.gw-ja {
  width: 100%;
  font: 800 16px var(--round);
}
.gw-ja small {
  font-weight: 500;
  color: var(--muted);
}
.gw p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
}
.gw-def.en {
  font-family: var(--display);
  font-weight: 600;
}
.gw-ex {
  background: var(--bg2);
  border-radius: 10px;
  padding: 6px 10px;
}
.gw-ex span[lang='en'] {
  font-family: var(--display);
  font-weight: 600;
}
.gw-ex small {
  color: var(--muted);
}
.gw-tip {
  color: var(--ink2);
  font-size: 13.5px !important;
}
.gw-rel {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gw-rel a {
  font: 600 12.5px var(--display);
  background: var(--bg2);
  border-radius: 999px;
  padding: 1px 10px;
  text-decoration: none;
}
@media (max-width: 520px) {
  .gw {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
.symbols {
  margin-top: 40px;
}
.sym-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 12px;
}
.sym {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sym svg {
  height: 50px;
}
.sym b .en {
  display: block;
  margin: 0 !important;
  font-size: 13px;
}
.sym small {
  color: var(--muted);
}

/* クイズ */
.qz-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}
.qz-card,
.qz-end {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  text-align: center;
}
.qz-top {
  display: flex;
  justify-content: space-between;
  font: 800 15px var(--display);
  color: var(--muted);
}
.qz-q {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--stage);
  border-radius: 18px;
  margin: 10px 0;
  display: grid;
  place-items: center;
}
.qz-q canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.qz-listen {
  font-size: 64px;
  border: 0;
  background: var(--grad);
  color: #fff;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}
.qz-word {
  font: 800 clamp(30px, 6vw, 52px) var(--display);
  color: var(--brand2);
  margin: 0;
}
.qz-ask {
  font-weight: 800;
}
.qz-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.qz-opt {
  border: 2px solid var(--line);
  background: var(--bg);
  border-radius: 16px;
  padding: 14px 10px;
  font: 700 17px var(--display);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s;
}
.qz-opt small {
  font: 500 12px var(--jp);
  color: var(--muted);
}
.qz-opt:hover {
  transform: translateY(-2px);
  border-color: var(--brand2);
}
.qz-opt.ok {
  background: #d3f9d8;
  border-color: #2f9e44;
  color: #1b4d22;
}
.qz-opt.ng {
  background: #ffe3e3;
  border-color: #e03131;
  color: #6b1111;
}
.qz-fb {
  font-weight: 800;
  min-height: 1.8em;
}
.qz-rank {
  font-size: 64px;
  margin: 0;
}

/* フレーズ */
.phr-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 10px;
}
.phr-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.phr-list p {
  margin: 0;
}
.phr-en {
  font: 700 18px var(--display);
  color: var(--brand2);
}
.phr-ja {
  color: var(--ink2);
  font-size: 14.5px;
}
.kid {
  margin-right: 4px;
}

/* トリビア */
.tv-f {
  margin-bottom: 18px;
}
.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  align-items: start;
}
.tv {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}
.tv-flip {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
}
.tv-front {
  display: flex;
  flex-direction: column;
}
.tv-front img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
.tv-ic {
  font-size: 56px;
  text-align: center;
  padding: 18px 0 4px;
  background: var(--stage);
}
.tv-cat {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  padding: 10px 16px 0;
}
.tv-q {
  padding: 2px 16px 0;
  font: 800 17px/1.5 var(--round);
}
.tv-q .en {
  display: block;
  margin: 2px 0 0 !important;
  font: 600 14.5px var(--display) !important;
  color: var(--brand2);
  opacity: 1 !important;
}
.tv-hint {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 16px 14px;
}
.tv-hint .en {
  font-size: 1em !important;
}
.tv.open .tv-hint {
  display: none;
}
.tv-a {
  padding: 0 16px 16px;
  animation: pop 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}
.tv-a p {
  margin: 8px 0 0;
  font-size: 15px;
}
.tv-a .en {
  font-family: var(--display);
  color: var(--ink2);
}
.tv-words {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tv-words span {
  background: var(--bg2);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 13px;
}
.tv-src {
  font-size: 12px !important;
  color: var(--muted);
}
.tl {
  margin-top: 50px;
}
.tl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 3px solid var(--line);
}
.tl-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0 10px 18px;
  position: relative;
}
.tl-list li::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 18px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--grad);
}
.tl-y {
  font: 800 18px var(--display);
  color: var(--brand);
}
.tl-list p {
  margin: 0;
}
.tl-list .en {
  font-family: var(--display);
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 520px) {
  .tl-list li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* プリント */
.maker-ui {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.maker-prev canvas {
  width: 100%;
  max-width: 460px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.maker-ctl .lbl {
  font-weight: 800;
  margin: 12px 0 4px;
}
.mk-pats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 760px) {
  .maker-ui {
    grid-template-columns: 1fr;
  }
}
.sheets,
.crafts {
  margin-top: 46px;
}
.sheet-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: 8px;
}
.sheet-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.sheet-list small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.sl-svg {
  width: 44px;
  height: 44px;
  flex: none;
}
.sl-svg svg {
  width: 100%;
  height: 100%;
}
.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}
.craft {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.craft > span {
  font-size: 34px;
}
.craft b {
  display: block;
  font: 800 17px var(--round);
}
.craft b .en {
  display: block;
  margin: 0 !important;
  font-size: 13px;
}
.craft p {
  margin: 4px 0 0;
  font-size: 14px;
}
.craft p .en {
  display: none;
}
@media print {
  body.print-maker .hd,
  body.print-maker .ft,
  body.print-maker .phero,
  body.print-maker .sec > *:not(#paper-maker),
  body.print-maker #paper-maker > *:not(.mk-sheet) {
    display: none !important;
  }
  body.print-maker .sec {
    padding: 0;
  }
  body.print-maker .mk-sheet {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6mm;
    justify-content: center;
  }
  .mk-credit {
    width: 100%;
    text-align: center;
    font-size: 9px;
  }
}

/* このサイト・404 */
.prose {
  max-width: 900px;
}
.prose h2 {
  font: 900 24px var(--round);
  margin-top: 36px;
}
.prose h2 .en {
  font-size: 15px;
  color: var(--brand);
}
.feat-3 {
  display: grid;
  gap: 14px;
}
.feat-3 > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}
.feat-3 b .en {
  font-size: 13px;
}
.prose .sign {
  display: block;
  margin-top: 8px;
  text-align: right;
  font-weight: 700;
}
.credit-box {
  background: var(--card);
  border: 2px solid var(--brand);
  border-radius: 18px;
  padding: 16px 20px;
}
.nf {
  text-align: center;
}
.nf-ic {
  font-size: 80px;
  margin: 0;
}

/* 季節の折り紙 */
.mo-tabs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-bottom: 20px; position: sticky; top: 62px; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); padding: 6px 0; }
.mo-tab { border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.mo-tab b { font: 800 20px var(--display); }
.mo-tab .ja { font-size: 11px; font-weight: 800; }
.mo-tab small { font: 600 10px var(--display); color: var(--muted); }
.mo-tab[aria-selected='true'] { background: var(--grad); color: #fff; border-color: transparent; }
.mo-tab[aria-selected='true'] small { color: #fff; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.ev { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 16px; padding: 12px 14px; }
.ev-ic { font-size: 40px; }
.ev b { font: 800 18px var(--round); }
.ev p { margin: 4px 0 0; font-size: 14px; }
.ev .en { color: var(--muted); font-family: var(--display); }
.ev-n { font-weight: 800; color: var(--brand); }
.season-more { margin-top: 30px; text-align: center; }
.month-lead { margin: 0; font-weight: 700; }
@media (max-width: 760px) { .mo-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* レベル別ページへの入口（トップの「レベルの目安」・作品ページのレベル） */
a.lvbox {
  display: block;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.lvbox:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.lv-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: -6px 0 14px;
}
.lv-more a {
  font-weight: 800;
  color: var(--brand2);
  text-decoration: none;
}
:root[data-lang='both'] .lv-more span.ja + span.en {
  display: none;
}
a.lv-link {
  text-decoration: none;
}

/* 新聞紙でつくろう */
.news-tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; margin-bottom: 22px; }
.news-tips .tip { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.news-tips b { font: 800 16px var(--round); }
.news-tips p { margin: 6px 0 0; font-size: 14px; }
.news-tips .en { color: var(--muted); font-family: var(--display); }

/* ================================================================
   検索から来た人むけ（2026-10-31）：見出しの上の一行・よくある質問・目的からさがす・おすすめ・折り紙を英語で
   ================================================================ */
.mp-head h1 .h1-k {
  flex-basis: 100%;
  order: -2;
  font: 700 clamp(14px, 1.7vw, 17px) / 1.4 var(--round);
  color: var(--ink2);
  letter-spacing: 0.02em;
}
.mp-head h1 .h1-k .en {
  font-family: var(--display);
}
.hero-h .h-k {
  font: 800 clamp(14px, 1.6vw, 18px) / 1.4 var(--round);
  color: var(--brand);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.hero-h .h-k span {
  display: inline;
}
.mp-faq {
  max-width: 1244px;
  margin: 12px auto;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.mp-faq dl,
.faq {
  margin: 0;
  display: grid;
  gap: 12px;
}
.faq-i {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.faq-i:first-child {
  border-top: 0;
  padding-top: 0;
}
.faq-i dt {
  font-weight: 800;
  margin: 0 0 4px;
}
.faq-i dt::before {
  content: 'Q. ';
  color: var(--brand);
  font-family: var(--display);
}
.faq-i dd {
  margin: 0;
  color: var(--ink2);
}
.faq-i dd .en,
.faq-i dt .en {
  display: block;
  margin: 2px 0 0 !important;
}
:root[data-lang='both'] .faq-i dd .en {
  color: var(--brand2);
}
.hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 10px;
}
.hub a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s, border-color 0.15s;
}
.hub a:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}
.hub a .en {
  font-size: 0.86em;
  color: var(--ink2);
}
:root[data-lang='both'] .hub a span.ja + span.en {
  display: none;
}
.hub-ic {
  font-size: 22px;
  flex: none;
}
.hub-txt {
  margin: 18px 0 0;
  color: var(--ink2);
  font-size: 14px;
  max-width: 62em;
}
.hub-txt .en {
  display: block;
  margin: 6px 0 0 !important;
}
.os-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 0;
}
.os-toc .chip {
  text-decoration: none;
}
.os-lead {
  color: var(--ink2);
  margin: -4px 0 16px;
}
.os-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}
.os-rank li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.os-n {
  position: absolute;
  z-index: 2;
  top: -8px;
  left: -8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font: 800 18px var(--display);
  box-shadow: 0 4px 10px #0003;
}
.os-why {
  margin: 0;
  font-size: 14px;
  color: var(--ink2);
}
.os-why .en {
  display: block;
  margin: 4px 0 0 !important;
}
.os-more a,
.eg-box a:not(.btn) {
  color: var(--brand);
}
.eg {
  display: grid;
  gap: 34px;
}
.eg-sec .big-h {
  margin-bottom: 14px;
}
.eg-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 22px;
  max-width: 62em;
}
.eg-box p {
  margin: 0 0 10px;
}
.eg-box p:last-child {
  margin-bottom: 0;
}
.ex-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
  max-width: 62em;
}
.ex-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 10px 14px;
}
.ex-en {
  margin: 0;
  font: 700 17px/1.45 var(--display);
}
.ex-ja {
  margin: 2px 0 0;
  color: var(--ink2);
  font-size: 14px;
}
.nm-grid {
  display: grid;
  gap: 22px;
}
.nm-cat h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.nm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 6px;
}
.nm-list a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.nm-list a:hover {
  border-color: var(--brand);
}
.nm-list a span {
  color: var(--ink2);
  text-align: right;
}

/* 折り紙リンク集（/links/）とトップの下のリンク帯 */
.lk-hot {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
.lk-hot:not(.on):hover {
  color: #fff;
  border-color: transparent;
  filter: brightness(1.05);
}
.lk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 14px;
}
.lk-list > li {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.lk-list > li:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}
.lk-main,
.lk-web {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
}
.lk-play {
  flex: none;
  width: 44px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #e8231d;
  color: #fff;
  font-size: 14px;
  margin-top: 2px;
}
.lk-ic {
  flex: none;
  font-size: 30px;
  line-height: 1;
  margin-top: 2px;
}
.lk-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.lk-body > b {
  font: 800 16.5px/1.3 var(--round);
  overflow-wrap: anywhere;
}
.lk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
}
.lk-subs,
.lk-where,
.lk-host {
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--bg2);
  color: var(--ink2);
}
.lk-subs {
  background: color-mix(in srgb, #e8231d 12%, var(--card));
  color: #c4170f;
}
:root[data-theme='dark'] .lk-subs {
  color: #ff8a80;
}
.lk-subs strong {
  font: 800 1.08em var(--display);
}
.lk-d {
  font-size: 14px;
  color: var(--ink2);
}
:root[data-lang='both'] .lk-meta span.ja + span.en,
:root[data-lang='both'] .fam-num span.ja + span.en,
:root[data-lang='both'] .fam-go span.ja + span.en,
:root[data-lang='both'] .fam-reads small span.ja + span.en,
:root[data-lang='both'] .lk-site span.ja + span.en {
  display: none;
}
.lk-d .en,
.fam-catch .en,
.fam-ori .en,
.fam-reads b .en {
  display: block;
  margin: 2px 0 0 !important;
  font: 500 12.5px var(--jp);
  letter-spacing: 0;
}
.lk-site {
  display: block;
  padding: 8px 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  font-weight: 800;
  color: var(--brand2);
  text-decoration: none;
}
.lk-site:hover {
  background: var(--bg2);
}
.lk-note p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 62em;
}

/* 姉妹サイト（超絶紹介） */
.fam-sec {
  margin-top: 10px;
  padding-top: 34px;
  padding-bottom: 40px;
  background: radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 46%), radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 42%), var(--bg2);
  border-radius: 28px;
}
.fam-head .big-h {
  font-size: clamp(24px, 3.4vw, 36px);
}
.fam-reads {
  background: var(--card);
  border: 2px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  border-radius: 20px;
  padding: 16px 18px;
  margin: 0 0 22px;
}
.fam-reads h3 {
  margin: 0 0 10px;
  font: 900 18px var(--round);
}
.fam-reads ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 8px;
}
.fam-reads a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}
.fam-reads a:hover {
  background: var(--bg2);
}
.fam-reads a > span:first-child {
  font-size: 22px;
}
.fam-reads b {
  display: block;
  font-size: 14.5px;
}
.fam-reads small {
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
}
.fam-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 16px;
}
.fam-card a {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--c);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
}
.fam-card a:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--shadow-lg);
}
.fam-ic {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 32px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 14%, var(--card));
}
.fam-num {
  position: absolute;
  top: 18px;
  right: 16px;
  max-width: 55%;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-radius: 10px;
  padding: 3px 8px;
}
.fam-name {
  font: 900 20px/1.25 var(--round);
}
.fam-name small {
  display: block;
  font: 600 12.5px var(--display);
  color: var(--muted);
}
.fam-catch {
  font-weight: 800;
  color: var(--c);
  font-size: 14.5px;
}
:root[data-theme='dark'] .fam-catch,
:root[data-theme='dark'] .fam-num {
  color: color-mix(in srgb, var(--c) 55%, #fff);
}
.fam-ori {
  display: block;
  font-size: 13.5px;
  color: var(--ink2);
  background: var(--bg2);
  border-radius: 12px;
  padding: 8px 10px;
}
.fam-ori i {
  font-style: normal;
  margin-right: 4px;
}
.fam-go {
  margin-top: auto;
  font-weight: 800;
  font-size: 14px;
  color: var(--c);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .lk-subs {
    color: #ff8a80;
  }
  :root[data-theme='auto'] .fam-catch,
  :root[data-theme='auto'] .fam-num {
    color: color-mix(in srgb, var(--c) 55%, #fff);
  }
}

/* トップの下：リンク集と姉妹サイトの帯 */
.links-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 18px;
}
.lb-world,
.lb-fam {
  border-radius: var(--r);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}
.lb-world {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(150deg, #1f1a2e 0%, #3a1d3a 60%, #6b1f33 100%);
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s;
}
.lb-world:hover {
  transform: translateY(-3px);
  color: #fff;
}
.lb-world .kicker,
.lb-world h2,
.lb-world p {
  color: #fff;
  margin: 0;
}
.lb-world h2,
.lb-fam h2 {
  font: 900 clamp(21px, 2.6vw, 28px) / 1.25 var(--round);
  margin: 0;
}
.lb-world h2 .en,
.lb-fam h2 .en {
  display: block;
  margin: 2px 0 0 !important;
  font-size: 0.55em;
}
.lb-world p .en,
.lb-fam > p .en {
  display: block;
  margin: 2px 0 0 !important;
  font: 500 12.5px var(--jp);
}
.lb-top {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lb-top li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 10px;
}
.lb-top b {
  display: block;
  font-size: 13.5px;
  line-height: 1.25;
}
.lb-top small {
  color: #ffb3b0;
  font: 800 13px var(--display);
}
.lb-world .btn {
  align-self: flex-start;
  margin-top: auto;
}
.lb-fam {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
}
.lb-fam > p {
  margin: 0;
  color: var(--ink2);
}
.lb-icons {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.lb-icons a {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 9%, var(--card));
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s;
}
.lb-icons a:hover {
  transform: translateY(-2px);
}
.lb-icons span {
  font-size: 26px;
}
.lb-icons b {
  font-size: 13px;
  line-height: 1.25;
}
.lb-icons small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.lb-fam .btn {
  align-self: flex-start;
}
@media (max-width: 860px) {
  .links-band {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .lb-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fam-num {
    position: static;
    max-width: none;
    align-self: flex-start;
    text-align: left;
  }
}
.ft-more {
  margin: 10px 0 0;
  font-weight: 800;
}
.ft-more a {
  color: var(--brand);
}
.dr-sis a.dr-more {
  color: var(--brand);
  font-weight: 800;
}

/* X（Twitter）へのリンク（このサイトについて・フッター） */
.x-ic {
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  margin-right: 6px;
}
.x-link {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  font-weight: 700;
}
.btn.x-btn {
  background: #0f1419;
  color: #fff;
  border-color: #0f1419;
}
.btn.x-btn:hover {
  background: #272c30;
}
:root[data-theme='dark'] .btn.x-btn {
  background: #e7e9ea;
  color: #0f1419;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .btn.x-btn {
    background: #e7e9ea;
    color: #0f1419;
  }
}
.about-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- トップページ（スマホ）：ぜんぶ並べず、コンパクトに見せる ---- */
@media (max-width: 560px) {
  .home .sec {
    padding-top: 28px;
    padding-bottom: 8px;
  }
  .home .big-h {
    font-size: 22px;
    margin-bottom: 10px;
  }
  /* ヒーロー：数字・はらだくんはしまい、ボタンは横ならび */
  .home .hero {
    min-height: 0;
  }
  .home .hero-stats,
  .home .owl-greet {
    display: none;
  }
  .home .hero-lead {
    font-size: 14px;
    line-height: 1.7;
    margin: 10px 0 14px;
  }
  .home .hero-cta {
    flex-direction: row;
    gap: 8px;
  }
  .home .hero-cta .btn {
    flex: 1;
    padding: 12px 8px;
    font-size: 14px;
  }
  .home .hero-cta .btn .en {
    display: none;
  }
  /* 日本語＋英語の表示でも、トップのスマホでは説明の英語をしまって短く */
  :root[data-lang='both'] .home .hero-lead span.ja + span.en,
  :root[data-lang='both'] .home .live-cap span.ja + span.en,
  :root[data-lang='both'] .home .month-lead span.ja + span.en,
  :root[data-lang='both'] .home .lv-more span.ja + span.en,
  :root[data-lang='both'] .home .lvbox span.ja + span.en,
  :root[data-lang='both'] .home .kicker span.ja + span.en,
  :root[data-lang='both'] .home .btn span.ja + span.en,
  :root[data-lang='both'] .home .lb-world h2 span.ja + span.en,
  :root[data-lang='both'] .home .lb-fam h2 span.ja + span.en {
    display: none;
  }
  .home .live-cap {
    font-size: 12.5px;
    gap: 2px 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 10px;
  }
  .home .hero-live {
    width: min(260px, 72%);
    justify-self: center;
    margin: 0 auto 20px;
  }
  /* 4つの特長：小さなマス2×2、説明文はしまう */
  .home .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .home .feat {
    padding: 8px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .home .feat > span {
    font-size: 20px;
    flex: none;
  }
  .home .feat b {
    font-size: 13.5px;
    line-height: 1.3;
  }
  .home .feat b .en,
  .home .feat small {
    display: none;
  }
  /* カード：トップでは小さめの3列（絵と名前だけ） */
  .home .cards.grid,
  .home .cards.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .home .card {
    border-radius: 14px;
  }
  .home .card-body {
    padding: 6px 7px 8px;
  }
  .home .card h3 {
    font-size: 13px;
    line-height: 1.3;
  }
  .home .card h3 small,
  .home .card-meta,
  .home .badge-orig {
    display: none;
  }
  .home .card-bg + .card-fold {
    width: 50%;
    height: 56%;
  }
  .home .mg-more {
    margin-top: 10px;
    padding: 8px 18px;
    font-size: 14px;
  }
  .home .mgroup + .mgroup {
    margin-top: 22px;
  }
  /* なにを折る？：絵をしまって、アイコンと名前の小さなボタンに */
  .home .cat-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .home .cat-tile {
    aspect-ratio: auto;
    border-radius: 14px;
  }
  .home .cat-tile img,
  .home .cat-tile small,
  .home .cat-tile b .en {
    display: none;
  }
  .home .ct-in {
    position: static;
    padding: 8px 4px;
    background: none;
    align-items: center;
    text-align: center;
  }
  .home .ct-ic {
    font-size: 20px;
  }
  .home .cat-tile b {
    font-size: 12.5px;
  }
  /* レベル：1行ずつの細いリスト */
  .home .levels {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .home .lvbox {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top-width: 1px;
    border-left: 5px solid var(--c);
  }
  .home .lv-ic {
    font-size: 22px;
  }
  .home .lvbox h3 {
    font-size: 14px;
    white-space: nowrap;
  }
  .home .lvbox h3 .en,
  .home .lvbox .lv-ex {
    display: none;
  }
  .home .lvbox .small {
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
  }
  .home .lv-more {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 14px;
  }
  /* 目的からさがす：2列の小さなボタン */
  .home .hub {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .home .hub a {
    padding: 6px 12px;
    gap: 6px;
    font-size: 13px;
    line-height: 1.35;
  }
  .home .hub-ic {
    font-size: 18px;
  }
  .home .hub-txt {
    font-size: 12.5px;
    line-height: 1.75;
  }
  :root[data-lang='both'] .home .hub-txt span.ja + span.en {
    display: none;
  }
  /* ことば・トリビア・プリント：左に小さな絵、右に題名の横長カード */
  .home .teasers {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .home .teaser {
    min-height: 0;
    height: 84px;
    align-items: center;
    border-radius: 16px;
  }
  .home .teaser img {
    width: 110px;
  }
  .home .teaser > div {
    margin-left: 110px;
    padding: 10px 14px;
    background: none;
  }
  .home .teaser .kicker {
    font-size: 10.5px;
    margin: 0 0 2px;
  }
  .home .teaser h2 {
    font-size: 17px;
    margin: 0;
  }
  .home .teaser h2 .en,
  .home .teaser p {
    display: none;
  }
  /* リンク集・姉妹サイト：説明をしまって、見出しとボタンだけ */
  .home .lb-world,
  .home .lb-fam {
    padding: 18px 16px;
  }
  .home .lb-world > p:not(.kicker),
  .home .lb-fam > p:not(.kicker),
  .home .lb-top {
    display: none;
  }
  .home .lb-world h2,
  .home .lb-fam h2 {
    font-size: 19px;
    margin-bottom: 12px;
  }
  .home .lb-icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .home .lb-icons a {
    padding: 8px 2px;
    text-align: center;
  }
  .home .lb-icons small {
    display: none;
  }
  .home .lb-icons b {
    font-size: 11px;
    line-height: 1.3;
  }
}
