html {
  scroll-behavior: smooth;
}
header {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo {
  height: 70%;
  margin-left: 3vw;
}

header .contact,
.sp-contact .contact {
  padding: 10px 40px;
  margin-right: 3vw;
  font-size: 18px;
  color: rgb(157, 30, 54);
  border: solid 1px;
  font-family: Noto Sans JP Medium;
}

header .contact:hover,
.sp-contact .contact:hover {
  background-color: rgb(157, 30, 54);
  color: rgb(255, 255, 255);
}

main {
  margin-bottom: 200px;
}

.copy {
  color: #ffffff;
  font-size: 24px;
  font-family: Noto Sans JP Medium;
  display: inline-block;
  text-align: left;
  z-index: 1;
  margin-left: 5vw;
}
.copy span {
  line-height: 200%;
}
.copy span::after {
  content: "";
  display: inline-block;
  width: 170px;
  height: 1px;
  background-color: #ffffff;
  margin-bottom: 13px;
}
.copy h1 {
  font-size: 2.3em;
}

.copy p {
  background-color: rgb(157, 30, 54);
  padding: 10px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 5px;
  margin-top: 20px;
  font-family: Noto Sans JP Medium;
  line-height: 18px;
  vertical-align: middle;
}

.sp {
  display: none;
}

h2 {
  color: rgb(157, 30, 54);
  font-size: 32px;
  font-family: Noto Sans JP Medium;
  position: relative;
  margin-bottom: 60px;
  padding-bottom: 30px;
  text-align: center;
}
h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  display: inline-block;
  width: 60px;
  height: 1px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #231815;
}

section {
  padding-left: 20px;
  padding-right: 20px;
}

.news .list {
  text-align: center;
}
.news .list > span:first-child {
  padding-right: 20px;
}

section > div {
  max-width: 1100px;
  margin: 100px auto;
  text-align: left;
}

.at-home > div {
  margin: 50px auto;
  text-align: center;
}

.at-home .link-area {
  display: grid;
  grid-template-columns: 40% 40%;
  justify-content: space-around;
}

.at-home > div > a {
  padding: 10px 40px;
  font-size: 18px;
  color: rgb(157, 30, 54);
  border: solid 1px;
  font-family: Noto Sans JP Medium;
}

.at-home > div > a:hover {
  background-color: rgb(157, 30, 54);
  color: rgb(255, 255, 255);
}

section span {
  font-size: 16px;
  font-family: Noto Sans JP Regular;
  line-height: 180%;
}
section.service {
  background-color: #f3e3e6;
  padding-top: 130px;
  padding-bottom: 130px;
}

.service .category {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 70px auto 0 auto;
  column-gap: 6%;
}

.affiliated {
  max-width: 1100px;
  background-color: #ffffff;
  padding: 35px;
  margin-top: 70px;
  margin-bottom: 0;
}
.affiliated h3 {
  color: #9d1e36;
  font-size: 23px;
  line-height: 200%;
}
.affiliated > div {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 2%;
}
.affiliated > div > p {
  text-align: center;
  background-color: rgb(35, 24, 21);
  color: white;
  font-size: 20px;
  border-radius: 100px;
  line-height: 45px;
  margin: 9px 0;
  white-space: nowrap;
}

.information {
  margin: 200px auto;
}
.information img {
  max-width: 800px;
  height: 500px;
  object-fit: cover;
}

.information table {
  max-width: 800px;
  margin: 70px auto 0 auto;
  border-collapse: collapse;
}

.information table th,
td {
  vertical-align: middle;
  border: 1px solid;
}

.information table th {
  width: 120px;
  height: 60px;
  background-color: #f3e3e6;
  font-size: 16px;
  font-family: Noto Sans JP Regular;
  text-align: center;
}

.information table td {
  text-align: left;
  padding: 0 10px;
}

.contact > div {
  max-width: 1100px;
  margin: 0 auto;
  background-color: rgb(230, 230, 230);
}

.contact form {
  max-width: 700px;
  margin: 100px auto;
  padding: 100px 20px;
}

