@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;700&family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* --- 変数定義 --- */
:root {
    --primary-color: #2a0845;
    --primary-light: #6441a5;
    --accent-color: #ff007f;
    --gold-color: #d4af37;
    --gold-light: #f3e5ab;
    --bg-dark: #0b0314;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-gray: #bfaecf;
    
    --font-serif: 'Playfair Display', 'Noto Serif JP', serif;
    --font-sans: 'Outfit', 'Noto Sans JP', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- リセット & 基本設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- 背景のグラデーション光 --- */
body::before, body::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

body::before {
    top: 10%;
    left: -10%;
    background: radial-gradient(circle, var(--primary-light), transparent 70%);
}

body::after {
    bottom: 20%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
}

/* --- スクロールバー --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-color);
}

/* --- パーティクルキャンバス --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- 共通スタイル（ユーティリティ） --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-white);
    letter-spacing: 0.1em;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    margin: 1rem auto 0;
}

.section-title span {
    display: block;
    font-size: 1rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-color);
    margin-top: 0.5rem;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- ヒーローセクション --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(rgba(11, 3, 20, 0.7), rgba(11, 3, 20, 0.9)), url('images/hero_bg.png') no-repeat center center;
    background-size: cover;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(transparent, var(--bg-dark));
    pointer-events: none;
}

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

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--gold-color);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(100, 65, 165, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-title span {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--gold-color) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--gold-color), var(--gold-light));
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 1.2s;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    filter: brightness(1.1);
}

/* --- プロフィールセクション --- */
.profile-section {
    padding: 8rem 0 6rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    align-items: center;
}

.profile-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, var(--gold-color), var(--accent-color));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    border: 1px dashed var(--gold-color);
    animation: spin 30s linear infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--bg-dark);
}

.profile-info h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.profile-nickname {
    color: var(--gold-color);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.profile-bio {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    padding: 1.2rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold-color);
    transform: translateY(-2px);
}

.detail-label {
    font-size: 0.85rem;
    color: var(--gold-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- 活動内容（アピール）セクション --- */
.activities-section {
    padding: 6rem 0;
    position: relative;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.activity-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-color);
    box-shadow: 0 10px 30px rgba(100, 65, 165, 0.3);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--gold-color), var(--accent-color));
}

.activity-icon {
    font-size: 2.5rem;
    color: var(--gold-color);
    margin-bottom: 1.5rem;
}

.activity-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.activity-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* --- 舞台出演歴タイムライン --- */
.timeline-section {
    padding: 6rem 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold-color) 10%, var(--gold-color) 90%, transparent);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-badge {
    position: absolute;
    top: 2.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold-color);
    box-shadow: 0 0 10px var(--gold-color);
    border: 3px solid var(--bg-dark);
    z-index: 5;
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -8px;
}

.timeline-year {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    padding: 1.5rem;
    border-radius: 16px;
    display: inline-block;
    max-width: 100%;
    text-align: left;
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-content:hover {
    border-color: var(--gold-color);
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

.timeline-content h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- タロット占いセクション --- */
.tarot-section {
    padding: 6rem 0;
    position: relative;
}

.tarot-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
}

.tarot-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.tarot-card-wrapper {
    perspective: 1000px;
    width: 180px;
    height: 300px;
    cursor: pointer;
}

.tarot-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-radius: 12px;
}

.tarot-card-wrapper:hover .tarot-card {
    transform: translateY(-10px) rotateY(10deg);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
}

.tarot-card.flipped {
    transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    border: 3px solid var(--gold-color);
    overflow: hidden;
}

.tarot-card-back {
    background: url('images/tarot_back.png') no-repeat center center;
    background-size: cover;
}

.tarot-card-front {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #1b0c3a, #0b0314);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.tarot-symbol {
    font-size: 3.5rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.tarot-card-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--gold-light);
    letter-spacing: 0.1em;
}

/* 占い結果表示エリア */
.fortune-result-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.fortune-result-box.active {
    opacity: 1;
    transform: translateY(0);
}

.fortune-card-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.fortune-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-white);
}

/* --- フッター --- */
footer {
    background-color: #06020c;
    border-top: 1px solid var(--border-card);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-white);
}

.footer-logo span {
    color: var(--gold-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold-color);
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--gold-color);
}

.footer-link:hover::after {
    width: 100%;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* --- アニメーションキーフレーム --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* --- メディアクエリ（レスポンシブ） --- */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .profile-image-container {
        margin-bottom: 1rem;
    }
    .profile-details {
        max-width: 500px;
        margin: 0 auto;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 3.5rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    .timeline-item:nth-child(odd) {
        left: 0;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-badge {
        left: 12px !important;
    }
    .timeline-content {
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .profile-details {
        grid-template-columns: 1fr;
    }
    .tarot-container {
        gap: 1.5rem;
    }
    .tarot-card-wrapper {
        width: 140px;
        height: 233px;
    }
    .tarot-symbol {
        font-size: 2.5rem;
    }
}

/* --- SNS (X / Twitter) セクションのスタイル --- */
.social-links {
    margin-top: 1rem;
}

.x-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.x-link:hover {
    background-color: var(--text-white);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.sns-section {
    padding: 6rem 0;
}

.sns-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.sns-timeline-wrapper {
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid var(--border-card);
    background: rgba(0, 0, 0, 0.3);
}

/* 埋め込みウィジェットのスクロールバー微調整 */
.sns-timeline-wrapper::-webkit-scrollbar {
    width: 6px;
}
.sns-timeline-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.sns-info h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.sns-info p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.x-follow-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--text-white);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.x-follow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    background: var(--gold-color);
    color: var(--bg-dark);
}

.x-follow-btn .x-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-right: 10px;
}

@media (max-width: 992px) {
    .sns-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .x-follow-btn {
        margin: 0 auto;
    }
}
