/* bunburun のサイト（入口・ゲームの詳細のページ・運営者・プライバシーポリシー・アカウント・404）
   2026-11-07 から 入口は ゲームの一覧＝札を押すと 詳細のページ（/games/<ゲーム>/）→「遊ぶ」で ゲーム（/<ゲーム>/）
   見た目は 相撲部屋の App Store のスクショと同じ言葉＝空のグラデーションの帯・丸い字（Mochiy Pop One）・紺の縁
   （スクショの隅の 赤と青の斜めの帯は 入口に入れたが外した＝同じ日 発注者「いいんですが、斜めの線がちょっとださいかな」→「何か代わりに入れてくれたらいいかな」
    → 代わりに 雲と力士（ゲームの歩く絵）を選んだ）
   （2026-10-18 発注者「なんかまだダサいんですよね。グラデーションとか使ったらどうだろうか？」→ 案「ゲームのサイトの型」を選んだ）
   字の地は白。色は ロゴの4色・紺・帯の赤と青だけ。★ロゴに無い色（クリーム・茶・桃・薄い灰色のボタン）は使わない（同じ日の「配色がaiっぽい」）
   材料（縁を付けたロゴ・見出しの絵・ゲームの画面・字）は tools/site_look.py で作る。字は自分のサイトに置く（Google Fonts は使わない） */
