/* 入学準備プリント /nyugaku-junbi/ 作りなおし（2026-10-25）：このページだけの CSS（inc/nyugaku-check.php が このページだけで 読む・site.src.css は さわらない）
   見本＝サイトリニューアル/調査/入学準備ページ見直し_2026-10-25/mock/
   にぎやか v4：白い 角丸カード・うすい 色の 面＋色の ふち・線の 影・わくま。箱の 片側だけの 色の線なし・かたむけなし・濃い 面に 長い 字なし。スマホ（390）から */
.nj2-sec { --g1: #F07A28; --g2: #FFC93C; --g3: #6FC27E; }
.nj2-sec .mark { background: linear-gradient(transparent 58%, var(--yellow-s) 58%); padding: 0 .06em; }

/* ---------- 1. ゲーム ---------- */
#check.nj2-sec { padding-top: 22px; padding-bottom: 8px; }
.nj2-game { position: relative; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--g1), var(--g2) 45%, var(--g3)) border-box; border: 5px solid transparent; border-radius: 30px; box-shadow: 0 7px 0 var(--line); overflow: hidden; }
.nj2-g-start { display: grid; grid-template-columns: 1fr; padding: 22px 20px 22px; position: relative; }
.nj2-g-wk { position: absolute; right: 10px; top: 14px; width: 92px; height: auto; }
.nj2-g-eb { margin: 0; font-family: var(--maru); font-weight: 900; font-size: 13px; color: var(--soroban-d); letter-spacing: .06em; }
.nj2-game h2 { margin: 6px 0 0; font-family: var(--maru); font-weight: 900; font-size: 30px; line-height: 1.2; color: var(--ink); }
.nj2-g-sub { margin: 10px 108px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink2); font-weight: 700; }
/* スタンプ：10この 丸が いつも 箱の 幅に おさまる（10/25 夜 Sana の iPhone で 1問めの あと 右に はみ出した → grid の 1fr＋aspect-ratio を やめて、
   flex で ちぢむ 丸・正方形は padding-top:100%） */
.nj2-g-stamps { display: flex; gap: 5px; width: 100%; max-width: 360px; min-width: 0; margin: 16px 0 0; }
.nj2-g-stamps i { position: relative; display: block; flex: 1 1 0; min-width: 0; border-radius: 50%; border: 2.5px dashed #E3D3B4; background: #FFFBF2; font-style: normal; }
.nj2-g-stamps i::before { content: ""; display: block; padding-top: 100%; }
.nj2-g-stamps i.on { border-style: solid; border-color: var(--c, var(--soroban)); background: var(--c, var(--soroban)); animation: nj2-pop .35s ease-out; }
.nj2-g-stamps i.on::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--maru); font-weight: 900; font-size: 13px; line-height: 1; color: #fff; }
.nj2-g-go, .nj2-g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin-top: 18px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--maru); font-weight: 900; font-size: 20px; letter-spacing: .04em; box-shadow: 0 5px 0 #D9C800; cursor: pointer; }
.nj2-game [hidden] { display: none !important; }   /* display:grid が hidden に 勝って、あそんでいる 間も はじめの 画面が 出ていた */
.nj2-game .nj2-g-go, .nj2-game .nj2-g-btn { min-height: 56px; text-decoration: none; }
.nj2-g-go:active, .nj2-g-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #D9C800; }
.nj2-g-go span { font-size: 15px; }

