/* CSS Variables */
:root {
    --dark-bg: #000000;
    --card-bg: rgba(0, 0, 0, 0.85);
    --card-bg-hover: rgba(0, 0, 0, 0.9);
    --light-text: #f8fafc;
    --dim-text: #94a3b8;
    --accent-color: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-cyan: #22d3ee;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-gold-dark: #d97706;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #000000;
    color: var(--light-text);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* コンテンツエリア全体の背景（すりガラス効果 - 動的に変化） */
.content-area {
    position: relative;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    z-index: 10;
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

/* 全体背景Canvas */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

/* 全体すりガラスオーバーレイ（スクロールで変化） */
.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    background: rgba(0, 0, 0, 0);
    z-index: 2;
    pointer-events: none;
    transition: backdrop-filter 0.1s ease-out, background 0.1s ease-out;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(5, 8, 15, 0.7) 0%, rgba(15, 25, 45, 0.65) 100%);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8),
                0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 1001;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: none;
    width: 150px;
}

.header-nav {
    display: flex;
    gap: 3rem;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

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

.header-social {
    display: flex;
    gap: 1rem;
}

.header-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.header-social a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    background: rgba(96, 165, 250, 0.1);
}

/* Hero Section */
.hero {
    height: 70vh;
    min-height: 550px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 1000px;
    padding: 0 2rem;
    position: relative;
}

.hero-title-jp {
    font-family: 'Cinzel', 'Cormorant Garamond', 'Noto Sans JP', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    line-height: 1.2;
    opacity: 0;
    text-shadow: 0 0 25px rgba(251, 191, 36, 0.8),
                 0 0 50px rgba(245, 158, 11, 0.6),
                 0 0 75px rgba(217, 119, 6, 0.4),
                 0 6px 40px rgba(0, 0, 0, 0.9);
}

.hero-title-jp .line-animation {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    /* JavaScriptで制御するため初期値を削除 */
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 15px var(--accent-color);
}

.hero-title-en {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.4em;
    margin-bottom: 1.5rem;
    color: rgba(147, 197, 253, 0.85);
    opacity: 0;
    transform: translateY(10px);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 2.5rem;
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    display: inline-block;
    opacity: 0;
}

/* Section Spacing */
section {
    padding: 8rem 2rem;
    position: relative;
    background: transparent;
    z-index: 10;
    isolation: isolate;
}

section#home {
    padding: 0;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.6),
                 0 0 40px rgba(96, 165, 250, 0.4),
                 0 0 60px rgba(96, 165, 250, 0.3),
                 0 4px 20px rgba(0, 0, 0, 0.8);
}

.section-title .title-sub {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(251, 191, 36, 0.7);
    margin-top: 0.5rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    font-family: 'Noto Sans JP', sans-serif;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.4),
                 0 2px 10px rgba(0, 0, 0, 0.6);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* Content Blocks */
.about-card, .profile-card, .service-card, .works-simple-container {
    background: var(--card-bg);
    border: 2px solid rgba(96, 165, 250, 0.5);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 
                0 10px 30px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(96, 165, 250, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    z-index: 1;
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* カード表示状態（グローからフェードイン完了） */
.about-card.visible, .profile-card.visible, .service-card.visible, .works-simple-container.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

/* ホバー時のボーダー光彩エフェクト */
.about-card:hover, .profile-card:hover, .service-card:hover, .works-simple-container:hover {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 
                0 10px 30px rgba(0, 0, 0, 0.7),
                0 0 50px rgba(255, 255, 255, 0.5),
                0 0 80px rgba(96, 165, 250, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.about-card, .profile-card {
    padding: 4.5rem;
    max-width: 950px;
    margin: 0 auto;
}

.about-description {
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    font-size: 1.1rem;
}

.about-description.last {
    margin-bottom: 0;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1150px;
    margin: 0 auto;
}

.service-card {
    padding: 3.5rem 2.5rem;
    text-align: center;
}

.service-icon {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.service-subtitle {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.service-description {
    font-size: 1rem;
    color: #94a3b8;
}

/* Works */
.works-simple-container {
    padding: 5rem 4rem;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    background: var(--card-bg);
    border: 2px solid rgba(96, 165, 250, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 
                0 10px 30px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(96, 165, 250, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.works-simple-list {
    font-size: 1.25rem;
    line-height: 2.6;
    color: #ffffff;
    margin-bottom: 2.5rem;
}

.works-note {
    font-size: 0.95rem;
    color: var(--dim-text);
    font-style: italic;
}

/* Profile */
.profile-name {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif JP', serif;
}

.profile-kana {
    display: block;
    font-size: 1rem;
    color: var(--dim-text);
    letter-spacing: 0.25em;
    margin-bottom: 1.2rem;
}

.profile-role {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
    display: inline-block;
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
    padding-bottom: 0.6rem;
}

.profile-bio {
    color: #cbd5e1;
    font-size: 1.1rem;
    text-align: justify;
}

.profile-bio p {
    margin-bottom: 2rem;
}

.profile-bio p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    padding: 6rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--dim-text);
}

/* Shop Section - Compact Version */
.shop-compact {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.shop-compact.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

.shop-compact-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.shop-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-cyan));
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
}

.shop-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(96, 165, 250, 0.5);
}

.shop-button i {
    margin-right: 0.5rem;
}

/* Contact Section - Compact Version */
.contact-compact {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-compact.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

.contact-compact-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-cyan));
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(96, 165, 250, 0.5);
}

.contact-button i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 9rem 1.5rem;
    }
    
    .hero {
        height: 60vh;
        min-height: 450px;
    }
    
    .header-nav {
        display: none;
    }
    
    .about-card, .profile-card {
        padding: 3rem 2rem;
    }
    
    .works-simple-container {
        padding: 3rem 2rem;
    }
    
    .shop-card, .contact-card {
        padding: 3rem 2rem;
    }
    
    .shop-title, .contact-title {
        font-size: 1.6rem;
    }
    
    .shop-description, .contact-description {
        font-size: 1rem;
    }
    
    .shop-button, .contact-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
