:root {
  font-family: "Segoe UI Emoji", "Lato", sans-serif, "Microsoft JhengHei";
  color: #666;
  line-height: 1.8;
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
}

.sp-only {
  display: none;
}

#pc-side {
  position: fixed;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 1rem;
  top: 0;
  width: 495px;
  -webkit-box-shadow: 2px 2px 2px #6666;
          box-shadow: 2px 2px 2px #6666;
  background-color: #eaf2ef;
  height: 100%;
}

header {
  margin-bottom: 3rem;
}

header h1 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
}

nav ul a {
  text-decoration: none;
  color: #777;
  font-size: 1.5rem;
  line-height: 2;
}

nav ul a:hover {
  border-bottom: 2px solid #ccc;
}

main {
  width: calc(100% - 495px);
  margin-left: 495px;
  padding: 1rem;
  counter-reset: timetable;
}

main h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
  border-bottom: 1px solid #ccc;
}

main h3 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
}

main h4 {
  font-size: 1.4rem;
  border-left: 8px solid #777;
  padding-left: .5rem;
  line-height: 1.2;
  margin-bottom: .5rem;
}

main h5 {
  font-size: 1.2rem;
}

main p {
  margin-bottom: 0.8rem;
}

main .timetable {
  list-style: none;
  margin-bottom: 2rem;
}

main .timetable li {
  margin-bottom: 1rem;
}

main .timetable li h5::before {
  counter-increment: timetable;
  content: "(" counter(timetable) ") ";
}

main .program dt {
  color: #777;
  font-weight: 700;
  font-size: 1.1rem;
}

main .program dd {
  margin-bottom: .5rem;
}

main .program dd::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1px;
  background-color: #ccc;
  margin-bottom: .4rem;
  margin-right: .8rem;
}

main .schedule {
  overflow-x: auto;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 1.5rem;
}

@media screen and (max-width: 1280px) and (min-width: 1081px) {
  .middle-hide {
    display: none;
  }
}

@media screen and (max-width: 1280px) {
  #pc-side {
    width: 100%;
    height: -webkit-max-content;
    height: -moz-max-content;
    height: max-content;
    padding: 0.5rem 1rem;
  }
  #pc-side header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    margin-bottom: 0.5rem;
  }
  #pc-side header h1 {
    font-size: 1.5rem;
    margin: 0;
  }
  #pc-side header p {
    font-size: 1.3rem;
  }
  #pc-side nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 3em;
  }
  #pc-side nav ul a {
    padding: 0 1rem;
    font-size: 1.1rem;
  }
  main {
    margin-top: 130px;
    margin-left: 0;
    width: 100%;
  }
  main h2[id]::before {
    content: "";
    display: block;
    height: 160px;
    margin-top: -160px;
  }
}

@media screen and (max-width: 1080px) {
  .sp-hide {
    display: none;
  }
  .sp-only {
    display: block;
  }
  #pc-side {
    -webkit-box-shadow: none;
            box-shadow: none;
    position: relative;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  #pc-side header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  #pc-side header h1 {
    text-align: center;
  }
  main {
    margin-top: 0;
    position: relative;
  }
  main nav {
    background-color: #eaf2ef;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: calc(100% + 2rem);
    margin: -1rem 0 0 -1rem;
    padding: 0.5rem 0 0.7rem;
    -webkit-box-shadow: 0 2px 2px #6666;
            box-shadow: 0 2px 2px #6666;
  }
  main nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-column-gap: 3em;
            column-gap: 3em;
  }
  main nav ul a {
    padding: 0 0.5rem;
    font-size: 1rem;
  }
  main h2[id]::before {
    height: 51px;
    margin-top: -51px;
  }
}

@media screen and (max-width: 720px) {
  main nav ul {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-column-gap: 2rem;
            column-gap: 2rem;
    row-gap: 0.5rem;
  }
  main h2[id]::before {
    height: 91px;
    margin-top: -91px;
  }
}
/*# sourceMappingURL=style.css.map */