/* あそんでいる 画面 */
.nj2-g-play { padding: 16px 18px 20px; }
.nj2-g-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nj2-g-top .nj2-g-stamps { margin: 0; flex: 1 1 auto; width: auto; max-width: 300px; gap: 4px; }
.nj2-g-cnt { flex: none; font-family: var(--maru); font-weight: 900; font-size: 15px; color: var(--ink2); white-space: nowrap; }
.nj2-g-q { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; margin-top: 16px; min-height: 96px; }
.nj2-g-ic { width: 84px; height: 84px; border-radius: 26px; background: var(--cl); border: 3px solid var(--c); display: grid; place-items: center; color: var(--c); font-family: var(--maru); font-weight: 900; font-size: 40px; line-height: 1; }
.nj2-g-ic svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nj2-g-cat { display: inline-block; padding: 3px 12px 4px; border-radius: 999px; background: var(--cl); color: var(--cd); font-family: var(--maru); font-weight: 900; font-size: 12.5px; }
.nj2-g-qt { margin: 6px 0 0; font-family: var(--maru); font-weight: 900; font-size: 22px; line-height: 1.35; color: var(--ink); }
.nj2-g-tip { margin: 14px 0 0; padding: 10px 14px; border-radius: 16px; background: var(--cream2); font-size: 13.5px; line-height: 1.55; color: var(--ink2); }
.nj2-g-tip b { font-family: var(--maru); font-weight: 900; color: var(--ink); margin-right: 6px; }
.nj2-g-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.nj2-g-ans button { min-height: 76px; border-radius: 22px; font-family: var(--maru); font-weight: 900; font-size: 21px; line-height: 1.15; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nj2-g-ans button small { font-size: 11.5px; font-weight: 700; opacity: .9; }
.nj2-g-ans .yes { background: var(--shodo-l); color: var(--shodo-d); border: 3px solid var(--shodo); box-shadow: 0 5px 0 #A9D9BF; }
.nj2-g-ans .no { background: #fff; color: var(--soroban-d); border: 3px solid #F7C9A4; box-shadow: 0 5px 0 #F7DCC4; }
.nj2-g-ans button:active { transform: translateY(3px); box-shadow: none; }
.nj2-g-ans button:disabled { opacity: .55; }
.nj2-g-back { margin-top: 12px; background: none; border: 0; padding: 8px 4px; min-height: 44px; font-size: 13px; color: var(--ink3); text-decoration: underline; cursor: pointer; }
.nj2-g-react { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: flex-end; gap: 4px; pointer-events: none; opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .25s; }
.nj2-g-react.show { opacity: 1; transform: none; }
.nj2-g-react img { width: 74px; height: auto; }
.nj2-g-react span { margin-bottom: 52px; padding: 7px 12px; border-radius: 16px; background: var(--ink); color: #fff; font-family: var(--maru); font-weight: 900; font-size: 14px; white-space: nowrap; }

/* おわりの 画面 */
.nj2-g-end { padding: 22px 18px 22px; text-align: center; }
.nj2-g-end .nj2-g-wk { position: static; width: 104px; margin: 0 auto; }
.nj2-g-end h2 { margin-top: 4px; }
.nj2-g-end .nj2-g-stamps { margin: 12px auto 0; }
.nj2-g-sum { display: grid; gap: 10px; margin: 18px 0 0; text-align: left; }
.nj2-g-sum p { margin: 0 0 6px; font-family: var(--maru); font-weight: 900; font-size: 14px; color: var(--ink2); }
.nj2-g-sum ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nj2-g-sum li { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.nj2-g-sum .ok li { background: var(--shodo-l); color: var(--shodo-d); }
.nj2-g-sum .next li { background: var(--soroban-l); color: var(--soroban-d); }
.nj2-g-recs { margin-top: 18px; text-align: left; }
.nj2-g-recs > p { margin: 0 0 10px; font-family: var(--maru); font-weight: 900; font-size: 17px; color: var(--ink); text-align: center; }
.nj2-g-recs .nj2-mini { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; margin-top: 8px; border-radius: 18px; background: #fff; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); color: var(--ink); text-decoration: none; min-height: 64px; }
.nj2-mini img { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: 10px; background: var(--cream2); }
.nj2-mini b { display: block; font-family: var(--maru); font-weight: 900; font-size: 15.5px; line-height: 1.3; }
.nj2-mini small { display: block; font-size: 12px; color: var(--ink2); }
.nj2-mini i { font-style: normal; font-family: var(--maru); font-weight: 900; color: var(--soroban-d); }
.nj2-g-end .nj2-g-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.nj2-game .nj2-g-end .nj2-g-btn { margin-top: 0; font-size: 17px; min-height: 52px; padding: 0 22px; }
.nj2-g-end .nj2-g-btn.ghost { background: #fff; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.nj2-g-trial { margin-top: 12px; display: grid; gap: 8px; }
.nj2-g-trial a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; font-family: var(--maru); font-weight: 900; font-size: 16px; text-decoration: none; }
.nj2-g-trial .so { background: var(--soroban-l); color: var(--soroban-d); border: 3px solid var(--soroban); }
.nj2-g-trial .sh { background: var(--shodo-l); color: var(--shodo-d); border: 3px solid var(--shodo); }

@keyframes nj2-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------- 2. プリント ---------- */
#download.nj2-sec { padding-top: 34px; }
.nj2-hd { text-align: center; margin-bottom: 18px; }
.nj2-hd h2 { margin: 0; font-family: var(--maru); font-weight: 900; font-size: 28px; color: var(--ink); }
.nj2-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.nj2-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--line); font-family: var(--maru); font-weight: 900; font-size: 13.5px; color: var(--ink); }
.nj2-chips li::before { content: "✓"; color: var(--shodo); }
.nj2-grp { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 12px; font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.nj2-grp span { padding: 5px 16px; border-radius: 999px; font-family: var(--maru); font-weight: 900; font-size: 17px; }
.nj2-grp.sh span { background: var(--shodo-l); color: var(--shodo-d); }
.nj2-grp.so span { background: var(--soroban-l); color: var(--soroban-d); }
.nj2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nj2-card { --c: var(--soroban); --cl: var(--soroban-l); --cd: var(--soroban-d); position: relative; display: flex; flex-direction: column; padding: 8px 8px 10px; border-radius: 20px; background: #fff; border: 3px solid color-mix(in srgb, var(--c) 35%, #fff); box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 22%, #fff); color: var(--ink); text-decoration: none; }
.nj2-card.sh { --c: var(--shodo); --cl: var(--shodo-l); --cd: var(--shodo-d); }
.nj2-card:hover { transform: translateY(-2px); }
.nj2-th { display: block; aspect-ratio: 1 / 1.02; border-radius: 13px; overflow: hidden; background: var(--cl); border: 1.5px solid #EFE6D6; }
.nj2-th img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nj2-no { position: absolute; left: 2px; top: 2px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; border: 3px solid #fff; display: grid; place-items: center; font-family: var(--maru); font-weight: 900; font-size: 16px; }
.nj2-no.nj2-plus { font-size: 18px; }
.nj2-card b { margin: 9px 2px 0; font-family: var(--maru); font-weight: 900; font-size: 16px; line-height: 1.3; }
.nj2-card small { margin: 2px 2px 0; font-size: 12px; line-height: 1.4; color: var(--ink2); }
.nj2-dl { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 10px; border-radius: 999px; background: var(--cl); color: var(--cd); font-family: var(--maru); font-weight: 900; font-size: 15px; }
.nj2-dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nj2-tips { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.nj2-tips li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 12px 16px; border-radius: 18px; background: #fff; border: 2px solid var(--line); font-size: 13.5px; color: var(--ink2); }
.nj2-tips b { font-family: var(--maru); font-weight: 900; font-size: 15.5px; color: var(--ink); }
.nj2-tips li::before { content: "✿"; color: var(--soroban); }

/* ---------- 大きな 画面 ---------- */
@media (min-width: 720px) {
  .nj2-g-start { grid-template-columns: 1fr 190px; align-items: center; padding: 28px 34px; }
  .nj2-g-wk { position: static; width: 170px; order: 2; justify-self: center; }
  .nj2-game h2 { font-size: 38px; }
  .nj2-g-sub { margin-right: 0; font-size: 15.5px; }
  .nj2-g-play { padding: 22px 34px 26px; }
  .nj2-g-q { grid-template-columns: 104px 1fr; }
  .nj2-g-ic { width: 104px; height: 104px; }
  .nj2-g-qt { font-size: 27px; }
  .nj2-g-ans { max-width: 560px; }
  .nj2-g-end { padding: 28px 34px; }
  .nj2-g-recs { max-width: 560px; margin-left: auto; margin-right: auto; }
  .nj2-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .nj2-tips { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- スマホ（〜680px）：サイトは html { zoom: .75 } → ここの px は 0.75 倍で 見える。押す ところは 見えて 44px 以上（＝ 59px 以上）、ゲームの 字は 大きく ---------- */
@media (max-width: 680px) {
  .nj2-g-eb { font-size: 16px; }
  .nj2-game h2 { font-size: 38px; }
  .nj2-g-start .nj2-g-wk { width: 108px; right: 10px; top: auto; bottom: 10px; }   /* スマホは 右下（題を 横いっぱいに） */
  .nj2-g-start .nj2-g-stamps { max-width: calc(100% - 118px); }
  .nj2-g-sub { font-size: 17px; margin-right: 0; }
  .nj2-g-stamps i.on::after { font-size: 15px; }
  .nj2-game .nj2-g-go { min-height: 66px; font-size: 25px; padding: 0 38px; }
  .nj2-g-cnt { font-size: 18px; }
  .nj2-g-q { grid-template-columns: 100px 1fr; }
  .nj2-g-ic { width: 100px; height: 100px; font-size: 48px; }
  .nj2-g-ic svg { width: 56px; height: 56px; }
  .nj2-g-cat { font-size: 15px; }
  .nj2-g-qt { font-size: 28px; }
  .nj2-g-tip { font-size: 16.5px; }
  .nj2-g-ans button { min-height: 96px; font-size: 27px; }
  .nj2-g-ans button small { font-size: 14px; }
  .nj2-g-back { min-height: 60px; font-size: 16px; }
  .nj2-g-react img { width: 92px; }
  .nj2-g-react span { font-size: 17px; margin-bottom: 64px; }
  .nj2-g-sum p { font-size: 17px; }
  .nj2-g-sum li { font-size: 16px; padding: 7px 14px; }
  .nj2-g-recs > p { font-size: 21px; }
  .nj2-g-recs .nj2-mini { grid-template-columns: 78px 1fr auto; min-height: 92px; }
  .nj2-mini img { width: 78px; height: 78px; }
  .nj2-mini b { font-size: 19px; }
  .nj2-mini small { font-size: 14.5px; }
  .nj2-game .nj2-g-end .nj2-g-btn { min-height: 64px; font-size: 21px; }
  .nj2-g-trial a { min-height: 62px; font-size: 20px; }
  .nj2-hd h2 { font-size: 34px; }
  .nj2-chips li { font-size: 16.5px; padding: 7px 16px; }
  .nj2-grp { font-size: 16px; }
  .nj2-grp span { font-size: 21px; }
  .nj2-grid { gap: 14px; }
  .nj2-no { width: 42px; height: 42px; font-size: 20px; }
  .nj2-card b { font-size: 20px; }
  .nj2-card small { font-size: 14.5px; }
  .nj2-dl { min-height: 60px; font-size: 19px; }
  .nj2-dl svg { width: 22px; height: 22px; }
  .nj2-tips li { font-size: 16px; padding: 14px 18px; }
  .nj2-tips b { font-size: 18.5px; }
}
