.header_wrap.m--popup .header_inner {
  position: relative;
}

.header_wrap.m--popup .close_btn {
  position: absolute;
  left: 0;
  z-index: 999;
  font-size: 16px;
  font-weight: 300;
  color: #00A5D9;
  background-color: #ffffff;
  border: solid 2px #00A5D9;
  border-radius: 32px;
  padding: 12px 36px;
}

.header_wrap.m--popup .close_btn:hover {
  color: #ffffff;
  background-color: #00A5D9;
  border: solid 2px #00A5D9;
}

@media (max-width: 640px) {
  .header_wrap.m--popup .close_btn {
    width: 80px;
    padding: 12px 12px;
  }
}

.header_wrap.m--popup .title {
  width: 100%;
  font-size: 24px;
  font-weight: 300;
  text-align: center;
}

@media (max-width: 640px) {
  .header_wrap.m--popup .title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .header_wrap.m--popup .title {
    font-size: 16px;
  }
}

.header_inner .decide_btn {
  position: absolute;
  right: 0;
  z-index: 999;
  font-size: 16px;
  font-weight: 300;
  color: #00A5D9;
  background-color: #ffffff;
  border: solid 2px #00A5D9;
  border-radius: 32px;
  padding: 12px 36px;
}

.header_inner .decide_btn:hover {
  color: #ffffff;
  background-color: #00A5D9;
  border: solid 2px #00A5D9;
}

@media (max-width: 640px) {
  .header_inner .decide_btn {
    width: 80px;
    padding: 12px 12px;
  }
}
.topimage_wrap {
  position: relative;
  width: 100%;
  height: 400px;
  margin: auto;
  background: url(../img/topimage.jpg) top center no-repeat;
  background-size: cover;
}

@media (max-width: 640px) {
  .topimage_wrap {
    width: 100%;
    height: 229px;
    margin: auto;
    background: url(../img/topimage.jpg) center center no-repeat;
    background-size: cover;
  }
}

.search_wrap {
  width: 100%;
  padding-top: 63px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .search_wrap {
    padding-top: 32px;
  }
}

.search_tab_wrap {
  width: 70%;
  margin: auto;
  display: flex;
  z-index: 999;
  bottom: -3px;
  max-width: 1100px;
}

@media (max-width: 1000px) {
  .search_tab_wrap {
    width: 75%;
  }
}

.search_tab_wrap a {
  padding-top: 25px;
}

@media (max-width: 1000px) {
  .search_tab_wrap a {
    display: none;
  }
}

.search_wrap input[name="search_type"] {
  display: none;
}

.search_tab {
  position: relative;
  width: 50%;
  color: #ffffff;
  background-color: #0089B4;
  border-top: solid 6px #0089B4;
  border-left: solid 3px #0089B4;
  border-right: solid 3px #0089B4;
  border-bottom: solid 3px #00A5D9;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  font-size: 1.875em;
  /*font-weight: 300;*/
  text-align: center;
  padding: 10px 0 10px 0;
  cursor: pointer;
}

.search_tab_border {
  position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  display: block;
  margin: 0px 3px;
  border-top: solid 6px #0089B4;
}

.search_tab small {
  font-size: 68.75%;
  color: #ffffff;
}

@media (max-width: 480px) {
  .search_tab {
    font-size: 1em;
  }
}

@media (max-width: 1000px) {
  .search_tab:last-of-type {
    margin-right: 0;
  }
}

.search_tab:hover {
  background-color: #ffffff;
  color: #000000;
  border-top: solid 6px #00A5D9;
  border-left: solid 3px #00A5D9;
  border-right: solid 3px #00A5D9;
}

.search_tab:hover .search_tab_border {
  border-top: solid 6px #00A5D9;
}

.search_tab:hover small {
  color: #000000;
}

.search_tab.m--tiiki::after {
  content: "";
  display: inline-block;
  width: 60px;
  height: 50px;
  background-image: url(../img/icon_japan.svg);
  background-size: cover;
  vertical-align: middle;
  margin-left: 10px;
}

