:root {
    --bg-color: #05000a;
    --primary-color: #b052ff;
    --primary-glow: rgba(176, 82, 255, 0.6);
    --secondary-color: #ff52b0;
    --text-main: #f0f0f5;
    --text-muted: #a09eb5;
    --glass-bg: rgba(20, 10, 35, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', 'Noto Serif JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow: hidden; /* Hide main scrollbar, handle in scroll-container */
    line-height: 1.6;
}

/* 催眠背景アニメーション */
.hypno-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* スパイラル背景はロゴ画像に置き換えたため削除 */

.logo-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* ユーザーに用意していただいた画像を背景に設定 */
    background-image: url('bg-logo.png');
    background-size: 50%; /* coverから50%に変更してロゴを小さく表示 */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35; /* 視認性を高めるため明るさをさらに下げる */
    transition: transform 0.2s ease-out; /* スクロール時のパララックス用 */
}

.hypno-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 80%);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* スクロールスナップコンテナ */
.scroll-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* セクション共通設定 */
.snap-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.content-wrapper {
    max-width: 800px;
    width: 100%;
    position: relative;
}

/* --- Typography & Custom Logo --- */
.custom-logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    height: 180px; /* ロゴエリアの高さ */
}

.logo-bg {
    font-family: var(--font-heading);
    font-size: 8.5rem;
    font-weight: 700;
    color: rgba(176, 82, 255, 0.15); /* 背景のうっすらとした紫 */
    transform: rotate(-8deg) skewX(-10deg);
    line-height: 1;
    letter-spacing: 0.15em;
    user-select: none;
    text-shadow: 0 0 25px rgba(176, 82, 255, 0.2);
    position: absolute;
    white-space: nowrap;
}

.logo-fg {
    font-family: var(--font-body);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    background: linear-gradient(135deg, #fff, #e0c2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(176, 82, 255, 0.4);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0.8;
}

/* 縦書きテキスト */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    line-height: 2;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 82, 176, 0.6);
    margin: 0 auto;
    height: 50vh;
    display: flex;
    align-items: center;
}

/* Concept Details */
.concept-details {
    text-align: center;
    margin-top: 3rem;
}

.theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(176, 82, 255, 0.1);
    border: 1px solid rgba(176, 82, 255, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(176, 82, 255, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 176, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 82, 176, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 176, 0); }
}

.theme-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffd1eb;
    letter-spacing: 0.05em;
}

.description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 2;
    font-weight: 300;
}

/* グラスパネル (セクション用) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    max-width: 800px; /* ★ここを変更しました (元は600px) */
    width: 100%;
    box-shadow: var(--glass-shadow);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 8s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.section-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(176, 82, 255, 0.6));
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.identity-text {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.8;
}

.identity-text strong {
    color: #fff;
    font-size: 1.3rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

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

@keyframes scrollMouse {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.02);
}

.icon {
    width: 24px;
    height: 24px;
}

.primary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(176, 82, 255, 0.5);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.primary-btn::before {
    background: linear-gradient(135deg, rgba(176, 82, 255, 0.4), rgba(255, 82, 176, 0.4));
}

.primary-btn:hover::before {
    opacity: 1;
}
.primary-btn:hover {
    box-shadow: 0 10px 30px rgba(176, 82, 255, 0.5);
    border-color: rgba(176, 82, 255, 1);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

.secondary-btn::before {
    background: rgba(255, 255, 255, 0.1);
}

.secondary-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.secondary-btn:hover::before {
    opacity: 1;
}

/* --- In-View Animations --- */

/* Initial states */
.fade-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-delayed {
    opacity: 0;
    transition: opacity 1s ease-out 0.5s;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Visible states added via JS */
.is-visible .fade-in,
.is-visible .fade-in-delayed,
.is-visible .slide-up,
.is-visible .slide-left,
.is-visible .slide-right {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .custom-logo { height: 100px; }
    .logo-bg { font-size: 5rem; }
    .logo-fg { font-size: 1.6rem; }
    .vertical-text { font-size: 1.8rem; }
    .glass-panel { padding: 2rem; margin: 1rem; }
    .section-heading { font-size: 1.5rem; }
    .identity-text { font-size: 1rem; }
    .footer-copyright { font-size: 0.7rem; bottom: 10px; }
}

/* Footer Copyright */
.footer-copyright {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
}
