/*
Theme Name: 株式会社2on
Description: 株式会社2on
Author: 株式会社2on
Version: 1.1
*/

/* html5のブラウザ互換用
----------------------------------------------------------- */
@import url("/wp-content/themes/newthemes/css/reset.css");
@import url("/wp-content/themes/newthemes/css/default.css");


@charset "utf-8";

.clearfix {
    display: block;
}

.sp {
    display: none;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: #000;
    font-size: clamp(14px, 1.5vw, 20px);
    letter-spacing: 1px;
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    line-height: 2;
    font-weight: 500;
}

/*マウス*/
.cursor-dot,
.cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}


.cursor-dot {
    width: 20px;
    height: 20px;
    background-color: rgba(206, 17, 85, .5);
}

.cursor-follower {
    width: 50px;
    height: 50px;
    background-color: rgba(206, 17, 85, 0.2);
    transition: background-color 0.3s ease;
}

/* FVテキスト */
.animated-text {
    font-size: 3rem;
    font-weight: bold;
    overflow: hidden;
}

.animated-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

/*title*/
@keyframes slideUpIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up-text {
    opacity: 0;
    transform: translateY(30px);
    animation-fill-mode: forwards;
    animation-duration: 0.6s;
    animation-timing-function: ease-out;
    animation-name: none;
}

.slide-up-text.delay {
    animation-delay: 0.3s;
    display: block;
}

#main {
    position: relative;
    width: 100%;
    padding: 100px 0;
    overflow: hidden;
    background-color: #fff;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* header */
header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 999;
    max-width: 1900px;
    margin: 0 auto;
    text-align: center;
    position: fixed;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    background-color: #fff;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    padding: 1em 2em;
    box-sizing: border-box;
}

header.visible {
    opacity: 1;
    pointer-events: auto;
}

header h1 {
    margin: 0 1em 0 0;
}

header h2 {
    font-weight: 400;
    font-size: clamp(12px, 1.5vw, 16px);
}

/* ハンバーガー */
.hamburger {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    margin-left: auto;
    z-index: 1001;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* メニュー */
.header_nav {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-left: auto;
}

.header_nav ul {
    display: flex;
    align-items: center;
    gap: 1em;
    list-style: none;
}

.header_nav ul li a {
    text-decoration: none;
    color: #000;
    font-size: clamp(14px, 1.5vw, 18px);
}

.header_nav ul li a:hover {
    color: #ce1155;
}

.header_btn {
    margin-left: 1em;
    width: 150px;
}

.header_btn a {
    color: #fff;
    display: block;
    text-decoration: none;
    background-color: #f64b4b;
    border-radius: 999px;
    padding: .3em 0 .4em;
    text-align: center;
    font-weight: bold;
    font-size: clamp(14px, 1.5vw, 18px);
}

.header_btn a:hover {
    background-color: #ce1155;
}

/* スマホ用 */
@media (max-width: 768px) {
    header {
        top: 10px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    header h1 {
        width: 40%;
    }

    header h2 {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .header_nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1em;
        padding: 1em;
    }

    .header_nav.open {
        display: flex;
    }

    .header_nav ul {
        flex-direction: column;
        gap: 1em;
    }

    .header_btn {
        margin-top: 1em;
        width: 100%;
    }
}

/* fv */
#fv {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
}

#fv video#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.fv-content {
    position: relative;
    color: #fff;
    padding-top: 550px;
    width: 90%;
    margin: 0 auto;
    z-index: 10;
}

.fv-content h2 {
    font-size: clamp(48px, 5vw, 60px);
    font-weight: 900;
}

#fv_pickup {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
}

#fv_pickup_icon {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-color: #f64b4b;
    overflow: visible;
    z-index: 1;
    font-size: 18px;
}

#fv_pickup_icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    border: 5px solid #e8bac1;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulseRing 1.8s ease-out infinite;
    z-index: -1;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

#fv_pickup p {
    padding: 0 0 0 1em;
    font-size: 18px;
    color: #fff;
}

#fv_pickup p a {
    color: #fff;
    text-decoration: none;
}

.mouse-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

.mouse {
    width: 28px;
    height: 48px;
    border: 2px solid #fff;
    border-radius: 15px;
    position: relative;
    box-sizing: border-box;
}

.mouse-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        top: 10px;
        opacity: 1;
    }

    50% {
        top: 20px;
        opacity: 0.5;
    }

    100% {
        top: 10px;
        opacity: 1;
    }
}

