/* nomal */
@font-face {
  font-family: 'LINESeedJP';
  src: url('../../font/LINESeedJP_OTF_Rg.woff') format('woff'),
    url('../../font/LINESeedJP_OTF_Rg.woff2') format('woff2');
  font-weight: normal;
  font-weight: 400;
  font-style: normal;
}

/* bold */
@font-face {
  font-family: 'LINESeedJP';
  src: url('../../font/LINESeedJP_OTF_Bd.woff') format('woff'),
    url('../../font/LINESeedJP_OTF_Bd.woff2') format('woff2');
  font-weight: bold;
  font-weight: 700;
  font-style: normal;
}

/* EX bold */
@font-face {
  font-family: 'LINESeedJP';
  src: url('../../font/LINESeedJP_OTF_Eb.woff') format('woff'),
    url('../../font/LINESeedJP_OTF_Eb.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}

.material-icons {
  font-family: 'Material Icons Round';
  display: inline-flex;
  vertical-align: middle;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'LINESeedJP', sans-serif;
  line-height: 1.6;
  color: #000;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
  background: #eee;
}

main {
  width:100%;
  transform-origin: left top;
  /* overflow: auto; */
  /* padding:1em; */
  /* overflow: hidden; */
  /* background-color:#eee; */
  transform-origin: left top;
  padding-top: 60px;

  position: relative;
  /* height: calc(100% - 100px); */


  height: calc(100svh - 100px);
  overflow-y: hidden;
}

#scale_cont{
  /* max-height: calc(100svh - 50px - 50px); */
  /* max-height: calc(100% - 60px - 50px - 50px); */
  max-height: 100%;
  height: 100%;
  display: grid;
  align-items: center;
  /* overflow: hidden; */
  overflow-x: hidden;
  /* padding-top: 60px; */
  /* position: relative; */
  margin: auto;
}

.single #scale_cont{
  max-height: 100%;
  position: absolute;
  width: 100%;
  top: 0;
}
.single #scale_cont.big {
  top: 60px;
}

#scale_cont.big{
  height: auto;
}



main svg {
  /* height:auto; */
  width:100%;
  height: 100%;
  display:block;
  margin:0 auto;
  /* overflow:visible; */
}

#scale_cont.big svg{
  height: auto;
  
}

/* 1枚表示 */
main.single {
  /* overflow: scroll; */
  /* overflow-x: hidden; */
}
main.single svg {
  /* overflow: visible; */
  width: 200%;
  height: auto;
  position: absolute;
  top: 60px;
  /* padding-bottom: 100px; */
}
main.single .big svg {
  position: unset;
  padding-bottom: 60px;
}
image {
  height:100%;
  width:100%;
  transition:0.25s linear;
  transform-origin:center;
}

.navbar{
  height: 60px;
  padding: 0.5rem;
  align-content: center;
  position: fixed;
  left: 0;
  top: 0;
  /* width: 100%; */
  width: 100vw;
  z-index: 990;
}

.navbar-brand{
  width: calc(100% - 520px);
  white-space: unset;
  padding: 0;
  margin: 0;
  line-height: 1.2;
}
.d-flex{
  max-width: 500px;
  aspect-ratio: 10/1;
}
.d-flex img{
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
  display: block;
}

#left_img image {
  clip-path:url(#left_clip);
  transform: rotateY(-90deg) skewY(20deg);
}
#right_img image {
  clip-path:url(#right_clip);
  transform: rotateY(90deg) skewY(-20deg);
}
#left_img image.active,
#right_img image.active {
  transform: rotateY(0deg) skewY(0deg);
}
#left_cover image {
  /* clip-path:url(#left_clip); */
  /* clip-path: polygon(0 52.5px, 50% 52.5px, 50% 157.5px, 0% 157.5px); */
  clip-path: polygon(0 63px, 50% 63px, 50% 147px, 0% 147px);

  transform: rotateY(-90deg) skewY(20deg);
}
#right_cover image {
  /* clip-path:url(#right_clip); */
  /* clip-path: polygon(49.9% 52.5px, 100% 52.5px, 100% 157.5px, 49.9% 157.5px); */
  clip-path: polygon(49.9% 63px, 100% 63px, 100% 147px, 49.9% 147px);
  transform: rotateY(90deg) skewY(-20deg);
}
#left_cover image,
#right_cover image {
  width: 50%;
}

