:root {
  color-scheme: light;
  --blue: #0b3d91;
  --light-blue: #eaf2ff;
  --line: #9db8df;
  --ink: #17233b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f7fbff;
  color: var(--ink);
  font-family: "MS PGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}
.site-shell { position: relative; width: min(940px, calc(100% - 2rem)); margin: 1rem auto 2rem; }
.site-header { padding: 1rem 1.25rem 1.2rem; text-align: center; border: 1px solid var(--line); border-bottom: 0; background: linear-gradient(#fff, var(--light-blue)); }
.topline { margin: 0; color: var(--blue); font-size: .9rem; }
h1 { margin: .25rem 0; color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 7vw, 3.6rem); letter-spacing: .08em; animation: title-wiggle 5s ease-in-out infinite; }
.subtitle { margin: 0; }
.notice { overflow: hidden; padding: .35rem .75rem; border: 1px solid var(--blue); background: #fff; color: var(--blue); white-space: nowrap; }
.new-mark { display: inline-block; margin-right: .6rem; color: #c21f39; font-weight: 700; animation: blink 1.2s steps(2, start) infinite; }
.layout { display: grid; grid-template-columns: 205px 1fr; gap: 1rem; padding: 1rem 0; }
.menu, .panel, .welcome { border: 1px dotted var(--line); background: #fff; padding: 1rem 1.1rem; }
.menu h2, .panel h2, .welcome h2 { margin: 0 0 .65rem; color: var(--blue); font-size: 1.2rem; border-bottom: 1px dotted var(--line); }
.menu ul { margin: 0; padding: 0; list-style: none; }
.menu li { border-bottom: 1px dotted #cbd9ea; }
a { color: #0645ad; text-decoration: underline; }
a:hover, a:focus-visible { display: inline-block; transform: translateX(3px); background: #fff6a8; outline: 2px solid #e1c400; outline-offset: 2px; }
.content { display: grid; gap: 1rem; }
.welcome p { margin: .45rem 0; }
.construction { color: #8a4b00; font-weight: 700; }
.updates { display: grid; grid-template-columns: 8rem 1fr; margin: 0; }
.updates dt, .updates dd { margin: 0; padding: .2rem 0; }
.updates dt { color: var(--blue); }
.small, footer { color: #596579; font-size: .88rem; }
footer { padding: 1rem; border-top: 1px solid var(--line); text-align: center; }
footer p { margin: .15rem; }
.counter { padding: .05rem .3rem; border: 1px inset #999; background: #111; color: #52ff7a; font-family: monospace; letter-spacing: .08em; }
.copyright { margin-top: .65rem; }
.cat-pop { position: absolute; z-index: 5; right: 2.5rem; top: 3.2rem; font-size: 3.2rem; line-height: 1; filter: drop-shadow(2px 3px 0 rgba(11,61,145,.2)); transform: translate(8rem, 4rem) rotate(18deg); animation: cat-arrival 7s cubic-bezier(.2,.8,.25,1) 1.2s forwards, cat-breathe 3s ease-in-out 8.4s infinite; }
.sparkle { position: absolute; z-index: 4; color: #e1a900; opacity: 0; pointer-events: none; }
.sparkle-one { right: 8rem; top: 4.2rem; font-size: 1.5rem; animation: sparkle-pop 1.3s ease-out 6.7s forwards; }
.sparkle-two { right: 1.5rem; top: 6rem; font-size: 1.1rem; animation: sparkle-pop 1.6s ease-out 7s forwards; }
@keyframes blink { 50% { opacity: .35; } }
@keyframes title-wiggle { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-1deg); } 96% { transform: rotate(1deg); } }
@keyframes cat-arrival { 0% { transform: translate(8rem, 4rem) rotate(18deg); } 55% { transform: translate(-1.5rem, -1.7rem) rotate(-8deg); } 72% { transform: translate(.35rem, .3rem) rotate(3deg); } 84% { transform: translate(-.15rem, -.15rem) rotate(-2deg); } 100% { transform: translate(0, 0) rotate(0); } }
@keyframes cat-breathe { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-.22rem) rotate(-3deg); } }
@keyframes sparkle-pop { 0% { opacity: 0; transform: scale(.2) rotate(-30deg); } 45% { opacity: 1; transform: scale(1.2) rotate(12deg); } 100% { opacity: .4; transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
@media (max-width: 640px) { .site-shell { width: min(100% - 1rem, 940px); margin-top: .5rem; } .layout { grid-template-columns: 1fr; } .menu { order: -1; } .updates { grid-template-columns: 7rem 1fr; } }
