/*
 * basic markup
 */

@font-face {
  font-family: "Noto Serif JP";
  src: url("./f/NotoSerifJP-Light.otf") format("otf");
}

@font-face {
	font-family: "Bodoni Moda";
	src: url("./f/BodoniModa-VariableFont_opsz,wght.ttf") format("ttf");
	font-style: normal;
}

@font-face {
	font-family: "Bodoni Moda";
	src: url("./f/BodoniModa-Italic-VariableFont_opsz,wght.ttf") format("ttf");
	font-style: italic;
}

* {
	font-family: 'Bodoni Moda', 'Noto Serif JP', 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', serif;
  -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-touch-callout: none;
	margin: 0;
	padding: 0;
	color: white;
}

html, body{
	padding: 0;
	margin: 0;
	border: 0;
}

html{
  font-size: min(calc(6pt + 0.9vw), 16px);
}

html:focus-within{
	scroll-behavior: smooth;
}

body{
	background-color: #171B30;
}

body *{
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1))
}

a{
	text-decoration: none;
	color: inherit;
}
	
a:active, a:hover {
	outline-width: 0;
}

a:hover *{
	transition: opacity 0.1s ease-out;
	opacity: 0.7;
}

/*
 * common elements
 */
.showUpObject{
	opacity: 0;
}

.showUpObject.screened{
	opacity: 1;
	transition: transform 500ms cubic-bezier(.73,.35,.9,.57) 800ms, opacity 1500ms cubic-bezier(.2,.2,.25,1) 800ms;
}

#mainContentsContainer{
  position: relative;
  width: 80vw;
  max-width: 960px;
  margin: 20vh auto 0 auto;  
}

header{
	position: fixed;
	top: 0;
	left: 0;
  width: 100vw;
  height: 10vh;
}

header > div{
  display: flex;
	justify-content: space-between;
	align-items: center;
  width: 100vw;
  max-width: 1200px;
  height: 10vh;
  margin: 3vh auto 2vh auto;
}

header > div > a > img{
  height: 10vh;
  width: auto;
  margin-left: 3vw;
}

header > div > div{
  display: flex;
}

header > div > div > img{
  height: 7vh;
  margin-right: 3vw;
}

header > div > div > img.whenOpen,
body.spMenuOpen header > div > div > img.whenClosed{
  display: none;
}

body.spMenuOpen header > div > div > img.whenOpen{
  display: initial;
}

footer{
	width: 100vw;
	padding: 20px 0;
	font-size: 1rem;
	line-height: 1.5em;
  color: white;
  text-align: center;
}

.modal{
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0,0,0,.75);
  text-align: center;
	z-index: 1;
	overflow-y: scroll;
}

.modal:not(.shown){
  display: none;
}

.modal > div{
	width: calc(90% - 100px);
	font-size: calc(10pt + 0.5vw);
	font-weight: bold;
	text-align: center;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 10px;
	padding: 20px 50px;
	position: relative;
	margin: 10% auto;
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.modal > div > img.closeButton{
	position: absolute;
	width: 30px;
	height: 30px;
	top: -15px;
	right: -15px;
	cursor: pointer;
}

.forProgressIndicator{
  transition: opacity 200ms ease-in-out;
	position: relative;
}

.forProgressIndicator.sending > *:not(.progressIndicator){
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

.progressIndicator{
  display: none;
  position: fixed;
	left: calc(50vw - 65px);
	top: calc(50vh - 30px);
	width: 130px;
	text-align: center;
}

.forProgressIndicator.sending .progressIndicator{
  display: block;
}

.progressIndicator > div {
  width: 18px;
  height: 18px;
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
	margin: 0 10px;
}

.progressIndicator .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
  background-color: rgb(0, 0, 191);
}

.progressIndicator .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
  background-color: rgb(0, 0, 159);
}

.progressIndicator .bounce3{
  background-color: rgb(0, 0, 127);
}


@-webkit-keyframes sk-bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0) }
  40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
  0%, 80%, 100% { 
    -webkit-transform: scale(0);
    transform: scale(0);
  } 40% { 
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
  }
}

/*
 ** FORM **
 */

.inputItems{
  width: 90%;
  max-width: 700px;
  margin: 50px auto;
}

.inputItems label{
  width: 200px;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: bold;
}

.inputItems input{
  width: calc(95% - 230px);
  margin: 10px 0 10px 5%;
  font-size: 1.2rem;
  padding: 10px;
	border-radius: 5px;
}

.inputItems > div{
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
}

.inputItems > div > a {
  font-size: 1.2rem;
  margin: 0 10px;
}


#payment-form{
	width: 400px;
	margin: 30px auto;
  background-color: white;
  padding: 15px 20px;
  border-radius: 3px;
}

#confirmBooking{
	margin-top: 30px;
}

#card-errors{
	color: white;
}

.combo{
	color: red;
	font-weight: bold;
	display: inline-block;
	margin-top: 0.5vw;
}

