@charset "UTF-8";

/* ==========================================================================
   eラーニング LP — 新規コンポーネント用CSS
   （最終的に service-method.css へマージ予定）
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section
   -------------------------------------------------------------------------- */
.p-service-method__elearning-section {
  padding: 0 0 100px;
  background: url(../images/img-section-bg.jpg) top right / 3200px 646px no-repeat;
}

.p-service-method__elearning-section:not(:has(~ .p-service-method__elearning-section)) {
  padding-bottom: 0;
}

.p-service-method__elearning-section .l-inner {
  position: relative;
  padding-top: 64px;
}

.p-service-method__elearning-section__about {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: inline-block;
  margin: 0;
  padding: 4px 32px;
  border-radius: 0 0 4px 4px;
  background-color: #14307b;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

/* --------------------------------------------------------------------------
   eラーニングライブラリ
   -------------------------------------------------------------------------- */
.p-service-method__elearning-library__title {
  margin: 8px 0 28px;
}

.p-service-method__elearning-library__title__sub {
  display: block;
  margin-bottom: 4px;
  color: #3a5ab0;
  font-size: 1.8rem;
  line-height: 1.5;
}

.p-service-method__elearning-library__title__main {
  display: block;
  color: #0a2265;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-service-method__elearning-library__about {
  margin-bottom: 24px;
  font-size: 1.4rem;
  line-height: calc(22 / 14);
}

.p-service-method__elearning-library__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 84px;
}

.p-service-method__elearning-library__image {
  position: absolute;
  top: 56px;
  right: 60px;
  z-index: 1;
  width: 472px;
  height: 410px;
  overflow: hidden;
  border-radius: 10px;
}

.p-service-method__elearning-library__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-service-method__elearning-library__content__about {
  margin-bottom: 32px;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 2;
  color: #0a2265;
}

.p-service-method__elearning-library__content__about__highlight {
  background: #fcffb1;
}

.p-service-method__elearning-library__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-service-method__elearning-library__list__note {
  margin: 20px 0 0;
  padding-left: 1em;
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: left;
  text-indent: -1em;
}

.p-service-method__elearning-library__list__item {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  background: #fff;
}

.p-service-method__elearning-library__list__item__image {
  flex-shrink: 0;
  align-self: stretch;
  width: 200px;
  margin: 0;
  overflow: hidden;
}

.p-service-method__elearning-library__list__item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-service-method__elearning-library__list__item__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 24px;
}

.p-service-method__elearning-library__list__item__title {
  display: block;
  margin: 0;
  line-height: 1.4;
  text-wrap: wrap;
}

.p-service-method__elearning-library__list__item__title__main {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: #3a5ab0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: wrap;
  overflow-wrap: anywhere;
  line-break: anywhere;
  word-break: normal;
}

.p-service-method__elearning-library__list__item__title__badge {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 0;
  background-color: #f4f9ff;
  color: var(--color-hrmBlue2);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.p-service-method__elearning-library__list__item__title__badge__number {
  margin-right: 2px;
  font-size: 1.4rem;
}

.p-service-method__elearning-library__list__item__about {
  font-size: 1.4rem;
  line-height: calc(22 / 14);
}

.p-service-method__elearning-library__list__item__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.p-service-method__elearning-library__list__item__btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--color-hrmBlue2);
  border-radius: 9999px;
  background: #fff;
  color: var(--color-hrmBlue2);
  font-size: 1.3rem;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.p-service-method__elearning-library__list__item__btn::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  transform: rotate(-45deg);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
}

.p-service-method__elearning-library__list__item__btn.-feature {
  border-color: var(--color-hrmBlue2);
  background: var(--color-hrmBlue2);
  color: #fff;
}

/* --------------------------------------------------------------------------
   サービスカード（バナー型）
   -------------------------------------------------------------------------- */
.p-service-method__elearning-service__list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-service-method__elearning-service__list__item {
  width: 100%;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fff;
}

.p-service-method__elearning-service__list__item__link {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 200px;
  color: inherit;
  text-decoration: none;
}

.p-service-method__elearning-service__list__item__image {
  flex-shrink: 0;
  align-self: stretch;
  width: 360px;
  margin: 0;
  overflow: hidden;
}

.p-service-method__elearning-service__list__item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.p-service-method__elearning-service__list__item__content {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 24px;
}

.p-service-method__elearning-service__list__item__header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.p-service-method__elearning-service__list__item__logo {
  flex-shrink: 0;
  width: 120px;
  margin: 0;
}

.p-service-method__elearning-service__list__item__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.p-service-method__elearning-service__list__item__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.4;
  text-wrap: wrap;
}

