@charset "utf-8";
/* CSS Document */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap');
@import"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200";

/*全体
------------------------------------------*/


body{
background:#1f2c5d;
margin:0;
font-size:14px;
line-height:140%;
color:#688dad;
-webkit-text-size-adjust: 100%;
font-family:'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
width:100%;
height:100%;
}
div,p,dl,dt,dd,ul,li,img,h1{margin:0;padding:0;border:0;}
a{text-decoration:none;outline:none;color:#6acee2;
	transition: 0.25s;
}
a:hover{opacity:0.7;}
a:focus{outline:none;}
li{list-style:none;}
#wrap{
background:#222037 url(img/top.png) 50% 0 no-repeat fixed;
padding-top:520px;
width:100%;
min-width:940px;
}



#header{
width:100%;
height:55px;
background:#1f2c5d;
position:fixed;
z-index:1200;
border-bottom:2px solid #829fd6;
top:0;
}
#header h1{
position:absolute;
left:2%;
top:2px;
}


/* ナビゲーション */
.nav {
  display:flex;
  gap:25px;
  list-style:none;
  margin:0;
  padding:15px;
  margin-top: -4px;
  justify-content:flex-end; /* 右寄せ */
}
.nav > li {
  position:relative;
}
.nav > li > a {
  color:#829fd6;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  text-decoration:none;
  font-size:18px;
  padding:8px 5px;
  display:block;
  cursor:pointer;
	transition: 0.25s;
}
.nav > li > a:hover {
  color:#6acee2;
}

/* サブメニュー（スライド+フェード） */
.submenu {
  max-height:0;
  opacity:0;
  overflow:hidden;
  border-top:none;
  list-style:none;
  padding:0;
  padding-top:5px;
  margin:0;
  margin-top: 10px;
  position:absolute;
  top:100%;
  left:0;
  width:180px;
	background: rgba(31,44,93,0.8);

  transform:translateY(-10px);
  transition:max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}
.submenu li a {
  display:block;
  padding:13px;
  color:#c2ccdf;
  text-decoration:none;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size:18px;
}

nav.globalMenuSp ul li a {
  display:none;
}

/* ========== ハンバーガーメニュー ========== */
.hamburger {
  display:none;

}


/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
body {
font-size:13.5px;
}

  .nav {
  display:none;
  }

.hamburger {
	display : block;
	position: fixed;
	z-index : 1003;
	right: 13px;
	top	 : 5px;
	width : 42px;
	height: 42px;
	cursor: pointer;
	text-align: center;
	z-index : 1300;
}

.hamburger span {
	display : block;
	position: absolute;
	width	 : 30px;
	height	: 2px ;
	left		: 6px;
	background : #829fd6;
	-webkit-transition: 0.3s ease-in-out;
	-moz-transition	 : 0.3s ease-in-out;
	transition				: 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
	top: 10px;
}
.hamburger span:nth-child(2) {
	top: 20px;
}
.hamburger span:nth-child(3) {
	top: 30px;
}

/* active時 */
.hamburger.active span:nth-child(1) {
	top: 20px;
	left: 6px;
	background: #c2ccdf;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
	top: 20px;
	background: #c2ccdf;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	transform: rotate(45deg);
}

nav.globalMenuSp {
	position: fixed;
	z-index : 1000;
	top: 0;
	right: -20px;
	color: #c2ccdf;
	background: rgba(31,44,93,0.8);
	text-align: left;
	padding: 10px;
	transform: translateX(300px);
  opacity: 0;                    /* 透明にする */
	transition: all 0.6s;
	width: 300px;
	height: 100dvh

}
nav.globalMenuSp ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.globalMenuSp ul li {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

nav.globalMenuSp ul li a {
  display: block;
  padding: 15px 20px;
  color: #c2ccdf;
  text-decoration: none;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
}

/* サブメニュー非表示 */
.submenu2 {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  margin: 0;
  padding: 0;
}

/* サブメニュー表示 */
.submenu2.active {
  max-height: 500px; /* 開くときの高さ */
  opacity: 1;
}

.submenu2 li a {
  padding: 12px 30px;  /* インデント */
  font-weight: normal;
}
/* このクラスをjQueryで付与・削除する */
nav.globalMenuSp.active {
  transform: translateX(0px);
  opacity: 1;                     /* 表示 */
  pointer-events: auto;           /* クリック有効 */
}
}

