@charset "utf-8";

body {
    font-family: "M PLUS 1p", sans-serif;
}

html {
    font-size: 100%;
}

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

ul li {
    list-style: none;
}

img {
    width: 100%;
    vertical-align: bottom;
    object-fit: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 3%;
}

h2 {
    text-align: center;
    font-size: 58px;
    color: white;
    filter: drop-shadow(2px 2px 4px #121212);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.section-title {
    font-size: 36px;
    text-align: center;
    opacity: 0;
    margin-bottom: 100px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 100px;
    height: 5px;
    display: block;
    background-color: #006E40;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    margin: 0 auto;
}

.balloon {
    animation: balloon 0.5s ease-out 0s 1 forwards;
}

@keyframes balloon {
    0% {
        transform: translate(0) scale(0.1);
        opacity: 0;
    }

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

/* header  */
header .container {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 img {
    width: 150px;
}

h1 {
    line-height: 1px;
    z-index: 30;
}

header ul {
    display: flex;
}

header ul li {
    padding-right: 20px;
}

header ul li a {
    font-weight: 500;
}

header ul li a:hover {
    color: #6EB92B;
}

.hamburger {
    display: none;
}

/* main */
/* mainvisual */
.mainvisual {
    width: 100%;
    height: calc(100vh - 70px);
    background-image: url(../img/mainvisual.jpg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.mainvisual p {
    color: #fff;
    text-shadow: 1px 1px 10px #121212;
    font-size: 65px;
    font-weight: bold;
    line-height: 106px;
    position: absolute;
    top: 400px;
    left: 40px;
}


/* service */
#service {
    text-align: center;
    padding-bottom: 100px;
    background-color: #f8fdf1;
}

#service .background {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    background-image: url(../img/service.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.item-hover {
    margin-block: 90px;
}

.item-hover ul {
    display: flex;
    justify-content: space-between;
}

.item-hover li {
    text-align: center;
    width: 20%;
    margin: 0 auto;
}

.item-hover .text {
    color: #121212;
    display: inline-block;
    border: 1px solid #006E40;
    border-radius: 50%;
    width: 100%;
    line-height: 15px;
    padding: calc(50% - 11px) 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.text {
    font-size: 26px;
}

.fadein {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
}

.btn {
    width: 210px;
    height: 50px;
    font-size: 30px;
    line-height: 50px;
    display: inline-block;
    color: #000;
    transition: all 0.3s ease;
    position: relative;
}

.btn span {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.btn::before,
.btn::after {
    position: absolute;
    content: "";
    right: 0;
    bottom: 0;
    background: #006E40;
    transition: all 0.3s ease;
}

.btn span::before,
.btn span::after {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    background: #006E40;
    transition: all 0.3s ease;
}

.btn::before,
.btn span::before {
    width: 2px;
    height: 50%;
}

.btn::after,
.btn span::after {
    width: 20%;
    height: 2px;
}

.btn:hover::before,
.btn span:hover::before {
    height: 100%;
}

.btn:hover::after,
.btn span:hover::after {
    width: 100%;
}

/* contact */
#contact .background {
    width: 100%;
    height: 300px;
    margin-bottom: 100px;
    background-image: url(../img/contact.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.contact {
    margin-bottom: 100px;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px #ccc solid;
}

textarea {
    width: 100%;
    height: 140px;
    padding: 10px;
    border: 1px #ccc solid;
}

.contact-submit {
    width: 200px;
    padding-block: 15px;
    color: white;
    background-color: #6EB92B;
    display: block;
    margin: 30px auto 0px;
    transition: all 0.2s;
}

.contact-submit:hover {
    color: black;
    background-color: white;
    border: 1px black solid;
}


.contact dl {
    display: flex;
    flex-wrap: wrap;
}

.contact dt {
    width: 15%;
}

.contact dd {
    width: 85%;
}

iframe {
    width: 100%;
}

.tell {
    text-align: center;
    background-color: #6EB92B;
    padding-block: 40px;
    margin-bottom: 50px;
}

.tell a {
    color: #fff;
    font-size: 22px;
}

.tell p {
    font-size: 42px;
    padding-block: 10px;
    font-weight: bold;
}

/* footer */
footer {
    background-color: #006E40;
    padding-block: 35px;
}

footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

footer ul li {
    padding-left: 30px;
}

footer ul li a {
    color: #fff;
}


/* service.html */
/* security */
.security {
    padding-bottom: 120px;
    background-color: #f8fdf1;
}

.security .background {
    width: 100%;
    height: 300px;
    margin-bottom: 100px;
    background-image: url(../img/security.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* electric */
.electric {
    padding-bottom: 120px;
    background-color: #f8fdf1;
}

.electric .background {
    width: 100%;
    height: 300px;
    margin-bottom: 100px;
    background-image: url(../img/electric.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* network */
.network {
    padding-bottom: 120px;
    background-color: #f8fdf1;
}

.network .background {
    width: 100%;
    height: 300px;
    margin-bottom: 100px;
    background-image: url(../img/network.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.phone-text {
    padding-bottom: 100px;
}

/* flow */
.flow {
    margin-bottom: 100px;
}

.flow .background {
    width: 100%;
    height: 300px;
    margin-bottom: 40px;
    background-image: url(../img/flow.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.flow {
    background-color: #ffffff;
}

.step {
    display: flex;
    justify-content: space-between;
}

.figure {
    position: relative;
}

.figure::before {
    position: absolute;
    content: "";
    width: 50px;
    height: 380px;
    background-color: #6EB92B;
    left: 75px;
    top: 0;
}

.flow li {
    width: 200px;
    height: 80px;
    line-height: 80px;
    background-color: #414141;
    margin-bottom: 60px;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.flow li::before {
    content: "";
    position: absolute;
    border-top: 30px solid #414141;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    top: 80px;
    right: 0;
    left: 0;
    margin: 0 auto;
}

.descriptio {
    margin-left: 80px;
    position: relative;
}

.descriptio dt {
    border-bottom: 1px solid #121212;
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 19px;
    position: relative;
}

.descriptio dd {
    margin-bottom: 50px;
}

.descriptio dd:last-child {
    margin-bottom: 0px;
}

.descriptio span {
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: #414141;
    text-align: center;
    border-radius: 50%;
    color: #ffffff;
    position: absolute;
    left: -45px;
    top: 0;
}

/* company.html */
.company .background {
    width: 100%;
    height: 300px;
    margin-bottom: 100px;
    background-image: url(../img/company.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.company dl {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.company dt {
    width: 30%;
    padding-block: 20px;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
}

.company dd {
    width: 70%;
    padding-block: 20px;
    border-bottom: 1px solid #ccc;
}

.company dd ul li {
    list-style: inside;
}

dd ol li {
    list-style: inside;
    list-style-type: decimal;
}

iframe {
    margin-bottom: 120px;
}

/* privacy.html */
.privacy {
    background-color: #f8fdf1;
}

.privacy .background {
    width: 100%;
    height: 300px;
    margin-bottom: 100px;
    background-image: url(../img/privacypolicy.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.privacypolicy {
    padding-bottom: 80px;
}

.privacypolicy h3 {
    padding-top: 40px;
}

.privacypolicy ul li{
    list-style: inside;
}



@media (max-width: 930px) {
    h2 {
        font-size: 30px;
    }

    /* index.html */
    nav {
        width: 300px;
        height: 100vh;
        background-color: #f8fdf1;
        padding: 25px;
        position: fixed;
        top: 0;
        left: -300px;
        opacity: 0;
        transition: 0.5s;
        z-index: 20;
    }

    .open nav {
        left: 0;
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
        margin-top: 80px;
    }

    .hamburger {
        width: 30px;
        height: 30px;
        cursor: pointer;
        position: absolute;
        top: 22px;
        right: 18px;
        transition: 0.5s;
        display: block;
    }

    .hamburger span {
        width: 30px;
        height: 2px;
        background-color: #333;
        border-radius: 4px;
        display: block;
        position: absolute;
        left: 0;
        transition: 0.5s;
    }

    .hamburger span:nth-child(1) {
        top: 4px;
    }

    .hamburger span:nth-child(2) {
        top: 14px;
    }

    .hamburger span:nth-child(3) {
        bottom: 4px;
    }

    .open .hamburger span {
        background-color: #333;
    }

    .open .hamburger span:nth-child(1) {
        transform: translateY(10px) rotate(-315deg);
    }

    .open .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .open .hamburger span:nth-child(3) {
        transform: translateY(-10px) rotate(315deg);
    }

    header ul li {
        padding-bottom: 20px;
    }

    .mainvisual {
        width: 100%;
        height: 60vh;
    }

    .mainvisual p {
        font-size: 32px;
        line-height: 56px;
        top: 325px;
        left: 10px;
    }

    #service .background {
        height: 100px;
    }

    .item-hover ul {
        flex-direction: column;
    }

    .item-hover li {
        width: 40%;
        padding-bottom: 50px;
    }

    #contact .background {
        height: 100px;
    }

    .tell a {
        font-size: 17px;
    }

    .contact dl {
        flex-direction: column;
    }

    .contact dt {
        width: 100%;
    }

    .contact dd {
        width: 100%;
    }

    /* service.html */
    .security .background {
        height: 150px;
    }

    .section-title {
        font-size: 28px;
    }

    .electric .background {
        height: 130px;
    }

    .network .background {
        height: 130px;
    }

    .flow .background {
        height: 130px;
    }

    .step {
        flex-direction: column;
        align-items: center;
    }

    .descriptio {
        margin-left: 0px;
        padding-left: 45px;
    }

    /* company.html */
    .company .background {
        height: 100px;
    }

    .company dl {
        flex-direction: column;
    }

    .company dt {
        width: 100%;
        padding-block: 10px;
        border-bottom: 0px;
    }

    .company dd {
        width: 100%;
        padding-block: 10px;
        border-bottom: 1px solid #ccc;
    }

    /* company.html */
    .map iframe {
        aspect-ratio: 16 / 9;
        width: 100%;
        height: auto;
    }

    /* privacy.html */
    .privacy .background {
        height: 100px;
    }

}