@media screen and (max-width: 768px) {
    :root {
        --s-main-inner: clamp(5vw, calc(50vw - 600px), 100vw);
        --h-main: 100vh;
        --w-main: clamp(0px, 900px, 90vw);
        --w-sub: clamp(0px, 700px, 90vw);
      }
      :root {
        --strong-big: 4rem;
        --big: 2.5rem;
        --h1: 2rem;
        --h2: 1.6rem;
        --h3: 1.4rem;
        --h4: 1.3rem;
        --p: 1.5rem;
        --smaller: 1.4rem;
        --small: 1.25rem;
        --smallest: 1.1rem;
      }
      .pc {
        display: none;
      }
      header {
        height: 70px;
      }
      .background-video {
        object-position: left;
      }
    .left_header {
        display: block;
        line-height: 1;
        text-align: center;
        padding: 15px;
    }
    .left_header img {
        width: 220px;
        margin: 8px 0 0 0;
    }
    .left_header p {
        margin: 0;
    }
    .left_header_bg {
        height: 100%;
        width: 70%;
    }
    .right_header {
        width: 30%;
        display: flex;
        align-items: center;
    }
    .entry_btn_top a {
        margin: 0;
        font-size: 1.3rem;
        font-weight: 900;
    }
    .entry_btn_top span {
        margin-bottom: 2px;
        margin-top: 5px;
        font-size: 2.4rem;
    }
    .main_top::before {
        bottom: 310px;
    }
    .main-top-content {
        z-index: 999;
    }
    .clip {
        font-size: 62px;
        background-size: cover;
        transform: none;
        width: 680px;
    }
    .clip-text {
        font-size: 65px;
    }
    .clip-container {
        height: 330px;
        width: 105%;
        position: relative;
        overflow: hidden;
    }

    .mask-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        -webkit-mask-image: url(#text-clip);
        mask-image: url(#text-clip);
        -webkit-mask-size: contain;
        mask-size: contain;
        transform: translateZ(0);
        z-index: 9999;
    }

    .video-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .clip-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 文字表示用のスタイル */
    .text-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
    }


    .text-group {
        fill: #fff;
    }

    /* スマホ用テキストのみ表示 */
    .clip-text.desktop, .clip-text.pc {
        display: none;
    }

    .clip-text.sp {
        display: block;
        font-size: 40px;
    }

    /* アニメーション */
    .text-group tspan {
        fill: #fff;
        opacity: 1;
        animation: textBlur 3s ease-out forwards;
        -webkit-animation: textBlur 3s ease-out forwards;
    }



    /* 文字表示用のスタイル */
    .text-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 99;
        mix-blend-mode: overlay;
    }


    .text-group {
        fill: #fff;
    }

    /* スマホ用テキストのみ表示 */
    .clip-text.desktop, .clip-text.pc {
        display: none;
    }

    .clip-text.sp {
        display: block;
        font-size: 40px;
    }

    /* アニメーション */
    .text-group tspan {
        animation: textBlur 3s ease-out forwards;
        -webkit-animation: textBlur 3s ease-out forwards;
    }

    

    /* SVGテキストのスタイル調整 */
    .clip-text.sp {
        font-size: 60px; /* スマホ用のサイズ調整 */
        display: block;
    }

    .text-container svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999;
    }

    /* アニメーション最適化 */
    .text-container svg tspan {
        -webkit-animation-fill-mode: forwards;
        animation-fill-mode: forwards;
        will-change: opacity;
        z-index: 99;
        background-color: rgba(54, 188, 255, 0.2);
    }

    .video-overlay {
        width: 100%;
        height: 100%;
        background-color: transparent;
    }

    
      /* Safari対策 */
      /* .video-container {
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
      } */
    .main_top {
        margin-bottom: -400px;
    }
    .main_top_subtittle img {
        width: 140px;
    }
    .main_top_subtittle {
        top: 10vh;
        left: 43%;
        z-index: 90;
    }
    .main_top_image img {
        width: 100%;
    }
    
    .main_top_image {
        right: -30px;
        width: 50%;
    }
    .main_top {
        display: none;
    }
    .background-video-container {
        height: calc(100% - 270px);
        mask-size: 100% 270%;
    }
    .background-video {
        top: 75%;
        left: 90%;
    }
    .white-box {
        bottom: -170px;
    }
    .company {
        display: block;
        margin-bottom: 110px;
        padding-top: 30px;
    }
    .company_right {
        text-align: center;
        margin-bottom: 20px;
    }
    .company_right img {
        width: 90%;
        margin: 0;
        z-index: 99;
        position: relative;
    }
    .company_left {
        width: 100%;
    }
    .company_box {
        display: flex;
        justify-content: space-around;
        padding: 10px 20px;
        margin-bottom: 40px;
    }
    .company_box > div {
        text-align: left;
    }
    .company_box p {
        font-size: 1.4rem;
    }
    .company_border {
        padding: 10px 0 30px;
    }
    .company_border p {
        font-size: 2rem;
    }
    .work_text {
        padding: 0 0 40px;
    }
    .work_text p {
        line-height: 1.6;
    }
    .work_tab_content {
        display: block;
        width: 100%;
        margin-bottom: 0;
        margin: 0 auto;
    }
    .work_tab_content_image img {
        height: 220px;
        width: 100%;
        padding: 0;
    }
    .work_tab_content_image p {
        bottom: -12px;
        right: -5px;
    }
    .work_tab_content_image .work_tab_name_03 {
        bottom: 20px;
        left: 20px;
        right: auto;
    }
    .work_tab_content_text {
        margin: 0;
        height: 100%;
    }
    .work_tab_content_text p {
        line-height: 2;
    }
    .work_tab_content_text_03 {
        margin: 20px;
    }
    .work_tab_content_tittle {
        line-height: 1.8;
        padding-bottom: 10px;
    }
    .question_text {
        text-indent: -3.3rem;
        padding-left: 3.3rem;
        padding-bottom: 0;
    }
    .answer_text {
        padding-bottom: 30px;
    }
    .work_bg {
        background-size: cover;
        background-position: center;
    }
    .work_tab2 .work_tab_content_image img {
        height: 100%;
    }
    .work_tab2 .work_tab_content_text {
        padding: 0 0 30px;
        width: 100%;
    }
    .work_tab2 .work_tab_name {
        margin: 0 0 10px;
    }
    .work_tab3 .work_tab_content_image {
        width: 100%;
        padding: 10px 0;
    }
    .work_tab3 .work_tab_content_text {
        width: 91%;
        margin: 0 auto;
    }
    .work_tab3 {
        padding: 20px 0 30px;
    }
    .work_tab2 {
        width: 91%;
    margin: 0 auto;
    }
    .work_tab {
        margin-bottom: 50px;
    }
    .work_tab > label {
        letter-spacing: 1px;
        font-size: 1.3rem;
        font-weight: 500;
    }
    .work_tab > div {
        height: 100%;
    }
    .work_tab_content_image {
        padding: 30px 0 0;
    }
    .work_tab_even {
        margin: 0 3px;
    }
    .qa-list {
        padding: 30px 0;
    }

    .qa-list dl {
        margin: 10px 0 0;
    }
    .qa-list dl:after {
        top: 20px;
        right: 20px;
        width: 7px;
        height: 7px;
    }
    .qa-list dl dt {
        padding: 16px 16px 16px 50px;
        font-size: 14px;
    }
    .qa-list dl dt::before {
        font-size: 14px;
        top: 20px;
        left: 20px;
    }
    .qa-list dl dd::before {
        font-size: 14px;
        left: 20px;
        margin-top: 5px;
    }
    .qa-list dl dd {
        margin: 0;
        padding: 0 16px 16px 50px;
        font-size: 14px;
    }
    .qa-list dl dd p {
        margin: 30px 0 0;
    }
    .qa-list dl dd p:first-child{
        margin-top: 0;
        line-height: 1.6;
    }
    .work_tab_content_image_main .work_tab_content_image_text p {
        right: 10px;
    }

    .work {
        padding: 50px 0 80px;
    }
    .entry_box {
        padding: 20px 0;
        width: 70%;
    }
    .entry_box p {
        line-height: 1;
    }
    .entry_box .josefin-sans-bold {
        line-height: 1.4;
    }
    .entry_part {
        padding: 50px 0;
    }
    .welfare_box {
        width: 100%;
        max-width: 100%;
    }
    .welfare_part {
        padding-bottom: 70px;
    }
    .welfare_boxes {
        padding-bottom: 20px;
    }
    .welfare_title {
        font-size: 2.4rem;
    }
    .mt_30 {
        margin-top: -30px;
    }

    .training_system_part {
        padding: 30px 0 200px;
        overflow: hidden;
    }
    .training_system_flex {
        display: block;
    }
    .training_system_title > p {
        font-size: 2.5rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    .training_system_contents {
        display: flex;
        align-items: center;
        flex-direction: row;
    }
    .training_system_box {
        width: 50%;
        margin: 4px;
    }
    .training_system_box {
        padding: 30px 0;
        letter-spacing: 1px;
        font-size: 1.6rem;
    }
    .training_system_box p {
        font-size: 1.5rem;
    }
    .training_system_title .details_line {
        margin-top: 30px;
    }
    .training_system_title .details_line p {
        padding: 0 10px;
        font-size: 1.8rem;
    }
    .details_line i {
        line-height: 2;
    }
    .interview_part {
        padding: 0 0 80px 0;
        overflow: hidden;
    }
    .interview_box {
        height: 100%;
        padding: 30px;
    }
    .interview_boxes {
        display: block;
        margin-bottom: 50px;
    }
    .interview_title img {
        margin-bottom: 50px;
    }
    .interview_title p {
        font-size: 2.4rem;
    }
    .interview_box_60 {
        margin-top: 20px;
    }
    .interview_box img {
        margin-bottom: 0;
        height: 180px;
        width: 100%;
    }
    .audio-player {
        padding: 8px 0;
    }
    .video-info {
        width: 100%;
        margin-top: -31px;
    }
    .video-info p {
        display: inline-block;
        background: var(--white);
        padding: 5px;
        font-size: 1.2rem;
    }
    .interview_mv_arrow a p {
        font-size: 1.6rem;
    }
    .interview_box audio {
        margin-top: 4px;
        margin-bottom: 20px;
    }
    .interview_part .details_line p {
        padding: 0 10px;
        font-size: 1.8rem;
    }
    .interview_mv {
        display: block;
        width: 100%;
        margin: 0 auto;
    }
    .details_line p {
        font-size: 1.8rem;
    }
    .data_part {
        width: 100%;
    }
    .data_title {
        padding: 80px 0 60px;
    }
    .data_title p {
        font-size: 2.4rem;
    }
    .data_number_03 {
        margin-top: 0;
    }
    .data_number_03 a {
        width: 45%;
        margin-left: 20px;
        margin-right: 20px;
    }
    .data_number_03 .data_04 {
        width: 55%;
    }
    .black_tittle {
        font-size: 3.4rem;
    line-height: 1.3;
    }
    .work_tittle {
        top: -30px;
        line-height: 1.2;
        width: 110%;
    }

    /* カウントアップ */
.count02,
.count04 {
  font-size: 150px;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: -2px;
}
.count01 {
    font-size: 135px;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: -2px;
}
.count01_position {
  position: absolute;
  top: 20%;
  left: 2%;
}
.count02_position {
  position: absolute;
  top: -60px;
  right: 30px;
}
.count03 {
  font-size: 200px;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: -2px;
}
.count03_position {
  position: absolute;
  top: 57%;
  left: 2%;
}
.count04_position {
  position: absolute;
  top: 32%;
  left: 62%;
}
.count05 {
  font-size: 170px;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: -2px;
}
.count05_position {
  position: absolute;
  top: 60%;
  right: 4%;
}
.count06 {
  font-size: 160px;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: -2px;
}
.count06_position {
  position: absolute;
  top: 12%;
  right: 62%;
}

/* カウントアップここまで */

    .message {
        overflow: hidden;
        padding: 80px 0 60px;
    }
    .message_box {
        display: block;
    }
    .message_flex_left {
        width: 100%;
        margin: 0;
        display: block;
        padding: 0 0 50px;
    }
    .message_flex_right {
        display: block;
    }
    .message_leader {
        margin: 0;
    }
    .message_border {
        margin-bottom: 30px;
    }
    .message_flex_left .message_leader {
        margin: 0 auto;
        width: 90%;
    }
    .message_flex_left .message_border p {
        margin-right: 50px;
        font-size: 1.8rem;
        line-height: 2;
    }
    .message_border p {
        font-size: 1.8rem;
        line-height: 2;
    }
    .message_leader .black_tittle {
        margin-top: -20px;
    }
    .message_flex_right .message_leader .black_tittle {
        margin-left: 0;
    }
    .message_box_right {
        margin: 0 auto;
        margin-bottom: 70px;
    }
    .message_flex_right .message_border {
        margin: 0;
    }
    .message_three {
        margin-left: 40px;
    }
    .black_arrow {
        height: 40px;
    width: 40px;
    padding: 10px;
    }
    .black_arrow .fa-arrow-right:before {
        font-size: 2rem;
    }
    .message_flex_right .message_leader {
        margin: 0 auto;
        width: 90%;
        margin-bottom: 30px;
    
    }
    .recruit_title {
        padding: 30px 0 50px;
        font-size: 2.4rem;
    }

    .recruit_flex {
        display: block;
    }
    .recruit_box {
        width: 100%;
        margin-bottom: 50px;
    }
    .recruit_text_title {
        margin: 5px 0 0;
    }
    .recruit_part {
        padding: 50px 0 50px;
        overflow: hidden;
    }
    .footer_part img {
        width: 280px;
    }
    .footer_part .josefin-sans-bold {
        margin-top: 15px;
    }
    .footer_company_mark {
        font-size: 1.2rem;
        margin-top: 30px;
    }
}