﻿@charset "utf-8";
/* ========================================
   全体およびライブ小説のデザイン・装飾テーマ (live-theme.css)
======================================== */

/* 全体の基本設定 */
body { font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif; background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%); color: #2c3e50; }
.site-header { background: linear-gradient(90deg, #a1c4fd 0%, #c2e9fb 100%); color: #1a4a5e; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.site-title { font-size: 26px; font-weight: 800; letter-spacing: 2px; text-shadow: 1px 1px 0px #ffffff; color: #1a4a5e; }
.login-status { font-size: 14px; color: #1a4a5e; font-weight: bold; }
.btn-outline { color: #1a4a5e; text-decoration: none; border: 2px solid #ffffff; border-radius: 20px; background: rgba(255, 255, 255, 0.4); font-size: 14px; font-weight: bold; transition: all 0.3s ease; }
.btn-outline:hover { background-color: #ffffff; transform: translateY(-1px); }
.site-footer { background: linear-gradient(135deg, #e0eaf5 0%, #cfdef3 100%); color: #5b7a96; }
.footer-inner p { color: #5b7a96; font-size: 13px; font-weight: 600; }

/* 物語の表示エリア */
.story-container { background: #ffffff; border-radius: 15px; box-shadow: 0 10px 30px rgba(161, 196, 253, 0.1); border: 1px solid #d4e4f7; }
.story-container::-webkit-scrollbar-track { background: #f0f4f8; border-radius: 10px; }
.story-container::-webkit-scrollbar-thumb { background: #a1c4fd; border-radius: 10px; }
.story-container::-webkit-scrollbar-thumb:hover { background: #4a90e2; }
.story-part { border-bottom: 1px dashed #d4e4f7; }
.story-text { font-size: 0.9rem; line-height: 1.6; color: #2c3e50; }
.story-meta { font-size: 0.85rem; color: #8da3b8; }
.empty-message { color: #8da3b8; font-style: italic; }

/* 投稿フォームエリア */
textarea { border: 2px solid #e1eaf4; border-radius: 10px; background-color: #f8fbff; font-size: 0.85rem; font-family: inherit; transition: all 0.3s ease; }
textarea:focus { outline: none; border-color: #a1c4fd; background-color: #ffffff; box-shadow: 0 0 10px rgba(161, 196, 253, 0.3); }

.btn-primary { background: linear-gradient(90deg, #84fab0 0%, #8fd3f4 100%); color: #1a4a5e; border: none; border-radius: 25px; cursor: pointer; font-size: 1rem; font-weight: bold; transition: all 0.3s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(132, 250, 176, 0.4); }
.btn-secondary { background-color: #ffffff; color: #4a90e2; border: 2px solid #a1c4fd; border-radius: 25px; text-decoration: none; font-size: 1rem; font-weight: bold; transition: all 0.3s ease; }

/* 原稿入力デスクのトグルボタン */
#btn-toggle-live-desk { padding: 8px 20px; border-radius: 25px; font-size: 0.95rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; border: none; outline: none; box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: inline-flex; align-items: center; gap: 6px; background-color: #f0f4f8; border: 1px solid #c8dcf7; color: #4a90e2; }
#btn-toggle-live-desk:hover { background-color: #e2ebf7; color: #357ebd; }
.is-minimized #btn-toggle-live-desk { background-color: #a1c4fd; color: #ffffff; }
.is-minimized #btn-toggle-live-desk:hover { background-color: #4a90e2; box-shadow: 0 4px 8px rgba(0,0,0,0.15); transform: translateY(-1px); }

/* 表紙・タイトル */
.book-cover-wrapper { perspective: 1000px; }
.book-cover-image { border-radius: 2px 8px 8px 2px; border-left: 6px solid #2a1b38; box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), inset 4px 0 10px rgba(0, 0, 0, 0.3), inset -1px 0 2px rgba(255, 255, 255, 0.3); transform: rotateY(-10deg) rotateX(2deg); transition: transform 0.3s ease; }
.book-cover-image:hover { transform: rotateY(0deg) rotateX(0deg) scale(1.02); box-shadow: 15px 15px 25px rgba(0, 0, 0, 0.25); }
.book-title { font-size: 1.8rem; color: #1a4a5e; border-bottom: 2px solid #a1c4fd; }

/* ジャンプナビゲーション */
.post-navigation { background: #ffffff; border-radius: 10px; box-shadow: 0 5px 15px rgba(161, 196, 253, 0.15); border: 1px solid #d4e4f7; }
.nav-label { font-weight: bold; color: #1a4a5e; font-size: 0.9rem; white-space: nowrap; }
.nav-buttons { scrollbar-width: none; }
.btn-jump { background: #f0f4f8; border: 1px solid #a1c4fd; color: #4a90e2; border-radius: 20px; font-size: 0.85rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; }
.btn-jump:hover { background: #a1c4fd; color: #ffffff; transform: translateY(-1px); box-shadow: 0 2px 5px rgba(161, 196, 253, 0.4); }

/* コメントエリア */
.post-comments-area { background-color: #f4f8ff; border-radius: 8px; border-left: 4px solid #a1c4fd; }
.single-comment { background-color: transparent; border-bottom: 1px dashed #d4e4f7; }
.comment-author { font-weight: bold; color: #1a4a5e; font-size: 0.85rem; }
.comment-text { font-size: 0.85rem; line-height: 1.5; }
.comment-time { color: #9ab4c7; font-size: 0.75rem; }
.comments-list:not(:empty) + .comment-form { border-top: 1px solid #d4e4f7; }
.input-comment-text { border: 1px solid #d4e4f7; border-radius: 4px; font-size: 0.85rem; }
.comment-as { font-size: 0.8rem; color: #1a4a5e; font-weight: bold; white-space: nowrap; }

/* 各種ボタンサイズの統一（高さ32px、中央揃え） */
.btn-like, .btn-toggle-comment, .btn-comment, .btn-close-comment {
    height: 32px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

/* 個別のボタンデザイン */
.btn-like { padding: 0 12px; background-color: #ffffff; border: 2px solid #ffb6c1; color: #ff69b4; border-radius: 20px; }
.btn-like:hover { background-color: #fff0f5; transform: translateY(-2px); }
.btn-like.liked { background-color: #e91e63; color: #ffffff; border-color: #e91e63; cursor: default; }
.btn-like.liked span { color: #ffffff; }

.btn-toggle-comment { padding: 0 12px; background-color: #ffffff; border: 2px solid #a1c4fd; color: #4a90e2; border-radius: 20px; font-family: inherit; }
.btn-toggle-comment:hover { background-color: #f0f7ff; border-color: #4a90e2; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(161, 196, 253, 0.3); }
.btn-toggle-comment.active { background-color: #4a90e2; color: #ffffff; border-color: #4a90e2; }
.btn-toggle-comment span.count { background: #a1c4fd; color: #ffffff; border-radius: 10px; font-size: 0.75rem; padding: 0 4px; }

.btn-comment { padding: 0 16px; background-color: #a1c4fd; color: white; border: none; border-radius: 4px; }
.btn-comment:hover { background-color: #8bb4f7; }

.btn-close-comment { padding: 0 16px; background-color: #f0f4f8; border: 1px solid #a1c4fd; color: #4a90e2; border-radius: 4px; }
.btn-close-comment:hover { background-color: #a1c4fd; color: #ffffff; }

/* アイコン等の隙間調整 */
.btn-like .like-count, .btn-toggle-comment .arrow { margin-left: 4px; }

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .book-cover-image { transform: none; }
}