/*top画像 親div*/
.top {
    /*絶対配置*/
    position: relative;

}

.logo {
    /*相対配置*/
    position: absolute;

    width: 6%;
    max-width: 40px;
    height: auto;

    /*縦と横のずれ補正*/
    transform: translate(-50%, -50%);

    /*logoの位置*/
    top: 12%;
    left: 50%;

    /*ロゴうごき*/
    display: block;
    transition: 0.2s;
}

.logo img:hover {
    /*ロゴうごき　サイズ*/
    transform: scale(1.1, 1.1);
}

.bisouan{
    /*写真の上の文字*/
    position: absolute;
    top: 15%;
    left: 50%;

    /*縦と横のずれ補正*/
    transform: translate(-50%, -50%);
    
    width: 200px;
    height: 25%;
}

.bisouan h1 {
    /*写真の上の文字*/
    position: absolute;
    top: 50%;
    left: 50%;

    /*縦と横のずれ補正*/
    transform: translate(-50%, -50%);

    /*フォント*/
    color: #4d4d4d;
    font-size: 50px;

    font-family: "Ryumin ExtraBold KL";
    /*四角のテキストをfont可変*/
    font-size: clamp(10px,3.2vw,30px);
    
    font-weight: bold;
}

.bisouan h2 {
    /*写真の上の文字*/
    position: absolute;
    top: 70%;
    left: 50%;

    /*縦と横のずれ補正*/
    transform: translate(-50%, -50%);

    /*フォント*/
    color: #4d4d4d;
    /*四角のテキストをfont可変*/
    font-size: clamp(8px,2.2vw,15px);

    font-family: "Ryumin ExtraBold KL";
    font-weight: bold;
}

.top-p {
    /*写真の上の文字*/
    position: absolute;
    top: 50%;
    left: 50%;

    /*縦と横のずれ補正*/
    transform: translate(-50%, -50%);

    /*枠*/
    width: 24%;
    max-width: 400px;
    height: 35%;
    max-height: 400px;
    
    border-style: solid;
    border-width: 0.35vw;
    border-color: #4d4d4d;
    
}

.top p {
    
    /*四角の中のテキスト全体*/
    width: 100%;
    height: auto;

    /*写真の上の文字*/
    position: absolute;
    top: 38%;
    left: 50%;

    /*縦と横のずれ補正*/
    transform: translate(-50%, -50%);


    /*フォント*/
    color: #4d4d4d;

    font-family: "Ryumin ExtraBold KL";
    
    /*四角のテキストをfont可変*/
    font-size: clamp(17px,3vw,45px);
    
    font-weight: bold;
}

/*top 画像*/
.top img {
    /*TOP見出しの画像*/
    width: 100%;
    
    max-height: 948px;
    /*画像の比率固定*/
    object-fit: cover;
}


/*ナビ*/
.top nav {
    /*ナビの範囲*/
    width: 100%;
    height: auto;
    
    background-color: rgba( 183, 174, 167, 0.7);
    
    /*写真の上の文字*/
    position: absolute;
    top: 93%;
    left: 50%;

    /*縦と横のずれ補正*/
    transform: translate(-50%, -50%);
    
    padding-bottom: 5px;
    
}

.top ul {
    /*ヘッダーのリンク達の*/
    display: flex;
    width: 80%;
    margin: auto;
    
    
}

.top li {
    list-style-type: none;
    /*ヘッダーのリンク達*/
    width: 100%;
    text-align: center;
}

.top li a {
    text-decoration: none;
    
    /*リンク押せるようになったー*/
    color: #244d44;
    
    /*ナビをfont可変*/
    font-size: clamp(20px,2vw,2.5vw);
    
}


/*ナビのアニメーション*/
.top li a:hover {
    color: #7ed9c4;
    transform: 0.3s;
    
}




/*mainの下部分装飾*/
main {
    width: 100%;
    height: auto;
    
    background-color: #f9f9f9;
    
    padding-top: 70px;
    text-align: center;
    
}

/*固定幅でセンタリングのルール*/
.main_box {
    width: 100%;
    height: auto;
    
    background-color: #f9f9f9;
    
}


/*メインコンテンツルール*/

.main_box div {
    
}

.care {
    /*テキストエリアのサイド余白*/
    margin: 0 auto 0 auto;

    /*文章の横幅*/
    width: 50%;

    /*最小幅＆最大幅*/
    min-width: 170px;
    max-width: 550px;
}

.care h4 {
    /*文章の余白*/
    margin: 15px auto 15px auto;
    text-align: center;

    /*font style*/
    color: #303841;
    font-family: 'Sawarabi Mincho', sans-serif;
    font-weight: 400;
    
    padding-bottom: 30px;
    
    

    /*　↓fontサイズの最大値を設定したい↓　*/

}

.works div img {
    /*メインの画像全般の設定*/
    width: 50%;
    height: auto;
    
    /*画像角丸*/
    border-radius: 5px;
    

    /*最小幅＆最大幅*/
    min-width: 300px;
    max-width: 500px;
    
    
}

.main_box div:last-child {
    padding-bottom: 5px;
}
