/* 雨にぬれても — あそびかたのページ（2026-11-05）。ゲームと同じドット書体と、角を落としたドットの枠 */
:root {
  --paper: #f3e8cf; --paper2: #e7d6b0; --ink: #2e2b4f; --ink-soft: #5d5775; --pink: #d63d72; --pink-d: #8f2450;
  --sky: #3f78bf; --sky2: #95c4e8; --rain: #6fb6ff; --leaf: #3fae5d; --cream: #fffaf0;
  --dot: "DotGothic16", "Hiragino Sans", sans-serif;
  --body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper2); font: 500 16px/1.85 var(--body); line-break: strict; overflow-wrap: anywhere; }
/* 本文は日本語のふつうの文字組：どこでも折り返し・行頭の句読点は禁則・両端そろえ */
.text, .st-t p, .card p, .pts li, .pbox p, .pbox li, .faq details p, .daily dd { text-align: justify; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }
canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.px { clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }

/* ヒーロー：雨上がりの空 */
.hero { position: relative; overflow: hidden; padding: 22px 0 0; text-align: center; color: var(--cream);
  background: linear-gradient(#3f78bf 0 30%, #679dd6 30% 55%, #95c4e8 55% 78%, #cfe9f4 78%); }
#heroFx { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-bottom: var(--ground, 130px); }
.brand { display: inline-block; line-height: 0; margin-bottom: 6px; }
.brand img { width: min(220px, 56vw); height: auto; }
.logo { margin: 4px 0 0; line-height: 0; display: flex; justify-content: center; }
#logoCv { cursor: pointer; }
.lead { margin: 10px auto 16px; max-width: 34em; font: 400 clamp(17px, 4.4vw, 22px)/1.6 var(--dot); text-shadow: 2px 2px 0 var(--ink), 0 0 8px rgba(46,43,79,.5); }
.lead span { display: inline-block; }
.cta { display: inline-block; min-width: 200px; padding: 12px 28px; font: 400 21px/1.2 var(--dot); letter-spacing: .12em; text-decoration: none; color: var(--cream);
  background: var(--pink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--pink-d);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.cta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-d); }

/* 見出しと節 */
.sec { padding: 54px 0 10px; }
.head { margin: 0 0 6px; text-align: center; font: 400 clamp(26px, 6.4vw, 34px)/1.3 var(--dot); letter-spacing: .08em; }
.head::after { content: ''; display: block; width: 72px; height: 6px; margin: 10px auto 0; background:
  linear-gradient(90deg, var(--rain) 0 12px, transparent 12px 18px, var(--leaf) 18px 30px, transparent 30px 36px, var(--pink) 36px 48px, transparent 48px 54px, #ffd23f 54px 66px, transparent 66px); }
.head-sub { margin: 10px auto 24px; text-align: center; color: var(--ink-soft); font-size: 15px; overflow-wrap: anywhere; }
.text { margin: 16px 0 0; overflow-wrap: anywhere; }
.text.small { font-size: 14px; color: var(--ink-soft); }
em { font-style: normal; background: linear-gradient(transparent 62%, rgba(111,182,255,.45) 62%); }

/* あそびかた */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: center; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 5px 0 rgba(46,43,79,.25); padding: 16px;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.stage { display: flex; justify-content: center; align-items: center; min-height: 80px; }
.stage canvas { max-width: 100%; box-shadow: 0 0 0 3px var(--ink); }
.st-t h3 { margin: 0 0 6px; font: 400 21px/1.4 var(--dot); display: flex; align-items: center; gap: 10px; }
.st-t h3 b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-weight: 400; color: var(--cream); background: var(--sky);
  clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px); }
.st-t p { margin: 0; font-size: 16px; line-height: 1.9; line-break: strict; }
@media (max-width: 680px) { .steps li { grid-template-columns: 1fr; } }

/* 仕掛け */
.gim .wrap { max-width: 1220px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 3px solid var(--ink); padding: 12px 12px 14px;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.card .stage { min-height: 200px; }
.card h3 { margin: 10px 0 2px; font: 400 19px/1.4 var(--dot); }
.card p { margin: 0; font-size: 14px; line-height: 1.75; line-break: strict; }

/* ワールド */
.worlds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.worlds li { position: relative; background: var(--paper); border: 3px solid var(--ink); padding: 0 0 10px; text-align: center;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.worlds canvas { width: 100%; aspect-ratio: 96 / 54; height: auto; border-bottom: 3px solid var(--ink); }
.worlds b { position: absolute; left: 8px; top: 6px; font: 400 15px/1 var(--dot); color: var(--cream); background: var(--ink); padding: 4px 7px; }
.worlds span { display: block; margin-top: 8px; font: 400 18px/1.3 var(--dot); }
.worlds small { display: block; font-size: 12px; color: var(--ink-soft); }
@media (max-width: 640px) { .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* きょうの一問 */
.daily .stars { margin: 20px 0 0; display: grid; gap: 8px; }
.daily .stars div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; align-items: center; background: var(--paper); border: 3px solid var(--ink); padding: 8px 12px; }
.daily dt { font: 400 22px/1 var(--dot); color: #e6a400; letter-spacing: .08em; text-shadow: 1px 1px 0 var(--ink); }
.daily dd { margin: 0; font-size: 15px; }

/* 大人も */
.pts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.pts li { background: var(--paper); border: 3px solid var(--ink); padding: 12px 14px; font-size: 15px; overflow-wrap: anywhere; }
.pts b { display: block; font: 400 19px/1.4 var(--dot); margin-bottom: 2px; }

/* おうちの方へ・FAQ */
.parents { margin-top: 54px; background: var(--paper); border-top: 3px solid var(--ink); padding-bottom: 40px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pbox { background: var(--cream); border: 3px solid var(--ink); padding: 12px 16px; font-size: 15px; overflow-wrap: anywhere; }
.pbox h3 { margin: 0 0 4px; font: 400 18px/1.4 var(--dot); }
.pbox p, .pbox ul { margin: 0; } .pbox ul { padding-left: 1.2em; }
.faq details { background: var(--cream); border: 3px solid var(--ink); margin: 0 0 10px; }
.faq summary { cursor: pointer; padding: 10px 14px; font: 400 17px/1.5 var(--dot); list-style: none; }
.faq summary::before { content: 'Q'; display: inline-block; width: 1.6em; color: var(--pink); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0; padding: 0 14px 12px 2.6em; font-size: 15px; overflow-wrap: anywhere; }

/* おわり */
.end { padding: 46px 0 34px; text-align: center; background: linear-gradient(#95c4e8, #cfe9f4); border-top: 3px solid var(--ink); }
.end-t { margin: 0 0 14px; font: 400 22px/1.5 var(--dot); }
.foot { margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
