@font-face {
    font-family: 'Keinan Mugimaru';
    src: url('keinan-mugimaru.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Keinan Mugimaru', 'Helvetica Neue', 'Helvetica', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Arial', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    background-image: url('images/background.png');
    background-size: 100% auto;
    background-position: center top;
    background-attachment: scroll;
    background-repeat: repeat-y;
    color: #666;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ローディング画面 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #CAEDFF 0%, #ffd4e5 50%, #e8d9ff 100%);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-cats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.loading-cat {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.loading-cat-1 {
    animation: bounce 1s infinite;
}

.loading-cat-2 {
    animation: bounce 1s infinite 0.2s;
}

.loading-cat-3 {
    animation: bounce 1s infinite 0.4s;
}

.loading-title {
    color: #555;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    animation: fadeIn 1s ease;
}

.loading-bar {
    width: 300px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #CAEDFF, #ffd4e5, #CAEDFF);
    background-size: 200% 100%;
    animation: loadingProgress 2s ease-in-out forwards, shimmer 1s linear infinite;
    border-radius: 10px;
}

@keyframes loadingProgress {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-text {
    color: #666;
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* パーティクル背景 */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(202, 237, 255, 0.6));
    border-radius: 50%;
    animation: float 10s infinite;
    box-shadow: 0 0 10px rgba(202, 237, 255, 0.5);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ヘッダー */
header {
    background: linear-gradient(135deg, rgba(202, 237, 255, 0.98), rgba(255, 212, 229, 0.98));
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(202, 237, 255, 0.3);
    border-bottom: 2px solid #fff;
}

.header-content {
    position: relative;
}

.header-cat {
    width: 200px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 3px 10px rgba(255,255,255,0.5));
}

header h1 {
    margin: 0;
    font-size: 2rem;
    color: #555;
    text-shadow: 2px 2px 0px #fff, 3px 3px 6px rgba(202, 237, 255, 0.5);
    font-weight: bold;
}

.tagline {
    color: #666;
    font-size: 1rem;
    margin-top: 0.3rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* ナビゲーション */
nav {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #555;
    text-decoration: none;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(202, 237, 255, 0.6);
}

.nav-link:hover {
    background: #CAEDFF;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(202, 237, 255, 0.6);
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.3);
    text-align: center;
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    overflow: hidden;
}

.floating-images {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.float-image {
    position: absolute;
    width: 80px;
    opacity: 0.3;
    animation: floatAround 20s infinite;
}

.float-1 { top: 10%; left: 10%; animation-delay: 0s; }
.float-2 { top: 60%; right: 10%; animation-delay: 5s; }
.float-3 { top: 30%; right: 20%; animation-delay: 10s; }

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, -50px) rotate(-5deg); }
    75% { transform: translate(20px, -20px) rotate(3deg); }
}

.main-cat-image {
    max-width: 600px;
    width: 100%;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(135deg, #CAEDFF 0%, #ffd4e5 50%, #CAEDFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    filter: drop-shadow(2px 2px 3px rgba(202, 237, 255, 0.4));
}

/* 特徴カード */
.features-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,240,255,0.95));
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(202, 237, 255, 0.6), 0 0 30px rgba(255, 212, 229, 0.4);
    border-color: #CAEDFF;
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #666;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ギャラリー */
.gallery-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-item::before {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem 0.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.gallery-item:hover::before {
    transform: translateY(0);
}

.gallery-item:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 10px 30px rgba(202, 237, 255, 0.8), 0 0 20px rgba(255, 212, 229, 0.6);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, rgba(202, 237, 255, 0.98), rgba(255, 212, 229, 0.98));
    color: #555;
    border: 3px solid #fff;
}

.section-image {
    max-width: 250px;
    width: 100%;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.cta-section .gradient-text {
    background: linear-gradient(135deg, #555 0%, #888 50%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(1px 1px 2px rgba(255, 255, 255, 0.8));
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    color: #666;
}

.link-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.discord-button {
    background: linear-gradient(135deg, #CAEDFF, #a8d8f0);
    color: #555;
    border: 2px solid #fff;
}

.discord-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(202, 237, 255, 0.8);
    background: linear-gradient(135deg, #a8d8f0, #CAEDFF);
}

.twitter-button {
    background: linear-gradient(135deg, #ffd4e5, #ffb3d1);
    color: #555;
    border: 2px solid #fff;
}

.twitter-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 212, 229, 0.8);
    background: linear-gradient(135deg, #ffb3d1, #ffd4e5);
}

.button-icon {
    font-size: 1.5rem;
}

/* 統計情報 */
.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(202, 237, 255, 0.5);
    color: #555;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* フッター */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #999;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* アニメーション */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.bounce {
    animation: bounce 2s infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

.fade-in {
    animation: fadeIn 1s ease;
}

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

.slide-in {
    animation: slideIn 0.8s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .header-cat {
        width: 150px;
    }
    
    .main-cat-image {
        max-width: 90%;
    }
    
    .gradient-text {
        font-size: 1.8rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .stats {
        gap: 1.5rem;
    }
    
    .link-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}
