/* ===================================
   夜空ルナ - VTuber Template
   明るいピンク×水色パステルテーマ
   =================================== */

:root {
    /* カラーパレット */
    --primary: #f472b6;
    --primary-light: #f9a8d4;
    --primary-dark: #ec4899;
    --secondary: #22d3ee;
    --secondary-light: #67e8f9;
    --accent: #a855f7;
    --accent-light: #c084fc;

    /* 背景色 */
    --bg-white: #ffffff;
    --bg-light: #fdf2f8;
    --bg-gradient: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #f0fdfa 100%);
    --bg-card: rgba(244, 114, 182, 0.08);
    --bg-card-hover: rgba(244, 114, 182, 0.15);

    /* テキスト */
    --text-dark: #831843;
    --text-main: #9d174d;
    --text-muted: #6b7280;
    --text-pink: #db2777;

    /* その他 */
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(244, 114, 182, 0.2);
    --shadow-lg: 0 8px 40px rgba(244, 114, 182, 0.25);
    --transition: all 0.3s ease;
}

/* リセット */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ===================================
   ヘッダー
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(244, 114, 182, 0.2);
    box-shadow: 0 2px 15px rgba(244, 114, 182, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

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

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

.template-credit {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

.template-credit:hover {
    opacity: 1;
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   セクション共通
   =================================== */
section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--secondary);
    margin-bottom: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-pink);
    letter-spacing: 0.1em;
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 30%, #67e8f9 70%, #cffafe 100%);
    padding-top: 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="55" text-anchor="middle" font-size="20" fill="%23ffffff" opacity="0.5">★</text></svg>');
    background-size: 80px 80px;
    animation: starFloat 20s linear infinite;
}

@keyframes starFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

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

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 0.3em;
    color: var(--text-main);
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 25px;
    border-radius: 30px;
    display: inline-block;
}

.hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    color: white;
    letter-spacing: 0.15em;
    text-shadow: 2px 2px 0 var(--primary), 4px 4px 0 var(--secondary);
    margin-bottom: 40px;
}

.hero-scroll {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--text-main);
    margin-bottom: 10px;
}

.hero-arrow {
    animation: bounce 2s infinite;
}

.hero-arrow svg {
    color: var(--primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hero-character {
    position: absolute;
    bottom: 0;
    right: 5%;
    height: 85%;
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
    filter: drop-shadow(0 0 30px rgba(244, 114, 182, 0.3));
}

.hero-character img {
    height: 100%;
    object-fit: contain;
}

/* ===================================
   ニュースセクション
   =================================== */
.news {
    background: var(--bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.news-list {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(244, 114, 182, 0.15);
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(244, 114, 182, 0.2);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
    min-width: 90px;
}

.news-text {
    font-size: 14px;
    color: var(--text-dark);
}

.sns-links {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
}

.sns-title {
    font-size: 16px;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.sns-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: var(--radius);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

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

.sns-btn.youtube:hover {
    background: #ff0000;
    color: white;
}

.sns-btn.x:hover {
    background: #000000;
    color: white;
}

.sns-btn.tiktok:hover {
    background: #000000;
    color: white;
}

/* ===================================
   動画セクション
   =================================== */
.video {
    background: var(--bg-gradient);
}

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

.video-embed {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 14px 35px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
}

.video-link:hover {
    background: var(--primary);
    color: white;
}

/* ===================================
   プロフィールセクション
   =================================== */
.about {
    background: var(--bg-white);
}

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

.about-name {
    margin-bottom: 25px;
}

.name-ja {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-pink);
    margin-bottom: 5px;
}

.name-en {
    font-size: 16px;
    color: var(--secondary);
    letter-spacing: 0.1em;
}

.about-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 2;
    margin-bottom: 30px;
}

.profile-list {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
}

.profile-list li {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(244, 114, 182, 0.1);
}

.profile-list li:last-child {
    border-bottom: none;
}

.profile-list .label {
    color: var(--secondary);
    font-size: 13px;
    min-width: 120px;
    font-weight: 600;
}

.profile-list .value {
    color: var(--text-dark);
    font-size: 14px;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-height: 500px;
    filter: drop-shadow(0 10px 30px rgba(244, 114, 182, 0.3));
}

/* ===================================
   ギャラリーセクション
   =================================== */
.gallery {
    background: var(--bg-gradient);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(34, 211, 238, 0.3));
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::before {
    opacity: 1;
}

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

.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

/* ===================================
   お問い合わせセクション
   =================================== */
.contact {
    background: var(--bg-white);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 2;
}

.contact-email {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 25px;
}

.contact-sns {
    margin-bottom: 40px;
}

.contact-sns .sns-btn {
    display: inline-flex;
    padding: 14px 40px;
}

.privacy-toggle {
    text-align: left;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 30px;
}

.privacy-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.privacy-btn svg {
    transition: transform 0.3s ease;
}

.privacy-btn.active svg {
    transform: rotate(180deg);
}

.privacy-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(244, 114, 182, 0.15);
    display: none;
    line-height: 1.8;
}

.privacy-text.active {
    display: block;
}

/* ===================================
   トップに戻るボタン
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow);
    z-index: 100;
    transition: var(--transition);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   フッター
   =================================== */
.footer {
    background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 50%, #67e8f9 100%);
    padding: 50px 0 30px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-nav a {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

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

.footer-sns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-sns a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--text-main);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.footer-sns a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.footer-credit {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

.footer-credit:hover {
    opacity: 1;
    color: var(--primary);
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .sns-links {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sns-title {
        margin-bottom: 0;
    }

    .sns-buttons {
        flex-direction: row;
    }

    .hero-character {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 12px 15px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .template-credit {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

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

    .about-image {
        order: -1;
    }

    .about-image img {
        max-height: 350px;
    }

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

    .footer-nav {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-character {
        display: none;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .gallery-list {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

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