@charset "utf-8";

:root{
  --main_col0: #3f7f3f;
  --main_col1: #ecf7ca;
  --main_col2: #8fcf83;
  --main_col3: #f8f2ba;
  --main_col4: #674319;
}

@media (orientation : landscape){
  :root{
    --header_height: 4em;
    --root_height: 80vh;
    --input_div_width: calc(44vw - 2.6em);
    --main_form_flex_d: row;
    --main_form_jc: space-between;
    --invert_btn_margin: 14px 0 0 0;
    --invert_btn_rotate: 90deg;
    --search_btn_top: calc(var(--root_height) - 3em);
  }
}

@media (orientation : portrait){
  :root{
    --header_height: 6em;
    --root_height: 80vh;
    --input_div_width: 95%;
    --main_form_flex_d: column;
    --main_form_jc: normal;
    --invert_btn_margin: 8px 0 0 calc(50% - 1.25em);
    --invert_btn_rotate: 0;
    --search_btn_top: auto;
  }
}

html{
  touch-action: manipulation;
  overflow: hidden;
}

body{
  background: white;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  font-family: sans-serif;
  margin: 0;
  font-size: 16px;
}

select::-ms-expand, input::-ms-expand, button::-ms-expand{
  display: none;
}

select, input, button{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select{
  position: relative;
  font-size: 1.1em;
  color: #000000;
  line-height: 1.5em;
  border: 2px solid var(--main_col0);
  border-radius: 5px 0 0 5px;
  background-color: var(--main_col1);
  margin: 0;
}

input[type=radio]{
  width: 2em;
  height: 2em;
  margin: auto;
  border: 2px solid var(--main_col0);
  background-color: var(--main_col1);
}

input[type=text]{
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  height: fit-content;
  padding: 3px;
  font-size: 1.2em;
  border: 2px solid var(--main_col0);
  background-color: var(--main_col1);
}

button{
  font-size: 1.2em;
  box-shadow: none;
  border: none;
}

input, select, button{
  font-family: sans-serif;
}

ul{
  list-style: none;
  margin: 0 3px;
  padding: 0;
}

ul li::before{
  content: "・";
}

p{
  line-break: anywhere;
  word-wrap: break-word;
  margin: 3px;
}


.root{
  position: relative;
  margin: 0;
  width: 100%;
  height: var(--root_height);
  overflow-wrap: hidden;
  border: 1px solid var(--main_col0);
}

.header{
  position: static;
  width: 100%;
  height: var(--header_height);
  background: var(--main_col2);
}

#loadimg{
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.2);
}
#loadimg_data{
  position: absolute;
  top: calc(50% - 50px);
  left: calc(50% - 50px);
  width: 100px;
  height: 100px;
  background-image: url('loading.gif');
  background-position: center;
  background-repeat: no-repeat;  
}

#main_form{
  display: flex;
  flex-direction: var(--main_form_flex_d);
  justify-content: var(--main_form_jc);
  margin-bottom: 20px;
}

.allow_box{
  width: 30px;
  height: 20px;
  margin: 8px;
}

.allow{
  width: 14px;
  height: 5px;
  background-color: var(--main_col0);
  border-radius: 2px 0 0 2px;
  transform: translate(0, 7.5px);
}
.allow::after{
  content: "";
  display: block;
  border-top: 8px solid transparent;
  border-right: 0 solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 16px solid var(--main_col0);
  border-radius: 2px;
  transform: translate(13px, -5.5px);
}

.rot90{
  transform: rotate(90deg);
}

.rot270{
  transform: rotate(270deg);
}

.sel_o_box{
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  margin-left: 64px;
}
.sel_i_box{
  display: flex;
  width: fit-content;
  margin-left: 1em;
  margin-top: 8px;
}

.sel_btn{
  display: block;
  position: relative;
  justify-content: flex-end;
  font-size: 1.2em;
  width: 1.4em;
  height: 1.6em;
  background-color: var(--main_col0);
  border: 1px solid var(--main_col0);
  border-radius: 0 5px 5px 0;
  padding: 0;
  margin: auto 0 auto 0;
}

.sel_allow{
  width: 12px;
  height: 3px;
  border-radius: 3px;
  background-color: var(--main_col1);
  transform: translate(3px, 14px) rotate(45deg);
}
.sel_allow::after{
  position: absolute;
  width: 12px;
  height: 3px;
  display: block;
  content: "";
  border-radius: 3px;
  background-color: var(--main_col1);
  transform-origin: bottom right;
  transform: translate(-3px, 0) rotate(90deg);

}

#init_box{
  display: flex;
  justify-content: space-between;
  width: calc(100% - 90px);
  overflow-x: auto;
  padding: 6px 4px;
  border: 3px solid var(--main_col0);
  border-radius: 5px;
  background-color: var(--main_col1);
  transform: translate(70px, 7px);
}

.init_btn{
  min-width: 1.6em;
  width: 100vw;
  height: fit-content;
  margin: 0 2px;
  padding: 0;
  text-align: center;
  border-radius: 5px;
  background-color: var(--main_col0);
  color: white;
}

.predict_box{
  position: absolute;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  z-index: 100;
  margin-top: 1px;
  background-color: white;
  border: 2px solid var(--main_col0);
  border-radius: 0 0 5px 5px;
  overflow: scroll;
  max-height: 20vh;
}

