
.p-main-news {
  position: absolute;
  bottom: -24rem;
  left: 0;
  z-index: 30;
}
@media screen and (max-width: 520px) {
  .p-main-news {
    width: 90%;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 951px) {
  .p-main-news {
    width: 83%;
  }
}
@media screen and (min-width: 950px) {
  .p-main-news {
    width: 75%;
  }
}
.p-news{
    padding: 0 3rem 4rem;
}
@media screen and (max-width: 520px) {
  .p-news{
      padding: 1.5rem 3rem;
  }
}
.p-news__head {
  grid-area: title;
}
.p-link {
  grid-area: btn;
}
.p-news__body {
  grid-area: news;
}


.p-link__btn {
  background: #e6c800;
  font-weight: bold;
  padding: 1.5rem 5rem 1.5rem 2rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: background 0.2s, color 0.2s ease-in-out;
}
@media screen and (max-width: 520px) {
  .p-link__btn {
    padding: 1.2rem 1rem;
  }
}
.p-link__btn::before {
    content: "";
    display: block;
    border-top: solid 2px #000;
    border-right: solid 2px #000;
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translate(0, -50%) rotate(45deg);
    transition: border 0.2s ease-in-out;
}
@media screen and (min-width: 521px) {
.p-link__btn::after {
    content: "";
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    z-index: -1;
    transition: width 0.4s ease-in-out;
}
}

.p-link__btn:hover {
  background: #333;
  color: #fff;
}
@media screen and (min-width:1024px){
  .p-link__btn:hover::before {
    border-color: #fff;
  }
}


.p-news__content {
  padding-right: 0;
  display: grid;
  align-items: center;
  grid-template-areas:
    "title btn"
    "news news";
  gap: 2rem;
}
@media screen and (max-width: 640px) {
  .p-news__content {
    grid-template-columns: 1fr max-content;
    gap: .5rem;
  }
}
@media print, screen and (min-width: 641px) and (max-width: 1024px) {
  .p-news__content {
    grid-template-columns: 1fr max-content;
    gap: 2rem;
  }
}
@media screen and (min-width: 1025px) {
  .p-news__content {
    grid-template-columns: 1fr max-content;
    gap: 2rem;
  }
}

.p-news__title {
  color: #010000;
  line-height: 1;
  font-weight: 900;
}
@media screen and (max-width: 520px) {
  .p-news__title {
    display: flex;
    order: 1;
    text-shadow: 1px 1px 1px #fff;
    font-size: clamp(3rem, 2.224rem + 3.31vw, 3.3rem);
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-news__title {
    display: flex;
    order: 1;
    text-shadow: 1px 1px 1px #fff;
    font-size: clamp(3.3rem, 2.576rem + 2.22vw, 4rem);
  }
}
@media screen and (min-width: 1025px) {
  .p-news__title {
    font-size: clamp(4rem, 1.071rem + 4.57vw, 4.5rem);
  }
}
.p-news__list .item-link {
  display: flex;
  flex-flow: row wrap;
  align-items: baseline;
  padding: 0.6rem 0.2rem 1rem;
  position: relative;
  column-gap: 1rem;
  border-bottom: 1px solid #d5d5d5;
}
@media screen and (max-width: 520px) {
    .p-news__list .item-link {
    gap: 0.5rem;
  }
}
@media screen and (max-width: 520px) {
  .p-news__list .item-link.--top {
    padding: 0.5rem 0;
  }
}
@media screen and (min-width: 1025px) {
  .p-news__list .item-link {
    gap: 0.2rem 2rem;
  }
}
.p-news__list .item-link::before {
  content: "";
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  border-top: solid 2px #2048af;
  border-right: solid 2px #2048af;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translate(0, -50%) rotate(45deg);
}
.p-news__list .item-link::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background-color: #333;
  transition: width 0.4s ease-in-out;
}
.p-news__list .item-link:hover:after {
    width: 100%;
}
.p-news__list .item-date {
  display: inline-block;
}
@media screen and (max-width: 520px) {
  .p-news__list .item-date {
    font-size: 10px;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-news__list .item-date {
    font-size: 12px;
  }
}
@media screen and (min-width: 1025px) {
  .p-news__list .item-date {
    font-size: clamp(12px, 1vw, 14px);
  }
}
@media screen and (max-width: 520px) {
  .p-news__list .item-date {
    width: 7rem;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-news__list .item-date {
    width: 8rem;
  }
}
@media screen and (min-width: 1025px) {
  .p-news__list .item-date {
    width: 9rem;
  }
}
.p-news__list .item-category {
  display: inline-block;
}
@media screen and (max-width: 520px) {
  .p-news__list .item-category {
    font-size: 10px;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-news__list .item-category {
    font-size: 12px;
  }
}
@media screen and (min-width: 1025px) {
  .p-news__list .item-category {
    font-size: clamp(12px, 1vw, 14px);
  }
}
@media screen and (max-width: 520px) {
  .p-news__list .item-category {
    min-width: 6rem;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-news__list .item-category {
    min-width: 7rem;
  }
}
@media screen and (min-width: 1025px) {
  .p-news__list .item-category {
    min-width: 7rem;
  }
}
.p-news__list .item-category__recruit {
  color: #483cff;
}
.p-news__list .item-category__blog {
  color: #ee2500;
}
.p-news__list .item-category__youtube {
  color: #ffb800;
}
.p-news__list .item-category__news {
  color: #00AA00;
}
.p-news__list .item-title {
  padding: 0.2rem 2rem 0.2rem 2rem;
  position: relative;
  width: 100%;
}
@media screen and (max-width: 520px) {
  .p-news__list .item-title {
    font-size: 12px;
    width: 100%;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-news__list .item-title {
    font-size: 14px;
    width: 100%;
  }
}
@media screen and (min-width: 1025px) {
  .p-news__list .item-title {
    font-size: clamp(14px, 1.2vw, 16px);
  }
}

.p-service {
  position: relative;
  z-index: 10;
}
@media screen and (max-width: 520px) {
  .p-service--diagonal {
    padding: 24rem 0 8rem;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service--diagonal {
    padding: 28rem 0 10rem;
  }
}
@media screen and (min-width: 1025px) {
  .p-service--diagonal {
    padding: 32rem 0 17rem;
  }
}
.p-service--diagonal::before {
  content: "";
  display: inline-block;
  background: #2048af;
  position: absolute;
  left: 0%;
}
@media screen and (max-width: 520px) {
  .p-service--diagonal::before {
    width: 160%;
    height: 105%;
    top: -8rem;
    clip-path: polygon(0 27%, 100% 0%, 100% 100%, 0% 100%);
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service--diagonal::before {
    width: 100%;
    height: 105%;
    top: -8rem;
    clip-path: polygon(0 19%, 100% 0%, 100% 100%, 0% 100%);
  }
}
@media screen and (min-width: 1025px) {
  .p-service--diagonal::before {
    width: 100%;
    height: 100%;
    top: 12rem;
    clip-path: polygon(0 13%, 100% 0%, 100% 100%, 0% 100%);
  }
}
.p-service__wrap {
  position: relative;
  z-index: 10;
}
@media screen and (max-width: 520px) {
  .p-service__wrap {
    bottom: 0;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service__wrap {
    bottom: 0;
  }
}
@media screen and (min-width: 1025px) {
  .p-service__wrap {
  }
}
.p-service__wrap::before {
  content: "";
  width: 40%;
  background-image: url("/wp/wp-content/themes/kanamaru/img/top/service_map.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  position: absolute;
  right: 1rem;
}
@media screen and (max-width: 520px) {
  .p-service__wrap::before {
    height: 60%;
    bottom: 0;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service__wrap::before {
    height: 40%;
    bottom: 0;
  }
}
@media screen and (min-width: 1025px) {
  .p-service__wrap::before {
    height: 120%;
    top: 50%;
    transform: translate(0, -50%);
  }
}
.p-service__block {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
@media screen and (min-width: 1025px) {
  .p-service__block-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(65% - 5px);
    min-height: 80%;
    margin-left: auto;
    padding-left: 1rem;
  }
}
@media screen and (max-width: 520px) {
  .p-service__block-image {
    margin: 7rem 0 0;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service__block-image {
    width: 100%;
    max-width: 580px;
    margin: 8rem auto 0;
  }
}
@media screen and (min-width: 1025px) {
  .p-service__block-image {
    width: 35%;
    max-width: 740px;
    position: absolute;
    top: 50%;
    left: 0;
    padding: 37.85% 0 0;
  }
}
.p-service__block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media screen and (max-width: 1024px) {
  .p-service__block-image img {
  aspect-ratio: 52 / 35;
  object-fit: contain;
  }
}
@media screen and (max-width: 520px) {
  .p-service__block .p-link__text {
    margin: 0 auto;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service__block .p-link__text {
    margin: 0 auto;
  }
}
@media screen and (min-width: 1025px) {
  .p-service__block .p-link__text {
    margin-left: auto;
  }
}
.p-service__title {
  line-height: 1;
  position: relative;
}
@media screen and (max-width: 520px) {
  .p-service__title {
    min-width: 316px;
    padding: 0 0 0.5rem 1em;
    text-align: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service__title {
    min-width: 368px;
    padding: 0 0 0.5rem 1em;
    text-align: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
  }
}
@media screen and (min-width: 1025px) {
  .p-service__title {
    padding: 0 0 0.5rem 1em;
    font-size: clamp(58px, 5.2vw, 76px);
  }
}
.p-service__title::before {
  content: "";
  display: block;
  background-image: url("/wp/wp-content/themes/kanamaru/img/common/search_icon.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
}
@media screen and (max-width: 520px) {
  .p-service__title::before {
    width: 22px;
    height: 22px;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service__title::before {
    width: 26px;
    height: 26px;
  }
}
@media screen and (min-width: 1025px) {
  .p-service__title::before {
    width: clamp(44px, 3.9vw, 58px);
    height: clamp(44px, 3.9vw, 58px);
  }
}
@media screen and (max-width: 520px) {
  .p-service__title.is-show {
    transform: translate(-50%, 0) !important;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service__title.is-show {
    transform: translate(-50%, 0) !important;
  }
}
.p-service__list {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 520px) {
  .p-service__list {
    margin: 2rem 0;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service__list {
    margin: 4rem 0;
  }
}
@media screen and (min-width: 1025px) {
  .p-service__list {
    margin: 2rem 0;
  }
}
.p-service__list-item {
  width: 49%;
  margin: 2% 0 0;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 6px;
}
.p-service__list-item:first-of-type,
.p-service__list-item:nth-of-type(2) {
  margin: 0;
}
.p-service__list .item-link {
  display: block;
  font-weight: bold;
}
@media screen and (max-width: 520px) {
  .p-service__list .item-link {
    font-size: 10px;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service__list .item-link {
    font-size: 14px;
  }
}
@media screen and (min-width: 1025px) {
  .p-service__list .item-link {
    font-size: clamp(16px, 1.5vw, 18px);
  }
}
.p-service__list .item-link .item-link__text {
  display: block;
}
@media screen and (max-width: 520px) {
  .p-service__list .item-link .item-link__text {
    padding: 0.8rem 1rem;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service__list .item-link .item-link__text {
    padding: 0.8rem 1.4rem;
  }
}
@media screen and (min-width: 1025px) {
  .p-service__list .item-link .item-link__text {
    padding: 0.8rem 1rem;
  }
}
.p-service__list .item-link .item-link__btn {
  display: block;
  border-radius: 6px;
  position: relative;
  transition: background 0.2s ease-in-out;
}
@media screen and (max-width: 520px) {
  .p-service__list .item-link .item-link__btn {
    padding: 0.8rem 1rem 0.8rem 0.5rem;
  }
}
@media print, screen and (min-width: 521px) and (max-width: 1024px) {
  .p-service__list .item-link .item-link__btn {
    padding: 0.8rem 2rem 0.8rem 1.4rem;
  }
}
@media screen and (min-width: 1025px) {
  .p-service__list .item-link .item-link__btn {
    padding: 0.8rem 2rem 0.8rem 1rem;
  }
}
.p-service__list .item-link .item-link__btn::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-top: solid 2px #2048af;
  border-right: solid 2px #2048af;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.p-service__list .item-link .item-link__btn:hover {
  background: #e6c800;
  opacity: 1;
}
.p-service__search-image {
  display: none;
  opacity: 0;
  visibility: hidden;
}
@media screen and (min-width: 1025px) {
  .p-service__search-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
.p-service__search-image.is-show {
  display: block;
  opacity: 1;
  visibility: visible;
}