@charset "UTF-8";
/* CSS Document */
.modal_open {
  display: inline-block;
  margin: 1vw auto;
  /* float: left; */
}
#chart {
  padding-top: 0;
  height: 100vh;
  width: 100%;
  display: block;
}
#chart .relative{
}

body {
  background: #0b318f;
}
.modal_box, #start {
  position: fixed;
  z-index: 7777;
  display: none;
  max-width: 750px;
  margin: auto;
  padding: 2vw 2vw 0;
  box-sizing: border-box;
  text-align: center;
  background: #0b318f;
  color: #fff;
  max-height: 90vh;
  overflow-y: scroll;
  overflow-x: hidden;
}
.modal_box.result-box{
  padding:40px;
}
.modal_box.result-box .txt img{
  height:auto;
  margin-bottom: 30px;
}
.modal_box.result-box .ttl img{
  height:auto;
  margin-top: 0;
}
.modal_box.result-box .link_area{
  padding-left: 0!important;
  padding-right: 0!important;
}
.result-box .img{
    margin-bottom: 30px;
}
.result-box .advice{
    margin-bottom: 10px;
}
.result-box .advice{
    margin-bottom: 30px;
}
.result-box .img img{
    width: 60%;
}
.result-box .result-txt{
  margin: 40px auto 40px;
  position: relative;
  max-width: 50%;
  margin-left: 40px;
}
#start {
  z-index: 998;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #0b318f;
  border: none;
  padding: 0;
  display: block;
  position: relative;
  overflow-y: visible;
  border: solid;
  height: 800px;
  margin-top: 40px;
}
#start .ttl{
  max-width:80%;
  margin-top:40px;
  margin-left:
  auto;
  margin-right:
  auto;
  margin-bottom: 40px;
}
#start .img{
  max-width:60%;
  margin-left:auto;
  margin-right:auto;
  margin-bottom:40px;
}
#start .mascot, #start .mascot img {
  height: auto;
  width: 100% !important;
}

.modal_box .ttl img{
  height:17vw;
  margin-top: 21vw;
  margin-left:
  auto;
  margin-right:
  auto;
  margin-bottom: 40px;
}

.modal_box .txt img{
  height:40vw;
  margin-left:auto;
  margin-right:auto;
  margin-bottom: 40px;
}
.modal_box .link_area img{
  width:100%;
}
.modal_box .link_area{
    margin: auto;
    bottom: 0;
}
.modal_box .modal_home{
  position:absolute;
  top:20px;
  left:20px;
}
.modal_box .modal_home img{
  height:5vw;
}
.modal_box .modal_close{
  position:
  absolute;
  top: 30px;
  right:20px;
}
.modal-footer {
  margin-top: 40px;
}
.modal_box.result-box .modal-footer{
  margin:0;
}
.modal_box.result-box .link_area{
  margin:0;
  overflow: visible;
  padding: 0 16px;
}
.modal_box.result-box .link_area {
    padding-left: 0!important;
    padding-right: 0!important;
}
.modal_box.result-box .link_area a{
  position:
  relative;
  overflow: visible;
  margin-top: 0;
}
.modal_box.result-box .link_area a img{
  position:
  relative;
  z-index:2;
  height: auto;
}
.modal_box.result-box .modal_link:not(.again){
  text-align:left;
}