.comboNote{
	font-size: 1.1rem !important;
	margin-left: 0.2vw;
}

.coupon{
	background-color: #4399EF;
	color: white;
	padding: 3px 10px;
	border-radius: 15px;
	font-weight: bold;
	margin: 3px 0;
	display: inline-block;
}

select{
  background-color: #aaa;
  appearance: none;
  border: thin solid rgba(73, 73, 73, 0.29);
  border-radius: 1px;
  display: inline-block;
  font: inherit;
  line-height: 1em;
	margin: 0.5em 0;
  padding: 0.5em 3.5em 0.5em 1em;
  box-sizing: border-box;
	
	background-image:
    linear-gradient(45deg, transparent 50%, #494949 50%),
    linear-gradient(135deg, #494949 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1em - 1px),
    calc(100% - 15px) calc(1em - 1px),
    calc(100% - 2.5em) calc(0.5em - 3px);
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
}

h1{
	color: #CB4D36;
	margin-left: 110px;
	margin-bottom: 2vw;
	position: relative;
	font-size: 1.4rem;
	letter-spacing: 0.1em;
	font-weight: bold;
}

h1:before{
	content: "";
	position: absolute;
	left: -110px;
	height: 0.8rem;
	width: 100px;
	top: 50%;
	background-color: #CB4D36;
	transform: translateY(-50%);
}

h2{
  border-left: 1px solid white;
  margin: 3vh 0;
  padding-left: 15px;
  color: white;
  letter-spacing: 0.1em;
	font-weight: bold;
}

#humberger{
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgb(15, 29, 39);
  padding-top: 35vh;
  text-align: center;
  list-style: none;
  transition: opacity 0.5s ease;
}

body:not(.spMenuOpen) #humberger{
  opacity: 0;
  pointer-events: none;
}

#humberger > li{
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

#humberger > li > a{
  text-decoration: none;
}

#humberger > li > a > img{
  height: 1.5rem;
}

/*
 ** SHARED EXPRESSIONS **
 */

.view_popupcart{
  position: fixed;
  top: calc(10vh + 1.5rem);
  right: 8vw;
  background-color: rgba(23,27,48,0.8);
  backdrop-filter: blur(3px);
  width: 30vw;
  max-width: 500px;
  min-width: 240px;
  height: 40vw;
  max-height: 80vh;
  border: 1px solid #fafafa;
	transition: opacity ease-in-out 300ms;
}

.view_popupcart *{
  filter: none;
}

.view_popupcart.shown{
	transition: opacity ease-in-out 300ms;
}

