/*******************
ポップアップバナー
*******************/
.popup_banner{
    position: fixed;
    bottom: -100%;
    /*
    width: 25%;
    max-width: 350px;
    */
    width: 30%;
    max-width: 300px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: 0;
    background-color: rgba(0,5,8,0.2);
    z-index: 999999;
    transition: 1s;
    cursor: pointer;
}
.popup_banner.UpMove{
    bottom: 0;
}
.popup_banner .popup_banner-close{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    font-size: 40px;
    color: #000000;
    cursor: pointer;
}
@media screen and (max-width: 550px) {
    .popup_banner{
        width: 100%;
        max-width: 550px;
    }
}
/*******************
モーダル
*******************/
.modal-container{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background: rgba(0,0,0,50%);
	padding: 40px 20px;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .1s;
    box-sizing: border-box;
    z-index: 999;
}
.modal-container:before{
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}
.modal-container.active{
	opacity: 1;
	visibility: visible;
}
.modal-body{
	position: relative;
	display: inline-block;
	vertical-align: middle;
	max-width: 400px;
	width: 90%;
}
.modal-close{
	position: absolute;
	display: flex;
    align-items: center;
    justify-content: center;
	top: -40px;
	right: -40px;
	width: 40px;
	height: 40px;
	font-size: 40px;
	color: #fff;
	cursor: pointer;
}
.modal-content{
  /*
	background: #fff;
	padding: 30px;
  */
}
.modal-content a:hover{
  opacity: 0.9;
}
.modal-content a img:hover{
  opacity: 1 !important;
}
/*******************
診断
*******************/
.diag-wrap{
    position: relative;
}
.diag-wrap .diag-contents{
    position: relative;
    width: 100%;
    aspect-ratio: 1/ 1;
    font-size: 10px;
}
.diag-wrap .diag-contents .diag-subcontents{
    position: absolute;
    width: 95%;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: max-content;
}
.diag-wrap .diag-contents .diag-imgcontents{
    position: absolute;
    width: 100%;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: max-content;
}
.diag-wrap .diag-contents .text-wrap{
    margin-bottom: 1em;
}
.diag-wrap .diag-contents .text-wrap h2{
    font-size: 1.8em;
    margin-bottom: 0.5em;
    font-weight: bold;
}
.diag-wrap .diag-contents .text-wrap h2 .qid{
    display: inline-block;
    width: 2em;
    height: 2em;
    line-height: 1.75;
    border-radius: 50%;
    margin-right: 0.5em;
    color: #ffffff;
}
.diag-wrap .diag-contents .text-wrap .text{
    font-size: 1.6em;
}
.diag-wrap .diag-contents .text-wrap .text > *{
    font-size: inherit;
}
.diag-wrap .diag-contents .ans-wrap{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 1em;
}
.diag-wrap .diag-contents .diag-imgcontents .ans-wrap{
    position: absolute;
    top: 36%;
    left: 0;
    right: 0;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    min-height: 50%;
}
.diag-wrap .diag-contents .ans-wrap button{
    border-radius: 5px;
    box-sizing: border-box;
    padding: 0.75em 0.5em;
    font-weight: 600;
    font-size: 1.6em;
    line-height: 1.75;
    transition: .3s;
}
.diag-wrap .diag-contents .ans-wrap.threerows button{
    padding: 0.5em;
    line-height: 1.4;
}
.diag-wrap .diag-contents .ans-wrap button.type1{
    display: block;
    background-color: #ff6b00;
    color: #ffffff;
    box-shadow: 0px 5px 0px color-mix(in srgb, #ff6b00, black 30%);
    
}
.diag-wrap .diag-contents .ans-wrap button.type1:hover{
    box-shadow: unset !important;
    transform: translateY(4px);
}
.diag-wrap .diag-contents .ans-wrap button.type2{
    display: block;
    background-color: #ffffff;
    color: #000000;
    outline: 2px solid #000000;
}
/*
.diag-wrap .diag-contents .ans-wrap button.type2:hover{
    background-color: #ff6b00;
    color: #ffffff;
}
*/
.diag-wrap .diag-contents .loading{
    color: #ffffff;
    font-size: 20px;
    margin: 100px auto;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    -webkit-animation: load4 1.3s infinite linear;
    animation: load4 1.3s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
@-webkit-keyframes load4 {
  0%,
  100% {
    box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
  }
  12.5% {
    box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }
  25% {
    box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }
  37.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  50% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  62.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
  }
  75% {
    box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
  }
  87.5% {
    box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
  }
}
@keyframes load4 {
  0%,
  100% {
    box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
  }
  12.5% {
    box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }
  25% {
    box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }
  37.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  50% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  62.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
  }
  75% {
    box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
  }
  87.5% {
    box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
  }
}
@media screen and (max-width:480px) {
    .diag-wrap .diag-contents{
        font-size: 1.8vw;
    }
    .diag-wrap .diag-contents .ans-wrap.threerows button{
        line-height: 1.7;
    }
}