/* 開いた時 */
.submenu.open {
  max-height:500px; /* サブメニューの高さ以上にする */
  opacity:1;
  transform:translateY(0);
}

.novel_list {
  display: grid;
  grid-template-columns: 1fr; /* PCでもスマホでも1列 */
  gap: 20px;
  list-style: none;
  padding:0;
  margin: 0;
}

.novel_list li {
  margin: 0;
}

/* ▼ カード形式 */
.novel-card {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  align-items: flex-start;
  border: double 4px #829fd6;
}

/* サムネイル */
.novel-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.novel-info {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.novel-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: bold;
border: none;
}

.novel-info h3 a {
  text-decoration: none;
  color: #fff;
}

.novel-info h3 a:hover {
  text-decoration: underline;
}

.novel-info p {
  margin: 20px 0 30px 0;
  font-size: 13px;
}

.novel-info .title {
  font-weight: bold;
  font-size: 14px;
  margin: 15px 0 5px 0;
}

.novel_list_mini {
  columns: 2 auto;
  gap: 20px;
  padding: 0;
  margin: 0;
}


.novel_list_mini li {
  margin: 0;
  break-inside: avoid;
  line-height: 2.0;
}

.novel_short {
  list-style: none;
}
.novel_short li {
  display: inline;
  word-wrap: break-word;
color:#c2ccdf;
  word-break: initial;
  line-height: 2.0;
  padding-right: 5px;

}
.novel_short li:not(:last-child):after {
  content: "|";
  padding-left: 10px;
  opacity: .5;
  position: relative;
  top: -1px;
}

.charas {
  margin-top:-2em;
  margin-bottom:2em;
  display: flex;
  flex-wrap: wrap;
  width: 100%;

}

.chara {

  display:block;
  margin: 25px 8px 8px 15px;
}

.chara_img img {
  height: 136px;
  width: 120px;
  object-fit: cover;
  display: flex;
}

/*アイコンの下の名前*/
figcaption {
  padding:0;
  margin-top: 5px;
  font-size:11px;
  text-align:center;
  font-weight: bold;
color:#c2ccdf;
}

.banner-wrapper {
  display: flex;
  gap: 15px;              /* バナー同士の余白 */
  flex-wrap: wrap;        /* スマホでは折り返し */
  margin-top: -20px;
}

.banner-wrapper img {
  width: 88px;   /* バナーの幅（揃える） */
  height: 31px;   /* バナーの高さ（揃える） */
  object-fit: cover; /* 画像が伸びないように調整 */
  display: block;
}



.toc {
  margin: 20px 0;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border: double 4px #829fd6;
  overflow: hidden;
}

.toc-toggle {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 10px 15px 10px 35px; /* 左に余白を追加 */
  font-size: 16px;
  cursor: pointer;
  position: relative;
color:#c2ccdf;
}

/* 初期状態：右向き ＞ */
.toc-toggle::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #829fd6;
  border-bottom: 2px solid #829fd6;
  transform: translateY(-50%) rotate(-45deg); /* ＞ */
  transition: transform 0.3s ease;
}

/* 開いたとき：下向き ∨ */
.toc-toggle.active::before {
  transform: translateY(-50%) rotate(45deg); /* ＞ → ∨ */
}



/* 目次リスト */
.toc-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s ease, opacity 0.4s ease;
  opacity: 0;
  padding: 0 15px;
  margin: 0;
  list-style: none;
}

.toc-list.active {
  max-height: 550px;
  opacity: 1;
}

/* メイン項目 */
.toc-list > li {
  margin: 8px 0;
}

/* サブ項目 */
.toc-list ul {
  margin: 6px 0 6px 15px;   /* インデント */
  padding-left: 10px;       /* 余白 */
  border-left: double 4px #829fd6; /* 左に線 */
  list-style: none;
  font-size: 14px;          /* 少し小さめ */
}

.toc-list ul li {
  margin: 5px 0;
}

.banner-list {
  display: flex;              /* 横並び */
  gap: 30px;                  /* バナー間の余白 */
  flex-wrap: wrap;            /* スマホでは折り返す */
  margin-top: 40px;
}

.banner-item {
  max-width: 200px;           /* バナーごとの幅を揃える */
}

.banner-item img {
  width: 100%;
  height: auto;
  display: block;
}