.scroll-text {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: #fff;
    opacity: 0.7;
}

/* topbox01 */
#topbox01 {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 100px 0;
    position: relative;
    z-index: 10;
}

#topbox01>div {
    width: 75%;
    box-sizing: border-box;
}

#topbox01 figure {
    max-width: 500px;
    width: 50%;
    position: absolute;
    left: 70%;
    top: 150px;
}

.top_title {
    font-size: clamp(48px, 5vw, 60px);
    font-weight: 900;
    margin: 0 0 1em;
}

.top_title span {
    display: block;
    font-size: clamp(18px, 2vw, 24px);
}

.english {
    font-family: Arial, sans-serif;
    letter-spacing: 0;
}

#topbox01 div h3 {
    font-size: clamp(24px, 2.5vw, 30px);
    color: #f64b4b;
}

#topbox01>div p {
    margin: 0 0 2em;
}

.topbox01_btn {
    width: 300px;
    margin-top: 1.5em;
}

.topbox01_btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ce1155;
    color: #fff;
    text-decoration: none;
    font-size: clamp(14px, 1.5vw, 18px);
    padding: 0.5em 0;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}


.arrow-wrapper {
    display: inline-block;
    animation: arrowMoveX 1s infinite ease-in-out;
}


.arrow-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}


@keyframes arrowMoveX {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }

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

/*強み*/
#top_strengths_title {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto 5em;
}

.service_point {
    display: flex;
    width: 100vw;
    position: relative;
    z-index: 10;
    margin: 0 0 2em;
}

.service_point.reverse {
    flex-direction: row-reverse;
}

.service_point figure {
    width: 50vw;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 0 30px 30px 0;
}

.service_point.reverse figure {
    border-radius: 30px 0 0 30px;
}

.service_point figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service_point .text_area_wrapper {
    width: 50vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4em;
    box-sizing: border-box;
}

.service_point .text_area_inner {
    max-width: 650px;
    width: 100%;
}

.service_point div h3 {
    font-size: clamp(24px, 2.5vw, 30px);
    color: #f64b4b;
}

.service_point.reverse {
    flex-direction: row-reverse;
}


/* topbox02 */
#topbox02 {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 5em 0 0;
}


#topbox02_btn {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    margin: 0 auto 8em;
    position: relative;
    z-index: 10;
    gap: 2%;
    width: 90%;
}

#topbox02_btn a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

#topbox02_btn a img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

#topbox02_btn a:hover img {
    transform: scale(1.05);
}

#topbox02_btn a div {
    position: absolute;
    bottom: 7%;
    left: 0;
    color: #fff;
    padding: 0 1.5em;
    box-sizing: border-box;
}

#topbox02_btn a div h3 {
    font-size: clamp(18px, 2vw, 24px);
}

#topbox02_btn a div h3 span {
    display: block;
    font-size: clamp(14px, 1.5vw, 18px);

}

#topbox02_btn a div p {
    font-size: clamp(14px, 1.5vw, 18px);
}

/*topbox03*/
#topbox03 {
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 10;
}

#topbox03 figure {
    width: 50%;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    border-radius: 0 30px 30px 0;
}

#topbox03 figure video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#topbox03>div {
    width: 50%;
    padding: 3em;
    box-sizing: border-box;
}

#topbox03 div h2 {
    font-size: 30px;
}

#topbox03 p {
    margin: 0 0 5em;
}

.topbox03_list {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 2em;
}

.topbox03_list article {
    width: 47%;
    background-color: #fff;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 3em 1em 2em;
    box-sizing: border-box;
    text-align: center;
    font-size: clamp(14px, 1.5vw, 16px);
    position: relative;
    margin: 0 0 2em;
}

.topbox03_list article div {
    font-size: clamp(60px, 5vw, 72px);
    font-weight: 900;
    position: absolute;
    left: 5%;
    top: -30%;
    line-height: 1;
    opacity: .6;
}

#topbox03 .topbox03_list article p {
    margin: 0;
}

#topbox03 .topbox03_list article p span {
    color: #f64b4b;
    font-weight: 700;
}

/* topbox04 */
#topbox04 {
    width: 100%;
    padding: 100px 0;
    max-width: 1900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

#topbox04 .wrapper {
    width: 90%;
    margin: 0 auto;
    display: -webkit-flex;
    display: flex;
}

