@font-face {
font-family: Inter;
font-display: swap;
src: url("../../fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("TrueType");
}
@font-face {
font-family: Noto_Sans;
font-display: swap;
src: url("../../fonts/Noto_Sans_JP/NotoSansJP-VariableFont_wght.ttf") format("TrueType");
}

*{box-sizing: border-box;}

html,body{
	padding:0;
	margin:0;
	font-family: 'Inter', 'Noto_Sans', sans-serif;
	overflow-x:hidden;
}

body{
  background-color:#f0f0f0; /* 背景色をグレーに設定 */
  background-image: radial-gradient(#ddd 1px, transparent 1px); /* 水玉の大きさと色を設定 */
  background-size: 10px 10px; /* 20px四方に水玉を配置 */
}


header{
  position: relative;
  display: flex;
  justify-content:center;
  align-items: center;
  padding:0 20px;
  height:50px;
  background:#FFF;
  box-shadow:0px 0px 10px #0003;
}

header button{
  position: absolute;
  top:10px;
  right:20px;
  border:1px solid #666;
  color:#333;
  background:#FFF;
  border-radius: 7px;
  line-height: 1.0;
  height:30px;
  width: 60px;
  font-szie:12px;
  cursor: pointer;
}

header button:hover{
  background:#666;
  color:#FFF;
}

header #logo{
  display:none;
}

header #logo.yes{
  display:block;
}

header #logo.yes img{
  height:40px;
  width:auto;
}

#zoom{
  position:absolute;
  top:calc(50% - 5px);
  left:calc(50% - 5px);
  width:10px;
  height:10px;
  background:#0005;
  z-index: 10000;
  pointer-events: none;
  transition-duration: 0.5s;
  opacity:0;
  background-size:auto !important;
}

#zoom.left,
#zoom.right{
  border-radius: 8px;
  border:5px solid #FFF;
  top:0;
  width:50%;
  height:70%;
  opacity:1;
  transition-duration: 0s;
  box-shadow: 3px 3px 5px #0006;
}

#zoom.left{
  left:0;
}

#zoom.right{
  left:50%;
}

#taskBar{
  position:fixed;
  bottom:0;
  left:0;
  display:flex;
  justify-content: center;
  align-items: center;
  width:100%;
  background:#666;
  padding:0 20px;
  height:50px;
}

#taskBar .sp,
#taskBar .pc{
  display:flex;
  justify-content: center;
  align-items: center;
  gap:10px;
}

#taskBar .sp{
	display:none;
}


#taskBar button{
  padding:0 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  border:1px solid #ccc;
  background:#666;
  height:30px;
  border-radius: 7px;
  font-size: 14px;
  cursor: pointer;
}

#taskBar button:hover{

}

#taskBar button img{
  width:12px;
  height:auto;
}

#taskBar button#index img,
#taskBar button#zoomIn img,
#taskBar button#zoomOut img,
#taskBar button#print img{
  height:16px;
  width:auto;
}

#taskBar button#ppdfview img{
  width:16px;
}


#spage,
#page{
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  width:80px;
  height:30px;
  background:#FFF;
}

#spage{
  width:60px;
}


#VisibleBook{
  position: relative;
  display:flex;
  justify-content: center;
  align-items: center;
  height:calc(100vh - 100px);
}

#catalog{
  position: relative;
  height:calc(100% - 40px);
  padding:0;
  margin:0;
  line-height: 1.0;
  font-size:0;
  display: flex;
  align-items: center;
/*  overflow: hidden;*/
}

#catalog.zoom > div{
  cursor: zoom-in;
}

#catalog div{
  background-size:cover;
  overflow: hidden;
}

#catalog div:after{
  display:block;
  content:"";
  width:100%;
  max-width:50px;
  height:100%;
  background: linear-gradient(90deg,#0001,#0000);
}

#catalog div#first{
  position:absolute;
  top:0;
  right:0;
  background:#FFF;
  height:50%;
}

#catalog div.l{
  position:absolute;
  top:0;
  left:100%;
  height:100%;
  width:0;
  transition-duration: .4s;
  overflow: hidden;
  background-position:left;
  box-shadow:-10px 5px 10px #0001;
}

