/**小説ページ**/
.single-header {
  margin:0 auto 0 !important;
}
.single-title{
  font-size:1.2em!important;
  margin:2px auto;
  color:#2B83AF;	
}

.novel-category{
  padding: 0.25em 0.5em;/*上下 左右の余白*/
  color: #494949;/*文字色*/
  background: transparent;/*背景透明に*/
  border-left: solid 5px #7db4e6;/*左線*/
}

/**小説本文の日付**/
.single-works .day{
	display:none;
}

/**NOVELオーバーレイ表示**/
.announcement-content button{
  background-color:#81d1ce;
  border-radius:3px;
  color:#fff;
}

.announcement-overlay {
  display: none; /* 初期状態で非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* モバイルでも幅が正しく取れるようにvwを使用 */
  height: 100vh; /* 高さもvhで指定 */
  background-color: rgba(0, 0, 0, 0.7); /* 半透明の背景 */
  display: flex;
  justify-content: center;
  align-items: center;
	z-index: 9999999999999;
}

.announcement-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%; /* モバイル向けに幅を制限 */
  box-sizing: border-box;
}

/* スクロール防止用 */
body.no-scroll {
  overflow: hidden;
}

/* モバイル時はメニューバー分あげる */
@media screen and (max-width: 768px) {
.announcement-content {
  margin-bottom: 75px;
}
}

/**閲覧履歴**/
.novel_history {
  position: relative; /* 相対位置指定でボタンの絶対位置を基準に */
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
  background-color: #fff;
  margin-bottom: 20px;
}

.novel_history:first-child{
  margin-top:20px;
}

/* 画像部分 */
.novel_history_image {
  flex-shrink: 0;
}
.novel_history_image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 内容部分 */
.novel_history_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start
  gap: 3px;
}

/* タイトル */
.novel_history_title a {
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #77AEEE;
}

/* タグ・カテゴリ */
.novel_history_tag{
  display: flex;
  color: #0073aa;
  margin-bottom: 10px;
}
.novel_history_tag span a {
  text-decoration: none;
  font-size: 15px;
  border-bottom: 2px solid #67c1ec;
}

.novel_history_cat {
    color: #666;
    display: flex;
    gap: 5px 10px;
    margin-top: 6px;
    flex-wrap: wrap;
    text-align: left;
}

.novel_history_cat span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background-color: #f0f8ff;
  border-radius: 4px;
  font-size: 14px;
}

.novel_history_cat span a {
  color: #0073aa;
  text-decoration: none;
}

/* アイコン追加 */
.novel_history_cat span::before {
  font-family: "Font Awesome 5 Free";
  content: '\f105'; /* > のような矢印 */
  font-weight: 900;
  margin-right: 6px;
  color: #90cbed;
}

/* ファビコンやアイコン */
.novel_history_title:before,
.novel_history_tax:before {
  font-family: "Font Awesome 5 Free";
  content: '\f0da';
  font-weight: 900;
  padding-right: 5px;
  color: #77AEEE;
}

/* ボタン類 */
/* 削除ボタンを右上に固定 */
.remove-history-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  padding: 0;
  z-index: 2;
}
.remove-history-btn button {
  background-color: #d36d6d;
  color: #fff;
  padding: 4px 8px;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.history-sort-btn {
  padding: 5px 10px;
  margin-left: 5px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 14px;
  border-radius: 3px;
}

.history-sort-btn.active {
  background: #27acd9;
  color: white;
  border-color: #27acd9;
}


#history-sort-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#clear_history {
  background: #f44336;
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}



/* モバイル時は縦並びに */
@media screen and (max-width: 768px) {
  .novel_history {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .novel_history_image img {
    width: 100px;
    height: 100px;
  }

  .novel_history_content {
    align-items: center;
  }
}

/**章・続編タイトル**/
.title_line{
  color:#4C6CB3;
  margin:0 auto 15px;
}
.title_line {
  position: relative;/*相対位置*/
  line-height: 1.4;/*行高*/
  display: block;
}

.title_line:before, .title_line:after { 
  position: relative;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  font-size: 1.0em;
  color: #4C6CB3;
}
.title_line:before {
  content:"\f053";/*アイコン種類*/
  padding-right: 0.5em;
}
.title_line:after {
  content:"\f054";/*アイコン種類*/
  padding-left: 0.5em;
}

/**章ページ親タイトル**/

.chapter_title {
	display: flex;
	align-items: center;
	color: #89C3EB;
	margin: 0 auto 40px;
	padding: 8px 10px;
	font-family: 'Mochiy Pop One';
	border-bottom: 1px solid #89C3EB;
	border-top: 1px solid #89C3EB;
}

.chapter_title::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	content: "\f101";
	margin-right: .3em;
	color: #89C3EB;
}
.chapter_title a:link, .chapter_title a:active, .chapter_title a:visited {
	color: #89C3EB;
}

@media screen and (max-width:768px) {
	.page-title-tax{
	font-size: 17px;
}
}

@media screen and (min-width:1024px){
.novel_main_box{
	display:flex;
	justify-content: space-around;
	max-width:800px;
	margin:0 auto;
	align-items: center;
}
.novel_caption{
	width:55%;
	display:flex;
	flex-direction: column;
	justify-content: center;
}
}

