
@charset "utf-8";

/* =================================================
  モーダル共通
================================================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  z-index: 1000;

  visibility: hidden;
  opacity: 0;
  transition: .3s;

  touch-action: pinch-zoom;
}

.modal.is-open {
  display: flex;
  visibility: visible;
  opacity: 1;
}

body.modal-open {
  overflow: hidden;
}


.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}



.close_icon {
  font-size: 44px;
  color: #f08;
}


.modal {
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.js-modal-open {
  cursor: pointer;
}



.mainSwiper,
.mainSwiper img {
  touch-action: pan-x pan-y pinch-zoom;
}

/* Swiper Zoom用 */
.swiper-zoom-container {
  width: 100%;
  height: 100%;
}


/*colorbox ｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰ*/
/* 通常は隠す */
.charaModal {
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

/* Colorbox内では表示 */
#cboxLoadedContent .charaModal {
  visibility: visible;
  height: auto;
}











/* =================================================
  モーダル本体
================================================= */
.modal_inner {
  position: relative;
  width: 980px;
  max-width: 1000px;
  max-height: 90dvh;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* =================================================
  閉じるボタン
================================================= */


.modal_close {
  position: absolute;
  top: 8px;
  right: 8px;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: 2px solid #000 !important;   /* ← 〇の外枠：薄いグレー */
  background: #000;

  color: #fff;              /* ← × をピンクに */
  font-size: 26px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 10;
	/*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);*/
}





/* =================================================
  モーダル内レイアウト
================================================= */
.chara_box {
  display: flex;
  gap: 0px;
  max-height: 600px;
}

/* 左：テキスト */
.textArea {
  width: 50%;
  padding-right: 0px;/*16px*/
  overflow-y: auto;
	order:1;
	background: url("../images/chara/chara_box_bg.jpg") no-repeat;
	background-position: top left;
}

/* スクロールバー（任意） */
.textArea::-webkit-scrollbar {
  width: 6px;
}
.textArea::-webkit-scrollbar-thumb {
  background: #DDD;/*スライダーの色*/
  border-radius: 3px;
}

/* 右：スライダー */
.sliderArea {
  width: 50%;
  display: flex;
  flex-direction: column;
	order: 2;
	padding: 0 10px 0;
	position: relative;
}
.logo_chara{
	width: 120px;
	height: auto;
	position: absolute;
	z-index: 1001;
	right: 0;
	bottom:64px;
}
.logo_chara img{
	width: 100%;
	height: auto;
}
@media screen and (max-width: 1000px) {
	.logo_chara{
	/*right: 0;*/
	bottom: 50px;
	width: 100px;
}
	}

/* =================================================
  Swiper
================================================= */

.mainSwiper,
.mainSwiper * {
  touch-action: pan-x pan-y pinch-zoom;
}


.mainSwiper {
  flex: 1;
  width: 100%;
}

.mainSwiper .swiper-slide,
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-wrapper{
	align-items: center;
}

.mainSwiper img,
.swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* サムネイル */
.thumbSwiper {
  width: 100%;
  margin-top: 12px;
	margin-bottom: 12px;
}

.thumbSwiper .swiper-slide {
  width: calc((100% - 40px) / 5);
  opacity: 0.5;
  cursor: pointer;
}



/* Swiperボタン非表示 */
.swiper-button-prev,
.swiper-button-next {
  display: block;
}


.thumbSwiper .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #ddd;
  box-sizing: border-box;
}

/* デフォルトアイコンを消す */
.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
}

/* ＜ */
.swiper-button-prev::before {
  content: '＜';
  font-size: 24px;
  font-weight: bold;	
	color: #FF00B3;
}

/* ＞ */
.swiper-button-next::before {
  content: '＞';
  font-size: 24px;
  font-weight: bold;
	color: #FF00B3;
}

/* 共通スタイル */
.swiper-button-prev,
.swiper-button-next {
  color: #000;          /* 色 */
  width: 40px;
  height: 40px;
	 display: none;/* ＜＞を非表示 */
}

.swiper-pagination {/* pagerを非表示 */
  display: none;
}




/* =================================================
  レスポンシブ（1000px以下）
================================================= */
@media screen and (max-width: 1000px) {
  .modal_inner {
    
width: 90%;
  max-width: 90%;
  max-height: 90%;

  }

  .chara_box {
    flex-direction: column;
    max-height: none;
  }

  .sliderArea,
  .textArea {
    width: 100%;
  }

  .mainSwiper {
    height: 45dvh;
  }
	.sliderArea{
		order:1;
		padding: 0;
	}
  .textArea {
    overflow: visible;
	  order:2;
	 
  }
}