@font-face { font-family: "Mochiy Pop One"; src: url("/fonts/mochiy-pop-one.woff") format("woff"); font-display: swap; }

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e2e2e6;
  --navy: #1b2a78;
  --navy-soft: #cdd6f2;
  --red: #fd494c;
  --orange: #fe751c;
  --yellow: #fec802;
  --blue: #08aefc;
  --red-text: #d93338; /* 小さい赤い字（ロゴの赤は 白の上の小さい字には薄い） */
  --link: #0a6fc2;
  --sky: linear-gradient(180deg, #08a6f3 0%, #3ec2ff 55%, #8fdcff 100%); /* 下の端は 雲が 白いページへつなぐ */
  --pop: "Mochiy Pop One", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.8 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* 入口の上: 空のグラデーション（幅いっぱい）・縁を付けたロゴ・見出し・下の端に雲・雲の上に 力士と親方（右上に アカウント） */
.herobg { position: relative; overflow: hidden; background: var(--sky); }
/* ★上の帯は 低く＝「遊ぶ」が 開いてすぐの画面に入る（スマホ 390×660・パソコン 1366×650 で測る） */
.hero { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; padding: 42px 16px 34px; text-align: center; }
.hero .logo { margin: 0; line-height: 0; }
.hero .logo img { width: min(270px, 70vw); height: auto; }
.lead { margin: 4px 0 0; line-height: 0; }
.lead .catch { width: min(270px, 72vw); height: auto; }
.clouds { position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; z-index: 1; background: url("/img/deco/cloud-band.svg") repeat-x center bottom / 300px 48px; }
.puff { position: absolute; z-index: 0; height: auto; opacity: .9; }
.puff.p1 { width: 86px; left: 4%; top: 64px; }
.puff.p2 { width: 70px; right: 6%; top: 118px; opacity: .75; }
/* 力士と親方（相撲部屋の歩く絵の1こま）。スマホは 左右に1人ずつ・パソコンは 3人ずつ */
.crowd { position: absolute; bottom: 14px; z-index: 3; display: flex; align-items: flex-end; gap: 2px; }
.crowd.left { left: 6px; }
.crowd.right { right: 6px; }
.crowd img { width: auto; height: 64px; filter: drop-shadow(0 3px 0 rgba(27, 42, 120, .18)); }
.crowd img:not(:last-child) { display: none; }

/* アカウントへの入り口（入口の右上・文書のページの帯の右） */
.acct { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(27, 42, 120, .55); color: #fff; font-family: var(--pop); font-size: 13px; line-height: 1.2; text-decoration: none; }
.acct:hover { background: rgba(27, 42, 120, .72); }
.hero .acct { position: absolute; top: 14px; right: 16px; }

/* 文書のページの上の帯（空のグラデーション・縁を付けた小さいロゴ） */
.barbg { background: linear-gradient(180deg, #08a6f3 0%, #3ec2ff 100%); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.bar .mini { display: inline-block; line-height: 0; }
.bar .mini img { width: auto; height: 44px; }

/* 節の見出し（ゲーム・ゲームの画面・遊び方・遊ぶ前に・ほかのゲーム） */
.label { font-family: var(--pop); font-weight: 400; font-size: 19px; color: var(--navy); letter-spacing: 0.04em; margin: 12px 0 10px; }
/* 詳細のページは 節の間を少し空ける（入口は 前のまま） */
.detail-page main > section { margin-top: 26px; }

/* 詳細のページの上の パンくずリスト（bunburun › ゲームの名前） */
.crumbs { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--navy); }
.crumbs a { color: var(--navy); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ゲームの札（紺の縁） */
.game { background: var(--card); border: 3px solid var(--navy); border-radius: 18px; box-shadow: 0 6px 0 rgba(27, 42, 120, .18); overflow: hidden; }
.game .shot { display: block; line-height: 0; background: var(--navy); }
.game + .game { margin-top: 20px; } /* 2本目から（2026-10-31・学校の経営ゲーム） */
.game .shot img { width: 100%; height: auto; aspect-ratio: 1200 / 481; object-fit: cover; }
.game .body { padding: 14px 20px 22px; }
.game .kind { margin: 0; font-family: var(--pop); font-size: 13px; color: var(--red-text); }
.game h3, .game h1 { margin: 2px 0 0; font-family: var(--pop); font-weight: 400; font-size: 28px; line-height: 1.3; color: var(--navy); }
.game h3 .sub, .game h1 .sub { display: block; font-size: 15px; color: #4a5a9a; margin-top: 2px; }
/* 入口の札（2026-11-07 から 押すと 詳細のページへ＝リスト → 詳細 → ゲーム）。札の全体が押せる＝題の リンクを 札いっぱいに広げる */
.game.link { position: relative; transition: transform .12s ease, box-shadow .12s ease; }
.game.link h3 a { color: inherit; text-decoration: none; }
.game.link h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.game.link h3 a:focus-visible { outline: none; }
.game.link:focus-within { outline: 3px solid var(--link); outline-offset: 3px; }
.game.link:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(27, 42, 120, .22); }
.game.link:hover .more { background: #eef8ff; }
/* 詳しく見る（白に紺の縁＝ゲームの「始める」と同じ 赤い「遊ぶ」とは分ける） */
.more {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 360px; margin: 16px auto 0; padding: 10px 20px;
  font-family: var(--pop); font-weight: 400; font-size: 20px; line-height: 1.3; letter-spacing: 0.08em; color: var(--navy);
  background: #fff; border: 3px solid var(--navy); border-radius: 999px; box-shadow: 0 5px 0 rgba(27, 42, 120, .18);
}
.more::after { content: ""; flex: none; width: 9px; height: 9px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(45deg); }
/* 詳細のページの 説明（段落が いくつか） */
.game .desc p { margin: 0; }
.game .desc p + p { margin-top: 10px; }
/* 特徴は ふつうの字を 細い縦線で区切る（色の付いた札にしない） */
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 2px; }
.chips li { color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1.6; }
.chips li + li::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 10px; background: var(--navy-soft); vertical-align: -1px; }
.game .desc { margin: 18px 0 0; font-size: 15px; }
/* 遊ぶ＝ゲームのタイトルの「始める」と同じ赤いボタン（グラデーション・白の内縁＋紺の外縁・字に紺の縁） */
.play {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 360px; margin: 16px auto 0; padding: 11px 20px;
  font-family: var(--pop); font-weight: 400; font-size: 25px; line-height: 1.3; letter-spacing: 0.12em; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #ff6c4f 0%, #f53b30 55%, #d6271f 100%);
  border: 3px solid #fff; border-radius: 999px;
  box-shadow: 0 0 0 3px var(--navy), 0 7px 0 3px rgba(27, 42, 120, .25);
  text-shadow: 0 2.5px 0 var(--navy), 0 -2.5px 0 var(--navy), 2.5px 0 0 var(--navy), -2.5px 0 0 var(--navy),
    1.8px 1.8px 0 var(--navy), -1.8px 1.8px 0 var(--navy), 1.8px -1.8px 0 var(--navy), -1.8px -1.8px 0 var(--navy);
}
.play svg { flex: none; overflow: visible; }
.play svg path { stroke: var(--navy); stroke-width: 4px; stroke-linejoin: round; paint-order: stroke fill; }
.play:hover { background: linear-gradient(180deg, #ff7b61 0%, #ff4a3e 55%, #e0322a 100%); }
.play:active { transform: translateY(3px); box-shadow: 0 0 0 3px var(--navy), 0 4px 0 3px rgba(27, 42, 120, .25); }
.price { margin: 14px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); text-align: center; }

/* ゲームの画面（App Store のスクショ）。スマホは横に送る・パソコンは 3つずつ並べる */
.shots .strip { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 12px; scroll-padding: 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots .strip::-webkit-scrollbar { display: none; }
.shots .strip img { flex: none; width: 84%; height: auto; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--navy); background: var(--navy-soft); scroll-snap-align: start; }

/* 遊ぶ前に（3つを 紺の縁の1枚に・間は点線） */
.tips ul { list-style: none; margin: 0; padding: 0; display: grid; background: var(--card); border: 3px solid var(--navy); border-radius: 18px; overflow: hidden; }
.tips li { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: start; align-content: start; padding: 16px 18px; border-bottom: 2px dashed var(--navy-soft); }
.tips li:last-child { border-bottom: 0; }
.tips .ic { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; color: var(--navy); }
.tips b { font-family: var(--pop); font-weight: 400; font-size: 15px; line-height: 1.6; color: var(--navy); }
.tips p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--muted); }

/* 遊び方（詳細のページ・紺の縁の1枚・項目の間は点線・見出しは丸い字） */
.guide { background: var(--card); border: 3px solid var(--navy); border-radius: 18px; padding: 2px 20px 20px; }
.guide section { padding-top: 16px; }
.guide section + section { margin-top: 16px; border-top: 2px dashed var(--navy-soft); }
.guide h3 { margin: 0; font-family: var(--pop); font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--navy); }
.guide p { margin: 4px 0 0; font-size: 15px; }
.guide .close { margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--navy-soft); font-weight: 700; color: var(--navy); }
/* 1年の予定（学校の経営ゲーム）＝月と行事の表 */
.guide table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; line-height: 1.7; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 7px 6px; border-bottom: 1px solid var(--line); }
.guide tr:last-child th, .guide tr:last-child td { border-bottom: 0; }
.guide th { width: 3.6em; white-space: nowrap; font-family: var(--pop); font-weight: 400; color: var(--navy); }

