*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

.container{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn{
    display: inline-block;
    padding: 10px 40px;
    background-color: #4089c4;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover{
    opacity: 0.7;
}

section{
    padding: 80px 5%;
}

h1{
    font-size: 48px;
    font-weight: bold;
}

h2{
    font-size: 32px;
}

p{
    line-height: 1.8;
}

header{
    width: 100%;
    height: 70px;
    background-color: #fff;
    display:flex;
    position: fixed;
    justify-content: space-between;
    align-items:center;
    padding: 20px 5%;   
}

.theme-list a{
    pointer-events: none;
    cursor: default;
}

.logo a{
    font-size: 25px;
}

.theme-list{
    display: flex;
    align-items: center;
    gap: 30px;
}

.theme-list li{
    margin: 0px;
    list-style: none;
    font-size: 13px;
}

.theme-list li:hover{
    opacity: 0.6;
}

.visual{
    width: 100%;
    height: 830px;
    background-image: url("img/souji.jpg");
    background-size: cover;
    background-position: center;
    color:#fff;
    padding-top: 300px;
    padding-left: 50px;
}

.visual h1{
    font-size: 45px;
}

.about-list{
    display: flex;
    justify-content: space-between;
}

.about-list li{
    list-style: none;
    width: calc(50% - 30px);
    margin: 15px;
    padding: 20px;
}

.main{
    background-image: url("img/haikei.jpg");
    background-size: cover;
}

.service{
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
}

.service li{
    list-style: none;
    width: calc(33.333% - 30px);
    margin: 15px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.service li:hover{
    transform: translateY(-8px);
}

.service img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-list img{
    height: 270px;    
}

.strength {
  background-color: #f9f9f9;
  text-align: center;
}

.strength-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.strength-list li {
  list-style: none;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.strength-list li:hover {
  transform: translateY(-8px);
}

.voice1,
.voice2{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.voice2{
    flex-direction: row-reverse;
}

.item1,
.item2{
    width: 500px;
}

.item1 img,
.item2 img{
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

h2{
    text-align: center;
    margin-bottom: 20px;
    object-fit: cover;
}

p{
    margin-bottom: 15px;
}

.portfolio-info {
  max-width: 800px;
  margin: 80px auto;
  padding: 40px 20px;
  border-top: 1px solid #ddd;
}

.portfolio-info h2 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.portfolio-info p {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 14px;
}

footer{
    padding: 15px;
    text-align: center;
    background-image: url("img/haikei2.jpg");
    background-size: cover;
    margin-top: 100px;
}

.sub-main{
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.toiawase-list{
    list-style: none;
}

@media(max-width: 768px)  {
    .container{
        padding: 0 15px;
    }
    
    header{
        flex-direction: column;
        position: static;
    }
    
    .service li{
        width: 100%;
    }
    .about-list{
        flex-direction: column;
        align-items: center;
    }    

    .about-list li{
        width: 100%;
    }

    .voice1,
    .voice2{
        flex-direction: column;
        align-items: center;
    }

    .item1,
    .item2{
        width: 100%;  
    }

    .strength-list {
        flex-direction: column;
        align-items: center;
    }

    .strength-list li {
        width: 80%;
    }

    section{
        padding: 40px 0;
    }

    h2{
        font-size: 22px;
    }

    p{
        font-size: 14px;
    }
    
    img{
        max-width: 100%;
        height: auto;
    }

}