@charset "UTF-8";

:root {
    --bg-dark: #050a14;
    --bg-light: #0f1c30;
    --accent-gold: #d4af37;
    --text-white: #f0f0f0;
    --panel-bg: rgba(20, 25, 35, 0.9);
    --input-bg: rgba(255, 255, 255, 0.05);
    --font-main: 'Shippori Mincho', 'Noto Serif JP', serif;
    --transition-speed: 0.5s;
}

* {
    box-sizing: border-box;
    /* モバイルでのタップハイライトを消す */
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: var(--text-white);
    min-height: 100vh;
}

/* 共通ヘッダー (Events, Theater, Lifelog用) */
.common-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(5, 10, 20, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px; 
}

/* ページタイトル (絶対配置で中央寄せ) */
.page-title {
    color: #ffffff;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.15em;
    font-size: 1.8rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.page-title span {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-family: 'Shippori Mincho', serif;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 400;
}

/* 共通: 戻るボタン */
.header-back-btn {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    padding: 8px 18px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.header-back-btn::before {
    content: '≪';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.header-back-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transform: translateX(-3px);
    color: #fff;
}

.header-back-btn:hover::before {
    transform: translateX(-4px);
}

/* ハンバーガーメニュー & ナビゲーション */
.menu-container { position: fixed; top: 0; right: 0; z-index: 200; }
.menu-toggle {
    position: absolute; top: 2rem; right: 2rem;
    width: 50px; height: 50px;
    background: transparent; border: none; cursor: pointer;
    z-index: 201; display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 8px;
    pointer-events: auto;
}
.line {
    width: 30px; height: 2px; background-color: var(--accent-gold);
    transition: all var(--transition-speed) cubic-bezier(0.19, 1, 0.22, 1);
}
.menu-toggle.active .line:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle.active .line:nth-child(2) { opacity: 0; }
.menu-toggle.active .line:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 10, 20, 0.95); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all var(--transition-speed) ease;
    z-index: 190;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-list { list-style: none; text-align: center; padding: 0; }
.nav-list li { margin: 2rem 0; transform: translateY(20px); opacity: 0; transition: transform 0.6s ease, opacity 0.6s ease; }
.nav-overlay.open .nav-list li { transform: translateY(0); opacity: 1; }
.nav-overlay.open .nav-list li:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.open .nav-list li:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay.open .nav-list li:nth-child(3) { transition-delay: 0.3s; }
.nav-overlay.open .nav-list li:nth-child(4) { transition-delay: 0.4s; }
.nav-overlay.open .nav-list li:nth-child(5) { transition-delay: 0.5s; }

.nav-link {
    text-decoration: none; color: var(--text-white);
    font-size: 1.5rem; letter-spacing: 0.1em;
    display: flex; flex-direction: column; align-items: center;
    transition: color 0.3s;
}
.nav-link span {
    font-size: 0.8rem; color: var(--accent-gold);
    margin-top: 0.5rem; letter-spacing: 0.05em; opacity: 0.7;
}
.nav-link:hover { color: var(--accent-gold); }

/* Mobile Adjustments */
@media (max-width: 900px) {
    .common-header { height: 60px; padding: 0 1rem; }
    .header-back-btn {
        font-size: 0; padding: 0; width: 40px; height: 40px;
        border-radius: 50%; justify-content: center;
        background: rgba(255, 255, 255, 0.1);
    }
    .header-back-btn::before { font-size: 1.2rem; margin-right: 0; transform: translateX(-1px); }
    
    .page-title {
        font-size: 1.5rem; /* スマホ版: 1.3rem -> 1.5rem に拡大 */
        width: auto;
    }
    .page-title span { 
        font-size: 0.85rem; /* スマホ版: 0.7rem -> 0.85rem に拡大 */
        margin-top: 2px; 
    }
    .menu-toggle { top: 5px; right: 10px; transform: scale(0.8); }
}

.mobile-only { display: none !important; }
.pc-only { display: block; }
@media (max-width: 900px) {
    .mobile-only { display: block !important; }
    .mobile-only.flex { display: flex !important; }
    .pc-only { display: none !important; }
}