/*小説の説明欄の余白*/

.easel_term_disc {
	width: 100%;
	margin: 0 0 20px;
}


/**小説キャッチコピー**/

.catchcopy {
	text-align: center;
	font-weight: 700;
	color: #3e62ad;
	margin-bottom: 15px;
}
/**小説説明文**/

.default_novel_desc {
	padding: 0 10px 15px;
	margin: 0;
}
.term-memorial .default_novel_desc{
	border-bottom:none;
}


/**小説説明文(2カラム)**/
.img_novel_desc ,.novel_desc{
	margin: 0;
	text-align: center;
}
.img_novel_desc p ,.novel_desc p{
	margin-bottom:10px;
}

.long-type{
	padding:10px 0;
}

/**チャプター用タイトル画像**/
/**少し縦幅を縮小**/
.chapter_img{
	height:160px;
	width:100%;
	overflow:hidden;
	display:flex;
	align-items: center;
	justify-content: center;
	margin-bottom:20px;
}

/**小説表紙**/
.default_img {
	text-align: center;
	margin: 0 auto;
	max-width: 250px;
}
.type-page .default_img{
	max-width:280px;
}

/**表紙イラストレーター**/
.illust_name {
	text-align: center;
	margin-bottom: 15px;
}

/**小説R18表記**/

.r18_tag {
	position: relative;
	padding: 6px 2px;
	text-align: center;
	border: 3px solid #a0d8ef;
	background: #fff;
	color: #1e50a2;
	margin: 50px auto 20px;
	border-radius:5px;
	width:100%;
	font-size:15px;
	z-index:0;
}
.r18_tag:before, .r18_tag:after {
	position: absolute;
	content: '';
}
.r18_tag:before {
	top: -40px;
	left: calc(50% - 40px);
	width: 75px;
	height: 70px;
	border: 3px solid #a0d8ef;
	border-radius: 50%;
	background: #fff;
}
.r18_tag:after {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
}
.r18 {
	line-height: 60px;
	position: absolute;
	z-index: 1;
	top: -41px;
	left: calc(50% - 40px);
	width: 80px;
	height: 60px;
	text-align: center;
	color: #c97586;
	font-weight: 600;
	padding-left:2px;
}

.r18_tag .novel_tag {
	position: relative;
	z-index: 1;
}

/**小説タグ**/
div.novel_tag {
	font-size: 15px;
	text-align: center;
	padding: 3px 6px;
	margin: 0 auto 15px;
	width:100%;
	color: #1e50a2;
	border: 3px solid #a0d8ef;
	background-image: linear-gradient(90deg, #a0d8ef 10px, transparent 11px calc(100% - 11px), #a0d8ef calc(100% - 10px));
	background-color:#fff;
	z-index:0;
}

/**小説リンク＆しおり**/
/*最初から読む*/
.novel_menu {
	text-align: center;
	margin: 0 auto 5px;
	color: #165e83;
	font-size:15px;
}
.novel_menu span{
	display:block;
}
/*リンク文字*/
.episode_1 {
	padding: 5px 25px;
	margin: 5px;
	line-height: 3em;
	border: 1px solid;
	border-radius: 5px;
	background-color:#fff;
}

.lastpage{
	text-align:center;
	font-size:15px;
	color:#3e62ad;
}

.list_novel_desc{
	font-size:1.6rem;
	margin-left:15px;
}

@media screen and (max-width:768px) {

	.default_novel_desc {
		padding: 0 5px 15px;
		font-size:17px;
	}
	div.novel_tag{
		margin:5px auto 15px;
		width:95%;
	}
	.r18_tag{
		width:95%;
	}
	div.default_img {
		max-width:300px;
	}
	.novel_caption,.novel_img_box{
	width:100%;
}
	.novel_main_box{
		flex-direction: column;
	}
}


/* ブックマークカード全体 */
.saved-taxonomies-list ul{
  padding: 0;
}

.saved-taxonomy-item {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
  background-color: #fff;
  margin-bottom: 20px;
}

.taxonomy-content {
  display: flex;
  gap: 16px;
  align-items: stretch; /* ← 子要素の高さを揃える */
}

.taxonomy-left {
  flex-shrink: 0;
}

.taxonomy-left img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: block;
}

.taxonomy-right {
    flex: 1;
    display: flex;
    gap: 4px;
    min-height: 120px;
    flex-direction: column;
    align-items: flex-start;
}

/* タイトル */
.taxonomy-title {
  margin: 0 !important; /* ← 上下のmarginをすべて削除 */
}
.taxonomy-title a {
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #77AEEE;
}

/* バッジ風進捗表示 */
.taxonomy-progress {
    display: inline-block;
    background-color: #abd3d0;
    color: #fff;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.4;
    white-space: nowrap;
    margin-bottom: 5px;
}

/* 補足情報 */
.taxonomy-date,
.taxonomy-link,
.taxonomy-count {
  font-size: 14px;
  color: #555;
}

