@charset "UTF-8";

/* ===========================
Main Visual
============================= */
.mv {
    width: 100%;
    height: calc(100vh - 80px);
    min-height: 500px;
    position: relative;
    background-color: var(--bg-beige);
    overflow: hidden;
    display: flex;
    align-items: center;
    background-image: url('../img/mv.webp');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
}

.mv::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.mv-inner {
    width: 90%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    position: relative;
    z-index: 2;
}

.mv-content {
    position: relative;
    flex: 0 0 auto;
}

.mv-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--c-text);
    position: relative;
    z-index: 2;
    display: inline-block;
}

.mv-title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220%;
    height: 220%;
    background: radial-gradient(
        circle, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.9) 45%, 
        rgba(255, 255, 255, 0) 85%
    );
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.mv-title span {
    color: var(--c-mint-accent);
}

/* --- 波線のパーツのみ追加 --- */
.mv-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 4;
    line-height: 0;
}

.mv-wave svg {
    width: 100%;
    height: 100%;
}

.mv-wave path {
    fill: var(--bg-beige);
}

@media screen and (max-width: 768px) {
    .mv {
        height: calc(90svh - 70px);
        /* 古いブラウザ用 */
        height: calc(100vh - 70px); 
        height: 550px;
        min-height: auto;
        justify-content: center;
    }

    .mv-inner {
        width: 100%;
        justify-content: center;
        padding: 0 20px;
    }

    .mv-content {
        text-align: center;
    }

    .mv-title {
        font-size: 20px;
        line-height: 1.6;
    }

    .mv-title::before {
        width: 180%;
        height: 180%;
        filter: blur(30px);
    }

    /* スマホ用に波の高さだけ調整 */
    .mv-wave {
        height: 60px;
    }
}

@media screen and (max-width: 768px) {
    .mv {
        height: 550px;
    }
}


/* ===========================
ABOUT
============================= */

.top-about {
    background-color: var(--bg-beige);
    text-align: center;
}

.top-about .content {
    margin-bottom: 64px;
}

.top-about .content p {
    margin-bottom: 64px;
}

.top-about .content p:last-child {
    margin-bottom: 0;
}

/* ===========================
SERVICE
============================= */
.top-service {
    background-color: var(--c-main);
}

.top-service .container {
    position: relative;
}

.top-service .section-title {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 840px;
    text-align: left;
    margin: 0;
    z-index: 10;
}

.top-service .list {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 40px;
    max-width: 840px;
    margin: 0 auto;
}

.top-service .section-title .en,
.top-service .section-title .ja {
    text-shadow: 0 0 5px rgba(22, 181, 176, 0.2);
}

.top-service .item {
    background-color: var(--bg-white);
    width: 440px;
    height: 440px;
    border-radius: 50%;
    display: block;
    text-align: center;
    padding: 55px 40px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.top-service .item .img {
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}

.top-service .item h3 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.0;
}

.top-service .item p {
    font-size: 17px;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.6;
}

.top-service .item .btn-area {
    margin-top: 5px;
}

.top-service .item .sub-btn {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    line-height: 1;
}

.top-service .item.medical {
    align-self: flex-end;
}

.top-service .item.marketing {
    align-self: flex-start;
    margin-top: -60px;
}

.top-service .item.improvement {
    align-self: flex-end;
    margin-top: -60px;
}

.top-service .item.medical h3,
.top-service .item.medical .sub-btn {
    color: var(--c-medical);
    border-color: var(--c-medical);
}

.top-service .item.medical .sub-btn:hover {
    background-color: var(--c-medical);
    color: #fff;
}

.top-service .item.marketing h3,
.top-service .item.marketing .sub-btn {
    color: var(--c-marketing);
    border-color: var(--c-marketing);
}

.top-service .item.marketing .sub-btn:hover {
    background-color: var(--c-marketing);
    color: #fff;
}

.top-service .item.improvement h3,
.top-service .item.improvement .sub-btn {
    color: var(--c-improvement);
    border-color: var(--c-improvement);
}

.top-service .item.improvement .sub-btn:hover {
    background-color: var(--c-improvement);
    color: #fff;
}