#left_cover image.active,
#right_cover image.active {
  transform: rotateY(0deg) skewY(0deg);
}
#left_cover image.hidden,
#right_cover image.hidden {
  display: none;
}

main.single #left_img image.active {
  transform:translateX(0%);
}
main.single #left_img.single image.active {
  transform:translateX(-50%);
}  



.controlpanel_cont{
  position: fixed;
  bottom: 0;
  width: 100%;
  padding-bottom: 50px;
  background: #000;
  width: 100vw;
}

#button_area {
  display:flex;
  /* width:80%; */
  width:100%;
  margin:0 auto;
}
button {  
  width:100%;
  background-color:transparent;
  border:none;
  /* margin-top:1em; */
  /* padding:0; */
  font-size:3em;
  /* color:#222; */
  padding: 0;
  /* line-height: 1.2; */
  line-height: 50px;
  height: 50px;
  color: #fff;
  background: #192B4D;
}
button.deactivate {  
  color:#ccc;
  background: #b3b3b3;
  cursor: default;
  pointer-events: none;
}
button#prev {  
  border-right: 1px solid;
}
button:focus,
button:hover {
  background: #375690;
  outline: none;
}
#page_index ,
#view_switch ,
#scale  {
  padding: 0;
}
/* #page_index li,
#view_switch li,
#scale li {
  cursor: pointer;
  list-style: none;
} */

#page_index li.active,
#view_switch li.active {
  /* font-weight: bold; */
}

/*リストのレイアウト設定*/
.controlpanel_list{
  margin: 0;
  display: flex;
  padding: 0;
  position: relative;
}

.controlpanel_list > li{
  list-style: none;
  text-align: center; 
  width: calc(100%  / 3);
  /* position:fixed; */
  z-index: 999;
  /* height: auto; */
  height: 50px;
  background:#999;
  /*動き*/
  transition: all 0.2s;
  position: absolute;
  overflow: hidden;
  bottom:-50px;
}
.controlpanel_list:hover > li {
  opacity: 0.7;
  box-shadow: none;
}
.controlpanel_list > li:hover {
  opacity: 1;
  box-shadow: 0px 6px 16px 0px rgba(48, 48, 48, 0.30);
}

/*アクティブクラスがついたら位置を0に*/
.controlpanel_list > li.active{
  overflow: unset;
}

.controlpanel_list li h2{
  height: 50px;
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 50px;
  cursor: pointer;
}

.controlpanel_list li h2:before{
  font-family: 'Material Icons Round';
  content: 'expand_more';
  vertical-align: middle;
  margin-right: 5px;
  display: inline-block;
  transition: all 0.2s;
}

.controlpanel_list > li.active h2::before{
  transform:rotate(180deg);
}

.controlpanel_list > li > ul li{
  width: 100%;
  height: 50px;
  background: #fff;
  cursor: pointer;
  transition: all 0.6s;
  list-style: none;
  font-weight: normal;
}
.controlpanel_list > li > ul li.active,
.controlpanel_list li#openbtn1 li:not(.deactivate){
  font-weight: bold;
}


/* 拡大縮小 */
.controlpanel_list li#openbtn1 h2{
  background: #ffbcbc;
  color: #6d2222;
}
.controlpanel_list li#openbtn1{
  left:0;
  /* bottom:-50px; */
}
.controlpanel_list li#openbtn1.active,
.controlpanel_list li#openbtn2.active{
  bottom: 0;
}
.controlpanel_list li#openbtn1 > ul li {
  width: calc(100% / 3);
}
.controlpanel_list li#openbtn1 li[data-view="big"]{
  background: #ffbcbc;
  color: #6d2222;
}
.controlpanel_list li#openbtn1 li[data-view="fit"]{}