/* 詳細のページの いちばん下の「遊ぶ」（読み終えた所から） */
.again { margin: 26px 0 0; }

/* ほかのゲーム（詳細のページの下・小さい札＝押すと そのゲームの 詳細のページ） */
.others .list { display: grid; gap: 12px; }
.mini-card {
  display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; padding: 10px 14px 10px 10px;
  background: var(--card); border: 3px solid var(--navy); border-radius: 14px; box-shadow: 0 4px 0 rgba(27, 42, 120, .15);
  color: var(--text); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease;
}
.mini-card:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(27, 42, 120, .2); }
.mini-card img { width: 132px; height: auto; aspect-ratio: 1200 / 481; object-fit: cover; border-radius: 8px; background: var(--navy); }
.mini-card img.top { object-position: 50% 0%; }
.mini-card .kind { display: block; font-family: var(--pop); font-size: 12px; line-height: 1.5; color: var(--red-text); }
.mini-card .name { display: block; font-family: var(--pop); font-size: 17px; line-height: 1.4; color: var(--navy); }

/* 文書のページ（運営者・プライバシーポリシー・アカウント・404） */
.doc { background: var(--card); border: 3px solid var(--navy); border-radius: 18px; box-shadow: 0 6px 0 rgba(27, 42, 120, .12); padding: 24px 22px 28px; margin-top: 22px; }
.doc h1 { font-family: var(--pop); font-weight: 400; font-size: 24px; margin: 0 0 8px; line-height: 1.4; color: var(--navy); }
.doc h2 { font-family: var(--pop); font-weight: 400; font-size: 17px; margin: 28px 0 6px; padding-top: 14px; border-top: 2px dashed var(--navy-soft); color: var(--navy); }
.doc h3 { font-size: 15px; margin: 18px 0 4px; color: var(--navy); }
.doc p, .doc li { font-size: 15px; }
.doc ul { padding-left: 1.2em; margin: 6px 0; }
.doc .summary { background: #eef8ff; border-radius: 12px; padding: 12px 16px; margin: 14px 0 0; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.doc th { width: 34%; color: var(--muted); font-weight: 600; white-space: nowrap; }
.doc .updated { margin-top: 28px; font-size: 13px; color: var(--muted); }
/* 中身の細いページ（アカウント）は 帯も札も細く・真ん中に */
.wrap.narrow { max-width: 592px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back:hover { color: var(--text); text-decoration: underline; }

/* 下 */
footer { text-align: center; padding: 40px 0 48px; font-size: 13px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 8px; }
footer nav a { color: var(--navy); text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer p { margin: 0; }

@media (min-width: 760px) {
  /* パソコン: 絵は低く・遊ぶを右に＝1画面目に入る */
  .hero { padding: 20px 16px 46px; }
  .clouds { height: 72px; background-size: 450px 72px; }
  .puff.p1 { width: 150px; left: 14%; top: 40px; }
  .puff.p2 { width: 120px; right: 16%; top: 96px; }
  .crowd { bottom: 24px; gap: 6px; }
  .crowd.left { left: max(16px, calc(50% - 440px)); }
  .crowd.right { right: max(16px, calc(50% - 440px)); }
  .crowd img { height: 92px; }
  .crowd img:not(:last-child) { display: block; }
  .hero .logo img { width: 300px; }
  .lead .catch { width: 340px; }
  .game .shot img { max-height: 210px; object-position: 50% 20%; } /* 低く切っても 絵の上の題字（相撲部屋）が切れないように */
  .game .shot img.top { object-position: 50% 0%; } /* 題字が絵のいちばん上にある札（のぼり坂学園＝タイトルの画面から切り出した絵）は 上から */
  .game .body { display: grid; grid-template-columns: 1fr 300px; grid-template-areas: "info cta" "desc cta"; gap: 0 36px; align-items: start; padding: 22px 32px 26px; }
  .game .info { grid-area: info; }
  .game .cta { grid-area: cta; align-self: start; margin-top: 10px; }
  .game .desc { grid-area: desc; margin-top: 12px; }
  .game .cta .play { margin-top: 0; }
  .shots .strip { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 4px 0 0; }
  .shots .strip img { width: 100%; }
  .tips ul { grid-template-columns: repeat(3, 1fr); }
  .tips li { grid-template-columns: 1fr; border-bottom: 0; border-right: 2px dashed var(--navy-soft); }
  .tips li:last-child { border-right: 0; }
  .tips .ic { grid-row: auto; margin-bottom: 8px; }
  /* 詳細のページの 遊ぶ前に は 4つ＝2つずつ 2段 */
  .tips.four ul { grid-template-columns: repeat(2, 1fr); }
  .tips.four li { border-right: 0; border-bottom: 2px dashed var(--navy-soft); }
  .tips.four li:nth-child(odd) { border-right: 2px dashed var(--navy-soft); }
  .tips.four li:nth-last-child(-n + 2) { border-bottom: 0; }
  .doc { padding: 34px 40px 38px; }
  /* 詳細のページ: 題の絵は 切らずに 全部（入口の札は 低く切る） */
  .detail .shot img { max-height: none; }
  .game h1 { font-size: 32px; }
  .guide { padding: 6px 32px 26px; }
  .others .list { grid-template-columns: repeat(2, 1fr); }
}

/* スマホの細い幅では 表の見出しと中身を縦に並べる */
@media (max-width: 520px) {
  .doc th, .doc td { display: block; width: auto; }
  .doc th { padding-bottom: 0; border-bottom: none; }
  .doc td { padding-top: 2px; }
}

/* プライバシーポリシーの「このブラウザでは止める」（Google アナリティクス・privacy/index.html） */
.doc .ga-switch { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.doc .ga-switch[hidden] { display: none; } /* ★display: flex が hidden に勝つ＝端末に記録できない時に出してしまう */
.doc .ga-switch p { margin: 0; }
.doc .ga-toggle { font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: 8px 16px; min-height: 44px; cursor: pointer; }
.doc .ga-toggle[aria-pressed="true"] { background: var(--navy-soft); }
