@charset "utf-8";

/*============================　
　既存スタイル上書き及び追加
=============================*/
.p-contetns-contact:has(+ .p-contents) {
  padding-bottom: 0;
}

.p-top+.p-contetns-contact {
  padding-top: 32px;
}

.p-contents--top+.p-contents:not(.short-news) {
  margin-top: clamp(64px, calc(32.609865470852014px + 8.370702541106128vw), 120px);
}

.p-contents--top>.p-contetns-contact {
  padding-bottom: 24px;
}

.p-contetns-contact__button {
  max-width: 720px;
  width: 100%;
}

/* リンクカード */
.p-info__item.n-hover {
  pointer-events: none;
}

.p-view-list-button[data-size="large"] {
  max-width: fit-content;
  width: auto;
  padding-inline: 16px;
}

.p-info-item__head[data-size="auto"] {
  height: auto;
}

@media screen and (min-width: 768px) {
  .p-info__item[data-size="large"] {
    width: 100%;
    display: grid;
    grid-template-columns: 326px 1fr;
    column-gap: 40px;
  }

  .p-info__item[data-size="large"] :where(.p-info-item__head) {
    grid-column: 1;
    height: 100%;
    align-self: center;
    grid-row: 1 / 3;
  }

  .p-info__item[data-size="large"] :where(.p-info-item__heading) {
    grid-column: 2;
    align-self: end;
    text-align: left;
  }

  .p-info__item[data-size="large"] :where(.p-info-item__detail),
  .p-info__item[data-size="large"] :where(.p-view-list-button) {
    grid-column: 2;
    align-self: start;
  }

  .p-info--column {
    flex-wrap: wrap;
    row-gap: 40px;
    margin-top: 84px;
  }

  .p-info--column .p-info__item[data-size="large"] {
    margin-left: 0;
    padding: 2rem;
  }

  .p-info--column .p-info__item[data-size="large"] :where(.p-info-item__head) {
    width: 344px;
  }

  .p-info-item__foot {
    height: 155px;
  }

  .p-view-list-button-l {
    width: 300px !important;
  }

  .p-info-item__head_dl {
    height: 250px !important;
  }
}