#topbox04_title {
    width: 20%;
}

#topbox04_title a {
    text-decoration: none;
    color: #ce1155;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

#topbox04_title a .arrow {
    display: inline-block;
    margin-left: 4px;
    animation: moveArrow 1s ease-in-out infinite;
}

@keyframes moveArrow {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

#topbox04_right {
    width: 80%;
}

#topbox04_right article {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    border-bottom: #ccc solid 1px;
    padding: 1em 0;
}

.news_day {
    width: 20%;
    text-align: center;
    background-color: #f1f1f1;
    border-radius: 999px;
    padding: .2em 0;
}

.news_list {
    width: 80%;
    box-sizing: border-box;
    padding: 0 0 0 1em;
}

.news_list a {
    color: #000;
    text-decoration: none;
}

/*topbox05*/
#contact {
    background-color: #eee;
    text-align: center;
    padding: 100px 0;
    border-radius: 50px 50px 0 0;
    width: 90%;
    margin: 0 auto 3em;
    position: relative;
    z-index: 10;
}

#contact .wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}



#contact .wrapper>p {
    margin: 0 0 2em;
}

#contact .wrapper article {
    background-color: #fff;
    text-align: left;
    padding: 3em;
}

#contact .wrapper article div {
    padding: 0 0 1em;
}
#contact .wrapper article div.wpcf7 form.sent .wpcf7-response-output,#contact .wrapper article div.wpcf7 form.invalid .wpcf7-response-output{
text-align: center;
    padding: 1em;
}
#contact .wrapper article p {
    font-weight: bold;
    padding: 0 0 1em;
}

#contact .wrapper article p span.hisu {
    background-color: #ce1155;
    color: #fff;
    margin: 0 0 0 1em;
    padding: 0.2em 0.5em;
    font-size: clamp(14px, 1.5vw, 18px);
}



#contact .wrapper article p input,
#contact .wrapper article p textarea {
    width: 100%;
}
#contact .wrapper article p input[type="checkbox"]{
    width: auto;

}
#contact .wrapper article p textarea {
    height: 250px;
}

.contact_btn {
    text-align: center;
}

#contact .wrapper article p input#submitBtn {
    width: 300px;
    background-color: #ce1155;
    border-radius: 999px;
    color: #fff;
    border: none;
}

#contact p a {
    color: #ce1155;
}

/* 無効化された状態の見た目 */
#contact .wrapper article p input#submitBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.wpcf7-spinner {
display: block !important;
}
/* footer */
footer {
    width: 100%;
    background-image: url(images/footer_bg.webp);
    background-repeat: repeat-x;
    background-position: top left;
    background-size: auto;
    animation: scrollBackgroundLeft 30s linear infinite;
    text-align: center;
    padding: 0 50px;
    box-sizing: border-box;
}

/* 左向きの横スクロールアニメーション */
@keyframes scrollBackgroundLeft {
    0% {
        background-position: 0 top;
    }

    100% {
        background-position: -2000px top;
        /* 負の値で左方向へ移動 */
    }
}

footer p {
    padding: 300px 0 50px;

}

/* sub */
header#sub_header {
    opacity: 1;
}

#sub_title {
    text-align: center;
    font-size: clamp(72px, 62.2609px + 3.0435vw, 100px);
    padding: .5em 0 0;
    font-family: Arial, sans-serif;
    font-weight: 900;
    position: relative;
    z-index: 10;
    margin: 0 0 .5em;
}

#sub_title h2 {
    margin: 0;
}

#sub_title span {
    display: block;
    font-size: clamp(24px, 2.5vw, 30px);
}

.sub_title_m {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1em;
    font-size: clamp(24px, 19.8261px + 1.3043vw, 36px);
    padding: 0 0 0 120px;
    box-sizing: border-box;
}

.sub_title_m:before {
    content: '';
    background-color: #ccc;
    display: block;
    position: absolute;
    left: 0;
    width: 90px;
    height: 2px;
    top: 0;
    bottom: 0;
    margin: auto;
}

#sub_main {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

/* about */


#about_menu {
    width: 90%;
    margin: 0 auto;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 3%;
}

#about_menu a {
    display: block;
    background-color: #eeeeee;
    padding: .3em 2em;
    border-radius: 999px;
    color: #000;
    text-decoration: none;
}

#mvv {
    padding: 3em 0;
}

