@charset "utf-8";

/*========================================================================*\

$common

\*========================================================================*/

#Co #companyPage.enkakuPage h2 {
  text-align: center;
  letter-spacing: 0.2rem;
  font-family: var(--serif) !important;
  margin-bottom: 7rem !important;
  color: var(--primary-color);
}

#Co #companyPage.enkakuPage .enkakuBox h2 {
  color: #ffffff;
}

@media screen and (max-width: 901px) {
  #Co #companyPage.enkakuPage h2 {
    padding: 0 1rem;
    margin-bottom: 5rem !important;
  }
}

@media screen and (max-width: 767px) {
  #Co .page .timelineArea {
    width: 100%;
    margin: 0 auto;
    font-size: 2.6rem;
  }
}

#Co .wideSection {
  max-width: 100vw !important;
  padding: 20rem 10% !important;
}

#Co .page .firstSection {
  background: #ffffff;
}

#Co .page .firstSection .sectionInner {
  padding: 8rem 0;
}

#Co .page .firstSection .sectionInner p {
  text-align: center;
  font-family: var(--serif);
  font-size: 3rem;
}

.animated {
  animation-duration: 2s !important;
}

.commonMain {
  background: url(../images/main_common.jpg) no-repeat top center;
  height: 100vh;
  background-size: cover;
  background-attachment: fixed;
}

#mainBox {
  width: 100%;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3200;
}

#mainBox h2 {
  color: #ffffff;
  font-size: 7rem;
  font-weight: 700;
  letter-spacing: 0.9rem;
  font-family: var(--serif);
  text-align: center;
  line-height: 1.6;
}

#Co .enkakuBox h3,
#Co .enkakuPage h3 span,
#Co .enkakuPage li {
  font-family: var(--serif) !important;
}

#Co .enkakuPage li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20rem;
}

#Co .enkakuBox h3 {
  border: none;
  margin: 1rem 0 !important;
  padding: 0 !important;
  font-size: 6rem;
  line-height: 0.3;
  text-align: center;
  color: #ffffff;
}

#Co .enkakuBox h3 .year {
  font-size: 1.8rem;
}

#Co .enkakuBox h3 .term {
  font-size: 1.6rem;
}

.timeline {
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  flex-direction: column;
  max-width: 900px;
  position: relative;
}

.timeline__content-title {
  font-weight: normal;
  margin: -10px 0 0 0;
  transition: 0.4s;
  padding: 0 10px;
  box-sizing: border-box;
  color: #fff;
}

.timeline__content-desc {
  margin: 0;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.timeline:before {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  content: "";
  background: rgba(255, 255, 255, 0.07);
}

@media only screen and (max-width: 767px) {
  .commonMain {
    height: 350px;
    background: url(../company/img/main_company.jpg) no-repeat center center;
    background-size: cover;
  }

  #mainBox h2 {
    font-size: 3rem;
  }

  #Co .page .firstSection {
    background: #ffffff;
    margin: 0;
  }

  #Co .page .firstSection .sectionInner {
    padding: 5rem 0;
    margin-bottom: 0 !important;
  }

  #Co .page .firstSection .sectionInner p {
    font-size: 2rem;
  }

  #Co .enkakuBox h3 {
    font-size: 4rem;
    text-align: left;
  }

  #Co .enkakuBox h3 .year {
    font-size: 1.4rem;
  }

  #Co .enkakuBox h3 .term {
    font-size: 1.2rem;
  }

  .timeline:before {
    left: 40px;
  }

  .timeline__content-desc {
    margin: 0;
    font-size: 15px;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--serif);
    font-size: 1.8rem;
  }
}

.timeline-item {
  padding: 40px 0;
  opacity: 0.3;
  filter: blur(2px);
  transition: 0.5s;
  box-sizing: border-box;
  width: calc(50% - 20px);
  display: flex;
  position: relative;
}

.timeline-item:before {
  content: attr(data-text);
  letter-spacing: 3px;
  width: 100%;
  position: absolute;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-family: "Pathway Gothic One", sans-serif;
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  top: 70%;
  margin-top: -5px;
  padding-left: 15px;
  opacity: 0;
  right: calc(-100% - 56px);
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
}

.timeline-item:nth-child(even):before {
  right: auto;
  text-align: right;
  left: calc(-100% - 56px);
  padding-left: 0;
  border-left: none;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  padding-right: 15px;
}

.timeline-item--active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

.timeline-item--active:before {
  top: 50%;
  transition: 0.3s all 0.2s;
  opacity: 1;
}

.timeline-item--active .timeline__content-title {
  margin: -50px 0 20px 0;
}

@media only screen and (max-width: 767px) {
  .timeline-item {
    align-self: baseline !important;
    width: 100%;
    padding: 0 30px 150px 80px;
  }

  .timeline-item:before {
    left: 10px !important;
    padding: 0 !important;
    top: 50px;
    text-align: center !important;
    width: 60px;
    border: none !important;
  }

  .timeline-item:last-child {
    padding-bottom: 40px;
  }
}

.timeline__img {
  max-width: 100%;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}

.timeline-container {
  width: 100%;
  position: relative;
  padding: 80px 0;
  transition: 0.3s ease 0s;
  background-attachment: fixed;
  background-size: cover;
}

.timeline-container:before {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(99, 99, 99, 0.8);
  content: "";
}

.timeline-header {
  width: 100%;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.timeline-header__title {
  color: #fff;
  font-weight: normal;
  margin: 0;
}

.timeline-header__subtitle {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 5px;
  margin: 10px 0 0 0;
  font-weight: normal;
}
