/*######################################
	共通定義
######################################*/
/*--------------------------------------
	リセットCSS
--------------------------------------*/
*{
	margin: 0;
	padding: 0;
	color: #eee;
}

a{
	text-decoration: none;
}

a,a:hover,a:visited{
	color: inherit;
}

li {
	list-style: none;
}

/*--------------------------------------
	ヘッダ設定（共通）
--------------------------------------*/
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}

#headerInner{
	background : #000;
}

nav{
}


/*--------------------------------------
	コンテンツ設定（共通）
--------------------------------------*/
/* body */
body{
	background-image: url(img/common/sc_background.webp);
	background-size: cover;
	background-attachment: scroll;
	opacity: 0;
	padding-top: 88px;
	transition: opacity 0.4s ease;
}

/* 最初のフェードイン */
body.fade-in {
	opacity: 1;
	transition: opacity 0.4s ease;
}

/* ロゴ表示 */
#top_image{
	width: 90%;
	margin: 20px auto;
	background-color: #000;
	opacity: 80%;
}

#top_image img{
	width: 100%;
}

/* トップ画面 */
#top_notice{
	width: 80%;
	margin: 0 auto;
	padding: 20px;
	background-color: #000;
	opacity: 80%;
}

/* イントロダクション */
#introduction{
	text-align: center;
	width: 80%;
	margin: 0 auto;
	padding: 20px;
	background-color: #000;
	opacity: 80%;
}

#introduction p{
}

#introduction img{
    display: block;
    margin: 10px auto;
    width: 90%;
}

/* イメージムービー */
#image_movie{
	text-align: center;
	width: 80%;
	margin: 0 auto;
	padding: 20px;
	background-color: #000;
	opacity: 80%;
}

#image_movie img{
    display: block;
	box-shadow: 0px 0px 3px 3px #dad161;
    margin: 10px auto;
    width: 50%;
}

/* コンテンツ内容 */
#contents{
	background-color :#000;
	text-align: center;
	padding: 40px;
}

/* キャラ一覧 */
.character-box{
	clear: both;
	text-align: center;
	margin:10px 0;
	padding: 20px;
}

.character-grid {
	display: grid;
	gap: 10px;
}

.character-card img {
	width: 90%;
	height: auto;
}

.character-card p {
	text-align: center;
	margin-top: 5px;
	font-weight: bold;
}

/* キャラ一覧に戻る */
.back_to_character-list{
	clear: both;
	text-align: center;
}

/* キャラ図鑑（左側） */
.pic_left{
	margin: 10px;
}

.pic_left img{
	width: 100%;
	opacity: 0;
	transform: translateX(-100px);
	transition: opacity 1.8s ease, transform 1.8s ease;
}

.pic_left img.slide-in {
  opacity: 1;
  transform: translateX(0);
}

/* キャラ図鑑（右側） */
.text_right{
	box-shadow: 0px 0px 3px 3px #dad161;
}

.text_right li{
	text-align: left;
}

/* キャラ図鑑（右側）Photo */
.pic_box{
}

.pic_box img{
	width: 100%;
}

.pic_box ul{
	display: flex;
}

/* キャラ図鑑（右側）Movie */
.movie_box img{
	width: 100%;
}

/* 武器図鑑モーダル */
.weapon-modal {
	display: none;
	opacity: 0;
	position: fixed;
	z-index: 9999;
	left: 0; top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	overflow-y: auto;
	transition: opacity 0.5s ease;
}

.weapon-modal-content {
	background: #111;
	color: #fff;
	margin: 5% auto;
	padding: 20px;
	border-radius: 10px;
	width: 90%;
	max-width: 800px;
}

.weapon-modal.show {
	display: block;
	opacity: 1;
}

.weapon-box {
	text-align: center;
}

.weapon-btn {
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

.close {
	font-size: 36px;
	font-weight: bold;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	float: right;
}

/* キャラページ移動ボタン */
.prev, .next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 50px;
  border-radius: 0;
  background: none;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s, background 0.3s;
  z-index: 1000;
}

.prev:hover, .next:hover {
  opacity: 1;
  background: #444;
}

/* 左端（前のキャラ） */
.prev {
  left: 10px;
}

/* 右端（次のキャラ） */
.next {
  right: 10px;
}

.prev img, .next img {
  width: 60px;
  height: 120px;
  display: block;
}

/* 相関図 */
#character_chart{
	background-color: #000;
	text-align: center;
	margin: 20px;
	padding: 40px;
}

/* 関連人物一覧 */
#people {
	background-color :#000;
	text-align: center;
	padding: 40px;
}