.mvv_list {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    border-bottom: #ccc 1px solid;
    padding: 3em 0;
}

.mvv_list:first-of-type {
    border-top: #ccc 1px solid;

}

.mvv_list h3 {
    width: 35%;
    font-size: clamp(48px, 5vw, 60px);
}

.mvv_list h3 span {
    display: block;
    font-size: clamp(18px, 2vw, 24px);
}

.mvv_list>div {
    width: 64%;
    font-size: clamp(24px, 2.5vw, 30px);
}

.value {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.value div {
    width: 48%;
    margin: 0 0 4%;
    background-color: #eeeeee;
    border-radius: 20px;
    padding: 1em;
    box-sizing: border-box;
}

.value div h4 {
    color: #ce1155;
    font-size: clamp(24px, 2.5vw, 30px);
    margin: 0;
}

.value div h4 span {
    font-size: clamp(18px, 2vw, 24px);

}

.value div p {
    font-size: clamp(14px, 1.5vw, 18px);
}

#greeting {
    padding: 5em 0 3em;
}

.greeting_list {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.greeting_list figure {
    width: 45%;
    text-align: center;
}

.greeting_list figure img {
    margin: 0 auto;
}

.greeting_list div {
    width: 55%;
}

.greeting_list div h4 {
    font-weight: 500;
    font-size: clamp(24px, 19.8261px + 1.3043vw, 36px);
}

.greeting_list div h4 span {
    display: block;
    font-size: clamp(14px, 1.5vw, 18px);
}

.row {
    flex-direction: row-reverse;
}

.greeting_list:last-of-type {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: flex-end;
    align-items: flex-end;
    margin-top: -4em;

}

#company {
    padding: 5em 0;
}

#company_wrapper table {
    width: 100%;
}

#company_wrapper table th {
    width: 30%;
    border-bottom: #ce1155 1px solid;
    padding: 2em 1em;
    box-sizing: border-box;
    text-align: left;
}

#company_wrapper table td {
    width: 70%;
    border-bottom: #ccc 1px solid;
    padding: 2em 1em;
    box-sizing: border-box;
    text-align: left;
}

#company_wrapper table td a {
    color: #f64b4b;
    text-decoration: none;
}

#service_toptext {
    text-align: center;
    font-size: clamp(24px, 2.5vw, 30px);
    line-height: 1.8;
}

#service_wrapper {
    margin: 0 0 8em;
}

.service {
    padding: 5em 0 0;
    position: relative;
}

.service_number {
    position: absolute;
    right: 0;
    top: 0;
    color: #f64b4b;
    opacity: .3;
    font-size: 300px;
    font-weight: 900;
    line-height: 1.5;
    z-index: -10;
    font-family: Arial, sans-serif;
}

.service:nth-child(2n) .service_number {
    left: 0;
}

.service h3 {
    text-align: center;
    font-size: clamp(24px, 19.8261px + 1.3043vw, 36px);
    position: relative;
    margin: 0 0 2em;
}

.service h3:before {
    position: absolute;
    bottom: -.8em;
    left: calc(50% - 30px);
    width: 60px;
    height: 5px;
    content: '';
    border-radius: 3px;
    background: #f64b4b;
}

.service h4 {
    text-align: center;
    margin: 0 0 2em;
    line-height: 2;
}

.service figure {
    margin: 0 0 1em;
}

.service figure img {
    border-radius: 20px;
}

.service_text {
    text-align: center;
}

.service_text strong {
    color: #f64b4b;
}

.achievements01 {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin: 0 0 2em;
}

.achievements01 div {
    width: 48%;
}

.achievements02 {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    gap: 1em;
    margin: 0 0 2em;
}

/* news */
#news_menu {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 1em;
    margin: 0 0 2em;
}

#news_menu div {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    gap: .5em;
}

#news_menu ul {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 1em;
}

#news_menu ul a {
    padding: .1em 1em;
    display: block;
    color: #000;
    text-decoration: none;
}

#news_menu ul a:hover {
    background-color: #f64b4b;
    color: #fff;
}

#news_menu ul li.on a {
    background-color: #f64b4b;
    color: #fff;
}

#news_wrapper,
#connection {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    gap: 2%;
}

#news_wrapper article,
#connection article {
    margin: 0 0 2em;
    width: 48%;
}

#news_wrapper article a,
#connection article a {
    text-decoration: none;
    color: #000;
}