.week_forms{
  border: 2px solid blue;
}

.dummy_window{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  overflow: hidden;
}

.dummy_menu{
  top: var(--header_height);
  height: calc(100% - var(--header_height));
  background-color: black;
  opacity: 0.2;
}

.sub_window{
  position: absolute;
  z-index: 1000;
  width: 100%;
  top: var(--header_height);
  height: calc(100% - var(--header_height));
  background-color: white;
  overflow: hidden;
}

.y_scroll{
  overflow-y: auto;
}

.invisible{
  display: none!important;
}

#menu_btn, #back_button{
  position: absolute;
  top: 7px;
  left: 7px;
  height: 2.5em;
  padding: 0;
  color: white;
  background-color: var(--main_col0);
  border: none;
  border-radius: 5px;
}

#menu_btn{
  width: 6em;
}

#menu_list{
  position: absolute;
  z-index: 100;
  top: var(--header_height);
  left: 0;
  max-width: 80vw;
  max-height: calc(var(--root_height) - var(--header_height));
  border: 3px solid var(--main_col0);
  border-radius: 3px;
  background-color: white;
  overflow-x: hidden;
  overflow-y: scroll;
  transition-property: transform;
  transition-duration: 0.2s;
  transform: scale(1);
  transform-origin: top left;
}
.menu_list_close{
  transform: scale(0)!important;
}

.menu_list_btn, .menu_list_link{
  display: block;
  width: 100%;
  height: fit-content;
  border: none;
  font-size: 18px;
  color: black;
  text-align: left;
  text-decoration: none;
  margin: 3px 0;
  padding: 0 5px;
  background: none;
}

.menu_head{
  position: relative;
  text-align: center;
  font-size: 17px;
}
.menu_head::before, .menu_head::after{
  position: absolute;
  display: block;
  content: "";
  width: calc(50% - 40px);
  height: 12px;
  border-bottom: 2px dashed var(--main_col2);
}
.menu_head::after{
  top: 0;
  right: 0;
}

.menu_category{
  margin-bottom: 8px;
  font-size: 18px;
}


#back_button{
  width: 3em;
}

#bus_start_div, #bus_goal_div{
  position: relative;
  width: var(--input_div_width);
  margin: 0 auto;
  padding: 0;
}

#invert_button{
  width: 2.5em;
  height: 2.5em;
  text-align: center;
  margin: var(--invert_btn_margin);
  padding: auto;
  background: none;
  transform: rotate(var(--invert_btn_rotate));
}

#search_button{
  position: absolute;
  width: 100%;
  height: 3em;
  top: var(--search_btn_top);
  color: white;
  background-color: var(--main_col0);
  border: none;
  margin: 0;
}

.del_btn{
  position: absolute;
  width: 24px;
  height: 24px;
  top: 34px;
  right: 4px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  z-index: 70;
}

.shape_x, .shape_x:after{
  width: 19px;
  height: 3px;
  border-radius: 3px;
  background-color: var(--main_col0);
}
.shape_x{
  margin: auto;
  transform: translate(-1px, 0) rotate(45deg);
}
.shape_x:after{
  content: "";
  display: block;
  transform: rotate(90deg);
}

#list_box{
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.list_btn{
  color: black;
  text-align: left;
  width: 100%;
  padding: 3px;
  margin: 0;
  background-color: white;
  border: none;
} 
.list_btn:hover{
  cursor: pointer;
  background-color: var(--main_col2);
} 
.list_btn:active{
  cursor: pointer;
  background-color: var(--main_col0);
}

.list_alternate{
  background-color: var(--main_col1);
}

.list_btn_box{
  width: 100%;
  border: 1px solid var(--main_col0);
  box-sizing: border-box;
}

.list_cont_close{
  margin: 0;
  max-height: 0;
  background-color: white;
  overflow: hidden;
  transition-property: max-height;
}
.list_cont_view{
  padding-bottom: 5px;
  max-height: 1000px;
  border-top: 2px solid var(--main_col0);
  transition-duration: 0.2s;
}

.bsn_input_btn{
  width: calc(50% - 8px);
  margin: 4px;
  color: white;
  background-color: var(--main_col0);
}

.enter_border{
  border: 3px solid var(--main_col0);
}

.tfr_count{
  margin-bottom: 12px;
}

.tfr_route{
  margin-bottom: 0;
}

.time_txt{
  margin-top: 0;
  font-size: 1.8em;
  font-weight: 500;
}

.tfr_list_route{
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 10px;
}

.tfr_list_bs, .tfr_sel{
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 0;
}

.tfr_list_time{
  font-size: 18px;
}

.tfr_content{
  width: 100%;
  margin: 0;
}

.tfr_content_border{
  border-top: 3px dashed var(--main_col2);
  margin-top: 10px;
  padding-top: 7px;
}

.tfr_sel{
  background: none;
  border: none;
  border-radius: 5px;
  margin: 0;
  padding: 0;
  color: var(--main_col0);
  text-decoration: underline;
}

.list_btn_view{
  background-color: var(--main_col2);
}

.holiday{
  background-color: #FFD9C9;
}

.copyright{
  font-size: 14px;
}
