@charset "UTF-8";
/*
  /rakurakucloud/gwtg/asset/css/object/module/m-story.css
  経営層／現場層で切り替わるストーリーパート
*/
.m-story {
  padding: 100px 0 40px;
  @media screen and (max-width: 840px) {
    padding: 48px 0 24px;
  }
}
.m-story__inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.m-story__panel {
  padding: 100px 0 0;
  display: none;
  @media screen and (max-width: 840px) {
    padding: 80px 0 0;
  }
  &.is-active {
    display: block;
    padding: 120px 0 0;
    margin: -24px 0 0;
    @media screen and (max-width: 840px) {
      padding: 80px 0 0;
      margin: -16px 0 0;
    }
  }
}
/* タブ切替のフェードイン（下から浮き上がる） */
.m-story__panel.is-active {
  animation: m-story-fade-in 0.8s ease;
}
@keyframes m-story-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .m-story__panel.is-active {
    animation: none;
  }
}
.m-story__heading {
  font-size: 46px;
  margin: 0 0 100px;
  letter-spacing: 0.1em;
  color: var(--black);
  @media screen and (max-width: 840px) {
    font-size: 26px;
    margin: 0 0 32px;
  }
}
.m-story__body {
  position: relative;
}
.m-story__text {
  font-size: 18px;
  font-weight: 700;
  line-height: 3.8;
  letter-spacing: 0.2em;
  @media screen and (max-width: 840px) {
    width: 100%;
    font-size: 15px;
    line-height: 2.8;
    letter-spacing: 0.15em;
  }
}
.m-story__block {
  margin: 0 0 48px;
  @media screen and (max-width: 840px) {
    margin: 0 0 32px;
  }
  &:last-child {
    margin: 0;
  }
}
.m-story__image {
  position: absolute;
  right: 0;
  border-radius: 10px;
  overflow: hidden;
  @media screen and (max-width: 840px) {
    position: relative;
    width: 100%;
    height: auto;
    margin: 32px 0 32px;
  }
}
.m-story__image--01 {
  top: 0;
  width: 46%;
  right: -16%;
  @media screen and (max-width: 840px) {
    top: 0px;
    width: 80%;
    right: -110px;
  }
}
.m-story__image--02 {
  top: 44%;
  width: 27%;
  right: 6%;
  @media screen and (max-width: 840px) {
    top: 0px;
    width: 80%;
    left: -40px;
  }
}
.m-story__image--03 {
  bottom: 0;
  width: 24%;
  @media screen and (max-width: 840px) {
    top: 0px;
    width: 70%;
    right: -80px;
  }
}
/* スクロール表示アニメーション（下から浮き上がってフェードイン） */
.m-story__block,
.m-story__image,
.m-story__heading,
.m-story-gwtg__title,
.m-story-gwtg__lead {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}
.m-story__block.is-shown,
.m-story__image.is-shown,
.m-story__heading.is-shown,
.m-story-gwtg__title.is-shown,
.m-story-gwtg__lead.is-shown {
  opacity: 1;
  transform: translateY(0);
}
/* 動きを抑えたいユーザー向け（アクセシビリティ配慮） */
@media (prefers-reduced-motion: reduce) {
  .m-story__block,
  .m-story__image,
  .m-story__heading,
  .m-story-gwtg__title,
  .m-story-gwtg__lead {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   Good Ways to Grow. コピーブロック（m-story-gwtg）
   ＋ もう一方のパネルへの誘導カード（m-story-guide）
   ※ 旧 m-story-guide.css を統合
   ===================================================================== */
.m-story-gwtg {
  padding: 40px 0 0;
  background-color: var(--rcloud-bg-sub-03);
  @media screen and (max-width: 840px) {
    padding: 24px 0 48px;
  }
}
.m-story-gwtg__inner {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
.m-story-gwtg__title {
  font-size: 64px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--black);
  @media screen and (max-width: 840px) {
    font-size: 30px;
  }
}
.m-story-gwtg__lead {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 8px 0 0;
  color: var(--black);
  @media screen and (max-width: 840px) {
    font-size: 20px;
  }
}

.m-story-gwtg .m-story__text {
  margin: 100px 0 0;
  @media screen and (max-width: 840px) {
    margin: 60px 0 0;
  }
}
.m-story-guide {
  padding: 200px 0;
  background-color: var(--rcloud-bg-sub-03);
  @media screen and (max-width: 840px) {
    padding: 0 0 48px;
  }
}
.m-story-guide__inner {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 20px;
}
/* パネル（バナー全体・クリッカブル） */
.m-story-guide__panel {
  display: none;
}
.m-story-guide__panel.is-active {
  position: relative;
  display: block;
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(19, 79, 191, 0.12);
  aspect-ratio: 960 / 292;
  text-decoration: none;
  color: var(--black);
  transition: box-shadow 0.3s ease;
  @media screen and (max-width: 840px) {
    aspect-ratio: auto;
  }
}
/* ホバー時：シャドウを消す */
.m-story-guide__panel.is-active:hover {
  box-shadow: 0 0 0 rgba(19, 79, 191, 0);
}
/* 写真：カード全面の背景レイヤー（全面を覆う・余白なし） */
.m-story-guide__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  @media screen and (max-width: 840px) {
    position: relative;
    aspect-ratio: 16 / 9;
  }
}
.m-story-guide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  &.m-story-guide__image--to-field {
    object-position: 20px -20px;
    @media screen and (max-width: 840px) {
      object-position: -400px -40px;
    }
    @media screen and (max-width: 600px) {
      object-position: -220px -20px;
    }
  }
  &.m-story-guide__image--to-exec {
    object-position: 450px -20px;
    @media screen and (max-width: 840px) {
      object-position: -20px -40px;
    }
    @media screen and (max-width: 600px) {
      object-position: 0 -20px;
    }
  }
}
/* 左からの白グラデーション（写真の左端を白ボックスに溶かす・くっきりさせない） */
.m-story-guide__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(50deg, var(--white) 48%, rgba(255, 255, 255, 0.9) 54%, rgba(255, 255, 255, 0) 72%);
  @media screen and (max-width: 840px) {
    background: linear-gradient(6deg, var(--white) 25%, rgba(255, 255, 255, 0.9) 33%, rgba(255, 255, 255, 0) 62%);
  }
}
/* テキスト（見出し＋ボタン）は左・最前面 */
.m-story-guide__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  /* width: 55%; */
  height: 100%;
  padding: 48px;
  @media screen and (max-width: 840px) {
    width: 100%;
    height: auto;
    padding: 0 24px 32px;
    background-color: var(--white);
    margin: -32px 0 0;
  }
}
.m-story-guide__heading {
  font-size: 28px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: var(--black);
  @media screen and (max-width: 840px) {
    font-size: 20px;
  }
}

/* パネルホバー時：ボタンの色を反転（文字が青、アイコンが白抜き→塗り反転） */
.m-story-guide__panel.is-active:hover .m-story-guide__button {
  color: var(--rcloud-primary);
}
.m-story-guide__panel.is-active:hover .m-story-guide__button .c-button__icon {
  background-color: var(--white);
  color: var(--rcloud-primary);
  box-shadow: inset 0 0 0 1.5px var(--rcloud-primary);
  border-color: transparent; /* border:none → border-color: transparent */
}
