html {
  scroll-behavior: smooth;
  font-size: 22px;
}

img {
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Playfair Display", serif, "RocknRoll One";
  background-color: #d8912b;
  width: 100%;
  color: #fff;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-top: constant(safe-area-inset-top);
  padding-right: constant(safe-area-inset-right);
  padding-bottom: constant(safe-area-inset-bottom);
  padding-left: constant(safe-area-inset-left);
}

h1 {
  font-size: 2.5rem;
}

header {
  background-color: #fff;
  /* D fixed -> sticky */
  position: sticky;
  top: 0;
  left: 0;
  z-index: 999;
  height: 100x;
  padding-left: 10%;
  padding-top: 1%;
  padding-bottom: 1%;
}

header > a {
  display: block;
}

article {
  width: 100%;
  display: flex;
  gap: 2rem;
}

.corporale {
  background-color: #a01922;
  background-image: url("../images/Corporate\ philosophy-bg-image.svg");
  background-size: cover;
  position: relative;
  transform: skew(0deg, 2deg);
}

.skew-text {
  transform: skew(0deg, -2deg);
}

.corporale img {
  width: 30px;
  position: absolute;
  right: 3%;
  top: 15%;
}

.navi {
  background-color: #eeeeee;
  transform: skew(0deg, 2deg);
  color: #a01922;
}

.flex-box {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
  /* font-size: 20px; */
  font-family: "Dosis", sans-serif;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-family: "Poppins", sans-serif;
  font-family: "Prompt", sans-serif;
  font-family: "PT Sans", sans-serif;
  /* font-family: 'RocknRoll One', sans-serif; */
}

.join {
  background-color: #851b23;
  position: relative;
  transform: skew(0deg, 2deg);
  background-image: url("../images/bg-join-us-PC_Trapezoid.png");
  background-repeat: no-repeat;
  background-size: cover;
  clip-path: polygon(0px 0px, 100% 0px, 100% 104%, 0px 100%);
}

.join-flex {
  display: flex;
  width: 57%;
  gap: 2%;
  font-family: "Dosis", sans-serif;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-family: "Poppins", sans-serif;
  font-family: "Prompt", sans-serif;
  font-family: "PT Sans", sans-serif;
}

/* .join-img {
  width: 50%;
  display: flex;
  align-items: flex-end;
} */

#square > img {
  position: absolute;
  max-width: 80px;
  left: 2%;
  bottom: 1.1rem;
}

.contact-flex {
  display: flex;
  justify-content: space-between;
  padding-right: 10%;
  gap: 5%;
  font-family: "Dosis", sans-serif;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-family: "Poppins", sans-serif;
  font-family: "Prompt", sans-serif;
  font-family: "PT Sans", sans-serif;
}

.contact {
  background-color: #d8912b;
  display: flex;
}

.btn {
  font-size: inherit;
  text-decoration: none;
  cursor: pointer;
  color: floralwhite;
  border-radius: 40px;
  padding: 20px;
  background-color: #851b23;
  text-align: center;
  align-items: center;
  display: inline-block;
  height: 50px;
  line-height: 50px;
}

.btn:hover {
  background-color: #b7202b;
}

.container {
  display: flex;
  flex-direction: column;
  padding-left: 10%;
  padding-right: 6%;
  padding-bottom: 3%;
  /* width: 100%; */
  
}

#address {
  display: flex;
  background-color: #d8912b;
  padding-left: 10%;
  gap: 1%;
}

#address img {
  display: inline-block;
  width: 50px;
}

footer {
  width: 100%;
  background-color: #ffffff;
  text-align: center;
  font-family: "Roboto";
  font-size: 0.8rem;
  color: #ffffff;
}

.footer-wrapper {
  display: flex;
  background-color: #851b23;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 10%;
  padding-right: 10%;
}

#right {
  display: flex;
  gap: 2rem;
}

#bottom {
  color: #851b23;
  padding-top: 1.5rem;
}

.sns img {
  margin-top: 10px;
  width: 50px;
}

.sns img:hover {
  transform: scale(1.2);
}

#top img:hover {
  transform: scale(1.2);
}

/* 手機板 */

@media  screen and (max-width: 767px) {
  html {
    font-size: 1.1rem;
  }

  header {
    max-height: 60px;
  }

  header img {
    max-height: 60px;
  }

  .container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-left: 5%;
    padding-right: 5%;
  }

  .flex-box {
    display: inline-block;
  }

  .join-flex {
    display: flex;
    width: 100%;
  }

  .contact-flex {
    display: flex;
    flex-direction: column;
  }

  .corporale img {
    display: none;
  }

  .join img {
    display: none;
  }

  .join {
    background-image: none;
  }

  .btn {
    padding: 10px;
    line-height: 30px;
    height: 30px;
  }

  #address {
    padding-left: 3%;
  }

  .footer-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0%;
  }

  footer {
    max-height: 1%;
  }

  #right {
    display: inline;
  }

  #right img {
    max-width:120px;
    padding: 0.5rem;
  }

  #bottom {
    padding: 0;
  }

  #bottom img {
    max-height: 40px;
  }
}

