:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #cca43b;
    --card-bg: #1e1e1e;
    --border-color: #333;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(rgba( 0 ,0 ,0 ,0.3), rgba(0,0,0,0.3)), url('くりかす背景.png');
    background-size: cover;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* スムーズスクロールを有効化 */
html {
    scroll-behavior: smooth;
}

/* 画面シェイクアニメーション（イきり用） */
@keyframes ikiri-shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-5px, 5px) rotate(-1deg); }
    40% { transform: translate(5px, -5px) rotate(1deg); }
    60% { transform: translate(-5px, -5px) rotate(-1deg); }
    80% { transform: translate(5px, 5px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
.shake-active {
    animation: ikiri-shake 0.4s ease-in-out infinite;
}

/* ★ イきりトップへ戻るボタンのスタイル */
/* 最初から画面の下部中央にイきり残すスタイル */
.ikiri-btn {
    position: fixed;
    bottom: 30px; /* 最初から画面の下から30pxの胃腸肝臓じゃなくてじゃなくて肺肺肺！肺肺肺！肺肺肺肺肺肺肺*/
    left: 50%;                 /* 画面の左から50%の位置へ */
    transform: translateX(-50%) rotate(-3deg); /* 完全に中央配置しつつ、-3度傾ける */
    
    background: linear-gradient(135deg, #111 0%, #333 100%);
    color: #fff;
    border: 2px solid var(--accent-color);
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    z-index: 1000;
}

/* マウスを乗せたときにさらに浮き上がる演出（お好みで） */
.ikiri-btn:hover {
    background: linear-gradient(135deg, #222 0%, #444 100%);
    border-color: #fff;
    transform: translateX(-50%) rotate(-5deg) scale(1.05); /* 中央を保ったままさらに傾いて拡大 */
}
.ikiri-btn:hover {
    transform: scale(1.1) rotate(0deg) !important;
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px var(--accent-color);
}

.ikiri-btn .btn-sub {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-top: 2px;
    font-style: italic;
}
.ikiri-btn:hover .btn-sub {
    color: #222;
}

/* 特大カットインセリフ用のオーバーレイ */
.shout-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 3px 3px 0px #000, -3px -3px 0px #000, 0 0 50px rgba(204,164,59,0.8);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    font-style: italic;
}
.shout-active {
    animation: shout-flash 0.8s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}
@keyframes shout-flash {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(-10deg); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(5deg); }
    40% { transform: translate(-50%, -50%) scale(1.0) rotate(2deg); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5) rotate(15deg); }
}

/* 他の既存スタイル（省略） */
.tab-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 2rem; }
.tab-button { background: none; border: 1px solid var(--border-color); color: var(--text-color); padding: 0.75rem 1.5rem; cursor: pointer; }
.tab-button.active { background-color: var(--accent-color); color: #000; }
.tab-content { display: none; }
.tab-content.active { display: block; }
/* 縦並びに1つずつ独立させるコンテナ */
.card-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* ボックスとボックスの間の隙間 */
    margin-top: 1.5rem;
}

/* ★ 1つずつの独立したテキストボックスの定義 */
.card-box {
    background: linear-gradient(135deg, #f1eeee 0%, #f1eeee 100%); /* 高級感のある黒グラデ */
    border: 2px solid var(--accent-color); /* ゴールドのイきり枠線 */
    border-radius: 8px; /* 角を少し丸く */
    padding: 1.5rem; /* 内側の余白 */
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4); /* 立体感を出す影 */
    height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ボックスにマウスを乗せたときにニュッと浮き上がる演出 */
.card-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(179, 143, 45, 0.4); /* 金色の残光 */
}

/* ボックス内の各テキストスタイル */
.card-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(245, 245, 245, 0.2);
    padding-bottom: 0.5rem;
}

.role-text {
    color: #ffd700 !important; /* 配役はゴールドっぽく強調 */
    font-weight: bold;
    margin: 0.5rem 0;
    font-size: 1rem;
}

.desc-text {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}
/* ★ 現在の活動テキストボックスの定義 */
.current-activity-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%); /* 作品紹介と統一した黒グラデ */
    border: 2px solid var(--accent-color); /* ゴールドのイきり枠線 */
    border-radius: 8px; /* 角を少し丸く */
    padding: 2rem; /* 内側の余白を少し広めにとって見やすく */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* 立体感を出す影 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー時に浮き上がる演出 */
.current-activity-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(179, 143, 45, 0.4); /* 金色の残光 */
}

/* ボックス内の見出しスタイル */
.activity-title {

    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color); /* 見出しの下にもゴールドの線を配置 */
    padding-bottom: 0.5rem;
}

/* ボックス内の本文スタイル */
.activity-desc {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.8; /* 行間を広げて視認性アップ */
}
/* ★ プロフィール全体を囲むテキストボックス */
.profile-info-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%); /* 統一した重厚な黒グラデ */
    border: 2px solid var(--accent-color); /* ゴールドのイきり枠線 */
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    max-width: 500px; /* ボックスが広がりすぎないように横幅を制限 */
    margin: 0 auto 2rem auto; /* 中央寄せにして下の余白を確保 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー時にニュッと浮き上がる演出 */
.profile-info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(179, 143, 45, 0.4);
}

/* 各行のレイアウト */
.profile-item-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(245, 245, 245, 0.1);
}

/* 最後の行だけ下線を消す */
.profile-item-row:last-child {
    border-bottom: none;
}

/* 項目名（太字部分）の共通スタイル */
.profile-label {
    font-weight: bold;
    width: 120px; /* 各項目の縦ラインを揃えるための幅固定 */
    flex-shrink: 0;
}

/* 元のコードのカラーイメージを継承したイきり強調色 */
.label-aqua { color: aqua; }
.label-blue { color: #3b82f6; } /* 黒背景で見えやすい少し明るめの青 */
.label-orange { color: orange; }
.label-purple { color: #c084fc; } /* 黒背景で見えやすい明るめの紫 */
.label-pink { color: ff69b4; }

/* 右側の値（テキスト部分）の共通スタイル */
.profile-value {
    color: white !important;
    padding-left: 0.5rem;
}
/* 完全非表示クラス */
.hidden {
    display: none !important;
}

/* 動画エリア全体のスタイル */
.video-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #000;
    border: 3px solid #ff0000;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

/* 動画の上の赤文字 */
.shitsurei-text {
    color: #ff0000;
    font-size: 2rem;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 2px;
}

/* 0.2秒間隔の超激震アニメーション */
@keyframes video-ultra-shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-5px, 4px) rotate(-2deg); }
    20% { transform: translate(4px, -5px) rotate(3deg); }
    30% { transform: translate(-6px, -2px) rotate(-3deg); }
    40% { transform: translate(5px, 5px) rotate(2deg); }
    50% { transform: translate(-3px, 6px) rotate(-1deg); }
    60% { transform: translate(6px, -4px) rotate(3deg); }
    70% { transform: translate(-4px, -6px) rotate(-2deg); }
    80% { transform: translate(5px, 3px) rotate(2deg); }
    90% { transform: translate(-5px, -5px) rotate(-3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* 発動後に付与される激震クラス */
.video-always-shake {
    display: block !important;
    animation: video-ultra-shake 0.2s linear infinite !important;
}

/* フッターボタン */
.footer-play-btn {
    background: linear-gradient(135deg, #111 0%, #333 100%);
    color: #fff;
    border: 2px solid var(--accent-color);
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.footer-play-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.05);
}