/*
Theme Name: witz-okinawa
Theme URL: https://wordpress.org/themes/witz-okinawa
*/

.header_nav {
    margin-right: 29px;
}

.header_nav .bi-box-arrow-up-right {
    margin-left: 5px;
}

.btn-entry,
.btn-contact {
    width: 167px;
    padding: 10px 0;
    color: #fff !important;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-entry:hover,
.btn-contact:hover {
    color: #fff !important;
    transform: translateY(-6px);
}

.btn-contact {
    background: #333 !important;
}

.btn-entry {
    margin-right: 36px;
    background: #C83C28 !important;
}

.btn-entry::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("image/common/entry_button-icon.png") no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 5px;
}

.main_visual {
    height: 100%;
    z-index: -100;
    position: relative;
}

.main_visual-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    z-index: 100;
}

.main_visual-text h2 {
    text-align: center;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
    font-size: 4.375rem;
    font-style: normal;
    font-weight: 700;
    line-height: 146%;
    -webkit-text-stroke: 2px black;
    paint-order: stroke;
}

.main_visual-text .small {
    font-size: 2.5rem;
}

:root {
    --delay: 0;
    --duration: 800ms;
    --iterations: 1;
}

.catchcopy {
    opacity: 0;
    transform: translateY(20px);
}

.animate-once {
    opacity: 1;
}

.animate-once p,
.animate-once p::after {
    animation-delay: var(--animation-delay, 2s);
    animation-iteration-count: var(--iterations, 1);
    animation-duration: var(--duration, 800ms);
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.0, 0.0, 0.2, 1);
}

.animate-once p {
    --animation-delay: var(--delay, 0);
    --animation-duration: var(--duration, 800ms);
    --animation-iterations: var(--iterations, 1);
    position: relative;
    animation-name: clip-text;
    color: #FFF;
    white-space: nowrap;
    cursor: default;
    line-height: 120%;
}

.animate-once p::after {
    content: "";
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #C83C28;
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
    animation-name: text-revealer;
    height: 90%;
    animation-delay: var(--animation-delay);
}

@keyframes clip-text {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes text-revealer {

    0%,
    50% {
        transform-origin: 0 50%;
    }

    60%,
    100% {
        transform-origin: 100% 50%;
    }

    60% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
    }
}



/* animate-once クラスが付与されたらアニメーションを開始 */

.main_visual.swiper {
    width: 100%;
    position: relative;
}

.main_visual .swiper-slide {
    width: 100% !important;
}

.main_visual .swiper-slide img {
    height: 100%;
    object-fit: contain;
}

.index .breadcrumb_inner {
    display: none;
}

.top_news {
    margin-left: auto;
    margin-top: -50px;
    background: rgba(0, 0, 0, 0.75);
    padding: 50px;
    width: 72%;
    z-index: 100;
    position: relative;
    justify-content: space-between;
}

.top_news-title {
    margin-right: 6.5625rem;
}

.top_news-list {
    width: 65%;
}

.top_news-list_item:not(:first-of-type) {
    margin-top: 1.875rem;
}

.top_news-list_item a:hover {
    color: #fff;
    opacity: 0.6;
}

.top_news-item_title time {
    margin-right: 2.1875rem;
}

.top_news-time {
    color: #ededed;
}

.top_news-item_title p {
    max-width: 683px;
    width: 100%;
}

.top_news-button {
    position: absolute;
    bottom: 1.5rem;
    left: 3.125rem;
}

.top_reason {
    position: relative;
    z-index: 100;
}

.top_reason::before {
    content: '';
    width: 69.27%;
    height: 390px;
    background: #ededed;
    position: absolute;
    top: 16.25rem;
    left: 0;
    z-index: -100;
}

.top_reason::after {
    content: '';
    width: 51.4%;
    height: 430px;
    background: url("image/top/reason_img.png") no-repeat;
    background-size: cover;
    position: absolute;
    top: 5.625rem;
    right: 0;
    z-index: -100;
}

.top_reason-content {
    max-width: 440px;
    width: 100%;
}

.top_reason-content_title {
    margin-bottom: 25px;
}

.top_business {
    z-index: 100;
    position: relative;
}

.top_business-content {
    margin-left: 50px;
}