#related_people {
	background-color :#000;
	text-align: center;
	padding: 40px;
}

.people-grid{
	display: grid;
	gap: 10px;
}

.people-card img {
	width: 90%;
	height: auto;
}

.people-card p {
	text-align: center;
	margin-top: 5px;
	font-weight: bold;
}

/* 関連人物モーダル */
.people-modal {
	display: none;
	opacity: 0;
	position: fixed;
	z-index: 9999;
	left: 0; top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	overflow-y: auto;
	transition: opacity 0.5s ease;
}

.people-modal-content {
	background: #111;
	color: #fff;
	margin: 5% auto;
	padding: 20px;
	border-radius: 10px;
	width: 90%;
	max-width: 800px;
}

.people-modal.show {
	display: block;
	opacity: 1;
}

.people-box {
	text-align: center;
}

.people-btn {
	cursor: pointer;
	font-size: 1rem;
	background: none;
	border: none;
	padding: 0;
}

.close {
	font-size: 36px;
	font-weight: bold;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	float: right;
}

/* 関連人物一覧に戻る */
.back_to_related_people{
	clear: both;
	text-align: center;
}

/* 用語集一覧 */
#archive {
	background-color :#000;
	text-align: center;
	padding: 40px;
}

#archive-box {
	background-color :#000;
	text-align: center;
	padding: 40px;
}

.archive-grid{
	display: grid;
	gap: 10px;
}

.archive-card img {
	width: 90%;
	height: auto;
}

.archive-card p {
	text-align: center;
	margin-top: 5px;
	font-weight: bold;
}

/* 用語集一覧に戻る */
.back_to_archive{
	clear: both;
	text-align: center;
}

/* 小説化一覧 */
#novelization{
	background-color: #000;
	text-align: center;
	padding: 40px;
}

/* 小説章設定 */
.chapter {
	display: none;
	vertical-align: middle;
	opacity: 0;
}

/* 第一章 */
#chapter1 {
	display: block;
}

/* 続きを読む */
#showMore {
	background: transparent;
	color: #fff;
	border: 1px solid #fff;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1rem;
	transition: background 1s, color 1s;
}

#showMore:hover {
	background: #fff;
	color: #000;
}

.novelization-grid {
	display: grid;
	gap: 10px;
}

.novelization-card img {
	width: 90%;
	height: auto;
}

.novelization-card p {
	text-align: center;
	margin-top: 5px;
	font-weight: bold;
}

/* audio book */
.chapter audio {
	float: right;
	width: 100px;
	height: 1rem;
}

/* 小説化一覧に戻る */
.back_to_novel-list{
	clear: both;
	text-align: center;
}

/*--------------------------------------
	フッダ設定（共通）
--------------------------------------*/
footer{
	background : #000;
	text-align : center;
	padding : 30px;
}

footer p{
	text-align : center;	
}

/*--------------------------------------
  TOPへ戻る
--------------------------------------*/
#page_top{
	width: 50px;
	height: 50px;
	position: fixed;
	bottom: 10px;
	right: 10px;
	background: #aaa;
	opacity: 0.6;
	border-radius: 50%;
	filter: drop-shadow(3px 3px 3px);
}

#page_top a{
	position: relative;
	display: block;
	width: 50px;
	height: 50px;
	text-decoration: none;
}

#page_top a::before{
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	content: '\f102';
	font-size: 25px;
	color: #fff;
	position: absolute;
	width: 25px;
	height: 25px;
	top: -5px;
	bottom: 0px;
	right: 0px;
	left: 0;
	margin: auto;
	text-align: center;
}

/*######################################
	ここまで共通定義
######################################*/

/*######################################
	ここからスマホ表示設定
######################################*/
@media screen and (max-width : 440px){
/*--------------------------------------
	ヘッダ設定（スマホ）
--------------------------------------*/
#headerInner{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 15px;
	position: relative;
}

#header_logo{
	max-width: 250px;
	width: 100%;
	height: auto;
	flex: 1;
}

#header_logo img{
	width: 80%;
	max-width: 150px;
	height: auto;
}

.menu-toggle {
	display: block;
	cursor: pointer;
	font-size: 20px;
	margin-bottom: 0;
	color: #fff;
	z-index: 1001;
}

nav{
}

nav ul{
    display: none;
    flex-direction: column;
	margin: 0;
    padding: 0;
	list-style: none;
	position: absolute;
	top: 100%; 
	left: 0;
	width: 100%;
	background: #111;
	z-index: 1000;
}

nav ul.active {
	display: flex;
}
	
nav ul li{
	padding: 15px;
	border-bottom: 1px solid #333;
}