@media (max-width: 640px) {
  .search_tab.m--tiiki::after {
    content: "";
    display: block;
    background-image: url(../img/icon_japan.svg);
    background-size: cover;
    vertical-align: middle;
    margin: auto;
  }
}

.search_tab.m--rosen::after {
  content: "";
  display: inline-block;
  width: 44px;
  height: 50px;
  background-image: url(../img/icon_train.svg);
  background-size: cover;
  vertical-align: middle;
  margin-left: 10px;
}

@media (max-width: 640px) {
  .search_tab.m--rosen::after {
    content: "";
    display: block;
    background-image: url(../img/icon_train.svg);
    background-size: cover;
    vertical-align: middle;
    margin: auto;
  }
}

.radio_tiiki:checked ~ .search_tab_wrap .search_tab.m--tiiki {
  background-color: #ffffff;
  color: #000000;
  border-top: solid 6px #00A5D9;
  border-left: solid 3px #00A5D9;
  border-right: solid 3px #00A5D9;
  border-bottom: solid 3px #ffffff;
}

.radio_tiiki:checked ~ .search_tab_wrap .search_tab_border.m--tiiki {
  border-top: solid 6px #00A5D9;
}

.radio_tiiki:checked ~ .search_tab_wrap .search_tab.m--tiiki small {
  color: #000000;
}

.radio_rosen:checked ~ .search_tab_wrap .search_tab.m--rosen {
  background-color: #ffffff;
  color: #000000;
  border-top: solid 6px #00A5D9;
  border-left: solid 3px #00A5D9;
  border-right: solid 3px #00A5D9;
  border-bottom: solid 3px #ffffff;
}

.radio_rosen:checked ~ .search_tab_wrap .search_tab_border.m--rosen {
  border-top: solid 6px #00A5D9;
}

.radio_rosen:checked ~ .search_tab_wrap .search_tab.m--rosen small {
  color: #000000;
}

.radio_tiiki:checked ~ .search_tab_wrap .search_tab.m--tiiki::after,
.radio_tiiki:hover ~ .search_tab_wrap .search_tab.m--tiiki::after {
  content: "";
  width: 60px;
  height: 50px;
  background-image: url(../img/icon_japan_hover.svg);
  background-size: cover;
  vertical-align: middle;
}

.radio_rosen:checked ~ .search_tab_wrap .search_tab.m--rosen::after,
.radio_rosen:hover ~ .search_tab_wrap .search_tab.m--rosen::after {
  content: "";
  width: 42px;
  height: 50px;
  background-image: url(../img/icon_train_hover.svg);
  background-size: cover;
  vertical-align: middle;
}

.search_contents {
  display: none;
  width: 90%;
  margin: auto;
  background-color: #ffffff;
  border: solid 3px #00A5D9;
  border-radius: 20px;
  padding: 20px;
  max-width: 1200px;
}

@media (max-width: 640px) {
.search_contents {
  padding: 15px 10px;
  width: 95%;
 }
}

.search_contents_byoji{
  width: 90%;
  margin: auto;
  background-color: #ffffff;
  border: solid 3px #00A5D9;
  border-radius: 20px;
  padding: 20px;
  max-width: 1200px;
}

@media (max-width: 640px) {
.search_contents_byoji {
  padding: 15px 10px;
  width: 95%;
 }
}

#r_tiiki:checked ~ .search_contents_wrap #tiiki_content,
#r_rosen:checked ~ .search_contents_wrap #rosen_content {
  display: block;
}

.step_wrap {
  width: 100%;
  margin: auto;
}

@media (max-width: 1000px) {
  .step_wrap {
    width: 100%;
  }
}

.step_header {
  display: flex;
  align-items: center;
  padding: 0 12px 11px 12px;
  border-bottom: solid 3px #00A5D9;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .step_header {
    padding-bottom: 6px;
    border-bottom: solid 3px #00A5D9;
    margin-bottom: 12px;
  }
}

.step_header .step {
  text-align: center;
  background-color: #0089B4;
  color: #ffffff;
  font-size: 1em;
  padding: 3px 19px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .step_header .step {
    font-size: 0.875em;
    padding: 4px 6px;
  }
}

