/* デザインパターン定義 */

/* ===== スクロールバースタイル ===== */
/* Webkit系ブラウザ（Chrome, Safari, Edge）用 */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.1);
}

/* Firefox用 */
* {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(0, 0, 0, 0.1);
}

/* ===== デフォルト（ホログラム風デザイン） ===== */
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) {
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    color: #00FFFF;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 150, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .container,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .novel-section,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .howto-section,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .novel-container,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .login-container,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .register-container,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .mypage-container,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .novel-post-container,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .novel-single-container,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .novel-ai-generator,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .news-section,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .custom-carousel-container {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) h1,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) h2,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) h3,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) h4 {
    color: #00FFFF;
    text-shadow: 0 0 10px #00FFFF;
}

body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) input,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) textarea,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) select {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.5);
    color: #00FFFF;
    backdrop-filter: blur(10px);
}

body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) input:focus,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) textarea:focus,
body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) select:focus {
    border-color: #FF00FF;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) button {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.8) 0%, rgba(138, 43, 226, 0.8) 100%);
    border: 1px solid rgba(0, 255, 255, 0.5);
    color: #00FFFF;
    text-shadow: 0 0 5px #00FFFF;
    backdrop-filter: blur(10px);
}

body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) button:hover {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.8) 0%, rgba(138, 43, 226, 0.8) 100%);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    transform: translateY(-2px);
}

body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .site-header {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    border-bottom: 2px solid rgba(0, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

body:not(.design-fantasy):not(.design-normal):not(.design-dark):not(.design-minimal) .site-footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: #00FFFF;
    text-shadow: 0 0 10px #00FFFF;
}

/* ===== ホログラム風デザイン (design-holo) ===== */
/* ホログラムテーマ専用スタイルは theme-holo.css に移動済み */

/* ホログラムデザイン用スクロールバーは theme-holo.css に移動済み */

/* body.design-holo::before は theme-holo.css に移動済み */

/* body.design-holo .container 等は theme-holo.css に移動済み */

/* body.design-holo .container::before 等は theme-holo.css に移動済み */

/* body.design-holo h1, h2, h3, h4 は theme-holo.css に移動済み */

/* body.design-holo input, textarea, select は theme-holo.css に移動済み */

/* body.design-holo button は theme-holo.css に移動済み */

/* body.design-holo .site-header, .site-footer は theme-holo.css に移動済み */

/* body.design-holo .hd-btn は theme-holo.css に移動済み */

/* body.design-holo .site-title, .section-title 等は theme-holo.css に移動済み */

/* body.design-holo .custom-carousel-container 等は theme-holo.css に移動済み */

/* body.design-holo .novel-meta 等は theme-holo.css に移動済み */

/* body.design-holo .novel-ai-generator 等は theme-holo.css に移動済み */

/* body.design-holo .news-section 等は theme-holo.css に移動済み */

/* body.design-holo .novel-list-item 等は theme-holo.css に移動済み */

/* body.design-holo スクロールバーは theme-holo.css に移動済み */

/* body.design-holo::before は theme-holo.css に移動済み */

/* body.design-holo .container 等は theme-holo.css に移動済み */

/* body.design-holo h1, h2, h3, h4 は theme-holo.css に移動済み */

/* body.design-holo input, textarea, select は theme-holo.css に移動済み */

/* body.design-holo button は theme-holo.css に移動済み */

/* body.design-holo .site-header, .site-footer は theme-holo.css に移動済み */

/* ===== ファンタジー風デザイン (design-fantasy) ===== */
/* ファンタジーデザイン専用スタイルは theme-fantasy.css に移動済み */

/* ===== ノーマルデザイン (design-normal) ===== */
/* ノーマルデザイン専用スタイルは theme-normal.css に移動済み */

/* ダークデザイン (design-dark) は theme-dark.css に移動済み */

/* ダークデザインのフォーム要素とボタンは theme-dark.css に移動済み */

/* ダークデザインのヘッダーとフッターは theme-dark.css に移動済み */

/* ダークデザインのカードスタイルとテキスト要素は theme-dark.css に移動済み */

/* デザイン切り替え時のトランジション */
body {
    transition: all 0.5s ease-in-out;
}

body * {
    transition: all 0.3s ease-in-out;
}

/* アニメーション効果の調整 */
/* ファンタジーデザインのアニメーションは theme-fantasy.css に移動済み */

/* アニメーション定義 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hologramGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes hologramScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes fantasyGlow {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

/* エフェクト適用（design-holoとdesign-fantasyのみ） */
body.design-holo .container,
body.design-fantasy .container {
  animation: fadeInUp 1s ease-out;
}

body.design-holo .fade-in,
body.design-fantasy .fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* ノーマルデザインのアニメーションは theme-normal.css に移動済み */

/* ===== ダークデザイン（design-dark）は theme-dark.css に移動済み ===== */

/* マイページ用スタイル */

/* マイページコンテナ */
.mypage-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* ダッシュボードアコーディオン */
.dashboard-accordion {
    margin-bottom: 30px;
}

/* アコーディオンヘッダー */
.accordion-header {
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid;
    backdrop-filter: blur(10px);
}

.accordion-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* アコーディオンコンテンツ */
.accordion-content {
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    border: 1px solid;
    backdrop-filter: blur(10px);
}

/* アコーディオンが開かれた時の高さ自動調整 */
.accordion-content.open {
    max-height: 2000px !important; /* 十分な高さを確保 */
    opacity: 1;
}

/* 統計グリッド */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid;
}

