@charset "UTF-8";

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  background-color: #1E5897;
  height: 78px;
  display: flex;
}

input:checked~ul.hamburguer_list {
  opacity: 1;
}

input {
  display: none;
}

/*開合背景色  */
input:checked~label .menu {
  box-shadow: 0 0 0 160vw #5EB9DD, 0 0 0 130vh #5EB9DD;
  position: fixed;
}

/*選單符號切換x  */
input:checked~label .hamburguer {
  transform: rotate(45deg)
}

input:checked~label .hamburguer:before {
  transform: rotate(90deg);
  top: 0px;
}

input:checked~label .hamburguer:after {
  transform: rotate(90deg);
  bottom: 0px;
}

input:checked~.hamburguer_list {
  visibility: visible;
}

ul.hamburguer_list {
  list-style: none;
  transition: .25s .1s cubic-bezier(0, 1.07, 0, 1.02);
  width: 100%;
  z-index: 400;
  box-sizing: border-box;
  padding: 0 2em 0 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  margin:.5em auto;
}

ul.hamburguer_list li {
  display: inline-block;
  /* width: 100%; */
}

ul.hamburguer_list li a {
  font-size: 1.8em;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: .4em .5em;
  text-align: center;
}

ul.hamburguer_list li a:hover {
  background-color: #E7506F;
  color: #fff;
  border-radius: 50px;
}

/* logo and title */
.title {
  width: 205px;
  padding:.5em .5em;
  display: inline-block;
}

.title a {
  display: flex;
}

.logo {
  width: 180px;
  padding: 15px 20px;
  float: right;
  display: inline-block;
  margin-right: 80px;
}

