* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "M PLUS Rounded 1c";
}

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

ul li {
  list-style: none;
  color: white;
}

.hero {
  height: 100vh;
  width: 100%;
  background-color: #111111;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 45px 8% 0 8%;
}

.logo {
  color: white;
  font-size: 35px;
  letter-spacing: 1px;
  cursor: pointer;
}

.skyblue {
  color: lightskyblue;
}

nav ul li {
  display: inline-block;
  padding: 10px 25px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

nav ul li a:hover {
  color: lightskyblue;
}

.btn {
  background-color: lightskyblue;
  color: white;
  padding: 20px 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  cursor: pointer;
}

.btn:hover {
  border-radius: 20px;
  transform: scale(1.2);
}

.content {
  padding-top: 230px;
}

.content .body {
  display: flex;
  justify-content: space-evenly;
  padding-right: 50px;
  padding-left: 50px;
}

.content .body img {
  width: auto;
  height: 70vh;
  margin-top: -150px;
  border-radius: 30px;
}

h1 {
  color: white;
  margin: 0 0 20px;
  font-size: 75px;
}

h3 {
  color: white;
  font-size: 25px;
  margin-bottom: 50px;
}

h4 {
  color: white;
  letter-spacing: 2px;
  font-size: 20px;
}

.newsletter form {
  width: 380px;
  position: relative;
}

.newsletter form input:first-child {
  width: 100%;
  padding: 15px 130px 15px 15px;
  outline: none;
  border: 1px solid lightskyblue;
  border-radius: 30px;
}

.newsletter form input:last-child {
  position: absolute;
  border: none;
  top: 5px;
  right: 6px;
  padding: 10px 30px;
  background: lightskyblue;
  border-radius: 30px;
  color: white;
  cursor: pointer;
  box-shadow: 1px 1px 10px black;
}

.contact-form {
  width: 1000px;
  display: flex;
  justify-content: center;
  background: #111111;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  padding: 100px 14px;
  border: 1px solid lightskyblue;
  border-radius: 15px;
  color: white;
  font-size: 24px;
  visibility: hidden;
  z-index: 11;
  opacity: 0;
  transition: all 0.5s;
}

.contact-form.active {
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
  opacity: 1;
}

.bgdark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #222222;
  opacity: 0;
  content: " ";
  visibility: hidden;
  transition: all 0.5s;
  z-index: 10;
}

.bgdark.active {
  visibility: visible;
  opacity: 0.9;
}

.contact-item {
  overflow: hidden;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
}

.contact-form label {
  /* float: left; */
  /* text-align: right; */
  margin-right: 15px;
  width: 200px;
}

.contact-form .inputs {
  width: 400px;
  height: 40px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  padding: 12px;
}

