/* header */
header {
  width: 100%;
  height: 120px;
  position: fixed;
  top: 0;
  background-color: transparent;
  transition: 0.5s background-color;
  z-index: 10;
}

header .flex-box {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .flex-box .menu-link {
  padding: 0.5em;
  text-decoration: none;
  color: #fff;
  font-family: 'bahnschrift';
  font-size: 1rem;
  transition: 0.5s color;
}

header .flex-box .menu-link:hover {
  color: #aaa;
}

header .flex-box .menu-link .logo {
  width: 100px;
}

/* intro */
#intro {
  width: 100vw;
  height: 100vh;
  margin-bottom: 3rem;
  position: relative;
  background-image: url('../images/intro.jpg');
  background-size: cover;
  background-position: center center;
}

#intro .intro {
  width: 100%;
  height: 100%;
  padding-top: 12rem;
  position: relative;
  text-align: center;
  z-index: 1;
}

#intro .intro h1 {
  margin-bottom: 0.7em;
  line-height: 1.2;
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
}

#intro .intro .web-intro-h2 {
  margin-bottom: 0.7em;
  font-weight: 300;
  font-size: 1rem;
  color: #fff;
}

#intro .intro .mobile-intro-h2 {
  display: none;
  margin-top: 8rem;
  line-height: 2;
  font-weight: 300;
  font-size: 1rem;
  color: #fff;
}

/* about */
#about {
  padding-top: 120px;
}

#about .section-img {
  width: 100vw;
  height: 40vh;
  margin-bottom: 5rem;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('../images/about.jpg');
  background-size: cover;
  background-position-x: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* program */
#program01, #program02, #program03, #program04 {
  padding-top: 120px;
}

#program01 .section-img {
  width: 100vw;
  height: 40vh;
  margin-bottom: 5rem;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('../images/program01.jpg');
  background-size: cover;
  background-position-x: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#program02 .section-img {
  width: 100vw;
  height: 40vh;
  margin-bottom: 5rem;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('../images/program02.jpg');
  background-size: cover;
  background-position-x: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#program03 .section-img {
  width: 100vw;
  height: 40vh;
  margin-bottom: 5rem;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('../images/program03.jpg');
  background-size: cover;
  background-position-x: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#program04 .section-img {
  width: 100vw;
  height: 40vh;
  margin-bottom: 5rem;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('../images/program04.jpg');
  background-size: cover;
  background-position-x: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* team */
#team {
  padding-top: 120px;
}

#team .section-img {
  width: 100vw;
  height: 40vh;
  margin-bottom: 5rem;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('../images/team.jpg');
  background-size: cover;
  background-position-x: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#team .team-members {
  margin: -10px;
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
}

#team .team-members .member-card {
  width: calc(25% - 20px);
  margin: 10px;
}

#team .team-members .member-card .member-img {
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

#team .team-members .member-card .member-img::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  background-color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transition: opacity 0.4s;
}
#team .team-members .member-card:hover .member-img::after {
  opacity: 1;
}

#team .team-members .member-card:hover .member-img img {
  transform: scale(1.05);
}

#team .team-members .member-card:hover .member-intro {
  top: -160px;
}

#team .team-members .member-card .member-img img {
  width: 100%;
  height: auto;
  max-height: 600px;
  filter: grayscale(100%);
  transition: transform 0.4s;
}

#team .team-members .member-card .member-intro {
  position: relative;
  top: 0;
  transition: top 0.4s;
}

#team .team-members .member-card .member-intro h1 {
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #7a7a7a;
  transition: all 0.4s;
}

#team .team-members .member-card .member-intro h2 {
  margin-bottom: 0.5rem;
  position: relative;
  text-align: center;
  line-height: 1.3;
  font-weight: 700;
  font-size: 0.875rem;
  color: #7a7a7a;
}

#team .team-members .member-card .member-intro h3 {
  text-align: center;
  position: relative;
  font-weight: 300;
  font-size: 0.875rem;
  color: #7a7a7a;
}

/* contact */
#contact {
  padding-top: 120px;
}

#contact .section-img {
  width: 100vw;
  height: 40vh;
  margin-bottom: 5rem;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('../images/contact.jpg');
  background-size: cover;
  background-position-x: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#contact .address {
  line-height: 1.8;
  font-weight: 700;
  font-size: 0.875rem;
  color: #7a7a7a;
}