nav ul li a {
	color: #fff;
	text-decoration: none;
	display: block;
}

/*--------------------------------------
	コンテンツ設定（スマホ）
--------------------------------------*/
/* コンテンツ内容 */
#contents{
	margin : 20px;
}

/* キャラ一覧 */
.character-grid {
	grid-template-columns: 1fr;
}

/* キャラ一覧に戻る */
.back_to_character-list img{
	width: 100%;
}

/* キャラ図鑑（左側） */
.pic_left{
	clear: both;
	width: 95%;
}

/* キャラ図鑑（右側） */
.text_right{
	clear: both;
	width: 90%;
	margin: 5px;
	padding: 15px;
}

/* 武器図鑑モーダル */
.weapon-modal .weapon_item {
	box-shadow: none;
}

.weapon-btn {
	display: inline-block;
}
.weapon-btn img {
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 3px #dad161;
	border: 2px solid #dad161;
	background-color: #000;
}

.weapon_item img{
	text-align: center;
	width: 400px;
	height: 400px;
}

.weapon_text{
	padding: 20px;
}

/* 相関図 */
#character_chart{
	margin: 20px;
}

/* 関連人物モーダル */
.people-modal .people_item {
	box-shadow: none;
}

.people-btn {
	display: inline-block;
}
.people-btn img {
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 3px #dad161;
	border: 2px solid #dad161;
	background-color: #000;
}

.people_item img{
	text-align: center;
	width: 400px;
	height: 400px;
}

.people_text{
	padding: 20px;
}

/* 小説化一覧 */
#novelization{
	margin: 20px;
}

/* 小説章設定 */
/* 第一章 */
#chapter1 {
	opacity: 1;
}

.chapter.visible {
	display: block !important;
	opacity: 1;
	transition: opacity 0.6s ease;
}

.novelization-grid {
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

 .chapter audio {
	float: none;
	display: block;
	width: 100%;
	max-width: 250px;
	margin: 4px auto 10px auto;
}

/* 小説化一覧に戻る */
.back_to_novel-list img{
	width: 100%;
}

/*--------------------------------------
	フッダ設定（スマホ）
--------------------------------------*/

/*--------------------------------------
  TOPへ戻る
--------------------------------------*/
}
/*######################################
	ここまでスマホ表示設定
######################################*/

/*######################################
	ここからタブレット表示設定
######################################*/
@media screen and (min-width : 441px) and (max-width : 1023px){
/*--------------------------------------
	ヘッダ設定（タブレット）
--------------------------------------*/
#headerInner{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 15px;
	height: 80px;
	position: relative;
}

#header_logo{
	max-width: 250px;
	width: auto;
	height: 60px;
	flex: 1;
}

#header_logo img{
	max-width: 300px;
	height: auto;
}

.menu-toggle {
	display: block;
	cursor: pointer;
	font-size: 20px;
	margin-bottom: 0;
	color: #fff;
	z-index: 1001;
}

nav{
}

nav ul{
    display: none;
    flex-direction: column;
	margin: 0;
    padding: 0;
	list-style: none;
	position: absolute;
	top: 100%; 
	left: 0;
	width: 100%;
	background: #111;
	z-index: 1000;
}

 nav ul.active {
	display: flex;
}
	
nav ul li{
	padding: 15px;
	border-bottom: 1px solid #333;
}

nav ul li a {
	color: #fff;
	text-decoration: none;
	display: block;
}

/*--------------------------------------
	コンテンツ設定（タブレット）
--------------------------------------*/
/* コンテンツ内容 */
#contents{
	margin : 20px;
}

/* キャラ一覧 */
.character-grid {
	grid-template-columns: 1fr;
}

/* キャラ一覧に戻る */
.back_to_character-list img{
	width: 100%;
}

/* キャラ図鑑（左側） */
.pic_left{
	float: left;
	width: 100%;
}

/* キャラ図鑑（右側） */
.text_right{
	float: right;
	width: 100%;
	padding: 15px;
}

/* 武器図鑑モーダル */
.weapon-modal .weapon_item {
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 3px #dad161;
	border: 2px solid #dad161;
	background-color: #000;
}

.weapon-btn {
	display: inline-block;
}
.weapon-btn img {
	display: block;
}

.weapon_item{
	width: auto;
	margin: 5px;
	padding: 5px;
	text-align: center;
	box-shadow: 0px 0px 3px 3px #dad161;
}

.weapon_item img{
	width: 300px;
}

.weapon_text li{
	text-align: left;
}

/* 相関図 */
#character_chart{
	margin: 20px;
}

/* 関連人物モーダル */
.people-modal .people_item {
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 3px #dad161;
	border: 2px solid #dad161;
	background-color: #000;
}

