@charset "UTF-8";
#first_view {
    font-size: clamp(15px, 1.8vw, 22px);
    position: relative;
    width: 100%;
    height: 40vw;
    min-height: 80vh;
    overflow: hidden;
    background: #f9f9f9;
    margin-top: -80px;
    padding-top: 50px;
}

.fv-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.fv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.fv-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    font-feature-settings: "palt";
}

.fv-content h1 {
    font-size: 300%;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 0.5em;
}

.fv-content h1 span {
    font-size: 85%;
}

.fv-content h1 .fv-char {
    display: inline-block;

    opacity: 0;
    filter: blur(12px);
    transform: translateY(0.15em) scale(1.05);

    animation: fv-char-in 1.2s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;

    animation-delay: var(--delay);
}

@keyframes fv-char-in {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(0.15em) scale(1.05);
    }

    40% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

.fv-content p {
    text-align: center;
    line-height: 2;
    letter-spacing: 0.1em;
}

.fv-content .btn_wrap {
    margin-top: 2em;
    display: flex;
    justify-content: center;
    gap:2em;
    font-size: 85%;
}

.fv-content .btn_wrap a {
    display: inline-block;
    width: 10em;
    text-align: center;
    background-color: var(--accent);
    line-height: 1;
    letter-spacing: 0.1em;
    color: white;
    padding: 0.4em 2em 0.5em 1em;
    position: relative;
    transition: all 0.2s;
}

.fv-content .btn_wrap a:nth-child(2) {
    background-color: var(--main);
}

.fv-content .btn_wrap a:hover {
    background-color: var(--sub);
}

.fv-content .btn_wrap a:after {
    content: "";
    display: block;
    width: 0.5em;
    height: 1em;
    background-image: url(../img/btn_arrow.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 50%;
    right: 1em;
    transform: translateY(-50%);
    transition: all 0.2s;
}

.fv-content .btn_wrap a:hover:after {
    right: 0.5em;
}

.fv-content > p,
.fv-content .btn_wrap {
    opacity: 0;
    transform: translateY(10px);
    animation: fv-content-in 1.5s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}

.fv-content > p {
    animation-delay: 2s;
}

.fv-content .btn_wrap {
    animation-delay: 2.8s;
}

@keyframes fv-content-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 767px) {
    #first_view {
        font-size: clamp(13px, 2.4vw, 20px);
        height: 70vw;
        min-height: 50vh;
        margin-top: -50px;
    }

    .fv-content {
        padding: 0 5%;
    }

    .fv-content h1 {
        font-size: 220%;
        margin-bottom: 1em;
    }

    .fv-content p {
        text-align: center;
        line-height: 2;
        letter-spacing: 0.1em;
    }

    .fv-content .btn_wrap {
        margin-top: 3em;
        gap: 2.5em;
        font-size: 90%;
    }

    .fv-content .btn_wrap a {
        padding: 0.6em 2em 0.7em 1em;
    }
}

/*===========================================
       ABOUT US
===========================================*/
#about {
    background-color: var(--main);
    background-image: url(../img/about_img.webp);
    background-repeat: no-repeat;
    background-size: 28em auto;
    background-position: calc(55% + 12em) bottom;
}

.about_txt {
    color: white;
    letter-spacing: 0.1em;
    font-feature-settings: "palt";
}

.about_txt p:not(:last-child) {
    margin-bottom: 1em;
}

@media screen and (max-width: 767px) {
    #about {
        background-size: 30em auto;
        background-position: calc(50% + 19em) bottom;
    }

    .about_txt {
        text-align: justify;
        padding-right: 5em;
        text-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.5);
    }
}

/*===========================================
       service
===========================================*/
.service_list {
    margin-top: 3em;
    display: flex;
    gap: 2em;
}

.service_box {
    width: calc((100% - 4em) / 3);
    border: 5px solid var(--bg);
    padding: 1em;
    display: flex;
    flex-direction: column;
    position: relative;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service_box:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.06);
}