#news_wrapper article a:hover,
#connection article a:hover {
    color: #f64b4b;
}

#news_wrapper{
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    gap: 2%;
}
/*ページネーション*/
.pagination-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 8px;
    list-style-type: none;
    padding: 0;
}



.pagination-2 a {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 2em;
    height: 2.6em;
    border-radius: 25px;
    background-color: #f2f2f2;
    color: #f64b4b;
    padding: 1em;
}

.pagination-2 a:not(:hover) {
    text-decoration: none;
}

.pagination-2 .current a {
    background-color: #f64b4b;
    color: #fff;
    pointer-events: none;
}

.pagination-2 .prev a,
.pagination-2 .next a {
    gap: 0 4px;
    width: auto;
    padding: .5em .8em;
    line-height: 1;
}

.pagination-2 .prev a::before,
.pagination-2 .next a::after {
    display: inline-block;
    transform: rotate(45deg);
    width: .3em;
    height: .3em;
    content: '';
}

.pagination-2 .prev a::before {
    border-bottom: 1px solid #f64b4b;
    border-left: 1px solid #f64b4b;
}

.pagination-2 .next a::after {
    border-top: 1px solid #f64b4b;
    border-right: 1px solid #f64b4b;
}

/*dearail*/
#dearail_wrapper {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

#dearail_left {
    width: 70%;
    padding: 0 0 5em;
}

#dearail_left h1 {
    font-size: clamp(24px, 2.5vw, 30px);
    margin: 0 0 1em;
}

#dearail_left figure {
    margin: 0 0 2em;
}

#dearail_left p {
    margin: 0 0 2em;
}

#dearail_left h2 {
    background-color: #000;
    color: #fff;
    padding: .5em 1em;
    font-size: clamp(18px, 2vw, 24px);
    margin: 0 0 1em;
}

#dearail_left h3 {
    border-bottom: #ccc 1px solid;
    margin: 0 0 1em;
    padding: 0 0 .5em;
    font-size: clamp(18px, 2vw, 24px);
}

#back {
    text-align: center;
}

#back a {
    display: block;
    width: 300px;
    text-align: center;
    color: #000;
    text-decoration: none;
    background-color: #eee;
    border-radius: 999px;
    margin: 0 auto;
    padding: .5em 0;
}

#back a:hover {
    background-color: #f64b4b;
    color: #fff;
}

#dearail_wrapper aside {
    width: 27%;
}

#dearail_wrapper aside h2 {
    border-bottom: #ccc 1px solid;
    padding: .5em 0;
    margin: 0 0 1em;
    font-size: clamp(18px, 2vw, 24px);
}

#dearail_wrapper aside h2:last-of-type {
    padding: 2em 0 .5em;
}

#dearail_wrapper aside article {
    border-bottom: #ccc 1px solid;
    margin: 0 0 1em;
}

#dearail_wrapper aside article a {
    padding: 0 0 1em;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-align-items: center;
    align-items: center;
    gap: 1em;
    text-decoration: none;
    color: #000;
}

#dearail_wrapper aside article a:hover {
    color: #f64b4b;
}

#dearail_wrapper aside article a figure {
    width: 90px;
}

#dearail_wrapper aside article a h3 {
    font-weight: 500;
    width: 250px;
}

#dearail_wrapper aside ul li {
    list-style: disc;
    list-style-position: inside;
}

#dearail_wrapper aside ul li a {
    text-decoration: none;
    color: #000;
}

#dearail_wrapper aside ul li a:hover {
    color: #f64b4b;
}


.related-post-thumbnail {
    width: 500px;       /* 幅500px */
    height: 300px;      /* 高さ300px */
    object-fit: cover;  /* 画像が枠にぴったり収まるように切り抜く */
    object-position: center; /* 画像の中心を表示 */
    overflow: hidden;   /* 画像がはみ出した部分を隠す */
}

.cat_title,.thanks_title {
font-size: clamp(24px, 2.5vw, 30px);
    margin: 0 0 1em;
}

.thanks_title{
text-align: center;
}

.thanks_text {
    margin: 0 0 2em;
text-align: center;
}

.thanks_btn {
text-align: center;
}

.thanks_btn a{
    width: 300px;
    background-color: #ce1155;
    border-radius: 999px;
    color: #fff;
    border: none;
    display: block;
    margin: 0 auto;
    text-decoration: none;
    padding: .5em;
}
/*スマホ
------------------------------*/

