/* ================================================
企業理念・メッセージ
================================================ */

.pageHead--scrollBg:before {
  background-image: url("/wp-content/themes/imcgraduates/assets/img/pageHead_message.svg");
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* 企業理念・メッセージ*/
.message__top {
  position: relative;
  overflow-x: hidden;
}

.message__top-imgWrap {
  position: relative;
  width: 100%;
}
.message__top-img {
  display: flex;
  width: max-content;
  overflow: hidden;
  gap: clamp(2.5rem, 3vw, 5rem);
  animation: scroll 50s linear infinite;
}
.message__top-img li {
  width: 28vw;
  flex-shrink: 0;
  border-radius: 2rem;
  overflow: hidden;
}
@media (max-width: 768px) {
  .message__top-img li {
    width: 66vw;
  }
}

.message__top-img img {
  display: block;
}

.message__top-img li:nth-child(odd) {
  margin-top: 3%;
}

.message__overlay {
  position: absolute;
  left: 5rem;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 768px) {
  .message__overlay {
    position: static;
    padding: 3rem 0 3rem;
    margin: 0 2rem;
  }
}

.message__ribbon {
  display: inline-block;
  background: #dd1c16;
  color: #fff;
  padding-top: clamp(1rem, 1vw ,1.9rem);
  padding-right: 2rem;
  padding-bottom: clamp(1rem, 1vw ,1.9rem);
  padding-left: 2rem;
  line-height: 1.4;
  font-size: clamp(18px, 2.4vw, 4.2rem);
  line-height: clamp(18px, 2.4vw, 4.2rem);
  max-width: fit-content;
}

.message__ribbon--wide {
  
}

.message__lead {
  padding-top: clamp(0rem ,6vw ,10rem);
  padding-right: var(--commonSpaceSide);
  padding-left: var(--commonSpaceSide);
  font-weight: bold;
  font-size: clamp(21px, 2vw, 25px);
}
@media (max-width: 768px) {
  .message__lead {
    padding-top: 0;
    padding-bottom:4rem;
  }
}


.message__lead p {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 2vw ,2.4rem);
  line-height: 1.6;
}


/*MISSION・VISION・VALUE */
.mvv__inner {
  padding-right: var(--commonSpaceSide);
  padding-left: var(--commonSpaceSide);
  padding-bottom: 5rem;
}
.mvv__container {
  display: grid;
  grid-template-columns: minmax(120px, clamp(170px, 12vw, 250px)) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 140px);
  row-gap: clamp(20px, 4vw, 64px);
  align-items: start;
  border-bottom: solid 1px #D9D9D6;
  box-sizing: border-box;
  padding-top: clamp(4rem ,5vw , 9rem);
  padding-bottom: clamp(5rem ,6vw , 10rem);
}
@media (max-width: 768px) {
  .mvv__container {
    display: block;
  }
}