.controlpanel_list li#openbtn1 li[data-view="small"]{
  background: #bcd4ff;
  color: #102854;
}
.controlpanel_list li#openbtn1 li span{
  font-size: 1.3rem;
  vertical-align: middle;
}
.controlpanel_list li#openbtn1 li.deactivate{
  background: #c9c9c9;
  color: #717171;
  pointer-events: none;
}
/* 表示方法 */
.controlpanel_list li#openbtn2 h2{
  background: #77d2d3;
  color: #0e4d4e;
}
.controlpanel_list li#openbtn2 li.btn.active {
  background: #77d2d3;
  color: #0e4d4e;
  pointer-events: none;
}
.controlpanel_list li#openbtn2{
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  /* bottom:-50px; */
}
.controlpanel_list li#openbtn2 > ul li {
  width: calc(100% / 2);
}
/* 目次 */
.controlpanel_list li#openbtn3{
  right:0;
  /* bottom: -200px; */
}
.controlpanel_list li#openbtn3.active{
  bottom: 70px;
}
.controlpanel_list li#openbtn3 h2{
  background: #78aad0;
  color: #0d395b;
}
.controlpanel_list li#openbtn3 > ul li{
  height: 40px;
  font-size: 0.8rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.controlpanel_list li#openbtn3 > ul li.active {
  color: #4b7ba0;
  background: #e9f5fe;
  pointer-events: none;
}
.controlpanel_list li#openbtn3 > ul li:hover{
  background: #e6e6e6;
}
.controlpanel_list li#openbtn3 > ul li.active::before {
  vertical-align: bottom;
  font-family: 'Material Icons Round';
  content: 'chevron_right';
  margin-right: 5px;
  display: inline-block;
  margin-top: 3px;
}


#view_switch,
#scale{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 0;
}
#view_switch li{
  width: calc(100% / 2);
}


.btn{
  display: block;
  background: #ddd;
  border-radius: 0;
  padding: 10px 0;
  transition:0.25s all;
  font-weight: bold;
}
.btn:hover{
  opacity: 0.5;
}
.btn.active{
  background: #182b4d;
  color: #fff;
}

/* ローディング */
#js-loading {
  /* 画面全体を、半透明の黒で覆う */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.8;
  color: #fff;
  text-align: center;

  /* 画面の中央に要素を表示させる */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


@-webkit-keyframes sk-stretchdelay {
  0%, 40%, 100% {
      -webkit-transform: scaleY(0.4)
  }

  20% {
      -webkit-transform: scaleY(1.0)
  }
}

@keyframes sk-stretchdelay {
  0%, 40%, 100% {
      transform: scaleY(0.4);
      -webkit-transform: scaleY(0.4);
  }

  20% {
      transform: scaleY(1.0);
      -webkit-transform: scaleY(1.0);
  }
}



@media screen and (max-width: 900px){
  /* .single #scale_cont,#scale_cont.big {
    max-height: 90svh;
    height: calc(100svh - 100px);
    max-height: unset;
} */
  .navbar-brand {
    font-size: 0.8rem;
    /* width: 130px; */
    width: 40%;
  }
  .d-flex {
    /* width: calc(100% - 150px); */
    width: 58%;
  }
}

@media screen and (max-width: 600px){
  main{
    height: calc(100% - 80px);
  }
  /* .single #scale_cont,#scale_cont.big {
      max-height: 55svh;
  } */
  #scale_cont {
    max-height: calc(100svh - 60px - 40px - 40px);
    /* height: 100%;
    display: grid;
    align-items: center; */
}
  button {  
    font-size:1.5em;
  }
  .navbar{
    justify-content: center;
    min-height: 60px;
  }
  .navbar-brand {
    /* font-size: 0.8rem; */
    width: 100%;
    text-align: center;
    order: 2;
  }
  .d-flex {
    /* width: calc(100% - 120px); */
    max-width: 350px;
    width: 100%;
    margin-bottom: 5px;
  }
  button {
    height: 40px;
    line-height: 40px;
  }
  .controlpanel_cont {
    padding-bottom: 40px;
  }
  .controlpanel_list > li{
    height: 40px;
    bottom: -40px;
  }
  .controlpanel_list li h2 {
    height: 40px;
    line-height: 38px;
    font-size: 0.9rem;
  }
  .controlpanel_list li#openbtn1.active{
    bottom: 100px;
  }
  .controlpanel_list li#openbtn2.active{
    bottom: 50px;
  }
  .controlpanel_list > li > ul li {
    width: 100%!important;
    font-size: 0.8rem;
    height: 40px;
    line-height: initial;
  }
  .controlpanel_list li#openbtn1.active {
    bottom: 80px;
  }
  .controlpanel_list li#openbtn2.active {
    bottom: 40px;
  }
  .controlpanel_list li#openbtn3 > ul li {
    justify-content: left;
    text-align: left;
    padding-left: 1.8em;
    padding-right: 1em;
  }
  .controlpanel_list li#openbtn3.active {
    bottom: 80px;
  }
  .controlpanel_list li#openbtn3 > ul li.active {
    text-indent: 0;
    padding-left: 0;
}
  .controlpanel_list li#openbtn3 > ul li.active::before {
    margin-left: 5px;
  }
}
