/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-image {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}







/* Hero Section */
.hero {
    padding: 120px 0 80px;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.1) 0%,
        rgba(255, 217, 61, 0.1) 16.66%,
        rgba(107, 207, 127, 0.1) 33.33%,
        rgba(78, 205, 196, 0.1) 50%,
        rgba(69, 183, 209, 0.1) 66.66%,
        rgba(155, 89, 182, 0.1) 83.33%,
        rgba(255, 107, 107, 0.1) 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.gradient-text {
    background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCF7F, #4ECDC4, #45B7D1, #9B59B6, #FF6B6B);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Floating Colors Animation */
.floating-colors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-color {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.color-1 {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #FF6B6B, #FFD93D);
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.color-2 {
    width: 25px;
    height: 25px;
    background: linear-gradient(45deg, #6BCF7F, #4ECDC4);
    top: 65%;
    right: 12%;
    animation-delay: 1s;
}

.color-3 {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #45B7D1, #9B59B6);
    top: 25%;
    right: 25%;
    animation-delay: 2s;
}

.color-4 {
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, #9B59B6, #FF6B6B);
    bottom: 25%;
    left: 18%;
    animation-delay: 3s;
}

.color-5 {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #FFD93D, #6BCF7F);
    top: 10%;
    right: 8%;
    animation-delay: 1.5s;
}

.color-6 {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #4ECDC4, #FF6B6B);
    bottom: 15%;
    right: 20%;
    animation-delay: 4s;
}

.color-7 {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #9B59B6, #45B7D1);
    top: 45%;
    left: 5%;
    animation-delay: 2.5s;
}

.color-8 {
    width: 28px;
    height: 28px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    top: 80%;
    left: 40%;
    animation-delay: 3.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Filter Navigation */
.filter-nav {
    padding: 40px 0;
    background: #f8f9fa;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #666;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, #FF0050, #FE2C55);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 80, 0.3);
}

.filter-icon {
    font-size: 1.2rem;
}

/* Portfolio Grid */
.portfolio {
    padding: 80px 0;
}

/* Category Headers */
.category-header {
    grid-column: 1 / -1;
    margin: 40px 0 30px 0;
    text-align: center;
}

.category-header:first-child {
    margin-top: 0;
}

.category-image {
    margin-bottom: 20px;
}

.category-image img {
    width: 100%;
    max-width: 800px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.category-image img:hover {
    transform: translateY(-5px);
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCF7F, #4ECDC4, #45B7D1, #9B59B6);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease-in-out infinite;
    margin-bottom: 10px;
    position: relative;
}

.category-title {
    position: relative;
    display: inline-block;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -20px;
    right: -20px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #45B7D1);
    border-radius: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Center alignment for single and few items */
.portfolio-grid .portfolio-item[data-category="cm"],
.portfolio-grid .portfolio-item[data-category="youtube"],
.portfolio-grid .portfolio-item[data-category="tiktok"] {
    justify-self: center;
    max-width: 400px;
    width: 100%;
}

.portfolio-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}



.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.portfolio-info {
    padding: 30px 25px;
}





.portfolio-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.portfolio-category {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #FF0050, #FE2C55);
    border-radius: 15px;
    display: inline-block;
}

.portfolio-desc {
    color: #666;
    line-height: 1.6;
}



/* Portfolio Links */
.portfolio-links {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-link-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-link-wrapper:hover .portfolio-link {
    transform: scale(1.1);
}

.portfolio-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.youtube-link {
    background: #FF0000;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.portfolio-link-wrapper:hover .youtube-link {
    background: #CC0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.tiktok-link {
    background: linear-gradient(135deg, #FF0050, #FE2C55);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 0, 80, 0.3);
}

.portfolio-link-wrapper:hover .tiktok-link {
    background: linear-gradient(135deg, #E6004A, #E5284F);
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.4);
}

.portfolio-link-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.portfolio-link-wrapper:hover .portfolio-link-text {
    color: #333;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: block;
    margin-bottom: 30px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCF7F, #4ECDC4, #45B7D1, #9B59B6, #FF6B6B);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-text {
    transform: scale(1.05);
}

.footer-desc {
    margin: 20px 0;
    font-size: 1.1rem;
    color: #ecf0f1;
}

.footer-contact {
    color: #bdc3c7;
    line-height: 1.8;
}



.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #bdc3c7;
}





/* Responsive Design */
@media (max-width: 768px) {

    
    /* 浮遊カラーエレメントをモバイルでさらに小さく調整 */
    .color-1 {
        width: 20px;
        height: 20px;
    }
    
    .color-2 {
        width: 15px;
        height: 15px;
    }
    
    .color-3 {
        width: 25px;
        height: 25px;
    }
    
    .color-4 {
        width: 18px;
        height: 18px;
    }
    
    .color-5 {
        width: 12px;
        height: 12px;
    }
    
    .color-6 {
        width: 22px;
        height: 22px;
    }
    
    .color-7 {
        width: 16px;
        height: 16px;
    }
    
    .color-8 {
        width: 14px;
        height: 14px;
    }
    
    .floating-color {
        opacity: 0.4;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .filter-buttons {
        justify-content: center;
        padding: 0 10px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-card {
        margin: 0 10px;
    }
    
    /* Center alignment remains on mobile for single items */
    .portfolio-grid .portfolio-item[data-category="cm"],
    .portfolio-grid .portfolio-item[data-category="youtube"],
    .portfolio-grid .portfolio-item[data-category="tiktok"] {
        justify-self: center;
        max-width: 100%;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-image img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-image img {
        height: 120px;
        border-radius: 10px;
    }
    
    .portfolio-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .footer-logo-text {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .portfolio-info {
        padding: 20px;
    }
    
    .portfolio-title {
        font-size: 1.2rem;
    }
}