@charset "UTF-8";

/*==========================================================================
  Common
==========================================================================*/

body {
  font-family: 游ゴシック, YuGothic, メイリオ, Meiryo, sans-serif, Roboto,
    "Droid Sans", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro";
  font-size: 16px;
  font-weight: 500;
  color: #505050;
}
.clear:after {
  content: "";
  display: block;
  clear: both;
}
a {
  text-decoration: none;
}
a:hover {
  opacity: 0.8;
}
.txt_center {
  text-align: center;
}
.txt_right {
  text-align: right;
}
/** フォームリセット **/
input,
button,
textarea,
select,
submit {
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
@media screen and (min-width: 800px) {
  body {
    min-width: 1300px;
  }
}

/**
 * 市町村マッチング診断 - トップページ
 */
.main_matching {
  height: auto;
  background: #e1f3f3;
  padding: 10px 0;
}
.main_matching .pagetitle {
  height: auto;
}
.main_matching .pagetitle img {
  max-width: 100%;
}
.m_about_text {
  width: 50%;
  margin-right: 2%;
  margin-top: 20px;
}

.matching_about_wrap {
  padding-top: 30px;
  padding-bottom: 80px;
}

.matching_about figure {
  width: 48%;
}

.matching_about figure img {
  width: 100%;
}

.diagnosis_box {
  width: 48.5%;
  margin-right: 3%;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
}

.diagnosis_box:last-child {
  margin-right: 0;
}

.diagnosis_box h4 {
  font-size: 20px;
  margin: 0 0 15px;
  color: #000;
}
.diagnosis_box figure {
  text-align: center;
}
.diagnosis_box figure img {
  max-width: 100%;
}

.icon_step1,
.icon_step2 {
  position: relative;
}
.icon_step1::before {
  content: "1";
  background: #f50;
  color: #fff;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 18px;
  margin-right: 10px;
}
.icon_step2::before {
  content: "2";
  background: #f50;
  color: #fff;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 18px;
  margin-right: 10px;
}
.more_link {
  max-width: 450px;
  margin: 0 auto 70px;
  width: 100%;
}
.more_link a {
  background: #56a1d2;
  border: 2px solid #56a1d2;
  display: block;
  text-align: center;
  font-weight: bold;
  color: #fff;
  padding: 20px;
  font-size: 20px;
}
.more_link a:hover {
  background: #fff;
  color: #56a1d2;
}
.matching_about {
  margin-bottom: 60px;
}
.diagnosis {
  margin-top: 40px;
}

/**
 * 各設問ページ
 */
.question_box {
  width: 31.3%;
  margin-right: 3%;
  margin-bottom: 25px;
}
.question_box:nth-child(3n) {
  margin-right: 0;
}

.question_box .caption_txt {
  text-align: center;
  display: block;
  margin-top: 5px;
}

.question_img_box {
  cursor: pointer;
  font-size: 0;
  position: relative;
}
.question_img_box img {
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  width: 100%;
}
.question_img_box img:hover {
  -webkit-transform: scale(1.2, 1.2);
  transform: scale(1.2, 1.2);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.question_img_box span {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.question_img_box.active span::before {
  content: "";
  background: rgba(249, 220, 191, 0.4);
  outline: 8px solid #f0850f;
  outline-offset: -8px;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  display: inline-block;
  z-index: 20;
}
.question_img_box.active span::after {
  content: "";
  background: url(../img/common/icon_check_mark.jpg) 0 0 no-repeat;
  background-size: 30px;
  height: 30px;
  width: 30px;
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 20;
}

.question_img_box.active::before,
.question_img_box.active::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border: 1px solid #f0850f;
  border-radius: 10px;
  box-sizing: border-box;
  pointer-events: none;
  animation: pulsate 0.8s linear 1;
}
.question_img_box.active::after {
  animation-delay: 0.4s;
}

/* 波紋が広がるアニメーション */
@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.btn_submit {
  max-width: 450px;
  width: 100%;
  margin: 0 auto 60px;
}
.btn_submit input[type="submit"] {
  display: block;
  width: 100%;
  background: #56a1d2;
  border: 2px solid #56a1d2;
  color: #fff;
  padding: 20px;
  font-size: 20px;
  font-weight: bold;
  opacity: 0.5;
}

.btn_submit input[type="submit"].on {
  opacity: 1;
  cursor: pointer;
}

.btn_submit input[type="submit"].on:hover {
  background: #fff;
  color: #56a1d2;
}

.row_wrap.question_lists {
  margin-bottom: 4%;
}
.error_message {
  display: none;
  text-align: center;
  font-weight: bold;
  font-size: 22px;
  color: #ff1313;
}
.matching_result_box {
  width: 32%;
  margin-right: 2%;
  counter-increment: list-counter;
}

.matching_result_box:last-child {
  margin-right: 0;
}
.matching_result_box figure img {
  width: 100%;
}

.matching_r_text {
  padding: 10px;
  line-height: 1.5;
  font-size: 15px;
}

.matching_result_box .btn_box {
  width: 100%;
  max-width: 250px;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: 15px;
}

.matching_result_box .btn_box a {
  background: #56a1d2;
  border: 2px solid #56a1d2;
  display: block;
  text-align: center;
  color: #fff;
  padding: 10px;
}

.result_btn_x2 {
  max-width: 700px;
  width: 100%;
  margin: 0 auto 70px;
  display: flex;
  flex-wrap: wrap;
}

.result_btn_x2 .btn_box {
  width: 48%;
  margin-right: 4%;
}

.result_btn_x2 .btn_box a {
  display: block;
  position: relative;
  background: #56ba83;
  padding: 20px 10px;
  text-align: center;
  color: #fff;
}

.result_btn_x2 .btn_box:last-child {
  margin-right: 0;
}

.result_btn_x2 .btn_box a.link_back {
  background: #56a1d2;
}
.link_arrow {
  position: relative;
}
.link_arrow::after {
  content: "";
  background: url(/assets/images/top/more_btn_icon_white.png) 0 0 no-repeat;
  background-size: 25px 13px;
  position: absolute;
  top: 50%;
  right: 15px;
  width: 25px;
  height: 13px;
  margin-top: -6px;
}

.result_btn_x2 .btn_box a.link_back::before {
  content: "";
  background: url(/assets/images/top/more_btn_icon_white.png) 0 0 no-repeat;
  background-size: 25px 13px;
  position: absolute;
  top: 50%;
  left: 15px;
  width: 25px;
  height: 13px;
  margin-top: -6px;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.form_wrap {
  max-width: 800px;
  margin: 0 auto 70px;
  width: 100%;
}

.form_box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 30px;
}

.form_box dt {
  width: 17%;
  font-weight: bold;
  font-size: 18px;
}

.form_box dd {
  width: 78%;
}

.form_note {
  margin-bottom: 40px;
}

.form_note p {
  margin: 0;
  width: 100%;
}

.form_note p.privacy_link {
  margin-top: 30px;
  text-align: center;
  font-size: 18px;
}

.parts_checkbox {
  text-align: center;
  font-size: 18px;
}

.form_note p.privacy_link a {
  border-bottom: 1px solid;
}

.form_note p.form_note_text {
  background: #fff;
  padding: 30px;
  font-size: 15px;
}
.matching_catch_text {
  text-align: center;
  margin: 20px 0;
}

.matching_catch_text p {
  text-align: center;
  font-size: 22px;
}
.matching_catch_point {
  font-weight: bold;
  color: #f2921a;
}
.matching_result_text {
  margin: 30px 0;
}

.matching_result_text p {
  font-size: 24px;
  text-align: center;
  font-weight: bold;
}
.matching_result_inner {
  background: #fff;
  position: relative;
  padding-bottom: 15%;
  height: 100%;
}
.matching_recommend_ttl {
  font-size: 18px;
  color: #12668e;
  margin: 0 0 15px;
  text-align: center;
}

.matching_recommend_ttl span {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  padding-right: 20px;
  margin-right: 10px;
  margin-top: -3px;
}

.matching_recommend_ttl span::after {
  content: counter(list-counter);
  border: 1px solid;
  box-sizing: border-box;
  border-radius: 50%;
  height: 18px;
  width: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 2px;
  right: 0;
  font-size: 70%;
}
.block .matching_recommend_ttl p {
  font-size: 20px;
  color: #1b0000;
  line-height: 1;
  margin: 0;
  text-align: unset;
  display: inline-block;
  width: auto;
  position: relative;
  padding: 0 35px 3px;
}

.block .matching_recommend_ttl p::before {
  content: "";
  background: url(../img/common/icon_decoration_l.png) 0 0 no-repeat;
  background-size: 26px 34px;
  height: 34px;
  width: 26px;
  position: absolute;
  left: 0;
  bottom: 0;
}

.block .matching_recommend_ttl p::after {
  content: "";
  background: url(../img/common/icon_decoration_r.png) 0 0 no-repeat;
  background-size: 26px 34px;
  height: 34px;
  width: 26px;
  position: absolute;
  right: 0;
  bottom: 0;
}

.matching_result {
  margin-top: 45px;
  margin-bottom: 90px;
}

/**
* フォームパーツ
*/
.form_box input[type="text"],
.form_box input[type="email"] {
  border-radius: 5px;
  width: 60%;
  padding: 0 5px;
  border: 1px solid #a8a8a8;
  line-height: 1.1;
  height: 35px;
  font-size: 16px;
}
.zip_box input[type="text"] {
  width: 100px;
}

/** チェックボックス装飾 **/
.parts_checkbox label input[type="checkbox"] + span {
  position: relative;
  padding-left: 20px;
}
.parts_checkbox label input[type="checkbox"]:checked + span {
  color: #f18d02;
}
.parts_checkbox label input[type="checkbox"] + span::before {
  content: "";
  background: #fff;
  display: block;
  position: absolute;
  top: 3px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid #999;
  border-radius: 4px;
}
.parts_checkbox label input[type="checkbox"]:checked + span::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 5px;
  width: 7px;
  height: 14px;
  transform: rotate(40deg);
  border-bottom: 3px solid #f18d02;
  border-right: 3px solid #f18d02;
}
.form_box input[name="name"] {
  width: 45%;
}

.form_box input[name="mail"] {
  width: 98%;
}
.block .m_about_text p {
  margin: 0;
}

.m_about_text h3 {
  font-size: 24px;
  margin-bottom: 15px;
}
.block .matching_r_text p {
  padding: 10px;
  line-height: 1.5;
  font-size: 14px;
  margin: 0 0 10px;
  text-align: unset;
  width: auto;
  padding: 0;
}
.block .matching_r_text p:last-child {
  margin-bottom: 0;
}

.matching_note {
  background: #fff;
  max-width: 990px;
  width: 100%;
  margin: 50px auto;
  padding: 25px 30px;
  border: 3px dashed #f49f3a;
}

.block .matching_note p {
  margin: 0;
  font-size: 15px;
  width: 100%;
}

.matching_r_text .matching_point_list {
  margin: 0;
  padding: 0;
  position: relative;
}

.matching_r_text .matching_point_list li {
  border-bottom: 1px dashed #9c9a9b;
  margin-bottom: 10px;
  padding-bottom: 10px;
  font-size: 13px;
  position: relative;
  padding-left: 20px;
}

.matching_r_text .matching_point_list li::before {
  content: "";
  background: url(../img/common/icon_check_big.png) 0 0 no-repeat;
  background-size: 15px;
  height: 15px;
  width: 15px;
  position: absolute;
  left: 0;
  top: 2px;
}

.matching_r_text .matching_point_list li span {
  font-weight: bold;
  font-size: 15px;
}

.matching_r_text > h4 {
  margin: 0 0 10px;
  background: linear-gradient(transparent 60%, #bae3ea 60%);
  display: inline-block;
  font-size: 17px;
  padding: 0 5px;
}
.matching_about_wrap .header_subtitle_slash.matching_about_ttl {
  margin-bottom: -25px;
}
.matching_select_text {
  font-weight: bold;
  font-size: 1.3em;
  color: #f39112;
}
/**
* レスポンシブ
*/
@media screen and (max-width: 768px) {
  .header_subtitle_slash span {
    display: block;
  }
  .header_subtitle_slash span::after {
    width: 70%;
    left: 0;
    right: 0;
    bottom: -15px;
    margin: 0 auto;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 120px 8px;
    height: 8px;
  }
  .matching_about_wrap .header_subtitle_slash.matching_about_ttl {
    margin-bottom: 10%;
  }
}
@media screen and (max-width: 600px) {
  .matching_about_wrap {
    padding-bottom: 0;
  }
  .main_matching {
    margin-top: 70px;
  }
  .m_about_text {
    width: 100%;
    margin-right: 0;
    order: 2;
  }

  .matching_about figure {
    order: 1;
    width: 90%;
    margin: 0 auto 20px;
  }

  .diagnosis_box {
    width: 100%;
    margin: 0 20px 30px;
    padding: 20px;
  }

  .diagnosis_box h4 {
    padding-left: 2em;
    position: relative;
  }

  .icon_step1::before,
  .icon_step2::before {
    position: absolute;
    left: 0;
    top: -3px;
    height: 20px;
    line-height: 20px;
  }

  .more_link {
    width: 90%;
  }
  .diagnosis_box:last-child {
    margin-right: 20px;
  }
  .question_box {
    width: 48%;
  }

  .question_box:nth-child(2n) {
    margin-right: 0;
  }

  .row_wrap.question_lists {
    margin: 0 10px 4%;
    width: auto;
  }

  .btn_submit {
    width: 90%;
  }
  .matching_result_box {
    width: 90%;
    margin: 0 auto 35px;
  }

  .matching_result_box:last-child {
    margin-right: auto;
  }

  .result_btn_x2 .btn_box {
    width: 90%;
    margin: 0 auto 20px;
  }

  .result_btn_x2 .btn_box:last-child {
    margin-right: auto;
  }

  .matching_result {
    margin-top: 0;
    margin-bottom: 10px;
  }
  .block .matching_recommend_ttl p {
    font-size: 22px;
  }
  .matching_catch_text p {
    text-align: left;
    font-size: 20px;
  }
  .diagnosis_box:last-child figure {
    margin-top: 0;
  }

  .matching_result_inner {
    padding-bottom: 15px;
    height: auto;
  }
  .matching_result_box .btn_box {
    position: relative;
    bottom: auto;
    margin: 15px auto 0;
    left: auto;
    right: auto;
  }

  .matching_note {
    margin-top: 0;
    padding: 20px;
    width: 90%;
  }

  .result_btn_x2 {
    margin-bottom: 30px;
  }

  .block .matching_note p {
    width: 100% !important;
  }
}
