* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #333;
}

header {
    width: 100%;
    height: 80px;
    border-bottom: 1px solid #ddd;
    background-color: #c3c3c3;
}

.header-inner {
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;
    padding: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    display: flex;
    align-items: center;
}

h1 img {
    max-width: 150px;
}

@media (max-width: 768px) {
    .header-inner {
        padding: 5px 20px; 
    }

    h1 img {
        max-width: 65px;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
}

section {
    max-width: 1366px;
    margin: 0 auto;
}

.main-view {
    width: 100%;
    max-width: 100vw;
    height: calc(100vh - 80px);
    margin-bottom: 20px;
}

.main-view img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}



.section-inner {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 20px;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

#about p {
    text-align: center;
}
@media (max-width: 768px) {
    #about p {
        text-align: start;
    }
}



.service-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.service-item .service-item-img,.service-item-text{
    width: 50%;
}

.service-item-img img{
    width: 100%;
    height: 50%;
}

.service-item-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}


.service-item.reverse {
    flex-direction: row-reverse;
}
.works-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.works-gallery img {
    width: 100%;
    height: auto;
}

.from-container {
    max-width: 600px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.from-item {
    display: flex;
    margin:5px 0;
}
.from-item-title {
    width: 20%;
    font-weight: bold;
}
.from-item-input {
    width: 80%;
}
@media (max-width: 768px) {
    .from-item-title {
        width: 100%;
        margin-bottom: 5px;
    }
    .from-item-input {
        width: 100%;
    }
}


input[type="text"],
textarea,
select {
    width:100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
input[type="checkbox"] {
    margin-right: 5px;
}

textarea {
    height: 200px;
}

.input-checkbox div,.input-radio div{
    display: flex;
    margin-bottom: 5px;
}

button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {

    .service-item {
        flex-direction: column;
        width: 100%;
    }

    .service-item .service-item-img,.service-item-text{
        width: 100%;
    }

    .service-item.reverse {
        flex-direction: column;
        width: 100%;
    }

    .works-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .from-item { 
        flex-direction: column;
        justify-content: center;
    }
}


.pc {
    display: block;
}
.sp {
    display: none;
}


@media (max-width: 768px) {
    .sp {
        display: block;
    }
    .pc {
        display: none;
    }
}