@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&family=Kiwi+Maru:wght@500&display=swap');

:root {
    /* Colors */
    --primary-color: #AED581;
    /* Pastel Green */
    --secondary-color: #E0F7FA;
    /* Pastel Blue */
    --accent-color: #FFF9C4;
    /* Pastel Yellow */
    --highlight-color: #FFD700;
    /* Gold */
    --text-color: #5D4037;
    /* Dark Brown (Softer than black) */
    --text-light: #556B2F;
    /* Dark Olive Green */
    --bg-color: #FFFFFF;
    --bg-alt: #FFFBF0;
    /* Warm White */

    /* Fonts */
    --font-main: 'M PLUS Rounded 1c', sans-serif;
    --font-serif: 'Kiwi Maru', serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(93, 64, 55, 0.05);
    --shadow-md: 0 4px 8px rgba(93, 64, 55, 0.1);
    --shadow-lg: 0 8px 16px rgba(93, 64, 55, 0.15);
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md) 0;
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: var(--spacing-sm) 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

header nav ul {
    display: flex;
    gap: var(--spacing-lg);
}

header nav a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: var(--radius-full);
}

header nav a:hover {
    color: var(--primary-color);
}

header nav a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Pastel Yellow to Pastel Green Gradient with Header Image Overlay */
    background:
        /* Fade Overlay: Transparent to Base Color */
        linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 249, 196, 0.6) 60%, #DCEDC8 100%),
        /* Header Image: Repeat horizontally */
        url('../images/素材/ヘッダー.jpg') repeat-x top left,
        /* Base Gradient */
        linear-gradient(135deg, #FFF9C4 0%, #DCEDC8 100%);

    /* 
       Image Size: auto 100% ensures height fits container (100vh), allowing width to repeat.
       Overlay/Base: cover/100% 100% to fill.
    */
    background-size: 100% 100%, auto 100%, 100% 100%;
    background-blend-mode: normal;

    /* Animation: Slow horizontal scroll */
    animation: hero-scroll 120s linear infinite;

    text-align: center;
    padding-top: 80px;
    /* Header height */
    position: relative;
    overflow: hidden;
}

@keyframes hero-scroll {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        /* Move the middle layer (image) */
        background-position: 0 0, -3000px 0, 0 0;
    }
}

#hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    /* Pastel Yellow Accent */
    background: radial-gradient(circle, rgba(255, 249, 196, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    /* Pastel Green Accent */
    background: radial-gradient(circle, rgba(220, 237, 200, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--spacing-lg);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    /* Strong white outline */
    text-shadow:
        2px 2px 0 #fff, -2px -2px 0 #fff,
        2px -2px 0 #fff, -2px 2px 0 #fff,
        2px 0px 0 #fff, -2px 0px 0 #fff,
        0px 2px 0 #fff, 0px -2px 0 #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    /* Lighter white outline for subtitle/profile text if used */
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
    font-weight: 700;
    /* Bold to make it pop more */
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: #ffc1d0;
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    position: relative;
    /* display: block; default */
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: var(--spacing-sm) auto 0;
    border-radius: var(--radius-full);
}

/* Works Section */
#works {
    background-color: var(--bg-color);
}

#work-filter {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

#work-filter ul {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    background: var(--bg-alt);
    padding: var(--spacing-sm);
    border-radius: var(--radius-full);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

#work-filter button {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

#work-filter button:hover {
    color: var(--primary-color);
}

#work-filter button.active {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

#work-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 800px;
    /* Optional: limit width for better aesthetics in single column */
    margin: 0 auto;
    /* Center the list if max-width is applied */
}

.work-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.work-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
}

.work-item:hover img {
    transform: scale(1.05);
}

/* Load More Button */
#load-more-container {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.btn-secondary {
    background-color: var(--bg-alt);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* About Section */
#about {
    background-color: var(--bg-alt);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-lg);
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    /* Lighter white outline */
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
    font-weight: 700;
}

/* Contact Section (and new sections) */
#contact,
#contact-info,
#requests,
#sns {
    background-color: var(--bg-color);
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 16px 32px;
    background-color: #fff;
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
}

.contact-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: #fff;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    header nav ul {
        display: none;
        /* Mobile menu to be implemented if needed, for now simple hide or stack */
    }

    #hero {
        /* Keep animation consistency on mobile */
        background-size: 100% 100%, auto 100%, 100% 100%;
    }

    #work-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--spacing-md);
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}