:root {
    --primary-color: #333;
    --accent-color: #007bff;
    --bg-color: #f9f9f9;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.char-container {
    display: flex;
    max-width: 1000px;
    width: 95%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
    gap: 40px;
}

/* 立ち絵エリア */
.char-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    -webkit-user-drag: none; /* Safari, Chrome対応 */
    user-select: none;       /* 選択も禁止 */
    pointer-events: none;    /* クリックも無効（リンク等ある場合は注意） */
}

.main-art {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.1));
    -webkit-user-drag: none; /* Safari, Chrome対応 */
    user-select: none;       /* 選択も禁止 */
    pointer-events: none;    /* クリックも無効（リンク等ある場合は注意） */
}

/* 情報エリア */
.char-info {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.jp-name {
    font-size: 2.5rem;
    margin: 0;
    border-bottom: 3px solid var(--primary-color);
}

.en-name {
    font-size: 1.2rem;
    color: #666;
    margin-top: 5px;
}

.scroll-box {
    height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 10px;
    background: #fafafa;
    line-height: 1.6;
}

/* ギャラリー */
.thumbnail-grid {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail-grid img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.thumbnail-grid img:hover {
    border-color: var(--accent-color);
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
}

/* レスポンシブ対応（スマホ表示） */
@media (max-width: 768px) {
    .char-container {
        flex-direction: column;
    }
    .char-visual {
        order: 1;
    }
    .char-info {
        order: 2;
    }
}

/* ナビゲーションエリアのスタイル */
.page-nav {
    max-width: 1000px;
    width: 95%;
    margin: 20px auto 10px auto; /* キャラクターコンテナの上辺に合わせる */
}

/* 戻るボタンの基本スタイル */
.back-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    background-color: var(--main-theme); /* シーグリーン #3cb371 */
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.back-button .icon {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

/* ホバー時の演出：ゴールドの枠線と光る感じ */
.back-button:hover {
    background-color: #fff;
    color: var(--main-theme);
    border-color: var(--accent-theme); /* ゴールド #ffd700 */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); /* ゴールドの残光 */
    transform: translateX(-5px); /* 少し左に動いて「戻る」を強調 */
}

.back-button:hover .icon {
    transform: translateX(-3px);
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
    .page-nav {
        margin: 10px auto;
        text-align: left;
    }
}