.top_business-link {
    margin-top: 50px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.top_business-link_item {
    filter: drop-shadow(3px 4px 15px rgba(6, 0, 71, 0.40));
    box-sizing: unset;
    width: 500px;
}

.top_business-link_item-text {
    width: 100%;
    text-align: center;
    padding: 30px 0;
}

.top_company {
    background: #ededed;
    background-size: cover;
}

.top_company::before {
    content: '';
    width: 100%;
    height: auto;
    background: rgba(37, 143, 168, 0.54);
}

.top_company-link a:hover {
    opacity: 1;
}

.top_company-link_item-text {
    max-width: 470px;
    width: 100%;
    padding: 15px 30px;
}

.top_company-link_item {
    filter: drop-shadow(3px 4px 15px rgba(6, 0, 71, 0.40));
    box-sizing: unset;
}

.top_company-link_item-text .section_subtitle-14::after {
    content: '';
    position: absolute;
    display: inline-block;
    width: 22.194px;
    height: 5.355px;
    top: 50%;
    right: -35px;
    background: url("image/common/arrow_black.png") no-repeat;
    background-size: contain;
    vertical-align: middle;
    transition: all 0.2s;
}

.top_company-link a :hover.top_company-link_item .section_subtitle-14::after {
    right: -45px;
}

.top_recruit .wrap::before {
    content: '';
    position: absolute;
    display: block;
    background: url("image/top/recruit_img.jpg") no-repeat;
    width: 482px;
    height: 368px;
    top: 0;
    left: 0;
    z-index: -100;
}

.top_recruit-inner {
    padding: 40px 50px;
    width: 60%;
    z-index: 100;
    margin-top: 50px;
}

.top_recruit-button::after {
    background: url("image/common/new_tab.png") no-repeat !important;
    width: 14px !important;
    height: 14px !important;
}

.top_recruit-button:hover::after {
    transform: translateY(-1px);
}

.top_contact {
    background: url("image/top/contact_bg.jpg") no-repeat;
    background-size: cover;
}

footer {
    border-top: 1px solid #B5B5B5;
}

.footer_info {
    font-size: 1.125rem;
    padding: 4.375rem 0;
    margin: 0 auto !important;
}

.footer-navi {
    display: flex;
}

.nav-sub {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer_info-inner {
    width: 40%;
}

.footer-navi {
    width: 60%;
}

.footer-navi .btn-entry,
.footer-navi .btn-contact {
    margin-right: 0;
    width: 100%;
    padding: 15px;
}

.certification {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
    justify-content: space-between;
}

.youthyell,
.syotoku,
.fcryukyu {
    padding: 30px 50px;
    width: calc((100% - 2rem) / 3);
    margin-right: 1rem;
}

.uchina {
    margin-top: 1rem;
    padding: 30px 50px;
    width: auto;
}

.youthyell_logo,
.syotoku_logo,
.fcryukyu_logo,
.uchina_logo {
    margin-right: 30px;
    max-width: 100px;
    width: 100%;
    float: left;
}

.fcryukyu {
    margin-right: 0;
}

.youthyell_logo img,
.syotoku_logo img,
.fcryukyu_logo img,
.uchina_logo img {
    width: 100%;
}

.copyright_text {
    padding: 30px 0;
    font-size: 12px;
}



/* aboutus*/
.message::before {
    content: '';
    position: absolute;
    display: block;
    background: #ededed;
    width: 100%;
    min-height: 100%;
    top: 515px;
    left: 0;
    z-index: -100;
}

.message::after {
    content: '';
    position: absolute;
    display: block;
    background: url("image/aboutus/message.png") no-repeat;
    background-size: cover;
    width: 55.8%;
    height: 453px;
    top: 100px;
    right: 0;
    z-index: 100;
}

.top_message-title {
    padding-top: 270px;
    position: relative;
}

.top_message-title::before {
    content: '';
    position: absolute;
    display: block;
    background: #C83C28;
    margin-left: calc(49% - 50vw);
    width: 100vw;
    height: 272px;
    top: 144px;
    z-index: -100;
    overflow: hidden;
}

.message_inner_content {
    margin-top: 48px;
    position: relative;
    z-index: 200;
    padding: 50px;
    z-index: 200;
}

.massage_content-name p {
    margin-right: 20px;
}

.message_content-title {
    margin-bottom: 1.5625rem;
}

.reason {
    background: #fff;
}

.reason_item {
    padding: 40px 50px;
}

.reason_item img {
    height: 325px;
    object-fit: cover;
}

.reason_item:nth-child(even) {
    display: flex;
    flex-direction: row-reverse;
}

.reason_inner_content {
    margin-left: 50px;
}

.reason_inner_item .reason_item:nth-child(even) .reason_inner_content {
    margin-left: 0;
    margin-right: 50px;
}

.guideline_inner {
    padding: 80px 50px;
    position: relative;
    z-index: 200;
}

.philosophy_content img {
    object-fit: contain;
}

.philosophy_list {
    margin-left: 60px;
}

.philosophy_list_item {
    border-bottom: 1px solid #C83C28;
    padding: 20px 0;
}

.philosophy_list_item:first-child {
    padding-top: 0;
}

.philosophy_list_item:last-child {
    border-bottom: none;
}

.philosophy_list_item_title {
    margin-bottom: 10px;
}

.list-group {
    counter-reset: number 0;
}

.philosophy_list_item {
    counter-increment: sub-practice;
    padding-left: 2.3rem;
}

.philosophy_list_item .philosophy_list_item_title::before {
    content: counter(sub-practice, decimal-leading-zero)".";
    position: absolute;
    left: 0;
}

.philosophy_list_item_title p {
    position: relative;
}

.behavioralguidelines_content {
    margin-bottom: 25px;
}

/* work*/
.business_linkarea {
    margin-bottom: 70px;
    justify-content: center;
    align-items: center;
}

.link_button {
    padding: 20px 55px;
    border-radius: 10px;
    margin-bottom: 2.5rem;
}

.link_button .bi {
    margin-left: 10px;
}

.link_button:hover {
    color: #fff;
    opacity: 1;
}

.link_button:hover .bi::before {
    transform: translateY(5px);
    transition: transform 0.3s ease-in-out;
}

.link_button:not(:last-child) {
    margin-right: 2.5rem;
}

.business_content_item {
    padding: 110px 0 100px;
    border-bottom: #C83C28 1px solid;
    flex-wrap: wrap;
}

.business_content_item:not(:first-child) {
    margin-top: 110px;
}

.business_content_item:nth-child(even) {
    justify-content: end;
}

.security::after,
.hmi::after,
.software::after,
.project::after {
    content: '';
    position: absolute;
    width: 720px;
    height: 445px;
    top: 0;
    right: 0;
    z-index: -100;
}

.business_content_item:nth-child(even)::after {
    right: auto;
    left: 0;
}

.content_explanation {
    width: 720px;
    padding: 50px;
}

.section-header {
    text-align: center;
    padding-bottom: 40px;
}

.section-header p {
    margin: 10px 0 0 0;
    padding: 0;
    font-size:
        /*38px;*/
        2.37rem;
    line-height: 42px;
    font-weight: 700;
    color: var(--string-color);
}

.row h2 {
    margin-bottom: 0.5rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.row h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.row h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.info-box {
    color: #FFF;
    background: #333;
    padding: 20px;
    box-shadow: 0px 0 5px rgba(1, 41, 112, 0.08);
    transition: 0.3s;
    height: 100%;
    text-align: center;
    vertical-align: middle;
}

.info-box2 {
    color: #333;
    background: #F5F5F5;
    padding: 20px;
    box-shadow: 0px 0 5px rgba(1, 41, 112, 0.08);
    transition: 0.3s;
    height: 100%;
    vertical-align: middle;
}

.box {
    padding: 30px;
    box-shadow: 0px 0 10px rgba(0, 0, 0, 0.30);
    text-align: center;
    transition: 0.3s;
    height: 100%;
}

.box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.col-lg-10 img {
    margin: auto;
    display: block;
}

/*company*/
.office_point {
    margin-top: 110px;
}

.title_office {
    padding: 10px 30px;
}

.company-info_table_image img {
    max-width: 320px;
    width: 100%;
}

.history_button {
    margin-bottom: 95px;
}

.history_wrap {
    overflow: hidden;
    position: relative;
}

.history_wrap .swiper {
    width: 100%;
    overflow: visible;
}

.history_wrap .history_button {
    max-width: 1080px;
    width: 100%;
}

.pagination .page-numbers {
    margin-right: 10px;
}

.current {
    color: #C83C28;
}

.history .prev,
.history .next {
    background: url("image/common/arrow-left_blue.png") no-repeat center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    opacity: 1;
    cursor: pointer;
}

.history .next {
    background: url("image/common/arrow-right_blue.png") no-repeat center;
    margin-left: 20px;
}

.history_inner_item-content {
    padding-top: 20px;
    border-top: 2px solid #8f8f8f;
    position: relative;
    height: auto !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

.history_inner_item-content::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 15px;
    background-color: #C83C28;
    top: -9px;
    left: 40px;
}

.history_inner_item .swiper-slide {
    width: calc(100% / 3);
    box-sizing: border-box;
}

.history_explanation {
    padding: 30px;
    justify-content: space-between;
}

.history_explanation:first-child {
    margin-left: 40px;
}

.card-title {
    margin-bottom: 0.9375rem;
}

.card-text_title {
    width: calc(100% - 70px);
}

.card-text {
    margin-bottom: 25px;
}

.card-img,
.card-img-top,
.card-img-bottom {
    max-height: 150px;
    object-fit: contain;
}

.card-text_content {
    width: 200%;
}

/*contact*/
.contact_tel_title {
    padding: 10px 30px;
}

.contact-table th {
    width: 280px;
}

.contact-table th,
.contact-table td {
    padding: 30px 0 !important;
}

.contact-table .form-control {
    background: #E8E8E8;
}

.contact-table th p {
    position: relative;
}


.tag_any {
    position: absolute;
    display: block;
    width: 80px;
    height: 26px;
    background: #969696;
    top: 0;
    right: 25px;
}

.tag_required {
    position: absolute;
    display: block;
    width: 80px;
    height: 26px;
    top: 0;
    right: 25px;
}

.contact_button {
    margin: 0 auto;
}

/*news*/
.news_list li {
    border-bottom: #C83C28 2px solid;
    padding-bottom: 1.25rem;
}

.news_list li:not(:last-child) {
    margin-bottom: 1.25rem;
}

.news-time {
    font-size: 1rem;
}

.news_list-item_title {
    margin-bottom: 10px;
}

.news_list-item_content p {
    max-width: 1080px;
    width: 100%;
    word-break: break-all;
}

.privacy_content:not(:last-child) {
    margin-bottom: 2.5rem;
}

.news_detail-title {
    padding-bottom: 10px;
    border-bottom: #C83C28 2px solid;
}

.news .common_button-black {
    margin: 50px auto 0;
}

/*sitepolicy*/
.policy_content {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: #C83C28 solid 2px;
}

.policy_content p {
    margin: 10px 0;
}

.policy_title {
    margin-bottom: 20px;
}

.policy_list {
    margin-top: 15px;
}

.policy_list li {
    margin: 10px 0;
}

/*sitemap*/
.site_content {
    justify-content: space-between;
}

.sitemap_list {
    width: 30%;
}

.sitemap_list li {
    margin: 10px;
    padding-bottom: 10px;
    border-bottom: #C83C28 1px solid;
}

#splash {
    /*fixedで全面に固定*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    background: #C83C28;
    opacity: 1;
    color: #fff;
}

/* Loadingバー中央配置　*/
#splash_text {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 999;
    width: 100%;
    transform: translate(-50%, -50%);
    color: #C83C28;
}


/*modal*/
.post-content img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform .5s;
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    /* top/right/bottom/left:0 の省略 */
    z-index: 10000;
    background: rgba(92, 92, 92, 1);
    padding: 60px 20px;
}

.image-modal.is-open {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal__content {
    display: block;
    margin: 0 auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    /* 比率維持で収める */
}

.image-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

.image-modal__prev,
.image-modal__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    border: none;
    color: #fff;
    font-size: 40px;
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
}

.image-modal__prev:hover,
.image-modal__next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.image-modal__prev {
    left: 20px;
}

.image-modal__next {
    right: 20px;
}