@charset "utf-8";

html { font-size: 62.5%; }


#header {
    max-width: 100%;
    box-shadow: 0px 0 10px 0px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    background-color: #fff;
}
#header #logo {
    max-width: 1050px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
}
#footer {
    background-color: #fff;
}


.l-main {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    color: #282828;
    background-color: #EEEEEE;
    line-height: 1.5;
    font-family: "Noto Sans JP", sans-serif;
    overflow: hidden;
}
.l-main img { width: 100%; }
.l-main a { text-decoration: none; }



.p-mv {
    width: 100%;
    margin-bottom: 6%;
}



.p-contact {
    max-width: 90%;
    width: 100%;
    margin: 0 auto 8%;
}
.p-contact__title {
    background-color: #009360;
    padding: 0.5em;
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    position: relative;
}
.p-contact__title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    border-style: solid;
    border-width: 6px 5px 0 5px;
    border-color: #009360 transparent transparent transparent;
}
.p-contact__text-wrap {
    background-color: #fff;
}
.p-contact__text {
    padding: 1em;
    font-size: 1.4rem;
    width: fit-content;
    margin: 0 auto;
}
.p-contact__text a {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    color: #009360;
    display: block;
}



.p-buildings {
    max-width: 90%;
    width: 100%;
    margin: 0 auto 12%;
    display: flex;
    flex-wrap: wrap;
    column-gap: 4%;
}
.p-building {
    max-width: calc((100% - 4%) / 2);
    width: 100%;
    margin-bottom: 6%;
    background-color: #fff;
    position: relative;
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.1);
}
.p-building a {
    display: inline-block;
    width: 100%;
    height: 100%;
}
.p-building__image {
    position: relative;
}
.p-building__image img {
    width: 100%;
}
.p-building__info {
    padding: 9.5% 7.5% 12.5%;
}
.p-building__name {
    margin-bottom: 6%;
    font-weight: bold;
    font-size: 1.4rem;
}
.p-building__location {
    font-size: 1.2rem;
    display: none;
}


.p-building__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1; 
}
.p-building__sold {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    padding: 0.5em;
    border: #fff solid 3px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.1em;
    z-index: 2; 
    pointer-events: none;
}


@media (min-width: 520px) {
    
    .p-mv {
        margin-bottom: 4%;
    }
    .p-mv img {
        min-height: 300px;
        object-fit: cover;
    }

    
    .p-contact {
        margin: 0 auto 5%;
    }
    .p-contact__title::after {
        bottom: -12px;
        border-width: 12px 10px 0 10px;
    }
    .p-contact__text {
        font-size: 1.6rem;
        padding: 1.4em 1em 1em;
    }
    .p-contact__text a {
        display: inline;
    }

    
    .p-buildings {
        column-gap: 2%;
        margin: 0 auto 8%;
    }
    .p-building {
        max-width: calc((100% - 4%) / 3);
        margin-bottom: 3%;
    }
}


@media (min-width: 960px) {
    
    html { font-size: 71%; }

    
    .p-mv {
        margin-bottom: 40px;
    }

    
    .p-contact {
        max-width: calc(min(1100px, 90%));
        margin: 0 auto 48px;
    }

    
    .p-buildings {
        max-width: calc(min(1100px, 90%));
        column-gap: 20px;
    }
    .p-building {
        max-width: calc((100% - (20px * 3)) / 4);
        margin-bottom: 30px;
    }

    
    .p-building__sold {
        width: 60%;
        font-size: 1.5rem;
    }
}