@charset "UTF-8";

/* Main Styles */
:root {
    --primary-bg: #000;
    --primary-text: #fff;
    --accent-color-1: #ff99cc;   
    --accent-color-2: #66d1ff;
    --accent-color-3: #99ffcc;
    --accent-color-4: #ffdb66;
    --transition-time: 0.5s;
    --font-ja: 'Zen Maru Gothic', sans-serif;
    --font-en: 'Asap', sans-serif;
    --font-zh: 'LXGW WenKai TC', sans-serif;
    --font-ko: 'Gowun Dodum', sans-serif;
}
html[lang="ja"] body {
    font-family: var(--font-ja);
}
html[lang="en"] body {
    font-family: var(--font-en);
}
html[lang="zh"] body {
    font-family: var(--font-zh);
}
html[lang="ko"] body {
    font-family: var(--font-ko);
}
body {
    font-family: 'Zen Maru Gothic', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* Reset basic margins for preview consistency */
    margin: 0;
    padding: 0;
}
/* Basic Reset equivalent */
* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}
.neo-loader {
    position: relative;
    width: 200px;
    height: 200px;
}
.neo-spinner {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color-2);
    border-bottom-color: var(--accent-color-1);
    animation: neo-spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    box-shadow: 0 0 20px rgba(51, 204, 255, 0.2);
}
.neo-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.neo-particles::before,
.neo-particles::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--accent-color-3);
    border-radius: 50%;
    animation: neo-particle 2s infinite;
}
.neo-particles::after {
    background: var(--accent-color-4);
    animation-delay: -1s;
}
.neo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 1.2em;
    letter-spacing: 2px;
    color: var(--accent-color-2);
    text-shadow: 0 0 10px rgba(51, 204, 255, 0.5);
    animation: neo-text-pulse 1.5s ease-in-out infinite;
}
@keyframes neo-spin {
    0% { transform: rotate(0deg); opacity: 0; }
    30% { transform: rotate(360deg); opacity: 1; }
    70% { transform: rotate(720deg); opacity: 1; }
    100% { transform: rotate(1080deg); opacity: 0; }
}
@keyframes neo-particle {
    0% { transform: translate(0,0) scale(1); opacity: 0; }
    25% { transform: translate(80px,-50px) scale(1.5); opacity: 1; }
    50% { transform: translate(120px,30px) scale(0.8); }
    75% { transform: translate(-60px,80px) scale(1.2); }
    100% { transform: translate(0,0) scale(1); opacity: 0; }
}
@keyframes neo-text-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%); }
    50% { opacity: 1; transform: translate(-50%, -60%); }
}
@keyframes loader-rotate {
    0%, 100% {
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(90deg) translateX(10px);
    }
    50% {
        transform: rotate(180deg) translateX(0);
    }
    75% {
        transform: rotate(270deg) translateX(-10px);
    }
}
@keyframes loader-pulse {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}
/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    z-index: 100;
}
.logo {
    position: relative;
    width: 150px;
    height: auto;
    cursor: pointer;
}
.logo img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
.logo-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 101;
    color: #ffffff;
}
.hamburger, .f-letter, .close-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-time), transform var(--transition-time);
}
.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #ffffff !important;
    margin: 3px 0;
    transition: transform 0.3s ease;
}
.f-letter {
    font-size: 30px;
    font-weight: bold;
    opacity: 0;
    transform: rotate(180deg) scale(0);
}
.close-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}
.close-icon span {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #ffffff !important;
}
.close-icon span:first-child {
    transform: rotate(45deg);
}
.close-icon span:last-child {
    transform: rotate(-45deg);
}
/* Main Menu */
.main-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99;
    transition: right 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
}
.main-menu.active {
    right: 0;
}
.main-menu ul {
    width: 100%;
}
.main-menu li {
    width: 100%;
    text-align: center;
    margin: 15px 0;
}
.main-menu a {
    display: block;
    color: var(--primary-text);
    text-decoration: none;
    font-size: 24px;
    padding: 10px;
    transition: all 0.3s ease;
}
.main-menu a:hover {
    color: var(--accent-color-1);
    transform: translateX(5px);
}
/* Main Content */
main {
    padding-top: 80px;
    min-height: 100vh;
}
section {
    display: none;
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}
section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}
.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    animation: titleFade 1s ease;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color-1);
}
/* About Section */
.about-content {
    line-height: 1.8;
}
.about-content p {
    margin-bottom: 15px;
    font-size: 18px;
}
.about-content .highlight {
    font-size: 24px;
    color: var(--accent-color-1);
    text-align: center;
    margin: 20px 0;
}
.about-content strong {
    font-weight: bold;
    color: var(--accent-color-2);
}
/* グリッチテキスト */
.glitch-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
    overflow: hidden;
}
.glitch-text {
    position: relative;
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: glitch-reveal 2s ease forwards, glitch-continuous 3s infinite 2s;
    opacity: 0;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.glitch-text::before {
    color: #ff00ff;
    z-index: -1;
    animation: glitch-reveal-before 2s ease forwards, glitch-continuous-before 3s infinite 2s;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.glitch-text::after {
    color: #00ffff;
    z-index: -2;
    animation: glitch-reveal-after 2s ease forwards, glitch-continuous-after 3s infinite 2s;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}
@keyframes glitch-reveal {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    10% {
        opacity: 0.3;
        transform: translateY(-10px);
        text-shadow: none;
    }
    15% {
        opacity: 0.5;
        transform: translateY(-5px);
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff, 0.025em 0.04em 0 #fffc00;
    }
    20% {
        opacity: 0.8;
        transform: translateY(0);
        text-shadow: none;
    }
    25% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff, 0.025em 0.04em 0 #fffc00;
    }
    30%, 35%, 40%, 45% {
        opacity: 1;
        transform: translateY(0) skewX(0);
        text-shadow: none;
    }
    31%, 36%, 41% {
        opacity: 1;
        transform: translateY(0) skewX(10deg);
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff, 0.025em 0.04em 0 #fffc00;
    }
    50%, 55%, 60%, 65% {
        opacity: 1;
        transform: translateY(0) skewX(0);
    }
    52%, 57%, 62% {
        opacity: 1;
        transform: translateY(0) skewX(-10deg);
    }
    70%, 75%, 80%, 85%, 90%, 95% {
        opacity: 1;
        transform: translateY(0);
    }
    72%, 77%, 82%, 87%, 92% {
        opacity: 1;
        transform: translateY(0) skewX(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes glitch-reveal-before {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    10% {
        opacity: 0.3;
        transform: translateX(-5px);
    }
    15% {
        opacity: 0.5;
        transform: translateX(5px);
    }
    20% {
        opacity: 0.8;
        transform: translateX(-3px);
    }
    25% {
        opacity: 1;
        transform: translateX(3px);
    }
    30%, 35%, 40%, 45% {
        opacity: 1;
        transform: translateX(0);
    }
    31%, 36%, 41% {
        opacity: 1;
        transform: translateX(5px);
    }
    50%, 55%, 60%, 65% {
        opacity: 1;
        transform: translateX(0);
    }
    52%, 57%, 62% {
        opacity: 1;
        transform: translateX(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes glitch-reveal-after {
    0% {
        opacity: 0;
        transform: translateX(10px);
    }
    10% {
        opacity: 0.3;
        transform: translateX(5px);
    }
    15% {
        opacity: 0.5;
        transform: translateX(-5px);
    }
    20% {
        opacity: 0.8;
        transform: translateX(3px);
    }
    25% {
        opacity: 1;
        transform: translateX(-3px);
    }
    30%, 35%, 40%, 45% {
        opacity: 1;
        transform: translateX(0);
    }
    31%, 36%, 41% {
        opacity: 1;
        transform: translateX(-5px);
    }
    50%, 55%, 60%, 65% {
        opacity: 1;
        transform: translateX(0);
    }
    52%, 57%, 62% {
        opacity: 1;
        transform: translateX(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes glitch-continuous {
    0%, 100% {
        transform: translateX(0) skewX(0);
        text-shadow: none;
    }
    10% {
        transform: translateX(-2px) skewX(2deg);
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff, 0.025em 0.04em 0 #fffc00;
    }
    15% {
        transform: translateX(2px) skewX(-2deg);
        text-shadow: none;
    }
    20% {
        transform: translateX(0) skewX(0);
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff, 0.025em 0.04em 0 #fffc00;
    }
    25% {
        transform: translateX(-1px) skewX(1deg);
        text-shadow: none;
    }
    30% {
        transform: translateX(1px) skewX(-1deg);
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff, 0.025em 0.04em 0 #fffc00;
    }
    35% {
        transform: translateX(0) skewX(0);
        text-shadow: none;
    }
}
@keyframes glitch-continuous-before {
    0%, 100% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(2px);
    }
    20% {
        transform: translateX(-2px);
    }
    30% {
        transform: translateX(1px);
    }
    40% {
        transform: translateX(-1px);
    }
    50% {
        transform: translateX(0);
    }
}
@keyframes glitch-continuous-after {
    0%, 100% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(-2px);
    }
    20% {
        transform: translateX(2px);
    }
    30% {
        transform: translateX(-1px);
    }
    40% {
        transform: translateX(1px);
    }
    50% {
        transform: translateX(0);
    }
}
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
    }
}
@media (max-width: 480px) {
    .glitch-text {
        font-size: 1.8rem;
    }
}
/* Music Section */
.music-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
}
.music-albums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.album {
    width: 250px;
    transition: transform 0.3s ease;
}
.album:hover {
    transform: scale(1.05);
}
.album img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
/* Graphic Section */
.graphic-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
}
.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}
.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.social-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    transition: transform 0.3s ease;
    z-index: 2;
}
.social-icon .icon-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}
/* X (旧Twitter)のアニメーション */
/* X (旧Twitter)のアニメーション - 改善版 */
.x-twitter .icon-animation {
    background: linear-gradient(135deg, #858585, #000000);
    animation: xBackground 2s ease-in-out forwards;
}
@keyframes xBackground {
    0% { opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.9; }
    100% { opacity: 0; }
}
.x-twitter .icon-animation::before,
.x-twitter .icon-animation::after {
    content: '';
    position: absolute;
    background-color: 255,255,255,0;
    transform-origin: center;
}
.x-twitter .icon-animation::before {
    width: 4px;
    height: 50%;
    top: 25%;
    left: 48%;
    animation: xLine1 2s ease-in-out forwards;
}
.x-twitter .icon-animation::after {
    width: 4px;
    height: 50%;
    top: 25%;
    left: 48%;
    animation: xLine2 2s ease-in-out forwards;
}
@keyframes xLine1 {
    0% { transform: rotate(-45deg) scale(0); opacity: 0; }
    20% { transform: rotate(-45deg) scale(1.2); opacity: 1; }
    40% { transform: rotate(-45deg) scale(1); opacity: 1; }
    80% { transform: rotate(-45deg) scale(1); opacity: 1; }
    100% { transform: rotate(-45deg) scale(1.5); opacity: 0; }
}
@keyframes xLine2 {
    0% { transform: rotate(45deg) scale(0); opacity: 0; }
    20% { transform: rotate(45deg) scale(1.2); opacity: 1; }
    40% { transform: rotate(45deg) scale(1); opacity: 1; }
    80% { transform: rotate(45deg) scale(1); opacity: 1; }
    100% { transform: rotate(45deg) scale(1.5); opacity: 0; }
}
/* Instagramのアニメーション */
.instagram .icon-animation {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    animation: instagramGradient 2s ease-in-out forwards;
}
@keyframes instagramGradient {
    0% { opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { opacity: 0; }
}
.instagram .icon-animation::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border: 4px solid white;
    border-radius: 20%;
    box-sizing: border-box;
    animation: instagramSquare 2s ease-in-out forwards;
}
.instagram .icon-animation::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 30%;
    top: 35%;
    left: 35%;
    border: 4px solid white;
    border-radius: 50%;
    box-sizing: border-box;
    animation: instagramCircle 2s ease-in-out forwards;
}
@keyframes instagramSquare {
    0% { transform: scale(0.5); opacity: 0; }
    20% { transform: scale(1.1); opacity: 1; }
    80% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
@keyframes instagramCircle {
    0% { transform: scale(0); opacity: 0; }
    30% { transform: scale(1.2); opacity: 1; }
    70% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
/* TikTokのアニメーション */
.tiktok .icon-animation {
    background-color: #000;
    animation: tiktokBackground 2s ease-in-out forwards;
}
@keyframes tiktokBackground {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}
.tiktok .icon-animation::before {
    content: '';
    position: absolute;
    width: 45%;
    height: 45%;
    top: 27.5%;
    left: 27.5%;
    background-color: #00f2ea;
    animation: tiktokCyan 2s ease-in-out forwards;
}
.tiktok .icon-animation::after {
    content: '';
    position: absolute;
    width: 45%;
    height: 45%;
    top: 27.5%;
    left: 27.5%;
    background-color: #ff0050;
    animation: tiktokPink 2s ease-in-out forwards;
}
@keyframes tiktokCyan {
    0% { transform: translate(-20px, -20px) scale(0.5); opacity: 0; }
    20% { transform: translate(-10px, -10px) scale(1); opacity: 0.8; }
    40% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    100% { transform: translate(0, 0) scale(1); opacity: 0; }
}
@keyframes tiktokPink {
    0% { transform: translate(20px, 20px) scale(0.5); opacity: 0; }
    20% { transform: translate(10px, 10px) scale(1); opacity: 0.8; }
    40% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    100% { transform: translate(0, 0) scale(1); opacity: 0; }
}
/* YouTubeのアニメーション */
.youtube .icon-animation {
    background-color: #FF0000;
    animation: youtubeBackground 2s ease-in-out forwards;
}
@keyframes youtubeBackground {
    0% { opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.9; }
    100% { opacity: 0; }
}
.youtube .icon-animation::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 35%;
    left: 40%;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent white;
    animation: youtubePlay 2s ease-in-out forwards;
}
@keyframes youtubePlay {
    0% { transform: scale(0.5); opacity: 0; }
    20% { transform: scale(1.2); opacity: 1; }
    40% { transform: scale(1); opacity: 1; }
    80% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
/* Contact Section */
.contact-content {
    text-align: center;
    line-height: 1.8;
}
.contact-content p {
    margin-bottom: 15px;
    font-size: 18px;
}
.contact-content .email {
    font-size: 24px;
    color: var(--accent-color-2);
    margin: 20px 0;
}
.contact-content .note {
    font-size: 14px;
    margin-top: 40px;
    color: #aaa;
}
/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes titleFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes floatingShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(200px, 100px) rotate(180deg);
    }
    75% {
        transform: translate(100px, 200px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        width: 120px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-content p {
        font-size: 16px;
    }
    
    .about-content .highlight {
        font-size: 20px;
    }
    
    .music-albums {
        gap: 20px;
    }
    
    .album {
        width: 200px;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-content .email {
        font-size: 20px;
    }
    .content-wrapper {
        text-align: center !important;
    }
}
@media (max-width: 480px) {
    .logo {
        width: 100px;
    }
    
    header {
        padding: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .about-content p {
        font-size: 14px;
    }
    
    .about-content .highlight {
        font-size: 18px;
    }
    
    .music-albums {
        flex-direction: column;
        align-items: center;
    }
    
    .album {
        width: 180px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-content .email {
        font-size: 18px;
    }
}
@keyframes particleFly {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.2) rotate(45deg);
    }
    60% {
        opacity: 0.8;
        transform: scale(0.8) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg) translate(50px, -50px);
    }
}
@keyframes glitchEffect {
    0% {
        opacity: 0;
        transform: translate(0, 0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    10% {
        opacity: 1;
        transform: translate(-5px, 5px);
        clip-path: polygon(5% 10%, 95% 5%, 95% 90%, 5% 95%);
    }
    20% {
        transform: translate(5px, -5px);
        clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    }
    30% {
        transform: translate(-3px, 3px);
        clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
    }
    40% {
        transform: translate(3px, -3px);
        clip-path: polygon(10% 0, 90% 0, 90% 100%, 10% 100%);
    }
    50% {
        transform: translate(0, 0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }
}
@keyframes drawOutline {
    0% {
        opacity: 0;
        border-color: var(--accent-color-2);
        transform: scale(1.5);
    }
    30% {
        opacity: 1;
        border-color: var(--accent-color-1);
    }
    70% {
        border-color: var(--accent-color-3);
        transform: scale(0.9);
    }
    100% {
        opacity: 0;
        border-color: var(--accent-color-4);
        transform: scale(1);
    }
}
/* SNSページの追加スタイル */
.music-intro {
    text-align: center;
    margin: 40px 0 30px;
    font-size: 18px;
}
.note {
    text-align: center;
    font-size: 14px;
    color: #aaa;
    margin-top: 30px;
}
@media (max-width: 768px) {
    .music-intro {
        font-size: 16px;
        margin: 30px 0 20px;
    }
    
    .note {
        font-size: 12px;
        margin-top: 20px;
    }
}
/* 言語セレクター */
.language-selector {
    position: relative;
    margin-right: 20px;
    z-index: 101;
    cursor: pointer;
    margin-left: auto;
}
.current-language {
    background-color: var(--accent-color-2);
    color: #000000; /* 黒色を明示的に指定 */
    width: 50px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.current-language:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.current-language:active:before {
    transform: translateX(0);
    transition: transform 0.1s ease;
}
.language-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    padding: 10px;
    width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.language-selector.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.language-option {
    padding: 10px;
    text-align: center;
    color: var(--primary-text);
    transition: all 0.3s ease;
    border-radius: 5px;
}
.language-option:hover {
    background-color: var(--accent-color-1);
    color: var(--primary-bg);
}
@media (max-width: 768px) {
    .language-selector {
        margin-right: 10px;
    }
    
    .current-language {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .language-menu {
        width: 120px;
    }
}
/* クリックエフェクト用のスタイル */
.current-language.clicked {
    animation: pulse 0.3s ease;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(102, 209, 255, 0.7); }
    50% { transform: scale(0.95); box-shadow: 0 0 0 10px rgba(102, 209, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(102, 209, 255, 0); }
}
/* 言語メニューのアニメーションも強化 */
.language-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    padding: 10px;
    width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.language-selector.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.language-option {
    padding: 10px;
    text-align: center;
    color: var(--primary-text);
    transition: all 0.3s ease;
    border-radius: 5px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}
.language-option:hover {
    background-color: var(--accent-color-1);
    color: var(--primary-bg);
    transform: translateX(5px);
}
/* Character Section */
.character-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}
.character-image {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color-1);
    box-shadow: 0 0 20px rgba(255, 153, 204, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.character-img, .character-img-alt {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}
.character-img-alt {
    opacity: 0;
}
.character-transition-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}
.transition-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: particleFly 0.6s ease-out forwards;
}
@keyframes particleFly {
    0% {
        transform: scale(0) translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: scale(0) translate(var(--tx), var(--ty)) rotate(var(--rot));
        opacity: 0;
    }
}
@media (max-width: 768px) {
    .character-image {
        width: 200px;
        height: 200px;
    }
}
@media (max-width: 480px) {
    .character-image {
        width: 150px;
        height: 150px;
    }
}
.character-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 153, 204, 0.8);
}
.character-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.character-description {
    text-align: center;
    max-width: 600px;
}
.character-name {
    font-size: 28px;
    color: var(--accent-color-2);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.character-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--accent-color-2);
}
.character-description p {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .character-image {
        width: 200px;
        height: 200px;
    }
    
    .character-name {
        font-size: 24px;
    }
    
    .character-description p {
        font-size: 16px;
    }
}
@media (max-width: 480px) {
    .character-image {
        width: 150px;
        height: 150px;
    }
    
    .character-name {
        font-size: 20px;
    }
    
    .character-description p {
        font-size: 14px;
    }
}

/* --- 新規追加: ゲーム選択モーダルのスタイル --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s;
}

.modal-content {
    background-color: #111;
    margin: 15% auto; 
    padding: 40px;
    border: 2px solid var(--accent-color-2);
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 20px rgba(102, 209, 255, 0.4);
    position: relative;
}

@keyframes fadeInModal {
    from {opacity: 0;}
    to {opacity: 1;}
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color-1);
    text-decoration: none;
}

.modal-prompt {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--primary-text);
}

.game-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-btn {
    display: block;
    padding: 15px 20px;
    background: transparent;
    border: 2px solid var(--accent-color-3);
    color: var(--accent-color-3);
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-btn:hover {
    background: var(--accent-color-3);
    color: #000;
    box-shadow: 0 0 15px var(--accent-color-3);
    transform: translateY(-2px);
}

.game-btn:nth-child(2) {
    border-color: var(--accent-color-4);
    color: var(--accent-color-4);
}
.game-btn:nth-child(2):hover {
    background: var(--accent-color-4);
    color: #000;
    box-shadow: 0 0 15px var(--accent-color-4);
}

@media (max-width: 768px) {
    .modal-content { width: 90%; margin: 40% auto; }
}

/* 新規ゲーム告知ポップアップのスタイル */
.game-notification {
    position: fixed;
    top: 20px; /* 画面上部に配置 */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.9); /* 背景は少し透けた黒 */
    border: 1px solid var(--accent-color-2); /* シアン色の枠線 */
    border-radius: 50px; /* 丸みを帯びた形状 */
    padding: 10px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 9998; /* ヘッダーより手前、ローダーより奥 */
    box-shadow: 0 0 15px rgba(102, 209, 255, 0.4);
    opacity: 0;
    animation: slideDownNotification 0.8s ease 2.5s forwards; /* 2.5秒後にふわっと表示 */
}

.game-notification-text {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.game-notification-btn {
    background-color: var(--accent-color-2); /* 青（シアン）の背景 */
    color: #000; /* 黒い文字 */
    padding: 8px 20px;
    border-radius: 20px; /* 角丸 */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
}

.game-notification-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--accent-color-2);
}

.game-notification-close {
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    margin-left: 5px;
    transition: color 0.3s;
}

.game-notification-close:hover {
    color: #fff;
}

@keyframes slideDownNotification {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 480px) {
    .game-notification {
        flex-direction: column; /* スマホでは縦並び */
        border-radius: 20px;
        top: 80px; /* ヘッダーと被らないように少し下げる */
        padding: 15px;
        gap: 10px;
    }
}