/* ========================================
   PixelPalette - Style Sheet
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Bright Pastel Theme */
    --color-base: #FFFBF5;
    --color-white: #FFFFFF;
    --color-text: #3D3D3D;
    --color-text-light: #7A7A7A;
    --color-border: #F0E6D8;

    /* Primary - Coral Pink */
    --color-primary: #FF7B7B;
    --color-primary-light: #FFB5B5;
    --color-primary-dark: #E85D5D;

    /* Secondary - Mint */
    --color-secondary: #7BCEC8;
    --color-secondary-light: #B5E8E4;
    --color-secondary-dark: #5AB5AD;

    /* Accent Colors */
    --color-accent: #FFD93D;
    --color-purple: #C9A0DC;
    --color-blue: #89CFF0;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #FFF5F0 0%, #F0FFF4 50%, #FFF0F5 100%);
    --gradient-primary: linear-gradient(135deg, #FF7B7B 0%, #FFB5B5 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(61, 61, 61, 0.08);
    --shadow-md: 0 4px 16px rgba(61, 61, 61, 0.1);
    --shadow-lg: 0 8px 32px rgba(61, 61, 61, 0.12);

    /* Typography */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-display: 'Poppins', sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --container-width: 1100px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-base);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   Utility
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 4px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 40px;
    font-size: 0.9rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 16px 20px;
}

.logo img {
    height: 36px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-list a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* ヒーロー背景画像 */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* オーバーレイ */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 251, 245, 0.75) 0%,
        rgba(240, 255, 244, 0.65) 50%,
        rgba(255, 240, 245, 0.75) 100%
    );
    z-index: 1;
}

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

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(255, 123, 123, 0.3);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* ========================================
   Service Section
   ======================================== */
.service {
    background: var(--color-white);
}

.service-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.service-slider {
    overflow: hidden;
}

.service-track {
    display: flex;
    transition: transform var(--transition-base);
}

.service-card {
    flex: 0 0 100%;
    max-width: 400px;
    margin: 0 auto;
    background: var(--color-base);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-border);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info {
    padding: 24px;
    text-align: center;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-base);
}

.slider-btn:hover {
    background: var(--color-primary);
    color: white;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    transition: var(--transition-base);
}

.indicator.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* ========================================
   Works Section
   ======================================== */
.works {
    background: var(--color-base);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.works-item {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.works-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-border);
}

.works-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.works-tags {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.75rem;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 4px 10px;
    border-radius: 20px;
}

.works-more {
    text-align: center;
    margin-top: 32px;
}

/* ========================================
   Profile Section
   ======================================== */
.profile {
    background: var(--color-white);
}

.profile-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-image {
    flex: 0 0 200px;
}

.profile-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.profile-info {
    flex: 1;
}

.profile-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    background: var(--color-border);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-catch {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.profile-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.profile-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.profile-link {
    font-size: 0.85rem;
    color: var(--color-secondary-dark);
    transition: color var(--transition-fast);
}

.profile-link:hover {
    color: var(--color-primary);
}

.profile-sns {
    display: flex;
    gap: 12px;
}

.profile-sns a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.profile-sns svg {
    width: 18px;
    height: 18px;
}

.sns-x {
    background: #1DA1F2;
    color: white;
}

.sns-youtube {
    background: #FF0000;
    color: white;
}

.profile-sns a:hover {
    transform: scale(1.1);
}

.profile-email {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ========================================
   Member Section
   ======================================== */
.member {
    background: var(--color-base);
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.member-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.member-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-border);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 20px;
}

.member-role {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
    line-height: 1.5;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.member-sns {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.member-sns a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.member-sns svg {
    width: 14px;
    height: 14px;
}

.member-works {
    font-size: 0.8rem;
    color: var(--color-secondary-dark);
    transition: color var(--transition-fast);
    line-height: 1.4;
}

.member-works:hover {
    color: var(--color-primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 32px 0;
}

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

.footer-credit {
    margin-bottom: 12px;
}

.footer-credit a {
    color: var(--color-primary-light);
    font-size: 0.85rem;
}

.footer-credit a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .service-slider-wrapper {
        padding: 0;
    }

    .slider-btn {
        display: none;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-links {
        justify-content: center;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .works-grid,
    .member-grid {
        grid-template-columns: 1fr;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }
}