.contact form label {
  display: block;
  font-size: 16px;
  font-family: Noto Sans JP Regular;
  line-height: 200%;
}

.contact form input,
textarea {
  width: 100%;
  height: 50px;
  margin-bottom: 20px;
  background-color: #ffffff;
  font-family: "Noto Sans JP Regular";
  font-size: 20px;
  padding: 10px;
}

.contact form textarea {
  height: 200px;
}

.contact .submit {
  text-align: center;
  margin-top: 60px;
}

.contact .submit button {
  border: 1px solid #000;
  padding: 15px 80px;
}
.contact .submit button:hover {
  border: 1px solid #000;
  padding: 15px 80px;
  background-color: #fff;
  font-weight: bold;
}

footer {
  position: relative;
  background-color: rgb(157, 30, 54);
  height: 250px;
  display: flex;
  justify-content: space-between;
}

footer span {
  color: #fff;
  position: absolute;
  right: 206px;
  bottom: 35px;
  font-size: 10px;
}

footer img {
  position: absolute;
}

footer .left {
  width: 250px;
  bottom: 20px;
  left: 40px;
}
footer .right {
  right: 0;
  height: 100%;
}

.botan {
  font-size: 18px;
  color: rgb(157, 30, 54);
  border: solid 1px;
  padding: 0px 15px;
}

body {
  color: rgb(35, 24, 21);
  text-align: center;
  font-size: 16px;
  width: 100%;
}

.top {
  display: flex;
  position: relative;
  height: 715px;
  align-items: center;
}

video {
  width: 100%;
  height: 715px;
  object-fit: cover;
  position: absolute;
}

.mark {
  position: absolute;
  bottom: -18px;
  right: -56px;
  height: 600px;
}
.bg-mark {
  width: 100%;
  height: 715px;
  background-image: url(../img/WebP/nakajima_top-mark-01.webp);
  background-size: contain;
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: bottom;
  position: absolute;
  top: 0;
  right: 0;
  background-size: auto 715px;
}

.side > div {
  background-color: rgb(157, 30, 54);
  color: white;
  font-size: 25px;
  width: 100%;
  line-height: 75px;
  padding: 0 20px;
  white-space: nowrap;
}
.side {
  display: flex;
  width: 100%;
  margin-bottom: 30px;
}

.service > div img {
  width: 75px;
  height: 75px;
}

.sp-contact {
  position: fixed;
  width: 100%;
  height: 80px;
  background-color: #fff;
  bottom: 0;
  z-index: 3;
  display: none;
}

.sp-contact .contact {
  margin: 20px 10vw;
}

@media screen and (max-width: 1024px) {
  .sp {
    display: block;
  }
  .side > div {
    font-size: 21px;
  }
  .right {
    display: none;
  }
  footer .left {
    width: 30vw;
  }
  footer span {
    right: 20px;
    font-size: 1.5vw;
  }
}

@media screen and (max-width: 768px) {
  .copy h1 {
    font-size: 9vw;
  }
  .service .category {
    grid-template-columns: 1fr;
  }
  .affiliated > div {
    grid-template-columns: 1fr 1fr;
  }
  .bg-mark {
    background-image: url(../img/WebP/nakajima_top-mark-01sp.webp);
    background-size: auto 450px;
  }
  header .contact {
    display: none;
  }

  .at-home .link-area {
    grid-template-columns: 80%;
    row-gap: 30px;
  }

  .sp-contact {
    display: block;
  }
  .jimusyo {
    width: 100%;
    height: auto !important;
  }
  .information table {
    margin-top: 20px;
  }
}

@media screen and (max-width: 626px) {
  .side > div {
    font-size: 4vw;
  }
  .affiliated > div {
    grid-template-columns: 1fr;
  }
  .copy {
    margin: -50vh 5vw 0 5vw;
  }
  .copy span {
    font-size: 20px;
  }
  .copy span::after {
    display: none;
  }

  .copy p {
    font-size: 12px;
    line-height: 12px;
  }
}