.view_popupcart:before,
.view_popupcart:after{
	bottom: 100%;
	right: 8%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.view_popupcart:before{
	border-color: rgba(11, 48, 142, 0);
	border-bottom-color: #aaa;
	border-width: 7px;
	margin-left: -7px;
}

.view_popupcart:after{
	border-color: rgba(255, 255, 255, 0);
	border-bottom-color: #ffffff;
	border-width: 6.5px;
	margin-left: -6.5px;
}

.view_popupcart:not(.shown){
	opacity: 0;
	pointer-events: none;
}

.view_popupcart > dl{
	width: 90%;
	height: calc(90% - 13vh);
	padding: 5%;
}

.view_popupcart > div{
	width: 100%;
	height: 13vh;
	border-top: 1px solid #aaa;
	position: absolute;
	bottom: 0;
}

.view_popupcart > div > div{
	height: 3vh;
	padding-top: 1vh;
	padding-bottom: 1vh;
	width: 100%;
	background-color: #B5B5B5;
	color: white;
	text-align: center;
	font-size: calc(4pt + 0.8vw);
	position: absolute;
	bottom: 0;
}

.view_popupcart > dl > dd{
	height: 93%;
	position: relative;
}

.view_popupcart > dl > dd:after{
	position: absolute;
	bottom: 0;
	left: 10%;
	width: 80%;
	height: 1px;
	border-bottom: 1px solid #ccc;
	content: "";
}

.view_popupcart > dl > dd > ul{
	list-style: none;
	width: 100%;
	height: 100%;
	overflow-y: scroll;
}

.view_popupcart > dl > dd > ul > li{
	width: 100%;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	position: relative;
	padding-bottom: 6%;
	margin-bottom: 8%;
}

.view_popupcart > dl > dd > ul > li.combo_container{
	padding-bottom: 8%;
}

.view_popupcart > dl > dd > ul > li:after{
	position: absolute;
	bottom: 0;
	left: 20%;
	width: 60%;
	height: 1px;
	border-bottom: 1px dashed #aaa;
	content: "";
}

.view_popupcart > dl > dd > ul > li > div:not(.comboPrice){
	width: 9vw; /* 30vw or 500px -> 90% -> 33% */
	max-width: 150px;
	height: 9vw;
	max-height: 150px;	
  text-align: center;
}

.view_popupcart > dl > dd > ul > li > div > div{
	width: 100%;
	height: 100%;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.view_popupcart > dl > dd > ul > li > div > button{
  outline: none;
  padding: 0.2rem 1rem;
  border: none;
  background-color: #aaa;
}
.view_popupcart > dl > dd > ul > li > span.combo{
	margin-left: 5%;
	margin-top: 0;
	font-size: calc(4pt + 0.8vw);
}

.view_popupcart > dl > dd > ul > li > div.comboPrice{
	width: 50%;
	text-align: right;
	margin-right: 5%;
	font-size: calc(4pt + 0.8vw);
}

.view_popupcart > dl > dd > ul > li > dl{
	width: 15vw; /* 30vw or 500px -> 90% -> 57% */
	max-width: 256px;
	margin-top: 10px;
}

.view_popupcart > dl > dd > ul > li > dl > dt{
  font-weight: bold;
	margin-bottom: 10%;
	font-size: calc(4.5pt + 0.9vw);
}

.view_popupcart > dl > dd > ul > li > dl > dd > div{
	font-size: calc(4pt + 0.8vw);
}

.view_popupcart > dl > dd > ul > li > dl > dd > div > select{
	min-width: 100px;
}

.view_popupcart > dl > dd > ul > li > section{
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: -0.5vw;
}

.view_popupcart > dl > dd > ul > li > section > button{
	margin: 0 auto;
	padding: 0.75vw 1.5vw 0.75vw 1.5vw;
	width: min(6vw, calc(150px - 3vw));
	text-align: center;
	background-color: #B5B5B5;
	font-size: calc(3pt + 0.6vw);
	border-radius: 0;
}

.view_popupcart > dl > dd > ul > li > section > div{
	width: min(15vw, 256px);
}

.view_popupcart > dl > dt{
	height: 7%;
	text-align: center;
}

.view_popupcart > dl > dt > div{
	margin-top: 5%;
	font-weight: bold;
	font-size: calc(4pt + 0.8vw);
}
	
.view_popupcart > div > button{
	margin: 2vw auto;
	border-radius: 0;
	font-size: calc(4.5pt + 0.9vw);
	margin-top: 1.5vh;
  background-color: rgb(189, 85, 63);
  padding: 0.4rem 0.8rem;
  border: none;
  outline: none;
  width: 100%;
  font-weight: bold;
}

/* cases, shared by index and cases */
.cases > ul{
  list-style: none;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 90%;
  margin: 2rem auto;
}

.cases > ul > li{
  width: 48%;
  margin: 1rem 0;
}

.cases > ul > li > a > img{
  width: 100%;
}

.cases > ul > li > a > div{
  width: 90%;
  margin: 1rem auto 2rem auto;
  position: relative;
  font-size: 1.2rem;
}

.cases > ul > li > a > div{
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.cases > ul > li > a > div > div{
  font-size: 1rem;
}

.cases > ul > li > div:before{
  content: "";
  position: absolute;
  background-color: white;
  height: 100%;
  width: 1px;
  top: 0;
  left: 5%;
}

.cases > a > img{
  display: block;
  width: 173px;
  margin: 2vw auto;
}

.zoom_image{
	position: relative;
}

.zoom_image > div.zoom_image_net{
	position: absolute;
	background-color: rgba(0, 0, 0, 0.1);
	width: 33.3%;
	height: 33.3%;
}

.zoom_image > div.zoom_image_net:not(.shown){
	display: none;
}

.zoom_image_zoomed_container{
	position: absolute;
	overflow: hidden;
}

.zoom_image_zoomed_container:not(.shown){
	display: none;
}

.zoom_image_zoomed_container > img{
	width: 300%;
	height: 300%;
	object-fit: contain;
}

.saikochiku{
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/*=========Maximum 768px ===========*/
@media screen and (max-width: 768px){

  html{
    font-size: 12pt;
  }

	header > section > a > span,
	header > section > div > span{
		display: none;
	}
	
	header > section > a > img,
	header > section > div > img{
		height: auto;
		width: 6vw;
    margin-top: 0.5vw;
	}

  .cases > ul{
    width: 100%;
    margin: 0;
  }
  .cases > ul > li > a > div{
    width: 100%;
  }	

  .zoom_image > div.zoom_image_net,
	.zoom_image_zoomed_container{
		display: none;
	}

  .view_popupcart > dl > dd > ul > li > div:not(.comboPrice){
		width: 30vw;
    height: 30vw;
    max-width: initial;
    max-height: initial;
	}
	
	.view_popupcart > dl > dd > ul > li > dl{
		width: 50vw;
    max-width: initial;
		margin-top: 13vw;
	}

	.view_popupcart > dl > dd > ul > li > section > button{
		width: 20vw;
    padding-left: 5vw;
    padding-right: 5vw;
    margin-left: 5vw;
    margin-right: 5vw;
	}
	
	.view_popupcart > dl > dd > ul > li > section > div{
		width: 50vw;
	}

}