/*
Template:easel
Theme Name:canvas on EASEL
Version: 1.1.0
*/

/* ここから下に書いたCSSが、親テーマCSSに上書きされます。 */

/* プロフィール丸形アイコン＋R18マーク */
.author-profile {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.author-icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ddd; /* 丸形背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-icon-bg .author-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.author-info .r18 {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 5px;
    cursor: help;
}

.author-info p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* SNSアイコン */
.footer-sns a {
    display: inline-block;
    margin-right: 8px;
}

.footer-sns .sns-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* ランダム小説スクロール */
.header-random-novels {
	width: 100%;
	overflow: hidden;
	background: #f2f2f2;
	padding: 5px 0;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

.header-random-novels .marquee {
	display: inline-block;
	white-space: nowrap;
	animation: marquee 15s linear infinite;
}

.header-random-novels .marquee-item {
	display: inline-block;
	margin-right: 40px;
}

.header-random-novels .marquee-item a {
	color: #333;
	text-decoration: none;
}
.header-random-novels .marquee-item a:hover {
	text-decoration: underline;
}

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

/* 必要に応じてレスポンシブ速度調整も可能 */

/* ランダム小説スクロール */
.header-random-novels {
	width: 100%;
	overflow: hidden;
	background: #f2f2f2;
	padding: 5px 0;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

.header-random-novels .marquee {
	display: inline-block;
	white-space: nowrap;
	animation: marquee 15s linear infinite;
}

.header-random-novels .marquee-item {
	display: inline-block;
	margin-right: 40px;
}

.header-random-novels .marquee-item a {
	color: #333;
	text-decoration: none;
}
.header-random-novels .marquee-item a:hover {
	text-decoration: underline;
}

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

.novel-end {
	margin-top: 30px;
	padding-top: 15px;
	border-top: 1px dashed #ccc;
}

.novel-end .chapter-end {
	font-weight: bold;
	text-align: center;
	margin-bottom: 15px;
}

.novel-end .afterword {
	font-size: 14px;
	background: #f9f9f9;
	padding: 10px;
	border-radius: 5px;
}
/* 章末表記 */
.novel-end {
	margin-top: 30px;
	padding-top: 15px;
	border-top: 1px dashed #ccc;
	text-align: center;
}

.novel-end .chapter-end {
	font-weight: bold;
	font-size: 16px;
	margin-bottom: 15px;
}

/* 表示ごとに色分け */
.novel-end .chapter-end.fin { color: #007bff; } /* 青 */
.novel-end .chapter-end.end { color: #28a745; } /* 緑 */
.novel-end .chapter-end.to\ be\ continued { color: #ffc107; } /* 黄 */
.novel-end .chapter-end.おまけ { color: #ff5722; } /* オレンジ */

.novel-ends {
	margin-top: 30px;
}

.novel-end-chapter {
	margin-bottom: 25px;
	border-top: 1px dashed #ccc;
	padding-top: 10px;
	text-align: center;
	position: relative;
}

.chapter-end {
	font-weight: bold;
	font-size: 16px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* 章末タイプごとの文字色・アイコン */
.chapter-end.fin::before { content: "🏁"; }
.chapter-end.end::before { content: "✔️"; }
.chapter-end.to\ be\ continued::before { content: "⏳"; }
.chapter-end.おまけ::before { content: "🎁"; }

/* 文字色 */
.chapter-end.fin { color: #007bff; }
.chapter-end.end { color: #28a745; }
.chapter-end.to\ be\ continued { color: #ffc107; }
.chapter-end.おまけ { color: #ff5722; }

/* あとがきボックス共通 */
.afterword-box {
	margin-top: 10px;
	text-align: left;
	padding: 15px;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 3px 8px rgba(0,0,0,0.1);
	position: relative;
}

.afterword-box strong {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: #333;
}

/* 章末タイプごとのボックス背景・枠線・文字色 */
.chapter-end.fin + .afterword-box {
	background: #e6f0ff;
	border: 1px solid #007bff;
	color: #004080;
}

.chapter-end.end + .afterword-box {
	background: #e6ffe6;
	border: 1px solid #28a745;
	color: #006600;
}

.chapter-end.to\ be\ continued + .afterword-box {
	background: #fff9e6;
	border: 1px solid #ffc107;
	color: #995c00;
}

.chapter-end.おまけ + .afterword-box {
	background: #ffe6de;
	border: 1px solid #ff5722;
	color: #b33a20;
}

/* 折りたたみボタン */
.afterword-toggle {
	cursor: pointer;
	background: #eee;
	border: 1px solid #ccc;
	padding: 3px 10px;
	border-radius: 5px;
	font-size: 13px;
	margin-bottom: 5px;
	transition: background 0.2s ease;
}

.afterword-toggle:hover {
	background: #ddd;
}

/* 折りたたみ内容 */
.afterword-content {
	display: none;
	margin-top: 5px;
	padding: 10px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #ddd;
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}


/* しおりバー */
.novel-bookmarks {
	position: sticky;
	top: 70px;
	background: #fff;
	padding: 5px 10px;
	border-radius: 8px;
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	z-index: 999;
	overflow-x: auto;
}

.novel-bookmarks .bookmark {
	padding: 3px 8px;
	border-radius: 5px;
	font-size: 13px;
	text-decoration: none;
	color: #333;
	transition: all 0.2s ease;
	white-space: nowrap;
}

/* タイプごとの色分け */
.novel-bookmarks .bookmark.fin { background: #007bff; color: #fff; }
.novel-bookmarks .bookmark.end { background: #28a745; color: #fff; }
.novel-bookmarks .bookmark.to\ be\ continued { background: #ffc107; color: #333; }
.novel-bookmarks .bookmark.おまけ { background: #ff5722; color: #fff; }

.novel-bookmarks .bookmark.active {
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	transform: scale(1.05);
}