/* 統計カード */
.stat-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid;
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
}

/* ダッシュボードメイン */
.dashboard-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    height: 500px; /* ランキング項目が完全に表示される高さに調整 */
}

/* ランキングカード */
.ranking-card {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid;
    backdrop-filter: blur(10px);
    height: 100%; /* 親要素の高さに合わせる */
    display: flex;
    flex-direction: column;
}

.ranking-header {
    padding: 15px;
    border-bottom: 2px solid;
    flex-shrink: 0; /* ヘッダーの高さを固定 */
}

.ranking-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.ranking-tabs {
    display: flex;
    border-bottom: 1px solid;
}

.ranking-tab {
    flex: 1;
    padding: 12px;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 2px;
}

.ranking-content {
    padding: 15px;
    flex: 1; /* 残りのスペースを埋める */
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ranking-content::-webkit-scrollbar{
    display: none;
}

#ranking-list {
    min-height: 200px; /* ランキング項目が完全に表示される高さに調整 */
    max-height: 400px; /* 下書きリストとバランスを取る */
    overflow-y: auto; /* 必要に応じてスクロール可能 */
    scrollbar-width: thin; /* Firefox用 */
    scrollbar-color: rgba(0, 255, 255, 0.3) transparent; /* Firefox用 */
}

/* Webkit系ブラウザ用のスクロールバースタイル - ランキング */
#ranking-list::-webkit-scrollbar {
    width: 6px;
}

#ranking-list::-webkit-scrollbar-track {
    background: transparent;
}

#ranking-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

#ranking-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

/* 下書きカード */
.drafts-card {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid;
    backdrop-filter: blur(10px);
    height: 100%; /* 親要素の高さに合わせる */
    display: flex;
    flex-direction: column;
}

.drafts-header {
    padding: 15px;
    border-bottom: 2px solid;
    flex-shrink: 0; /* ヘッダーの高さを固定 */
}

.drafts-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.drafts-content {
    padding: 15px;
    height: 100%; /* 親要素の高さに合わせる */
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.drafts-content::-webkit-scrollbar{
    display: none;
}

#drafts-list {
    overflow-y: auto; /* 縦スクロールを有効化 */
    scrollbar-width: thin; /* Firefox用 */
    scrollbar-color: rgba(0, 255, 255, 0.3) transparent; /* Firefox用 */
    flex: 1; /* 残りのスペースを埋める */
}

/* Webkit系ブラウザ用のスクロールバースタイル */
#drafts-list::-webkit-scrollbar {
    width: 6px;
}

#drafts-list::-webkit-scrollbar-track {
    background: transparent;
}

#drafts-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

#drafts-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

/* ローディングメッセージ */
.loading-message {
    text-align: center;
    padding: 30px;
}

.loading-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.loading-desc {
    font-size: 0.8rem;
    margin: 0;
}

/* 小説セクション */
.novels-section {
    margin-top: 30px;
}

