header {
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 100px;
  background: #fff;
  border-top: 2px solid #0473EA;
  z-index: 9;
  -webkit-transition: 0.4s ease-in-out;
  -o-transition: 0.4s ease-in-out;
  -moz-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
}

header.bg {
  position: sticky;
  background: rgb(255, 255, 255, 1);
  box-shadow: 0 .2rem 0.25rem 0 rgb(4 0 0 / 15%);
}

@media (max-width: 1180px) {
  header:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2;
  }
}

@media (max-width: 1180px) {
  header {
    height: 60px;
    background: rgb(255, 255, 255, 0.6);
  }
}

header .content {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: space-between;
  -moz-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

header .logo {
  width: 100%;
  max-width: 203px;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  z-index: 3;
  -webkit-flex: 4;
  -moz-box-flex: 4;
  -ms-flex: 4;
  flex: 4;
}

header .logo img {
  width: 100%;
  max-width: 203px;
}

header .right-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-around;
  z-index: 10;
  flex: 3;
}

header .right-link a {
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

header .right-link a img {
  width: auto;
  height: 36px;
}

header .right-link a img:hover {
  -moz-animation: parent-tab-image 0.5s linear;
  -o-animation: parent-tab-image 0.5s linear;
  animation: parent-tab-image 0.5s linear;
  -webkit-animation: parent-tab-image 0.5s linear;
}

header .right-link a:first-child img {
  margin-left: 0;
}

header .right-link a.button-pulse {
  width: 155px;
  height: 44px;
  border-radius: 10vw;
  background: #38D200;
  border: 2px solid #fff;
  animation: pulse 1s infinite 1s cubic-bezier(0.25, 0, 0, 1);
  box-shadow: 0 0 0 0 #38D200;
  color: #fff;
  /* 少一個按鈕時 */
  /* display: none; */
}

header .right-link a.button-pulse img {
  width: 22px !important;
  display: block;
  margin-right: 5px;
  display: none;
}

header .right-link a.button-pulse b {
  font-size: 1rem;
  font-weight: 500;
  /* 英文跑者手冊 */
  /* font-size: .93rem;
  text-align: center;
  line-height: 1; */
}

header .right-link .line {
  width: 1px;
  height: 24px;
  background: #D8D8D8;
  margin: 0px 8px;
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

header #memu_mask {
  position: fixed;
  display: none;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
}

header #menu {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 10;
}

header ul.menu {
  flex: 1;
  display: flex;
  width: auto;
  height: 100%;
  font-size: 1rem;
  justify-content: flex-end;
  margin-right: 1vw;
}

@media (max-width: 1180px) {
  header ul.menu {
    -webkit-flex: none;
    -ms-flex: none;
    -moz-box-flex: 0;
    flex: none;
    font-size: 1.2rem !important;
    display: block;
    width: 100%;
  }

  header ul.menu>li::after {
    display: none;
  }
}

@media (max-width: 767px) {
  header ul.menu {
    font-size: 1rem !important;
  }
}

header ul.menu>li {
  position: relative;
  -webkit-flex: none;
  -ms-flex: none;
  -moz-box-flex: 0;
  flex: none;
  text-align: center;
  padding: 0 10px;
}

header ul.menu>li:last-child::after {
  display: none;
}

@media (max-width: 1440px) {
  header ul.menu>li {
    padding: 0 .5vw;
  }
}

@media (max-width: 1180px) {
  header ul.menu>li {
    display: block;
    padding: 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
  }

  header ul.menu>li:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }
}

header ul.menu>li>a {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: -moz-box;
  display: flex;
  cursor: pointer;
  height: 100%;
  -webkit-align-items: center;
  -ms-flex-align: center;
  -moz-box-align: center;
  align-items: center;
  -webkit-transition: color 0.3s;
  -o-transition: color 0.3s;
  -moz-transition: color 0.3s;
  transition: color 0.3s;
  font-weight: bold;
}

@media (max-width: 1180px) {
  header ul.menu>li>a {
    display: block;
    margin: 10px 0;
    text-align: left;
  }
}

header ul.menu>li>a:hover,
header ul.menu>li.active>a {
  color: #0473EA;
}

header ul.menu>li.active>a {
  font-weight: 700;
}

header ul.menu>li>span {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: -moz-box;
  display: flex;
  cursor: pointer;
  height: 100%;
  -webkit-align-items: center;
  -ms-flex-align: center;
  -moz-box-align: center;
  align-items: center;
  -webkit-transition: color 0.3s;
  -o-transition: color 0.3s;
  -moz-transition: color 0.3s;
  transition: color 0.3s;
}

