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

html,
body {
  height: 100%;
}

body {
  font-family: source-han-serif-japanese, serif;
  letter-spacing: 0.08rem;
  background: #ffffff;
  color: #333333;
}

/* main {
  max-width: 2000px;
  margin: auto;
} */

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #333333;
}

img,
video {
  object-fit: cover;
}

:root {
  --accent-color: #c4291c;
  --secondary-color: #faf7f2;
  --border-color: #afacac;
}

.container {
  width: 80%;
  max-width: 1100px;
  margin: auto;
}

.link_hover {
  transition: color 0.1s ease-in-out;
}

.link_hover:hover {
  color: rgba(51, 51, 51, 0.6);
}

.btn {
  font-family: noto-sans, sans-serif;
  letter-spacing: 0.02rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
}

.btn_dot {
  position: relative;
  padding-left: 1rem;
}

.btn_dot:before {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--accent-color);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: all 0.3s ease-in-out;
}

.btn_dot:hover:before {
  transform: translateY(-50%), scale(1);
  border: solid 1px #333333;
  background: #ffffff;
}

/*      title      */
.title {
  overflow: hidden;
}

.title_wrapper {
  opacity: 0;
  transform: translateY(170px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}

.jpns_title {
  color: var(--accent-color);
  font-size: 1.25em;
  letter-spacing: 0.125rem;
  margin-bottom: 1.5rem;
}

.eng_title {
  font-family: minion-pro, serif;
  font-weight: normal;
  font-size: 7.5em;
  line-height: 7.5rem;
}

.fadeup {
  opacity: 1;
  transform: translateY(0);
}

/* ----------     sticky nav     ---------- */
header {
  background: #ffffff;
  height: 6.25rem;
  width: 100%;
  min-width: 330px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

#header_container {
  width: 100%;
  height: 100%;
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

#logo {
  height: 70%;
  position: relative;
}

#logo img {
  height: 100%;
}

nav {
  height: 6.25rem;
}

nav > ul {
  display: flex;
}

nav > ul > li {
  margin-left: 3.5rem;
}

.nl_box {
  font-size: 1.25rem;
  line-height: 6.25rem;
}

.nl_box:hover {
  cursor: pointer;
}

#wu_nl,
#ini_nl {
  position: relative;
}

.nav_dot:after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--accent-color);
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease-in-out;
}

#wu_nl:hover .nav_dot:after,
#ini_nl:hover .nav_dot:after {
  transform: translateX(-50%), scale(1);
  border: solid 1px #333333;
  background: #ffffff;
}

.nav_dropdown {
  word-break: keep-all;
  font-family: noto-sans, sans-serif;
  font-weight: 600;
  height: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 25px 0 rgba(51, 51, 51, 0.5);
  text-align: center;
  position: absolute;
  top: 6.25rem;
  left: 50%;
  transform: translateX(-50%);
  transition: height 0.3s ease-in-out;
}

#wu_nl:hover .wu_nd {
  height: 16rem;
  transition: height 0.3s ease-in-out 0.2s;
}

#ini_nl:hover .ini_nd {
  height: 10rem;
  transition: height 0.3s ease-in-out 0.2s;
}

.wu_nd ul {
  margin: 2rem;
}

.ini_nd ul {
  margin: 2.5rem 3.5rem;
}

.nav_dropdown li {
  margin: 1.8rem 0rem;
}

.mrg_left {
  margin-left: 0.6rem;
}

.dd_hover {
  transition: all 0.2s ease-in-out;
}

.dd_hover:hover {
  color: var(--accent-color);
}

.nv_lecture {
  color: rgba(51, 51, 51, 0.5);
}

#hamburger_menu {
  display: none;
}

/* ----------     intro     ---------- */
#intro > video {
  width: 100%;
  min-width: 330px;
  height: 100vh;
  position: fixed;
  top: 6.25rem;
  left: 0;
  z-index: -5;

  opacity: 0;
  transform: scale(2);
  animation: zoomout 1s cubic-bezier(0, 0, 0.2, 1) 1 forwards;
}

@keyframes zoomout {
  from {
    opacity: 0;
    transform: scale(2);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#scroll {
  width: 80%;
  max-width: 1100px;
  font-family: noto-sans, sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.1rem;
  color: #ffffff;
  writing-mode: vertical-rl;
  position: fixed;
  bottom: 120px;
}

#scroll:after {
  content: "";
  width: 1px;
  height: 140px;
  background: #ffffff;
  position: absolute;
  top: 60px;
  right: 0.8rem;
  animation: scroll 1.4s ease-in-out infinite;
}

