@media screen and (min-width: 1999px) {
  #philosophy_imgbox {
    max-width: 1100px;
  }
}

@media screen and (max-width: 1199px) {
  html {
    font-size: 15px;
  }

  #logo {
    height: 65%;
  }

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

  /* ----------     top page     ---------- */
  #scroll {
    width: initial;
    right: 4%;
  }

  #scroll:after {
    right: 50%;
  }

  #future_texts {
    line-height: 3.2rem;
  }

  /* ----------     about page     ---------- */
  #director_imgbox,
  #director_texts {
    width: 45%;
  }

  #philosophy_texts {
    padding: 5rem 10rem;
  }
}

@media screen and (max-width: 1059px) {
  .scroll_off {
    overflow: hidden;
  }

  nav {
    display: none;
  }

  #hamburger_menu {
    display: block;
  }

  #menu_btn {
    cursor: pointer;

    position: fixed;
    top: 1.5rem;
    right: calc(2rem - calc(100vw - 100%));
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 50%;
    border: solid 1px var(--border-color);
    background-color: #ffffff;

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }

  #menu_btn span,
  #menu_btn span:before,
  #menu_btn span:after {
    content: "";
    display: block;
    height: 1px;
    width: 1.5rem;
    background-color: var(--border-color);
    position: absolute;
  }

  #menu_btn span:before {
    bottom: 0.5rem;
  }

  #menu_btn span:after {
    top: 0.5rem;
  }

  #menu_btn_check:checked ~ #menu_btn {
    right: 2rem;
  }

  #menu_btn_check:checked ~ #menu_btn span {
    background-color: rgba(255, 255, 255, 0);
  }

  #menu_btn_check:checked ~ #menu_btn span::before {
    bottom: 0;
    transform: rotate(45deg);
  }

  #menu_btn_check:checked ~ #menu_btn span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  #menu_btn_check {
    display: none;
  }

  #menu_content_container {
    display: flex;
    flex-direction: column;
  }

  #menu_content {
    width: 100%;
    min-width: 330px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;
    z-index: 10;
    background-color: #fff;
    padding: 10rem 5rem 5rem;

    overflow: auto;

    transition: all 0.5s;
  }

  #menu_btn_check:checked ~ #menu_content {
    left: 0;
  }

  .hamburger_links {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
  }

  .hamburger_wulinks {
    font-size: 0.9em;
    padding-left: 3.5rem;
  }

  .hamburger_wulinks li {
    margin-top: 1.2rem;
  }

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

  .nv_lecture:before {
    content: "";
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: rgba(51, 51, 51, 0.5);
    position: absolute;
    top: 50%;
    left: -1.2rem;
    transform: translateY(-50%);
  }

  .hamburger_wulinks .btn_dot:before {
    left: -1.2rem;
  }

  .hamburger_sns {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    margin-top: 2.5rem;
  }

  .hamburger_sns li {
    margin: 0 1rem;
  }

  .hamburger_sns p {
    font-size: 0.75rem;
    color: rgba(51, 51, 51, 0.5);
    margin-top: 1rem;
  }

  .hamburger_sns i {
    color: #333333;
  }

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

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

  /* ----------     top page     ---------- */
  #future_texts {
    line-height: 2.8rem;
  }

  .wwu_box,
  .wwu_box img {
    height: 20rem;
  }

  /* ----------     about page     ---------- */
  #director_contents {
    position: relative;
  }

  #director_imgbox {
    top: auto;
    bottom: 0;
  }

  #director_texts {
    display: flex;
    flex-direction: column;
  }

  #director_texts p {
    margin-top: auto;
  }

  #philosophy_imgbox {
    height: 30rem;
  }

  #info_table th {
    width: 28%;
  }

  #slider_container li {
    width: calc(100vw / 4);
    margin-right: 1.2rem;
  }
}