/* PCそろえる */
@media screen and (min-width: 768px) {
  .p-info.grid {
    display: grid;
    gap: 38px;
    grid-template-columns: repeat(3, 1fr);
  }

  .p-info.grid[data-column="2"] {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-info.grid .p-info__item {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 0;
  }

  .p-info.grid[data-item-row="4"] .p-info__item {
    grid-row: span 4;
  }
}

/* メインビジュアル */
@media print,
screen and (min-width: 768px) {
  .p-top {
    background-image: url("../images/mv.webp");
    position: relative;
    background-position: center;
    background-color: #f0f0f0;
    border-radius: 15px;
    background-size: cover;
    background-attachment: scroll;
    max-height: 650px;
  }
}

@media not all and (min-width: 768px) {
  .p-top {
    background-image: url("../images/mv.webp");
    background-color: #000000;
    padding: 130px 0 50px;
    border-radius: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

/* メインビジュアル内バナー */
/* ------------------- */
.p-top__bnr {
  position: relative;
  margin-top: 48px;
  max-width: fit-content;
  margin-left: 6px;
}

.p-top__bnr-link::before {
  background: oklch(1 0 0 / 0.85);
  border-radius: 6px;
  content: "";
  height: calc(100% - 16px);
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
}

.p-top__bnr-link {
  padding: 18px 20px 18px 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  align-items: center;
  z-index: 1;
  position: relative;
}

.p-top__bnr-link img {
  max-width: 160px;
  margin-top: -24px;
  margin-left: -20px;

}

.p-top__bnr-text {
  display: grid;
  margin-top: -16px;
  gap: 12px;
}

.p-top__bnr-text .-main {
  font-size: 16px;
  font-weight: bold;
  color: #1a398c;
}


.p-top__bnr-text .-sub {
  position: relative;
  overflow: hidden;
  max-width: fit-content;
  margin-inline: auto;
  background-color: #ED9631;
  font-weight: 500;
  padding: 2px 12px 3px;
  border-radius: calc(infinity * 1px);
  background-color: #003366;
  color: #ffffff;
  text-align: center;
}

.p-top__bnr-text .-sub::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
  transform: scale(0, 1);
  transform-origin: right top;
  position: absolute;
  top: 0;
  left: 0;
}

.p-top__bnr-text .-sub>span {
  position: relative;
  z-index: 1;
  transition: color 0.6s;
}

.p-top__dl {
  max-width: fit-content;
  position: relative;
}

.p-top__dl-text {
  color: #3E3A39;
  max-width: fit-content;
  margin-inline: auto;
  background-color: #ffffff;
  display: block;
  /* width: 70%; */
  position: relative;
  padding: 4px 0;
  font-weight: bold;
  font-size: 12px;
  border-radius: 100px;
  -webkit-box-shadow: 0 3px 6px rgba(62, 58, 57, 0.21);
  box-shadow: 0 3px 6px rgba(62, 58, 57, 0.21);
  transition: 0.25s;
  z-index: 4;
  padding: 2px 8px;
  color: #1a398c;
  color: #333;
}

.p-top__dl-text::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 5px 0 5px;
  -webkit-transition: 0.25s;
  transition: 0.25s;
  position: absolute;
  bottom: -8px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  border-color: #ffffff transparent transparent transparent;
}

.p-top__dl-btn {
  max-width: fit-content;
  color: #fff;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 16px 20px 16px 0;
  position: relative;
  z-index: 1;
  margin-top: -4px;
  cursor: pointer;
}

.p-top__dl-btn img {
  max-width: 100px;
  position: absolute;
}

.p-top__dl-btn span {
  position: relative;
  font-size: 16px;
  font-weight: bold;
  margin-left: 108px;
}

.p-top__dl-btn::before {
  background: oklch(1 0 0 / 0.85);
  border-radius: calc(infinity * 1px);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: opacity .175s linear;
  width: 100%;
  z-index: 0;
  display: block;
}


@media (hover: hover) {
  .p-top__bnr-link:not(.is-disabled-hover):hover .p-top__bnr-text .-sub>span {
    color: #003366;
  }

  .p-top__bnr-link:not(.is-disabled-hover):hover .p-top__bnr-text .-sub::before {
    transform-origin: left top;
    transform: scale(1, 1);
  }
}

@media not screen and (min-width: 600px) {
  .p-top__bnr-text .-main {
    font-size: 3.6vw;
  }

  .p-top__bnr-link img {
    max-width: 32vw;
    margin-top: -12px;
  }

  .p-top__bnr-text .-sub {
    font-size: 3.2vw;
  }

  .p-top__bnr-link {
    padding: 24px 20px 28px 12px;
  }
}


/* ナビゲーション */
.contentPageLink {
  flex-wrap: wrap;
}

@media screen and (min-width: 768px) {
  .contentPageLink li {
    width: 220px;
  }

  .contentPageLink li a {
    padding: 20px 1em;
    height: 100%;
  }
}

/* 過去事例 */
.voice h3 {
  position: inherit;
  margin-bottom: 0 !important;
}

.voice h3:before {
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  left: 0;
}

.voice h3:after {
  content: "";
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  right: 0;
}

.voice h4.kigyo {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 5px;
  padding-bottom: 1.5rem;
}

.icn-business {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
}

.icn-business .sc-01 {
  color: #fff;
  background-color: #2e8b57;
  padding: 0.75rem 2rem 1rem;
  border-radius: 0.4rem;
  font-size: 1.2rem;
  margin-left: 0.3rem;
}

.icn-business .sc-02 {
  color: #fff;
  background-color: #008db7;
  padding: 0.5rem 2rem;
  border-radius: 0.4rem;
  font-size: 1.2rem;
  margin-left: 0.3rem;
}

.icn-business .sc-03 {
  color: #fff;
  background-color: #d9a62e;
  padding: 0.5rem 2rem;
  border-radius: 0.4rem;
  font-size: 1.2rem;
  margin-left: 0.3rem;
}

table {
  border-collapse: collapse;
  vertical-align: top;
}

.table th {
  white-space: nowrap;
}

.table {
  width: 100%;
  background-color: transparent;
}

.table th,
.table td {
  padding: 0.5rem;
}

.table thead th {
  vertical-align: bottom;
}

.table tbody+tbody {
  border-top: 2px solid #dee2e6;
}

.table .table {
  background-color: #fff;
}

.p-info-item__sup span.sc-01 {
  background-color: #2e8b57;
}

.p-info-item__sup span.sc-02 {
  background-color: #008db7;
}

.p-info-item__sup span.sc-03 {
  background-color: #d9a62e;
}

@media not all and (min-width: 768px) {
  .icn-business {
    display: block;
    text-align: center;
  }

  .icn-business .sc-01,
  .sc-02,
  .sc-03 {
    color: #fff;
    background-color: #2e8b57;
    padding: 0.75rem 2rem 1rem;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    margin-left: 0.3rem;
    text-align: center;
  }

  .voice h3 {
    padding: 0.25rem !important;
    margin-top: 0 !important;
  }

  .voice h4 {
    margin-top: 10px;
  }

  .voice h4.kigyo {
    margin-top: 1rem;
  }
}

/* ページ固有 */
/* ------------------- */
.text-primary {
  color: #003366;
}

/* 背景 */
[data-bg="blue"] {
  background-color: #e8f4ff;
}

[data-bg="gray"] {
  background-color: #f2f2f2;
}

[data-bg] {
  padding-top: 120px;
  padding-bottom: 120px;
}

[data-bg] .p-page-heading {
  margin-top: 0;
}



/* 実施までの流れ */
/* ====================== */
.s-step__lists {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.s-step__item {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 24px;
  padding: 24px;
  background-color: #fff;
  border-radius: 10px;
}

.s-step__item:not(:first-child)::before {
  content: "";
  max-width: fit-content;
  width: 15px;
  background-image: url("../images/step.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
}

.s-step__name {
  font-size: clamp(1rem, 0.9299rem + 0.299vw, 1.125rem);
  font-weight: 600;
  color: #003366;
  text-align: center;
}

.s-step__img img {
  display: block;
  margin-inline: auto;
}

@media not screen and (min-width: 640px) {
  .s-step__item:not(:first-child)::before {
    margin-inline: auto;
    transform: rotate(90deg);
    top: -38px;
    left: 0;
    bottom: 0;
    width: 15px;
    height: 15px;
  }
}

@media screen and (min-width: 640px) {
  .s-step__item:not(:first-child)::before {
    left: -32px;
    top: 0;
    bottom: 0;
  }
}

@media screen and (min-width: 640px) and (max-width: 896px) {
  .s-step__lists {
    grid-template-columns: repeat(2, 1fr);
  }

  .s-step__item:nth-child(3)::before {
    content: none;
  }

  .s-step__item:nth-child(5)::before {
    content: none;
  }

  .s-step__item:nth-child(7)::before {
    content: none;
  }
}

@media screen and (min-width: 896px) {
  .s-step__lists {
    grid-template-columns: repeat(4, 1fr);
  }

  .s-step__item:nth-child(5)::before {
    content: none;
  }
}