@media (max-width: 1180px) {
  header ul.menu>li>span {
    display: block;
    margin: 12px 0;
  }
}

header ul.menu>li>span:hover,
header ul.menu>li>span.on {
  color: #0473EA;
}

header ul.menu>li>span:hover ol.sub {
  display: block;
}

@media (max-width: 1180px) {
  header ul.menu>li>span:hover ol.sub {
    display: none;
  }
}

header ul.menu>li>span>label {
  position: relative;
  display: block;
  cursor: pointer;
  font-weight: bold;
  text-align: left;
}

header ul.menu>li.active>span>label {
  color: #0473EA;
}

@media (max-width: 1180px) {
  header ul.menu>li>span>label:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.5rem 0.4rem 0 0.4rem;
    border-color: #2db945 transparent transparent transparent;
    -webkit-transform: translateY(-50%) rotate(0deg);
    -ms-transform: translateY(-50%) rotate(0deg);
    -moz-transform: translateY(-50%) rotate(0deg);
    -o-transform: translateY(-50%) rotate(0deg);
    transform: translateY(-50%) rotate(0deg);
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
  }
}

header ul.menu>li>span input {
  display: none;
}

@media (max-width: 1180px) {
  header ul.menu>li>span input:checked~ol.sub {
    display: flex !important;
    max-width: initial;
  }
}

@media (max-width: 1180px) {
  header ul.menu>li>span input:checked~label:after {
    transform: translateY(-50%) rotate(180deg);
  }
}

header ul.menu>li>span ol.sub {
  display: none;
  position: absolute;
  min-width: 146px;
  max-width: 146px;
  top: 80%;
  left: 50%;
  text-align: center;
  padding: 0px;
  font-size: 1rem;
  line-height: 1.2;
  background: #F7F7F7;
  border-top: 2px solid #3B90EA;
  transform: translateX(-50%);
}

@media (max-width: 1180px) {
  header ul.menu>li>span ol.sub {
    position: relative;
    padding: 0;
    background: none;
    font-size: 1rem;
    margin-top: 10px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    border-top: 0px solid #3B90EA;
  }
}

@media (max-width: 767px) {
  header ul.menu>li>span ol.sub {
    font-size: 1.2rem;
  }
}

header ul.menu>li>span ol.sub li {
  display: block;
}

@media (max-width: 1180px) {
  /* header ul.menu>li>span ol.sub li {
    position: relative;
    -webkit-flex: none;
    -ms-flex: none;
    -moz-box-flex: 0;
    flex: none;
    width: 33%;
  } */

  header ul.menu>li>span ol.sub li {
    position: relative;
    -webkit-flex: none;
    -ms-flex: none;
    -moz-box-flex: 0;
    flex: none;
    width: 100%;
  }

  header ul.menu>li>span ol.sub li:after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #868788;
    border-radius: 50%;
  }
}

header ul.menu>li>span ol.sub li.on>a {
  color: #fff;
  background: #0473EA;
}

header ul.menu>li>span ol.sub li>a {
  display: block;
  padding: 10px 6px;
  color: #525355;
  font-size: .93rem;
  font-weight: 500;
}

@media (max-width: 1180px) {
  header ul.menu>li>span ol.sub li>a {
    width: 100%;
    margin: 0 auto;
    padding: 10px 10px 10px 12px;
    white-space: normal;
    text-align: left;
  }
}

header ul.menu>li>span ol.sub li>a:hover {
  color: #fff;
  background: #0473EA;
}

header #menu-ck {
  display: none;
}

header #menu-ck:checked~#memu_mask {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1180px) {
  header #menu-ck:checked~#menu {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: -moz-box;
    display: flex;
    pointer-events: auto;
    opacity: 1;
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }
}

header #menu-ck:checked~label i,
header #menu-ck:checked~label o,
header #menu-ck:checked~label u {
  -webkit-transition: top 0.2s, opacity 0.1s 0.2s, -webkit-transform 0.2s 0.2s;
  transition: top 0.2s, opacity 0.1s 0.2s, -webkit-transform 0.2s 0.2s;
  -o-transition: top 0.2s, opacity 0.1s 0.2s, -o-transform 0.2s 0.2s;
  -moz-transition: top 0.2s, opacity 0.1s 0.2s, transform 0.2s 0.2s, -moz-transform 0.2s 0.2s;
  transition: top 0.2s, opacity 0.1s 0.2s, transform 0.2s 0.2s;
  transition: top 0.2s, opacity 0.1s 0.2s, transform 0.2s 0.2s, -webkit-transform 0.2s 0.2s, -moz-transform 0.2s 0.2s, -o-transform 0.2s 0.2s;
}