@media screen and (max-width: 909px) {
  html {
    font-size: 14px;
  }

  /* ----------     top page     ---------- */
  #future_texts {
    line-height: 2.5rem;
  }

  .imgbox_el {
    width: 48%;
  }

  .yt_contents {
    top: -5rem;
  }

  #yt_popup {
    margin-bottom: 4rem;
  }

  .ini_imgbox {
    padding-top: 2rem;
  }

  #wwu_text {
    width: 88%;
    margin: auto;
    text-align: left;
    text-align: justify;

    line-height: 1.8rem;
  }

  .wwu_br {
    display: none;
  }

  .wwu_box,
  .wwu_box img {
    height: 18rem;
  }

  /* ----------     about page     ---------- */
  #philosophy_texts {
    padding: 5rem 6rem;
    top: -5rem;
  }

  .cn_container {
    flex-direction: column;
    position: relative;
  }

  #cn_imgbox,
  #cn_texts {
    width: 100%;
  }

  #cn_imgbox {
    height: 21.5rem;
    position: absolute;
    top: 10.2rem;
    left: 0;
  }

  #cn_texts p {
    margin-top: 28rem;
  }
}

@media screen and (max-width: 739px) {
  html {
    font-size: 13px;
  }

  .container {
    width: 90%;
  }

  .jpns_title {
    margin-bottom: 1rem;
  }

  #contact {
    padding: 6rem 0 3rem;
  }

  .contact_container {
    width: 80%;
    flex-direction: column;
    text-align: center;
  }

  .contact_intro {
    padding: 0 0 3rem;
  }

  #contact_br {
    display: block;
  }

  .contact_info:before {
    width: 100%;
    height: 1px;
  }

  .ci_container {
    padding: 3rem 0;
  }

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

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

  .footer_container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sns_icons {
    margin-top: 2.5rem;
  }

  /* ----------     top page     ---------- */
  #intro_title h1 {
    letter-spacing: 0.28rem;
  }

  #intro_title h2 {
    letter-spacing: 0.18rem;
  }

  .future_title {
    text-align: center;
  }

  #future_texts {
    writing-mode: initial;
    text-orientation: initial;
    text-align: center;
    height: 100%;
    line-height: 2rem;
    margin-bottom: 2rem;
  }

  #future_texts p {
    margin-bottom: 2rem;
  }

  /* ----------     about page     ---------- */
  #director_contents {
    position: static;
    flex-direction: column-reverse;
  }

  #director_imgbox {
    position: static;
    margin: auto;

    width: 75%;
    height: 35rem;
  }

  #director_texts {
    width: 100%;
  }

  #director_texts {
    margin-top: 4rem;
  }

  #philosophy_imgbox {
    height: 25rem;
  }

  #philosophy_texts {
    position: static;
    padding: 0;
    margin-top: 4rem;
  }

  #philosophy {
    margin-bottom: 12rem;
  }

  #slider_container li {
    width: calc(100vw / 4);
  }
}

@media screen and (max-width: 649px) {
  html {
    font-size: 12px;
  }

  .jpns_title {
    margin-bottom: 0;
  }

  .eng_title {
    font-size: 5.5em;
    line-height: 7rem;
  }

  #contact_texts {
    text-align: left;
    text-align: justify;
  }

  #contact_br {
    display: none;
  }

  /* ----------     top page     ---------- */
  .intro_br {
    display: block;
  }

  #intro_title {
    margin-top: 62vh;
  }

  #intro_title h1 {
    line-height: 4rem;
  }

  #intro_title h2 {
    margin-top: 1rem;
  }

  #whyus,
  #initiatives {
    padding-bottom: 5rem;
  }

  .imgbox_container li:nth-child(2) .page_imgbox::after {
    transition-delay: 0.1s;
  }

  .imgbox_container li:nth-child(3) .page_imgbox::after {
    transition-delay: 0.2s;
  }

  .imgbox_container li:nth-child(4) .page_imgbox::after {
    transition-delay: 0.3s;
  }

  .imgbox_el {
    width: 80%;
    flex-wrap: nowrap;
    margin: auto;
    margin-bottom: 4rem;
  }

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

  .yt_contents {
    top: -4rem;
  }

  #wwu {
    padding-bottom: 5rem;
  }

  #wwu_text {
    width: 90%;
    padding: 3rem 0 5rem;
  }

  #wwubox_container ul {
    flex-direction: column;
  }

  .wwu_el {
    width: 75%;
    margin: auto;
    margin-bottom: 5rem;
  }

  .wwu_box {
    height: 28rem;
    margin: 0 auto 2rem;
  }

  .wwu_box img {
    height: 28rem;
  }

  .wwubox_subtitle {
    font-size: 3rem;
  }

  /* ----------     about page     ---------- */
  #company_info {
    margin-bottom: 10rem;
  }

  #info_table th,
  #info_table td {
    width: 100%;
    display: block;
  }

  #info_table th {
    border-bottom: none;
    font-size: 1.8rem;
    padding: 0.9rem 1rem 1.7rem;
  }

  #table_title th {
    font-size: 2.2rem;
    font-weight: normal;
    border-bottom: solid 1px var(--border-color);
  }

  #info_table td {
    padding: 0 1rem 0.9rem;
  }

  #slider_container li {
    width: calc(100vw / 3);
  }
}