.site-title {
  font-size: 15px;
  font-weight: bold;
  margin: 8px 0 4px;
border: none;
}

.admin-name {
  font-size: 13px;
  color: #c2ccdf;
}

@media (max-width: 768px) {

.banner-list {
  margin-top: 60px;
}

.banner-item {
  margin-top: -10px;
}
}

.top {
  width: 100%;
margin: 0 auto;
  text-align: center;
}

.page-top {
  position: fixed;
  bottom: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: #1f2c5d;
  border: 2px solid #1f2c5d;
  color: #829fd6;
right: 0;
}

.page-top::before {
  font: 500 20px/1 "Material Symbols Rounded";
  content: "\eacf"
}

.page-top button {
 position: relative;
}



.is-active {
  opacity: 1;
  visibility: visible;
}

.em_2 {
    font-weight: bold;
  background: linear-gradient(transparent 50%, #3d7d96 50%);
}


.wrapper{
width:900px;
margin:0 auto;
overflow:hidden;
}
.contents{
background:url(img/black.png);
width:80%;
margin:0 auto;
text-align:center;
padding-bottom:30px;
}

@media (max-width: 768px) {


#wrap{
  position: relative;
  z-index: 1;
  background: none; /* ← 背景を持たせない */
  min-width: auto;                 /* 固定幅を解除してレスポンシブに */
padding-top:350px;
}


#wrap::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url(img/top2.png) 50% 0 no-repeat;
  z-index: -1; /* 背景に回す */
}

.wrapper{
width:100%;
}

.contents{
width:90%;
padding:0 20px;

}

.footer{
width:90%;
}

.novel_list_mini {
  columns: 1 auto;
  padding: 0;
  margin: 0;
}
}
#backline{
padding:50px 0;
}

.logo {
margin-top: -191px;

}

h2 {
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
font-size:2rem;
color:#829fd6;
margin:0 auto;
padding:50px 0;
position: relative;
}

.h2-icon {
  display: block;
  margin: 0 auto 20px;
  margin-top: 20px;
  width: 100px;
  height: auto;
}

	h3{
		margin: 0 0 0.5em 0;
		padding: 0.2em;
		font-size: 1.4em;
		font-weight: 700;
		font-family: "Bodoni Moda", serif;
color:#829fd6;
		border-bottom: 2px solid #829fd6;
	}

h4 {
  display: flex;
  font-weight: 700;
font-family: "Bodoni Moda", serif;
  align-items: center;
  gap: 10px;
		padding: 0.25em;
		font-size: 1.1em;
		margin: 1.0em 0 0.5em 0;
color:#829fd6;
}
h4::before {
  display: inline-block;
  content: "";
  width: 15px;
  height: 1px;
  background-color: #829fd6;
}

selection {
padding:30px;
color:#c2ccdf;
  text-align: left;
	font-family: "メイリオ", Meiryo, sans-serif;
	font-weight: 400;
	line-height: 1.6;
    width: 100%;
}

selection p {
margin-bottom: 50px;
}

selection .img {
  text-align: left;
  width: 100%;
}

.txt {
  font-family :serif;
   font-size: 1.4rem; 
  margin-bottom: 1.3em;
  margin-top: -1em;
}


/* 基本スタイル（親アコーディオン） */
.accordion {
  max-width: 750px;
  width: 100%;
  border-top: 1px solid #829fd6b3;
}

.accordion-item {
  border-bottom: 1px solid #829fd6b3;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 10px;
  padding-top: 20px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color:#c2ccdf;
  font-weight: 500;
  transition: color 0.3s;
}

.accordion-header:hover {
  color: #8ddfe0;
}

/* 左側矢印 */
/* 左側の線矢印 */
.accordion-header .icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #829fd6;
  border-bottom: 2px solid #829fd6;
  transform: rotate(-45deg); /* 初期：＞ */
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* 開いたとき：下向き ∨ */
.accordion-header .icon.rotate {
  transform: rotate(45deg); /* ＞ → ∨ */
}


.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding: 0 10px;
  color:#c2ccdf;
  font-size: 14px;
  line-height: 1.6;
}

.accordion-content.open {
  opacity: 1;
  padding: 10px 10px;
}

/* 子アコーディオン */
.accordion.child .accordion-header {
  font-size: 14px;
  font-weight: 400;
  padding-left: 20px;
  color:#c2ccdf;
}