header #menu-ck:checked~label i {
  top: 15px;
  opacity: 1;
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

header #menu-ck:checked~label o {
  top: 15px;
  opacity: 0;
}

header #menu-ck:checked~label u {
  top: 15px;
  opacity: 1;
  -ms-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

header #menu-ck~label {
  display: none;
  position: relative;
  width: 28px;
  height: 28px;
  right: 0;
  z-index: 3;
  cursor: pointer;
  background: #e5e5e5;
  border-radius: 4px;
}

header #menu-ck~label i,
header #menu-ck~label o,
header #menu-ck~label u {
  position: absolute;
  width: 20px;
  height: 1px;
  background: #555;
  opacity: 1;
  -ms-transform: rotate(0deg);
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: top 0.2s 0.2s, opacity 0.1s 0.2s, -webkit-transform 0.2s;
  transition: top 0.2s 0.2s, opacity 0.1s 0.2s, -webkit-transform 0.2s;
  -o-transition: top 0.2s 0.2s, opacity 0.1s 0.2s, -o-transform 0.2s;
  -moz-transition: top 0.2s 0.2s, opacity 0.1s 0.2s, transform 0.2s, -moz-transform 0.2s;
  transition: top 0.2s 0.2s, opacity 0.1s 0.2s, transform 0.2s;
  transition: top 0.2s 0.2s, opacity 0.1s 0.2s, transform 0.2s, -webkit-transform 0.2s, -moz-transform 0.2s, -o-transform 0.2s;
}

header #menu-ck~label i {
  top: 7px;
  left: 4px;
}

header #menu-ck~label o {
  top: 14px;
  left: 4px;
}

header #menu-ck~label u {
  top: 21px;
  left: 4px;
}

@media (max-width: 1180px) {
  header #menu-ck~label {
    display: block;
  }
}

header ul.menu>li:last-child a {
  position: relative;
}

.select-dropdown {
  font-size: 1rem;
  margin-left: 12px;
}

@media (max-width: 1280px) {
  header .content {
    padding: 0 1.6vw;
  }
}

@media (max-width: 1180px) {
  header #menu {
    position: fixed;
    width: 100%;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    top: 60px;
    left: 0;
    right: 0;
    padding: 1.8vw 4.8vw;
    background: rgb(245, 245, 245, 1);
    border-top: 2px solid #000;
    -webkit-flex-direction: column-reverse;
    -ms-flex-direction: column-reverse;
    -moz-box-orient: vertical;
    -moz-box-direction: reverse;
    flex-direction: column-reverse;
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    transition: opacity 0.3s, -webkit-transform 0.3s;
  }

  header .logo {
    margin-left: 10px;
  }

  header .logo img {
    max-width: 140px;
  }

  header .right-link a img {
    height: 30px;
    margin-left: 5px;
  }

  header .right-link {
    justify-content: flex-end;
  }

  header .right-link a.button-pulse {
    width: 114px;
    height: 40px;
  }

  header .right-link a.button-pulse img {
    width: 18px !important;
  }

  header .right-link a.button-pulse b {
    font-size: .8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
  }

  header .right-link .line {
    margin: 0px 10px;
    height: 20px;
  }

  .select-dropdown {
    font-size: .8rem;
    margin-left: 10px;
  }
}

@media (max-width: 767px) {
  header #menu {
    top: 60px;
  }

  header .logo img {
    max-width: 126px;
  }

  header .right-link a.button-pulse {
    width: 110px;
    height: 38px;
  }

  header .right-link a img {
    margin-left: 3px;
  }

  header .right-link .line {
    margin: 0px 3px;
    height: 20px;
  }

  .select-dropdown {
    font-size: .75rem;
    margin-left: 3px;
  }
}

@media (max-width:500px) {
  header .logo {
    max-width: 140px;
  }
}

/* 隱藏我要報名的時候 調整的寬度 */
/* header .right-link {
  flex: 1.5;
}

header ul.menu {
  margin-right: 0vw;
}

@media (max-width:500px) {
  header .right-link {
    flex: 3;
  }
} */

/* 26.0806隱藏 */
header ul.menu li:nth-child(2) ol li:last-child,
header ul.menu li:nth-child(3) ol li:first-child,
header ul.menu li:nth-child(3) ol li:last-child {
  display: none;
}