/*==== メインビジュアル ====*/
#top {
  position: relative;
}
#top img {
  width: 100%;
}

.slogan {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 45px;
  background: linear-gradient(90deg,rgba(7, 162, 233, 0) 0%, rgba(7, 162, 233, 0.9) 20%, rgba(7, 162, 233, 0.9) 80%, rgba(7, 162, 233, 0) 100%);
  text-align: center;
}
.slogan p {
  color: #fff;
  font-size: 4rem;
}
.slogan p:first-child {
  font-family: "a-otf-ryumin-pr6n", serif;
  font-weight: 300;
  text-shadow: 2px 2px 1px rgba(0, 92, 165, 1);
  white-space: nowrap;
}
.slogan p:last-child {
  padding-top: 15px;
  font-size: 1.4rem;
}
.slogan p br {
  display: none;
}
@media (max-width: 767px) {
  #top img {
    height: 50vh;
    object-fit: cover;
    object-position: center;
  }
  .slogan p {
    font-size: 3rem;
    line-height: 1.5;
  }
  .slogan p br {
    display: block;
  }
}


/*==== 新着情報 ====*/
#news {
  background: linear-gradient(45deg,rgba(7, 162, 233, 1) 0%, rgba(7, 162, 233, 0.3) 100%);
}
.news-area {
  max-width: 865px;
  margin: 0 auto;
  padding: 30px 40px;
  background-color: #fff;
}
.news-area h2 {
  padding-bottom: 20px;
}
.news-list li {
  padding: 15px 20px;
  border-top: 1px solid #9e9e9f;
}
.news-list li:last-child {
  border-bottom: 1px solid #9e9e9f;
}
.news-list li a {
  display: flex;
}
.news-list .date {
  width: 100px;
}
.news-list + p {
  margin-top: 30px;
  text-align: center;
}
@media (max-width: 767px) {
  .news-area {
    padding: 30px 15px 20px;
  }
  .news-list li a {
    display: block;
  }
}


/*==== 事業内容 ====*/
#service {
  position: relative;
  background: linear-gradient(45deg,rgba(7, 162, 233, 1) 0%, rgba(7, 162, 233, 0.3) 100%);
  z-index: 0;
}
#service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/service-bg.jpg") center / cover no-repeat;
  opacity: 0.4;
  z-index: -1;
}
#service .grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
#service h2 {
  color: #fff;
}
#service .grid div {
  padding: 20px;
  background-color: #fff;
}
#service .grid div p {
  padding-bottom: 10px;
  text-align: center;
}
@media (max-width: 960px) {
  #service .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  #service .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  #service .grid div {
    padding: 15px;
  }
}


/*==== 会社の強み ====*/
#strength .sp {
  display: none;
}
@media (max-width: 767px) {
  #strength .pc {
    display: none;
  }
  #strength .sp {
    display: block;
  }
}


/*==== 技術紹介 ====*/
#technical {
  background: linear-gradient(45deg,rgba(7, 162, 233, 1) 0%, rgba(7, 162, 233, 0.3) 100%);
}
#technical h2 {
  color: #fff;
}
#technical .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
#technical .flex {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.9);
}
#technical .image {
  width: 40%;
}
#technical .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#technical .text {
  padding: 20px;
  width: 60%;
}
#technical .text h3 {
  margin-bottom: 10px;
  padding-bottom: 10px;
  font-size: 1.8rem;
  text-align: center;
  border-bottom: 1px solid red;
}
#technical .text p {
  font-size: 1.3rem;
}
@media (max-width: 1130px) {
  #technical .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  #technical .grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
  #technical .flex {
    display: block;
  }
  #technical .image,
  #technical .text {
    width: 100%;
  }
  #technical .image {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
  }
}


/*==== 実績紹介 ====*/
#products .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
#products .btn {
  margin-top: 40px;
  text-align: center;
}
#products .btn a {
  padding: 20px 40px;
  background: linear-gradient(45deg, rgba(7, 162, 233, 1) 0%, rgba(7, 159, 232, 0.6) 100%);
  color: #fff;
}
@media (max-width: 767px) {
  #products .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 480px) {
  #products .grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


/*==== 採用情報 ====*/
#recruit {
  background: linear-gradient(45deg,rgba(7, 162, 233, 1) 0%, rgba(7, 162, 233, 0.3) 100%);
}
#recruit h2 {
  color: #fff;
}
#recruit .flex {
  align-items: center;
  justify-content: space-between;
}

#recruit .message {
  display: flex;
}
#recruit .message-box {
  position: relative;
  width: calc(100% / 3);
}
#recruit .message-box img,
#recruit .message-box p {
  width: 100%;
  height: auto;
  display: block;
}
#recruit .message-box p {
  font-size: 1.8rem;
}
#recruit .message-box:nth-child(1),
#recruit .message-box:nth-child(3) {
  z-index: 1;
}
#recruit .message-box:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -30px;
  padding: 0 30px;
  background: rgba(250, 206, 115, 0.75);
  border-radius: 50%;
  text-align: center;
  font-weight: bold;
  z-index: 2;
}

#recruit .flex ul li:first-child {
  margin-bottom: 20px;
}

@media (max-width: 1130px) {
  #recruit .flex {
    flex-direction: column;
  }
  #recruit .flex ul {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 767px) {
  #recruit .message {
    flex-direction: column;
    align-items: center;
  }
  #recruit .message-box {
    width: 80%;
  }
  #recruit .message-box:nth-child(2) {
    margin: -30px 0;
    aspect-ratio: 1 / 1;
  }
  #recruit .flex ul {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
}