@media screen and (max-width: 767.999px) {
  * {
    letter-spacing: 0;
  }
  .pc {
    display: none !important;
  }
  html {
    height: -webkit-fill-available;
  }
  body {
    height: 100vh;
    height: -webkit-fill-available;
    overflow: hidden;
  }
  #bg_load {
    background: url(/common/img/top/sp/client_mv.jpg), url(/common/img/top/sp/partner_mv.jpg), url(/common/img/top/sp/recruit_mv.jpg?date=202405301815);
  }
  #wrapper {
    height: -webkit-fill-available;
  }
  header #sp_open_menu {
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.8);
  }
  header #sp_open_menu .menu-trigger span {
    width: 30px;
    height: 1px;
    background-color: #fff;
    margin: 10px auto;
  }
  #logo {
    background: #002e8c;
    width: 155px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
  }
  #logo img {
    width: 102px;
    height: auto;
  }
  header nav ul {
    padding: 80px 30px 0;
  }
  header nav ul li {
    margin-top: 10px;
  }
  header nav ul li .txt {
    font-size: 12px;
    margin-top: 5px;
  }
  body.client_touch #bg_change_top,
  body.partner_touch #bg_change_top,
  body.recruit_touch #bg_change_top {
    transform: translateY(-100%);
    transition: transform 0.5s 0.1s;
  }
  body.client_touch #bg_change_bottom,
  body.partner_touch #bg_change_bottom,
  body.recruit_touch #bg_change_bottom {
    transform: translateY(100%);
    transition: transform 0.5s 0.1s;
  }
  main {
    position: relative;
    overflow: hidden;
    height: 100vh;
    height: -webkit-fill-available;
  }
  #client_top,
  #partner_top,
  #recruit_top {
    overflow: hidden;
    z-index: 10;
    position: relative;
    max-height: calc(33vh - 27px);
  }
  #client_top a,
  #partner_top a,
  #recruit_top a {
    pointer-events: none;
    overflow: hidden;
    display: block;
  }
  #container {
    position: relative;
    position: absolute;
    top: 80px;
    left: 5vw;
    right: 5vw;
    bottom: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    justify-content: space-around;
    z-index: 25;
  }
  #container span.kakko {
    margin-left: -0.4em;
    margin-right: -0.4em;
  }
  #container span.touten {
    margin-right: -0.5em;
  }
  #container span.kuten {
    margin-right: -0.5em;
  }
  #container #client_top .title_area .caption {
    text-align: right;
    line-height: 1.2;
  }
  #container #client_top h1 {
    font-size: 11.4vw;
    white-space: nowrap;
  }
  #container #client_top h1 span {
    letter-spacing: -0.008em;
  }
  #container #client_top h2 {
    font-size: 6.4vw;
    line-height: 1.18;
    margin: 0.3vw 0;
  }
  #container #client_top .description {
    font-size: 3.75vw;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #container #partner_top h1 {
    font-size: 3.5vw;
    padding: 0;
    white-space: nowrap;
  }
  #container #partner_top h1 span.copy {
    font-size: 8vw;
    line-height: 1.2;
  }
  #container #partner_top h2 {
    font-size: 5.5vw;
    line-height: 1.25;
    margin: 0.3vw 0 0.6vw 0;
  }
  #container #partner_top .description {
    font-size: 3.6vw;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #container #recruit_top h1 {
    font-size: 5.5vw;
    line-height: 1;
  }
  #container #recruit_top h2 {
    font-size: 4vw;
    line-height: 1;
    white-space: nowrap;
    margin: 0.8vw 0 1.1vw;
  }
  #container #recruit_top h2 .copy {
    font-size: 9.4vw;
    line-height: 1.05;
  }
  #container #recruit_top .description {
    font-size: 4.2vw;
    line-height: 1.18;
  }
  .client_touch #client_top {
    overflow: visible;
  }
  .client_touch #client_top a {
    position: relative;
    color: #FFFFFF;
  }
  .client_touch #client_top .description {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: none;
  }
  .client_touch #bg_change {
    background: url(/common/img/top/sp/client_mv.jpg) no-repeat;
    background-size: cover;
  }
  .partner_touch #partner_top {
    overflow: visible;
  }
  .partner_touch #partner_top a {
    color: #FFFFFF;
  }
  .partner_touch #partner_top .description {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: none;
  }
  .partner_touch #bg_change {
    background: url(/common/img/top/sp/partner_mv.jpg) no-repeat;
    background-size: cover;
  }
  .recruit_touch #recruit_top {
    overflow: visible;
  }
  .recruit_touch #recruit_top a {
    color: #FFFFFF;
  }
  .recruit_touch #recruit_top .description {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: none;
  }
  .recruit_touch #bg_change {
    background: url(/common/img/top/sp/recruit_mv.jpg?date=202405301815) no-repeat;
    background-size: cover;
  }
  body.client_touch #partner_top,
  body.client_touch #recruit_top {
    opacity: 0;
  }
  body.partner_touch #client_top,
  body.partner_touch #recruit_top {
    opacity: 0;
  }
  body.recruit_touch #client_top,
  body.recruit_touch #partner_top {
    opacity: 0;
  }
  #copyright {
    font-size: 10px;
    position: fixed;
    bottom: 3px;
    left: 5px;
    z-index: 10;
  }
}

@media screen and (max-width: 767.999px) and (min-aspect-ratio: 1 / 1) {
  #container #client_top a > *,
  #container #partner_top a > *,
  #container #recruit_top a > * {
    display: none !important;
  }
  #container #client_top .title_area,
  #container #partner_top h1,
  #container #recruit_top h2 {
    display: block !important;
  }
  #container header nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(100% - 150px);
  }
  #container header nav ul li {
    width: calc(100% / 3 - 20px);
  }
}

@media screen and (max-width: 767.999px) and (min-aspect-ratio: 10 / 14) {
  #container #client_top,
  #container #partner_top,
  #container #recruit_top {
    max-height: initial;
  }
  #container #client_top .description,
  #container #partner_top .description,
  #container #recruit_top .description {
    display: none !important;
  }
}

@media screen and (max-width: 767.999px) and (max-aspect-ratio: 10 / 18) {
  #container #client_top,
  #container #partner_top,
  #container #recruit_top {
    max-height: initial;
  }
  #container #client_top h2 {
    margin: 0.6vw 0 1vw;
  }
  #container #client_top .description {
    -webkit-line-clamp: 4;
    line-height: 1.4;
  }
  #container #partner_top h1 {
    font-size: 5.2vw;
    line-height: 1.2;
  }
  #container #partner_top h1 span.copy {
    font-size: 9.5vw;
    display: block;
  }
  #container #recruit_top h2 {
    margin: 0.8vw 0 1.6vw;
  }
  #container #recruit_top .description {
    line-height: 1.35;
  }
}
