:root {
    scroll-padding: 100px;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    color: #232F3E;
    font-family: 'M PLUS 1', sans-serif;
}

a {
    text-decoration: none;
}

p {
    font-size: 0.9rem;
}

b {
    font-size: 1.1rem;
}

img {
    max-width: 100%;
}

li {
    list-style: none;
    font-size: 1.1rem;
}

.wrapper {
    width: 90%;
    max-width: 960px;
    margin: 0 auto 100px auto;
    font-size: 0.9rem;
    padding: 0 4%;
}

.btn {
    border: solid 1px #232F3E;
    background-color: #232F3E;
    color: #fff;
    padding: 15px 3%;
    transition: all 0.3s;
}

.btn:hover {
    background: #fff;
    color: #232F3E;
}

/* header */
#header-bg {
    background: white;
    position: fixed;
    top: 0;
    z-index: 998;
    padding: 0 100%;
    height: 60px;
}

#header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 999;
    max-width: 960px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 20px 0px 20px 10px;
    height: 50px;
}

#header h1 {
    font-size: 1.5rem;
    width: 400px;
    line-height: 43px;
    font-weight: 900;
    background-image: url(../img/logo.png);
    background-size: 40px;
    background-repeat: no-repeat;
    background-position: 0 5 px;
    padding-left: 45px;
    a, a:visited {
        color: inherit; /* 元の色を維持 */
        text-decoration: none; /* 必要に応じて装飾を調整 */
      }


}

nav {
    height: 50px;
}

#header ul {
    display: flex;
    padding: 35px 0;
    align-items: center;
}

#header ul li {
    font-size: 1.1rem;
    margin-left: 20px;
}

#header ul li a {
    color: #232F3E;
    transition: all 0.3s;
}

#header ul li a:hover {
    opacity: 0.5;
}


/* footer */
#footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 4%;
    height: 200px;
}

#footer ul {
    width: 100%;
    border-top: 1px solid #c0c0c0;
    padding: 10px 0;
}

#footer ul li {
    font-size: 0.9rem;
    text-align: center;
}

/* for main*/
#main {
    margin-bottom: 80px;
}

#main img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* about */
#about ul {
    margin-bottom: 30px;
}

#about ul li {
    margin-bottom: 3px;
}

#about ul li:first-child {
    margin-bottom: 30px;
}

/* service */
#service dl {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #c0c0c0;
    margin-bottom: 20px;
}

#service dt {
    width: 20%;
    border-bottom: 1px solid #c0c0c0;
    padding: 15px;
}

#service dd {
    width: 80%;
    border-bottom: 1px solid #c0c0c0;
    padding: 15px;
}

#service dt img {
    cursor: pointer;
    transition: all 0.3s;
}

#service dt img:hover {
    transform: scale(1.1, 1.1);
    opacity: 0.7;
}

/* company profile */
#profile dl {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #c0c0c0;
    margin-bottom: 20px;
}

#profile dt {
    width: 20%;
    border-bottom: 1px solid #c0c0c0;
    padding: 15px;
}

#profile dd {
    width: 80%;
    border-bottom: 1px solid #c0c0c0;
    padding: 15px;
}

#profile1 dl {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #c0c0c0;
    margin-bottom: 20px;
}

#profile1 dt {
    width: 20%;
    border-bottom: 1px solid #c0c0c0;
    padding: 15px;
}

#profile1 dd {
    width: 80%;
    border-bottom: 1px solid #c0c0c0;
    padding: 15px;
}

.pc {
    display: block;
}

.sp {
    display: none;
}


/* for sp */
@media screen and (max-width: 768px) {
    .wrapper {
        width: 100%;
    }

    .site-title {
        margin-top: 20px;
        font-size: 1.5rem;
    }

    nav ul li {
        width: calc(100%/ 3);
    }

    /* header*/
    #header {
        max-width: 100%;
        flex-direction: column;
        height: auto;
        line-height: 40px;
        margin-top: 20px;
    }

    #header ul li {
        font-size: 0.9rem;
    }

    /* service */
    #service ul {
        flex-direction: column;
    }

    #service ul li {
        width: 95%;
        text-align: center;
    }

    #header img.icon {
        width: 50%;
    }

    /* company profile */
    #profile dl {
        flex-direction: column;
    }

    #profile dt {
        width: 100%;
        border-bottom: none;
        padding-bottom: 0;
    }

    #profile dd {
        width: 100%;
        padding-top: 0;
    }


    @media screen and (max-width: 480px) {
        .pc {
            display: none;
        }

        .sp {
            display: block;
            img {
                .wrapper {
                    width: 100%;
                }
               
            }
        }
    }
}