@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-info__item.n-hover {
  pointer-events: none;
}

@media screen and (min-width: 768px) {
  .p-info__item[data-size="large"] {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 40px;
  }

  .p-info__item[data-size="large"] :where(.p-info-item__head) {
    grid-column: 1;
    width: 240px;
    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) {
    grid-column: 2;
    align-self: start;
  }

  .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 .p-info__item {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 0;
  }
}

@media not screen and (min-width: 768px) {
  .p-view-list-button-document {
    width: 100%;
  }
}

/* メインビジュアル */
.p-top {
  position: relative;
  background-image: url("../image/mv.webp");
  background-position: center;
  background-size: cover;
}

@media screen and (min-width: 768px) {
  .p-top {
    background-color: #f0f0f0;
    border-radius: 15px;
    background-attachment: fixed;
  }
}

@media not screen and (min-width: 768px) {
  .p-top {
    background-color: #000000;
    padding: 130px 0 50px;
    border-radius: 10px;
    background-repeat: no-repeat;
  }

  .p-top__heading {
    font-size: 1.7rem;
  }
}

/*============================　
　共通
=============================*/
.l-main p:where(p:not([class])) {
  font-size: 15px;
}

[data-bg] {
  padding-top: 80px;
  padding-bottom: 80px;
}

[data-bg] .p-page-heading {
  margin-top: 0;
}

[data-bg="gray"] {
  background-color: #f2f2f2;
}

[data-bg="blue"] {
  background-color: #e8f4ff;
}

.s-mx-auto {
  margin-inline: auto;
}

.s-fit-mx {
  max-width: fit-content;
  margin-inline: auto;
}

.sec_tit {
  text-align: center;
}

.sec_tit span {
  display: inline;
  background: linear-gradient(transparent 70%, #fee833 70%);
  font-size: clamp(1.5rem, 1.0098rem + 2.0915vw, 2.5rem);
  font-weight: bold;
}

.s-text-lg {
  font-size: clamp(0.9375rem, 0.7843rem + 0.6536vw, 1.25rem);
}

.s-text-xl {
  font-size: clamp(1.125rem, 0.9105rem + 0.915vw, 1.5625rem);
}

.s-text-bg--yellow {
  background-color: #fee833;
}

/*============================　
　個別
=============================*/

/* こんな課題を感じていませんか？ */
/* ------------------- */
.s-nayami__bg {
  position: relative;
  padding-block: 80px;
}

.s-nayami__bg::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  display: block;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.s-nayami__bg[data-bg="gray"]::after {
  background-color: #f2f2f2;
}

.s-nayami__bg[data-bg="blue"]::after {
  background-color: #e8f4ff;
}

.s-nayami__desc {
  font-size: clamp(1.125rem, 0.9105rem + 0.915vw, 1.5625rem);
  font-weight: bold;
  text-align: center;
}

.s-nayami__lists {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.s-nayami__item {
  display: grid;
  gap: 16px;
  padding: 20px 30px;
  box-shadow: 8px 8px 2px #ccc;
  border-radius: 10px;
  background-color: #fff;
}

.s-nayami__item h3 {
  display: grid;
  gap: 20px;
  grid-template-rows: 1fr;
  align-self: center;
  height: 100%;
  align-content: space-between;
}

.s-nayami__item h3::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #003366;
}

.s-nayami__item h3 > span {
  display: grid;
  height: 100%;
  align-items: center;
  color: #003366;
  font-weight: bold;
  text-align: center;
  font-size: clamp(1.125rem, 1.0637rem + 0.2614vw, 1.25rem);
}

.s-nayami__item img {
  width: 100%;
}

@media screen and (min-width: 768px) {
  .s-nayami__lists {
    grid-template-columns: repeat(3, 1fr);
  }

  .s-nayami__item {
    grid-template-rows: subgrid;
    grid-row: span 3;
  }
}

/* HISが解決します */
/* ------------------- */
.s-solution__main {
  display: grid;
  gap: 24px 40px;
}

.s-solution__main img {
  width: 100%;
}

.s-solution__mainText span {
  font-weight: bold;
  font-size: clamp(1.375rem, 0.8235rem + 2.3529vw, 2.5rem);
}

.s-solution__mainText:first-of-type {
  font-size: clamp(1.125rem, 1.0637rem + 0.2614vw, 1.25rem);
}

.s-solution__mainText span span {
  background-color: #003366;
  color: #fff !important;
}

.s-solution__em {
  font-size: clamp(1.125rem, 1.0637rem + 0.2614vw, 1.25rem);
  text-align: center;
  color: #fff;
  font-weight: bold;
  background-color: #003366;
  padding: 30px 30px 32px;
  border-radius: 10px;
}

.s-solution__em span {
  font-size: clamp(1.375rem, 1.1299rem + 1.0458vw, 1.875rem);
  font-weight: bold;
  color: #fee833;
}

@media screen and (min-width: 768px) {
  .s-solution__main {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* 参加者の五感を磨く海外研修 */
/* ------------------- */
.s-training__lists {
  display: grid;
  row-gap: 32px;
}

.s-training__item {
  border: solid 3px #003366;
  border-radius: 10px;
  padding: 10px;
}

.s-training__head {
  display: grid;
  gap: 24px 32px;
  grid-template-columns: 1fr;
}

.s-training__head ul {
  display: grid;
  gap: 16px;
  height: fit-content;
}

.s-training__head li span {
  font-size: 18px;
  color: #003366;
  font-weight: bold;
}

.s-training__head li p:not(:first-child) {
  margin-top: 8px;
}

.s-training__head img {
  width: 100%;
}

.s-training__bodyTitle {
  font-size: clamp(1.125rem, 1.0025rem + 0.5229vw, 1.375rem);
  font-weight: bold;
  color: #003366;
}

.s-training__box {
  padding: 20px;
  background-color: #f3f3f3;
}

.s-training__boxTitle {
  font-size: clamp(1rem, 0.9387rem + 0.2614vw, 1.125rem);
  font-weight: bold;
  color: #003366;
}

.s-training__box ul {
  display: grid;
  gap: 24px;
}

.s-training__box li.grid {
  display: grid;
  gap: 16px 24px;
  grid-template-columns: 1fr;
  align-items: center;
}

.s-training__box li p:not(:first-child) {
  margin-top: 8px;
}

.s-training__box ul.grid {
  display: grid;
  gap: 16px 32px;
  grid-template-columns: 1fr;
}

.s-training__box ul.grid > li {
  background-color: #fff;
  padding: 20px;
}

.s-training__boxImage {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(1, 1fr);
}

@media screen and (min-width: 640px) {
  .s-training__item {
    padding: 30px;
  }

  .s-training__box {
    padding: 30px;
  }
}

@media screen and (min-width: 840px) {
  .s-training__head {
    grid-template-columns: 1fr auto;
  }

  .s-training__box li.grid {
    grid-template-columns: 1fr auto;
  }

  .s-training__box li.grid {
    grid-template-columns: 1fr auto;
  }

  .s-training__boxImage {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 海外研修実施までの流れ */
/* ====================== */
.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("../image/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;
  }
}