@media screen and (max-width: 850px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    /*マウス*/
    .cursor-dot,
    .cursor-follower {
        display: none;
    }

    #main {
        padding: 50px 0 0;
    }

    /* header */
    header {
        top: 10px;
    }


    header h1 {
        margin: 0 1em 0 0;
        width: 40%;
    }

    header h2 {
        display: none;
    }

    header>div {
        display: none;
    }

    /* fv */
    #fv {
        position: relative;
        width: 100%;
        height: 650px;
        overflow: hidden;
        z-index: 10;
    }

    #fv video#bg-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .fv-content {
        padding-top: 350px;
    }

    .fv-content h2 {
        font-size: 36px;
    }



    #fv_pickup_icon {
        position: relative;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        background-color: #f64b4b;
        overflow: visible;
        z-index: 1;
        font-size: 10px;
        text-align: center;
    }

    #fv_pickup_icon::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 60px;
        height: 60px;
        transform: translate(-50%, -50%);
        border: 3px solid #e8bac1;
        border-radius: 50%;
        opacity: 0.6;
        animation: pulseRing 1.8s ease-out infinite;
        z-index: -1;
    }

    #fv_pickup p {
        font-size: 12px;
    }

    .scroll-text {
        font-size: 10px;
    }

    /* topbox01 */
    #topbox01 {
        width: 90%;
        padding: 0 0 5em 0;
        position: relative;
        z-index: 10;
    }

    #topbox01>div {
        width: 100%;
        box-sizing: border-box;
    }

    #topbox01 figure {
        max-width: 100%;
        width: 100%;
        position: static;
        margin: 0 0 1em;
        text-align: center;
    }

    #topbox01 figure img {
        margin: 0 auto;
    }

    .top_title {
        font-size: 36px;
        margin: 0 0 1em;
    }

    .top_title span {
        font-size: 18px;
    }


    #topbox01 div h3 {
        font-size: 24px;
    }

    .topbox01_btn {
        margin: 1.5em auto 0;
    }

    /*強み*/
    #top_strengths_title {
        margin: 0 auto 1em;
    }

    .service_point {
        display: block;
        width: 90%;
        position: relative;
        z-index: 10;
        margin: 0 auto 2em;
    }

    .service_point.reverse {
        flex-direction: row-reverse;
    }

    .service_point figure {
        border-radius: 20px;
        width: 100%;
        height: 200px;
    }

    .service_point.reverse figure {
        border-radius: 20px;
    }

    .service_point .text_area_wrapper {
        width: 100%;
        display: block;
        padding: 2em 0;
    }

    /* topbox02 */
    #topbox02 {
        padding: 0;
    }

    #topbox02_btn {
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 4%;
        margin: 0 auto 5em;
    }

    #topbox02_btn article {
        width: 48%;
        margin: 0 0 4%;
    }

    #topbox02_btn a {
        border-radius: 20px;
    }

    #topbox02_btn a div {
        position: absolute;
        bottom: 5%;
        left: 0;
        color: #fff;
        padding: 0 1.5em;
        box-sizing: border-box;
    }

    #topbox02_btn a div h3 {
        font-size: 18px;
        margin: 0;
    }


    #topbox02_btn a div p {
        display: none;
    }

    /*topbox03*/
    #topbox03 {
        display: block;
    }

    #topbox03 figure {
        width: 95%;
        border-radius: 0 20px 20px 0;
    }


    #topbox03>div {
        width: 90%;
        padding: 2em 0 0;
        margin: 0 auto;
        box-sizing: border-box;
    }

    #topbox03 div h2 {
        font-size: 20px;
        margin: 0;
    }

    #topbox03 p {
        margin: 0 0 3em;
    }

    .topbox03_list {
        display: block;
    }

    .topbox03_list article {
        width: 100%;
        border-radius: 20px;
        margin: 0 0 4em;
    }

    .topbox03_list article div {
        top: -25%;
    }

    /* topbox04 */
    #topbox04 {
        width: 90%;
        padding: 0 0 5em;
    }

    #topbox04 .wrapper {
        width: 100%;
        display: block;
    }

    #topbox04_title {
        width: 100%;
    }

    #topbox04_title h2 {
        margin: 0;
    }

    #topbox04_right {
        width: 100%;
    }

    #topbox04_right article {
        display: block;
        border-bottom: #ccc solid 1px;
        padding: 1em 0;
    }

    .news_day {
        width: 150px;
        margin: 0 0 .5em;
    }

    .news_list {
        width: 100%;
        padding: 0;
    }

    /*topbox05*/
    #contact {
        padding: 3em 0;
        border-radius: 30px 30px 0 0;
        width: 100%;
        margin: 0 auto 3em;
        position: relative;
        z-index: 10;
    }

    #contact h2 {
        margin: 0 0 .5em;
    }

    #contact .wrapper article {
        padding: 2em;
    }

    /* footer */
    footer {
        animation: scrollBackgroundLeft 50s linear infinite;
        background-size: 100%;
        position: relative;
        z-index: 10;
        background-color: #fff;
    }


    footer p {
        padding: 20% 0 10%;

    }

    #particles-js {
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: 9;
    }

    /*sub*/
    .sub_title_m {
        padding: 0 0 0 50px;
        margin: 0 0 1em;
    }

    .sub_title_m:before {
        width: 40px;
    }

    /* about */
    #about_menu {
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 0;
    }

    #about_menu li {
        margin: 0 0 1em;
    }

    #about_menu a {
        text-align: center;
    }


    .mvv_list {
        -webkit-flex-direction: column;
        flex-direction: column;
        padding: 1.5em 0;
    }


    .mvv_list h3 {
        width: 100%;
        font-size: 36px;
    }

    .mvv_list h3 span {
        font-size: 16px;
    }

    .mvv_list>div {
        width: 100%;
        font-size: 18px;
    }

    .value {
        -webkit-flex-direction: column;
        flex-direction: column;
    }

    .value div {
        width: 100%;
        margin: 0 0 2%;
        border-radius: 10px;
    }

    .value div p {
        font-size: 16px;
    }

    #greeting {
        padding: 2em 0 3em;
    }

    .greeting_list {
        -webkit-flex-direction: column;
        flex-direction: column;
    }

    .greeting_list figure {
        width: 100%;
        text-align: center;
        margin: 0 0 1em;
    }

    .greeting_list div {
        width: 100%;
    }


    .row {
        flex-direction: row-reverse;
    }

    .greeting_list:last-of-type {
        -webkit-flex-direction: column;
        flex-direction: column;
        margin-top: 2em;
    }

    #company {
        padding: 0em 0 5em;
    }

    #company_wrapper table {
        width: 100%;
    }

    #company_wrapper table th {
        width: 100%;
        display: block;
        padding: 1em;
        font-weight: 900;
        background-color: #f8f8f8;
    }

    #company_wrapper table td {
        width: 100%;
        display: block;
        padding: 1em;
    }

    /*service*/
    #service_toptext {
        font-size: 18px;
    }

    #service_wrapper {
        margin: 0 0 5em;
    }

    .service {
        padding: 3em 0 0;
    }

    .service_number {
        opacity: .2;
        font-size: 150px;
    }



    .service h3 {
        margin: 0 0 1.5em;
    }

    .service h3:before {
        height: 3px;
    }

    .service h4 {
        text-align: center;
        margin: 0 0 2em;
        line-height: 2;
    }

    .service_text {
        text-align: left;
    }

    .achievements02 {
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    /* news */
    #news_menu {
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 1em;
        margin: 0 0 2em;
    }


    #news_menu ul {
        gap: 1em;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    #news_menu ul li {
        width: 48%;
    }

    #news_menu ul a {
        text-align: center;
    }


    #news_wrapper,
    #connection {
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 2%;
    }


#news_wrapper article,
#connection article {
    width: 100%;
}

    /*ページネーション*/
    .pagination-2 {
        margin: 0 0 5em;
    }

    /*dearail*/
    #dearail_wrapper {
        -webkit-flex-direction: column;
        flex-direction: column;
        margin: 0 0 5em;
    }

    #dearail_left {
        width: 100%;
    }


    #dearail_wrapper aside {
        width: 100%;
    }
    
    .related-post-thumbnail {
    width: 100%;       /* 幅500px */
    height: 200px;      /* 高さ300px */
    object-fit: cover;  /* 画像が枠にぴったり収まるように切り抜く */
    object-position: center; /* 画像の中心を表示 */
    overflow: hidden;   /* 画像がはみ出した部分を隠す */
}

.thanks_btn {
    margin: 0 0 8em;
}

}