#catalog div.l:after{
  margin:0 0 0 auto;
  background: linear-gradient(90deg,#0000,#0001);
}

#catalog div.r{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:0%;
  background-position:top 0 right 0;
  background-size:cover;
  background-repeat: no-repeat;
  transition-duration: .4s;
  box-shadow:0px 5px 10px #0001;
  clip-path: inset(0 0 0 0);
}


#catalog > div.l.active{
  left:0;
  width:50%;
}

#catalog > div.r.active{
  width:50%;
  clip-path: inset(0 0 0 0);
}

#catalog div.r.center{
/*  right:50%;
  background-position: left;
  width:0;*/
  clip-path: inset(0 100% 0 0);
  will-change: clip-path; /* クリッピングの変更を最適化 */
}

/*#catalog div img{
  object-fit: cover;
}
*/

#catalog div.c1{
  width:50%;
}


#catalog span.flip{
  display: flex;
  justify-content: center;
  align-items: center;
  width:36px;
  height:36px;  
  position: absolute;
  top:calc(50% - 20px);
  z-index:10000;
  background:#999;
  opacity:0.3;
  cursor: pointer;
  transition-duration: .2s;
}

#catalog span.flip.next{right:-40px}
#catalog span.flip.back{left:-40px}

#catalog span.flip:hover{opacity:0.8}

#catalog span.flip img{
  width:16px;
  height;auto;
}

/* indexList -------------------*/

#indexList{
  position:fixed;
  top:60px;
/*  left:0;*/
  left:-100%;
  width:260px;
  height:calc(100% - 120px);
  background:#636465dd;
  border-radius: 0 8px 8px 0;
  box-shadow: 3px 3px 10px #0006;
  border-top:2px solid #FFF6;
  border-right:2px solid #0006;
  border-bottom:2px solid #0009;
  transition-duration: 0.5s;
  z-index:10000;
  padding-top:20px;
}

#indexList .close{
  position:absolute;
  top:0px;
  right:5px;
  width:30px;
  height:30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color:#FFF;
  cursor: pointer;
}


#indexList.active{
  left:0;
}

#indexList #indexMenu{
  list-style: none;
  padding:3px;
  margin:10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height:30px;
  gap:3px;
  line-height: 1.0;
  background:#0006;
}

#indexList #indexMenu li{
  display: flex;
  justify-content: center;
  align-items: center;
  flex:1;
  height:100%;
  font-size:14px;
  cursor: pointer;
  border-radius: 4px;
}


#indexList #indexMenu li.image{
  border:inset 1px;
  pointer-events: none;
  background:#ccc;
}

#indexList #indexMenu li.text{
  border:outset 1px;
  pointer-events: auto;
  background:#FFF;
}

#indexList.text #indexMenu li.image{
  border:outset 1px;
  pointer-events: auto;
  background:#FFF;
}

#indexList.text #indexMenu li.text{
  border:inset 1px;
  background:#ccc;
  pointer-events: none;
}

#indexList .listBox{
  position:relative;
}

#indexList .listBox div.text,
#indexList .listBox div.image{
  position:absolute;
  top:0;
  width:100%;
  height:calc(100vh - 200px);
  padding:20px;
  transition-duration: .5s;
  overflow-x: auto;
}

#indexList .listBox div.text{
  left:-100%;
  color:#FFF;
  opacity:0;
}

#indexList .listBox div.image{
  left:0;
  opacity:1;
}

#indexList.text .listBox div.text{
  left:0;
  opacity:1;
}

#indexList.text .listBox div.image{
  left:-100%;
  opacity:0;
}

.listBox .image > div{
  display:flex;
  margin-bottom:20px;
  background:#F3F4F666;
}

.listBox .image > div:hover{
  box-shadow: 3px 3px 10px #0006;
  cursor: pointer;
  position:relative;
}