.step_header .header {
  color: #000000;
  font-size: 1.2em;
  /*font-weight: 300;*/
  padding: 0 20px;
}

@media (max-width: 640px) {
  .step_header .header {
    font-size: 0.875em;
    padding: 0 6px;
  }
}

.step_body {
  padding: 0 10px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .step_body {
    margin-bottom: 12px;
  }
}

label.step:hover,
label.header:hover {
  opacity: 0.7;
}

.step_body .title {
  color: #393939;
  font-size: 1em;
  margin-bottom: 10px;
}

@media (min-width: 640px) {
  .step_body .item.m--select,
  .step_body .item.m--text {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
}

.step_body .item.m--text.m--moyori {
  display: none;
}

.item.m--select .item_name,
.item.m--text .item_name {
  width: 30%;
  padding-right: 10px;
}

@media (max-width: 640px) {
  .item.m--select .item_name,
  .item.m--text .item_name {
    width: 100%;
    padding-right: 10px;
  }
}

.item.m--select .item_name span,
.item.m--text .item_name span {
  margin-left: 1em;
  line-height: 2em;
  /*font-weight: 300;*/
  color: #333;
  font-size: 1em;
}

.item.m--select .item_name::before,
.item.m--text .item_name::before {
  position: absolute;
  top: 0;
  bottom: 0;
  content: "\02022";
  color: #00A5D9;
  font-size: 2em;
}

#buttonRegion {
  margin-left: 20px;
  display: inline-block;
  background-color: white;
  border: solid 2px #E98300;
  color: #E98300;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 16px;
  white-space: nowrap;
}

@media screen and (max-width: 640px) {
  #buttonRegion {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media screen and (max-width: 400px) {
  #buttonRegion {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media screen and (min-width: 600px) {
  #buttonRegion {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media screen and (min-width: 768px) {
  #buttonRegion {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media screen and (min-width: 1024px) {
  #buttonRegion {
    padding: 8px 16px;
    font-size: 14px;
  }
}

#buttonRegion:hover {
  opacity: 0.7;
}

#buttonRegion:focus {
  outline: none;
}

#buttonRoute {
  margin-left: 20px;
  display: inline-block;
  background-color: white;
  border: solid 2px #E98300;
  color: #E98300;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 16px;
  white-space: nowrap;
}

@media screen and (max-width: 640px) {
  #buttonRoute {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media screen and (max-width: 400px) {
  #buttonRoute {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media screen and (min-width: 600px) {
  #buttonRoute {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media screen and (min-width: 768px) {
  #buttonRoute {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media screen and (min-width: 1024px) {
  #buttonRoute {
    padding: 8px 16px;
    font-size: 14px;
  }
}

#buttonRoute:hover {
  opacity: 0.7;
}

#buttonRoute:focus {
  outline: none;
}

.check-list {
  display: flex;
  font-size: 1em;
  /*font-weight: 300;*/
  flex-wrap: wrap;
  border-top: solid 2px #00A5D9;
  padding-top: 16px;
  padding-left: 10px;
  color: #333;
}

.check-list li {
  display: flex;
  /* align-items: center; */
  align-items: baseline; 
  line-height: 1.4;
  margin-bottom: 8px; 
  width: 180px;
}

.check-list li label {
  display: flex;
  align-items: center;
  font-size: inherit;
  word-break: break-word;
  padding-right: 5px;
}

@media (max-width: 640px) {
  .check-list {
    flex-wrap: wrap;
    border-top: solid 2px #00A5D9;
    padding-top: 10px;
  }
}

.check-list.m--col2 li {
  width: 50%;
}

@media (max-width: 640px) {
  .check-list.m--col2 li {
    width: 100%;
  }
}

.check-list.m--col3 li {
  width: 50%;
}

.check-list.m--col4 li {
  width: 25%;
}

@media (max-width: 640px) {
  .check-list.m--col4 li {
    width: 50%;
  }
}

@media (max-width: 640px) {
  .check-list.m--col3 li {
    width: 100%;
  }
}

/* 「駅」項目デフォルト表示しない */
#idMoyoriName,
.item.m--text .item_name.m--moyori {
  display: none;
}

