@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP');

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #dcdcdc;
    background-image: url(./../images/r1280x720l.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
}

header {
    height: 5dvh;
    width: 80%;
    padding: 2.5dvh 10%;
    display: flex;
    justify-content: space-between;
    line-height: 5vh;
    background-color: #FFFF;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

header h1 {
    width: 20%;
    text-align: center;
    font-size: 4vmin;
}

header .menu {
    width: 40%;

}

header .menu768 {
    display: none;
    text-align: center;
}



header .menu ul {
    width: 100%;
    display: flex;
    justify-content: space-around;
    list-style: none;
}

header .menu ul li {
    font-size: 1.0vw;  /* フォントサイズを少し小さくする */
    flex-shrink: 1;
    text-align: center;
    padding: 0.5%;
    cursor: pointer;
}

header .menu ul li a {
    font-size: 1.0vw;
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

header .sideNav {
    position: fixed;
    top: 0;
    right: -80%;
    z-index: 1;
    background-color: #fff;
    width: 50%;
    height: 100%;
    transition: 0.4s;
}

header .sideNav ul {
    width: 100%;
    list-style: none;
}

header .sideNav ul li {
    width: 90%;
    height: 7vh;
    padding: 0 5%;
    line-height: 7vh;
}

header .sideNav ul li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}


main {
    background-color: #d3d3d3; /* より落ち着いた色 */
    width: 100%;
    min-height: 90vh;
}

.workTop {
    width: 75%; /* 幅を少し狭めて中央寄せ */
    margin: 0 auto;
    padding-top: 15vh;
    display: flex;
    flex-wrap: wrap;
}

.workTop .workTopDetail {
    width:50%;
    height: auto;
    margin-bottom: 2vh; /* 下に余白を追加 */
}

.workTop .workTopDetail p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 93%;
    background-color: #FFF;
    border-radius: 10px;
    padding: 2%;
}

.workTop .topDetailImage {
    width:50%;
    height: auto;
    margin-bottom: 2vh; /* 下に余白を追加 */
}

.workTop .topDetailImage img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px; /* 角を少し丸く */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影を少し強く */
}

.workTop .workTopDetail h1 {
    max-width: 93%;
    font-size: 1.8em; /* タイトルを少し小さく */
    font-family: 'Times New Roman', serif; /* よりクラシックなフォントに */
    color: #444; /* 落ち着いた色に変更 */
}

h2 {
    margin-top: 4vh;
    font-size: 1.4em; /* 見出しを少し小さく */
    color: #666; /* 落ち着いた色に変更 */
}

.workDetailSection {
    width: 75%; /* 幅を調整 */
    margin: 0 auto;
    /* min-height: 80vh; */
}



.workDetail {
    width: 96%;
    margin: 1vh auto;
    padding: 2%;
    background-color: #FFF;
    border-radius: 10px;
}

.workDetail h1 {
    text-align: center;
    color: #444; /* 落ち着いた色に変更 */
}

.workDetail p {
    width: 100%;
    font-size: 1em;
    line-height: 1.8; /* 行間を広げて読みやすく */
    color: #555; /* 落ち着いた色に変更 */
    
}

.detailImages {
    width: 90%;
    margin: 0 auto;
}

.detailText {
    width: 75%;
    margin: 5vh auto;
}

.detailText h1 {
    font-size: 1.8em; /* タイトルを少し小さく */
    font-family: 'Times New Roman', serif; /* よりクラシックなフォントに */
    color: #444; /* 落ち着いた色に変更 */
}

.detailText h2 {
    margin-top: 5vh;
    font-size: 1.4em; /* 見出しを少し小さく */
    color: #666; /* 落ち着いた色に変更 */
}

.detailText ul {
    list-style: none;
}

.detailText .detailImage {
    width: 100%;
    margin: 3vh auto 0;
}

.detailText .detailImage img {
    width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.detailText .comment {
    width: 95%;
    padding: 2.5%;
    margin-top: 2vh;
    background-color: #FFF;
    border-radius: 10px;
}

.detailText li {
    font-size: 1em;
    line-height: 1.8; /* 行間を広げて読みやすく */
    color: #555; /* 落ち着いた色に変更 */
}

.return {
    width: 100%;
    padding: 10vh 0;
}

.return button {
    display: block;
    width: 15%;
    height: 6dvh;
    margin: 0 auto;
    background-color: #444;
    color: #FFFF;
    transition: 0.4s;
}

.return button a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    line-height: 6dvh;
}

.return button:hover {
    border-radius: 10px;
}

@media (max-width: 768px) {

    header .menu768 {
        display: block;
    }

    header .menu  {
        display: none;
    }

    header h1 {
        font-size: 4vw;
    }

    header nav ul li {
        font-size: 3vw;
    }

    header h1 {
        font-size: 4vw;
    }

    header nav ul li {
        font-size: 3vw;
    }

    .workTop {
        display: block;
        width: 90%;
    }

    .workTop .workTopDetail {
        width: 100%;
    }

    .workTop .workTopDetail h1 {
        font-size: 1.4em; /* 小さい画面ではフォントサイズを調整 */
        max-width: 100%;
    }

    h2 {
        font-size: 1.1em;
    }

    .workTop .workTopDetail p  {
        max-width: 96%;
    }

    .workTop .topDetailImage {
        width: 100%;
        margin: 0 auto;
    }

    .workDetailSection {
        width: 90%;
        margin: 0 auto;
    }

    .workDetail {
        width: 95%;
        margin: 0 auto ;
    }

    .detailText {
        width: 90%;
    }

    .return button  {
        width: 35dvw;
    }
}
