:root {
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  color: #3f352f;
  background: #fff7df;
  font-synthesis: none;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #fff7df; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 13%, rgba(255,255,255,.9) 0 7px, transparent 8px),
    radial-gradient(circle at 88% 20%, rgba(255,216,122,.75) 0 9px, transparent 10px),
    linear-gradient(155deg, #fffdf5, #ffedbd);
}

.hub-shell {
  width: min(100%, 1080px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(34px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
}

.hub-header { position: relative; text-align: center; }
.hub-sun { position: absolute; top: -9px; right: clamp(0px, 8vw, 85px); font-size: clamp(2.4rem, 7vw, 4.5rem); filter: drop-shadow(0 4px 0 rgba(183,121,17,.16)); }
.hub-eyebrow { margin: 8px 0 7px; color: #a35319; font-size: clamp(.95rem, 2vw, 1.12rem); font-weight: 900; letter-spacing: .12em; }
h1 { margin: 0; color: #47352c; font-size: clamp(2.8rem, 8vw, 5.2rem); line-height: 1.08; letter-spacing: .04em; }
.mobile-break { display: none; }
.hub-copy { margin: 15px 0 0; font-size: clamp(1.05rem, 3vw, 1.35rem); font-weight: 800; }

.games { margin-top: clamp(38px, 7vw, 62px); }
.games h2 { margin: 0 0 17px; font-size: clamp(1.2rem, 3vw, 1.55rem); text-align: center; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card { position: relative; min-height: 300px; overflow: hidden; border: 4px solid #d4bb8d; border-radius: 30px; background: rgba(255,255,255,.86); box-shadow: 0 9px 0 #dfc99e, 0 15px 30px rgba(116,74,31,.12); }
.post-card { display: grid; grid-template-columns: minmax(150px, .85fr) 1.15fr; align-items: center; gap: 18px; padding: 34px 30px 75px; color: inherit; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.post-card:hover { border-color: #e84e36; transform: translateY(-3px); }
.post-card:focus-visible { outline: 6px solid #246bce; outline-offset: 5px; }
.ready-badge { position: absolute; top: 17px; left: 20px; z-index: 2; padding: 6px 13px; border-radius: 99px; color: #185d42; background: #dff6e8; font-size: .8rem; font-weight: 900; }
.game-illustration { position: relative; display: block; height: 180px; }
.letter { position: absolute; top: 7px; left: 2px; display: grid; place-items: center; width: 82px; height: 65px; border: 3px solid #a8875d; border-radius: 9px; color: #43362e; background: #fffdf5; box-shadow: 0 5px 0 #ddc7a3; font-size: 2.8rem; font-weight: 900; transform: rotate(-8deg); }
.mini-post { position: absolute; right: 3px; bottom: 1px; width: 130px; height: 144px; border: 5px solid #812d21; border-radius: 58px 58px 23px 23px; background: #e84e36; box-shadow: 0 8px 0 #bd3526; }
.mini-post::before { content: ""; position: absolute; top: 38px; left: 22px; width: 76px; height: 12px; border-radius: 9px; background: #64291f; }
.mini-post span { position: absolute; inset: auto 0 22px; color: #fff1cf; font-size: 2rem; font-weight: 900; text-align: center; }
.bus-card { border-color: #e3a441; background: rgba(255,249,225,.95); box-shadow: 0 9px 0 #f0cb7e, 0 15px 30px rgba(129,82,21,.12); }
.bus-card:hover { border-color: #bd6f1e; }
.bus-card .play-label { background: #e3842e; box-shadow: 0 5px 0 #a85419; }
.bus-illustration { position: relative; display: block; height: 180px; border-bottom: 9px dashed #e6c64a; font-size: 3.8rem; }
.bus-illustration b { position: absolute; top: 13px; left: 10px; display: grid; place-items: center; width: 67px; height: 67px; border: 3px solid #326487; border-radius: 8px; background: white; font-size: 2.8rem; transform: rotate(-4deg); }
.bus-illustration span:first-of-type { position: absolute; left: 82px; top: 23px; font-size: 2.8rem; }
.bus-illustration span:last-child { position: absolute; right: 0; bottom: 0; font-size: 7rem; line-height: 1; }
.fishing-card { border-color:#79bad2; background:rgba(242,252,255,.94); box-shadow:0 9px 0 #a5d5e5,0 15px 30px rgba(36,101,128,.12); }
.fishing-card:hover { border-color:#2784a8; }.fishing-card .play-label{background:#2c9bc7;box-shadow:0 5px 0 #17617f}.fishing-illustration{position:relative;display:block;height:180px;border-bottom:10px solid #55bbdc;font-size:4rem}.fishing-illustration b{position:absolute;top:18px;left:6px;display:grid;place-items:center;width:67px;height:67px;border:3px solid #45788b;border-radius:50%;background:white;font-size:2.8rem}.fishing-illustration span:first-of-type{position:absolute;left:76px;top:7px}.fishing-illustration span:last-child{position:absolute;right:8px;bottom:0;font-size:5rem}
.train-card{border-color:#78ae72;background:rgba(242,253,239,.95);box-shadow:0 9px 0 #a9d2a1,0 15px 30px rgba(47,101,43,.12)}.train-card:hover{border-color:#397a3d}.train-card .play-label{background:#4e9653;box-shadow:0 5px 0 #2d6731}.train-illustration{position:relative;display:block;height:180px;border-bottom:9px double #66594a}.train-illustration b{position:absolute;top:12px;left:60px;z-index:2;display:grid;place-items:center;width:60px;height:60px;border:3px solid #735b37;border-radius:12px;background:white;font-size:2.7rem}.train-illustration span{position:absolute;bottom:0;font-size:6rem;line-height:1}.train-illustration span:first-of-type{left:0}.train-illustration span:last-child{right:0}
.henshin-card{border-color:#a58ac4;background:rgba(249,244,255,.95);box-shadow:0 9px 0 #cbb8df,0 15px 30px rgba(83,54,112,.12)}.henshin-card:hover{border-color:#765099}.henshin-card .play-label{background:#8659ae;box-shadow:0 5px 0 #563676}.henshin-illustration{display:flex;align-items:center;justify-content:center;gap:8px;height:180px;border:5px solid #765099;border-radius:25px;background:#9e7dca;font-size:3.6rem}.henshin-illustration b{padding:10px 7px;border-radius:12px;background:#fff8d7;font-size:1.25rem;white-space:nowrap}
.step-card{border-color:#dd8eaa;background:rgba(255,244,249,.96);box-shadow:0 9px 0 #edb8ca,0 15px 30px rgba(126,50,82,.12)}.step-card:hover{border-color:#a94e74}.step-card .play-label{background:#cf6591;box-shadow:0 5px 0 #943d62}.step-illustration{display:flex;align-items:end;justify-content:center;gap:5px;height:180px;padding-bottom:22px;border-bottom:8px solid #7c694d;font-size:3rem}.step-illustration b{display:grid;place-items:center;width:52px;height:45px;border:3px solid #8d704a;border-radius:50%;background:#fff2c7;font-size:1.7rem}.game-info { display: flex; flex-direction: column; align-items: flex-start; }
.game-skill { color: #96501c; font-size: .9rem; font-weight: 900; }
.game-info strong { margin: 4px 0 14px; color: #47352c; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.2; }
.game-info > span:last-child { font-weight: 700; line-height: 1.7; }
.play-label { position: absolute; right: 28px; bottom: 20px; min-width: 140px; padding: 12px 23px; border-radius: 99px; color: white; background: #e84e36; box-shadow: 0 5px 0 #bd3526; font-size: 1.12rem; font-weight: 900; text-align: center; }
.coming-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; border-style: dashed; color: #76695d; text-align: center; box-shadow: none; }
.coming-card .game-info { align-items: center; }
.coming-card .game-info strong { color: #76695d; }
.coming-icon { font-size: 4.5rem; }
.hub-footer { margin-top: 35px; color: #71665b; font-size: .85rem; font-weight: 700; text-align: center; }

@media (max-width: 720px) {
  .hub-shell { padding-top: max(25px, env(safe-area-inset-top)); }
  .hub-sun { right: 2px; font-size: 2.7rem; }
  .mobile-break { display: initial; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 270px; }
  .post-card { grid-template-columns: 125px 1fr; padding: 34px 18px 72px; }
  .game-illustration { height: 155px; }
  .bus-illustration { height: 155px; transform: scale(.88); }
  .fishing-illustration { height:155px; transform:scale(.88); }
  .train-illustration { height:155px; transform:scale(.88); }
  .letter { width: 66px; height: 55px; font-size: 2.25rem; }
  .mini-post { width: 106px; height: 120px; border-radius: 48px 48px 19px 19px; }
  .mini-post::before { top: 31px; left: 17px; width: 63px; }
  .mini-post span { bottom: 17px; }
  .game-info strong { font-size: clamp(1.55rem, 7vw, 2rem); }
}

@media (max-width: 390px) {
  .post-card { grid-template-columns: 1fr; padding-top: 55px; text-align: center; }
  .game-illustration { width: 180px; margin: 0 auto; }
  .game-info { align-items: center; }
}

@media (orientation: landscape) and (max-height: 620px) {
  .hub-shell { padding-top: max(16px, env(safe-area-inset-top)); }
  .hub-header h1 { font-size: 2.5rem; }
  .mobile-break { display: none; }
  .hub-copy { margin-top: 7px; }
  .games { margin-top: 20px; }
  .game-card { min-height: 225px; }
  .post-card { padding-block: 25px 65px; }
  .game-illustration { height: 145px; transform: scale(.86); }
  .coming-icon { font-size: 3.2rem; }
  .hub-footer { margin-top: 22px; }
}

.school-card{border-color:#7885bd;background:rgba(244,245,255,.96);box-shadow:0 9px 0 #aeb7df,0 15px 30px rgba(49,59,117,.13)}
.school-card:hover{border-color:#46558e}
.school-card .play-label{background:#5968a9;box-shadow:0 5px 0 #39477e}
.school-illustration{display:flex;align-items:center;justify-content:center;gap:6px;height:180px;padding:10px;border-radius:26px;background:linear-gradient(#dff3ff 0 58%,#b9dda3 58%);font-size:4rem}
.school-illustration i{font-size:1.8rem;font-style:normal;transform:rotate(-20deg)}
.school-illustration i:nth-of-type(2){transform:rotate(18deg)}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .post-card:hover { transform: none; }
}

.hub-footer .voice-credit {
  margin: 10px 0 0;
  color: #65736d;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}
