@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
        
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --text-color: #333;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
        
body {
    font-family: 'Helvetica Neue', 'Yu Gothic', 'Hiragino Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    }
        
/* ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    }
        
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    }
        
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }
        
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    }
        
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    }
        
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    }
        
.nav-links a:hover::after {
    width: 100%;
    }
        
.hamburger {
    width: 28px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
}
        
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.36s ease, opacity 0.36s ease;
    transform-origin: center;
} 
        
/* ヒーローセクション */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    }
        
.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    animation: fadeInUp 1s ease;
    }
        
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    }
        
.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    }
        
.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: white;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
        
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
        
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    }
        
        .particle {
            position: absolute;
            width: 10px;
            height: 10px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            animation: float 20s infinite linear;
        }
        
        /* セクション共通 */
        section {
            padding: 5rem 5%;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .section-title {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
            color: var(--dark-color);
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--primary-color);
        }
        
        /* About Me */
        .about-container {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 3rem;
            align-items: center;
        }
        
        .profile-img {
            position: relative;
            overflow: hidden;
            border-radius: 50%;
            width: 300px;
            height: 300px;
            margin: 0 auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .profile-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .profile-img:hover img {
            transform: scale(1.1);
        }
        
        .about-text h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: var(--dark-color);
        }
        
        .about-text p {
            margin-bottom: 1rem;
            color: #666;
            line-height: 1.8;
        }
        
        .social-links {
            display: flex;
            gap: 1.5rem;
            margin-top: 2rem;
        }
        
        .social-links a {
            display: inline-block;
            width: 40px;
            height: 40px;
            background: var(--light-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: var(--dark-color);
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-3px);
        }
        
        /* Works */
        .works-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .work-item {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }
        
        .work-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        }
        
        .work-item img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .work-item:hover img {
            transform: scale(1.1);
        }
        
        .work-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(102, 126, 234, 0.9);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            color: white;
            padding: 2rem;
            text-align: center;
        }
        
        .work-item:hover .work-overlay {
            opacity: 1;
        }
        
        .work-overlay h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }
        
        .work-overlay p {
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }
        
        .work-link {
            padding: 0.5rem 1.5rem;
            background: white;
            color: var(--dark-color);
            text-decoration: none;
            border-radius: 25px;
            font-weight: 600;
            transition: transform 0.3s ease;
        }
        
        .work-link:hover {
            transform: scale(1.05);
        }
        
        /* Skills */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 3rem;
        }
        
        .skill-category h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: var(--dark-color);
        }
        
        .skill-item {
            margin-bottom: 1.5rem;
        }
        
        .skill-name {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }
        
        .skill-bar {
            width: 100%;
            height: 10px;
            background: #e0e0e0;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .skill-progress {
            height: 100%;
            background: var(--accent-gradient);
            border-radius: 10px;
            transition: width 2s ease;
            width: 0;
        }
        
        /* Services */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }
        
        .service-card {
            background: white;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }
        
        .service-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }
        
        .service-card h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--dark-color);
        }
        
        .service-card p {
            color: #666;
            line-height: 1.6;
        }
        
        /* Contact */
        .contact-form {
            max-width: 600px;
            margin: 0 auto;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--dark-color);
        }
        
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid #e0e0e0;
            border-radius: 5px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
            font-family: inherit;
        }
        
        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        
        .form-group textarea {
            resize: vertical;
            min-height: 150px;
        }
        
        .submit-btn {
            display: block;
            width: 100%;
            padding: 1rem 2rem;
            background: var(--accent-gradient);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            text-align: center;
            justify-content: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        /* Footer */
        footer {
            background: var(--dark-color);
            color: white;
            padding: 3rem 5%;
            text-align: center;
        }
        
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center; /* Center links on desktop */
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .footer-content p {
            margin: 0;
            width: 100%; /* ensure copyright is on its own line */
            text-align: center;
            order: 2;
            margin-top: 0.5rem;
        }

        /* Keep layout consistent on small screens */
        @media (max-width: 768px) {
            .footer-content p {
                width: 100%;
            }
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 0; /* spacing handled by copyright margin */
            flex-wrap: wrap;
            width: 100%; /* force links to occupy full row */
            order: 1;
        }
        
        .footer-links a {
            color: white;
            text-decoration: none;
            transition: color 0.3s ease;
            white-space: nowrap;
        }
        
        .footer-links a:hover {
            color: var(--primary-color);
        }
        
        /* Responsive footer */
        @media (max-width: 768px) {
            footer {
                padding: 2rem 4%;
            }
            .footer-content {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }
            .footer-links {
                justify-content: center;
                gap: 1rem;
                margin-bottom: 1rem;
            }
            .footer-links a {
                font-size: 0.95rem;
            }
        }
        
        @media (max-width: 420px) {
            footer {
                padding: 1.5rem 3%;
            }
            .footer-links {
                gap: 0.75rem;
            }
            .footer-links a {
                font-size: 0.9rem;
            }
        }

        /* Tablet (iPad) specific: center footer content for widths between 769px and 1024px */
        @media (min-width: 769px) and (max-width: 1024px) {
            .footer-content {
                justify-content: center;
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 1rem;
            }
            .footer-links {
                margin-bottom: 1rem;
                gap: 1rem;
            }
            footer {
                padding: 2.5rem 4%;
            }
        }
        
        /* アニメーション */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes float {
            0% {
                transform: translateY(100vh) translateX(0);
            }
            100% {
                transform: translateY(-100vh) translateX(100px);
            }
        }
        
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }


    /* Splide */
        .Splide {
            width: min(100%, 1100px);
            margin: 50px auto;
            border-radius: 0;
            /* border: #667eea 1px solid; */
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            }
            
            /* Keep slider images rounded */
            .splide img {
                width: 100%;
                aspect-ratio: 16 / 9;
                object-fit: cover;
                border-radius: 10px;
                display: block;
            }
      

        
        /* レスポンシブ */
        @media (max-width: 768px) {
            /* Mobile nav: hidden by default, visible with .open (animated) */
            .nav-links {
                display: flex;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: rgba(255, 255, 255, 0.98);
                flex-direction: column;
                padding: 2rem;
                gap: 1rem;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
                opacity: 0;
                visibility: hidden;
                transform: translateY(-10px);
                pointer-events: none;
                transition: opacity 0.36s ease, transform 0.36s ease, visibility 0.36s;
                z-index: 999;
            }
            .nav-links.open {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
                pointer-events: auto;
            }

            /* Staggered link animation */
            .nav-links li {
                opacity: 0;
                transform: translateY(9px);
                transition: opacity 0.36s ease, transform 0.36s ease;
            }
            .nav-links.open li:nth-child(1) { transition-delay: 0.05s; opacity:1; transform: translateY(0); }
            .nav-links.open li:nth-child(2) { transition-delay: 0.10s; opacity:1; transform: translateY(0); }
            .nav-links.open li:nth-child(3) { transition-delay: 0.15s; opacity:1; transform: translateY(0); }
            .nav-links.open li:nth-child(4) { transition-delay: 0.20s; opacity:1; transform: translateY(0); }
            .nav-links.open li:nth-child(5) { transition-delay: 0.25s; opacity:1; transform: translateY(0); }
            .nav-links.open li:nth-child(6) { transition-delay: 0.30s; opacity:1; transform: translateY(0); }
            .nav-links.open li:nth-child(7) { transition-delay: 0.35s; opacity:1; transform: translateY(0); }

            .hamburger {
                display: flex;
            }
            .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
            .hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
            .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

            .hero h1 { 
                font-size: 2.5rem;
            }
            
            .hero .subtitle {
                font-size: 1.2rem;
            }
            
            .about-container {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .profile-img {
                width: 250px;
                height: 250px;
            }
            
            .social-links {
                justify-content: center;
            }
            
            section {
                padding: 3rem 5%;
            }
            #Splide{
                width:90%;
            }
        }

        /* Nav overlay for mobile */
        .nav-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.36s ease, visibility 0.36s ease;
            z-index: 998; /* under the mobile menu (999) */
        }
        .nav-overlay.show {
            opacity: 1;
            visibility: visible;
        }