.accordion.child .accordion-header:hover {
  color: #8ddfe0;
}

/* ------------------------
   レスポンシブ調整
-------------------------*/

/* 幅が狭くなったら文字サイズ・パディング調整 */
@media (max-width: 700px) {
  .accordion-header {
    font-size: 15px;
    padding: 20px 8px 15px 8px;
    margin-bottom: -25px;
  }

  .accordion.child .accordion-header {
    font-size: 13px;
    padding-left: 16px;
  }

  .accordion-content {
    font-size: 13px;
    line-height: 1.5;
    padding: 8px;
  }

  .accordion-content p {
    padding-top: 25px;
  }
  .accordion-content h4 {
    padding-top: -12px;
    margin-bottom: -15px;
  }

.txt {
   font-size: 1.2rem; 
}

selection .img img {
  width: 100%;
}

.h2-icon {
  width: 80px;
  height: auto;
}

}


.about_box {
  display: flex;              /* 横並び */
  gap: 25px;                  /* カラム間の余白 */
  max-width: 100%;           /* コンテナの最大幅 */ 
  flex-wrap: wrap;            /* 狭いときに折り返す準備 */
}

.about {
  flex: 1;                    /* 均等に幅を割り当て */
  max-width: 500px;           /* カラムが潰れないように下限を設定 */
}

/* スマホサイズ対応 */
@media (max-width: 768px) {
  .about_box {
  gap: 0px;   
    flex-direction: column;   /* 縦並びに切り替え */
  }
  .about {
    width: 100%;

  }

.logo {
margin-top: -190px;

}
}

	ul.basic_info{
		margin: 1.5em 0;
color:#c2ccdf;
	}
	ul.basic_info li{
		margin: 0.5em 0;
	}
	ul.basic_info b{
		display: inline-block;
		width: 7.5em;
		margin-right: 0.5em;
		border-right: #c2ccdf 1px solid;
	}

	ul.basic_info img{
}	

/* サブメニュー初期状態 */
.basic-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s ease, opacity 0.4s ease;
  color: #c2ccdf;
  font-size: 14px;
  list-style: disc;
}

/* 開いたとき */
.basic-submenu.active {
  max-height: 500px;
  opacity: 1;
}

/* Databaseのボタン */
.basic-submenu-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.accordion-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1em;
  font-size: 1rem;
  color: #c2ccdf;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  position: relative;
  border-bottom: 2px solid #829fd699;
}

.accordion-summary::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #829fd6;
  border-bottom: 2px solid #829fd6;
  transform: rotate(45deg); /* ▼（∨） */
  transition: transform 0.3s ease;
  margin-left: 8px;
}

/* 開いたとき → Λ（∧） */
.accordion01.open .accordion-summary::after {
  transform: rotate(-135deg);
}


.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 15px;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.accordion-content dl.data {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 15px;
  width: calc(100% - 20px - 15px);
  margin: 0;
  margin-top: 5px;
  margin-bottom: 18px;
    font:400 15px/23px 'Lato', sans-serif;
}


.accordion-content dl.data dt,
.accordion-content dl.data dd {
  padding: 0;
  margin: 0;
  border: 0;
  margin-bottom: -5px;
}

.accordion-content dl.data dt {
  width: 100px;
background: #c2ccdf;
color: #688dad;
  border-radius: 5px;
  text-align: center;
}

.accordion-content dl.data dd {
  width: calc(100% - 100px - 15px)
}

.accordion-content dl.data dd ul {
  padding-left: 25px
}

.accordion-content dl.data dd ul.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.accordion-content dl.data dd ul.tags li {
  padding: 0 7px;
  border: 2px solid #29486250;
  border-radius: 2px
}

.accordion-content h3 {
margin-top: -40px;
  border-bottom: none;
}

.accordion-content .tet {
margin-bottom: 80px;
}

/* モーダルを開くボタン */
.modal-open{
  cursor: pointer;
}

.modal-content a {
  border-bottom: none;   /* ← 下線を消す */
  text-decoration: none !important; /* 念のため */
  color: #1f2c5d;        /* お好みで色を指定 */
}

/* モーダルと背景の指定 */
.modal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: #1f2c5d50;
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
  z-index: 2200;
}