.novels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.novels-header h2 {
    margin: 0;
    font-weight: bold;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 15px;
    border: 2px solid;
    cursor: pointer;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

/* 小説リスト */
.novels-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.novel-item {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.novel-item:hover {
    transform: translateY(-2px);
}

/* カード表示用スタイル */
.novels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.novel-card {
    padding: 15px;
    border-radius: 15px;
    border: 2px solid;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.novel-card:hover {
    transform: translateY(-3px);
}

.novel-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.novel-card-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.novel-card-title {
    margin: 0;
    flex: 1;
}

.novel-card-link {
    color: inherit;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.novel-card-link:hover {
    text-decoration: underline;
}

.novel-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 200px;
    padding: 15px;
}

.novel-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.novel-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

.novel-card-meta {
    font-size: 0.85rem;
    opacity: 0.8;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.novel-card-footer {
    margin-top: auto;
    padding: 15px;
    border-top: 1px solid;
    opacity: 0.85;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.novel-card-btn {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
    box-sizing: border-box;
    min-height: 40px;
    line-height: 1.2;
}

.novel-card-btn:last-child {
    margin-top: 0;
    margin-bottom: 0;
}

.novel-card-btn:hover {
    transform: translateY(-1px);
}

.novel-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.novel-info {
    flex: 1;
}

.novel-title {
    text-align: left !important;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.novel-link {
    text-decoration: none;
    font-weight: bold;
}

.novel-meta {
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.meta-separator {
    color: #999;
    margin: 0 2px;
}

.rating-gauge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    min-width: 30px;
    text-align: center;
}

.novel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    min-width: 200px;
}

.novel-btn {
    padding: 8px 15px;
    border: 1px solid;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: bold;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
}

/* 小説が存在しない場合のメッセージ */
.no-novels-message {
    text-align: center;
    padding: 40px;
}

.no-novels-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.create-novel-btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

/* ホログラムデザイン */
/* body.design-holo MyPage関連スタイルは theme-holo.css に移動済み */

/* body.design-holo 統計カードスタイルは theme-holo.css に移動済み */

/* body.design-holo ランキングカードスタイルは theme-holo.css に移動済み */

/* body.design-holo ドラフトカードスタイルは theme-holo.css に移動済み */

/* body.design-holo ドラフトアイテムスタイルは theme-holo.css に移動済み */

/* body.design-holo .novels-header h2 〜 .novel-card-btn:hover までは theme-holo.css に移動済み */

/* ファンタジーデザイン */
/* ファンタジーデザイン専用スタイルは theme-fantasy.css に移動済み */

/* ノーマルデザイン */
/* ノーマルデザイン専用スタイルは theme-normal.css に移動済み */

/* ダークデザイン（design-dark）は theme-dark.css に移動済み */

/* ダークデザイン（design-dark）は theme-dark.css に移動済み */

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .ranking-tabs {
        flex-wrap: wrap;
    }
    
    .ranking-tab {
        flex: 1 1 50%;
    }
    
    .dashboard-main {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        height: auto !important; /* モバイルでは高さを自動調整 */
    }
    
    .ranking-card,
    .drafts-card {
        margin-bottom: 15px;
    }

    /* カード表示のレスポンシブ対応 */
    .novels-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 15px !important;
    }
    
    /* リスト型表示のレスポンシブ対応 */
    .novel-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .novel-actions {
        justify-content: flex-start;
        min-width: auto;
        width: 100%;
    }
    
    .novel-meta {
        gap: 6px;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .ranking-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .ranking-tab {
        flex: none;
        font-size: 0.85rem;
        padding: 8px 12px;
        min-height: 40px;
    }
    
    .mypage-container {
        padding: 10px !important;
    }

    /* カード表示のレスポンシブ対応 */
    .novels-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* リスト型表示のレスポンシブ対応 */
    .novel-content {
        gap: 10px;
    }
    
    .novel-actions {
        gap: 8px;
    }
    
    .novel-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .novel-meta {
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
    
    .novel-title {
        font-size: 1.1rem;
    }
    
    /* design-darkテーマのSP対応は theme-dark.css に移動済み */
}

/* より小さい画面サイズへの対応 */
@media (max-width: 320px) {
    .mypage-container {
        padding: 5px !important;
    }
    
    .ranking-tab {
        font-size: 0.75rem;
        padding: 6px 8px;
        min-height: 32px;
    }
    
    /* design-darkテーマのSP対応は theme-dark.css に移動済み */
    
    /* 新しいメタ項目のレスポンシブ対応 */
    .novel-meta {
        font-size: 0.8rem;
        gap: 3px;
    }
    
    .meta-item {
        font-size: 0.75rem;
    }
    
    .rating-gauge {
        font-size: 0.7rem;
        min-width: 25px;
        padding: 1px 4px;
    }
    
    /* カード表示のレスポンシブ対応 */
    .novel-card {
        padding: 12px;
        min-height: 220px;
    }
    
    .novel-card-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .novel-card-stat {
        padding: 6px;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .novel-card-meta {
        font-size: 0.75rem;
        padding: 8px 0;
    }
    
    /* リスト型表示のレスポンシブ対応 */
    .novel-content {
        gap: 8px;
    }
    
    .novel-actions {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .novel-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: 45px;
    }
    
    .novel-title {
        font-size: 1rem;
    }
}

/* 下書きカードの基本スタイル */
.drafts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.draft-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.draft-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.draft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.draft-novel-title {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 500;
}

.draft-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
}

.status-icon {
    font-size: 0.9rem;
}

.status-text {
    font-weight: 500;
}

.draft-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.3;
}

.draft-progress {
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

.draft-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.draft-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.draft-stat .stat-label {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 2px;
}

.draft-stat .stat-value {
    font-size: 0.85rem;
    font-weight: bold;
}

    .draft-actions {
        display: flex;
        gap: 8px;
    }
    
    .draft-btn {
        flex: 1;
        padding: 6px 12px;
        border: 1px solid;
        border-radius: 4px;
        text-decoration: none;
        text-align: center;
        font-size: 0.8rem;
        font-weight: 500;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .draft-btn:hover {
        transform: translateY(-1px);
    }
    
    .draft-edit {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: inherit;
    }
    
    .draft-publish {
        background: #4CAF50;
        border-color: #4CAF50;
        color: white;
    }
    
    .draft-publish:hover {
        background: #45a049;
        border-color: #45a049;
    }
    
    .no-drafts-message {
        text-align: center;
        padding: 30px 20px;
    }
    
    .no-drafts-icon {
        font-size: 3rem;
        margin-bottom: 15px;
        opacity: 0.6;
    }
    
    .no-drafts-message p {
        margin-bottom: 10px;
        opacity: 0.8;
    }
    
    .no-drafts-desc {
        font-size: 0.9rem;
        opacity: 0.6;
    }
    
    .create-episode-btn {
        display: inline-block;
        padding: 10px 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-weight: 500;
        margin-top: 15px;
        transition: all 0.3s ease;
    }
    
    .create-episode-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    /* レスポンシブ対応 - 下書き関連 */
    @media (max-width: 768px) {
        .drafts-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        
        .draft-item {
            padding: 15px;
        }
        
        .draft-stats {
            grid-template-columns: 1fr;
            gap: 8px;
        }
        
        .draft-actions {
            flex-direction: column;
            gap: 8px;
        }
        
        .draft-btn {
            width: 100%;
            padding: 10px;
        }
        
        #drafts-list {
            max-height: 300px; /* モバイルでは少し小さく */
        }
        
        #ranking-list {
            max-height: 300px; /* モバイルでは少し小さく */
        }
    }
    
    @media (max-width: 480px) {
        .draft-item {
            padding: 12px;
        }
        
        .draft-title {
            font-size: 0.9rem;
        }
        
        .draft-novel-title {
            font-size: 0.8rem;
        }
        
        .draft-status {
            font-size: 0.8rem;
        }
        
        .progress-text {
            font-size: 0.8rem;
        }
        
        .draft-stat .stat-label {
            font-size: 0.7rem;
        }
        
        .draft-stat .stat-value {
            font-size: 0.8rem;
        }
        
        #drafts-list {
            max-height: 250px; /* 480px以下ではさらに小さく */
        }
        
        #ranking-list {
            max-height: 250px; /* 480px以下ではさらに小さく */
        }
    }
    
    @media (max-width: 320px) {
        .draft-item {
            padding: 10px;
        }
        
        .draft-title {
            font-size: 0.85rem;
        }
        
        .draft-novel-title {
            font-size: 0.75rem;
        }
        
        .draft-status {
            font-size: 0.75rem;
        }
        
        .progress-text {
            font-size: 0.75rem;
        }
        
        .draft-stat .stat-label {
            font-size: 0.65rem;
        }
        
        .draft-stat .stat-value {
            font-size: 0.75rem;
        }
        
        .draft-btn {
            padding: 8px;
            font-size: 0.75rem;
        }
    }

/* 320px以下のカード表示対応 */
@media (max-width: 320px) {
    .novel-card {
        padding: 10px;
        min-height: 200px;
    }
    
    .novel-card-stats {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .novel-card-stat {
        padding: 4px;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-value {
        font-size: 0.8rem;
    }
    
    .novel-card-meta {
        font-size: 0.7rem;
        padding: 6px 0;
    }
    
    .novel-meta {
        font-size: 0.7rem;
        gap: 2px;
    }
    
    .meta-item {
        font-size: 0.65rem;
    }
    
    .rating-gauge {
        font-size: 0.6rem;
        min-width: 20px;
        padding: 1px 3px;
    }
    
    /* 下書きカードのレスポンシブ対応 */
    .drafts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .draft-item {
        padding: 10px;
    }
    
    .draft-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .draft-actions {
        flex-direction: column;
        gap: 5px;
    }
}

/* ホログラムデザインのホバーエフェクトは theme-holo.css に移動済み */

/* body.design-holo アニメーション関連は theme-holo.css に移動済み */

/* ファンタジーデザインのホバーエフェクト */
body.design-fantasy .stat-card:hover,
body.design-fantasy .ranking-card:hover,
body.design-fantasy .drafts-card:hover,
body.design-fantasy .novel-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.8);
}

body.design-fantasy .accordion-header:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), inset 0 0 30px rgba(255, 215, 0, 0.2);
}