@media screen and (max-width: 430px) {
  .hamburger_sns {
    align-items: flex-start;
  }

  #director,
  #philosophy,
  #company_name,
  #company_info {
    margin-bottom: 8rem;
  }

  .jpns_title {
    font-size: 1.15em;
  }

  .eng_title {
    font-size: 4em;
    line-height: 4.5rem;
  }

  /* ----------     top page     ---------- */
  #intro_title h2 {
    letter-spacing: 0.1rem;
  }

  .intro_texts_br,
  .future_br {
    display: block;
  }

  #wwu_br,
  #contact_br {
    display: none;
  }

  .imgbox_el {
    width: 100%;
  }

  .yt_contents {
    width: 100%;
    top: -2rem;
  }

  #yt_popup {
    margin-bottom: 2.5rem;
  }

  .ini_imgbox {
    padding-top: 4rem;
  }

  #wwu_text {
    width: 100%;
  }

  .wwu_el {
    width: 100%;
  }

  .wwu_box {
    width: 100%;
    height: 20rem;
  }

  .wwu_box img {
    height: 20rem;
  }

  .wwubox_subtitle {
    font-size: 2rem;
  }

  /* ----------     about page     ---------- */
  #about_title {
    margin: 12rem 0 8rem;
  }

  #director_imgbox {
    height: 25rem;
  }

  #signature_imgbox {
    margin: 0 auto 2.5rem;
  }

  #philosophy_imgbox {
    height: 15rem;
  }

  #slider_container li {
    width: calc(100vw / 2);
  }
}

@media screen and (max-width: 380px) {
  #cn_imgbox {
    top: 13.8rem;
  }

  /* ----------     top page     ---------- */
  .imgbox_texts {
    padding: 3rem 2rem;
  }

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

  .wwu_title {
    text-align: left;
    letter-spacing: 0.01rem;
  }
}

@media screen and (max-width: 330px) {
  html {
    min-width: 330px;
  }

  #scroll {
    display: none;
  }
}

@media screen and (max-height: 600px) {
  #intro_title {
    margin-top: 55vh;
  }

  #future_texts {
    writing-mode: initial;
    text-orientation: initial;
    text-align: center;
    height: 100%;
    line-height: 2rem;
    margin-bottom: 2rem;
  }

  #future_texts p {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 649px) and (max-height: 549px) {
  #intro_title {
    margin-top: 45vh;
  }
}

@media (hover: none) {
  .top_subtitle {
    display: none;
  }

  .imgbox_link:hover .imgbox_texts {
    display: none;
  }

  .nonhover_textbox {
    display: block;

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

    color: #ffffff;
    padding: 3rem;

    display: flex;
    flex-direction: column;
  }

  .nonhover_subtitle {
    font-size: 2em;
    text-align: center;
  }

  .nonhover_texts {
    font-size: 1.25rem;
    line-height: 2rem;
    text-align: justify;
    margin-top: auto;
  }

  #nh_lecture_subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;

    color: #fff;
    font-size: 2em;
    padding-top: 3rem;
  }

  .imgbox_btn {
    justify-content: center;
    margin-top: 2rem;
  }
}

@media (hover: none) and (max-width: 909px) {
  .nonhover_textbox {
    padding: 3rem 2rem;
  }
}

@media (hover: none) and (max-width: 649px) {
  .nonhover_textbox,
  #nh_lecture_subtitle {
    padding: 4rem 3rem;
  }
}

@media (hover: none) and (max-width: 330px) {
  .nonhover_textbox {
    padding: 2.5rem 2rem;
  }
}
