/* ========================================
   Starlight Creators - Style Sheet
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Bright Pastel Theme */
    --color-base: #FFF9FB;
    --color-white: #FFFFFF;
    --color-text: #4A4458;
    --color-text-light: #78716C;
    --color-border: #F3E8FF;

    /* Primary - Pink */
    --color-primary: #FF6B9D;
    --color-primary-light: #FFB3CE;
    --color-primary-dark: #E91E63;

    /* Secondary - Sky Blue */
    --color-secondary: #7DD3FC;
    --color-secondary-light: #BAE6FD;
    --color-secondary-dark: #0EA5E9;

    /* Accent Colors */
    --color-accent: #FBBF24;
    --color-purple: #C084FC;
    --color-green: #86EFAC;
    --color-orange: #FDBA74;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #FFF0F5 0%, #E0F2FE 50%, #FAF5FF 100%);
    --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #C084FC 100%);
    --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #FFF5F8 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(74, 68, 88, 0.08);
    --shadow-md: 0 4px 12px rgba(74, 68, 88, 0.1);
    --shadow-lg: 0 8px 24px rgba(74, 68, 88, 0.12);
    --shadow-xl: 0 16px 48px rgba(74, 68, 88, 0.15);

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

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s 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: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

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

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

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

.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, 255, 255, 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: 12px 20px;
}

.logo img {
    height: 40px;
}

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

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

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-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;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 80px;
}

/* ヒーロー背景画像 */
.hero::before {
    content: '';
    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::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 240, 245, 0.7) 0%,
        rgba(224, 242, 254, 0.6) 50%,
        rgba(250, 245, 255, 0.7) 100%
    );
    z-index: 1;
}

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

.hero-subtitle {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease;
}

.hero-main {
    display: block;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 2px 20px rgba(255, 107, 157, 0.3);
}

.hero-text {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Stars decoration */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.star {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-primary-light);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 2s ease-in-out infinite;
}

.star-1 { top: 20%; left: 15%; animation-delay: 0s; }
.star-2 { top: 30%; right: 20%; animation-delay: 0.5s; }
.star-3 { bottom: 25%; left: 25%; animation-delay: 1s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.talents-slider-wrapper {
    position: relative;
    padding: 0 60px;
}

.talents-slider {
    overflow: hidden;
}

.talents-track {
    display: flex;
    gap: 24px;
    transition: transform var(--transition-slow);
}

.talent-card {
    flex: 0 0 280px;
    background: var(--gradient-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.talent-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.talent-card[data-color="pink"] { border-top: 4px solid var(--color-primary); }
.talent-card[data-color="blue"] { border-top: 4px solid var(--color-secondary); }
.talent-card[data-color="green"] { border-top: 4px solid var(--color-green); }
.talent-card[data-color="purple"] { border-top: 4px solid var(--color-purple); }
.talent-card[data-color="orange"] { border-top: 4px solid var(--color-orange); }

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

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

.talent-info {
    padding: 20px;
}

.talent-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.talent-role {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.talent-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

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

.talent-sns a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

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

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

.sns-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

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

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    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: 24px;
    height: 24px;
}

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

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

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.news-item:hover {
    box-shadow: var(--shadow-md);
}

.news-link {
    display: block;
    padding: 24px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

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

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

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

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

.news-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

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

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

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

.works-item {
    background: var(--color-white);
    border-radius: 16px;
    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 {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-border);
}

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

.works-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.works-item:hover .works-play {
    opacity: 1;
}

.works-play svg {
    width: 48px;
    height: 48px;
    color: white;
}

.works-info {
    padding: 16px;
}

.works-category {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.works-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 8px 0;
}

.works-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--gradient-hero);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
}

.about-desc {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-slogan {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin-top: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-slogan span {
    display: block;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
}

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

.partners-desc {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text-light);
}

.partners-desc a {
    color: var(--color-primary);
    text-decoration: underline;
}

.partners-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.partner-item {
    width: 180px;
    height: 80px;
    background: var(--color-base);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.partner-item:hover {
    background: var(--color-border);
}

.partner-logo {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
}

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

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.required {
    font-size: 0.8rem;
    color: var(--color-primary);
    margin-left: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-privacy {
    margin-bottom: 24px;
}

.form-privacy details {
    background: var(--color-white);
    border-radius: 8px;
    margin-bottom: 16px;
}

.form-privacy summary {
    padding: 16px;
    cursor: pointer;
    font-weight: 500;
}

.privacy-content {
    padding: 0 16px 16px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.btn-submit {
    width: 100%;
}

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

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-nav ul {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-sns {
    display: flex;
    gap: 16px;
}

.footer-sns a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.footer-sns a:hover {
    background: var(--color-primary);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

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

.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;
}

.back-to-top {
    position: absolute;
    right: 20px;
    bottom: 100px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

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

    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .slider-btn {
        display: none;
    }

    .talent-card {
        flex: 0 0 240px;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

    .talent-card {
        flex: 0 0 200px;
    }

    .partners-list {
        gap: 12px;
    }

    .partner-item {
        width: 140px;
        height: 60px;
    }
}
