/* ===========================================================
   ゾウノアシゲームズ
   色や余白を変えたいときは、まずこの :root をいじってください
   =========================================================== */
:root {
  --paper:    #ffffff;
  --ink:      #1b2a41;
  --ink-soft: #5b6b82;
  --stamp:    #e8483f;
  --gold:     #ffc93c;
  --card:     #ffffff;
  --line:     #d5dde8;
  --dot: "DotGothic16", "Courier New", monospace;
  --sans: "Zen Kaku Gothic New", system-ui, -apple-system,
          "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  /* 方眼紙の背景に戻したいときは、この4行のコメントを外してください
  background-image:
    linear-gradient(rgba(27,42,65,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,42,65,.07) 1px, transparent 1px);
  background-size: 24px 24px; */
  min-height: 100vh;
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { color: var(--stamp); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 共通パーツ ---------- */
.eyebrow {
  font-family: var(--dot); font-size: 13px; letter-spacing: .35em;
  color: var(--stamp); margin-bottom: 6px;
}
h1 {
  font-family: var(--dot); font-size: clamp(28px, 5.5vw, 46px);
  line-height: 1.15; letter-spacing: .04em;
}
h2 {
  font-family: var(--dot); font-size: 20px; letter-spacing: .04em;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
h2::after { content: ""; flex: 1; height: 2px; background: var(--ink); opacity: .18; }
h3 { font-size: 15px; margin-bottom: 6px; }
main { padding: 30px 0 70px; }
section + section { margin-top: 46px; }
.muted { color: var(--ink-soft); font-size: 13.5px; }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 13px;
  padding: 10px 20px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--gold); color: var(--ink); text-decoration: none;
  box-shadow: 3px 3px 0 rgba(27,42,65,.22); cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 rgba(27,42,65,.26); }
.btn.plain { background: var(--card); }

/* 画面には出さないが読み上げ・検索用に残す見出し */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- ヒーロー ---------- */
.hero { padding: 40px 0 30px; }
.hero .lead { color: var(--ink-soft); margin-top: 10px; font-size: 14.5px; }

/* トップページのロゴ */
.home-hero { padding: 48px 0 40px; text-align: center; }
.logo-title { line-height: 0; margin: 0; }
.logo-title a { display: block; }
.logo-title img { width: min(420px, 78vw); height: auto; margin: 0 auto; }
/* ゲーム画面など、下層ページ用の小さいロゴ */
.home-hero.small { padding: 26px 0 18px; }
.home-hero.small .logo-title img { width: min(210px, 48vw); }
.tagline {
  margin-top: 18px; font-size: 15px; font-weight: 500;
  letter-spacing: .08em; color: var(--ink);
}
@media (max-width: 480px) {
  .tab { padding-left: 10px; padding-right: 10px; }
  .home-hero { padding: 34px 0 30px; }
  .tagline { font-size: 14px; }
}

/* ---------- コントロール（ゲーム一覧） ---------- */
/* YouTube のチャンネルページに寄せる: 文字のタブ＋下線、右に検索の虫めがね、その下に並び順のチップ */
.controls { margin-bottom: 18px; }
.tabs-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; flex-shrink: 0; }
.tab {
  font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 14px 12px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  background: none; color: var(--ink-soft); cursor: pointer; -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
a.tab, a.chip { display: inline-block; text-decoration: none; }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
/* 一覧の上の検索。タブに関係なく名前（日本語・英語）で探す。虫めがねを押すと入力欄が開く */
.list-search { display: flex; align-items: center; margin-left: 6px; min-width: 0; flex: 1 1 auto; }
.search-btn {
  flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.search-btn:hover { color: var(--ink); background: rgba(27,42,65,.06); }
.search-btn svg { width: 22px; height: 22px; display: block; }
.list-search input {
  width: 0; padding: 6px 0; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  font: inherit; font-size: 16px; color: var(--ink); background: none; opacity: 0;
  transition: width .18s ease, opacity .18s ease;
}
.list-search.open input { width: 100%; max-width: 240px; min-width: 0; padding: 6px 4px; opacity: 1; }
.list-search input:focus { outline: none; }
/* おすすめゲーム（一覧のタブの上） */
.popular { margin-bottom: 26px; }
#popularGrid .meta .tags { display: none; }
.sec-title { font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 0 0 12px; color: var(--ink); }
@media (max-width: 480px) { .sec-title { font-size: 17px; margin-bottom: 10px; } .popular { margin-bottom: 20px; } }
.lab-sort { display: flex; align-items: center; gap: 8px; padding-top: 12px; }
.lab-sort.is-off { visibility: hidden; }
.chip {
  font-family: var(--sans); font-weight: 700; font-size: 13px; line-height: 1;
  padding: 9px 12px; border: 0; border-radius: 8px; background: #eef0f3; color: var(--ink); cursor: pointer;
}
.chip:hover { background: #e2e6eb; }
.chip[hidden] { display: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
/* 1000本企画の進み具合（ショートの公開本数 / 1000） */
.lab-count {
  margin-left: auto; font-family: var(--sans); font-size: 12px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lab-count b { color: var(--ink); font-size: 14px; }

/* 中央ぞろえで並べるカード（トモぞヴPページ） */
.link-meta .title { min-height: 2.6em; }
.link-meta { padding-bottom: 8px; }
.center-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.center-grid .card-link { width: clamp(132px, 42vw, 172px); }

/* ---------- ギャラリー ---------- */
/* 数が少なくても、最後の行が半端でも、いつも中央にそろえる */
.grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  container-type: inline-size;
}
/* 列の数は一覧の幅で決め、その間はサムネの大きさを変えて幅を埋める（YouTube と同じ。サイドバーを開いて狭くなっても同じ） */
.grid .card-link { width: calc((100cqw - 80px) / 6); }
@container (max-width: 899px) { .grid .card-link { width: calc((100cqw - 64px) / 5); } }
@container (max-width: 739px) { .grid .card-link { width: calc((100cqw - 48px) / 4); } }
@container (max-width: 579px) { .grid .card-link { width: calc((100cqw - 32px) / 3); } }
@media (max-width: 480px) {
  /* スマホは3列 */
  .grid { gap: 8px; }
  .grid .card-link { width: calc((100% - 16px) / 3); }
  .grid .card { border-radius: 8px; box-shadow: 2px 2px 0 rgba(27,42,65,.18); }
  .grid .meta { padding: 6px 6px 7px; }
  .grid .meta .title { font-size: 11px; }
  .grid .meta .tags { font-size: 9.5px; gap: 0 5px; }
  .grid .plays { white-space: nowrap; }
.play-ic { vertical-align: -0.05em; margin-right: 0.25em; }
.meta .year { font-size: 10px; }
  .grid .thumb .noimg { font-size: 18px; }
}
.card-link { text-decoration: none; color: inherit; display: block; }
/* 同じ段のカードは高さをそろえる（タグのあるカードとないカードが並んでもガタつかない） */
.grid .card-link { display: flex; }
.grid .card-link > .card { flex: 1 1 auto; min-width: 0; }
.card {
  background: var(--card); border: 2px solid var(--ink); border-radius: 10px;
  overflow: hidden; box-shadow: 3px 3px 0 rgba(27,42,65,.18);
  transition: transform .12s ease, box-shadow .12s ease; position: relative;
}
.card-link:hover .card { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(27,42,65,.22); }
.thumb { position: relative; aspect-ratio: 1 / 1; background: #e8edf4; overflow: hidden; }
.thumb img, .thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .noimg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--dot); font-size: 26px; color: var(--ink-soft);
  padding: 0 8px; text-align: center; line-height: 1.2; word-break: break-word;
}
.meta { padding: 8px 10px 10px; border-top: 2px solid var(--ink); }
.meta .title {
  font-size: 12.5px; font-weight: 700; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.9em;
}
/* ハッシュタグはカーソルを合わせたときだけ出す
   （普段は高さ0で詰めておき、ホバーで展開する） */
.meta .tags {
  display: flex; flex-wrap: wrap; gap: 2px 8px;
  font-family: var(--dot); font-size: 10.5px; color: var(--stamp); line-height: 1.5;
  max-height: 0; margin-top: 0; opacity: 0; overflow: hidden;
  transition: max-height .15s ease, opacity .12s ease, margin-top .15s ease;
}
.card-link:hover .meta .tags,
.card-link:focus-visible .meta .tags { max-height: 3em; margin-top: 4px; opacity: 1; }
/* 年とプレイ数もカーソルを合わせたときだけ出す
   （普段は高さ0で詰めておき、ホバーで展開する） */
.meta .year {
  font-family: var(--dot); font-size: 11px; color: var(--ink-soft);
  max-height: 0; margin-top: 0; opacity: 0; overflow: hidden;
  transition: max-height .15s ease, opacity .12s ease, margin-top .15s ease;
}
.card-link:hover .meta .year,
.card-link:focus-visible .meta .year { max-height: 2em; margin-top: 3px; opacity: 1; }
/* タグと年・プレイ数は PC でもスマホでも最初から出す（2026-11-11） */
/* 趣味・仕事はハッシュタグと年、ショートはプレイ数だけ。PC でもスマホでも最初から出す（2026-11-11 tomozo） */
.meta .tags { max-height: 3em; margin-top: 4px; opacity: 1; }
.meta .year { max-height: 2em; margin-top: 4px; opacity: 1; min-height: 1.5em; }
.empty {
  width: 100%; text-align: center; padding: 60px 0;
  font-family: var(--dot); color: var(--ink-soft);
}

.grid-note {
  margin: 34px auto 0; max-width: 46em; text-align: center;
  font-size: 12px; line-height: 1.9; color: var(--ink-soft);
}
.grid-note a { white-space: nowrap; }

/* ---------- ゲームプレイ画面 ---------- */
/* タイトルは中央のまま、左右にボタンを置く */
.game-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 10px; margin: 4px 0 16px;
}
.game-head h1 {
  margin: 0; text-align: center; min-width: 0;
  font-size: clamp(19px, 4.4vw, 40px);   /* 左右のボタンと並ぶぶん、少し控えめに */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .game-head { gap: 6px; }
  .game-head .pbtn { padding: 8px 10px; font-size: 11px; }
}
.game-head .pbtn:first-child { justify-self: start; }
.game-head .pbtn:last-child { justify-self: end; }
.pbtn {
  font-family: var(--sans); font-weight: 700; font-size: 12px; line-height: 1;
  padding: 9px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--card); color: var(--ink); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(27,42,65,.18);
  transition: transform .08s ease, background .12s ease;
}
.pbtn:hover { transform: translateY(-1px); }
.pbtn:active { transform: translateY(0); }
.pbtn[hidden] { display: none; }   /* display指定があると hidden が効かないので明示する */
/* ゲームの左上。ボタンの体裁は付けず、象の絵だけ置く（指で押せるよう44px角は保つ） */
.homebtn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, opacity .12s ease;
}
.homebtn img { width: 34px; height: 34px; display: block; }
.homebtn:hover { transform: translateY(-1px); opacity: .78; }
.homebtn:active { transform: translateY(0); opacity: .6; }
.fullplay-head .homebtn, .game-head .homebtn { justify-self: start; }

