@charset "UTF8";
* {
    box-sizing: border-box;
}

html{
    font-size: 100%;
    scroll-behavior: smooth;
}
body{
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 300;
    color: #505050;
    line-height: 1.7;
    overflow-x: hidden;
}
a{
    text-decoration: none;
    color: #505050;
}
img{
    width: 100%;
}
.container{
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
}
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    height: 50px;   
}
.logo h1{
    font-weight: 300;
    font-size: 20px;
}
.list ul{
    display: flex;
    list-style: none;
    gap: 42px;
}
.fv{
    background-image: url(../images/FV.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 30%;
    height: 500px;
    font-size: 40px;
    text-align: center;
    padding-top: 50px;
}
.sp-only{
    display: none;
}
.pc-only{
    display: inline;
}
.menu{
    padding-top: 54px; 
    padding-bottom: 39px;
}
.heading{
    position: relative;
    display: inline-block;
    padding-bottom: 16.5px;
    margin-bottom: 30.5px;
    font-size: 30px;
    font-weight: 300;
}
.heading::after {
    content: "";             /* 中身は空っぽでOK */
    position: absolute;      /* 自由に配置できるようにする */
    bottom: 0;               /* 一番下に配置 */
    left: 50%;               /* 左から50%の位置へ移動 */
    transform: translateX(-50%); /* 自分の幅の半分(25px)だけ左に戻して中央へ */
    
    width: 50px;             /* ★ここで線の長さを50pxに指定！ */
    height: 2px;             /* 線の太さ */
    background-color: #505050;
}
.menu-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 0 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu-list img{
    height: auto;
    object-fit: cover;
    width: 100%;
}

.item{
    
    display: contents;

}
.item:nth-child(1) img { grid-column: 1; grid-row: 1; }
.item:nth-child(1) h3  { grid-column: 1; grid-row: 2; }
.item:nth-child(1) p   { grid-column: 1; grid-row: 3; }

/* --- 2つ目のカードの配置 --- */
.item:nth-child(2) img { grid-column: 2; grid-row: 1; }
.item:nth-child(2) h3  { grid-column: 2; grid-row: 2; }
.item:nth-child(2) p   { grid-column: 2; grid-row: 3; }

/* --- 3つ目のカードの配置 --- */
.item:nth-child(3) img { grid-column: 3; grid-row: 1; }
.item:nth-child(3) h3  { grid-column: 3; grid-row: 2; }
.item:nth-child(3) p   { grid-column: 3; grid-row: 3; }
.item-name{
    line-height: 1.2;
    font-weight: 400;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 9px;
}
.item-description{
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.about{
    background-color: rgba(0, 0, 0, 0.051);
    height: auto;
    padding-top: 44px;
    padding-bottom: 50px;
}
.about-content{
    display: flex;
    gap: 39px;
}
.about-image{
    width: 450px;
    height: 300px;
    flex-shrink: 0;
}
.about-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-message{
    text-align: left;
}
.about-lead{
    font-weight: 400;
    font-size: 22px;
}
.about-description{
    margin-top: 20px;
    margin-bottom: 22px;
    font-size: 18px;
}
.btn{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 55px;
    font-size: 25px;
    color: rgba(255, 255, 255, 1);
    background-color: rgba(80, 80, 80, 1);
}
footer{
    font-size: 20px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(80, 80, 80, 1);
    color: rgba(255, 255, 255, 1);
}
.error{
    display: inline-block;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
@media(max-width:1020px){
    .about-image{
        width: 315px;
        height: 250px;
    }
}

@media(max-width:480px){
    .list{
        display: none;
    }
    .container{
        width: 100%;
        padding: 0 30px;
    }
    .fv{
        font-size: 35px;
        height: 550px;
         padding-top: 44px;

    }
    .fv p{
        max-width: 315px;
        line-height: normal;
        margin: 0 auto
    }
    .sp-only{
        display: inline;
    }
    .pc-only{
        display: none;
    }
    .menu{
        padding-top: 50px;
        padding-bottom: 44px;
    }
    .menu-list{
        display: block;
    }
    .item{
        width: 100%;
    }
    .item-name{
        margin-top: 20px;
    }
    .item-description{
        margin-bottom: 24px;
    }
    .about{
        height: auto;
    }
    .about-content{
        flex-direction: column-reverse;
        align-items: center;
        gap: 0;
    }
    .btn{
        width: 100%;
    }
    .fv p{
        text-align: center;       
    }
    .footer{
        font-size: 17px;
    }
}
