:root {
    --bg-main: #0a0a0c;
    --card-bg: rgba(18, 18, 22, 0.85); /* ニュースが見やすくなるよう少し濃く調整 */
    --border: rgba(255, 255, 255, 0.1);
    --accent: #facc15; 
    --text-main: #f3f4f6;
    --text-sub: #9ca3af;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', 'Zen Maru Gothic', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
}

.ambient-glow {
    position: fixed; top: -150px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, transparent 70%);
    z-index: -1; pointer-events: none;
}

/* 背景スライドショー */
.bg-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; }
.bg-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out, transform 8s ease-in-out;
    transform: scale(1);
}
.bg-slide.active { opacity: 1; transform: scale(1.05); }
.bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.75), rgba(10, 10, 12, 0.95));
    z-index: -1;
}

/* ヘッダー */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 15px 0;
    background: rgba(10, 10, 12, 0.8); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); z-index: 1000;
}
.header-inner {
    max-width: 1000px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo img { height: 40px; width: auto; display: block; }
.site-nav { display: flex; gap: 25px; }
.site-nav a { color: var(--text-sub); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.3s; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

/* メインコンテナ */
.main-container {
    max-width: 900px; margin: 0 auto; padding: 140px 20px 80px;
    opacity: 0; animation: contentFadeIn 0.3s ease-out forwards;
}
@keyframes contentFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }

.hero-section { text-align: center; padding: 60px 0 80px; }
.hero-logo-img {
    max-width: 500px; width: 100%; height: auto; margin-bottom: 25px;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
}
.hero-lead { color: var(--text-sub); font-size: 1.05rem; max-width: 600px; margin: 0 auto 35px; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn {
    padding: 12px 28px; border-radius: 30px; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; transition: all 0.3s; cursor: pointer; border: none; display: inline-block;
}
.btn-primary { background: var(--text-main); color: var(--bg-main); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-glass { background: var(--card-bg); color: var(--text-main); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.btn-glass:hover { border-color: var(--accent); transform: translateY(-2px); }

/* セクション共通 */
.content-section { margin-bottom: 90px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.section-header h2 { font-size: 1.6rem; font-weight: 800; }
.section-link { color: var(--text-sub); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.section-link:hover { color: var(--accent); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ニュースカード */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.news-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; text-decoration: none; color: var(--text-main);
    backdrop-filter: blur(10px); transition: all 0.3s; display: block;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.news-thumb { height: 160px; background-color: #1a1a20; background-size: cover; background-position: center; border-bottom: 1px solid var(--border); }
.news-content { padding: 20px; }
.news-date { font-size: 0.8rem; color: var(--accent); font-weight: bold; display: block; margin-bottom: 8px; }
.news-card h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }

/* ギャラリープレビュー (メイン用) */
.gallery-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gallery-preview-item { height: 140px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-preview-item:hover img { transform: scale(1.05); }

/* スタッフ一覧（横並び5つの縦長パネル） */
.staff-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-top: 30px; }
.staff-panel-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; text-decoration: none; color: var(--text-main); text-align: center;
    padding: 20px 10px; transition: all 0.3s; display: flex; flex-direction: column; align-items: center;
}
.staff-panel-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.staff-panel-img { height: 180px; width: auto; object-fit: contain; margin-bottom: 15px; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); }
@media(max-width: 900px) { .staff-grid-5 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }

/* ── 個人紹介ページのエモい演出アニメーション ── */
.profile-container { display: flex; align-items: center; gap: 50px; min-height: 60vh; }
.profile-tachi-e {
    width: 350px; height: auto; object-fit: contain;
    /* 最初は真ん中にいて、スッと左へ移動しながら現れる */
    animation: slideInFromCenter 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.7));
}
@keyframes slideInFromCenter {
    0% { transform: translateX(150px) scale(1.05); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}
.profile-info {
    opacity: 0; transform: translateX(30px);
    /* 立ち絵の動きに合わせて、少し遅れて右側へ文字がスッと出てくる */
    animation: textFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
@keyframes textFadeIn {
    0% { transform: translateX(30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@media(max-width: 768px) { .profile-container { flex-direction: column; text-align: center; } .profile-tachi-e { width: 220px; } }

/* 共通カード＆フッター */
.card-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 35px; backdrop-filter: blur(12px); text-align: center; }
.site-footer { text-align: center; padding: 40px 20px; border-top: 1px solid var(--border); color: var(--text-sub); font-size: 0.8rem; }