.fullplay, .game-head, .player-shell { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.player-shell { position: relative; overflow: hidden; }
/* 全画面のときは、ゲームに枠いっぱい使わせる(中身の余白はゲーム側が持つ) */
.player-shell:fullscreen { background: #0b1622; display: flex; align-items: center; justify-content: center; }
.player-shell:fullscreen .player-frame { width: 100%; height: 100%; aspect-ratio: auto !important; max-width: none !important; }
.player-shell:-webkit-full-screen { background: #0b1622; display: flex; align-items: center; justify-content: center; }
.player-shell:-webkit-full-screen .player-frame { width: 100%; height: 100%; aspect-ratio: auto !important; max-width: none !important; }
/* 全画面が使えない端末(iPhoneなど)むけ。画面いっぱいに広げる */
.player-shell.faux-fs {
  position: fixed; inset: 0; z-index: 9999; background: #0b1622;
  display: flex; align-items: center; justify-content: center;
}
.player-shell.faux-fs .player-frame { width: 100%; height: 100%; aspect-ratio: auto !important; max-width: none !important; }
body.fs-lock { overflow: hidden; }
.fs-exit { position: absolute; top: 10px; right: 10px; z-index: 3; }
.player-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; margin: 0 auto; }   /* 比率は GAMES の aspect で上書きできます。縦長のゲームは高さが画面を超えないよう、下の max-width で幅を詰めます */
/* 枠に収めず、1ページまるごと使って開くゲーム（GAMES の full: true）。
   Webページの形をしたものは、こちらで開きます */
/* ゲームを開いている間は、指で引いてもページが動かないようにする
   （絵の外の黒いところを触ったときに画面がずれると、遊びにくいため） */
html.play-full, body.play-full {
  height: 100%; overflow: hidden; overscroll-behavior: none;
}
.fullplay { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 0; }
.fullplay-head {
  flex: 0 0 auto;
  /* 左右は象のボタンと日英切り替えの幅を保ち、長い名前は真ん中で小さくする */
  display: grid; grid-template-columns: 68px minmax(0, 1fr) 68px; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 2px solid var(--ink); background: var(--card);
  /* iPhone のダイナミックアイランド・切り欠きにかからないよう、安全な余白の内側に置く */
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
/* ゲームを開いている間は画面に固定し、ページがずれて上のバーが隠れないようにする */
body.play-full .fullplay { position: fixed; inset: 0; }
/* /game/<id>/ のページはゲームの下に説明（#zgame）を置くので、ゲームの外を引くと下へ読める */
html.zgame.play-full, html.zgame body.play-full { height: auto; overflow-x: hidden; overflow-y: auto; }
html.zgame body.play-full .fullplay { position: relative; inset: auto; }
#zgame { background: var(--card); color: var(--ink); border-top: 2px solid var(--ink); padding: 28px 20px 48px; font-size: 16px; line-height: 1.8; }
#zgame .w { max-width: 760px; margin: 0 auto; }
#zgame h1 { font-size: 24px; margin: 6px 0 10px; } #zgame h2 { font-size: 18px; margin: 22px 0 6px; }
#zgame nav, #zgame footer { font-size: 14px; }
/* 横向きの切り欠きの側に、一覧などの中身がかからないようにする */
#app > main:not(.fullplay) {
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
#app > main:not(.fullplay) { padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
.fullplay-head h1, .fullplay-head .head-title {
  margin: 0; text-align: center; min-width: 0;
  font-size: clamp(15px, 3.6vw, 22px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fullplay-head .head-title { font-family: var(--dot); line-height: 1.15; letter-spacing: .04em; }
.fullplay-head:has(.head-right) { grid-template-columns: 108px minmax(0, 1fr) 108px; }   /* 左右を同じ幅にして、ゲーム名を真ん中に */
.head-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.info-btn { box-sizing: border-box; text-decoration: none;
  flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--card); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.info-btn svg { width: 14px; height: 14px; display: block; }
.info-btn[aria-expanded="true"] { background: var(--ink); color: var(--card); }
.game-info {
  position: absolute; top: calc(100% + 8px); right: 16px;
  width: min(calc(100vw - 32px), 420px); box-sizing: border-box; padding: 12px 16px;
  background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 2px 2px 0 rgba(27,42,65,.18); font-size: 14px; line-height: 1.7; text-align: left;
}
.game-info[hidden] { display: none; }
.game-info p { margin: 0; }
.game-info .game-info-day { margin-top: 8px; font-size: .88em; opacity: .7; }
.fullplay-head .pbtn { justify-self: start; }
.head-logo { justify-self: center; display: block; line-height: 0; }
.info-page { max-width: 760px; padding-top: 18px; }
.info-main { padding-top: 0; min-width: 0; }
.info-kicker { margin: 0 0 6px; font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.info-kicker b { color: var(--ink); }
.info-kicker a { color: inherit; }
.info-title { margin: 0 0 6px; font-size: 28px; line-height: 1.3; }
.info-title + .info-day { margin-bottom: 18px; }
.info-pager { display: flex; justify-content: space-between; gap: 12px; margin: 40px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.info-pager a { flex: 1 1 0; max-width: 48%; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.info-pager a span { display: block; font-size: 15px; font-weight: 400; margin-top: 2px; }
.info-pager a:hover span { text-decoration: underline; }
.info-pager .next { text-align: right; margin-left: auto; }
.owner-icon { display: block; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; margin: 4px auto 14px; background: #fff; }
.road-page { max-width: 1180px; padding-top: 18px; }
.road-cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
/* note のクリエイターページのように、PC は左にプロフィール・右に記事。スマホは記事が先（2026-11-15 tomozo） */
.road-side { order: -1; }
/* 記事の人物紹介はスクロールしてもついてくる（PCだけ） */
.road-side.prof-only { position: sticky; top: 84px; }
@media (max-width: 900px) { .road-cols { grid-template-columns: minmax(0, 1fr); } .road-side { order: 0; } .road-side.prof-only { position: static; } }
/* 記事はゲーム一覧と同じカード（.grid .card）。下にゲーム名と日付 */
.road-main .grid { justify-content: flex-start; margin-bottom: 26px; }
/* 列は note と同じ3列（2026-11-15 tomozo） */
.road-main .grid .card-link { width: calc((100cqw - 32px) / 3); }
/* スマホは note のアプリと同じく1列。左に記事名と日付、右に小さいサムネ、間に線（2026-11-15 tomozo） */
@media (max-width: 600px) {
  .road-main .grid { gap: 0; }
  .road-main .grid .card-link { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line, #ddd); }
  .road-main .card { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 14px; }
  .road-main .thumb { flex: 0 0 auto; width: 38%; max-width: 150px; border-radius: 6px; }
  .road-main .meta { flex: 1 1 auto; min-width: 0; padding: 0; }
  .road-main .meta .title { font-size: 15px; line-height: 1.5; }
  .road-main .card-link:hover .thumb img { transform: none; }
}
/* ただし見た目はゲームのボタンと分ける（2026-11-15 tomozo）。枠と影なしで、角丸の横長サムネの下に記事名（note の記事のように） */
.road-main .card, .road-main .card-link:hover .card { background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; overflow: visible; }
.road-main .thumb { aspect-ratio: 4 / 3; border-radius: 12px; }
.road-main .thumb img { transition: transform .2s ease; }
.road-main .card-link:hover .thumb img { transform: scale(1.04); }
.road-main .meta { border-top: 0; padding: 8px 2px 4px; }
.road-main .meta .title { font-size: 14.5px; line-height: 1.5; min-height: 0; }
.road-main .card-link:hover .meta .title { text-decoration: underline; }
.pv:not(:empty)::before { content: "・"; margin: 0 2px; }
.meta .post-date { margin-top: 4px; font-size: 12px; color: var(--ink-soft); }
@media (max-width: 480px) {
  .road-main .card, .road-main .card-link:hover .card { box-shadow: none; border-radius: 0; }
  .meta .post-date { font-size: 11.5px; }
}
.road-filter { margin: 0 0 18px; font-weight: 700; }
.road-filter a { margin-left: 6px; color: var(--ink-soft); text-decoration: none; }
.road-main .card-link.is-later { display: none; }
.road-more { height: 1px; }
.road-pager { margin: 10px 0 30px; text-align: center; }
.road-next { display: block; padding: 18px; border: 1px solid var(--line, #ccc); background: #f8f8f8; color: var(--ink); text-decoration: none; font-size: 18px; margin-bottom: 26px; }
.road-nums { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.road-nums a, .road-nums span { min-width: 44px; height: 44px; padding: 0 8px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line, #ccc); border-radius: 4px; color: var(--ink); text-decoration: none; background: #fff; }
.road-nums .cur { background: #eee; }
.road-nums .gap { color: var(--ink-soft); background: #f7f7f7; }
.road-side .side-box { border: 1px solid var(--line, #ccc); border-radius: 4px; padding: 26px 16px; text-align: center; background: #fff; }
.road-side .side-box.prof { padding: 18px 16px; text-align: left; }
img[src$="chara/tomozo.png"] { image-rendering: pixelated; }
.chara { display: flex; align-items: center; gap: 14px; }
.chara + .chara { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line, #ccc); }
.prof-icon { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; display: block; background: #fff; box-sizing: border-box; }
.prof-name { margin: 0; font-size: 18px; font-weight: 700; }
.prof-name a { color: inherit; }
.prof-role { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
.side-h { margin: 26px 0 14px; padding: 16px; background: #f3f3f3; font-size: 18px; }
.side-sel, .side-search input { width: 100%; box-sizing: border-box; height: 48px; padding: 0 12px; border: 1px solid var(--line, #ccc); border-radius: 4px; font-size: 16px; background: #fff; color: var(--ink); }
.side-search { position: relative; margin-top: 18px; }
.side-search button { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.info-thumb { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 16px; background: #fff; }
.info-desc { margin: 18px 0 8px; font-size: 17px; }
.info-game { display: flex; gap: 22px; align-items: flex-start; border: 2px solid var(--ink); border-radius: 16px; padding: 18px; margin: 6px 0 26px; background: var(--card, #fff); }
.info-game .info-about { flex: 1 1 auto; min-width: 0; }
.info-game .info-about p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .info-game { flex-direction: column; gap: 14px; padding: 14px; } }
.info-card { flex: 0 0 auto; width: min(220px, 60vw); margin: 0; }
.info-card .card-link { display: flex; }
.info-card .card-link > .card { flex: 1 1 auto; min-width: 0; }
.info-about { line-height: 1.9; }
.info-about p { margin: 0 0 12px; }
.info-about p:first-child { font-size: 17px; }
.info-note p:first-child { font-size: inherit; }
.info-game .info-lead { align-self: flex-start; }
/* 対話はチャットアプリ風（2026-11-13 tomozo）。トモぞヴPが右・キャト兵衛が左 */
.info-talk { margin: 4px 0 28px; display: flex; flex-direction: column; gap: 6px; }
.talk { display: flex; align-items: flex-start; gap: 8px; }
.talk + .talk { margin-top: 10px; }
.talk-p { flex-direction: row-reverse; }
.talk-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.talk-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: min(78%, 520px); min-width: 0; }
.talk-p .talk-col { align-items: flex-end; }
.talk-name { margin: 0 0 -2px 4px; font-size: 12px; color: #4b5563; }
.talk-p .talk-name { margin: 0 4px -2px 0; }
.talk-b { position: relative; margin: 0; padding: 9px 13px; border-radius: 18px; background: #eef0f3; color: #111; line-height: 1.65; font-size: 15px; word-break: break-word; white-space: pre-line; }
.talk-p .talk-b { background: #b9eb8f; }
.talk-b::before { content: ""; position: absolute; top: 9px; width: 12px; height: 12px; background: inherit; }
.talk-ai .talk-b::before { left: -5px; clip-path: polygon(100% 0, 0 30%, 100% 100%); }
.talk-p .talk-b::before { right: -5px; clip-path: polygon(0 0, 100% 30%, 0 100%); }
.talk-imgs { display: flex; gap: 6px; }
.talk + .talk.talk-cont { margin-top: 0; }
.talk-cont .talk-ic { visibility: hidden; height: 0; }
.talk-cont .talk-name, .talk-cont .talk-b::before { display: none; }
.info-outro { margin-top: 22px; }
.talk-done { margin: 36px 0 6px; text-align: center; font-size: 40px; font-weight: 800; letter-spacing: .06em; line-height: 1.2; }
.talk-imgs img { display: block; width: 130px; max-width: 36vw; height: auto; border-radius: 14px; }
.talk-imgs img:only-child { width: 160px; max-width: 45vw; }
@media (max-width: 640px) { .talk-ic { width: 34px; height: 34px; } .talk-b { font-size: 14px; padding: 8px 12px; } }
.info-one { display: flex; justify-content: center; margin: 14px 0 30px; }
.info-share { display: flex; justify-content: center; margin: 30px 0 10px; }
.info-share a { display: inline-flex; align-items: center; justify-content: center; width: 132px; height: 52px; border-radius: 26px; background: #fff; border: 3px solid #16202e; color: #16202e; }
.info-share a:hover { background: #f2f4f7; }
.info-share svg { width: 24px; height: 24px; }
.info-one .card-link { width: clamp(150px, 46vw, 200px); }
.info-app { display: flex; align-items: center; gap: 16px; padding: 14px; margin: 26px 0 26px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card, #fff); color: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 rgba(27,42,65,.18); transition: transform .12s, box-shadow .12s; }
.info-app:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 rgba(27,42,65,.22); }
.info-app:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(27,42,65,.2); }
.info-app-icon { flex: 0 0 auto; width: 96px; height: 96px; object-fit: cover; border-radius: 14px; border: 2px solid var(--ink); }
.info-app-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.info-app-text b { font-size: 18px; }
.info-app-text span { font-size: 14px; line-height: 1.7; opacity: .85; }
.info-app-play { flex: 0 0 auto; width: 40px; height: 40px; padding: 8px; box-sizing: border-box; border-radius: 50%; background: var(--ink); color: var(--card, #fff); }
@media (max-width: 640px) { .info-app { gap: 12px; padding: 12px; } .info-app-icon { width: 72px; height: 72px; } .info-app-text b { font-size: 16px; } .info-app-text span { font-size: 13px; } .info-app-play { width: 34px; height: 34px; padding: 7px; } }
.info-page .info-notes { margin: 28px 0 8px; line-height: 1.9; }
.info-notes h2 { margin-top: 26px; }
.info-notes p { margin: 0 0 12px; }
.info-day { margin: 0 0 22px; font-size: 13px; color: var(--ink-soft); }
.info-clock { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.info-clock svg { width: 13px; height: 13px; flex: 0 0 auto; }
.info-desc + p:not(.info-day) { margin-top: 22px; }
.info-page h2 { margin: 36px 0 10px; }
.info-box { margin: 28px 0 0; padding: 16px 20px 6px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.info-box.box-p { background: #f2faea; }
.info-box.box-ai { background: #eef6fb; }
.info-box .info-box-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 17px; }
.info-box .info-box-h img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; object-fit: cover; }
.info-box p { margin: 0 0 12px; line-height: 1.9; }
.info-box .box-reply { font-size: 14px; color: var(--ink-soft); }
.info-box .box-reply b { margin-right: 8px; color: var(--ink); font-size: 12px; }

.info-near { padding-left: 1.2em; }
.info-near a { color: inherit; }
.privacy-page h2 { margin: 30px 0 8px; }
.privacy-page p { margin: 6px 0; }
.privacy-page a { color: inherit; }
.privacy-page .muted { margin-bottom: 14px; }
.head-logo img { display: block; height: 40px; width: auto; }
/* 一覧・プロフィールの上のバーは、スクロールしても付いてくる */
.site-head { position: sticky; top: 0; z-index: 50; }
/* 右上の言語切り替え（日・英・韓・中（簡/繁）のドロップダウン）。目立たせず、文字だけ置く */
.lang-switch { justify-self: end; display: inline-flex; align-items: center; }
/* 左上のメニュー（三本線）と、左から出るサイドバー */
.fullplay-head:not(.site-head) { position: relative; z-index: 50; }
.menu-btn {
  justify-self: start; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); }
.menu-btn:hover { opacity: .7; }
.side-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.35); }
.side-backdrop[hidden] { display: none; }
.side {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1001; width: min(300px, 82vw);
  display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  background: var(--card); border-right: 2px solid var(--ink);
  transform: translateX(-105%); transition: transform .2s ease; visibility: hidden;
}
.side.open { transform: none; visibility: visible; }
/* PCは、YouTubeのように上のバーの下から出し、後ろは暗くしない（外を押すと閉じるのはそのまま） */
.side-menu { position: absolute; }
/* 狭い画面では、上のバーと同じ高さを空けてから中身を並べる */
@media (max-width: 899.98px) { .side { padding-top: calc(var(--head-h, 64px) + 10px); } }
@media (min-width: 900px) {
  /* PCで開いている間は、中身をサイドバーの幅だけ右へ寄せる（重ねない） */
  #app > main { transition: margin-left .2s ease; }
  body.side-on #app > main:not(.fullplay) { margin-left: min(300px, 82vw); }
  .side-menu { display: none; }
  .side, .side-backdrop { top: var(--head-h, 0px); }
  .side { padding-top: 18px; }
  .side-backdrop { background: transparent; }
}
.side-nav { list-style: none; margin: 0; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.side-nav a {
  display: flex; align-items: center; gap: 16px; padding: 9px 10px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14.5px;
}
.side-nav a:hover { background: rgba(22,32,46,.06); }
.side-ic { flex: 0 0 auto; width: 22px; height: 22px; }
.side-mail { color: inherit; text-decoration: none; -webkit-user-select: all; user-select: all; }
.side-mail:hover { text-decoration: underline; }
/* 「ゾウノアシゲームズ」「関連サイト」の見出し */
.side-head { margin: 0; padding: 0 10px; font-weight: 700; font-size: 15px; color: var(--ink); }
.side-copy { margin: -6px 0 0; font-size: 11px; line-height: 1.7; color: var(--ink-soft); }
.side-note {
  margin: auto 0 0; padding: 10px 12px; font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 10px; background: var(--card); word-break: auto-phrase;
}
.lang-switch select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink-soft);
  font: inherit; font-size: 12px; letter-spacing: .04em; cursor: pointer;
  min-height: 36px; padding: 8px 18px 8px 6px; border-radius: 8px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 8px center, right 4px center; background-size: 4px 4px; background-repeat: no-repeat;
}
.lang-switch select:hover, .lang-switch select:focus-visible { color: var(--ink); }
.fullplay-head.solo { grid-template-columns: 1fr; }
.fullplay-shell { flex: 1 1 auto; min-height: 0; }
.fullplay-frame { width: 100%; height: 100%; aspect-ratio: auto !important; max-width: none !important; }

.player-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.player-tags {
  font-family: var(--dot); font-size: 12px; color: var(--stamp);
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px;
}

/* ---------- リンクリスト / 年表 ---------- */
.link-list { list-style: none; }
.link-list li { border-bottom: 1px dashed var(--line); }
.link-list a, .link-list .row {
  display: flex; align-items: baseline; gap: 12px; padding: 12px 4px;
  color: var(--ink); text-decoration: none; font-size: 14px;
}
.link-list a:hover { color: var(--stamp); }
.link-list .sub { margin-left: auto; font-size: 11.5px; color: var(--ink-soft); font-family: var(--dot); }
.link-list .yr { font-family: var(--dot); font-size: 13px; color: var(--stamp); min-width: 3.6em; }

/* ---------- 本文ブロック ---------- */
.prose { max-width: 62ch; font-size: 14.5px; }
.prose p + p { margin-top: 1em; }
.prose ul { margin: .6em 0 .6em 1.4em; }
.note {
  border: 2px dashed var(--stamp); border-radius: 10px;
  padding: 12px 16px; font-size: 13px; background: var(--card); margin-bottom: 20px;
}


@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