.p-service-method__elearning-service__list__item__title__sub {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 4px;
  color: var(--color-hrmBlue2);
  font-size: 1.6rem;
  line-height: 1.5;
  text-wrap: wrap;
  overflow-wrap: anywhere;
  line-break: anywhere;
  word-break: normal;
}

.p-service-method__elearning-service__list__item__title__main {
  display: block;
  max-width: 100%;
  color: #163b86;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.4;
  line-break: strict;
  overflow-wrap: break-word;
}

.p-service-method__elearning-service__list__item__title__phrase {
  white-space: nowrap;
}

.p-service-method__elearning-service__list__item__about {
  margin-bottom: 16px;
  font-size: 1.4rem;
  line-height: calc(24 / 14);
}

.p-service-method__elearning-service__list__item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-service-method__elearning-service__list__item__tags__item {
  padding: 2px 24px;
  border: 1px solid var(--color-hrmBlue2);
  border-radius: 9999px;
  background: #fff;
  color: var(--color-hrmBlue2);
  font-size: 1.3rem;
  line-height: 1.5;
}

.p-service-method__elearning-service__list__item__cta {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  align-self: stretch;
  width: 200px;
  padding: 24px 12px 24px 40px;
  background: #0a2265;
  clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
  color: #fff;
  text-align: center;
}

.p-service-method__elearning-service__list__item__cta__text {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: calc(22 / 14);
}

.p-service-method__elearning-service__list__item__cta::after {
  display: block;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22_%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC_2%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2028%2014%22%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill%3Anone%3Bstroke%3A%2314307b%3Bstroke-linecap%3Around%3Bstroke-linejoin%3Around%3Bstroke-width%3A2px%3B%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22_%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC_1-2%22%3E%3Cpolyline%20class%3D%22cls-1%22%20points%3D%221%2013%2027%2013%2015%201%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/18px 9px no-repeat;
  content: '';
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1349.98px) {
  .p-service-method__elearning-library__image {
    top: 40px;
    right: -100px;
  }

  .p-service-method__elearning-service__list__item__image {
    width: 280px;
  }

  .p-service-method__elearning-service__list__item__content {
    padding-right: 24px;
  }

  .p-service-method__elearning-service__list__item__title__phrase {
    white-space: normal;
  }

  .p-service-method__elearning-service__list__item__title__main {
    font-size: 2.8rem;
  }
}

@media (max-width: 1159.98px) {
  .p-service-method__elearning-library__title {
    width: 50%;
  }

  .p-service-method__elearning-library__title__sub {
    font-size: 1.4rem;
    white-space: nowrap;
  }

  .p-service-method__elearning-library__title__main {
    font-size: 3.6rem;
    white-space: nowrap;
  }

  .p-service-method__elearning-library__about {
    width: 50%;
  }

  .p-service-method__elearning-library__btns {
    width: 50%;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .p-service-method__elearning-library__image {
    top: 56px;
    right: auto;
    left: 50%;
    width: 50%;
    height: auto;
  }

  .p-service-method__elearning-library__image img {
    height: auto;
    object-fit: unset;
  }

  .p-service-method__elearning-library__list {
    gap: 16px;
  }

  .p-service-method__elearning-library__list__item {
    flex-direction: column;
  }

  .p-service-method__elearning-library__list__item__image {
    align-self: auto;
    width: 100%;
    height: 200px;
  }

  .p-service-method__elearning-service__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .p-service-method__elearning-service__list__item {
    margin: 0;
    border-radius: 5px;
  }

  .p-service-method__elearning-service__list__item__link {
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }

  .p-service-method__elearning-service__list__item__image {
    flex-shrink: 0;
    align-self: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 200;
  }

  .p-service-method__elearning-service__list__item__content {
    flex: 1;
    padding: 14px 14px 24px;
  }

  .p-service-method__elearning-service__list__item__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    align-items: start;
    margin-bottom: 8px;
  }

  .p-service-method__elearning-service__list__item__header:not(:has(.p-service-method__elearning-service__list__item__logo)) {
    grid-template-columns: 1fr;
  }

  .p-service-method__elearning-service__list__item__header:not(:has(.p-service-method__elearning-service__list__item__logo)) .p-service-method__elearning-service__list__item__title__sub {
    grid-column: 1;
  }

  .p-service-method__elearning-service__list__item__title {
    display: contents;
  }

  .p-service-method__elearning-service__list__item__logo {
    grid-row: 1;
    grid-column: 1;
    width: 72px;
  }

  .p-service-method__elearning-service__list__item__title__sub {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    min-width: 0;
    font-size: 1.8rem;
    line-height: calc(44 / 36);
    text-wrap: wrap;
    overflow-wrap: anywhere;
    line-break: anywhere;
    margin-bottom: 0;
  }

  .p-service-method__elearning-service__list__item__title__main {
    grid-row: 2;
    grid-column: 1 / -1;
    line-height: calc(4 / 3);
  }

  .p-service-method__elearning-service__list__item__title__phrase {
    white-space: normal;
  }

  .p-service-method__elearning-service__list__item__about {
    margin-bottom: 12px;
    font-size: 1.4rem;
    line-height: calc(22 / 14);
  }

  .p-service-method__elearning-service__list__item__tags {
    gap: 4px;
  }

  .p-service-method__elearning-service__list__item__tags__item {
    padding: 2px 18px;
    font-size: 1.0rem;
  }

  .p-service-method__elearning-service__list__item__cta {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-self: auto;
    width: 100%;
    padding: 30px 16px 20px;
    clip-path: polygon(0 0, 100% 24px, 100% 100%, 0 100%);
    gap: 12px;
  }

  .p-service-method__elearning-service__list__item__cta__text {
    text-align: center;
  }
}

