/* ギラギラ系・2000年代やりすぎ個人サイト風CSS */
body {
    background: url('https://www.transparenttextures.com/patterns/brick-wall.png'), linear-gradient(135deg, #ff0 0%, #0ff 20%, #f0f 40%, #0f0 60%, #f00 80%, #00f 100%);
    color: #000;
    font-family: "MS UI Gothic", Osaka, Verdana, Arial, sans-serif;
    margin: 0;
    padding: 0;
    animation: bgflash 3s linear infinite;
}
@keyframes bgflash {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
    100% { filter: brightness(1); }
}

#container {
    width: 760px;
    margin: 40px auto;
    background: #fff;
    border: 6px ridge #ff00cc;
    box-shadow: 0 0 48px #ff0, 0 0 0 8px #0ff inset, 0 0 0 12px #00f inset;
    padding: 20px 40px 40px 40px;
    /* 縞模様削除 */
}

header {
    border-bottom: 5px double #ff6600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    background: linear-gradient(90deg, #ff0 0%, #f0f 100%);
    box-shadow: 0 2px 24px #ff0, 0 0 16px #f0f inset;
    animation: headerflash 2s linear infinite;
}
@keyframes headerflash {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

header h1 {
    font-size: 2.4em;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    color: #ff00cc;
    text-shadow: 0 0 8px #fff, 2px 2px 8px #00f, 0 0 24px #0ff;
    font-weight: bold;
    font-family: 'MS UI Gothic', Verdana, Arial, sans-serif;
    animation: rainbow 1.5s linear infinite alternate;
}
@keyframes rainbow {
    0% { color: #ff00cc; text-shadow: 0 0 8px #fff, 2px 2px 8px #00f, 0 0 24px #0ff; }
    25% { color: #00f; text-shadow: 0 0 8px #fff, 2px 2px 8px #ff0, 0 0 24px #f0f; }
    50% { color: #0ff; text-shadow: 0 0 8px #fff, 2px 2px 8px #f0f, 0 0 24px #ff0; }
    75% { color: #ff0; text-shadow: 0 0 8px #fff, 2px 2px 8px #f00, 0 0 24px #0f0; }
    100% { color: #f00; text-shadow: 0 0 8px #fff, 2px 2px 8px #0f0, 0 0 24px #00f; }
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}
nav ul li a {
    text-decoration: blink;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    background: repeating-linear-gradient(45deg, #f00 0 10px, #ff0 10px 20px, #0f0 20px 30px, #0ff 30px 40px, #00f 40px 50px, #f0f 50px 60px);
    border: 4px groove #ff0;
    border-radius: 12px;
    padding: 6px 20px;
    box-shadow: 0 0 16px #ff0, 0 0 8px #f0f inset;
    transition: background 0.2s, box-shadow 0.2s;
    text-shadow: 1px 1px 0 #000, 0 0 8px #fff;
    animation: blinklink 0.7s steps(1) infinite alternate;
}
@keyframes blinklink {
    0% { filter: brightness(1.2); }
    100% { filter: brightness(0.7); }
}

nav ul li a:hover {
    background: repeating-linear-gradient(90deg, #fff 0 10px, #ff0 10px 20px, #f0f 20px 30px);
    box-shadow: 0 0 32px #ff0, 0 0 16px #f0f inset;
    color: #f00;
    text-shadow: 0 0 8px #fff, 2px 2px 8px #00f;
    animation: none;
}

main section {
    margin-bottom: 30px;
}
main h2 {
    border-left: 10px double #f0f;
    padding-left: 12px;
    background: #fff0fc;
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #f0f;
    text-shadow: 1px 1px 0 #fff, 0 0 8px #ff0;
    animation: h2flash 1.2s linear infinite alternate;
}
@keyframes h2flash {
    0% { color: #f0f; }
    100% { color: #00f; }
}

.works-list {
    list-style: disc inside;
    margin-left: 20px;
}
.counter-outer {
    display:inline-block;
    background:#000;
    color:#0f0;
    font-family:'DS-Digital','Consolas','monospace';
    font-size:2em;
    letter-spacing:0;
    padding:6px 18px;
    border:3px inset #666;
    border-radius:8px;
    box-shadow:0 0 10px #0f0;
}
.counter-digit {
    display:inline-block;
    width:1.1em;
    text-align:center;
    margin:0 2px;
    position:relative;
    z-index:1;
}
.counter-bar {
    display:inline-block;
    width:2px;
    height:1.3em;
    background:#222;
    margin:0 2px;
    border-radius:2px;
    vertical-align:middle;
    box-shadow:0 0 4px #0f0, 0 0 2px #fff inset;
    z-index:0;
}

.rainbow-glow {
    background: linear-gradient(90deg, #ff0 0%, #0ff 20%, #f0f 40%, #0f0 60%, #f00 80%, #00f 100%);
    background-size: 400% 100%;
    color: #fff;
    text-shadow: 0 0 8px #fff, 0 0 16px #0ff, 0 0 24px #f0f;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-glow-move 3s linear infinite, rainbow-glow-shadow 1.5s ease-in-out infinite alternate;
}
@keyframes rainbow-glow-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
@keyframes rainbow-glow-shadow {
    0% { text-shadow: 0 0 8px #fff, 0 0 16px #0ff, 0 0 24px #f0f; }
    100% { text-shadow: 0 0 16px #fff, 0 0 32px #ff0, 0 0 32px #0ff; }
}

footer {
    border-top: 6px double #ff00cc;
    margin-top: 20px;
    padding-top: 10px;
    text-align: center;
    color: #ff00cc;
    font-size: 1.1em;
    background: #fff0fc;
    box-shadow: 0 -2px 32px #ff0, 0 0 16px #f0f inset;
    text-shadow: 0 0 8px #fff, 2px 2px 8px #00f;
    animation: footerflash 2s linear infinite alternate;
}
@keyframes footerflash {
    0% { color: #ff00cc; }
    100% { color: #00f; }
}

@media (max-width: 800px) {
    #container {
        width: 98vw;
        padding: 10px;
    }
}

/* 画像が枠線をはみ出さないように調整 */
#container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
}
