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

/* 背景・フォント */
/* 木の背景画像を外し、涼しげな水色から白へのグラデーションに変更しています */
body { background-color: #e0f7fa; background-image: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%); background-attachment: fixed; color: #333; font-family: 'Hiragino Mincho Pro', 'MS PMincho', serif; line-height: 1.8; }

/* 本のデザイン */
.open-book { border: 15px solid #4fc3f7; border-radius: 12px; box-shadow: 10px 10px 30px rgba(0,130,200,0.2); }
.book-page { background-color: #ffffff; }
.book-left { border-right: 1px solid #b3e5fc; }
.book-spine { background: linear-gradient(to left, rgba(0,90,150,0.1) 0%, rgba(0,0,0,0) 100%); }
.book-cover-wrapper { box-shadow: 5px 5px 15px rgba(0,100,200,0.15); }

/* 文字のデザイン */
.book-title { font-size: 1.8rem; color: #0277bd; font-weight: bold; }
.book-meta { font-size: 0.9rem; color: #666; border-bottom: 1px solid #b3e5fc; }
.book-description { font-size: 0.95rem; color: #0277bd; }
.story-part { border-bottom: 1px solid #e1f5fe; }
.story-part:last-child { border-bottom: none; }
.story-text { font-size: 1rem; color: #2c3e50; line-height: 2; }
.story-footer { font-size: 0.85rem; color: #7f8c8d; }
.story-meta span { font-weight: bold; color: #34495e; }
.book-title-mobile { font-weight: bold; font-size: 1.2rem; color: #0277bd; }
.login-text {font-weight: bold; color: #0288d1;}

/* ボタンのデザイン */
.btn-like { background: transparent; border: 1px solid #81d4fa; color: #0288d1; border-radius: 4px; cursor: pointer; }
.btn-like:hover { background-color: rgba(2,136,209,0.1); }
.btn-like.liked { color: #0277bd; border-color: #0277bd; font-weight: bold; }
.btn-toggle-comment { background: #f0f9ff; border: 1px solid #81d4fa; color: #0277bd; 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: #039be5; color: #ffffff; }
.btn-primary { background-color: #039be5; color: white; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }
.btn-primary:hover { background-color: #0277bd; }

/* コメントエリアのデザイン（爽やかな便箋風） */
.post-comments-area { background-color: #f7fcff; border: 1px solid #b3e5fc; box-shadow: 0 10px 30px rgba(0,90,150,0.15); font-size: 0.9rem; border-radius: 4px; background-image: linear-gradient(#e1f5fe 1px, transparent 1px); background-size: 100% 2em; line-height: 2em; }
.post-comments-area::before { content: "★コメント一覧"; font-weight: bold; color: #0277bd; border-bottom: 2px dashed #b3e5fc; background-color: #f7fcff; }
.single-comment { background-color: rgba(255, 255, 255, 0.9); border-radius: 4px; border: 1px solid rgba(179,229,252,0.5); line-height: 1.5; box-shadow: 2px 2px 5px rgba(0,0,0,0.03); }
.comment-author { font-weight: bold; color: #0288d1; border-bottom: 1px solid rgba(179,229,252,0.5); }
.comment-text { color: #34495e; }
.comment-time { color: #95a5a6; font-size: 0.8rem; }
.comment-form { background-color: #f7fcff; border-top: 2px dashed #b3e5fc; }
.input-comment-text { border: 1px solid #81d4fa; border-radius: 4px; background-color: rgba(255,255,255,0.9); }
.btn-comment { background-color: #039be5; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: background-color 0.2s; }
.btn-comment:hover { background-color: #0277bd; }
.btn-close-comment { background-color: #ffffff; border: 1px solid #81d4fa; color: #0288d1; 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: #039be5; color: #ffffff; }

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

/* ヘッダー・フッターのデザイン */
.site-header { background: linear-gradient(90deg, #4fc3f7 0%, #0288d1 100%); box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.site-title { font-size: 1.4rem; color: #ffffff; font-family: 'Hiragino Mincho Pro', 'MS PMincho', serif; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }
.header-nickname { color: #ffffff; font-size: 0.95rem; font-weight: bold; }
.btn-outline { border: 1px solid #ffffff; border-radius: 20px; color: #ffffff; text-decoration: none; font-size: 0.85rem; font-weight: bold; transition: all 0.3s ease; }
.btn-outline:hover { background-color: #ffffff; color: #0288d1; }
.header-navigation { border-top: 1px dashed rgba(255,255,255,0.4); }
.header-nav-label { font-size: 1rem; font-weight: bold; color: #e0f7fa; white-space: nowrap; }
.header-btn-jump { background-color: rgba(255,255,255,0.9); border: 1px solid #ffffff; color: #0277bd; 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: #039be5; color: #ffffff; border-color: #039be5; }
.site-footer { background-color: rgba(225,245,254,0.9); backdrop-filter: blur(5px); border-bottom: 1px solid #b3e5fc; color: #0277bd; }

/* ========================================
   右上ユーザーメニューの洗練デザイン（夏テーマ用）
======================================== */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ログインユーザー情報（カプセルデザイン） */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15); /* 白い半透明の背景 */
    padding: 4px 14px 4px 6px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* ヘッダー内の丸型ユーザーアイコン */
.header-user-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,90,150,0.15);
}

/* 「ようこそ〇〇さん」のテキスト */
.header-nickname {
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-family: sans-serif;
}
.header-nickname strong {
    font-size: 0.95rem;
    color: #fffdec; /* ニックネームを少しだけ明るい色にして主役に */
    font-weight: bold;
}

/* 未ログイン時の案内テキスト */
.login-prompt {
    color: #e0f7fa; /* 夏空に映えるすっきりした薄水色 */
    font-size: 0.85rem;
    font-weight: bold;
    margin-right: 4px;
    text-shadow: 0 1px 2px rgba(0,50,100,0.1);
}

/* ログインを促す白いボタン */
.btn-login-header {
    display: inline-block;
    padding: 6px 18px;
    background-color: #ffffff;
    color: #0288d1; /* グラデーションに合わせた濃いめの青 */
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,90,150,0.15);
    transition: all 0.3s ease;
}
.btn-login-header:hover {
    background-color: #e0f7fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,90,150,0.25);
}

/* ログアウト・toKnow共通の涼しげな枠線ボタン */
.btn-outline {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background-color: #ffffff !important;
    color: #0288d1 !important;
    border-color: #ffffff !important;
    transform: translateY(-1px);
}




/* スマホ向けの線のデザイン変更 */
@media screen and (max-width: 768px) {
    .open-book { border-width: 8px; }
    .book-left { border-right: none; border-bottom: 2px solid #4fc3f7; }
    .user-menu {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
        gap: 8px;
    }
    .header-user-info {
        width: 100%;
        justify-content: center;
        padding: 6px;
    }
}