.mvv__block {
  min-width: 0;
  max-width: 1000px;
  width: 100%;
  justify-self: center;
  margin-inline: 0;
  display: grid;
  grid-template-areas:
    "title"
    "text";
  align-self: start;
}
@media (max-width: 768px) {
  .mvv__block {
    grid-template-areas:
      "logo"
      "title"
      "text";
    grid-template-columns: 1fr;
    max-width: 640px;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .mvv__logo {
    margin-bottom: 3.7rem;
  }
}
.mvv__logo img {
  display: block;
  height: auto;
  max-width: clamp(170px, 12vw, 250px);
  align-self: start;
}

.mvv__title-img {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: auto;
}

.message__mission-up,
.message__mission-don,
.message__vision-up,
.message__visiontop-don,
.message__value-up,
.message__value-don {
  width: 100%;
  height: auto;
}

.message__mission-up {
  max-width: clamp(200px, 50vw, 600px);
}

.message__mission-don {
  max-width: clamp(300px, 70vw, 900px);
}

.message__vision-up {
  max-width: clamp(300px, 70vw, 900px);
}

.message__visiontop-don {
  max-width: clamp(200px, 50vw, 600px);
}

.message__value-up {
  max-width: clamp(300px, 70vw, 900px);
}

.message__value-don {
  max-width: clamp(150px, 40vw, 400px);
}

.mvv__top-text span {
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: bold;
  line-height: 1.6;
}

.mvv__top-text p {
  font-size: clamp(1.2rem, 1.8vw, 16px);
  line-height: 1.9;
  margin: 0 0 1.2em;
  font-weight: 400;
}
.mvv__top-text p:last-child {
  margin: 0;
}
.text-red {
  color: #dd1c16;
  font-weight: bold;
}
.mvv__top-title {
  color: #dd1c16;
  font-weight: bold;
  padding-top: clamp(3rem , 3vw, 5rem);
  padding-bottom: clamp(2rem , 3vw, 5rem);
  font-size: clamp(1.6rem, 2vw ,2.4rem);
}

@media (max-width: 768px) {
  .mvv__inner {
    grid-template-columns: 1fr;
    padding-bottom:0;
  }
  .mvv__title-img {
    gap: 0;
  }
}

/* メッセージ２個 */
.message__center {
  padding-top: clamp(10rem , 8vw ,15rem);
  padding-bottom: clamp(8rem , 6vw ,10rem);
  padding-right: var(--commonSpaceSide);
  padding-left: var(--commonSpaceSide);
}

.message__center-inner {
  display: grid;
  gap: clamp(5rem , 6vw ,10rem);
  justify-items: stretch;
}

.message__center-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(5rem, 8vw, 15rem);
}
@media (max-width: 768px) {
  .message__center-item {
    display: grid;
    grid-template-areas:
      "img"
      "ribbon"
      "text";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    column-gap: 0;
    gap: 0;
    align-items: start;
  }
}

.message__center__img {
  grid-area: img;
}
@media (max-width: 768px) {
  .message__center__img {
    grid-area: img;
    margin-bottom: 3rem;
  }
}

.message__center__img img {
  display: block;
  width: 100%;
  height: auto;
}

.message__center-overlay {
  display: flex;
  flex-direction: column;
  gap: clamp(1.3rem, 2vw, 2rem);
  padding-bottom: clamp(2.2rem , 3vw ,5rem);
}

.message__center-ribbon {
  background: #dd1c16;
  color: #fff;
  padding-top: clamp(1rem, 1vw, 2rem);
  padding-bottom: clamp(1rem, 1vw, 2rem);
  padding-right: clamp(2rem, 3vw, 4rem);
  padding-left: clamp(2rem, 3vw, 4rem);
  font-size: clamp(1.6rem, 2.2vw, 6rem);
  line-height: clamp(1.6rem, 2.2vw, 6rem);
  font-weight: bold;
  display: block;
  max-width: fit-content;
}


.message__center__text {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.message__center__text p {
  margin-bottom: 2rem;
  line-height: 2;
  font-weight: 400;
}
.message__center__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .message__center__text {
    grid-area: text;
  }
}

/* SLOGAN*/
.slogan__inner {
  position: relative;
  display: flex;
  justify-content: center;
}

.slogan__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: url("/wp-content/themes/imcgraduates/assets/img/SLOGAN__back.png") no-repeat center/cover;
  z-index: -1;
  opacity: 0.8;
}
@media (max-width: 768px) {
  .slogan__inner::before {
    content: "";
    position: static;
    display: block;
    width: 100%;
    aspect-ratio: 990 / 360;
    max-width: 26.4rem;
    margin-right: auto;
  }
}
.slogan__title img {
  width: 700px;
  max-width: 100%;
  height: auto;
}

.slogan__title {
  margin: 0;
}

.slogan__block {
  margin-left: 430px;
}

.slogan__year {
  color: #dd1c16;
  padding-bottom: 0;
  font-size: 2.1875rem;
  font-family:
    "Korolev",
    "Montserrat",
    "Oswald",
    "Arial",
    "Noto Sans JP",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic Medium",
    "Meiryo",
    sans-serif;
  margin: 0;
  font-weight: bold;
}
@media (max-width: 768px) {
  .slogan__year {
    z-index: 1;
    text-align: left;
    padding-bottom: 1.25rem;
    position: absolute;
    top: 6.4rem;
  }
}

