#simulator {
  width: 100%;
  height: calc(100vh - var(--headerHeight));
  background: url("../images/bg_sim.webp") center center no-repeat;
  background-size: cover;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#simulator form {
  background-color: #fff;
  width: 84%;
  max-width: 960px;
  height: 84%;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
}
#simulator form hgroup {
  margin: 20px auto;
}
#simulator form hgroup h5 {
  font-size: 0.77778rem;
  line-height: 2;
  letter-spacing: 0.1em;
  text-align: center;
  text-indent: 0.1em;
  color: #666;
}
#simulator form hgroup h5:before {
  content: "\\ ";
}
#simulator form hgroup h5:after {
  content: " /";
}
#simulator form hgroup h2 {
  font-size: 1.33333rem;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-align: center;
  text-indent: 0.2em;
  font-weight: 700;
}
#simulator form #formStep {
  display: flex;
  width: 84%;
  max-width: 600px;
  margin: auto;
}
#simulator form #formStep li {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  flex-basis: 25%;
  font-size: 0.66667rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-align: center;
  text-indent: 0.1em;
  padding: .5em;
  border-bottom: solid 2px #999;
  color: #999;
  position: relative;
}
#simulator form #formStep li:not(:last-child):after {
  content: "";
  width: 0;
  height: 0;
  border-left: solid .4em #999;
  border-top: solid .4em transparent;
  border-bottom: solid .4em transparent;
  position: absolute;
  top: 0;
  bottom: 0;
  right: -.2em;
  margin: auto;
}
#simulator form #formStep li.active {
  color: var(--corpColor1);
  border-color: var(--corpColor1);
}
#simulator form #formStep li.active:after {
  border-left-color: var(--corpColor1);
}
#simulator form .simStep {
  height: calc(100% - 240px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 80px;
  position: relative;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  z-index: -1;
  -moz-transition: all 0.8s ease 0s;
  -o-transition: all 0.8s ease 0s;
  -webkit-transition: all 0.8s ease;
  -webkit-transition-delay: 0s;
  transition: all 0.8s ease 0s;
  -moz-transform: translateX(20%);
  -ms-transform: translateX(20%);
  -webkit-transform: translateX(20%);
  transform: translateX(20%);
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  margin: auto;
}
#simulator form .simStep h3 {
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-align: center;
  text-indent: 0.1em;
  font-weight: 700;
  color: var(--corpColor1);
  margin-bottom: 1em;
}
#simulator form .simStep table {
  font-size: 0.83333rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
#simulator form .simStep table th {
  text-align: right;
  vertical-align: middle;
  padding: 1em;
  color: #666;
}
#simulator form .simStep table td {
  text-align: left;
  padding: 1em;
  position: relative;
}
#simulator form .simStep table td input {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "sans-serif";
  font-size: 0.83333rem;
  padding: .5em;
  -moz-border-radius: 0.2em;
  -webkit-border-radius: 0.2em;
  border-radius: 0.2em;
  border: solid 1px #ccc;
}
#simulator form .simStep table td span.error {
  font-size: .8em;
  color: red;
  position: absolute;
  bottom: 0;
  left: 1em;
  letter-spacing: 0;
}
#simulator form .simStep .btnArea {
  position: absolute;
  width: 100%;
  height: 80px;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
