@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
html {
  font-size: 100%;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}
li {
  list-style: none;
}
body {
  font-family: 'Hiragino-Sans', sans-serif;
  font-size: 1.0rem;
  font-weight: 500;
  margin: 0 auto;
  color: #222;
}
.header, main section {
  height: 100vh;
}
.headerlogo {
  width: 50%;
  height: 80vh;
  display: flex;
  align-items: center;
}
.header img {
  width: 100%;
}
.headermain {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 120px;
}
.headertext {
  padding-right: 80px;
}
h1 {
  color: rgb(15, 57, 196);
}
.headertext h1, .headertext p {
  line-height: 2.5;
}
.header ul {
  display: flex;
  gap: 40px;
  justify-content: space-around;
  background-color: #222;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10000;
}
.header li {
  padding: 10px;
  color: #fff;
  border: 2px solid #222;
}
section {
  padding-top: 150px;
}
#section1, #section3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  gap: 10px;
}
#section2 {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  gap: 10px;
}
h2 {
  width: 300px;
  text-align: center;
  margin: 0 auto;
  padding-bottom: 10px;
  margin-bottom: 50px;
  border-bottom: 2px solid rgb(15, 57, 196);
}
.image {
  width: 40%;
  height: 400px;
}
.maintext {
  width: 50%;
}
.maintext h2, .maintext h3, .maintext p {
  line-height: 2;
}
#maintext_right ul {
  padding-right: 80px;
}
#maintext_left ul {
  padding-left: 80px;
}
.maintext li p {
  padding: 5px;
}
#section1 img {
  width: 100%;
  height: 400px;
  object-fit: contain;
}
#section2 img, #section3 img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.back {
  width: 100vw;
  font-size: 0.8rem;
  padding: 10px 20px;
  text-align: right;
  position: fixed;
  bottom: 30px;
  z-index: 5000;
}
.back a {
  padding: 10px;
}
.footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
  background-color: #222;
  color: #fff;
}
.header li:hover {
  background-color: #fff;
  border: 2px solid #222;
  color: #222;
}
.back a:hover {
  background-color: #222;
  color: #fff;
}

@media (max-width:500px) {
  body {
    width: 100vw;
    font-size: 0.8rem;
    gap: 0;
  }
  .headermain, #section1, #section2, #section3 {
    flex-direction: column;
  }
  .headerlogo {
    width: 100%;
    height: 60vh;
  }
  .headermain {
    margin-top: 0;
  }
  .headertext {
    padding-right: 0;
    padding: 2%;
    text-align: center;
  }
.header ul {
    gap: 0;
    justify-content: space-evenly;
  }
  section {
    padding-top: 50px;
  }
  h2 {
    margin-bottom: 10px
  }
  .maintext {
    padding: 3%;
  }
  .maintext li {
    margin-bottom: 5px;
  }
  .maintext h2, .maintext h3, .maintext p {
    line-height: 1.8;
  }
  .image {
    width: 100%;
    height: 240px;
    margin-top: 10px;
  }
  #section1 img, #section2 img, #section3 img {
    width: 100%;
    height: 240px;
    object-fit: cover;
  }
  .maintext {
    width: 100%;
    display: block;
    margin: 20 auto;
  }
  #maintext_right ul {
    padding-right: 0px;
  }
  #maintext_left ul {
    padding-left: 0px;
  }
  .footer {
    margin-top: 20px;
    padding: 10px;
  }
  .back {
    bottom: 5px;
  }
  .back a {
    padding: 1px;
    border-radius: 50%;
  }
}