﻿@charset "utf-8";
/* ========================================
   本のデザイン・装飾テーマ (book-theme.css)
======================================== */

/* 背景・フォント */
body { background-color: #f1f1f1; background-image: url('../img/desk_wood.jpg'); background-size: cover; background-attachment: fixed; color: #333; font-family: 'Hiragino Mincho Pro', 'MS PMincho', serif; line-height: 1.8; }

/* 本のデザイン */
.open-book { border: 15px solid #8c6a43; border-radius: 12px; box-shadow: 10px 10px 30px rgba(0,0,0,0.5); }
.book-page { background-color: #fdf6e3; }
.book-left { border-right: 1px solid #e0d0b0; }
.book-spine { background: linear-gradient(to left, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%); }
.book-cover-wrapper { box-shadow: 5px 5px 15px rgba(0,0,0,0.3); }

/* 文字のデザイン */
.book-title { font-size: 1.8rem; color: #4a3a2a; font-weight: bold; }
.book-meta { font-size: 0.9rem; color: #666; border-bottom: 1px solid #e0d0b0; }
.book-description { font-size: 0.95rem; color: #4a3a2a; }
.story-part { border-bottom: 1px solid #e0d0b0; }
.story-part:last-child { border-bottom: none; }
.story-text { font-size: 1rem; color: #333; line-height: 2; }
.story-footer { font-size: 0.85rem; color: #777; }
.story-meta span { font-weight: bold; color: #555; }
.book-title-mobile { font-weight: bold; font-size: 1.2rem; }
.login-text {font-weight: bold; color: #a67f51;}

/* ボタンのデザイン */
.btn-like { background: transparent; border: 1px solid #e0d0b0; color: #a67f51; border-radius: 4px; cursor: pointer; }
.btn-like:hover { background-color: rgba(166,127,81,0.1); }
.btn-like.liked { color: #8c6a43; border-color: #8c6a43; font-weight: bold; }
.btn-toggle-comment { background: #fdf6e3; border: 1px solid #c8b598; color: #8c6a43; border-radius: 4px; cursor: pointer; font-family: 'Hiragino Mincho Pro', 'MS PMincho', serif; font-size: 0.85rem; transition: all 0.2s ease; }
.btn-toggle-comment:hover { background-color: #8c6a43; color: #ffffff; }
.btn-primary { background-color: #8c6a43; color: white; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }
.btn-primary:hover { background-color: #6e5234; }

/* コメントエリアのデザイン（便箋風） */
.post-comments-area { background-color: #fdfaf0; border: 1px solid #d4c4a8; box-shadow: 0 10px 30px rgba(0,0,0,0.3); font-size: 0.9rem; border-radius: 4px; background-image: linear-gradient(#e0d0b0 1px, transparent 1px); background-size: 100% 2em; line-height: 2em; }
.post-comments-area::before { content: "★コメント一覧"; font-weight: bold; color: #8c6a43; border-bottom: 2px dashed #d4c4a8; background-color: #fdfaf0; }
.single-comment { background-color: rgba(255, 255, 255, 0.8); border-radius: 4px; border: 1px solid rgba(224,208,176,0.5); line-height: 1.5; box-shadow: 2px 2px 5px rgba(0,0,0,0.05); }
.comment-author { font-weight: bold; color: #8c6a43; border-bottom: 1px solid rgba(224,208,176,0.3); }
.comment-text { color: #444; }
.comment-time { color: #999; font-size: 0.8rem; }
.comment-form { background-color: #fdfaf0; border-top: 2px dashed #d4c4a8; }
.input-comment-text { border: 1px solid #e0d0b0; border-radius: 4px; background-color: rgba(255,255,255,0.9); }
.btn-comment { background-color: #a67f51; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: background-color 0.2s; }
.btn-comment:hover { background-color: #8c6a43; }
.btn-close-comment { background-color: #fdfaf0; border: 1px solid #c8b598; color: #8c6a43; border-radius: 4px; cursor: pointer; font-family: 'Hiragino Mincho Pro', 'MS PMincho', serif; font-size: 0.8rem; font-weight: bold; transition: all 0.2s ease; }
.btn-close-comment:hover { background-color: #8c6a43; color: #ffffff; }

/* 執筆エリア（原稿用紙風）のデザイン */
.form-container { background-color: rgba(253, 253, 253, 0.98); background-image: linear-gradient(#e0d0b0 1px, transparent 1px); background-size: 100% 30px; border: 1px solid #e0d0b0; box-shadow: 5px 5px 20px rgba(0,0,0,0.3); border-radius: 4px; }
.paper-textarea { line-height: 30px; background: transparent; border: none; font-family: 'Hiragino Mincho Pro', 'MS PMincho', serif; }

/* ヘッダー・フッターのデザイン */
.site-header { background-color: #3e3124; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.site-title { font-size: 1.4rem; color: #fdfaf0; font-family: 'Hiragino Mincho Pro', 'MS PMincho', serif; }
.header-nickname { color: #fdfaf0; font-size: 0.95rem; font-weight: bold; }
.btn-outline { border: 1px solid #c8b598; border-radius: 20px; color: #c8b598; text-decoration: none; font-size: 0.85rem; font-weight: bold; transition: all 0.3s ease; }
.btn-outline:hover { background-color: #c8b598; color: #3e3124; }
.header-navigation { border-top: 1px dashed #e0d0b0; }
.header-nav-label { font-size: 1rem; font-weight: bold; color: #c8b598; white-space: nowrap; }
.header-btn-jump { background-color: #fdf6e3; border: 1px solid #c8b598; color: #8c6a43; border-radius: 20px; cursor: pointer; font-size: 0.85rem; font-family: 'Hiragino Mincho Pro', 'MS PMincho', serif; transition: all 0.2s ease; white-space: nowrap; }
.header-btn-jump:hover { background-color: #8c6a43; color: #ffffff; }
.site-footer { background-color: rgba(255,255,255,0.8); backdrop-filter: blur(5px); border-bottom: 1px solid #e0d0b0; }

/* スマホ向けの線のデザイン変更 */
@media screen and (max-width: 768px) {
    .open-book { border-width: 8px; }
    .book-left { border-right: none; border-bottom: 2px solid #8c6a43; }
}