#simulator form .simStep .btnArea button, #simulator form .simStep .btnArea input[type="submit"] {
  display: block;
  font-family: 'Noto Sans JP', "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "sans-serif";
  font-size: 0.88889rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-align: center;
  text-indent: 0.1em;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  -webkit-transition: all 0.4s ease;
  -webkit-transition-delay: 0s;
  transition: all 0.4s ease 0s;
  background-color: var(--corpColor1);
  color: #fff;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  width: 200px;
  height: 48px;
  padding: .4em 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: solid 1px #ccc;
}
#simulator form .simStep .btnArea button:after, #simulator form .simStep .btnArea input[type="submit"]:after {
  content: "";
  width: .3em;
  height: .3em;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  bottom: 0;
  right: 1em;
  margin: auto;
}
#simulator form .simStep .btnArea button:disabled, #simulator form .simStep .btnArea input[type="submit"]:disabled {
  background-color: #fff;
  color: #ccc;
  cursor: not-allowed;
}
#simulator form .simStep .btnArea button:disabled:after, #simulator form .simStep .btnArea input[type="submit"]:disabled:after {
  border-color: #ccc;
}
#simulator form .simStep .btnArea button:hover, #simulator form .simStep .btnArea input[type="submit"]:hover {
  background-color: var(--corpColor2);
}
#simulator form .simStep .btnArea a.back {
  position: absolute;
  left: 20%;
  top: 1em;
  color: var(--corpColor1);
}
#simulator form .simStep .btnArea > img {
  position: absolute;
  display: inline-block;
  left: calc(50% + 120px);
  top: 0;
  bottom: 0;
  margin: auto;
  width: 24px;
  height: 24px;
}
#simulator form .simStep.active {
  filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
  opacity: 1;
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
  z-index: 1;
}
#simulator form .simStep.fin {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -moz-transform: translateX(-20%);
  -ms-transform: translateX(-20%);
  -webkit-transform: translateX(-20%);
  transform: translateX(-20%);
  z-index: -1;
}
#simulator form #simStep01 ul {
  display: flex;
  width: 320px;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88889rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-align: center;
  text-indent: 0.1em;
}
#simulator form #simStep01 ul li {
  flex-basis: 150px;
  height: 150px;
}
#simulator form #simStep01 ul li label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: solid 3px #aaa;
  -moz-border-radius: 16px;
  -webkit-border-radius: 16px;
  border-radius: 16px;
  cursor: pointer;
  -moz-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  -webkit-transition: all 0.4s ease;
  -webkit-transition-delay: 0s;
  transition: all 0.4s ease 0s;
  -moz-box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  -moz-transform: translate(-2px, -2px);
  -ms-transform: translate(-2px, -2px);
  -webkit-transform: translate(-2px, -2px);
  transform: translate(-2px, -2px);
  color: #aaa;
}
#simulator form #simStep01 ul li label input[type=radio] {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
}
#simulator form #simStep01 ul li label img {
  width: 90px;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
  opacity: 0.6;
  -moz-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  -webkit-transition: all 0.4s ease;
  -webkit-transition-delay: 0s;
  transition: all 0.4s ease 0s;
}
#simulator form #simStep01 ul li label p {
  font-size: 0.88889rem;
  line-height: 2;
  letter-spacing: 0.1em;
  text-align: center;
  text-indent: 0.1em;
  font-weight: 700;
  margin: 10px auto;
}
#simulator form #simStep01 ul li label:hover {
  -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
  -moz-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
  color: #666;
  border-color: #666;
}
#simulator form #simStep01 ul li label:hover img {
  filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
  opacity: 1;
}
#simulator form #simStep01 ul li label:has(input[type=radio]:checked) {
  -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
  -moz-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
  color: #666;
  border-color: var(--corpColor1);
}
#simulator form #simStep01 ul li label:has(input[type=radio]:checked) img {
  filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
  opacity: 1;
}

@media (max-width: 767.98px) {
  #simulator {
    height: calc(100vh - var(--headerHeight) - 50px);
  }
  #simulator form {
    height: calc(100% - 16vw);
  }
  #simulator form hgroup {
    margin: 15px auto;
  }
  #simulator form .simStep {
    height: calc(100% - 180px);
    bottom: 0;
  }
  #simulator form .simStep table {
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.1em;
    max-width: 84%;
    margin: 0 auto;
  }
  #simulator form .simStep table th, #simulator form .simStep table td {
    display: block;
    text-align: left;
  }
  #simulator form .simStep table th {
    padding: 0;
    line-height: 1.2;
  }
  #simulator form .simStep table td {
    padding: 1em 0 2em;
  }
  #simulator form .simStep table td input {
    font-size: 1.16667rem;
  }
  #simulator form .simStep .btnArea {
    position: absolute;
    width: 100%;
    height: 80px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
  }
  #simulator form .simStep .btnArea button, #simulator form .simStep .btnArea input[type="submit"] {
    font-size: 1.11111rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-align: center;
    text-indent: 0.1em;
    width: 160px;
    height: 48px;
  }
  #simulator form .simStep .btnArea a.back {
    left: 8%;
    top: 2em;
  }
  #simulator form #simStep01 ul {
    width: 260px;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-align: center;
    text-indent: 0.1em;
  }
  #simulator form #simStep01 ul li {
    flex-basis: 120px;
    height: 120px;
  }
  #simulator form #simStep01 ul li label img {
    width: 60px;
  }
  #simulator form #simStep01 ul li label p {
    font-size: 0.88889rem;
    line-height: 2;
    letter-spacing: 0.1em;
    text-align: center;
    text-indent: 0.1em;
  }
}
