@charset "UTF-8";

html{
    font-size: 100%;
}
body{
    font-size: 0.78125rem;
    color: #000000;
    background-color: #F7F0DF;
    font-family: 'Zen Maru Gothic', serif;
}
img{
    max-width: 100%;
    vertical-align: top;
}
li{
    list-style: none;
}
a{
    display: block;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
}
.wrapper{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2%;
}

/*　メインビジュアル　*/
.mainvisual{
    position: relative;
}
.mainvisual img{
    width: 100vw;
    height: 450px;
    object-fit: cover;
    object-position: 50% 35%;
}
h1{
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
}

/*　メイン　*/
h2{
    margin: 40px auto 20px auto;
    font-size: 1.75rem;
    border-bottom: solid 2px #FF9D00;
}

/* リンク */
.flex{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.index,.shisetu{
    width: 45%;
    position: relative;
    overflow: hidden; /* ホバー時拡大した時にはみ出た分を消す */
}
.index img, .shisetu img{
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.index p, .shisetu p{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    font-size: 1.5rem;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
}
.x_banner {
    padding: 0 20px;
}
.x_banner:hover {
    opacity:0.7;
}
.x_banner_ {
    font-size: 12px;
    letter-spacing: -0.5;
    padding-left: 8px;
    margin-bottom: 25px;
    margin-top: -10px;
}
.x_banner_:hover {
    text-decoration: underline;
}
/* 画像の上に黒い半透明を敷く */
.img::after{
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: black;
    opacity: 0.5;
}

/* リンクホバー時の設定 */
.index:hover img{
    transform: scale(1.2,1.2);
    transition: all 0.5s ease;
}
.index:hover .img::after{
    opacity: 0.2;
}
.shisetu:hover img{
    transform: scale(1.2,1.2);
    transition: all 0.5s ease;
}
.shisetu:hover .img::after{
    opacity: 0.3;
}

/* フッター */
footer{
    background-color: #5A4A3F;
    padding: 30px 0;
    margin-top: 50px;
    color: white;
    text-align: center;
}
footer a{
    color: white;
}
.footer-title{
    font-size: 1.125rem;
    font-weight: 500;
}
.name{
    font-size: 1.5625rem;
}

/* レスポンシブ  */
@media screen and (max-width: 767px){

    .wrapper{
        padding: 0 10%;
    }

    /*　メインビジュアル　*/
    .mainvisual{
        position: relative;
    }
    .mainvisual img{
        height: 150px;
    }
    h1{
        font-size: 1rem;
        top: 10px;
        left: 10px;
    }

    /*　メイン　*/
    h2{
        margin: 20px auto 20px auto;
        font-size: 1.25rem;
    }

    /* リンク */
    .flex{
        flex-direction: column;
    }
    .index,.shisetu{
        width: 100%;
        margin-bottom: 20px;
    }
    .index img, .shisetu img{
        height: 150px;
        object-fit: cover;
    }
    .index p, .shisetu p{
        font-size: 1.25rem;
        white-space: nowrap /*文字を折り返さないように*/
    }

    /* フッター */
    footer{
        background-color: #5A4A3F;
        padding: 15px 0;
        margin-top: 10px;
    }
    .footer-title{
        font-size: 0.75rem;
        font-weight: 500;
    }
    .name{
        font-size: 1rem;
    }
    
    

}
