@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
    .sp-only {
        display: block;
    }

    .main-content {
    min-height: 100vh;
    }

    .top-banner-area{
        background-repeat: no-repeat;
        background-size: cover;
        width: 100%;
        height: 220px;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        position: relative;
    }

    .top-banner-text {
        font-size: 4vw;
        display: flex;
        position: absolute;
        top: 60%;
        transform: translateY(-50%);
        padding: 0 5px;
    }

    .top-banner-sub-text {
        padding: 0 15px;
        font-size: 0.45rem;
    }

    .title {
        width: 55vw;
        max-width: 800px;
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
    }
    .title .label {
        margin-top: 3%;
        margin-left: 5%;
        font-size: clamp(10px, 3vw, 22px);
        display: inline-block;
        line-height: 1.2;
    }
    .title h2 {
        margin: 0;
        margin-top: 2%;
        margin-left: 5%;
        font-size: clamp(14px, 8vw, 72px);
        display: inline-block;
        line-height: 1.1;
        padding-bottom: 0;
    }

    .sub-title {
        width: 60%;
        height: auto;
        min-height: clamp(50px, 9vw, 140px);
        display: flex;
        align-items: center;
    }

    .sub-title-text {
        margin-left: 10%;
        font-size: 5.5vw;
        font-weight: bold;
    }

    .service-body,
    .about-us-body {
        margin: clamp(10px, 2.5vw, 32px);
        margin-bottom: clamp(60px, 10vw, 120px);
        padding: 0;
    }

    .content-introduction {
        margin-top: 10px;
    }

    .content-introduction p {
        font-size: 1rem; 
    }

    .service-content {
        display: block;
        width: 100%;
        margin-top: clamp(20px, 4vw, 40px);
        margin-bottom: clamp(40px, 8vw, 120px);
    }

    .container {
        width: 100%;
        min-height: 190px;
        min-height: clamp(80px, 10vw, 140px);
        margin-bottom: clamp(16px, 3vw, 32px);
        border-radius: 12px;
    }

    .image-wrapper {
        width: 35%;
        border-radius: 12px 0 0 12px;
    }

    .text-area {
        flex: 1;
    }

    .text-area h2 {
        margin: 0;
        margin-top: 15px;
        font-size: clamp(18px, 2.5vw, 28px);
        text-align: center;
    }

    .text-area p {
        margin: 0;
        margin-top: 10px;
        font-size: 10px;
        padding-bottom: 20px;
    }

    .owner-introduction {
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .owner-area {
        width: 100%;
        display: block;
    }

    .owner-area img {
        width: 90%;
        height: auto;
        margin: 0 auto;
        border-radius: 50px;
    }

    .organization-name {
        width: 90%;
        font-size: 4.25vw;
        text-align: center;
        margin: 1vh auto 0;
    }

    .organization-name p {
        margin: 0;
        display: inline;
        padding: 0 10px 1vh;
        border-bottom: 2px solid #aaa;
    }

    .owner-name h2 {
        margin: 0;
        font-size: 8vw;
    }

    .owner-name {
        margin-top: 1vh;
        font-size: 3.5vw;
    }

    .introduction-area {
        margin-left: 0;
        display: flex;
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .owner-greeting {
        height: 60%;
        font-size: 1rem;
        text-align: center;
        order: 1;
        margin-top: 20%;
    }

    .owner-greeting h1 {
        margin: 0 0 5% 0;
        font-size: clamp(20px, 5vw, 72px);
        text-align: center;
    }

    .career {
        order: 2;
        margin-top: 20px;
    }

    .career h2 {
        margin: 0;
        font-size: 5vw;
    }

    .career p {
        margin: 10px 0 0 5px;
        font-size: 0.75rem;
        text-align: left;
    }

    .members {
        width: 100%;
        margin: 0;
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;

        scrollbar-width: none; 

        scroll-snap-type: x mandatory;
        user-select: none;
        cursor: grab;   
    }

    .members::before,.members::after {
        display: none;
    }

    .members::-webkit-scrollbar {
        display: none;
    }

    .members.active {
        cursor: grabbing;
    }

    .card {
        max-width: 80vw;
        height: 38vh;
    }
    .card:hover {
        transform: scale(1.05);
    }

    .member-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

    .card-text-area {
        display: block;
        align-items: center;
        text-align: center;

        padding: 8px;
    }

    .member-name {
        font-size: 30px;
    }

    .hurigana {
        font-size: 10px;
    }

    .modal-area {
        background: white;
        padding: 30px;
        border-radius: 12px;
        text-align: center;
        width: 75%;
        position: relative;
        display: block;
    }

    .modal-image {
        width: 100%;
        height: 25vh;
        object-fit: cover;
        border-radius: 8px;
    }

    .modal-text {
        width: 100%;
        margin-left: 0;
        display: block;
    }

    #modal-name {
        font-size: 7vw;
        margin: 0;
    }

    #modal-hurigana {
        font-size: 2.75vw;
    }

    #modal-content {
        white-space: pre-line;
        font-size: 2.5vw;
        text-align: left;
    }
}
