/* ==========================================================
   cUDGk's Homepage - Retro Common Stylesheet
   1996-1999 Geocities-era look, made by メモ帳 (in spirit)
   ========================================================== */

* { margin:0; padding:0; box-sizing:border-box; }

/* ---------- Animations ---------- */
@keyframes blink     { 50% { opacity:0; } }
@keyframes fastblink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
@keyframes marq      { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }
@keyframes marqRev   { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
@keyframes hop       { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
@keyframes shake     { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-2px)} 75%{transform:translateX(2px)} }
@keyframes spin      { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes glow {
  0%,100% { text-shadow: 0 0 3px rgba(255,255,255,.5), 0 0 8px rgba(255,106,0,.6); }
  50%     { text-shadow: 0 0 4px rgba(255,255,255,.6), 0 0 10px rgba(30,99,255,.6); }
}
@keyframes flame {
  0%,100% { text-shadow: 0 0 2px #fff, 0 0 6px #ff6a00; }
  50%     { text-shadow: 0 0 3px #fff, 0 0 8px #ffa726; }
}
@keyframes rainbow {
  0%   { color:#ff3366; }
  20%  { color:#ff6a00; }
  40%  { color:#ffe600; }
  60%  { color:#33ff66; }
  80%  { color:#1e63ff; }
  100% { color:#ff3366; }
}
@keyframes konst { /* 工事中三角コーンの揺れ */
  0%,100%{ transform:translateY(0) rotate(-3deg) }
  50%    { transform:translateY(-2px) rotate(3deg) }
}

/* ---------- Base ---------- */
html {
  background:
    repeating-linear-gradient(0deg, rgba(255,106,0,0.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(30,99,255,0.04) 0 1px, transparent 1px 3px),
    #000 url('./assets/bg.jpg') center center / cover fixed no-repeat;
}
body {
  font-family:'MS PGothic','Osaka',monospace;
  color:#fff;
  min-height:100vh;
  padding:6px 8px;
  font-size:13px;
  line-height:1.7;
}
a        { color:#66b3ff; text-decoration:underline; font-weight:bold; }
a:visited{ color:#cc99ff; }
a:hover  { color:#fff; background:#1e63ff; text-decoration:none; }
a:active { color:#ff6a00; }

.wrapper {
  max-width:800px;
  margin:0 auto;
  border:3px ridge #ff6a00;
  background:rgba(20,20,20,0.93);
  padding:0;
  box-shadow:0 0 30px rgba(0,0,0,0.85);
}

/* ---------- Marquee bars ---------- */
.top-marquee {
  background:#1a1a1a;
  overflow:hidden;
  padding:3px 0;
  font-size:12px;
  white-space:nowrap;
  border-bottom:1px solid #ff6a00;
}
.top-marquee.m1 { color:#66b3ff; }
.top-marquee.m2 { color:#ffa726; }
.top-marquee.m3 { color:#66b3ff; }
.top-marquee.m4 { color:#ff6666; }
.top-marquee.m5 { color:#33ff99; }
.top-marquee span {
  display:inline-block;
  white-space:nowrap;
  padding-left:100%;
  animation: marq 22s linear infinite;
  animation-delay:-11s;
}
.top-marquee.m2 span { animation-duration:28s; animation-delay:-14s; }
.top-marquee.m3 span { animation-duration:18s; animation-delay:-9s; }
.top-marquee.m4 span { animation-duration:35s; animation-delay:-17s; animation-name:marqRev; }
.top-marquee.m5 span { animation-duration:24s; animation-delay:-12s; }

/* ---------- Header ---------- */
header.main-header {
  text-align:center;
  padding:18px 10px 14px;
  background:#1a1a1a;
  color:#fff;
  border-bottom:3px solid #ff6a00;
  border-top:2px solid #1e63ff;
  position:relative;
}
header.main-header h1 {
  font-family:'Impact','MS PGothic',sans-serif;
  font-size:clamp(22px,5vw,38px);
  line-height:1.1;
  margin-bottom:4px;
  color:#fff;
  animation: glow 2s ease-in-out infinite;
  position:relative; z-index:2;
}
header.main-header .heart {
  display:inline-block; animation:hop 1.2s infinite; color:#ff6a00;
}
header.main-header .logo {
  display:inline-block; cursor:pointer; color:#fff;
  text-decoration:none; padding:0 6px; min-width:200px; text-align:center;
}
header.main-header .logo:hover { background:transparent; }
header.main-header .logo-text {
  display:inline-block; min-width:160px; text-align:center;
  font-weight:700; letter-spacing:2px;
}
header.main-header .tagline { font-size:14px; color:#ffa726; animation:blink 1.5s infinite; }
header.main-header .subtitle{ font-size:12px; color:#66b3ff; margin-top:4px; }
header.main-header .since {
  display:inline-block; margin-top:8px; font-size:11px;
  color:#fff; border:1px solid #fff; padding:2px 8px;
}
header.main-header .corner-deco {
  position:absolute; font-size:10px; color:#ffa726;
  font-family:monospace; z-index:2;
}
header.main-header .corner-deco.tl { top:4px; left:8px; }
header.main-header .corner-deco.tr { top:4px; right:8px; }
header.main-header .corner-deco.bl { bottom:4px; left:8px; }
header.main-header .corner-deco.br { bottom:4px; right:8px; }

/* ---------- Banner row ---------- */
.banners {
  display:flex; flex-wrap:wrap; justify-content:center; gap:5px;
  padding:10px 8px; background:#1a1a1a; border-bottom:2px solid #1e63ff;
}
.banner {
  font-size:10px; padding:3px 8px; border:1px solid;
  font-family:'MS PGothic',monospace; white-space:nowrap; background:#1a1a1a;
}
.banner.construction { border-color:#ff6a00; color:#ff6a00; }
.banner.best     { border-color:#e65100; color:#e65100; }
.banner.netscape { border-color:#1e63ff; color:#1e63ff; }
.banner.noie     { border-color:#ff6a00; color:#ff6a00; }
.banner.ring     { border-color:#e65100; color:#e65100; }
.banner.ssl      { border-color:#1e63ff; color:#1e63ff; }
.banner.blink    { animation:blink 1.2s infinite; }

/* ---------- Counter ---------- */
.counter-area {
  text-align:center; padding:14px 10px; background:#1a1a1a;
  border-bottom:2px solid #ff6a00; font-size:12px; color:#1e63ff; line-height:1.8;
}
.counter {
  display:inline-block; background:#000; color:#33ff66;
  font-family:'Courier New',monospace; font-size:28px; font-weight:bold;
  letter-spacing:6px; padding:6px 14px; border:3px inset #ff6a00; margin:4px 6px;
  text-shadow:0 0 4px #33ff66;
}
.counter-info { font-size:11px; color:#ccc; margin-top:4px; }
.counter-info .yellow { color:#e65100; }
.counter-info .red    { color:#cc0000; font-weight:bold; }
.kiriban-list { margin-top:6px; font-size:11px; color:#ffa726; }
.kiriban-list b { color:#ff6a00; }

/* ---------- Info bar ---------- */
.info-bar {
  display:flex; flex-wrap:wrap; justify-content:space-between;
  background:#1a1a1a; padding:6px 12px; font-size:11px; color:#1e63ff;
  border-bottom:1px solid #ff6a00; gap:8px;
}
.info-bar span { white-space:nowrap; }

/* ---------- Main table ---------- */
.main-table { width:100%; border-collapse:collapse; background:#1a1a1a; }
.main-table td {
  vertical-align:top; padding:14px 12px; border:2px solid #ff6a00;
}
.main-table .sidebar { width:200px; background:#1a1a1a; }
.main-table .content { background:#1a1a1a; }

/* ---------- Sidebar ---------- */
.menu-title {
  background:#ff6a00; color:#fff; text-align:center; padding:4px 0;
  font-weight:bold; font-size:13px; border:2px outset #ff6a00; margin-bottom:6px;
}
.menu-list { list-style:none; font-size:13px; margin-bottom:6px; }
.menu-list li { padding:3px 0; border-bottom:1px dashed #aaa; }
.menu-list li::before { content:"▶ "; color:#ff6a00; }
.menu-list li.new::after  { content:" NEW!"; color:#ff6a00; font-size:10px; font-weight:bold; animation:blink .8s infinite; }
.menu-list li.hot::after  { content:" 🔥"; font-size:10px; }
.menu-list li.kouji::after{ content:" 🚧"; font-size:10px; animation:konst 1s infinite; display:inline-block; }

.mini-section {
  margin-top:14px; font-size:11px; color:#ccc;
  border:1px solid #333; padding:8px; background:#1a1a1a;
}
.mini-section h4 {
  background:#1e63ff; color:#fff; padding:2px 6px;
  font-size:11px; margin-bottom:4px; text-align:center;
}
.mini-section p { font-size:11px; margin-bottom:2px; line-height:1.5; }
.mini-section .k { color:#e65100; font-weight:bold; }
.mini-section .warn { color:#cc6666; }

/* ---------- Section heading ---------- */
.section { margin-bottom:24px; }
.section h2 {
  background:#1e63ff; color:#fff; padding:5px 10px; font-size:17px;
  border-left:8px solid #ff6a00; border-right:8px solid #ff6a00;
  margin-bottom:10px; font-family:'MS PGothic','Impact',sans-serif; font-weight:bold;
}
.section h2::before { content:"◆ "; }
.section h2::after  { content:" ◆"; }
.section h2.has-pb::before, .section h2.has-pb::after { content:none; }

/* ---------- Generic boxes ---------- */
.intro {
  background:#1a1a1a; border:2px ridge #ffa726; padding:12px;
  font-size:13px; line-height:1.9; margin-bottom:20px;
}
.intro .title {
  background:#ff6a00; color:#fff; padding:2px 8px; font-weight:bold;
  display:inline-block; margin-bottom:6px; font-size:12px;
}
.intro p { margin-bottom:6px; }
.intro .k { color:#ff6a00; font-weight:bold; }
.intro .r { color:#ff6666; }
.intro .b { color:#66b3ff; }
.intro .arrow { color:#ff6a00; }

.about-box {
  background:#1a1a1a; border:2px inset #1e63ff; padding:12px;
  font-size:13px; line-height:1.9;
}
.about-box p { margin-bottom:6px; }
.about-box .k { color:#ff6a00; font-weight:bold; }
.about-box .r { color:#cc0000; font-weight:bold; }
.about-box .b { color:#66b3ff; }

.info-table {
  width:100%; margin-top:10px; border-collapse:collapse; font-size:12px;
}
.info-table th {
  background:#ff6a00; color:#fff; padding:4px 6px; text-align:left;
  width:100px; border:1px solid #333; vertical-align:top; white-space:nowrap;
}
.info-table td {
  background:#1a1a1a; color:#fff; padding:4px 8px; border:1px solid #333;
}

/* ---------- Stuff list ---------- */
.stuff-list { list-style:none; font-size:13px; }
.stuff-list li {
  background:#1a1a1a; border:2px solid #1e63ff;
  padding:8px 12px; margin-bottom:6px;
}
.stuff-list li b { color:#1e63ff; }
.stuff-list li .desc { color:#ccc; font-size:12px; display:block; margin-top:4px; line-height:1.6; }
.stuff-list li .new {
  color:#ff6a00; font-weight:bold; font-size:10px;
  animation:blink .8s infinite; margin-left:4px;
}
.stuff-list li .tag {
  display:inline-block; font-size:10px; color:#000;
  background:#66b3ff; padding:0 4px; margin:0 2px;
}

/* ---------- Diary ---------- */
.diary-entry {
  background:#1a1a1a; border:2px ridge #ffa726;
  padding:10px; margin-bottom:10px; font-size:13px; line-height:1.9;
}
.diary-date {
  background:#ffa726; color:#000; padding:2px 8px; font-weight:bold;
  display:inline-block; margin-bottom:6px; font-size:11px;
}
.diary-entry p { margin-bottom:6px; }
.diary-entry .mood { color:#ffa726; font-size:11px; }

/* ---------- Quote ---------- */
.quote-box {
  background:#1a1a1a; border-left:6px solid #ff6a00; border-right:6px solid #66b3ff;
  padding:12px 16px; font-size:13px; margin-bottom:10px; color:#ffcccc; font-style:italic;
}
.quote-box b { color:#ff6a00; font-style:normal; }

/* ---------- BBS ---------- */
.bbs { border:3px ridge #ff6a00; background:#1a1a1a; padding:0; }
.bbs-header {
  background:#ff6a00; color:#fff; padding:4px 10px;
  font-weight:bold; font-size:13px; border-bottom:2px solid #ff8800;
}
.bbs-rules {
  background:#1a1a1a; color:#ffcc99; font-size:11px;
  padding:8px 12px; border-bottom:2px dashed #ff6666; line-height:1.7;
}
.bbs-rules b { color:#ff6a00; }
.bbs-form { background:#1a1a1a; padding:10px 12px; border-bottom:2px dashed #666; }
.bbs-form .row {
  display:flex; align-items:flex-start; margin-bottom:4px; flex-wrap:wrap; gap:6px;
}
.bbs-form label { min-width:60px; font-size:12px; color:#1e63ff; white-space:nowrap; }
.bbs-form input[type="text"], .bbs-form input[type="email"] {
  flex:1; min-width:120px; background:#1a1a1a;
  border:2px inset #666; color:#ff6a00; font-family:'MS PGothic',monospace;
  padding:4px 6px; font-size:12px;
}
.bbs-form textarea {
  width:100%; background:#1a1a1a; border:2px inset #666;
  color:#ff6a00; font-family:'MS PGothic',monospace; padding:6px;
  font-size:12px; resize:vertical; min-height:70px;
}
.bbs-form button {
  background:#1e63ff; color:#fff; border:3px outset #1e63ff;
  padding:6px 14px; font-weight:bold; cursor:pointer; margin-top:4px;
  font-family:'MS PGothic',monospace;
}
.bbs-form button:hover {
  background:#ff6a00; border-color:#ff6a00; border-style:inset;
}
.bbs-form .hint { font-size:10px; color:#aaa; }
.bbs-posts { padding:8px 12px; max-height:500px; overflow-y:auto; }
.bbs-post  { border-bottom:1px dashed #aaa; padding:8px 0; font-size:12px; line-height:1.7; }
.bbs-post:last-child { border-bottom:0; }
.bbs-post .no    { color:#ff8800; font-weight:bold; }
.bbs-post .name  { color:#1e63ff; font-weight:bold; }
.bbs-post .admin { color:#ff6a00; font-weight:bold; }
.bbs-post .date  { color:#66b3ff; font-size:11px; }
.bbs-post .sub   { color:#e65100; font-weight:bold; }
.bbs-post .body  {
  color:#fff; white-space:pre-wrap; word-break:break-word;
  margin-top:4px; padding-left:12px; border-left:2px solid #1e63ff;
}
.bbs-post.kiri { background:rgba(255,255,0,0.08); border-left:4px solid #ff6a00; padding-left:6px; }
.bbs-post.kiri .name::after {
  content:"🎉 キリ番ゲット！ 🎉"; color:#ff6a00; margin-left:6px; animation:blink .8s infinite;
}
.bbs-empty { text-align:center; padding:20px; font-size:12px; color:#666; }
.bbs-footer{ background:#1a1a1a; padding:6px 10px; font-size:10px; color:#ccc; border-top:1px solid #1e63ff; }

/* ---------- Omikuji ---------- */
.omikuji-box {
  border:2px ridge #ffa726; background:#1a1a1a;
  padding:12px; text-align:center; margin-bottom:10px;
}
.omikuji-box button {
  background:#ff6a00; color:#fff; border:3px outset #ff6a00;
  padding:8px 20px; font-weight:bold; cursor:pointer;
  font-family:'MS PGothic',monospace; font-size:14px;
}
.omikuji-box button:hover { border-style:inset; background:#ffa726; }
.omikuji-result { margin-top:8px; font-size:14px; color:#ff6a00; min-height:40px; }
.omikuji-result .big { font-size:18px; font-weight:bold; display:block; animation:flame 1.5s infinite; }

/* ---------- Clap ---------- */
.clap-box {
  text-align:center; padding:10px; background:#1a1a1a;
  border:2px ridge #ffa726; margin-bottom:10px;
}
.clap-btn {
  background:#ff6a00; color:#fff; border:3px outset #ff6a00;
  padding:6px 16px; font-weight:bold; cursor:pointer; font-family:'MS PGothic',monospace;
}
.clap-btn:hover { border-style:inset; background:#e65100; }
.clap-count { color:#ff6a00; font-weight:bold; }

/* ---------- Links ---------- */
.link-note {
  font-size:11px; color:#ffcc99; background:#1a1a1a;
  padding:8px; border:1px dashed #ff6a00; margin-bottom:10px; line-height:1.8;
}
.link-grid { display:flex; flex-wrap:wrap; gap:6px; }
.link-btn {
  background:#1a1a1a; border:2px outset #1e63ff; color:#66b3ff;
  padding:4px 10px; text-decoration:none; font-size:12px; font-weight:bold;
}
.link-btn:hover { border-style:inset; background:#1e63ff; color:#fff; }
.banner-88 {
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center;
  width:88px; height:31px; border:1px solid #1e63ff; margin:3px;
  background:#1a1a1a; text-align:center; line-height:1.1;
  font-size:9px; color:#66b3ff; vertical-align:top; cursor:pointer; user-select:none;
}
.banner-88 b { color:#ff6a00; font-size:10px; }
.banner-88:hover { background:#0a1a35; outline:1px solid #ff6a00; }
.banner-88.copied{ outline:2px solid #1e63ff; }

/* ---------- Footer ---------- */
footer.bottom {
  text-align:center; padding:16px 10px; background:#1a1a1a;
  border-top:4px double #ff6a00; font-size:11px; color:#fff;
}
footer.bottom .webring {
  display:inline-block; margin:3px; padding:3px 8px;
  border:1px solid #ff6a00; color:#ff6a00; font-size:10px;
}
footer.bottom .copy { margin-top:6px; font-size:10px; color:#aaa; }
footer.bottom .spinning { display:inline-block; animation:spin 4s linear infinite; }
footer.bottom .bottom-marq {
  background:#1a1a1a; color:#66b3ff; padding:2px;
  font-size:10px; overflow:hidden; margin-top:8px;
  border:1px solid #1e63ff; white-space:nowrap;
}
footer.bottom .bottom-marq span {
  display:inline-block; padding-left:100%;
  animation: marq 30s linear infinite; animation-delay:-15s;
}

/* ---------- Misc ---------- */
hr.rainbow {
  height:4px; border:0;
  background: repeating-linear-gradient(90deg, #1e63ff 0 20px, #ff6a00 20px 40px, #808080 40px 60px);
  margin:10px 0;
}
.updates {
  font-size:12px; width:100%; border-collapse:collapse;
  background:#1a1a1a; border:1px solid #1e63ff;
}
.updates td { padding:4px 6px; border:0; border-bottom:1px dotted #aaa; background:transparent; color:#fff; }
.updates .date { color:#1e63ff; white-space:nowrap; font-weight:bold; }
.updates .new-mark { color:#ff6a00; font-weight:bold; animation:blink 1s infinite; margin-left:4px; font-size:10px; }

.section h2.has-pb { position:relative; overflow:hidden; cursor:pointer; }
.pb-text, .pb-logo { display:inline-block; transition:opacity .28s ease; }
.pb-logo {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  height:80%; max-width:92%; opacity:0; pointer-events:none;
}
.pb-logo svg { height:100%; width:auto; display:block; }
.section h2.has-pb:hover .pb-text { opacity:0; }
.section h2.has-pb:hover .pb-logo { opacity:1; }

.ascii-deco {
  font-family:'MS Gothic','Courier New',monospace; white-space:pre;
  color:#e65100; font-size:10px; line-height:1.1; text-align:center; padding:8px 0;
}

/* ---------- Construction (工事中) ---------- */
.kouji-cone {
  display:inline-block; animation:konst 1s infinite;
  background:#ff6a00; color:#000; font-weight:bold; padding:0 4px;
  border:1px solid #fff; font-size:10px;
}
.under-box {
  border:4px dashed #ffe600; background:repeating-linear-gradient(45deg,#1a1a1a 0 12px,#222 12px 24px);
  padding:30px 16px; text-align:center; margin:14px 0; color:#ffe600;
  font-family:'MS PGothic',monospace;
}
.under-box .big {
  font-size:28px; font-weight:bold; color:#ff6a00;
  text-shadow:2px 2px 0 #000; letter-spacing:4px; display:block; margin-bottom:8px;
  animation:blink 1.2s infinite;
}
.under-box .ascii {
  font-family:'MS Gothic','Courier New',monospace;
  white-space:pre; font-size:12px; line-height:1.2;
  color:#ffa726; margin:14px 0;
}
.under-box .small { font-size:11px; color:#fff; }

/* ---------- Splash entrance ---------- */
.splash-wrap {
  max-width:680px; margin:30px auto; padding:0;
  border:5px ridge #ff6a00; background:rgba(0,0,0,.92);
  box-shadow:0 0 40px #000;
}
.splash-title {
  background: repeating-linear-gradient(90deg,#ff6a00 0 12px,#1e63ff 12px 24px);
  text-align:center; padding:8px; color:#fff;
  font-family:'Impact','MS PGothic',sans-serif; font-size:22px;
  text-shadow:2px 2px 0 #000; border-bottom:3px double #fff;
}
.splash-body {
  padding:18px 18px 14px; font-size:12px; line-height:1.9; color:#fff;
}
.splash-body h3 {
  background:#ffe600; color:#000; padding:2px 8px; display:inline-block;
  font-size:13px; margin:6px 0 8px; border:2px outset #ffe600;
}
.splash-body .warn { color:#ff6666; font-weight:bold; }
.splash-body .ok   { color:#33ff66; font-weight:bold; }
.splash-body ul { margin:0 0 10px 22px; }
.splash-choices {
  display:flex; gap:12px; justify-content:center; padding:14px;
  border-top:2px dashed #ff6a00; flex-wrap:wrap;
}
.splash-choice {
  flex:1; min-width:220px; padding:14px;
  background:#1a1a1a; border:3px outset #1e63ff;
  text-align:center; color:#66b3ff; text-decoration:none;
  font-family:'MS PGothic',monospace;
}
.splash-choice:hover { border-style:inset; background:#0a1a35; color:#fff; }
.splash-choice b { display:block; font-size:18px; color:#ff6a00; margin-bottom:6px; }
.splash-choice .sml { font-size:10px; color:#ccc; line-height:1.5; }
.splash-choice .arrow { display:inline-block; margin-top:6px; color:#ffe600; font-weight:bold; animation:blink 1s infinite; }

.splash-foot {
  background:#1a1a1a; padding:8px; font-size:10px; color:#aaa; text-align:center;
  border-top:2px solid #ff6a00;
}

/* ---------- Frame layout ---------- */
.fr-menu {
  background:#000 url('./assets/bg.jpg') center center / cover fixed no-repeat;
  font-family:'MS PGothic',monospace; color:#fff;
  padding:10px 8px; font-size:12px; line-height:1.7; min-height:100vh;
}
.fr-menu .box {
  background:rgba(20,20,20,.93); border:2px ridge #ff6a00;
  padding:8px; margin-bottom:8px;
}
.fr-menu h3 {
  background:#ff6a00; color:#fff; text-align:center; padding:2px 0;
  font-size:12px; margin-bottom:6px; border:2px outset #ff6a00;
}
.fr-menu ul { list-style:none; }
.fr-menu li { padding:2px 0; border-bottom:1px dashed #555; font-size:12px; }
.fr-menu li::before { content:"▶ "; color:#ff6a00; }
.fr-menu li.new::after { content:" NEW!"; color:#ff6a00; font-size:9px; animation:blink .8s infinite; margin-left:2px; }
.fr-menu li.kouji::after { content:" 🚧"; font-size:9px; }
.fr-menu .credit { font-size:9px; color:#aaa; text-align:center; margin-top:6px; }
.fr-menu .mini-counter {
  background:#000; color:#33ff66; font-family:'Courier New',monospace;
  font-size:14px; letter-spacing:3px; padding:3px 6px; border:2px inset #ff6a00;
  text-align:center; margin-bottom:6px; text-shadow:0 0 4px #33ff66;
}

/* ---------- Mobile ---------- */
@media (max-width:720px) {
  body { padding:4px; font-size:13px; }
  .wrapper { max-width:100%; border-width:2px; }
  .main-table, .main-table tbody, .main-table tr, .main-table td { display:block; width:100%; }
  .main-table td { border:2px solid #ff6a00; padding:10px 8px; }
  .main-table .sidebar { width:100%; }
  header.main-header { padding:12px 6px 10px; }
  header.main-header h1 { font-size:20px; line-height:1.3; }
  header.main-header .corner-deco { display:none; }
  .top-marquee { font-size:10px; padding:2px 0; }
  .info-bar { font-size:10px; padding:4px 8px; gap:4px; justify-content:center; }
  .banners { gap:3px; padding:8px 4px; }
  .banner { font-size:8px; padding:2px 5px; }
  .counter-area { padding:10px 6px; font-size:10px; }
  .counter { font-size:20px; letter-spacing:2px; padding:4px 8px; }
  .section h2 { font-size:13px; padding:4px 8px; border-left-width:5px; border-right-width:5px; }
  .info-table { font-size:11px; }
  .info-table th { width:70px; font-size:10px; padding:3px 4px; }
  .info-table td { padding:3px 4px; word-break:break-word; }
  .stuff-list li { padding:6px 8px; font-size:12px; }
  .stuff-list li .desc { font-size:11px; }
  .intro, .about-box { padding:8px; font-size:12px; line-height:1.8; }
  .diary-entry { padding:8px; font-size:12px; }
  .bbs-form .row { flex-direction:column; align-items:stretch; gap:2px; margin-bottom:6px; }
  .splash-choice { min-width:auto; }
}
@media (max-width:420px) {
  header.main-header h1 { font-size:17px; }
  .counter { font-size:17px; letter-spacing:1px; }
  .section h2 { font-size:12px; }
}