.item.m--text .item_name.m--moyori {
  display: none;
  margin-bottom: 0;
}

.item.m--text input[type="text"] {
  width: 50%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-width: 1px;
  border: solid 1px #555555;
  border-radius: 8px;
  color: #7a7a7a;
  font-size: 0.875em;
  font-weight: 300;
  background-color: #ffffff;
  padding: 0.5rem 1rem 0.5rem 1rem;
  line-height: 1.25;
}

.item.m--select select {
  width: 50%;
  border-width: 1px;
  border: solid 1px #555555;
  border-radius: 8px;
  color: #7a7a7a;
  font-size: 0.875em;
  font-weight: 300;
  background-color: #ffffff;
  padding: 0.5rem 1rem 0.5rem 1rem;
  line-height: 1.25;
}

.item.m--select select {
  position: relative;
}

@media (max-width: 640px) {
  .item.m--text input[type="text"] {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 10px 0 10px 0;
    padding: 0.5rem 1rem 0.5rem 1rem;
  }
  .item.m--select select {
    width: 100%;
    margin: 10px 0 10px 0;
    padding: 0.5rem 1rem 0.5rem 1rem;
  }
}

.step_body .item.m--check {
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .step_body .item.m--check {
    margin-bottom: 6px;
  }
}

.step_body .item.m--check:last-of-type {
  margin-bottom: 0;
}

.item.m--check .item_name {
  position: relative;
  padding: 11px 10px;
}

@media (max-width: 640px) {
  .item.m--check .item_name {
    position: relative;
    padding: 6px;
  }
}

.item.m--check .item_name span {
  color: #333;
  font-size: 1em;
  /*font-weight: 300;*/
}

.item.m--check input[type="checkbox"] {
  margin-top: 4px; 
  margin-right: 8px;
}

.search_btn_wrap {
  text-align: center;
}

.submit_btn {
  position: relative;
  display: inline;
}

.submit_btn input {
  color: #ffffff;
  font-size: 1.25em;
  font-weight: 300;
  background: #E98300;
  border-radius: 32px;
  padding: 23px 97px;
  cursor: pointer;
}
@media (max-width: 640px) {
  .submit_btn input {
    color: #ffffff;
    font-size: 1em;
    background: #E98300;
    border-radius: 32px;
    padding: 12px 34px;
    cursor: pointer;
  }
}

.submit_btn input:hover {
  opacity: 0.7;
}

.submit_btn::after {
  content: "\03e";
  color: #ffffff;
  font-size: 1.5em;
  position: absolute;
  right: 0.75em;
  padding: 21px 0;
}

@media (max-width: 640px) {
  .submit_btn::after {
    font-size: 1.25em;
    position: absolute;
    right: 0.75em;
    padding: 12px 0;
  }
}

#popup.body_wrap {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100%;
  margin: auto;
  padding-top: 60px;
  background-color: #fff;
}

@media (max-width: 640px) {
  #popup.body_wrap {
    padding: 32px 32px 24px 32px;
    overflow: scroll;
  }
}

.checkbox-ul {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  margin: auto;
}

.rosen_name {
  font-size: 16px;
}

@media (max-width: 640px) {
  .checkbox-ul {
    width: 100%;
  }
}

.checkbox-ul li {
  width: calc(100% / 5);
  width: -webkit-calc(100% / 5);
  padding-bottom: 20px;
}

@media (max-width: 640px) {
  .checkbox-ul li {
    width: calc(100% / 3);
    width: -webkit-calc(100% / 3);
    padding-right: 15px;
    padding-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .checkbox-ul li {
    width: calc(100% / 2);
    width: -webkit-calc(100% / 2);
    padding-right: 10px;
    padding-bottom: 10px;
  }
}

.checkbox-ul li input {
  margin-right: 10px;
}

@media (max-width: 640px) {
  .checkbox-ul li input {
    margin-right: 5px;
  }
}

.checkbox-ul li label {
  color: #393939;
  font-size: 16px;
}

@media (max-width: 640px) {
  .checkbox-ul li label {
    font-size: 13px;
  }
  .rosen_name {
  font-size: 16px;
}
}