@media screen and (max-width: 768px) {
    .top-service .container {
        position: static;
    }

    .top-service .section-title {
        position: relative;
        top: 0;
        left: auto;
        transform: none;
        max-width: none;
        text-align: center;
        margin-bottom: 40px;
    }

    .top-service .item.marketing,
    .top-service .item.improvement {
        margin-top: 20px;
    }
}

@media screen and (max-width: 600px) {
    .top-service .list {
        gap: 32px;
    }

    .top-service .item {
        width: 330px;
        height: 330px;
        padding: 40px 20px;
        align-self: center !important;
        margin: 0 !important;
    }

    .top-service .item h3 {
        font-size: 26px;
    }

    .top-service .item .img {
        width: 140px;
        margin-bottom: 24px;
    }

    .top-service .item p {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .top-service .item .btn-area {
        margin-top: 5px;
    }
}

/* ===========================
COMPANY
============================= */
.top-company {
    background-color: var(--bg-beige);
    background-image: url('../img/company-map.webp');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
    height: 860px;
}

.top-company .section-title {
    text-align: left;
    margin-bottom: 40px;
}

.top-company .section-title .en,
.top-company .section-title .ja {
    color: var(--c-yellow);
}

.top-company .content p {
    font-size: 16px;
    color: var(--c-text);
}

@media screen and (max-width: 768px) {
    .top-company {
        background-color: var(--bg-beige);
        background-image: url('../img/company-map-sp.webp');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center bottom;
        height: 800px;
    }

    .top-company .section-title {
        text-align: center;
    }

    .top-company .content p {
        font-size: 15px;
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    .top-company {
        height: 600px;
    }
}

/* ===========================
Project
============================= */
.top-project {
    background-color: var(--bg-beige);
    overflow: hidden;
    position: relative;
}

.top-project .project-bg {
    width: 100%;
    min-height: 750px;
    position: relative;
}

.top-project .project-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image:
        linear-gradient(rgba(60, 60, 60, 0.05), rgba(60, 60, 60, 0.05)),
        url('../img/project-bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath d='M0,200 C480,50 960,350 1440,200 L1440,1000 L0,1000 Z' /%3E%3C/svg%3E"),
        linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath d='M0,200 C480,50 960,350 1440,200 L1440,1000 L0,1000 Z' /%3E%3C/svg%3E"),
        linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.top-project .project-title img,
.top-project .project-chara-balloon img {
    width: 100%;
    height: auto;
    display: block;
}

.top-project .project-title {
    position: absolute;
    top: 20%;
    left: 8vw;
    width: 340px;
    z-index: 2;
}

.top-project .project-chara-balloon {
    position: absolute;
    right: 8vw;
    bottom: 50px;
    width: 380px;
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .top-project .project-bg {
        min-height: 500px;
        display: block;
        padding: 0;
    }
    
    .top-project .project-title,
    .top-project .project-chara-balloon {
        position: absolute;
        margin: 0;
    }
    
    .top-project .project-title {
        top: 120px;
        left: 20px;
        width: 200px;
    }
    
    .top-project .project-chara-balloon {
        right: 20px;
        bottom: 40px;
        width: 270px;
    }

}

/* ===========================
Contact
============================= */
.top-contact {
    background-color: var(--bg-mint);
    padding-bottom: 60px;
}

.top-contact .contact-box {
    background-color: var(--bg-mint);
    border-radius: var(--rd-l);
    padding: 64px 40px;
    text-align: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.top-contact .section-title {
    margin-bottom: 30px;
}

.top-contact .section-title .en,
.top-contact .section-title .ja {
    color: var(--c-main);
}

.top-contact .contact-text {
    margin-bottom: 40px;
}

.top-contact .contact-chara {
    position: absolute;
    right: 5%;
    bottom: 10%;
    width: 200px;
}


@media screen and (max-width: 768px) {
    .top-contact {
        padding-bottom: 20px;
    }

    .top-contact .contact-chara {
        position: static;
        margin: 20px auto 0;
        width: 150px;
    }
}

@media screen and (max-width: 600px) {
    .top-contact .contact-chara {
        display: none;
    }
    
}