@keyframes scroll {
  0% {
    height: 0;
    top: 60px;
    opacity: 0;
  }
  30% {
    height: 140px;
    opacity: 1;
  }
  100% {
    height: 0;
    top: 200px;
    opacity: 0;
  }
}

.fadeout {
  animation: fadeOut both 0.5s ease-out;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#intro_title,
#intro_texts {
  color: white;
}

#intro_title {
  margin-top: 74vh;
}

#intro_title > h1 > span {
  color: var(--accent-color);
}

h1 {
  font-size: 2.6em;
  letter-spacing: 0.32rem;
  text-shadow: 3px 3px 4px rgba(51, 51, 51, 0.9);
}

h2 {
  font-size: 1.5em;
  letter-spacing: 0.22rem;
}

h1,
h2 {
  width: 0;
  white-space: nowrap;
  overflow: hidden;
  animation: textanim 1.5s 0.5s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes textanim {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.intro_br,
.intro_texts_br {
  display: none;
}

#intro_texts {
  font-size: 1.5rem;
  line-height: 2.5rem;
  margin: 70vh 0 35vh;
}

#intro_texts p {
  margin-top: 2rem;
}

/* ----------     future     ---------- */
#future {
  background: linear-gradient(
    rgba(250, 247, 242, 0) 0%,
    rgba(250, 247, 242, 0.35) 10%,
    rgba(250, 247, 242, 0.65) 18%,
    rgba(250, 247, 242, 0.7) 20%
  );
  padding: 20rem 0 10rem;
}

.future_title {
  text-align: right;
  margin-bottom: 7.5rem;
}

#future_texts {
  width: 100%;
  font-size: 1rem;
  height: 31.5rem;
  line-height: 3.5rem;
  margin-bottom: 5rem;

  writing-mode: vertical-rl;
  text-orientation: upright;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.future_br {
  display: none;
}

/* ----------     why us     ---------- */
#whyus {
  background: #ffffff;
  padding: 10rem 0 6rem;
}

#wu_texts {
  font-family: noto-sans, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.12rem;
  margin-top: 4rem;
  line-height: 2rem;
}

.imgbox_container {
  font-family: noto-sans, sans-serif;
  padding-top: 6rem;
}

.imgbox_container ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.imgbox_el {
  width: 45%;
  margin-bottom: 4rem;
}

.top_subtitle {
  font-size: 1.5em;
  padding-left: 1rem;
  position: relative;
}

.top_subtitle:before {
  content: "";
  width: 3px;
  height: 1em;
  background: var(--accent-color);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}

.imgbox {
  width: 100%;
  height: 30rem;
  margin: 1rem 0;
  position: relative;

  overflow: hidden;
}

.page_imgbox::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 30rem;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 2;

  transition: transform 0.8s cubic-bezier(0.55, 0.2, 0, 1);
}

.ini_imgbox .page_imgbox::after {
  background: var(--secondary-color);
}

.imgbox_container li:nth-child(even) .page_imgbox::after,
#wwubox_container li:nth-child(even) .page_imgbox::after {
  transition-delay: 0.4s;
}

.isShow::after {
  transform: translate3d(0, 100%, 0);
}

.page_imgbox img {
  width: 100%;
  height: 30rem;
}

#printer_img {
  object-position: 30% 50%;
}

#ios_img {
  object-position: 65% 10%;
}

#shade_img {
  object-position: 15% 0;
}

.imgbox_texts {
  opacity: 0;

  display: flex;
  align-items: flex-end;

  color: #ffffff;
  font-size: 1.25rem;
  line-height: 2rem;
  text-align: justify;
  padding: 3rem;

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(51, 51, 51, 0.4);

  transition: opacity 0.3s ease-in-out;
}

.imgbox_link:hover .imgbox_texts {
  opacity: 1;
}

.imgbox_link:hover .btn_dot:before {
  transform: translateX(-50%), scale(1);
  border: solid 1px #333333;
  background: #ffffff;
}

.imgbox_link:hover .link_hover {
  color: rgba(51, 51, 51, 0.6);
}

.imgbox_btn {
  justify-content: flex-end;
}

.nonhover_textbox,
#nh_lecture_subtitle {
  display: none;
}

