@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
    padding: 0;
}

.header {
    width: 100%;
    height: 100vh;
    background-image: url("img/bg.jpg");
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: 10;
}

nav {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    z-index: 20;
    position: relative;
}

.logo {
    width: 200px;
    margin: 0 auto 20px auto;
    cursor: pointer;
    font-size: 3rem;
    font-weight: 450;
}

nav ul {
    background: #000;
    width: 100%;
    margin-top: 10px;
}

nav ul li {
    display: inline-block;
    margin: 20px 30px;
}

nav ul li a {
    color: white;
}

.text {
    padding: 20px 10%;
}

nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 3%;
    max-height: 15%;
    transition: all 1s;
    z-index: 30;
}

nav.sticky .logo {
    margin: 20px 0;
}

nav.sticky ul {
    background: transparent;
    font-size: 1.3rem;
}

.wrapper {
    max-width: 960px;
    margin: 0 auto 130px auto;
    font-size: 1rem;
    padding: 0 4%;
}

.sec-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 65px;
}

.anchor {
    padding-top: 150px;
}

#about {
    margin-bottom: 50px;
}

#news dl {
    display: flex;
    flex-wrap: wrap;
    border-top: solid 1px #c8c8c8;
    margin-bottom: -170px;
}

#news dt {
    width: 20%;
    border-bottom: solid 1px #c8c8c8;
    padding: 15px;
}

#news dd {
    width: 80%;
    border-bottom: solid 1px #c8c8c8;
    padding: 15px;
}

#works {
    text-align: center;
    margin-top: -70px;
    margin-bottom: -50px;
}

.image-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.image-item {
    position: relative;
    flex: 1 1 45%;
    margin: 10px;
}

.image-item img {
    width: 100%;
    height: auto;
    border: 2px solid black;
    transition: transform 1s ease;
}

.image-item img:hover {
    transform: scale(1.1);
}

#contact dl {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#contact dt {
    width: 15%;
}

#contact dd {
    width: 85%;
    margin-bottom: 10px;
}

#contact dd input,
#contact dd textarea {
    width: 100%;
    border: solid 1px #c8c8c8;
    padding: 10px;
}

#contact dd textarea {
    height: 10rem;
}

#contact .button {
    text-align: center;
}

#contact .button input {
    width: 200px;
    background-color: #24292e;
    color: #fff;
    padding: 15px 0;
    border: solid 1px #24292e;
}

#contact .button input:hover {
    background: #fff;
    color: #24292e;
}

footer {
    position: relative;
    width: 100%;
    height: 50px;
    background-color: #101010;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p {
    font-size: 15px;
    color: white;
    margin-bottom: 10px;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
    .wrapper {
        margin-bottom: 70px;
    }
    .sec-title {
        margin-bottom: 40px;
    }
  
    nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }
    nav ul li {
        margin: 10px 15px;
    }
    nav ul li a {
        padding: 5px;
    }
  
    nav.sticky {
        flex-direction: row;
        padding: 10px 0;
    }
  
    nav.sticky .logo {
        font-size: 1.5rem;
        margin-right: -50px;
    }
  
    nav.sticky ul {
        font-size: 0.65rem;
    }
  
    nav.sticky ul li {
        margin: 5px 3px;
    }

    .logo {
        text-align: center;
        margin: 0 auto;
    }
  
    #news dl {
        flex-direction: column;
    }
    #news dt, #news dd {
        width: 100%;
        padding: 10px;
    }

    .image-gallery {
        flex-direction: column;
    }
    .image-item {
        margin: 10px 0;
    }

    #contact dl {
        flex-direction: column;
    }
    #contact dt, #contact dd {
        width: 100%;
    }
}