.modal_close, .modal_back {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
}
.modal_back {
  bottom: 0;
  top: calc(100% - 40px);
  left: 20px;
  position: absolute;
  text-align: left;
}
.modal_back a{width: 18.2vw;display: block;}
.modal_back img{
    /* width: 100%; */
}
.modal_close a{
  height: 2.6vw;
  width: 2.6vw;
  position: relative;
  display: flex;
}
.modal_close a:before, , .modal_back a:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 2rem;
  margin: auto;
  line-height: 2rem;
  display: flex;
  align-content: center;
  justify-content: center;
}
.modal_close i {
  line-height: 62px;
  vertical-align: bottom;
}
.modal_bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: none;
  width: 100%;
  height: 120%;
  background-color: rgb(64 64 64);
}
#start .link_area{
  /* top: 640px; */
  /* position: absolute; */
  /* left: 0; */
  /* right: 0; */
  /* margin: auto; */
}
#start .link_area .modal_link{
  /* margin-bottom: 0; */
}
.link_area {
  overflow: hidden;
  margin: 3.5vw auto 0;
  text-align: center;
  position: relative;
  top: 0;
}
.link_area .modal_link {
  display: inline-block;
  margin-bottom: 40px;
}
.result-box .link_area .modal_link.again {
  margin-bottom: 40px;
}
.link_area .modal_link a {
  display: block;
  cursor: pointer;
}
.txt img {
  /* max-height: 190px; */
}
#start .txt img {
  max-height: 70px;
  height: 100%;
}
#start .link_area img {
  /* max-width: 350px; */
  width: 100%;
  /* height: 60px; */
  /* margin-bottom: 60px; */
}
.link-area ul li.modal_link:first-child a {
  float: left;
}
.link-area ul li.modal_link:last-child a {
  float: right;
}
#chart .balloon {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 20px;
  padding: 30px;
  padding-bottom: 0;
  min-height: 30px;
  max-width: 540px;
  margin: auto;
  background-color: #fff;
  background-size: 100%;
  width: 60vw;
  left: 0;
  right: 0;
  top: 70.8vw;
}
#chart .mascot {
  margin-top: 100px;
}
#chart #start .mascot {
  max-height: 100%;
  max-width: 350px;
  margin: auto;
  margin-top: 40px;
  height: 80vh;
  top: 100%;
  bottom: 0;
  z-index: -1;
}
#chart .modal_box .mascot img {
    width: 80%;
}
#chart .balloon .txt {
  margin: auto;
  margin-top: 1.4vw;
  width: 50vw;
  max-width: 420px;
}
#chart .balloon p {
  margin: 0 auto 4.8vw;
}
.batsu {
  display: block;
  width: 70%; /*枠の大きさ*/
  height: 70%; /*枠の大きさ*/
  padding: 13.5px;
  position: relative;
  z-index: 99999;
  top: 0;
  bottom: 0;
  margin: auto;
  cursor: pointer;
}
.batsu:before, .batsu:after {
  content: "";
  display: block;
  width: 100%; /*バツ線の長さ*/
  height: 2px; /*バツ線の太さ*/
  background: #fff;
  transform: rotate(45deg);
  transform-origin: 0% 50%;
  position: absolute;
  top: calc(24% - 5px);
  left: 14%;
}
.batsu:after {
  transform: rotate(-45deg);
  transform-origin: 100% 50%;
  left: auto;
  right: 15%;
}
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  cursor: pointer;
}
.arrow:before {
  content: '';
  width: 40%;
  height: 40%;
  border: 0px;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  -ms-transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.matching-footer{
    background: url(../img/matching/footer.png);
    display: block;
    width: calc(100% - 0rem);
    position: static;
    margin-top:calc(100vh - 36px);
    height: 0;
    padding-top: 36px;
    background-size: contain;
    }
@media screen and (max-width: 769px) {
  /*  ウィンドウサイズ769px以下の時のスタイル  */
  .modal_box, #start {
    /* padding: 52px 2vw 20px; */
    height: 100vh;
  }
  #chart .mascot{
    margin-top:40px;
  }
  .modal_box:after, #start:after {
    background-size: contain;
    padding-top: 28px;
  }
  .modal_close {
    /* width: 50px; */
    /* font-size: 30px; */
    top: 7px;
  }
  .modal_back a{
  }
  .modal_close i {
    line-height: 44px;
  }
  #chart .balloon {
    width: 100%;
  }
  #chart .balloon .txt {
    width: 80%;
    margin-top: 10px;
  }
  .link_area {
    margin: 25px auto 0;
    width: 100%;
  }
  .modal_box:not(.result-box) .link_area{
  margin-bottom:140px;
}
  .modal_box:not(.result-box){
    padding-bottom:40px;
  }
  #chart .balloon .link_area{
    margin-top:0;
  }
  #start .link_area,
  #start .link_area .modal_link a{
    margin:auto;

  }
  .link_area .modal_link a {
    margin: 20px auto 0;
  }
  .modal_box.result-box .modal_link:not(.again) a:before{
    background-size:contain;
    padding: 27%;
    bottom: 18vw;
    right: -40px;
  }
  #chart .balloon p {
    margin: 0 auto 4.8vw;
}
  .link_area ul li.modal_link:first-child a {
    float: none;
    margin-top: 0;
  }
  .link_area ul li.modal_link:last-child a {
    float: none;
  }
  .result-box .result-ttl {
    margin-top: 6vw;
    }
  .result-box::after {
    top: 120px;
  }
  .result-box .result-img img {
    height: 100vw;
  }
  .result-box .result-txt {
    margin: 4vw auto 0;
    position: relative;
    max-width: 50%;
    margin-left: 4.7vw;
}
  .modal_box.result-box::after{
    height: 225vw;
  }
}
@media screen and (max-width: 468px) {
  .result-box .result-ttl {
    margin-top: 80px;}
  .modal_box:before, #start:before {
    background-size: 210px;
    padding-top: 72px;
  }
  #chart .balloon {
    background-size: 100%;
    padding: 14px;
    padding-bottom: 60px;
    max-height: 100vh;
    max-width: calc(100% - 40px);
    top: 356px;
    border-radius: 14px;
  }
  #chart .balloon:after{
    content:"";
  }
  #chart #start .mascot{
    margin-top: 20px;
  }
  #chart .mascot {
    text-align: center;
    margin-top: 60px;
  }
  #chart .modal_box .mascot img {
    width: auto;
    /* height: 100%; */
  }
  #chart .balloon .txt {
  width: auto;
  }
  #chart .balloon .link_area {
    margin-top: -10px;
    margin-bottom: 0px;
  }
  #chart .balloon p {
    margin: 0 auto;
  }
  .modal_box, #start {
    padding: 10px 2vw 0;
    width: 100%;
    left: 0 !important;
    top: 0 !important;
    height: 110vh;
    max-height: 100vh;
    border: none;
    margin-top: auto;
  }
  #start .mascot img{width: 100%!important;}
  .link_area .modal_link.again{
  width:85%;
}
  .modal_box.result-box .link_area{
    margin-bottom:50px;
  }
  #start:after{
    content:"";
    background: url(../img/matching/footer.png);
    display: block;
    width: calc(100% - 0rem);
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0;
    padding-top: 36px;
    background-size: 100%;
  }
  #start .link_area img {
    max-width: 300px;
  }
  .matching-footer{display:none;}
  #start .link_area{bottom: 10px;top: auto;}
  .modal_box.result-box .modal_link:not(.again) a:before{
    background-size:contain;
    padding: 27%;
    right: -25px;
    bottom: 20vw;
  }
  .link_area .modal_link {
    margin-bottom: 10px;
  }
  .result-box .link_area .modal_link.again {
    margin-bottom: 10px;
  }
  .modal_box.result-box::after {
    height: 225vw;
    top: 30vw;
}
  .modal_box .link_area img{
    max-width:280px!important;
  }
}

@media screen and (min-width: 468px) {
  .modal_box, #start{
    width:500px;
    left: 0!important;
    right: 0!important;
  }
  .modal_box .ttl img{
    height: 80px;
    margin-top: 80px;
  }
  .modal_box .modal_home img,
  .modal_box .modal_back img{
    height: 20px;
  }
  .modal_box .link_area img{
    height: 60px;
  }
  .modal_box .modal_close img {
    height: 16px;
  }
  .modal_box .txt img{
    height: 200px;
    margin-bottom: 40px;
  }
  .modal_box .link_area {
    margin: 3rem auto 4rem;
  }
  .link_area .modal_link{
    display:
    block;
    margin-bottom: 20px;
  }
  .modal_back {
    position: static;
    margin-bottom:30px;
  }
  #start .link_area img {
    height: 60px;
    margin-bottom: 60px;
}

}