*{box-sizing:border-box}body{margin:0;background:#0b1933;color:#f5f7ff;font:1rem/1.5 system-ui,sans-serif}header{position:sticky;top:0;z-index:1;background:#0b1933;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:26px clamp(12px,4vw,60px) 19px;border-bottom:1px solid #304261}header nav{display:flex;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:7px}header a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 10px;color:inherit;font-weight:600;font-size:.875rem;text-decoration:none;border-radius:8px}header a:hover{background:#213657}header svg{display:block;width:21px;height:21px;fill:currentColor}header .site-title{min-height:0;padding:0;font-size:clamp(1.7rem,4vw,3rem);line-height:1.1;letter-spacing:-.06em;font-family:"Arial Black",system-ui,sans-serif;font-weight:1000;-webkit-text-stroke:.45px currentColor}header .site-title:hover{background:none;text-decoration:underline}a:focus-visible{outline:3px solid #96bcff;outline-offset:2px}header a[aria-current=page]{background:#213657}
header nav button,#search-form button{display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer}
header nav button:hover,header nav button[aria-expanded=true],#search-form button{background:#213657}
#search-form{display:flex;justify-content:flex-end;gap:8px;flex-basis:100%}#search-form[hidden]{display:none}
#search-form input{width:min(100%,360px);min-width:0;min-height:44px;padding:8px 12px;border:1px solid #536788;border-radius:8px;background:#101f3a;color:inherit;font:inherit}
#search-form input::placeholder{color:#b4c1d9}
@media(max-width:520px){header{padding:12px}header nav{gap:2px;flex-wrap:wrap}}
header .profile-link{padding:0 5px}.profile-icon{display:block;width:52px;height:52px;border:1px solid #b8d2ff;border-radius:50%;overflow:hidden;background:#fff}.profile-icon img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.43)}

@media(max-width:520px){header .site-title{font-size:clamp(1.2rem,6vw,1.7rem)}}

.site-footer{padding:20px clamp(16px,4vw,60px);border-top:1px solid #304261;color:#b4c1d9;font-size:.875rem;line-height:1.7}
.site-footer p{margin:0}
.site-footer p+p{margin-top:.4rem}

header{z-index:4}
.kaotan-visitor {
  position: fixed;
  inset-inline-start: max(8px, env(safe-area-inset-left));
  inset-block-end: max(8px, env(safe-area-inset-bottom));
  z-index: 2;
  width: clamp(48px, 9vw, 80px);
  border-radius: 8px;
}
.kaotan-visitor img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 3px #0008);
}
@media (prefers-reduced-motion: no-preference) {
  .kaotan-visitor img {
    animation: kaotan-drift 16s ease-in-out infinite;
  }
  .kaotan-visitor:is(:hover, :focus-visible) img {
    animation-play-state: paused;
  }
  @keyframes kaotan-drift {
    50% { transform: translate(8px, -3px) rotate(-2deg); }
  }
}