.listBox .image > div:hover:after{
  position: absolute;
  top:0;
  left:calc(45%);
  content: "";
  width:10%;
  height:100%;
  display: block;
  background:linear-gradient(90deg,#0000 30%,#0001 50%,#0000 70%);
  z-index:100000;
}

.listBox  .image div span,
.listBox  .image div img{
  width:50%;
  height:auto;
}

.listBox .image div img{
  display: block;
}

.listBox .text ul{
  padding:0 20px;
  margin:0;
}


.listBox .text ul li{
  margin-bottom:10px;
  cursor: pointer;
  font-size:14px;
}

.listBox .text ul li:hover{
  font-weight:bold;
}


/* pdfList ---------------*/

#pdflist li span{
  text-decoration:underline;
  color:#00f;
  cursor:pointer;
}

#pdf{
  position:fixed;
  top:0;
  left:0;
  box-sizing:border-box;
  width:100%;
  height:100vh;
  background:rgba(0,0,0,.8);
  padding:0 20px;
  display: none;
}

#close{
  box-sizing:border-box;
  height:50px;
  text-align:right;
  padding:5px 5px;
}

#close #closebutton{
  display:block;
  box-sizing:border-box;
  width:40px;
  height:40px;
  line-height:1.0;
  font-size:40px;
  color:#FFF;
  text-align:right;
  padding:0;
  margin:0 0 0 auto;
  cursor:pointer;
}

iframe#pdfview{
  height:calc(100vh - 70px);
}



/* SP対応 -------------*/
body.sp #catalog{
  height:100%;
  max-height: calc(100% - 80px);
  max-width:calc(100% - 40px);
}

@media(max-width:700px){
  body.sp #catalog{
    width:calc(100% - 40px);
    height:auto;
    max-width:480px;
  }
}

body.sp #catalog > div.l,
body.sp #catalog > div.r{
  top:0;
  left:0;
  width:100%;
  height:100%;
  box-shadow:-2px 0 10px #00000005;
  transform: scaleX(0);
  transform: perspective(1200px) rotateY(30deg) scaleX(0.0);
  transform-origin: right;
  transition-duration: 1s;
}

body.sp #catalog > div.c1{
  transform: scaleX(1);
}

body.sp #catalog > div.active{
  transform: scaleX(1);
  transform: perspective(1200px) rotateY(0deg) scaleX(1);
}

body.sp #indexList,
body.sp #catalog .flip{
  display: none;
}

body.sp #catalog > div:after{
  transition-duration: 1s;
  top:0;
  left:0;
  width:100%;
  background: linear-gradient(90deg, #0002, #0009);
  max-width: 100%;
  opacity:1;
}

body.sp #catalog > div.active:after,
body.sp #catalog > div.c1:after{
  opacity:0;
}

body.sp #taskBar .pc{
  display:none;
}

body.sp #taskBar .sp{
  display:flex;
}

#VisibleBook.zoom{
  cursor: zoom-in;
}

#zoomBox{
  position:absolute;
  top:0;
  left:0;
  width:0;
  height:0;
  overflow: hidden;
  pointer-events: none;
  background:#0003;
  opacity:0;
  cursor:auto;
  transition-duration: .5s;
  background:#DDD;
  border-top:1px solid #ccc;
}

#zoomArea{
  position:relative;
  width:100%;
  height:100%;
  pointer-events:auto;
  overflow: auto;
  cursor: grab;
  padding:40px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#zoomArea img{
  box-shadow:3px 3px 10px #0003;
}

#imageArea{
  width:100%;
  height:auto;
  box-sizing: border-box;
  transition-duration: .3s;
}

#imageArea.big{
  width:200%;
}

#imageArea img{
  width:100%;
  height:auto;
}

.zoomIn,
.zoomOut{
  display:none;
  position:absolute;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  background:#0006;
  padding:10px;
  cursor: pointer;
  border:1px solid #fff;
  border-radius:7px;
}

.zoomIn{
  right:60px;  
}

#zoomBox.zoom + .zoomIn,
#zoomBox.zoom + .zoomIn + .zoomOut{
  display:block;
}

#zoomArea #zoomOut img{
  width:100%;
}

#zoomArea:active {
  cursor: grabbing;
}

#zoomBox.zoom{
  width:100%;
  height:100%;
  opacity:1.0;
}

/*#zoomBox.zoom #zoomArea{
  width:100%;
  height:100%;
  opacity:0;
  pointer-events:none;
}
*/