@charset "utf-8";

/* 初期化 */
body, div, ul, p, a {
    margin: 0;
    font-family: 'TsunagiGothic', sans-serif;
    text-decoration: none;
    list-style: none;
}

/* 文字 */
@font-face {
    font-family: 'TsunagiGothic';
    src: url('./fonts/TsunagiGothic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* お問合せ */
.mail-button {
    width: fit-content;
    padding: 20px;
    background: #76766b;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

/* ファーストビュー */
.main {
    width: 100vw;
    height: 100vh;
    position: relative;
}
.main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}
.main .company-name {
    position: absolute;
    top: 30px;
    left: 20px;
    font-size: 41px;
}
.text-line-bg {
    background: rgba(255, 255, 255, 0.3); /* 半透明の白 */
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: bold;
    text-align: center;
    width: fit-content; /* テキストの長さに合わせて横幅可変 */
}
.main .text-wrapper {
    position: absolute;
    left: 50px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px; /* 行間 */
    margin-top: 50px;
}
.main > .text-wrapper > div > .text-line {
    font-size: 40px;    
}
.main .text-wrapper > .text-line {
    font-size: 18px;    
}

/* 良房フロントについて */
.company-profile {
    width: 100vw;
    height: 100%;
    padding: 50px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.company-profile .img-box {
    flex: 1;
}
.company-profile .img-box img {
    width: 100%;
}
.company-profile .company-about {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.company-profile .company-about p:first-child {
    width: fit-content;
    padding: 15px 10px 10px;
    background: #eee;
    border-radius: 10px;
    font-size: 31px;
}
.company-profile .company-about p:nth-child(2) {
    padding: 0 10px;
    /* font-size: 13px; */
    color: #76766b;
    line-height: 1.5rem;
}

/* 施工事例 */
.construction-examples {
    padding: 30px 0;
    background-image: url('./img/construction-example-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.construction-examples > p {
    width: fit-content;
    margin: 0 auto;
    padding: 15px 20px;
    display: block;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    background: #fff;
    border-radius: 15px;
}
.construction-examples .example-row {
    width: calc(100% - 40px);
    margin: 20px 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.construction-examples .example-row .example {
    flex: 1;
    width: 100%;
    padding: 70px 0;
    background: #fff;
}
.construction-examples .example-row .example > p {
    width: fit-content;
    margin: 40px auto 0;
    padding: 5px 20px;
    display: block;
    border-radius: 5px;
    font-size: 22px;
    background: #eee;
    text-align: center;
}
.construction-examples .example-row .example .images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.construction-examples .example-row .example .images img {
    width: 100%;
    max-height: 235px;
    object-fit: contain;
}
.construction-examples .example-row .example .images .before,
.construction-examples .example-row .example .images .after {
    position: relative;
}
.before-text,
.after-text {
    width: fit-content;
    margin: 0 auto;
    padding: 5px;
    border-top-left-radius: 10px;
    font-size: 25px;
}

/* 施工までの流れ */
.flow {
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background-image: url('./img/flow-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;   
}
.flow > p {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
}
.flow ul {
    width: calc(100% - 20px);
    padding: 0 10px;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    gap: 20px;
}
.flow ul li img {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
}
.flow ul li p {
    font-size: 18px;
}

/* 会社概要 */
.company-info {
    padding: 60px 50px;
}
.company-info > img {
    width: 100%;
    display: block;
    margin: 0 auto 70px;
}
.company-info > div {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: start;
}
.company-info > div > p {
    font-size: 30px;
    font-weight: bold;
    color: #76766b;
}
.company-info > div > img {
    width: 100%;
    max-width: 500px;
}
.company-info ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; /* 列と行の間隔 */
    list-style: none;
    padding: 0;
}
.company-info ul li p:first-child {
    margin-bottom: 10px;
    font-size: 22px;
}
.company-info ul li p:nth-child(2) {
    font-size: 22px;
    color: #76766b;
}
/* お問合せ */
.contact {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background-image: url('./img/contact_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.contact p {
    font-size: 40px;
    text-align: center;
}
.contact .mail-button {
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    /* ファーストビュー */
    .main .company-name {
        font-size: 25px;
    }
    .main > img {
        object-position: -250px 0;
    }
    .text-line-bg {
        border-radius: 25px;
        padding: 10px;
        font-weight: bold;
        text-align: center;
        width: fit-content; /* テキストの長さに合わせて横幅可変 */
    }
    .main .text-wrapper {
        left: 5px;
        bottom: 30px;
        margin-top: 50px;
    }
    .main > .text-wrapper > div > .text-line {
        font-size: 20px;
        text-align: start;
    }
    .main .text-wrapper > .text-line {
        font-size: 18px;
        text-align: start;
    }
    .main .mail-button {
        display: none;
    }

    /* 良房フロントについて */
    .company-profile {
        flex-direction: column;
        gap: 20px;
    }
    .company-profile .company-about {
        align-items: center;
        gap: 30px;
    }
    .company-profile .company-about p:first-child {
        font-size: 23px;
    }
    /* 施工事例 */
    .construction-examples {
        padding: 20px 0;
    }
    .construction-examples > p {
        padding: 10px 20px;
        font-size: 25px;
    }
    .construction-examples .example-row {
        width: 100%;
        padding: 0;
        flex-direction: column;
    }
    .construction-examples .example-row .example {
        padding: 20px 0;
    }
    .construction-examples .example-row .example > p {
        margin: 20px auto 0;
        font-size: 18px;
    }
    .before-text,
    .after-text {
        font-size: 18px;
    }

    /* 施工までの流れ */
    .flow {
        height: 100%;
        padding: 30px 0;
    }
    .flow > p {
        font-size: 25px;
    }
    .flow ul {
        width: calc(100% - 20px);
        margin: 0 auto;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
    }
    .flow ul li {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .flow ul li img {
        width: 80%;
        height: 100%;
        max-height: 200px;
        object-fit: cover;
        overflow: hidden;
    }
    .flow ul li p {
        font-size: 15px;
        text-align: center;
    }

    /* 会社概要 */
    .company-info {
        padding: 30px 5px;
    }
    .company-info > img {
        width: 100%;
        display: block;
        margin: 0 auto 15px;
    }
    .company-info > div {
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: start;
    }
    .company-info > div > p {
        font-size: 18px;
        font-weight: bold;
        color: #76766b;
        flex-shrink: 0;
    }
    .company-info > div > img {
        width: 100%;
        max-width: 250px;
    }
    .company-info ul {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem; /* 列と行の間隔 */
    }
    .company-info ul li p:first-child {
        margin-bottom: 10px;
        font-size: 16px;
    }
    .company-info ul li p:nth-child(2) {
        font-size: 15px;
        color: #76766b;
    }
    /* お問合せ */
    .contact {
        gap: 40px;
    }
    .contact p {
        font-size: 25px;
        text-align: center;
    }
    .contact .mail-button {
        font-size: 16px;
    }
}