/* 手作りホームページの壁紙。外部素材・フォントなし。 */
* { box-sizing: border-box; }
body {
  margin: 8px; color: #000; background-color: #66ccff;
  background-image: linear-gradient(45deg, #00aaff 25%, transparent 25%, transparent 75%, #00aaff 75%),
    linear-gradient(45deg, #00aaff 25%, transparent 25%, transparent 75%, #00aaff 75%);
  background-size: 24px 24px; background-position: 0 0, 12px 12px;
  font: 16px/1.45 "MS PGothic", "ＭＳ Ｐゴシック", Osaka, sans-serif;
}
a { text-decoration: underline; }
a:link { color: #0000ee; } a:visited { color: #551a8b; } a:hover { color: #f00; }
a:focus-visible, button:focus-visible { outline: 2px dotted #000; outline-offset: 3px; }
img { max-width: 100%; height: auto; }
p { margin: 8px 0; }
h1, h2, h3 { margin: 12px 0 8px; }
h1 { font-size: 30px; } h2 { font-size: 23px; } h3 { font-size: 19px; }
hr { margin: 12px 0; border: 0; border-top: 2px inset #aaa; }
.rainbow-rule { height: 7px; border: 1px solid white; background: linear-gradient(to right, red, #ff0, #0f0, #0ff, blue, #f0f, red); }
.zigzag-rule {
  height: 7px; border: 0;
  background: linear-gradient(135deg, blue 25%, transparent 25%) -4px 0 / 8px 8px,
    linear-gradient(225deg, blue 25%, transparent 25%) -4px 0 / 8px 8px;
}
.site-shell { max-width: 800px; margin: 0 auto; overflow-wrap: anywhere; }
.site-header { text-align: center; }
.site-name { display: inline-block; font-size: 32px; font-weight: bold; text-shadow: 2px 2px #ff0; }
.site-name:link, .site-name:visited { color: #c000c0; }
.header-title { margin: 0; font-size: 25px; color: #0000bb; text-shadow: 1px 1px #fff; }
.header-note { margin: 2px 0; font-size: 14px; }
.site-actions { margin: 5px 0; } .site-actions button { font-size: 14px; }
button, .button {
  display: inline-block; padding: 3px 10px; border: 3px outset #ddd;
  background: #c0c0c0; color: #000; text-align: center;
}
button { font: inherit; cursor: pointer; }
button:active, .button:active { border-style: inset; }
button:disabled { color: #555; cursor: default; }
.ticker { display: block; width: 100%; height: 26px; background: #000080; color: #ff0; border: 2px inset #ddd; font-weight: bold; }
.page-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px; padding: 4px; border: 4px ridge #ddd; background: #c0c0c0; align-items: stretch; }
.sidebar, main { min-width: 0; border: 2px inset #ddd; padding: 8px; }
.sidebar { text-align: center; background: #99ffff; } main { background: #ccffff; }
.menu-heading { color: red; font-size: 18px; }
.menu { padding: 0; margin: 10px 0; list-style: none; } .menu li { margin: 6px 0; }
.menu a { font-weight: bold; } .menu a[aria-current]::before { content: "→"; color: red; }
.side-note { font-size: 14px; } .side-note h2 { font-size: 14px; }
.construction { margin: 12px 0; color: #000; background: #ff0; font-size: 13px; text-align: center; }
.construction strong { display: block; font-size: 18px; }
.construction::before, .construction::after { content: ""; display: block; height: 9px; background: repeating-linear-gradient(-45deg, #000 0 8px, #ff0 8px 16px); }
.side-footer { font-size: 13px; }
.contents { padding: 0 4px; }
.page-heading { color: #c00000; text-align: center; text-shadow: 2px 2px #ff0; } .page-intro { text-align: center; }
.welcome { text-align: center; } .welcome h1 { margin: 4px 0; font-size: 32px; }
.rainbow-text { color: #b00000; }
@supports (background-clip: text) {
  .rainbow-text { background: linear-gradient(to right, #d00000, #8b4000, #007000, blue, #a000a0); background-clip: text; -webkit-background-clip: text; color: transparent; }
}
.welcome-grid { display: flex; align-items: center; justify-content: center; gap: 12px; }
.welcome-copy p { margin: 4px 0; }
.avatar-frame { margin: 6px 0 0; flex: 0 0 100px; }
.avatar-frame img { display: block; width: 100px; image-rendering: pixelated; animation: hop .85s steps(2, end) infinite; }
.avatar-frame figcaption { font-size: 13px; }
@keyframes hop { 50% { transform: translateY(-8px); } }
.enter { font-size: 23px; font-weight: bold; } .enter-hint { font-size: 13px; }
.counter-box { margin: 8px 0; text-align: center; }
.counter-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.counter { display: inline-flex; gap: 3px; padding: 5px; border: 3px inset #ccc; background: black; color: #ff3030; font: bold 29px/1 monospace; }
.counter-digit { position: relative; display: inline-block; width: 18px; height: 32px; }
.segment { position: absolute; background: #380000; }
.segment.on { background: #ff3030; box-shadow: 0 0 2px red; }
.segment-a, .segment-d, .segment-g { left: 3px; width: 12px; height: 3px; }
.segment-a { top: 0; } .segment-g { top: 14px; } .segment-d { top: 29px; }
.segment-b, .segment-c, .segment-e, .segment-f { width: 3px; height: 11px; }
.segment-b { right: 0; top: 3px; } .segment-c { right: 0; top: 17px; }
.segment-e { left: 0; top: 17px; } .segment-f { left: 0; top: 3px; }
.digit-text, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { width: auto; height: auto; clip-path: none; top: 4px; left: 4px; z-index: 10; padding: 8px; background: white; }
.kiriban { color: #c00000; font-weight: bold; }
.small { font-size: 13px; }
.new { color: red; background: #ff0; font-weight: bold; font-family: monospace; animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
.updates-title { margin: 6px 0; color: #c000c0; text-align: center; }
table { max-width: 100%; border-color: #888; border-spacing: 2px; } th, td { padding: 3px; overflow-wrap: anywhere; }
.updates-table { width: 100%; background: #ffff99; font-size: 14px; } .updates-table th { width: 84px; font-weight: normal; }
.home-contents { text-align: center; } .home-contents a { display: inline-block; margin: 2px 6px; font-weight: bold; }
.profile { display: flex; align-items: start; gap: 8px; } .profile img { width: 96px; image-rendering: pixelated; }
.profile-list { width: 100%; background: #ff9; } .profile-list th { width: 25%; } .profile-list td { text-align: left; }
.note { font-size: 14px; } .subheading { border-bottom: 2px solid blue; color: navy; }
.game-entry { border-top: 2px inset #aaa; border-bottom: 2px inset #aaa; padding: 8px 0; }
.game-entry h2 { color: #c000c0; } .game-entry > p:first-child { font-weight: bold; }
.tag { margin-right: 8px; font-size: 14px; } .tag::before { content: "［"; } .tag::after { content: "］"; }
.empty-slot { margin: 14px 0; text-align: center; color: #a00000; }
.diary-list { padding-left: 24px; } .diary-list time { display: block; } .diary-list a { font-size: 21px; font-weight: bold; }
.article-date { display: block; text-align: right; font-size: 14px; } .article-body p { margin: 16px 0; } .article-sign { text-align: right; }
.back-link { display: inline-block; margin-top: 16px; }
.link-list { padding-left: 24px; } .link-list li { margin: 12px 0; }
.banner {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 88px; height: 31px;
  border: 2px outset white; margin: 6px; background: repeating-linear-gradient(0deg, blue 0 2px, navy 2px 4px);
  font: bold 9px/1.2 "MS PGothic", sans-serif; text-decoration: none; vertical-align: middle;
}
.banner:link, .banner:visited { color: #ff0; } .banner small { color: #0ff; font-size: 9px; }
.banner-section { text-align: center; } .banner-section h2 { color: #c000c0; }
.site-address { font-size: 14px; overflow-wrap: anywhere; }
.error-panel { text-align: center; } .error-code { margin: 0; color: red; font: bold 80px/1.2 monospace; text-shadow: 3px 3px #ff0; }
.error-panel h1 { color: navy; }
.game-stats { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 6px; padding: 6px; border: 3px ridge #ddd; background: #ff0; }
.game-stats output { font: bold 25px monospace; color: #c00000; }
.game-field { margin-top: 10px; padding: 10px 4px; text-align: center; background: #9ff; border: 3px inset #ddd; }
.slime-button { display: block; width: 136px; margin: 6px auto; background: #6cf; color: navy; border: 4px outset #ccc; font-weight: bold; touch-action: manipulation; user-select: none; }
.slime-button::before { content: ""; display: block; width: 96px; height: 96px; margin: auto; background: url('../images/avatar.png') center / contain no-repeat; image-rendering: pixelated; }
.slime-button:active:enabled { border-style: inset; transform: scaleY(.94); } .slime-button:disabled { background: #ccc; }
.game-result { min-height: 3em; }
.top-gap, .top-gap-small { margin-top: 12px; } .top-gap-large { margin-top: 20px; }
.site-footer { text-align: center; font-size: 13px; } .site-footer p { margin: 4px 0; } .footer-top { display: inline-block; margin-left: 8px; }
.motion-paused .avatar-frame img, .motion-paused .new { animation-play-state: paused; }
@media (min-width: 601px) {
  .header-title { display: inline-block; }
  .welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 4px; align-items: center; }
  .welcome > h1, .welcome > .counter-note, .welcome > noscript { grid-column: 1 / -1; }
  .welcome-grid { gap: 4px; }
  .welcome-copy { min-width: 0; font-size: 14px; }
  .avatar-frame { flex-basis: 80px; } .avatar-frame img { width: 80px; }
  .counter-box { margin: 4px 0; font-size: 14px; }
  .counter-note { margin: 2px 0; }
}
@media (max-width: 600px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); } .sidebar, main { padding: 6px; }
  .menu-heading { margin: 0; font-size: 18px; }
  .menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0; } .menu li { margin: 2px 0; }
  .side-note, .side-footer, .sidebar hr { display: none; }
  .construction { margin: 6px 0 0; font-size: 13px; } .construction strong { display: inline; font-size: 16px; }
  .construction::before, .construction::after { height: 4px; }
  .site-name { font-size: 29px; } .header-title { font-size: 23px; } .header-note { font-size: 13px; }
  .contents { padding: 0; } .welcome h1 { font-size: 29px; } .welcome-grid { gap: 6px; } .welcome-copy { font-size: 15px; }
  .avatar-frame { flex-basis: 80px; } .avatar-frame img { width: 80px; } .page-heading { font-size: 27px; }
  .updates-table { font-size: 14px; } .updates-table th { width: 76px; }
  .profile { flex-direction: column; align-items: center; } .profile-list { font-size: 15px; } .profile-list th { width: 30%; }
}
@media (prefers-reduced-motion: reduce) { .avatar-frame img, .new { animation: none; } }