.people-btn {
	display: inline-block;
}
.people-btn img {
	display: block;
}

.people_item{
	width: auto;
	margin: 5px;
	padding: 5px;
	text-align: center;
	box-shadow: 0px 0px 3px 3px #dad161;
}

.people_item img{
	width: 300px;
}

.people_text li{
	text-align: left;
}

/* 関連人物に戻る */
.back_to_related_people img{
	width: 100%;
}

/* 用語集に戻る */
.back_to_archive img{
	width: 100%;
}

/* 小説化一覧 */
#novelization{
	margin: 20px;
}

.novel_box{
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.novel_item{
	gap: 20px; 
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 3px #dad161;
}

.novel_item p{
	text-align: left;
}

/* 小説章設定 */
/* 第一章 */
#chapter1 {
	opacity: 1;
}

.chapter.visible {
	display: block !important;
	opacity: 1;
	transition: opacity 0.6s ease;
}

.novelization-grid {
	grid-template-columns: 1fr;
}

/* 小説化一覧に戻る */
.back_to_novel-list img{
	width: 100%;
}

/*--------------------------------------
	フッダ設定（タブレット）
--------------------------------------*/

/*--------------------------------------
  TOPへ戻る
--------------------------------------*/
}
/*######################################
	ここまでタブレット表示設定
######################################*/

/*######################################
	ここからパソコン表示設定
######################################*/
@media screen and (min-width : 1024px) {
/*--------------------------------------
	ヘッダ設定（パソコン）
--------------------------------------*/
#headerInner{
}

#header_logo{
	float: left;
	padding: 0 50px;
}

nav{
	padding: 44px;
}

nav ul{
	float: right;
	list-style: none;
	display: flex;
	justify-content: space-between;
}
	
nav ul li{
	padding: 0 30px;
}

.menu-toggle {
  display: none;
}

/*--------------------------------------
	コンテンツ設定（パソコン）
--------------------------------------*/
/* コンテンツ内容 */
#contents{
	margin : 50px;
}

/* キャラ一覧 */
.character-grid {
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* キャラ一覧に戻る */
.back_to_character-list img{
	width: 500px;
}

/* キャラ図鑑（左側） */
.pic_left{
	float: left;
	width: 45%;
}

/* キャラ図鑑（右側） */
.text_right{
	float: right;
	width: 45%;
	padding: 15px;
}

/* 武器図鑑モーダル */
.weapon-modal .weapon_item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 3px #dad161;
	border: 2px solid #dad161;
	background-color: #000;
}

.weapon-btn img {
	display: block;
}

.weapon_item{
	display: flex;
	align-items: flex-start;
	gap: 16px; 
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 3px #dad161;
}

.weapon_item img{
	width: 300px;
	height: 300px;
	flex: 0 0 300px;
	object-fit: cover;
}

.weapon_text{
	flex: 1;
}

.weapon_text li{
	text-align: left;
}

/* 相関図 */
#character_chart{
	margin: 50px;
}

/* 関連人物 */
.people-grid{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
	width: 100%;
	margin: 50px;
}

/* 関連人物モーダル */
.people-modal .people_item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 3px #dad161;
	border: 2px solid #dad161;
	background-color: #000;
}

.people-btn img {
	display: block;
}

.people_item{
	display: flex;
	align-items: flex-start;
	gap: 16px; 
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 3px #dad161;
}

.people_item img{
	width: 300px;
	height: 300px;
	flex: 0 0 300px;
	object-fit: cover;
}

.people_text{
	flex: 1;
}

.people_text li{
	text-align: left;
}

/* 関連人物一覧に戻る */
.back_to_related_people img{
	width: 500px;
}

/* 用語集一覧 */
.archive-grid{
	 display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
	width: 100%;
	margin: 50px;
}

/* 用語集一覧に戻る */
.back_to_archive img{
	width: 500px;
}

/* 小説化一覧 */
#novelization{
	margin: 50px;
}

.novel_box{
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.novel_item{
	gap: 20px; 
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0px 0px 3px 3px #dad161;
}

.novel_item p{
	text-align: left;
}

/* 小説章設定 */
.chapter {
	transition: opacity 0.6s ease;
}

.chapter.visible {
	display: block;
	opacity: 1;
}

.novelization-grid {
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* 小説化一覧に戻る */
.back_to_novel-list img{
	width: 500px;
}

/*--------------------------------------
	フッダ設定（パソコン）
--------------------------------------*/

/*--------------------------------------
  TOPへ戻る
--------------------------------------*/
}
/*######################################
	ここまでパソコン表示設定
######################################*/