/* footer */
footer {
  background-color: #1E5897;
  padding: 15px 0;
  width: 100%;
  position: inherit;
  bottom: 0;
  color: #fff;
  z-index: 10;
  font-size: 18px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.right {
  height: 50px;
}

.share_fb {
  background: url(../images/icon_share_fb.svg)no-repeat center center;
  width: 50px;
  height: 50px;
}

.share_line {
  background: url(../images/icon_share_line.svg)no-repeat center center;
  width: 50px;
  height: 50px;
}

.share_line:hover,
.share_line:active,
.share_line:focus,
.share_fb:hover,
.share_fb:active,
.share_fb:focus {
  filter: grayscale(100%);
}

footer img {
  width: 55px;
  vertical-align: middle;
}

footer a,
footer a:hover {
  color: #fff;
  text-decoration: none;
}

footer p {
  display: inline-block;
}

footer span {
  display: inline-block;
  margin: 0 5px;
  text-align: left;
}


/* @media (max-width:1024px) {} */
@media screen and (min-width:320px) and (max-width:1180px) {
  .menu {
    width: 45px;
    height: 45px;
    background: #E50012;
    top: 10px;
    border-radius: 50%;
    position: absolute;
    right: 25px;
    cursor: pointer;
    box-shadow: 0 0 0 2px #fff, 0 0 0 2px #fff;
    transition:
      box-shadow 1.1s cubic-bezier(.19, 1, .22, 1);
    z-index: 300;
    /* display: none; */
  }

  .menu:hover {
    box-shadow: 0 0 0 2px #fff, 0 0 0 2px #fff;
  }

  .hamburguer {
    position: relative;
    display: block;
    background: #fff;
    width: 23px;
    height: 2px;
    top: 22px;
    left: 12px;
    transition: .5s ease-in-out;
    border-radius: 20px;
  }

  .hamburguer:before,
  .hamburguer:after {
    background: #fff;
    display: block;
    border-radius: 20px;
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    transition: .5s ease-in-out;
  }

  .hamburguer:before {
    top: -8px;
  }

  .hamburguer:after {
    bottom: -8px;
  }

  ul.hamburguer_list {
    position: fixed;
    transform: translate(10%, -50%);
    list-style: none;
    opacity: 0;
    transition: .25s .1s cubic-bezier(0, 1.07, 0, 1.02);
    text-align: right;
    z-index: 400;
    visibility: hidden;
    background: url(../images/hamburguer_bg.svg)no-repeat center bottom;
    background-size: contain;
    box-sizing: border-box;
    padding: 5% 0 0 0;
    width: 100%;
    height: 100%;
    top: 52%;
    left: -10%;
    display: block;
    padding: 0;
  }

  ul.hamburguer_list li {
    display: flow-root;
    text-align: center;
    padding: .1em 0;
    font-size: 1.3rem;
  }
  /* ul.hamburguer_list li a{  padding:.3em 0;} */

  .title {
    padding: .5em 1em;
  }

  .title img {
    width: 100%;
  }
}

@media (max-width: 767px) {

  .title {
    width: 100%;
  }

  .title img {
    width:40%;
  }

  .logo {
    display: none;
  }

  .menu {
    right: 15px;
  }

  /* .hamburguer{width: 25px;top: 25px;left: 13px;} */
  ul {
    top: 40%;
  }

  ul.unit li span {
    visibility: hidden;
  }

  ul.unit li a {
    visibility: hidden;
  }

  li.nav_icon_01 a:hover,
  li.nav_icon_02 a:hover,
  li.nav_icon_03 a:hover,
  li.nav_icon_04 a:hover {
    /* display: none; */
    visibility: hidden;
  }

  ul.hamburguer_list {
    background: url(../images/hamburguer_bg.svg)no-repeat center bottom;
    background-size: contain;
    width: 100%;
    text-align: center;
    padding: 0 0;
    height: 95%;
  }

  ul.hamburguer_list li {
    display: flow-root;
    text-align: center;
    padding:2px 0;
    font-size:.8rem;
  }
  ul.hamburguer_list li,ul.hamburguer_list li a {
    padding:.1rem 2rem;
    font-size: 1.6rem;
  }
  footer {
    margin: 0 auto;
    font-size: 16px;
    text-align: center;
    display: inline-grid;
    padding: 10px 0;
  }

  footer img {
    width: 80px;
    float: left;
    margin: 5px auto;
  }

  footer p {
    display: inline-grid;
    margin: 0 auto;
    line-height: 24px;
    margin: 0 10px;
  }

  .left {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    float: none;
  }

  .right {
    width: 90%;
    text-align: center;
    margin: 10px auto 0 auto;
    display: none;
  }

  .share_fb,
  .share_line {
    display: none;
  }

}

@media screen and (min-width:480px) and (max-width:767px) {
  
  ul.hamburguer_list li,ul.hamburguer_list li a {
    padding:.1rem 2rem;
    font-size: 1.6rem;
  }

  .title img {
    width: 38%;
  }


  footer {
    margin: 0 auto;
    font-size: 13px;
    text-align: center;
    display: flex;
    padding: 10px 0;
  }

  footer img {
    width: 60px;
    float: left;
    margin: 5px auto;
  }

  footer p {
    display: inline-grid;
    margin: 0 auto;
    line-height: 18px;
    margin: 0 10px;
  }

  footer span {
    margin: 0 auto;
  }

  .left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
    padding: 0 0 0 20px;
  }

  .right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
  }
}

@media (max-width:375px) {
  header {
    height: 60px;
  }

  .menu {
    width: 40px;
    height: 40px;
    top: 10px
  }

  .hamburguer {
    top: 19px;
    left: 9px;
  }

  ul.hamburguer_list {
    /* top: 360px; */

  }

  ul.hamburguer_list li a {
    font-size: 1.2em;
    padding:.1rem 2rem;
  }

  .title {
    padding: .5em 0.5em;
  }

  .title img {
    width: 36%;
  }

}

@media (max-width:320px) {
  header {
    height: 85px;
  }

  .logo {
    display: none;
  }

  .title img {
    width: 60%;
  }

  .menu {
    width: 50px;
    height: 50px;
    right: 15px;
  }

  .hamburguer {
    width: 25px;
    top: 25px;
    left: 13px;
  }

  ul {
    top: 50%;
  }

  .switchbar {
    top: 40%;
    display: none;
  }

  ul.hamburguer_list {
    top: 320px;
  }

  ul.hamburguer_list li a {
    font-size: 1.2rem;
    color: #183A55;
    text-decoration: none;
    display: inline-block;
    padding: .3rem 2rem;
  }

}