.contact-form .area {
  width: 400px;
  height: 200px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  padding: 12px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.contact-form .submit {
  font-size: 24px;
  margin-bottom: 20px;
}

.about {
  width: 100%;
  padding: 100px 0;
  background: #222222;
}

.about img {
  width: 430px;
}

.about-text {
  width: 550px;
}

.main {
  width: 1130px;
  display: flex;
  margin: 0 auto;
  align-items: center;
  justify-content: space-around;
}

.about-text h2 {
  color: white;
  font-size: 75px;
  margin-bottom: 20px;
}

.about-text h5 {
  color: white;
  letter-spacing: 1px;
  font-size: 22px;
  margin-bottom: 25px;
}

.about-text ul {
  color: white;
  letter-spacing: 1px;
  line-height: 28px;
  margin-bottom: 45px;
  font-size: 18px;
}

.button {
  background: lightskyblue;
  padding: 13px 30px;
  color: white;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.button:hover {
  border: 1px solid lightskyblue;
  background: transparent;
}

.portfolio {
  background-color: #111111;
  width: 100%;
  padding: 100px 0;
}

.title h2 {
  color: white;
  font-size: 75px;
  margin: 30px auto;
  text-align: center;
}

.box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.card {
  height: 390px;
  width: 365px;
  background-color: #222222;
  padding: 20px 35px;
  margin: 20px;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
}

.card i {
  color: lightskyblue;
  font-size: 50px;
  margin: 25px 0;
}

.card h5 {
  color: white;
  font-size: 23px;
  margin-bottom: 30px;
}

.paragraph ul,
.paragraph p {
  color: white;
  font-size: 16px;
  line-height: 25px;
  margin-bottom: 30px;
}

.paragraph ul li {
  text-align-last: left;
}

.contact {
  width: 100%;
  height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #222222;
}

.contact p {
  color: white;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 25px;
}

footer {
  width: 100%;
  height: 400px;
  background: #111111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer p:nth-child(1) {
  font-size: 30px;
  color: white;
  margin-bottom: 20px;
  font-weight: bold;
}

footer p:nth-child(2) {
  color: white;
  font-size: 17px;
  width: 500px;
  text-align: center;
}

.social {
  display: flex;
}

.social a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: black;
  display: flex;
  font-size: 24px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 22px 10px;
  color: white;
  transition: all 0.3s;
}

.social a:nth-child(2) {
  background: white;
  font-size: 18px;
}

.social a:hover {
  transform: scale(1.3);
}

.end {
  color: white;
  margin-top: 100px;
  font-size: 16px;
}

@media screen and (max-width: 1400px) {
  .hero {
    height: inherit;
  }

  .content {
    padding-top: 60px;
    text-align: center;
  }

  .content .body {
    flex-direction: column;
    padding-right: 100px;
    padding-left: 100px;
  }

  .content .body img {
    object-fit: contain;
    display: block;
    margin: 50px auto;
    width: 80%;
    height: auto;
  }

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

  .newsletter form {
    display: inline-block;
  }

  .contact-form {
    width: 85%;
    padding: 20px 10px 40px;
  }

  .contact-form form {
    width: 90%;
  }

  .contact-form .inputs {
    width: 100%;
  }

  .contact-form .area {
    width: 100%;
  }

  .contact-form .submit {
    width: 100%;
    margin-bottom: 20px;
  }

  .contact-item {
    flex-direction: column;
  }

  .contact-item label {
    width: inherit;
    margin-right: 0;
    margin-bottom: 5px;
  }
}

@media screen and (max-width: 769px) {
  .content .body {
    flex-direction: column;
    padding-right: 0px;
    padding-left: 0px;
  }

  .btn {
    display: none;
  }

  .box {
    flex-wrap: wrap;
  }

  .about-text {
    width: 70%;
  }

  .blogImg {
    margin-bottom: 45px;
  }

  .about-text h2,
  .title h2 {
    font-size: 50px;
  }

  .content .body img {
    height: auto;
    width: 100%;
    border-radius: 0;
  }

  .contact-form {
    width: 100%;
  }

  footer p:nth-child(2) {
    width: 90%;
  }
}

@media screen and (max-width: 430px) {
  .content .body {
    padding-left: 0;
    padding-right: 0;
  }

  .skyblue {
    display: block;
  }

  .about img {
    width: 100%;
  }
}

/* 375px以下の場合のスタイル */
@media screen and (max-width: 375px) {
  nav {
    padding: 20px 5%;
  }

  .content .body {
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
  }

  .content .body img {
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 15px;
  }

  .newsletter form {
    width: 100%;
  }

  .contact-form {
    width: 90%;
    padding: 50px 14px;
    font-size: 18px;
  }

  .about {
    padding: 50px 0;
  }

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

  .about img {
    width: 80%;
  }

  .about-text {
    width: 90%;
    text-align: center;
  }

  .portfolio {
    padding: 50px 0;
  }

  .title h2 {
    font-size: 50px;
  }

  .card {
    width: 90%;
    margin: 10px;
  }

  .contact {
    height: auto;
  }

  .contact-form .inputs,
  .contact-form .area {
    width: 200px;
  }

  footer p:nth-child(2) {
    width: 90%;
  }
}
