/* ===================================
   星野ミライ - イラストレーターポートフォリオ
   明るい紫×黄色テーマ
   =================================== */

:root {
    /* カラーパレット */
    --primary: #a855f7;
    --primary-light: #c084fc;
    --primary-dark: #7e22ce;
    --secondary: #facc15;
    --secondary-light: #fde047;
    --accent: #ec4899;
    --accent-light: #f9a8d4;

    /* 背景色 */
    --bg-white: #ffffff;
    --bg-light: #faf5ff;
    --bg-purple: #f3e8ff;
    --bg-gradient: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 50%, #fef9c3 100%);
    --bg-card: rgba(168, 85, 247, 0.08);
    --bg-card-hover: rgba(168, 85, 247, 0.15);

    /* テキスト */
    --text-dark: #4c1d95;
    --text-main: #6b21a8;
    --text-muted: #6b7280;
    --text-purple: #7c3aed;
    --text-yellow: #ca8a04;

    /* その他 */
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
    --shadow-lg: 0 8px 40px rgba(168, 85, 247, 0.2);
    --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);
    padding: 12px 30px;
}

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

.header-sns {
    display: flex;
    gap: 15px;
}

.header-sns-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-main);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.header-sns-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

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

/* ===================================
   セクション共通
   =================================== */
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.2em;
    color: var(--secondary);
    margin-bottom: 5px;
}

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

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
}

.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="%23a855f7" opacity="0.1">★</text></svg>');
    background-size: 60px 60px;
    animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

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

.hero-label {
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.hero-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: var(--text-purple);
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.hero-slides {
    position: relative;
    flex: 1;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
}

.slider-btn {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

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

.slider-autoplay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}

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

/* ===================================
   お知らせセクション
   =================================== */
.information {
    background: var(--bg-white);
}

.information-list {
    max-width: 700px;
    margin: 0 auto;
}

.information-item {
    display: flex;
    gap: 25px;
    padding: 18px 0;
    border-bottom: 1px dashed rgba(168, 85, 247, 0.2);
}

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

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

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

.profile-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

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

.profile-image img {
    max-width: 250px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.profile-info {
    padding: 10px 0;
}

.profile-name {
    margin-bottom: 10px;
}

.name-ja {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-purple);
    margin-bottom: 3px;
}

.name-reading {
    font-size: 14px;
    color: var(--accent);
}

.profile-job {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
}

.profile-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.detail-row .label {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

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

.profile-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 25px;
}

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

.sns-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: white;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-main);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sns-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.career {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.career-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary);
}

.career-title {
    font-size: 18px;
    font-weight: 600;
}

.career-list li {
    font-size: 14px;
    color: var(--text-dark);
    padding: 8px 0;
    padding-left: 10px;
    border-left: 2px solid var(--primary-light);
    margin-bottom: 5px;
}

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

.gallery-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-slides {
    position: relative;
    flex: 1;
    min-height: 400px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-purple);
}

.gallery-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.gallery-slide img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.gallery-caption {
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-purple) 0%, white 100%);
}

.caption-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.caption-header .year {
    font-size: 12px;
    color: white;
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.caption-header .title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-purple);
}

.gallery-caption .description {
    font-size: 13px;
    color: var(--text-dark);
}

.gallery-slider .slider-autoplay {
    position: absolute;
    bottom: auto;
    right: auto;
    top: 15px;
    right: 15px;
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.gallery-thumbnails img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.gallery-thumbnails img:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.gallery-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.gallery-toggle .toggle-text-alt {
    display: none;
}

.gallery-toggle.active .toggle-text {
    display: none;
}

.gallery-toggle.active .toggle-text-alt {
    display: inline;
}

/* ===================================
   ワークスセクション
   =================================== */
.works {
    background: var(--bg-gradient);
}

.works-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.works-year {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.year-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 10px 25px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 25px;
}

.works-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.works-item {
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(168, 85, 247, 0.2);
}

.works-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.works-item .client {
    display: block;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.works-item .work-title {
    font-size: 14px;
    color: var(--text-dark);
}

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

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

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

.contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    background: var(--bg-purple);
    border-radius: var(--radius);
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
}

.privacy-toggle {
    text-align: left;
    margin-bottom: 40px;
}

.privacy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

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

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

.privacy-content {
    display: none;
    margin-top: 15px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-muted);
    text-align: left;
    line-height: 1.8;
}

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

.privacy-content p {
    margin-bottom: 15px;
}

.contact-requirements {
    text-align: left;
    padding: 25px;
    background: linear-gradient(135deg, var(--bg-purple) 0%, #fef9c3 100%);
    border-radius: var(--radius-lg);
}

.requirements-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-purple);
    margin-bottom: 8px;
}

.requirements-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.requirements-list li {
    padding: 6px 0;
}

/* ===================================
   トップに戻るボタン
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 30px;
    color: white;
    font-size: 10px;
    font-weight: 600;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

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

/* ===================================
   フッター
   =================================== */
.footer {
    background: linear-gradient(180deg, var(--bg-purple) 0%, var(--primary-light) 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 {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

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

.footer-pagetop {
    display: inline-flex;
    padding: 15px;
    background: white;
    border-radius: 50%;
    color: var(--primary);
    margin-bottom: 25px;
    transition: var(--transition);
}

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

.copyright {
    font-size: 12px;
    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) {
    .profile-content {
        grid-template-columns: 200px 1fr;
        gap: 30px;
    }

    .works-content {
        gap: 30px;
    }
}

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

    .header-sns {
        gap: 8px;
    }

    .header-sns-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .template-credit {
        display: none;
    }

    section {
        padding: 60px 0;
    }

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

    .hero {
        padding: 80px 15px 40px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

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

    .profile-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .profile-image img {
        max-width: 200px;
    }

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

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

    .gallery-thumbnails img {
        width: 80px;
        height: 55px;
    }
}

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

    .name-ja {
        font-size: 24px;
    }

    .career {
        padding: 20px;
    }

    .contact-requirements {
        padding: 20px;
    }
}