@property --border-progress {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.service_box::before {
    content: "";
    position: absolute;
    inset: -5px;

    padding: 5px;

    background:
        conic-gradient(from 0deg,
            var(--accent) 0deg,
            var(--accent) var(--border-progress),
            transparent var(--border-progress),
            transparent 360deg);

    /* 中央部分をくり抜いてボーダーだけ表示 */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    pointer-events: none;

    --border-progress: 0deg;

    transition:
        --border-progress 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.service_box:hover::before,
.service_box:focus-visible::before {
    --border-progress: 360deg;
}

.service_box h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5em;
    margin-bottom: 0.5em;
}

.service_box h3 img {
    height: 3em;
}

.service_box .sub {
    text-align: center;
    font-feature-settings: "palt";
    letter-spacing: 0.1em;
    line-height: 1.5;
    margin-bottom: 0.5em;
}

.service_box .txt {
    text-align: justify;
    font-size: 90%;
    font-feature-settings: "palt";
    color: #666;
    margin-bottom: 0.5em;
}

.service_box .btn {
    display: flex;
    justify-content: flex-end;
    gap:0.5em;
    font-size: 90%;
    line-height: 1;
    align-items: center;
    color: var(--accent);
    margin-top: auto;
}

.service_box .btn:after {
    content: "";
    display: block;
    width: 1em;
    height: 1em;
    background-image: url(../img/gaibu_icon.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media screen and (max-width: 767px) {
    .service_list {
        margin-top: 3em;
        flex-wrap: wrap;
        gap: 1.5em;
    }

    .service_box {
        width: calc((100% - 1.5em) / 2);
        border: 3px solid var(--bg);
    }

    .service_box:hover {
        transform: translateY(-4px);
        box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.06);
    }

    .service_box::before {
        inset: -3px;
        padding: 3px;
    }

    .service_box h3 {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 5em;
        margin-bottom: 0.5em;
    }

    .service_box h3 img {
        height: 2.5em;
    }

    .service_box .sub {
        letter-spacing: 0.05em;
    }

    .service_box .btn {
        display: flex;
        justify-content: flex-end;
        gap: 0.5em;
        font-size: 90%;
        line-height: 1;
        align-items: center;
        color: var(--accent);
        margin-top: auto;
    }

    .service_box .btn:after {
        content: "";
        display: block;
        width: 1em;
        height: 1em;
        background-image: url(../img/gaibu_icon.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

/*===========================================
       nayami
===========================================*/
.nayami {
    margin-top: 2em;
}

.nayami a {
    display: flex;
    filter: drop-shadow(0.3em 0.3em 0.3em rgba(0, 0, 0, 0.1));
}

.nayami a:not(:last-child) {
    margin-bottom: 2em;
}

.nayami dt {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5em 3.5em 1.5em 1em;
    flex: 1;
    position: relative;
}

.nayami dt::after {
    content: "";
    display: block;
    aspect-ratio: 11 / 20;
    height: 100%;
    background-image: url(../img/nayami_arrow.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.nayami dt .ttl {
    font-size: 120%;
    line-height: 1;
    letter-spacing: 0.1em;
    margin-bottom: 0.5em;
    font-feature-settings: "palt";
}

.nayami dt .txt {
    line-height: 1.5;
    color: #666;
    font-size: 85%;
    letter-spacing: 0.1em;
    font-feature-settings: "palt";
}

.nayami dd {
    width: 20em;
    background-color: var(--main);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
}
.nayami a:hover dd {
    width: 15em;
}

.nayami dd p {
    text-align: center;
    color: white;
    font-size: 120%;
    letter-spacing: 0.1em;
    line-height: 1.3;
    transition: 0.3s ease;
}
.nayami a:hover dd p {
    color: var(--sub2);
}

@media screen and (max-width: 767px) {
    .nayami a {
        flex-direction: column;
    }

    .nayami dt .ttl {
        font-size: 130%;
        z-index: 10;
    }

    .nayami dt .txt {
        z-index: 10;
    }

    .nayami dd {
        width: 100%;
        padding: 1em;
        background-color: var(--sub);
    }

    .nayami a:hover dd {
        width: 100%;
    }
}

/*===========================================
       company
===========================================*/
#company {
    background-image: url(../img/company_back.webp);
}

.com_box {
    display: flex;
    gap: 2em;
    align-items: flex-end;
}

.com_box p {
    color: #666;
    letter-spacing: 0.1em;
    font-feature-settings: "palt";
}

.com_box .btn {
    display: inline-block;
    width: 12em;
    text-align: center;
    background-color: var(--main);
    line-height: 1;
    letter-spacing: 0.1em;
    color: white;
    padding: 0.4em 2em 0.5em 1em;
    position: relative;
    transition: all 0.2s;
    font-size: 85%;
}

.com_box .btn:hover {
    background-color: var(--sub);
}

.com_box .btn:after {
    content: "";
    display: block;
    width: 0.5em;
    height: 1em;
    background-image: url(../img/btn_arrow.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 50%;
    right: 1em;
    transform: translateY(-50%);
    transition: all 0.2s;
}

.com_box .btn:hover:after {
    right: 0.5em;
}

@media screen and (max-width: 767px) {
    .com_box {
        flex-direction: column;
        gap: 1.5em;
        align-items: flex-start;
    }

    .com_box .btn {
        font-size: 100%;
    }
}