@charset "utf-8";

body {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
}

h2,
h3 {
  font-family: serif;
  font-weight: 400;
  line-height: 1.6;
}

h2 {
    color: #003366;
    font-size: 32px;
  /* color: #b8860b;
  color: #007bff;
  color: #f5f7fa; */
}

h3 {
  font-size: 18px;
}


span {
  display: block;
}

span.rubi {
  color: #b8860b;
  font-size: 14px;
  line-height: 1.0;
}

section {
  margin: 150px auto 0 auto;
}

header {
  max-width: 1400px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background-color: #ffffff;
}

header h1 {
  width: 200px;
}

header h1 a {
  color: #003366;
}

h1 img {
  width: 70px;
  height: 50px;
  background-color: #003366;
}

header nav {
  width: calc(100% - 200px);
}


header nav ul {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: space-evenly;
}

header nav ul li {
  width: calc(100% / 4);
}

header nav ul li a {
  display: block;
  text-align: center;
  color: #003366;
  transition-duration: 0.3s;
}

header nav ul li a:hover {
  border-bottom: 3px solid #b8860b;
}

.first-view {
  width: 100%;
  height: 80vh;
  background-image: url(../images/herosection-s.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.description {
  max-width: 1100px;
}

.description h2 {
  text-align: center;
}

.description ul {
  max-width: 1100px;
  padding-top: 80px;
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
}

.description ul li {
  width: calc(100% / 3);
  padding: 10px;
  border: 0.5px solid #003366;
}

.description ul li h3 {
  text-align: center;

}


.description ul li h3 img {
  padding: 50px;
  width: 50px;
  height: 50px;
  background-color: #003366;
}

.about {
  max-width: 1100px;
  display: flex;
  justify-content: space-between;

}

.about .txt {
  width: 50%;
}

.about .txt p {
  padding-top: 20px;

}

.about .image {
  width: 50%;
  max-width: 600px;
  position: relative;
}

.about .image img:first-child{
  width: 60%;
  position: absolute;
  left: 20px;
  z-index: 30;
}

.about .image img:nth-child(2){
  width: 60%;
  position: absolute;
  top: 150px;
  z-index: 20;
}

.about .image img:nth-child(3){
  position: absolute;
  width: 80%;
  top: 50px;
  left: 150px;
  z-index: 10;
}

.work {
  padding-top: 200px;
  max-width: 1100px;
}

.work h2 {
  text-align: center;
}

.work ul {
  padding-top: 50px;
  display: flex;
  text-align: center;
  justify-content: space-between;
}

.contact {
  max-width: 1100px;
  text-align: center;
}

.contact ul {
  padding: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
}
.contact ul li {
  width: 300px;
  border: 0.5px solid #ddd;
  padding: 30px;
  border-radius: 10px;
  background-color: #003366;
}

.contact ul li a {
  display: block;
  color: #f5f7fa;
}

footer {
  background-color: #003366;
  padding: 100px 20px 10px 20px;
}

footer p {
  text-align: center;
}

footer nav ul {
  margin: 0 auto;
  text-align: center;
  padding: 10px;
  max-width: 800px;
}

footer nav ul li a {
  padding: 10px;
  display: block;
  color: #f5f7fa;
  border-bottom: 0.5px solid #f5f7fa;
  transition-duration: 0.3s;
}

footer nav ul li a:hover {
  background-color: #f5f7fa;
  color: #003366;
  border: #003366;
}

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

  div.first-view {
    background-image: url(../images/herosection-m.jpg);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  section.description{
    width: 90%;
  }
  
  section.description ul {
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }

  section.description ul li {
    width: 80%;
  }

  section.about {
    width: 90%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  section.about .txt {
    width: 100%;
  }
  section.about .image {
    width: 80%;
  }

  section.work {
    margin-top: 280px;
    width: 90%;
  }
  section.work ul {
    flex-direction: column;
    gap: 20px;
  }

  section.contact {
    width: 90%;
  }
  
  section.contact ul {
    flex-direction: column;
    align-items: center;
  }
}