#contact .address a {
  color: currentColor;
  text-decoration: none;
}

#contact .address a:hover {
  text-decoration: underline;
}

#contact .transportation {
  line-height: 1.8;
  font-size: 0.875rem;
  color: #7a7a7a;
}

#contact .transportation a {
  color: currentColor;
  text-decoration: none;
}

#contact .transportation a:hover {
  text-decoration: underline;
}

#contact .rough-map {
  width: 100%;
  max-width: 400px;
  margin-bottom: 2rem;
}

/* section */
.section-img h1 {
  margin-bottom: 2rem;
  letter-spacing: 3px;
  font-family: 'bahnschrift';
  font-size: 2rem;
  color: #fff;
}

.section-img h2 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  color: #d6d6d6;
}

.section-img .program-number {
  position: absolute;
  right: 60px;
  bottom: 30px;
  font-family: 'bahnschrift';
  font-size: 3rem;
  letter-spacing: 5px;
  color: #f6f6f6;
  z-index: 1;
}

.title {
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.375rem;
  color: #7d7d7d;
}

.section-text {
  margin-bottom: 3rem;
  display: flex;
}

.section-text .col {
  width: 50%;
  margin-right: 5rem;
}

.section-text h2 {
  line-height: 1.5;
  font-weight: 700;
  font-size: 0.9rem;
  color: #7d7d7d;
}

.section-text p {
  line-height: 1.5;
  font-size: 0.875rem;
  color: #7d7d7d;
}

.section-text p b {
  font-weight: 700;
}

/* footer */
footer {
  width: 100%;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #707070;
}

footer img {
  width: 70px;
  margin-bottom: 1rem;
}

footer p {
  width: 100%;
  line-height: 1.5;
  text-align: center;
  font-size: 0.75rem;
  color: #ccc;
}

footer p .contact {
  margin: 0 0.5rem;
}

/* loading */
#loading {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../images/intro.jpg');
  background-size: cover;
  background-position: center center;
  z-index: 999;
}

#loading img {
  width: 75px;
  position: relative;
  -webkit-animation: spin 2.3s linear infinite;
  -moz-animation: spin 2.3s linear infinite;
  animation: spin 2.3s linear infinite;
  z-index: 1;
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* global */
.content-wrapper {
  width: 100%;
  height: 100%;
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.black-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

/* mobile */
@media (max-width: 769px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .content-wrapper {
    width: 80%;
    max-width: none;
  }

  #about .section-img {
    background-attachment: scroll;
  }

  #program01 .section-img {
    background-attachment: scroll;
  }

  #program02 .section-img {
    background-attachment: scroll;
  }

  #program03 .section-img {
    background-attachment: scroll;
  }

  #program04 .section-img {
    background-attachment: scroll;
  }

  #team .section-img {
    background-attachment: scroll;
  }

  #contact .section-img {
    background-attachment: scroll;
  }

  #team .team-members .member-card {
    width: calc(50% - 20px);
    margin-bottom: 6rem;
  }
}

@media (max-width: 769px) {
  header {
    height: 80px;
  }

  header .flex-box {
    justify-content: center;
  }

  header .flex-box .link {
    display: none;
  }

  header .flex-box .menu-link .logo {
    width: 75px;
  }

  #intro .intro .web-intro-h2 {
    display: none;
  }

  #intro .intro .mobile-intro-h2 {
    display: block;
  }

  #about {
    padding-top: 40px;
  }

  #program01 {
    padding-top: 40px;
  }

  #team {
    padding-top: 40px;
  }

  #contact {
    padding-top: 40px;
  }

  #team .team-members .member-card {
    width: 100%;
  }

  #team .team-members .member-card:hover .member-img::after {
    opacity: 0;
  }

  #team .team-members .member-card:hover .member-img img {
    transform: none;
  }

  #team .team-members .member-card:hover .member-intro {
    top: 0;
  }

  .section-text {
    flex-direction: column;
    margin-bottom: 0;
  }

  .section-text .col {
    width: 100%;
    margin-bottom: 3rem;
  }

  footer p {
    display: flex;
    flex-direction: column;
  }
}
