#hero::before {
    display: block;
    position: absolute;
    content: "";
    inset: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

#hero>img {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 10;
    width: clamp(200px, 30vw, 400px);
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#hero .slider {
    position: relative;
    width: 100%;
    height: clamp(600px, 80vh, 800px);
    overflow: hidden;
}

#hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#hero .slide.active {
    opacity: 1;
    z-index: 1;
}

#hero .slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section#about {
    padding-top: clamp(6rem, 12vw, 15rem);
}

#about .container>div {
    width: 70%;
}

#about img {
    width: 30%;
}

#about h2 {
    margin-bottom: .5em;
}

#services li {
    background-color: #fff;
    box-shadow: var(--shadow);
}

#services li:nth-child(n+2) {
    margin-top: 10rem;
}

#services figure {
    position: relative;
}

#services .img-wrap {
    position: relative;
    width: 50%;
}

#services figcaption {
    width: 50%;
    padding-right: 3rem;
}

#services h3 {
    margin-bottom: .5em;
}

#services figure .icon {
    position: absolute;
    height: min(5vw, 10rem);
    width: auto;
    top: 2rem;
    right: 2rem;
    z-index: -1;
    opacity: .08;
}

#profile .flex {
    row-gap: 5rem;
}

#profile h3 {
    margin-bottom: 1em;
    font-weight: 500;
    color: var(--c-main);
}

#profile dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 2em;
}

#profile dt {
    color: var(--c-main);
    font-weight: 500;
}

#profile dd {
    grid-column: 2;
    margin-bottom: 1.5rem;
}

#profile dd+dd {
    margin-top: -1.5rem;
}

#profile .last {
    margin-bottom: 0;
}

.map {
    width: 50%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 100%;
}

@media screen and (max-width:992px) {
    #top-page main .flex.flex-column-sp>*,
    #top-page main .flex.flex-column-re-sp>* {
        width: 100%;
    }

    #about {
        text-align: center;
    }

    #about h2 {
        margin-bottom: 1em;
    }

    #about img {
        max-width: 400px;
    }

    #services {
        text-align: center;
    }

    #services li:nth-child(n+2) {
        margin-top: 6rem;
    }

    #services figure {
        row-gap: 3rem;
        position: static;
    }

    #services figcaption {
        position: relative;
        padding-inline: 2rem;
        padding-bottom: 5rem;
    }

    #services figure.flex img.icon {
        width: auto;
        height: clamp(20px, 15vw, 80px);
        top: -1rem;
        left: 2rem;
    }
}