/* モーダルの擬似要素の指定 */
.modal:before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  margin-left: -0.2em;
}

/* クラスが追加された時の指定 */
.modal.is-active{
  opacity: 1;
  visibility: visible;
}

/* モーダル内側の指定 */
.modal-container{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 850px;
  width: 90%;
}

/* モーダルを閉じるボタンの指定 */
.modal-close{
  position: absolute;
  top: 15px;              /* 内側に余白 */
  right: 15px;
  width: 25px;            /* 少し小さめでもOK */
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2c5d;
  cursor: pointer;
  z-index: 210;
}

/* 擬似要素で線を2本描いて「×」を作る */
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;                /* 線の太さ */
  background-color: #1f2c5d;  /* ×の色 */
  transform-origin: center;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

/* モーダルのコンテンツ部分の指定 */
.modal-content{
  position: relative; 
  background: #dae5ef;
  text-align: left;
  line-height: 1.5;
  padding: 40px 20px 20px;        /* 上部に余白（ボタン分 + マージン） */
    display: flex;
    gap: 20px;
  border-radius: 4px;
}

/* モーダルのコンテンツ部分のテキストの指定 */
.modal-content p{
  margin: 1em 0;
}

.modal-content .character-image {
    flex: 0 0 35%;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: -20px;
    align-items: center;
}

.modal-content .character-large-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.modal-content .modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-content .character-modal-name-wrapper {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.modal-content .character-modal-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.modal-content h3 {
		border-bottom: transparent;
margin: 0;
    color: #1f2c5d;
}

.modal-content .character-modal-reading {
    font-size: 1rem;
    font-weight: 400;
    color: #1f2c5d;
}

.modal-content .character-details {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.modal-content .character-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 12px;
    border-bottom: 1px solid #1f2c5d;
}

.modal-content .detail-label {
    background-color: #1f2c5d;
    color: #dae5ef;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.modal-content .detail-value {
    font-size: 1rem;
    color: #1f2c5d;
}

.modal-content .modal-description {
    margin: 10px 0;
    background: none;
    padding: 0;
    line-height: 1.3;
    color: #1f2c5d;
}

.modal-content span .txt {
font: 500 1.4rem/1 serif;
margin-top: 25px;
}

a .modal-content {
text-decoration: none;
}

@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    align-items: flex-start; /* 左寄せに変更 */
  }

  .modal-content .character-image {
    flex: 0 0 auto;      /* 固定幅解除 */
    max-width: 100%;     /* スマホ幅いっぱい */
    align-items: flex-start; /* 中身（画像や要素）も左寄せ */
  }

  .modal-content .character-large-image {
    max-width: 100%;     /* 横幅にフィット */
    height: auto;
  }

  .modal-content .modal-info {
    width: 100%;         /* テキストエリアも全幅に */
  }

  .modal-content .character-modal-name {
    font-size: 1.6rem;   /* 少しだけ小さめに */
  }

.modal-content .txt {
font: 500 1.2rem/1 serif; 
}
}

/* 006 */
.modal-content .button_more a {
    position: relative;
    display: flex;
    justify-content: space-around;
  text-decoration: none;
    max-width: 60px;
    padding: 5px 20px;
    color: #1f2c5d;
    transition: 0.3s ease-in-out;
    font-weight: 500;
    font-family: "Noto Serif JP", serif;
    margin: -10px 0 0 auto;
    right: 2.2em;
}
.modal-content .button_more a:before {
    content: '';
    position: absolute;
    top: calc(50% - 2px);
    right: -2em;
    transform: translateY(calc(-50% - 2px)) rotate(30deg);
    width: 12px;
    height: 1px;
    background-color: #1f2c5d;
    transition: 0.3s;
}
.modal-content .button_more a:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2em;
    transform: translateY(-50%);
    width: 40px;
    height: 1px;
    background-color: #1f2c5d;
    transition: 0.3s;
}
.modal-content .button_more a:hover:before, .button_more a:hover:after {
    right: -2.5em;
}
.modal-content .button_more a:hover {

    color: #8ddfe0;
}

.button_back a {
    display: flex;
  margin: 10rem 0.8rem;
  text-align: center;
  justify-content: center;
  align-items: center;
  text-decoration: none;
    max-width: 120px;
    padding: 10px 25px;
    color: #829fd6;
    transition: 0.3s ease-in-out;
		font-weight: 700;
		font-family: "Bodoni Moda", serif;
font-size:16px;
}