/* ----------     initiatives     ---------- */
#initiatives {
  background: var(--secondary-color);
  padding: 10rem 0 6rem;
}

.ini_title {
  text-align: right;
}

#yt_title {
  width: 100%;
  max-width: 2000px;
  position: relative;
  margin: 2rem auto 0;
}

#zoomout_imgbox {
  width: 100%;
  overflow: hidden;
}

#zoomout_img {
  width: 100%;
  opacity: 0;
  transform: scale(1.5);
}

.zoomout {
  animation: zoomout2 1.2s cubic-bezier(1, 0.01, 0.83, 0.58) forwards;
}

@keyframes zoomout2 {
  from {
    opacity: 0;
    transform: scale(1.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#yt_title > h3 {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
}

.yt_contents {
  position: relative;
  top: -8rem;
}

#yt_popup {
  position: relative;
  margin-bottom: 5rem;
}

#yt_link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.yt_iframe {
  padding-top: 56.25%;
  width: 100%;
  position: relative;
}

.yt_iframe > iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
}

.yt_btn {
  display: flex;
  align-items: center;
}

.yt_btn .yt_icon {
  padding-left: 0.5rem;
}

.yt_icon {
  transition: color 0.3s ease-in-out;
}

.btn a:hover .yt_icon {
  color: #da1725;
}

.font-lighter {
  -webkit-font-smoothing: antialiased;
}

.ini_imgbox {
  padding-top: 0;
}

.lecture_box {
  position: relative;

  background: rgba(51, 51, 51, 0.8);
}

#lecture_text {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
}

/* ----------     work with us     ---------- */
#wwu {
  background: #ffffff;
  padding: 10rem 0;
}

.wwu_title,
#wwu_text {
  text-align: center;
}

#wwu_text {
  font-family: noto-sans, sans-serif;
  font-weight: 300;
  padding: 6rem 0 5rem;
}

#wwubox_container ul {
  display: flex;
  justify-content: space-around;
}

.wwu_el {
  width: 40%;
}

.wwu_box {
  width: 100%;
  height: 25rem;
  position: relative;
  margin-bottom: 2rem;

  overflow: hidden;
}

.wwubox_subtitle {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  color: #fff;
  font-size: 2rem;
  letter-spacing: 0.5rem;
  font-weight: bold;

  background: rgba(51, 51, 51, 0.5);
}

.wwu_box img {
  width: 100%;
  height: 25rem;
  object-position: center;
  transition: all 0.3s ease-in-out;
}

.wwubox_link:hover .btn_dot:before {
  transform: translateX(-50%), scale(1);
  border: solid 1px #333333;
  background: #ffffff;
}

.wwubox_link:hover .wwu_box img {
  transform: scale(1.1, 1.1);
}

/* ----------     contact     ---------- */
#top_contact {
  background: rgba(250, 247, 242, 0.7);
  padding: 6rem 0;
}

.contact_container {
  display: flex;
  align-items: stretch;
}

.contact_el {
  width: 100%;
}

.contact_intro {
  padding: 1rem 6rem 1rem 0;
}

#contact_br {
  display: none;
}

#contact_title {
  padding-bottom: 4rem;
}

#contact_title > .jpns_title {
  font-size: 0.9em;
  margin-bottom: 1rem;
}

#contact_title > .eng_title {
  font-size: 3em;
  font-weight: normal;
  line-height: 1em;
}

#contact_texts {
  font-family: noto-sans, sans-serif;
  font-weight: 300;
  line-height: 2rem;
}

.contact_info {
  text-align: center;
  position: relative;
}

.contact_info:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--border-color);
}

.ci_container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact_btn,
#phone_number {
  padding-top: 3rem;
}

.contact_icon p {
  padding-top: 1.5rem;
}

/* ----------     footer     ---------- */
footer {
  background: #333333;
  color: #ffffff;
  padding: 4rem 0;
}

.footer_container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

#footer_info p {
  line-height: 2rem;
}

#brains {
  font-weight: bold;
  letter-spacing: 0.15rem;
  padding-bottom: 1.8rem;
}

.sns_icons ul {
  display: flex;
  justify-content: space-around;
}

.sns_icons i {
  color: #ffffff;
  transition: color 0.3s ease-in-out;
}

.sns_icons p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 1rem;
}

.sns_icons .yt_icon:hover {
  color: #da1725;
}

.insta_icon:hover {
  color: #cf2e92;
}

.fb_icon:hover {
  color: #1877f2;
}