/* ノーマルデザインのホバーエフェクト */
body.design-normal .stat-card:hover,
body.design-normal .ranking-card:hover,
body.design-normal .drafts-card:hover,
body.design-normal .novel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body.design-normal .accordion-header:hover {
    background: #e9ecef;
}

/* design-darkテーマのホバー効果は theme-dark.css に移動済み */ 

/* デザイン切り替えの安定性向上 */
body {
    /* デザイン切り替え時のちらつき防止 */
    will-change: auto;
    /* ハードウェアアクセラレーション */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* デザイン切り替え中の安定化 */
body[class*="design-"] {
    /* スムーズな切り替えのための設定 */
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    /* レイアウトの安定化 */
    contain: layout style paint;
}

/* アニメーションの最適化 */
.stat-card,
.ranking-card,
.drafts-card,
.novel-item,
.accordion-header {
    /* ハードウェアアクセラレーション */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* アニメーションの安定化 */
    will-change: transform, box-shadow, opacity;
}



/* アニメーション一時停止機能 */
body.design-switching .stat-card,
body.design-switching .ranking-card,
body.design-switching .drafts-card,
body.design-switching .novel-item {
    animation-play-state: paused;
}

/* デザイン切り替え中の表示安定化 */
.design-transitioning {
    /* 切り替え中のちらつき防止 */
    opacity: 1 !important;
    visibility: visible !important;
    /* レイアウトの固定 */
    position: relative;
    z-index: 1;
}

/* マイページ要素の安定化 */
.mypage-container {
    /* レイアウトの安定化 */
    contain: layout style;
    /* スクロールの最適化 */
    overflow-anchor: auto;
}

.dashboard-accordion {
    /* アコーディオンの安定化 */
    contain: layout style;
}

.accordion-content {
    /* アニメーションの安定化 */
    will-change: max-height, opacity;
    /* レイアウトの安定化 */
    contain: layout style;
}

/* 統計カードの安定化 */
.stats-grid {
    /* グリッドレイアウトの安定化 */
    contain: layout style;
}

.stat-card {
    /* カードの安定化 */
    contain: layout style paint;
    /* ホバー効果の最適化 */
    will-change: transform, box-shadow;
}

/* ランキングと下書きカードの安定化 */
.ranking-card,
.drafts-card {
    /* カードの安定化 */
    contain: layout style paint;
    /* ホバー効果の最適化 */
    will-change: transform, box-shadow;
}

/* 小説一覧の安定化 */
.novels-list {
    /* リストの安定化 */
    contain: layout style;
}

.novel-item {
    /* アイテムの安定化 */
    contain: layout style paint;
    /* ホバー効果の最適化 */
    will-change: transform, box-shadow;
}

/* レスポンシブ対応の安定化 */
@media (max-width: 768px) {
    .stats-grid {
        /* モバイルでのグリッド安定化 */
        contain: layout style;
    }
    
    .dashboard-main {
        /* モバイルでのレイアウト安定化 */
        contain: layout style;
    }
}


/* デザイン切り替え中の表示制御強化 */
body.design-switching {
    /* 切り替え中の全体的な制御 */
    pointer-events: none;
    /* レイアウトの安定化 */
    contain: layout style paint;
    /* 最低限の視認性を確保 */
    opacity: 0.95 !important;
}

body.design-switching .mypage-container {
    /* マイページコンテナの切り替え中制御 */
    opacity: 0.98 !important;
    filter: brightness(1.0) !important;
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* ランキングと下書きエリアの切り替え中制御 */
body.design-switching #ranking-list,
body.design-switching #drafts-list {
    /* 切り替え中の非表示制御 */
    opacity: 0.75 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* 切り替え完了後の表示復旧 */
#ranking-list,
#drafts-list {
    /* 通常時の表示設定 */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* ローディング状態の安定化 */
.loading-message {
    /* ローディングメッセージの安定化 */
    position: relative;
    z-index: 1;
    /* 切り替え中でも表示を維持 */
    opacity: 1 !important;
    visibility: visible !important;
}

/* アニメーションの一時停止強化 */
body.design-switching .stat-card,
body.design-switching .ranking-card,
body.design-switching .drafts-card,
body.design-switching .novel-item {
    /* 切り替え中のアニメーション完全停止 */
    animation-play-state: paused !important;
    animation: none !important;
    /* ホバー効果も無効化 */
    transform: none !important;
    transition: none !important;
}

/* デザイン切り替え完了後のアニメーション復旧 */
body:not(.design-switching) .stat-card,
body:not(.design-switching) .ranking-card,
body:not(.design-switching) .drafts-card,
body:not(.design-switching) .novel-item {
    /* 切り替え完了後のアニメーション復旧 */
    animation-play-state: running;
    transition: all 0.3s ease-in-out;
}

/* body.design-holo アニメーション復旧は theme-holo.css に移動済み */

/* 切り替え中のボタン無効化 */
body.design-switching .view-btn,
body.design-switching .ranking-tab,
body.design-switching .accordion-header {
    /* 切り替え中の操作無効化 */
    pointer-events: none;
    opacity: 0.95 !important;
}

/* 切り替え完了後のボタン復旧 */
body:not(.design-switching) .view-btn,
body:not(.design-switching) .ranking-tab,
body:not(.design-switching) .accordion-header {
    /* 切り替え完了後の操作復旧 */
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* デザイン切り替えの安定性向上 */
body {
    /* デザイン切り替え時のちらつき防止 */
    will-change: auto;
    /* ハードウェアアクセラレーション */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* デザイン切り替え中の安定化 */
body[class*="design-"] {
    /* スムーズな切り替えのための設定 */
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    /* レイアウトの安定化 */
    contain: layout style paint;
}

/* アニメーションの最適化 */
.stat-card,
.ranking-card,
.drafts-card,
.novel-item,
.accordion-header {
    /* ハードウェアアクセラレーション */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* アニメーションの安定化 */
    will-change: transform, box-shadow, opacity;
}


/* アニメーション一時停止機能 */
body.design-switching .stat-card,
body.design-switching .ranking-card,
body.design-switching .drafts-card,
body.design-switching .novel-item {
    animation-play-state: paused;
}

/* デザイン切り替え中の表示安定化 */
.design-transitioning {
    /* 切り替え中のちらつき防止 */
    opacity: 1 !important;
    visibility: visible !important;
    /* レイアウトの固定 */
    position: relative;
    z-index: 1;
}

/* マイページ要素の安定化 */
.mypage-container {
    /* レイアウトの安定化 */
    contain: layout style;
    /* スクロールの最適化 */
    overflow-anchor: auto;
}

.dashboard-accordion {
    /* アコーディオンの安定化 */
    contain: layout style;
}

.accordion-content {
    /* アニメーションの安定化 */
    will-change: max-height, opacity;
    /* レイアウトの安定化 */
    contain: layout style;
}

/* 統計カードの安定化 */
.stats-grid {
    /* グリッドレイアウトの安定化 */
    contain: layout style;
}

.stat-card {
    /* カードの安定化 */
    contain: layout style paint;
    /* ホバー効果の最適化 */
    will-change: transform, box-shadow;
}

/* ランキングと下書きカードの安定化 */
.ranking-card,
.drafts-card {
    /* カードの安定化 */
    contain: layout style paint;
    /* ホバー効果の最適化 */
    will-change: transform, box-shadow;
}

/* 小説一覧の安定化 */
.novels-list {
    /* リストの安定化 */
    contain: layout style;
}

.novel-item {
    /* アイテムの安定化 */
    contain: layout style paint;
    /* ホバー効果の最適化 */
    will-change: transform, box-shadow;
}

/* レスポンシブ対応の安定化 */
@media (max-width: 768px) {
    .stats-grid {
        /* モバイルでのグリッド安定化 */
        contain: layout style;
    }
    
    .dashboard-main {
        /* モバイルでのレイアウト安定化 */
        contain: layout style;
    }
}


/* ===== 新しいページ用スタイル ===== */

/* 小説一覧ページ */
.novels-list-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.novels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.novel-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.novel-card:hover {
    transform: translateY(-3px);
}

.novel-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.novel-author {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.novel-description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novel-meta {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.novel-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.novel-link:hover {
    text-decoration: none;
}

.novel-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.no-novels {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}


/* 小説詳細ページ */
.novel-view-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 2rem;
}

.novel-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.novel-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.novel-meta {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.novel-description {
    line-height: 1.6;
    margin-bottom: 2rem;
}

.episodes-section {
    margin-top: 2rem;
}

.episodes-header {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.episodes-list {
    display: grid;
    gap: 1rem;
}

.episode-item {
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.episode-item:hover {
    transform: translateY(-2px);
}

.episode-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.episode-meta {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.episode-chapter {
    font-size: 0.8rem;
    font-style: italic;
}

.episode-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.episode-link:hover {
    text-decoration: none;
}

.no-episodes {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
}

/* エピソード閲覧ページ */
.episode-view-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 2rem;
}

.episode-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.episode-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.episode-meta {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.episode-chapter {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.episode-content {
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: justify;
}

.episode-content ruby {
    ruby-position: over;
}

.episode-content rt {
    font-size: 0.7em;
}

.navigation-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
}

.nav-link {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    text-decoration: none;
}

.nav-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.novel-link {
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.novel-link:hover {
    text-decoration: none;
}

.episode-info {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.episode-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.episode-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* ===== テーマ別スタイル ===== */

/* ホログラム風デザインは theme-holo.css に移動済み */

/* ファンタジーデザイン */
/* ファンタジーデザイン専用スタイルは theme-fantasy.css に移動済み */

/* ノーマルデザインの新しいページ用スタイルは theme-normal.css に移動済み */

/* ダークデザイン */
/* design-darkテーマの小説一覧・詳細ページは theme-dark.css に移動済み */

/* ファンタジーデザインのエピソード本文色を濃くする */
/* ファンタジーデザイン専用スタイルは theme-fantasy.css に移動済み */

/* ダッシュボードアクションボタン */
.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

/* アクションボタン */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid;
    min-width: 200px;
    justify-content: center;
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    font-size: 1rem;
}


/* ファンタジーデザイン */
/* ファンタジーデザイン専用スタイルは theme-fantasy.css に移動済み */

/* ノーマルデザイン */
/* ノーマルデザイン専用スタイルは theme-normal.css に移動済み */

/* design-darkテーマのアクションボタンは theme-dark.css に移動済み */

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .action-btn {
        padding: 0.8rem 1.2rem;
        min-width: 180px;
    }
    
    .btn-text {
        font-size: 0.9rem;
    }
}

/* エピソード作成ボタン */
.create-episode-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid;
    min-width: 140px;
    justify-content: center;
}

/* 小説編集ボタン */
.edit-novel-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid;
    min-width: 80px;
    justify-content: center;
}

.create-episode-btn .btn-icon {
    font-size: 1rem;
}

.create-episode-btn .btn-text {
    font-size: 0.8rem;
}

/* ホログラム風デザインは theme-holo.css に移動済み */

/* ファンタジーデザイン */
/* ファンタジーデザイン専用スタイルは theme-fantasy.css に移動済み */

/* ノーマルデザインのボタンは theme-normal.css に移動済み */

/* design-darkテーマのボタンスタイルは theme-dark.css に移動済み */

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .create-episode-btn {
        min-width: 120px;
        padding: 0.4rem 0.8rem;
    }
    
    .create-episode-btn .btn-text {
        font-size: 0.7rem;
    }
    
    .create-episode-btn .btn-icon {
        font-size: 0.9rem;
    }
    
    .edit-novel-btn {
        min-width: 70px;
        padding: 0.4rem 0.8rem;
    }
    
    .edit-novel-btn .btn-text {
        font-size: 0.7rem;
    }
    
    .edit-novel-btn .btn-icon {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .create-episode-btn {
        min-width: 100px;
        padding: 0.3rem 0.6rem;
    }
    
    .create-episode-btn .btn-text {
        font-size: 0.6rem;
    }
    
    .create-episode-btn .btn-icon {
        font-size: 0.8rem;
    }
    
    .edit-novel-btn {
        min-width: 60px;
        padding: 0.3rem 0.6rem;
    }
    
    .edit-novel-btn .btn-text {
        font-size: 0.6rem;
    }
    
    .edit-novel-btn .btn-icon {
        font-size: 0.8rem;
    }
}

/* メインアクションボタン */
.main-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* ホログラム風デザインは theme-holo.css に移動済み */

/* ファンタジーデザイン */
/* ファンタジーデザイン専用スタイルは theme-fantasy.css に移動済み */

/* ノーマルデザインのメインアクションは theme-normal.css に移動済み */

/* design-darkテーマのメインアクションは theme-dark.css に移動済み */

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .main-actions {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-actions {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* 小説作成・編集ページ用スタイル */

/* 基本コンテナ */
.novel-post-container,
.novel-edit-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* タイトル */
.novel-post-container h2,
.novel-edit-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* ラベル */
.novel-post-container label,
.novel-edit-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* 入力フィールド */
.novel-post-container input,
.novel-post-container textarea,
.novel-edit-container input,
.novel-edit-container textarea {
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

/* フォーカス状態 */
.novel-post-container input:focus,
.novel-post-container textarea:focus,
.novel-edit-container input:focus,
.novel-edit-container textarea:focus {
    outline: none;
}

/* ボタン */
.novel-post-container button,
.novel-edit-container button {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
}

/* ホバー状態 */
.novel-post-container button:hover,
.novel-edit-container button:hover {
    transform: translateY(-2px);
}

/* エラーメッセージ */
.novel-post-container .error,
.novel-edit-container .error {
    text-align: center;
    margin-bottom: 1rem;
}

/* 成功メッセージ */
.novel-post-container .success,
.novel-edit-container .success {
    text-align: center;
    margin-bottom: 1rem;
}

/* 戻るリンク */
.novel-post-container .back-link,
.novel-edit-container .back-link {
    text-align: center;
    margin-top: 2rem;
}

.novel-post-container .back-link a,
.novel-edit-container .back-link a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ホバー状態 */
.novel-post-container .back-link a:hover,
.novel-edit-container .back-link a:hover {
    text-decoration: underline;
}

/* タグ関連 */
.tags-container {
    margin-bottom: 1rem;
}

.tags-input-wrapper {
    position: relative;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tag-remove:hover {
    transform: scale(1.2);
}

/* 文字数カウンター */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.char-counter.red {
    color: #FF0000;
}

/* 削除セクションとモーダル */
.delete-section {
    margin-top: 3rem;
    padding: 2rem;
    border-top: 2px solid;
    border-radius: 0.5rem;
}

.delete-warning {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.delete-warning p {
    margin: 0;
    font-weight: bold;
}

.delete-btn {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

/* モーダル表示時のスクロール無効化 */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    border-radius: 1rem;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-body .novel-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
}

.modal-footer {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-delete-btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dangerPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    }
}

/* 設定グループ */
.setting-group {
    margin-bottom: 2rem;
}

.setting-group label {
    margin-bottom: 1rem;
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.toggle-option:hover {
    transform: translateY(-2px);
}

.toggle-option.selected {
    border-color: currentColor;
}

.toggle-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toggle-content {
    flex: 1;
}

.toggle-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.toggle-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.toggle-indicator {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.toggle-option.selected .toggle-indicator {
    background: currentColor;
}

.toggle-option.selected .toggle-indicator::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: inherit;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}


/* ファンタジーデザイン */
/* ファンタジーデザイン専用スタイルは theme-fantasy.css に移動済み */

/* ノーマルデザインの小説作成・編集ページは theme-normal.css に移動済み */

/* ダークデザイン */
/* design-darkテーマの小説作成・編集ページは theme-dark.css に移動済み */

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .novel-post-container,
    .novel-edit-container {
        margin: 20px auto;
        padding: 1rem;
    }
    
    .toggle-group {
        gap: 0.5rem;
    }
    
    .toggle-option {
        padding: 0.75rem;
    }
    
    .toggle-icon {
        font-size: 1.2rem;
    }
    
    .toggle-title {
        font-size: 0.9rem;
    }
    
    .toggle-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .novel-post-container,
    .novel-edit-container {
        margin: 10px auto;
        padding: 0.75rem;
    }
    
    .novel-post-container h2,
    .novel-edit-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .novel-post-container input,
    .novel-post-container textarea,
    .novel-edit-container input,
    .novel-edit-container textarea {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .novel-post-container button,
    .novel-edit-container button {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .toggle-option {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .toggle-icon {
        font-size: 1rem;
    }
    
    .toggle-title {
        font-size: 0.8rem;
    }
    
    .toggle-desc {
        font-size: 0.7rem;
    }
    
    .tag-item {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .char-counter {
        font-size: 0.7rem;
    }
}

/* ホログラムデザイン - 削除セクションとモーダル */
/* body.design-holo .delete-section 関連は theme-holo.css に移動済み */

/* ファンタジーデザイン - 削除セクションとモーダル */
/* ファンタジーデザイン専用スタイルは theme-fantasy.css に移動済み */

/* ノーマルデザインの削除セクションとモーダルは theme-normal.css に移動済み */

/* ダークデザイン - 削除セクションとモーダル */
body.design-dark .delete-section {
    border-top-color: #ff6b6b;
    background: #2d3748;
}

body.design-dark .delete-warning {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

body.design-dark .delete-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #dc3545 100%);
    border: 1px solid #ff6b6b;
    color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

body.design-dark .delete-btn:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.4);
    transform: translateY(-1px);
}

body.design-dark .modal-content {
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.design-dark .modal-header {
    background: #4a5568;
    border-bottom-color: #718096;
}

body.design-dark .modal-header h3 {
    color: #f7fafc;
}

body.design-dark .modal-body {
    color: #e2e8f0;
}

body.design-dark .modal-body .novel-title {
    background: #4a5568;
    border: 1px solid #718096;
    color: #f7fafc;
}

body.design-dark .confirm-delete-btn {
    background: linear-gradient(135deg, #ff0000 0%, #dc3545 100%);
    border: 2px solid #ff0000;
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), inset 0 0 10px rgba(255, 0, 0, 0.3);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.design-dark .confirm-delete-btn:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.7), inset 0 0 15px rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
    animation: dangerPulse 0.5s ease-in-out;
}

body.design-dark .cancel-btn {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    border: 1px solid #718096;
    color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(113, 128, 150, 0.3);
}

body.design-dark .cancel-btn:hover {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 4px 8px rgba(113, 128, 150, 0.4);
    transform: translateY(-1px);
}

/* 削除完了メッセージ */
.delete-success-message {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    animation: fadeInDown 0.5s ease;
}

.delete-success-message p {
    margin: 0;
    font-weight: bold;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* body.design-holo .delete-success-message は theme-holo.css に移動済み */

/* ファンタジーデザイン - 削除完了メッセージ */
body.design-fantasy .delete-success-message {
    background: rgba(144, 238, 144, 0.1);
    border: 1px solid rgba(144, 238, 144, 0.3);
    color: #90EE90;
    text-shadow: 0 0 5px #90EE90;
}

/* ノーマルデザイン - 削除完了メッセージ */
body.design-normal .delete-success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

/* ダークデザイン - 削除完了メッセージ */
body.design-dark .delete-success-message {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: #48bb78;
}

/* ミニマルデザインは theme-minimal.css に移動済み */

/* ミニマルデザインの小説投稿・編集フォームは theme-minimal.css に移動済み */

/* ミニマルデザインの小説詳細・エピソード・管理ページは theme-minimal.css に移動済み */

/* body.design-holo .section 関連は theme-holo.css に移動済み */
/* このファイルは各テーマデザインの共通パターンを定義します */
/* ホログラム風デザインは theme-holo.css に移動済み */
/* ファンタジーデザインは theme-fantasy.css に移動済み */
/* ノーマルデザインは theme-normal.css に移動済み */