@media (max-width: 812.98px) {
  .p-service-method__elearning-section {
    padding: 0 0 60px;
    background-size: 1600px 323px;
  }

  .p-service-method__elearning-section .l-inner {
    padding-top: 0;
  }

  .p-service-method__elearning-section__about {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 20px;
    padding: 6px 20px;
  }

  .p-service-method__elearning-library__title {
    width: 100%;
    text-align: center;
  }

  .p-service-method__elearning-library__title__sub {
    white-space: normal;
  }

  .p-service-method__elearning-library__title__main {
    font-size: 2.8rem;
    white-space: normal;
  }

  .p-service-method__elearning-library__about {
    width: 100%;
    font-size: 1.6rem;
  }

  .p-service-method__elearning-library__content__about {
    font-size: 1.8rem;
  }

  .p-service-method__elearning-library__btns {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 50px;
  }

  .p-service-method__elearning-library__btns .c-btn {
    width: 100%;
  }

  .p-service-method__elearning-library__image {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 300px;
    height: auto;
    margin: 0 auto 24px;
  }

  .p-service-method__elearning-library__image img {
    height: auto;
    object-fit: unset;
  }

  .p-service-method__elearning-library__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .p-service-method__elearning-library__list__note {
    margin-top: 12px;
  }

  .p-service-method__elearning-library__list__item {
    flex-direction: column;
    border-radius: 5px;
  }

  .p-service-method__elearning-library__list__item__image {
    width: 100%;
    height: 160px;
  }

  .p-service-method__elearning-library__list__item__content {
    padding: 14px 12px 16px;
  }

  .p-service-method__elearning-library__list__item__btns {
    flex-direction: column-reverse;
  }

  .p-service-method__elearning-library__list__item__btn {
    justify-content: center;
  }

  .p-service-method__elearning-service__list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .p-service-method__elearning-service__list__item__link {
    flex-direction: column;
    min-height: 0;
    height: auto;
  }

  .p-service-method__elearning-service__list__item__image {
    align-self: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 200;
  }

  .p-service-method__elearning-service__list__item__header {
    flex-direction: column;
    gap: 6px 4px;
  }

  .p-service-method__elearning-service__list__item__logo {
    width: 100px;
  }

  .p-service-method__elearning-service__list__item__cta {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 30px 20px 18px;
    clip-path: polygon(0 0, 100% 24px, 100% 100%, 0 100%);
    gap: 12px;
  }

  .p-service-method__elearning-service__list__item__cta__text {
    text-align: center;
  }

  .p-service-method__elearning-service__list__item__cta::after {
    width: 34px;
    height: 34px;
    background-size: 16px 8px;
  }
}

/* --------------------------------------------------------------------------
   Hover
   -------------------------------------------------------------------------- */
@media (hover: hover) {
  .p-service-method__elearning-library__list__item__btn:hover {
    background: var(--color-hrmBlue2);
    color: #fff;
  }

  .p-service-method__elearning-library__list__item__btn.-feature:hover {
    opacity: 0.85;
  }

  .p-service-method__elearning-service__list__item__link:hover .p-service-method__elearning-service__list__item__image img {
    transform: scale(1.05);
  }

  .p-service-method__elearning-service__list__item__link:hover .p-service-method__elearning-service__list__item__title__main {
    opacity: 0.85;
  }

  .p-service-method__elearning-service__list__item__link:hover .p-service-method__elearning-service__list__item__cta {
    background: #0d2d7a;
  }
}