.page_buttons {
   display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
margin-bottom:-140px;
}

.button_back a:hover {
    color: #8ddfe0;
}

hr {
 height: 1px;
 background-color: #829fd6;
 width: 85%;
 border: none;
margin-top: 150px;
margin-bottom:-100px;
}



.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2em 0;
  color: #829fd6;
  font-size: 1.5em;
  margin-top: 150px;
  margin-bottom:-140px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #829fd6;
  margin: 0 1em;
}

.divider::before {
  margin-right: 0.1em;
}
.divider::after {
  margin-left: 0.1em;
}





.box{
border: double 4px #829fd6;
padding:30px;
text-align:left;
  position: relative;
 box-sizing: border-box; /* ← これを追加 */
}


.info-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 900px;
  margin: 80px auto 50px;
}

.info-image img {
  width: 100%;
  max-width: 350px; /* 画像の幅を制御 */
  height: auto;
  border-radius: 8px;
}

/* 右側テキスト部分 */
#info {
  flex: 1;
  margin: 0; /* auto の余白は不要 */
 background: url(img/info.png) no-repeat;
background-position: 260px 1px;/*右端、上から30px*/
}



#info h2 {
  margin: -20px 0 -20px;
  color: #829fd6;
  font-size: 20px;
}

#info b {
  font-size: 14.5px;
}

/* スマホ用（1カラム） */
@media (max-width: 768px) {
  .info-wrapper {
  max-width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .info-image img {
    max-width: 100%;
  }

  #info {
    width: 100%;
 background: url(img/info.png) no-repeat;
background-position: 120px 1px;/*右端、上から30px*/
  }

}


.chara_data_img {
text-align: center;
}

.chara_data_img img {
max-width: 100%;
width: 589px;
}

.chara_datas {
  display: grid;
  grid-template-columns:1fr 1fr;
margin-bottom: 15px;
}

dl.chara_data {
  display: flex;
    flex-wrap: wrap;
width: 100%;
}

dl.chara_data dt {
text-align: center;
padding: 5px 5px;
margin: 5px;
width: 150px;
border-radius: 5px;
background: #c2ccdf;

color: #688dad;

font-weight: 700;
}

dl.chara_data dd {
width: 250px;
margin-left: 15px;
padding: 8px 5px;
}

.image-wrapper {
  position: relative;
  display: inline-block; /* 必要に応じて block/flex に */
}

.image-wrapper img {
  display: block;
  filter: grayscale(90%); /* 白黒にする */
  transition: filter 0.3s ease;
}

.image-wrapper .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: "Bodoni Moda", serif;
  text-align:center;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 0 3px rgba(0,0,0,0.95);
  pointer-events: none; /* クリックを邪魔しない */
}

/* マウスオーバーで少し強調させたい場合 */
.image-wrapper:hover img {
  filter: grayscale(60%);
}


.prf {
text-align:left;
}

.footer{
width:60%;
margin:100px auto 0;
background:#dae5ef;
text-align:center;
padding-top:20px;
border-top-right-radius:1.5em;
border-top-left-radius:1.5em;
}


@media (max-width: 768px) {
.footer{
width:70%;
}


}

.footer p {
margin-top: 25px;
}

.button-group {
  display: flex;          /* 横並び */
  flex-wrap: wrap;
  gap: 10px;              /* ボタン同士の間隔 */
  margin: 20px 0;
}

.button-group a {
  display: inline-block;
  padding: 8px 28px 8px 16px;
  border: 1px solid #829fd6;
  border-radius: 20px;
  color: #829fd6;
  text-decoration: none;
  position: relative;
  transition: all 0.35s;
}

/* 矢印をCSSで作る */
.button-group a::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid #829fd6;
  border-bottom: 1px solid #829fd6;
  transform: translateY(-50%) rotate(-45deg); /* ＞ */
  transition: transform 0.3s ease;
}


.button-group a:hover {
  background: rgba(255,255,255,0.05);    /* ホバー時背景色 */
  color: #829fd6;            /* 文字色変更 */
opacity:1;
}

@media (max-width: 768px) {

.button-group {
  gap: 10px;              /* ボタン同士の間隔 */
}

.button-group a {
  margin: 20px 0 0 0;
}

}