/* 削除ボタン（右上に配置） */
.remove-taxonomy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  padding: 0;
}
.remove-taxonomy-btn button {
  background-color: #d36d6d;
  color: #fff;
  padding: 4px 8px;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {

  .saved-taxonomy-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

.taxonomy-content {
    display: flex;
    flex-direction: column;
}
    .taxonomy-left img {
        width: 100px;
        height: 100px;
        margin: 0 auto 10px;
    }

  .taxonomy-right {
    align-items: center;
  }
}


/* 本棚タブ共通デザイン */
.tab-container {
  width: 100%;
  margin-top: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs .tab-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    background: #EDF4F3;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    border: 2px solid #47b7b4;
    color: #47b7b4;
}

.tabs .tab-link.active {
  background: #47b7b4;
  color: #fff;
  font-weight: bold;
}

.tab-content {
  display: none;
  margin-top: 1em;
  min-height: 400px;
}

.tab-content.active {
  display: block;
}

.swipe-hint {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin: 1em 0;
  display: none;
}

@media screen and (max-width: 600px) {
  .swipe-hint {
    display: block;
  }
.tabs{
justify-content: center;
}
}

/* リニューアル版 - 小説一覧リストスタイル */
.novel-card {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  margin-bottom: 20px;
  overflow: hidden;
}

/* お気に入りボタン（常に右上固定） */
.novel-card .favorite_taxonomy_button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 0;
}

.favorite_taxonomy_toggle {
  background: #fff;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  color: #12b7b4 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* カード内レイアウト */
.novel-card-header {
  display: flex;
  gap: 16px;
}

.novel-card-left {
  flex-shrink: 0;
}

.novel-img img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.novel-card-right {
  flex-grow: 1;
}

.novel_progress {
  display: inline-block;
  background-color: #abd3d0;
  color: #fff;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
  margin-bottom: 5px;
}

.novel-title {
  margin: 0;
}

.novel-title a {
  font-size: 18px;
  font-weight: bold;
  color: #007acc;
  text-decoration: none;
}

.novel-url-link {
  font-size: 14px;
  color: #12b7b4;
  display: inline-block;
  margin-top: 4px;
}

.novel_stats span {
  font-size: 13px;
  color: #666;
  margin-right: 10px;
}

.novel-card-footer {
  margin-top: 10px;
}

.text-explanation {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 10px 0 6px;
}

.novel_tags {
  color: #12b7b4;
  font-size: 13px;
  padding: 4px 0;
  border-top: 1px solid #12b7b4;
  border-bottom: 1px solid #12b7b4;
}

.novel_day {
  font-size: 12px;
  color: #999;
  display: block;
  margin-top: 5px;
}

.novel_list_r18{
  color: #a22041;
  display: block;
  font-weight: 600;
} 

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .novel-card-header {
    flex-direction: column;
    align-items: center;
  }

  .novel-card-left,
  .novel-card-right {
    width: 100%;
  }
  .novel-img{
    display: flex;
    justify-content: center;
}
  .novel-img img {
    width: 100px;
    height: auto;
  }

  .favorite_taxonomy_button {
    top: 8px;
    right: 8px;
  }

  .novel-title a {
    font-size: 16px;
  }
}

/**********************
　小説更新カード
**********************/

.novel_comment , .novel_update {
	width:95%;
}
/*一言コメント*/
.novel_comment{
	text-align:center;
	margin:10px auto 0;
	padding:8px 5px;
	background:#74aee8;
	color:#fff;
	border-radius:10px 10px 0 0;
	line-height:1.8em;
}
.novel_comment li{
	font-weight:600;
	font-size:1.1em;
}

/*更新カード*/
.novel_update{
  line-height: 1.5;
  background: #F5FBFF;
	border-radius: 0 0 10px 10px;
  word-wrap: break-word;
	margin:0 auto 30px;
	padding:8px 8px 25px;
  box-shadow: 0 0 10px 6px rgba(0,0,0,.025);
	position:relative;
	color:#6c848d;
	text-align:center;
}
.novel_update a {
  text-decoration: none;
  opacity: 1;
  transition: all 0.2s ease;
}
.novel_update a:hover {
  opacity: 0.6;
}
/*画像*/
.novel_label_img img{
  padding:15px;
	float:left;
	margin:0;
}

/*カテゴリ*/
.novel_ver{
	position:absolute;
	top:-1px;
	right:10px;
	background:#bf677a;
	padding:8px 20px 10px;
	font-weight:600;
	border-radius:0px 0 10px 10px;
	color:#fff;
	font-size:13px;
}
/*タイトル*/
.parent_title{
	padding:50px 15px 0;
  font-weight: 600;
	word-break: keep-all;
	text-align:left;
}

/*作品説明*/
.novel_pr {
  line-height: 1.6;
  padding: 10px 17px 15px;
	text-align:left;
}
/*話数とレーティング*/
.novel_num{
	padding:0;
	clear:both;
}
.novel_num p,.novel_r18{
	padding:0;
	margin:0;
	display:inline-block;
	font-weight:600;
}
.novel_r18{
	color:#a22041;
}

@media screen and (max-width: 768px) {
	.novel_pr{
		clear:both;
	}
}