.slogan__text {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 2;
}
@media (max-width: 768px) {
  .slogan__text {
    line-height: 1.8;
    text-align: left;
  }
}

.message__slogan {
  padding: 0 0 15rem;
}
@media (max-width: 768px) {
  .message__slogan {
    padding: 0 2rem 10rem;
  }
}
.slogan__title {
  padding: 0 0 3rem;
}
@media (max-width: 768px) {
  .slogan__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: clamp(12px, 4vw, 24px);
  }
  .slogan__title {
    text-align: left;
  }
  .slogan__title img {
    width: clamp(340px, 60vw, 420px);
    max-width: 100%;
    height: auto;
  }
  .slogan__block {
    margin-left: 0;
  }
}

/*SEOメッセージ*/
.message__seo {
  padding-right: var(--commonSpaceSide);
  padding-left: var(--commonSpaceSide);
}

.seo__inner {
  display: flex;
  align-items: center;
  gap: clamp(5rem, 5vw, 10rem);
  flex-flow: row wrap;
}
@media (max-width: 768px) {
  .seo__inner {
    display: block;
  }
}
.seo__img {
  width: clamp(260px, 50%, 90rem);
}
@media (max-width: 768px) {
  .seo__img {
    width: 100%;
  }
}

.seo__img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.seo__message>img {
  display: block;
  width: clamp(21.6rem, 31vw, 59rem);
  height: auto;
  margin: 0 0 clamp(10px, 2vw, 16px);
}

.seo__label {
  color: #dd1c16;
  font-size: clamp(14px, 2.2vw, 24px);
  font-weight: bold;
  margin-bottom: clamp(3rem , 3vw ,5rem);
}

.seo__title {
  font-size: clamp(2.4rem, 2vw, 4rem);
  margin-bottom: clamp(2rem, 2vw, 3rem);
}

.seo__text {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 2;
  font-weight: normal;
}

.seo__messageBox:not(:last-child) {
  padding: 0 0 5rem;
}

.seo__message {
  width: calc(100% - (clamp(260px, 50%, 90rem) + 10rem));
}
@media (max-width: 768px) {
  .seo__message {
    width: 100%;
    padding-top: 2rem;
  }
}


/*クロージング*/
.closing__message {
  padding-top: 10rem;
  padding-right: var(--commonSpaceSide);
  padding-left: var(--commonSpaceSide);
}

.closing__inner {
  background: url("/wp-content/themes/imcgraduates/assets/img/closing04.png") center/cover no-repeat;
  padding: clamp(16px, 3vw, 40px) 0;
  border-radius: 2.4rem;
}
@media (max-width: 768px) {
  .closing__inner {
    padding: 3rem 0 5rem;
  }
}

.closing__band {
  text-align: center;
}

.closing__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 3vw, 5rem);
  max-width: 105rem;
  width: 90%;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .closing__buttons {
    padding: 0 2rem;
  }
}

.closing__button {
  display: inline-flex;
  align-items: center;
  padding: clamp(14px, 2vw, 20px);
  border-radius: 10px;
  background: #fff;
  color: #000;
  text-decoration: none;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  justify-content: space-between;
  font-size: clamp(14px, 2vw, 20px);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  max-width: 50rem;
  width: 100%;
  height: 9rem;
}
@media (max-width: 768px) {
  .closing__button {
    width: 100%;
    height: 6.4rem;

  }
}

.closing__button::after {
  content: "";
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  background: url("/wp-content/themes/imcgraduates/assets/img/header_IMC_arrow1.png") no-repeat center/contain;
}

.closing__lead {
  font-size: clamp(2.4rem, 2.4vw, 4rem);
  font-weight: bold;
  color: #fff;
}

.closing__lead br {
  display: none;
}

.closing__text br {
  display: none;
}

.closing__text {
  font-size: clamp(14px, 1.2vw, 16px);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  padding-top: 2rem;
  padding-bottom: clamp(2rem, 2vw ,3rem);
}

@media (max-width: 768px) {
  .closing__lead br,
  .closing__text br {
    display: inline;
  }
}