body {
    font-family: serif;
}

.back {
    background-color: #ffffff;
    margin: 1%;
    padding: 2%;
}

/* メニュー*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    background-color: #008000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    color: #ffffff;
    font-size: 22px;
    margin-left: 20px;
    flex: 1;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 38%;
    transition: all 0.5s ease-in-out;
}

.nav-links li {
    list-style: none;
    margin: auto;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px;
    transition: all 0.4s ease-in-out;
}

.nav-active {
    transform: translateX(0%) !important;
}

@media screen and (max-width: 1024px) {
    .nav-links {
        width: 55%;
    }
}

@media screen and (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: #008000;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }
}

@keyframes navLinksFade {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links li:nth-child(4) a{
    color: #66FF66;
}

.nav-links li :hover {
    color: #66FF66;
}
/* ここまでメニュー */

h1 {
    margin-top: 90px;
    text-align: center;
}

h2 {
    border: #008000 solid;
    border-width: 0 0 3px 5px;
    padding-left: 7px;
    margin-left: 10px;
    margin-top: 20px;
}

li {
    list-style: none;
    margin-top: 30px;
}

.contens li img {
    border: #000 1px solid;
    max-width: 30rem; 
}

.machine-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

.machine-list li {
    width: 45%;
    box-sizing: border-box;
    text-align: center;
}

.machine-list img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto 0;
}

@media (max-width: 768px) {
    .machine-list li {
    width: 100%;
    }
}

.contents {
    margin: 10px auto auto 20px;
    padding: auto;
}

/* スクロールボタン */
.scroll-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    /* 初期状態は非表示 */
    background-color: #006400;
    /* ボタンの背景色 */
    color: white;
    /* ボタンの文字色 */
    border: none;
    /* ボーダーなし */
    padding: 10px 15px;
    /* パディング */
    border-radius: 5px;
    /* 角を丸める */
    cursor: pointer;
    /* カーソルをポインタに */
    font-size: 20px;
    /* フォントサイズ */
    z-index: 1000;
    /* 他の要素の上に表示 */
}
/*ここまでスクロールボタン */