/* ======================================
対象テンプレート：index.php
====================================== */
/* ==========================================================================
   FV
========================================================================== */

.home-fv {
  position: relative;
  /* height: clamp(640px, 49.74vw, 955px); */
  height: clamp(640px, calc(17.14vw + 573.14px), 820px);
  overflow: hidden;
  margin-block-start: 88px;

  background-image: url("/_pack/img/renew/fv-bg-pc.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.home-fv__inner {
  position: relative;
  width: min(100%, 1780px);
  height: 100%;
  margin-inline: auto;
}
/* FVオープニング
----------------------------------------------- */

.home-fv-intro {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.home-fv-intro__image {
  display: block;
  width: min(520px, 70vw);
  height: auto;
  opacity: 0;
}

@media screen and (max-width: 1280px) {
  .home-fv-intro {
    align-items: start;
    padding-top: 180px;
  }

  .home-fv-intro__image {
    width: min(330px, 84vw);
  }

  /* オープニング終了まで付箋を停止 */
  .home-fv-card-marquee__track {
    animation-play-state: paused;
  }

  .home-fv.is-card-animation-start .home-fv-card-marquee__track {
    animation-play-state: running;
  }
}
/* --------------------------------------------------------------------------
   FVテキスト
-------------------------------------------------------------------------- */

.home-fv__lead {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 2;
  width: 100%;
  margin: 0;
  color: var(--color-black);
  font-family: var(--font-family-zen);
  font-size: clamp(16px, 1.15vw, 22px);
  font-weight: 700;
  text-align: center;

  transform: translate(-50%, -50%);
}

.home-fv__lead .large {
  display: inline;
  padding: 0 4px 2px;

  color: var(--color-red);
  font-size: clamp(23px, 1.67vw, 32px);

  background: linear-gradient(transparent 70%, #fff100 0%);
}

.home-fv__lead .small {
  display: inline-block;
  margin-block-end: 12px;

  font-family: var(--font-family-base);
  font-size: clamp(12px, 0.84vw, 16px);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   PC版カード
-------------------------------------------------------------------------- */

.home-fv-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-fv-card {
  position: absolute;
  z-index: 1;
  will-change: transform, opacity;
}

/*
 * 画像幅 ÷ 基準となるコンテンツ幅1780px
 * でカード幅を割合指定
 */
.home-fv-card--01 {
  top: 3%;
  left: 13%;
  width: 20.12%;
}

.home-fv-card--02 {
  top: 8%;
  left: 38%;
  width: 24.5%;
}

.home-fv-card--03 {
  top: 5%;
  right: 9%;
  width: 24.27%;
}

.home-fv-card--04 {
  top: 40%;
  left: 0;
  width: 24.44%;
  /* top: 39%;
  left: 0;
  width: 19.44%; */
}

.home-fv-card--05 {
  /* bottom: 13%;
  left: 17%;
  width: 20.68%; */
  top: 34%;
  right: -1%;
  width: 23%;
}

.home-fv-card--06 {
  bottom: 14%;
  left: 23%;
  width: 20.62%;
}

.home-fv-card--07 {
  /* right: 13%;
  bottom: 12%;
  width: 26.69%; */
  right: 22%;
  bottom: 12%;
  width: 27%;
}

.home-fv-card__link,
.home-fv-card__picture,
.home-fv-card__image {
  display: block;
  width: 100%;
}

.home-fv-card__link {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.home-fv-card__link:hover {
  filter: brightness(1.05);
  transform: translateY(-3px);
}

.home-fv-card__image {
  height: auto;
}

.home-fv-story {
  background-image: url(/_pack/img/renew/home-fv-story-bg-pc.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.home-fv-story__label {
  background-color: var(--color-red);
  color: var(--color-white);
  font-size: clamp(14px, calc(0.57vw + 11.77px), 20px);
  font-weight: 700;
  text-align: center;
  display: inline-block;
  position: absolute;
  bottom: 0;
  left: clamp(20px, calc(9.71vw + -17.89px), 122px);
  padding-block: 10px;
  padding-inline: 16px;
  border-radius: 15px 15px 0 0;
}

.home-fv-story__inner {
  position: relative;
  padding-block: 20px;
  margin-inline: auto;
  max-width: 1795px;
  padding-inline: 70px;
}

@media screen and (max-width: 840px) {
  .home-fv-story__inner {
    padding-inline: 47px 0;
    padding-block: 14px;
  }
}
.home-fv-story__image {
  aspect-ratio: 480 / 320;
  overflow: hidden;
  position: relative;
}
.home-fv-story__image:after {
  content: "";
  position: absolute;
  width: 210px;
  height: 40.19px;
  left: 0px;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #000000 100%);
  mix-blend-mode: multiply;
}

.home-fv-story__company {
  position: absolute;
  display: flex;
  gap: 7px;
  bottom: 0;
  padding: 6px;
  left: 0;
  z-index: 2;
  font-feature-settings: "palt";
  color: var(--color-white);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.home-fv-story__company .icon {
  background-image: url(/_pack/img/renew/icon-arrow-circle.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 13px;
  height: 13px;
  display: block;
}

.home-fv-story__image-file {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-fv-story__button {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  background-image: url(/_pack/img/renew/icon-home-fv-swiper.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: block;
}

.home-fv-story__button--prev {
  left: 0;
}

@media screen and (max-width: 840px) {
  .home-fv-story__button--prev {
    left: 11px;
  }
}
.home-fv-story__button--next {
  right: 0;
  transform: rotateY(180deg) translateY(-50%);
}
@media screen and (max-width: 840px) {
  .home-fv-story__button--next {
    display: none;
  }
}
.home-fv-client-logo {
  width: 100%;
  padding-block: 16px;
  overflow: hidden;
}

.home-fv-client-logo__inner {
  display: flex;
  width: max-content;
  animation: home-fv-client-logo-scroll 30s linear infinite;
  will-change: transform;
}

.home-fv-client-logo__image {
  display: block;
  width: 1920px;
  max-width: none;
  height: auto;
  flex-shrink: 0;
}

@media screen and (max-width: 840px) {
  .home-fv-client-logo__image {
    width: 720px;
  }
}

@keyframes home-fv-client-logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* 動きを減らす設定のユーザーには停止 */
@media (prefers-reduced-motion: reduce) {
  .home-fv-client-logo__inner {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   JSで生成する1280px以下用マーキー
-------------------------------------------------------------------------- */

.home-fv-card-marquee {
  display: none;
}

/* 背景の英字 */

.home-fv-bg-text {
  position: absolute;
  bottom: 52px;
  left: -50px;

  width: 100%;
  margin: 0;

  color: #e3e8ec;
  font-family: var(--font-family-futura);
  font-size: clamp(70px, 6.15vw, 118px);
  font-weight: 500;
  line-height: 1;

  mix-blend-mode: multiply;
}

@media screen and (max-width: 840px) {
  .home-fv-bg-text {
    display: none;
  }
}

/* ==========================================================================
   1280px以下
========================================================================== */

@media screen and (max-width: 1280px) {
  .home-fv {
    height: auto;
    min-height: 777px;
    padding-block: 60px 70px;

    background-image: url("/_pack/img/renew/fv-bg-pc.webp");
    background-color: var(--color-white);
  }

  .home-fv__inner {
    width: 100%;
    height: auto;
  }

  .home-fv__lead {
    position: relative;
    top: auto;
    left: auto;

    width: min(100% - 40px, 720px);
    margin: 0 auto 45px;

    font-size: clamp(14px, 2vw, 20px);
    line-height: 1.8;

    transform: none;
  }

  .home-fv__lead .small {
    margin-block-end: 10px;
    font-size: clamp(12px, 1.5vw, 16px);
  }

  .home-fv__lead .large {
    display: inline-block;
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.5;
  }

  /*
   * PC用の元リストは非表示。
   * JSで生成した2段マーキーを表示。
   */
  .home-fv__inner > .home-fv-card-list {
    display: none;
  }

  .home-fv-card-marquee {
    position: relative;
    z-index: 2;

    display: grid;
    gap: 20px;
    width: 100%;
  }

  .home-fv-card-marquee__row {
    width: 100%;
    overflow: hidden;
  }

  .home-fv-card-marquee__track {
    display: flex;
    width: max-content;
    will-change: transform;
  }

  .home-fv-card-marquee__list {
    display: flex;
    flex: none;
    gap: 16px;

    margin: 0;
    padding: 0 16px 0 0;
    list-style: none;
  }

  /* .home-fv-card-marquee .home-fv-card {
    position: relative;
    inset: auto;
    flex: 0 0 clamp(230px, 62vw, 330px);
    width: clamp(230px, 62vw, 330px);
  }

    .home-fv-card-marquee .home-fv-card__picture {
    display: flex;
    align-items: flex-end;

    width: 100%;
    aspect-ratio: 483 / 323;
  }

  .home-fv-card-marquee .home-fv-card__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center bottom;
  } */

  .home-fv-card-marquee .home-fv-card {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: auto;
  }

  .home-fv-card-marquee .home-fv-card__link {
    width: auto;
  }

  .home-fv-card-marquee .home-fv-card__picture {
    display: block;
    width: auto;
    height: clamp(155px, 41vw, 220px);
    aspect-ratio: auto;
  }

  .home-fv-card-marquee .home-fv-card__image {
    display: block;
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: contain;
  }
  /* 上段：右から左 */

  .home-fv-card-marquee__row--forward .home-fv-card-marquee__track {
    animation: home-fv-card-scroll-forward 22s linear infinite;
  }

  /* 下段：左から右 */

  .home-fv-card-marquee__row--reverse .home-fv-card-marquee__track {
    animation: home-fv-card-scroll-reverse 28s linear infinite;
  }

  .home-fv-bg-text {
    bottom: 0;
    left: 0;

    overflow: hidden;

    font-size: clamp(52px, 13vw, 100px);
    white-space: nowrap;
  }
}

/* 上段：0 → 左へ1セット分移動 */

@keyframes home-fv-card-scroll-forward {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* 下段：左へ1セット分ずらした状態 → 元の位置 */

@keyframes home-fv-card-scroll-reverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* ==========================================================================
   SP
========================================================================== */

@media screen and (max-width: 840px) {
  .home-fv {
    min-height: 777px;
    margin-block-start: 60px;
    background-image: url("/_pack/img/renew/fv-bg-sp.webp");
    padding-block: 100px 65px;
  }

  .home-fv__lead {
    width: calc(100% - 30px);
    margin-block-end: 35px;
    font-size: 14px;
  }

  .home-fv__lead .small {
    font-size: 12px;
    line-height: 1.7;
  }

  .home-fv__lead .large {
    font-size: 20px;
  }

  .home-fv-card-marquee {
    gap: 16px;
  }

  .home-fv-card-marquee__list {
    gap: 12px;
    padding-inline-end: 12px;
  }

  .home-fv-card-marquee .home-fv-card {
    position: relative;
    inset: auto;
  }
}

/* 動きを減らす設定 */

@media (prefers-reduced-motion: reduce) {
  .home-fv-card-marquee__track {
    animation-play-state: paused !important;
  }
}
/* ============================================================================
FV下ニュース
============================================================================ */
.home-fv-news {
  background-color: var(--color-red);
}

.home-fv-news__inner {
  padding-block: 25px;
}

.home-fv-news__layout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 45px;
}

@media screen and (max-width: 840px) {
  .home-fv-news__layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.home-fv-news__title {
  color: var(--color-white);
  font-size: clamp(16px, calc(2.29vw + 7.09px), 40px);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-family-mon);
}
.home-fv-news__title:before {
  width: 17px;
  height: 49px;
  display: block;
  background-color: var(--color-white);
  content: "";
  transform: skewX(-15deg);
}
@media screen and (max-width: 840px) {
  .home-fv-news__title:before {
    width: 6px;
    height: 21px;
  }
}

.home-fv-news__label {
  background-color: #000;
  display: inline-block;
  padding-inline: 13px;
  min-width: clamp(90px, calc(4.48vw + 72.54px), 137px);
  color: var(--color-white);
  font-size: clamp(9px, calc(0.48vw + 7.14px), 14px);
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
}

.home-fv-news__item {
  transition: 0.3s ease;
}
@media screen and (max-width: 840px) {
  .home-fv-news__item a {
    display: flex;
    align-items: center;
    gap: 20px;
  }
}
.home-fv-news__item:hover {
  transform: translateY(-10px);
}

.home-fv-news__item:not(:last-child) {
  margin-block-end: 10px;
}
@media screen and (max-width: 840px) {
  .home-fv-news__item:not(:last-child) {
    margin-block-end: 6px;
  }
}
.home-fv-news__text {
  color: var(--color-white);
  font-weight: 500;
  font-size: clamp(12px, calc(0.57vw + 9.77px), 18px);
  display: inline-block;
  margin-inline-start: 30px;
}

@media screen and (max-width: 840px) {
  .home-fv-news__text {
    margin-inline-start: 0;
    line-height: 1;
  }
}
/* ============================================================================
企業を変えた新着ストーリー
============================================================================ */

.story {
  background-color: var(--color-beige);
  position: relative;
}

.story__bg {
  position: absolute;
  display: block;
  width: 100%;
}

.story__bg--top {
  left: 0;
  top: 0;
  max-width: clamp(117px, calc(13.62vw + 63.89px), 260px);
}
.story__bg--bottom {
  right: 0;
  bottom: 0;
  max-width: 446px;
}

@media screen and (max-width: 840px) {
  .story__bg--bottom {
    display: none;
  }
}

.story__inner {
  padding-block: 100px;
}

@media screen and (max-width: 840px) {
  .story__inner {
    padding-block: 60px;
  }
}

.story__body {
  margin-top: 55px;
  padding: 76px 40px;
  border-radius: 4px;
  position: relative;
  background-color: var(--color-white);
}

@media screen and (max-width: 840px) {
  .story__body {
    margin-top: 35px;
    padding: 25px 20px 40px;
  }
}

/* 記事一覧
----------------------------------------------- */

.story-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block-end: 65px;
}

@media screen and (max-width: 840px) {
  .story-list {
    display: block;
    padding-block-end: 0;
  }
}

/* 記事カード
----------------------------------------------- */

.story-item {
  min-width: 0;
  padding: 40px 0;
  position: relative;
  border-bottom: 1px solid #b7b7b7;
}

@media screen and (max-width: 840px) {
  .story-item {
    padding: 40px 0;
  }
}

/* 偶数位置の左カラム */
.story-item:nth-child(even) {
  padding-right: 30px;
}

@media screen and (max-width: 840px) {
  .story-item:nth-child(even) {
    padding-right: 0;
  }
}

/* 3件目以降の右カラム */
.story-item:nth-child(odd):not(:first-child) {
  padding-left: 30px;
}

@media screen and (max-width: 840px) {
  .story-item:nth-child(odd):not(:first-child) {
    padding-left: 0;
  }
}

/* 最後の2件は下線なし */
.story-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

@media screen and (max-width: 840px) {
  .story-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid #b7b7b7;
  }

  .story-item:last-child {
    border-bottom: 0;
  }
}

.story-item__anchor {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  gap: 18px;
  height: 100%;
  color: var(--color-black);
  text-decoration: none;
}

@media screen and (max-width: 840px) {
  .story-item__anchor {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.story-item__company {
  font-size: 15px;
}

.story-item__image {
  aspect-ratio: 384 / 244;
  overflow: hidden;
  background-color: var(--color-gray);
}

.story-item__image-file {
  display: block;
  transition: transform 0.4s ease;
}

.story-item__anchor:hover .story-item__image-file {
  transform: scale(1.04);
}

.story-item__body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.story-item__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

@media screen and (max-width: 840px) {
  .story-item__title {
    font-size: 17px;
  }
}

.story-item__text {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
@media screen and (max-width: 840px) {
  .story-item__text {
    margin-block: 6px 15px;
  }
}
.story-item__date {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
}
@media screen and (max-width: 840px) {
  .story-item__date {
    padding-top: 0;
  }
}

.story-item__icon {
  position: absolute;
  width: 60px;
  height: 60px;
  right: 0;
  bottom: 16px;
}

/* 右下の「詳しく見る」 */
/* .story-item__detail {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-red);
  border-radius: 50%;
  color: var(--color-black);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

@media screen and (max-width: 840px) {
  .story-item__detail {
    width: 44px;
    height: 44px;
  }
} */

/* 1件目
----------------------------------------------- */

.story-item:first-child {
  grid-column: 1 / -1;
  padding-top: 0;
  padding-bottom: 45px;
}

@media screen and (max-width: 840px) {
  .story-item:first-child {
    padding-bottom: 40px;
  }
}

.story-item:first-child .story-item__anchor {
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

@media screen and (max-width: 840px) {
  .story-item:first-child .story-item__anchor {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.story-item:first-child .story-item__body {
  min-height: 100%;
  padding-block: 20px;
}

@media screen and (max-width: 840px) {
  .story-item:first-child .story-item__body {
    padding-block: 0;
  }
}

.story-item:first-child .story-item__title {
  font-size: 22px;
}

@media screen and (max-width: 840px) {
  .story-item:first-child .story-item__title {
    font-size: 17px;
  }
}

.story-item:first-child .story-item__text {
  margin-top: 24px;
  -webkit-line-clamp: 4;
}
@media screen and (max-width: 840px) {
  .story-item:first-child .story-item__text {
    margin-top: 6px;
  }
}

.story-item:first-child .story-item__date {
  margin-top: 25px;
  padding-top: 0;
}

@media screen and (max-width: 840px) {
  .story-item:first-child .story-item__date {
    margin-top: 0;
  }
}
.story-item__button {
  align-self: flex-start;
  margin-top: 12px;
}

@media screen and (max-width: 840px) {
  .story-item__button {
    max-width: 150px;
    font-size: 15px;
    margin-inline: auto;
  }
  .story-item__button.c-button-rounded--red:after {
    display: none;
  }
}

.story-item:not(:first-child) .story-item__button {
  display: none;
}

/* 下部の事例一覧ボタン
----------------------------------------------- */

.story-more {
  max-width: 600px;
  margin-inline: auto;
  display: block;
  transition: 0.3s ease;
}

.story-more:hover {
  transform: translateY(-10px);
}

.story-more__lead {
  width: 100%;
  padding: 4px 15px;
  border-radius: 100px;
  background-color: var(--color-white);
  color: var(--color-black);
  font-size: 13px;
  font-weight: 700;
}

.story-more__text {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 700;
}

@media screen and (max-width: 840px) {
  .story-more__text {
    font-size: 17px;
  }
}
/* ============================================================================
ランキング
============================================================================ */
/* // Story Ranking //
----------------------------------------------- */

.story-ranking {
  background-color: var(--color-beige);
}

.story-ranking__inner {
  padding-block: 40px 148px;
  max-width: 1514px;
  margin-inline: auto;
}

@media screen and (max-width: 840px) {
  .story-ranking__inner {
    padding-block: 60px;
  }
}

/* タブ
----------------------------------------------- */

.story-ranking__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 70px;
  border-bottom: 1px solid #aaa;
}

@media screen and (max-width: 840px) {
  .story-ranking__tabs {
    margin-top: 25px;
  }
}

.story-ranking__tab {
  position: relative;
  appearance: none;
  padding: 0 20px 16px;
  border: 0;
  background: transparent;
  color: #aaa;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-family-zen);
  transition: color 0.3s ease, opacity 0.3s ease;
}

@media screen and (max-width: 840px) {
  .story-ranking__tab {
    padding: 0 10px 12px;
    font-size: 15px;
  }
}

.story-ranking__tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background-color: transparent;
  content: "";
  transition: background-color 0.3s ease;
}

.story-ranking__tab.is-active {
  color: var(--color-red);
}

.story-ranking__tab.is-active::after {
  background-color: var(--color-red);
}

.story-ranking__tab:hover {
  color: var(--color-red);
}

/* パネル
----------------------------------------------- */

.story-ranking__panel {
  margin-top: 66px;
}

@media screen and (max-width: 840px) {
  .story-ranking__panel {
    margin-top: 30px;
  }
}

.story-ranking__panel[hidden] {
  display: none;
}

/* ランキング一覧
----------------------------------------------- */

.story-ranking-list {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (max-width: 840px) {
  .story-ranking-list {
    gap: 15px;
  }
}

/* ランキングカード
----------------------------------------------- */

.story-ranking-item {
  background-color: var(--color-white);
}

.story-ranking-item__anchor {
  position: relative;
  display: grid;
  grid-template-columns: 95px minmax(240px, 300px) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  min-height: 235px;
  padding: 25px 80px 25px 35px;
  color: var(--color-black);
  text-decoration: none;
}

@media screen and (max-width: 840px) {
  .story-ranking-item__anchor {
    display: grid;
    grid-template-columns:
      minmax(110px, 36%)
      minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 10px 14px;
    align-items: start;

    min-height: auto;
    padding: 20px 15px;
  }
}

/* 順位
----------------------------------------------- */

.story-ranking-item__rank {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

@media screen and (max-width: 840px) {
  .story-ranking-item__rank {
    grid-column: 1;
    grid-row: 1;

    align-self: auto;
    margin: 0;
    padding: 0;

    font-size: 14px;
    text-align: center;
  }
}

.story-ranking-item__rank span {
  margin-inline: 4px;
  font-size: 42px;
  font-weight: 700;
}

@media screen and (max-width: 840px) {
  .story-ranking-item__rank span {
    display: inline;
    margin-inline: 3px;
    font-size: 30px;
  }
}

.story-ranking-item:nth-child(1) .story-ranking-item__rank span {
  color: #ba9800;
}

.story-ranking-item:nth-child(2) .story-ranking-item__rank span {
  color: #999;
}

.story-ranking-item:nth-child(3) .story-ranking-item__rank span {
  color: #bd4c18;
}

/* サムネイル
----------------------------------------------- */

.story-ranking-item__image {
  width: 100%;
  aspect-ratio: 384 / 244;
  overflow: hidden;
  background-color: var(--color-gray);
}
@media screen and (max-width: 840px) {
  .story-ranking-item__image {
    grid-column: 1;
    grid-row: 2;

    width: 100%;
    aspect-ratio: 384 / 244;
  }
}
.story-ranking-item__image-file {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.story-ranking-item__anchor:hover .story-ranking-item__image-file {
  transform: scale(1.04);
}

/* 本文
----------------------------------------------- */

.story-ranking-item__body {
  min-width: 0;
}
@media screen and (max-width: 840px) {
  .story-ranking-item__body {
    grid-column: 2;
    grid-row: 1 / 3;

    min-width: 0;
    padding-right: 0;
  }
}

.story-ranking-item__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

@media screen and (max-width: 840px) {
  .story-ranking-item__title {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
  }
}

.story-ranking-item__text {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media screen and (max-width: 840px) {
  .story-ranking-item__text {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.1;
    -webkit-line-clamp: 5;
  }
}

/* 詳細アイコン
----------------------------------------------- */

.story-ranking-item__icon {
  position: absolute;
  right: 35px;
  bottom: 35px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-red);
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-black);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

@media screen and (max-width: 840px) {
  .story-ranking-item__icon {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}
/* ============================================================================
サービス 共通
============================================================================ */
.service-head {
  position: relative;
}
.service-head__bg {
  position: absolute;
  width: 100%;
  max-width: clamp(128px, calc(13.71vw + 74.51px), 272px);
  right: 34px;
  top: 20px;
}
@media screen and (max-width: 840px) {
  .service-head__bg {
    top: -65px;
  }
}
/* ============================================================================
サービス
============================================================================ */
/* // Service //
----------------------------------------------- */

.tc-service {
  background-color: var(--color-white);
}

.tc-service__head {
  padding-block: 67px;
  background-color: var(--color-red);
  color: var(--color-white);
}

@media screen and (max-width: 840px) {
  .tc-service__head {
    padding-block: 50px;
  }
}

.tc-service__label {
  margin: 0;
  font-family: var(--font-family-mon);
  font-size: 16px;
  font-weight: 700;
}

.tc-service__title {
  font-family: var(--font-family-zen);
  margin-top: 11px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
}

@media screen and (max-width: 840px) {
  .tc-service__title {
    font-size: 28px;
  }
}

.tc-service__lead {
  margin-top: 27px;
  font-size: 17px;
  line-height: 1.5;
}

@media screen and (max-width: 840px) {
  .tc-service__lead {
    margin-top: 18px;
    font-size: 13px;
  }

  .tc-service__lead br {
    display: none;
  }
}

.tc-service__body {
  padding-block: 170px 120px;
}

@media screen and (max-width: 840px) {
  .tc-service__body {
    padding-block: 50px 80px;
  }
}

/* 絞り込み
----------------------------------------------- */

.tc-service-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

@media screen and (max-width: 840px) {
  .tc-service-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 8px;
  }
}

.tc-service-filter__button {
  position: relative;
  appearance: none;
  min-height: 50px;
  padding: 10px 0;
  border: 1px solid #999;
  background-color: var(--color-white);
  color: var(--color-black);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease,
    color 0.3s ease;
}

@media screen and (max-width: 840px) {
  .tc-service-filter__button {
    min-height: 35px;
    padding: 0;
    font-size: 12px;
  }
}

.tc-service-filter__button:hover,
.tc-service-filter__button.is-active {
  border-color: var(--color-red);
  background-color: var(--color-red);
  color: var(--color-white);
}

.tc-service-filter__button.is-active::after {
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 18px;
  height: 9px;
  background-color: var(--color-red);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
  transform: translateX(-50%);
}

/* パネル
----------------------------------------------- */

.tc-service-panels {
  margin-top: 100px;
}

@media screen and (max-width: 840px) {
  .tc-service-panels {
    margin-top: 45px;
  }
}

.tc-service-group[hidden] {
  display: none;
}

.tc-service-group__title {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 0 0 50px;
  color: var(--color-red);
  font-size: clamp(23px, calc(0.67vw + 20.4px), 30px);
  font-family: var(--font-family-zen);
  font-weight: 700;
  line-height: 1.5;
}

@media screen and (max-width: 840px) {
  .tc-service-group__title {
    gap: 10px;
    margin-bottom: 15px;
  }
}

.tc-service-group__title::before {
  flex-shrink: 0;
  width: 12px;
  height: 38px;
  background-color: var(--color-red);
  content: "";
  transform: skewX(-15deg);
}

@media screen and (max-width: 840px) {
  .tc-service-group__title::before {
    width: 9px;
    height: 30px;
  }
}

.tc-service-group:last-child {
  border-bottom: none;
}
/* サービス一覧
----------------------------------------------- */

/* .tc-service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 50px 25px;
}

@media screen and (max-width: 840px) {
  .tc-service-list {
    grid-template-columns: 1fr;
    gap: 35px;
  }
} */
.tc-service-list__scroll {
  width: auto;
  margin-top: 50px;
  margin-right: calc(50% - 50vw);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tc-service-list__track {
  display: flex;
  gap: 50px;
  width: 100%;
  /* padding-right: 40px; */
  padding-bottom: 20px;
}

@media screen and (max-width: 840px) {
  .tc-service-list__track {
    gap: 20px;
  }
}

.tc-service-list__scroll .tc-service-card {
  flex: 0 0 min(386px, 80vw);
  width: min(386px, 80vw);
}
/* サービスカード
----------------------------------------------- */

.tc-service-card {
  display: flex;
  gap: 40px;
  flex-direction: column;
  min-width: 0;
}

.tc-service-card__image {
  width: 100%;
  aspect-ratio: 348 / 235;
  overflow: hidden;
  background-color: var(--color-gray);
}

.tc-service-card__image-file {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tc-service-card:hover .tc-service-card__image-file {
  transform: scale(1.04);
}

.tc-service-card__body {
  display: flex;
  flex: 1;
  gap: 20px;
  flex-direction: column;
}

.tc-service-card__logo {
  width: min(100%, 280px);
  min-height: 55px;
}

.tc-service-card__logo img {
  display: block;
  width: 100%;
  height: 89px;
  object-fit: contain;
  object-position: left center;
}

@media screen and (max-width: 840px) {
  .tc-service-card__logo img {
    height: auto;
  }
}

.tc-service-card__link {
  margin-inline: auto;
}

.tc-service-card__title {
  /* color: #009fd5; */
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
}

.tc-service-card__lead {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: #31abe3;
}

.tc-service-card--featured .tc-service-card__lead {
  font-size: clamp(17px, calc(0.76vw + 14.03px), 25px);
}

.tc-service-card__text {
  font-size: 16px;
  flex-grow: 1;
}

@media screen and (max-width: 840px) {
  .tc-service-card__text {
    font-size: 15px;
  }
}
/* 横長メインサービス
----------------------------------------------- */

.tc-service-group {
  margin-block-end: 100px;
  padding-block-end: 100px;
  border-bottom: solid 1px #c3c3c3;
}

@media screen and (max-width: 840px) {
  .tc-service-group {
    margin-block-end: 40px;
    padding-block-end: 40px;
  }
}
.tc-service-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
  gap: 50px;
}

@media screen and (max-width: 840px) {
  .tc-service-card--featured {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.tc-service-card--featured .tc-service-card__image {
  aspect-ratio: 582 / 381;
}

.tc-service-card--featured .tc-service-card__body {
  justify-content: center;
  padding-top: 0;
}

.tc-service-card--featured .tc-service-card__title {
  font-size: 22px;
}

@media screen and (max-width: 840px) {
  .tc-service-card--featured .tc-service-card__title {
    font-size: 19px;
  }
}

/* .tc-service-card--featured .tc-service-card__link {
  margin-right: 0;
  margin-left: auto;
}

@media screen and (max-width: 840px) {
  .tc-service-card--featured .tc-service-card__link {
    margin-right: auto;
  }
} */
/* ============================================================================
全ての事例
============================================================================ */
/* // All Story //
----------------------------------------------- */

.all-story {
  position: relative;
  overflow: hidden;
  background-color: var(--color-beige);
}

.all-story__bg {
  position: absolute;
  display: block;
  width: 100%;
}

.all-story__bg--top {
  left: 0;
  top: 0;
  max-width: 260px;
}

@media screen and (max-width: 840px) {
  .all-story__bg--top,
  .all-story__bg--bottom {
    display: none;
  }
}
.all-story__bg--bottom {
  right: 0;
  bottom: 17%;
  max-width: 446px;
}

.all-story__inner {
  position: relative;
  z-index: 1;
  padding-block: 100px;
}

@media screen and (max-width: 840px) {
  .all-story__inner {
    padding-block: 60px;
  }
}

.all-story__lead {
  margin-top: 35px;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

@media screen and (max-width: 840px) {
  .all-story__lead {
    margin-top: 25px;
    font-size: 13px;
  }

  .all-story__lead br {
    display: none;
  }
}

/* 背景装飾
----------------------------------------------- */

.all-story__decoration {
  position: absolute;
  z-index: 0;
  width: clamp(180px, 20vw, 390px);
  pointer-events: none;
}

@media screen and (max-width: 840px) {
  .all-story__decoration {
    width: 150px;
    opacity: 0.7;
  }
}

.all-story__decoration img {
  display: block;
  width: 100%;
  height: auto;
}

/* 事例一覧
----------------------------------------------- */

.all-story-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 65px 45px;
  padding-block: 70px 130px;
  margin-inline: auto;
  list-style: none;
}

@media screen and (max-width: 840px) {
  .all-story-list {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 36px 25px;
  }
}

/* 事例カード
----------------------------------------------- */

.all-story-item {
  min-width: 0;
}

.all-story-item__anchor {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--color-black);
  text-decoration: none;
}

.all-story-item__image {
  width: 100%;
  aspect-ratio: 390 / 218;
  overflow: hidden;
  background-color: var(--color-gray);
}

.all-story-item__image-file {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.all-story-item__anchor:hover .all-story-item__image-file {
  transform: scale(1.04);
}

.all-story-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 20px;
  gap: 20px;
}

.all-story-item__title {
  margin: 0;
  font-size: 18px;
  font-feature-settings: "palt";
  font-weight: 700;
  line-height: 1.5;
}

@media screen and (max-width: 840px) {
  .all-story-item__title {
    font-size: 16px;
  }
}

.all-story-item__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

@media screen and (max-width: 840px) {
  .all-story-item__text {
    margin-top: 12px;
    font-size: 13px;
  }
}

.all-story-item__text .c-color-red {
  color: inherit;
}

/* 対象者・導入サービス
----------------------------------------------- */

.all-story-item__data {
  display: grid;
  gap: 8px;
}

.all-story-item__data-row {
  display: flex;
  gap: 15px;
  align-items: start;
}

@media screen and (max-width: 840px) {
  .all-story-item__data-row {
    gap: 8px;
  }
}

.all-story-item__term {
  padding: 4px 10px;
  border: 1px solid var(--color-black);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.2;
  text-align: center;
}

.all-story-item__description {
  min-width: 0;
  margin: 0;
}

.all-story-item__tags,
.all-story-item__services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.all-story-item__tag {
  padding: 5px 16px;
  border-radius: 100px;
  background-color: var(--color-red);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.all-story-item__service {
  padding: 5px 14px;
  border: 1px solid var(--color-red);
  border-radius: 100px;
  background-color: var(--color-white);
  color: var(--color-red);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

/* 事例一覧ボタン
----------------------------------------------- */

/* .all-story-more {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 520px);
  margin: 85px auto 0;
  padding: 14px 60px 20px;
  border-radius: 10px;
  background-color: var(--color-red);
  color: var(--color-white);
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

@media screen and (max-width: 840px) {
  .all-story-more {
    margin-top: 55px;
    padding: 12px 45px 18px;
  }
}

.all-story-more:hover {
  opacity: 0.8;
}

.all-story-more__lead {
  width: 100%;
  padding: 5px 15px;
  border-radius: 100px;
  background-color: var(--color-white);
  color: var(--color-black);
  font-size: 12px;
  font-weight: 700;
}

@media screen and (max-width: 840px) {
  .all-story-more__lead {
    font-size: 10px;
  }
}

.all-story-more__text {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
}

@media screen and (max-width: 840px) {
  .all-story-more__text {
    font-size: 17px;
  }
}

.all-story-more__icon {
  position: absolute;
  right: 24px;
  bottom: 21px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-red);
  font-size: 9px;
}

@media screen and (max-width: 840px) {
  .all-story-more__icon {
    right: 15px;
    bottom: 19px;
  }
} */
/* ============================================================================
研修の特徴
============================================================================ */
/* // Training //
----------------------------------------------- */

.training {
  background-color: var(--color-beige);
}

/* 見出しエリア
----------------------------------------------- */

.training__head {
  padding-block: 70px;
  background-color: var(--color-red);
  color: var(--color-white);
}

@media screen and (max-width: 840px) {
  .training__head {
    padding-block: 50px;
  }
}

.training__label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

@media screen and (max-width: 840px) {
  .training__label {
    font-size: 13px;
  }
}

.training__title {
  margin-top: 15px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.4;
}

@media screen and (max-width: 840px) {
  .training__title {
    margin-top: 10px;
    font-size: 30px;
  }
}

.training__lead {
  max-width: 940px;
  margin-top: 35px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

@media screen and (max-width: 840px) {
  .training__lead {
    margin-top: 25px;
    font-size: 13px;
  }

  .training__lead br {
    display: none;
  }
}

/* カードエリア
----------------------------------------------- */

.training__body {
  padding-block: 140px 120px;
}

@media screen and (max-width: 840px) {
  .training__body {
    padding-block: 80px;
  }
}

.training-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (max-width: 840px) {
  .training-list {
    grid-template-columns: 1fr;
    gap: 65px;
  }
}

/* 研修カード
----------------------------------------------- */

.training-item {
  position: relative;
  min-height: 190px;
  padding: 50px 215px 35px 40px;
  border: 1px solid var(--color-black);
  border-radius: 8px;
  background-color: var(--color-white-bg);
  box-shadow: 5px 7px 0 var(--color-black);
}

@media screen and (max-width: 840px) {
  .training-item {
    min-height: 250px;
    padding: 45px 25px 135px;
    box-shadow: 4px 5px 0 var(--color-black);
  }
}

.training-item__number {
  position: absolute;
  top: -34px;
  left: 20px;
  z-index: 2;
  margin: 0;
  color: var(--color-red);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

@media screen and (max-width: 840px) {
  .training-item__number {
    top: -27px;
    left: 15px;
    font-size: 40px;
  }
}

.training-item__content {
  position: relative;
  z-index: 2;
}

.training-item__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

@media screen and (max-width: 840px) {
  .training-item__title {
    font-size: 18px;
  }
}

.training-item__text {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
}

@media screen and (max-width: 840px) {
  .training-item__text {
    margin-top: 12px;
    font-size: 13px;
  }
}

/* イラスト
----------------------------------------------- */

.training-item__image {
  position: absolute;
  right: 15px;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 210px;
  height: calc(100% + 65px);
  pointer-events: none;
}

@media screen and (max-width: 840px) {
  .training-item__image {
    right: 10px;
    width: 170px;
    height: 145px;
  }
}

.training-item__image-file {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

/* イラストごとの微調整
----------------------------------------------- */

.training-item:nth-child(1) .training-item__image {
  width: 230px;
}

@media screen and (max-width: 840px) {
  .training-item:nth-child(1) .training-item__image {
    width: 180px;
  }
}

.training-item:nth-child(2) .training-item__image {
  right: 5px;
  width: 225px;
}

@media screen and (max-width: 840px) {
  .training-item:nth-child(2) .training-item__image {
    width: 180px;
  }
}

.training-item:nth-child(3) .training-item__image {
  width: 235px;
}

@media screen and (max-width: 840px) {
  .training-item:nth-child(3) .training-item__image {
    width: 185px;
  }
}

.training-item:nth-child(4) .training-item__image {
  width: 230px;
}

@media screen and (max-width: 840px) {
  .training-item:nth-child(4) .training-item__image {
    width: 180px;
  }
}

.training-item:nth-child(5) .training-item__image {
  width: 245px;
}

@media screen and (max-width: 840px) {
  .training-item:nth-child(5) .training-item__image {
    width: 190px;
  }
}

.training-item:nth-child(6) .training-item__image {
  width: 220px;
}

@media screen and (max-width: 840px) {
  .training-item:nth-child(6) .training-item__image {
    width: 175px;
  }
}
/* ==========================================================================
   TOP 研修の特徴
========================================================================== */

.home-training-feature__head {
  padding-block: 67px;
  color: var(--color-white);
  background-color: var(--color-red);
}

.home-training-feature__label {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.home-training-feature__title {
  margin-bottom: 35px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
}

.home-training-feature__lead {
  max-width: 900px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.home-training-feature__body {
  padding-block: 226px 150px;
}

.home-training-feature__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 97px 30px;
  /* max-width: 1320px; */
  margin-inline: auto;
}

.home-training-feature__item {
  position: relative;
  min-height: 190px;
  background: var(--color-beige);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  align-content: center;
  padding-inline-start: 36px;
}

.home-training-feature__image {
  position: absolute;
  pointer-events: none;
}

.home-training-feature__image-file {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.home-training-feature__item:first-child .home-training-feature__image {
  width: 192px;
  height: 252px;
  bottom: 3px;
  right: 19px;
}
@media screen and (max-width: 840px) {
  .home-training-feature__item:first-child .home-training-feature__image {
    width: 81px;
    height: 106px;
    bottom: auto;
    top: -39px;
    right: 17px;
  }
}
.home-training-feature__item:nth-child(2) .home-training-feature__image {
  width: 192px;
  height: 185px;
  bottom: 46px;
  right: 20px;
}
@media screen and (max-width: 840px) {
  .home-training-feature__item:nth-child(2) .home-training-feature__image {
    width: 81px;
    height: 78px;
    bottom: auto;
    top: -15px;
    right: 17px;
  }
}

.home-training-feature__item:nth-child(3) .home-training-feature__image {
  width: 206px;
  height: 173px;
  bottom: 40px;
  right: 26px;
}

@media screen and (max-width: 840px) {
  .home-training-feature__item:nth-child(3) .home-training-feature__image {
    width: 87px;
    height: 73px;
    bottom: auto;
    top: -11px;
    right: 17px;
  }
}
.home-training-feature__item:nth-child(4) .home-training-feature__image {
  width: 204px;
  height: 191px;
  bottom: 17px;
  right: 20px;
}

@media screen and (max-width: 840px) {
  .home-training-feature__item:nth-child(4) .home-training-feature__image {
    width: 86px;
    height: 80px;
    bottom: auto;
    top: -18px;
    right: 17px;
  }
}
.home-training-feature__item:nth-child(5) .home-training-feature__image {
  width: 194px;
  height: 194px;
  bottom: 21px;
  right: 22px;
}

@media screen and (max-width: 840px) {
  .home-training-feature__item:nth-child(5) .home-training-feature__image {
    width: 82px;
    height: 82px;
    bottom: auto;
    top: -19px;
    right: 17px;
  }
}
.home-training-feature__item:last-child .home-training-feature__image {
  width: 226px;
  height: 195px;
  bottom: 7px;
  right: 0;
}
@media screen and (max-width: 840px) {
  .home-training-feature__item:last-child .home-training-feature__image {
    width: 95px;
    height: 82px;
    bottom: auto;
    top: -19px;
    right: 17px;
  }
}
.home-training-feature__number {
  position: absolute;
  top: -22px;
  left: 12px;
  z-index: 2;
  color: var(--color-red);
  font-size: clamp(24px, calc(1.81vw + 16.94px), 43px);
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-family-mon);
}

.home-training-feature__content {
  position: relative;
  z-index: 2;
  max-width: 346px;
}

.home-training-feature__item-title {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.home-training-feature__text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01rem;
  line-height: 1.7;
}

/* SP
------------------------------------------ */

@media screen and (max-width: 840px) {
  .home-training-feature__head {
    padding-block: 55px 50px;
  }

  .home-training-feature__label {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .home-training-feature__title {
    margin-bottom: 25px;
    font-size: 30px;
  }

  .home-training-feature__lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .home-training-feature__lead br {
    display: none;
  }

  .home-training-feature__body {
    padding-block: 50px 60px;
  }

  .home-training-feature__list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-training-feature__item {
    min-height: auto;
    padding: 25px 17px;
    box-shadow: 3px 4px 0 #333;
  }

  .home-training-feature__number {
    top: -16px;
    left: 16px;
  }

  .home-training-feature__item-title {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .home-training-feature__text {
    font-size: 15px;
  }

  .home-training-feature__image {
    right: 5px;
    bottom: 5px;
    width: 145px;
    height: 170px;
  }
}

/* @media screen and (max-width: 480px) {
  .home-training-feature__item {
    min-height: 290px;
    padding: 45px 25px 145px;
  }

  .home-training-feature__image {
    right: 15px;
    bottom: 0;
    width: 165px;
    height: 150px;
  }
} */
/* ============================================================================
コラム
============================================================================ */
/* // Mail Magazine //
----------------------------------------------- */

.mailmagazine {
  background-color: var(--color-white);
}

.mailmagazine__inner {
  padding-block: 100px 130px;
}

@media screen and (max-width: 840px) {
  .mailmagazine__inner {
    padding-block: 60px 80px;
  }
}

.mailmagazine__lead {
  margin-top: 35px;
  color: var(--color-black);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  text-align: center;
}

@media screen and (max-width: 840px) {
  .mailmagazine__lead {
    margin-top: 25px;
    font-size: 13px;
    text-align: left;
  }
}

/* 記事一覧
----------------------------------------------- */

.mailmagazine-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 70px 40px;
  margin-inline: auto;
  gap: 40px 0;
  list-style: none;
}

@media screen and (max-width: 840px) {
  .mailmagazine-list {
    gap: 20px 0;
    grid-template-columns: 1fr;
  }
}

/* 記事カード
----------------------------------------------- */

.mailmagazine-item {
  position: relative;
  min-width: 0;
  padding: 0 30px 60px;
}

@media screen and (max-width: 840px) {
  .mailmagazine-item {
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
  }

  .mailmagazine-item:first-child {
    padding-top: 0;
  }
}

/* 2、3列目の左線 */
.mailmagazine-item:not(:nth-child(3n + 1)) {
  border-left: 1px solid #ddd;
}

@media screen and (max-width: 840px) {
  .mailmagazine-item:not(:nth-child(3n + 1)) {
    border-left: 0;
  }
}

.mailmagazine-item__anchor {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--color-black);
  text-decoration: none;
}

@media screen and (max-width: 840px) {
  .mailmagazine-item__anchor {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
}

/* サムネイル
----------------------------------------------- */

.mailmagazine-item__image {
  width: 100%;
  aspect-ratio: 380 / 240;
  overflow: hidden;
  background-color: var(--color-gray);
}

.mailmagazine-item__image-file {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mailmagazine-item__anchor:hover .mailmagazine-item__image-file {
  transform: scale(1.04);
}

/* 記事情報
----------------------------------------------- */

.mailmagazine-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 12px;
}

@media screen and (max-width: 840px) {
  .mailmagazine-item__body {
    padding-top: 0;
  }
}

.mailmagazine-item__date {
  display: block;
  color: #aaa;
  font-size: 12px;
  line-height: 1.5;
}

@media screen and (max-width: 840px) {
  .mailmagazine-item__date {
    font-size: 10px;
  }
}

.mailmagazine-item__title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

@media screen and (max-width: 840px) {
  .mailmagazine-item__title {
    margin-top: 5px;
    font-size: 14px;
  }
}

.mailmagazine-item__category {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
}

@media screen and (max-width: 840px) {
  .mailmagazine-item__category {
    margin-top: 8px;
    font-size: 11px;
  }
}
/* ============================================================================
お知らせ
============================================================================ */
/* // News //
----------------------------------------------- */

.news {
  background-color: var(--color-white);
}

.news__inner {
  padding-block: 100px;
}

@media screen and (max-width: 840px) {
  .news__inner {
    padding-block: 60px;
  }
}

/* 記事一覧
----------------------------------------------- */

.news-list {
  width: min(100%, 980px);
  margin-block: 40px;
  margin-inline: auto;
  list-style: none;
}

/* 記事
----------------------------------------------- */

.news-item + .news-item {
  margin-top: 10px;
}

@media screen and (max-width: 840px) {
  .news-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
  }

  .news-item + .news-item {
    margin-top: 20px;
  }
}

.news-item__anchor {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  color: var(--color-black);
  text-decoration: none;
}

@media screen and (max-width: 840px) {
  .news-item__anchor {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.news-item__category {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

@media screen and (max-width: 840px) {
  .news-item__category {
    justify-self: start;
    min-height: 26px;
    padding: 4px 10px;
    font-size: 11px;
  }
}

.news-item__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  transition: color 0.3s ease;
}

@media screen and (max-width: 840px) {
  .news-item__title {
    font-size: 14px;
    line-height: 1.6;
  }
}

.news-item__anchor:hover .news-item__title {
  color: var(--color-red);
}

/* 一覧ボタン
----------------------------------------------- */

.news__button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 300px);
  min-height: 64px;
  margin: 75px auto 0;
}

@media screen and (max-width: 840px) {
  .news__button {
    min-height: 54px;
    margin-top: 45px;
  }
}
