@charset "utf-8";

/* Adjustment of jump destination for links within a page */
html {
    scroll-padding-top: 110px;
}

.research-title {
    margin-top: 250px;
}

/* For process description */
.process-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 5% auto;
    padding: 20px;
}

.process-left {
    flex: 1;
}

.process-left img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 50px;
}

.process-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    gap: 20px;
}

.process-item {
    width: 20vw;
}

.process-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-desc {
    font-size: 0.8rem;
    margin-bottom: 0rem;
}

.process-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.process-thumb {
    margin-left: auto;
}

.process-thumb img {
    width: 240px;
    height: auto;
    display: block;
}

/* For phase description */
.phase-title {
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

.phase-subtitle {
    font-size: 1.2rem;
}

.phase-desc {
    margin-top: 20px;
    line-height: 1.6rem;
    font-size: 0.9rem
}

.phase1-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.phase1-thumbnail-grid img {
    width: 100%;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s;
    cursor: pointer;
}

.phase1-thumbnail-grid .thumb.active img {
    filter: none;
}

.phase1-test-container {
    position: relative;
    min-height: 800px;
}

.phase1-test {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.phase1-test.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.phase1-test-title {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0;
}

.phase1-test-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 30px;
}

.phase1-test-top-image img {
    object-fit: contain;
    display: block;
    width: 25vw;
}

.phase1-test-top-gap {
    width: 5vw;
}

.phase1-test-video {
    overflow: hidden;
    width: 50vw;
}

.phase1-test-video video {
    display: block;
    object-fit: contain;
    width: 100%;
}

.phase1-test-desc {
    display: flex;
    gap: 60px;
    margin: 10px 0;
}

.phase1-test-desc-col {
    display: flex;
    flex-direction: column;
}

.phase1-test-desc-item {
    flex: 1;
    letter-spacing: 0;
    font-size: 0.8rem;
}

.phase1-test-bottom {
    margin-top: 50px;
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.phase1-test-bottom-left {
    width: 60vw;
}

.phase1-test-bottom-gap {
    width: 3vw;
}

.phase1-test-bottom-middle {
    width: 40vw;
}

.phase1-test-bottom-right {
    width: 40vw;
}

.phase1-test-bottom-caption {
    margin-top: 0.5em;
    text-align: right;
    font-size: 0.7rem;
    letter-spacing: 0;
}


/* responsive for smartphones */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }

    .research-title {
       margin-top: 150px;
    }

    .process-container {
        flex-direction: column;
    }

    .process-right {
        margin-top: 20px;
    }

    .process-subtitle {
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .process-item {
        width: 28vw;
    }

    .process-desc {
        font-size: 0.6rem;
        margin-bottom: 0rem;
    }

    .process-thumb img {
        width: 100px;
    }

    .phase-title {
        margin-bottom: 20px;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .phase-subtitle {
        font-size: 0.8rem;
    }

    .phase-desc {
        margin-top: 20px;
        line-height: 1.0rem;
        font-size: 0.6rem
    }

    .phase1-thumbnail-grid {
        gap: 5px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .phase1-test-title {
        font-size: 1rem;
        font-weight: 400;
        letter-spacing: 0;
    }

    .phase1-test-top {
        margin-bottom: 20px;
    }

    .phase1-test-top-image img {
        object-fit: contain;
        display: block;
        width: 15.3vw;
    }

    .phase1-test-top-gap {
        width: 2vw;
    }

    .phase1-test-video {
        overflow: hidden;
        width: 54.5vw;
    }

    .phase1-test-desc {
        gap: 30px;
    }

    .phase1-test-desc-item {
        font-size: 0.6rem;
    }

    .phase1-test-desc-item-surface {
        text-indent: -4em;
        padding-left: 4em;
    }

    .phase1-test-bottom-caption {
        margin-top: 0.2em;
        font-size: 0.6rem;
    }
}
