/* ================================================
部門紹介
================================================ */
/*固有共通*/
.pageHead--scrollBg:before {
  background-image: url("/wp-content/themes/imcgraduates/assets/img/pageHead_business.svg");
}

/*部門紹介TOP*/
.department__img {
  margin: 0 0 6rem;
  padding-right: var(--commonSpaceSide);
  padding-left: var(--commonSpaceSide);
}

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

@media (max-width: 768px) {
  .department__img img {
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
  }

  .department__top-header::before {
    background-size: 210vw 30vw;
  }
}

/*トータルソリューション*/
.solution {
  background-color: #dd0725;
  box-sizing: border-box;
  padding-top: clamp(5rem ,8vw , 15rem);
  padding-bottom: clamp(10rem ,8vw , 15rem);
  padding-right: var(--commonSpaceSide);
  padding-left: var(--commonSpaceSide);
  overflow: hidden;
  position: relative;
}

.solution__inner {
  position: relative;
  z-index: 1;
}


.solution__title {
  color: #fff;
  font-size: clamp(24px, 5vw, 60px);
  font-weight: bold;
  padding-bottom: clamp(2rem , 2vw, 3rem);
}

.solution__lead {
  color: #fff;
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 400;
  line-height: 2;
  padding-bottom: clamp( 3rem, 3vw ,5rem);
}

.solution__circles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,22rem));
  gap: clamp(1rem, 2vw, 2rem);
  position: relative;
  z-index: 1;
}
@media (max-width: 1200px) {
  .solution__circles {
    grid-template-columns: repeat(3, minmax(0,22rem));
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .solution__circles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 16px 12px;
    position: relative;
    z-index: 0;
  }
}
.solution__circle {
  max-width: 22rem;
  width: 100%;
  height: auto;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 9px solid #ff6378;
  aspect-ratio: 1/1;
}
@media (max-width: 768px) {
  .solution__circle {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
}

.solution__circle-text--up {
  color: #e60020;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  font-family: "Korolev", "Montserrat", "Oswald", "Arial",
    "Noto Sans JP", sans-serif;

}

.solution__circle-text--don {
  color: #000;
  font-size: clamp(12px, 2vw, 15px);
  font-family:
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic Medium",
    "Meiryo",
    sans-serif;
  font-weight: bold;
}
.solution:after {
  content: "";
  position: absolute;
  right: -24%;
  top: 2%;
  width: 100rem;
  height: 100rem;
  background: url(/wp-content/themes/imcgraduates/assets/img/business_backlogo.png) no-repeat center;
  background-size: contain;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .solution:after {
    display: none;
  }
}

.solution__circle {
  position: relative;
  z-index: 1;
}
.solution__img {
  position: relative;
  z-index: 2;
  max-width: 1320px;
}
@media (max-width: 768px) {
  .solution__img {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
  }
}

.solution__img img {
  width: 100%;
  height: auto;
}


@media (max-width: 768px) {

  .solution::before {
    content: none;
  }
  .solution__circles::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: 80px;
    width: 420px;
    height: 420px;
    background: url("/wp-content/themes/imcgraduates/assets/img/imcback.png") no-repeat center;
    background-size: contain;
    opacity: 1.35;
    pointer-events: none;
    z-index: 0;
  }
}

/*部門紹介*/
.department__inner {
  padding-top: clamp(5rem , 6vw ,10rem);
  padding-bottom: clamp(5rem , 5vw ,8.5rem);
  padding-right: var(--commonSpaceSide);
  padding-left: var(--commonSpaceSide);
}

.department__title {
  font-size: clamp(28px, 5vw, 60px);
  font-weight: bold;
  margin-bottom: clamp( 2rem , 3vw ,5rem);
}

.department__nav {
}

.department__nav-btn.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.department__nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 768px) {
  .department__nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.department__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16rem;
  height: 5rem;
  border: 1px solid #ccc;
  border-radius: 999px;
  text-decoration: none;
  color: #000;
  background: #fff;
  cursor: pointer;
  font-size: clamp(1.4rem , 2vw , 1.6rem);
}
@media (max-width: 768px) {
  .department__nav-btn {
    width: 100%;
    height: 4rem;
  }
}

.department__nav-btn:hover {
  background: #000;
  border-color: #fff;
  transform: translateY(-1px);
  color: #fff;
}
.department__block {
  display: grid;
  grid-template-columns: minmax(320px, min(45vw, 800px)) minmax(420px, 1fr);
  gap: clamp(16px, 3vw, 80px);
  align-items: start;
  justify-items: stretch;
  padding-right: var(--commonSpaceSide);
  padding-left: var(--commonSpaceSide);
  margin-bottom: clamp(11rem , 11vw ,20rem);
}
@media (max-width: 768px) {
  .department__block {
    grid-template-columns: 1fr;
    grid-template-areas:
      "subtitle"
      "photo"
      "text"
      "flow"
      "entry";
    gap: 0;
  }
}
.department__block:last-child {
  margin-bottom: 15rem;
}
@media (max-width: 768px) {
  .department__block:last-child {
    margin-bottom: 0;
  }
}

.department__item {
  margin: 20px;
}

.department__item--media {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
}

/* エントリーボックス*/

.department__entry-title {
  font-size: clamp(60px, 5vw, 100px);
  line-height: clamp(60px, 5vw, 100px);
  margin: 0;
}

.department__entry-subtitle {
  font-size: clamp(24px, 2vw, 4rem);
  font-weight: bold;
  color: #f5f5f5;
  margin-top: 1rem;
  margin-bottom: clamp(2rem , 2vw , 3rem);
}

.department__entry-text {
  font-weight: 500;
  line-height: 1.7;
  font-size: clamp(14px, 2vw, 16px);
  margin: 0;
}

.department__entry-inner {
  background-color: #e60020;
  color: #f5f5f5;
  margin: 0;
  flex: 1;
  border: 1px solid;
  border-radius: 20px;
  width: min(100%, 800px);
  padding-top: 3.5rem;
  padding-right: clamp( 10rem, 8vw, 14.5rem);
  padding-bottom: 5rem;
  padding-left: 3.5rem;
  box-sizing: border-box;
  position: relative;
}
@media (max-width: 768px) {
  .department__entry-inner {
    grid-area: entry;
    padding-top: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
  }
}

.department__entry-title {
  grid-area: title;
}

.department__entry-subblock {
  grid-area: sub;
}

.department__entry-content {
  grid-area: content;
}

.department__entry__arrow {
  content: "";
  width: clamp(50px, 5vw, 10rem);
  height: clamp(50px, 5vw, 10rem);
  display: inline-block;
  background: url(/wp-content/themes/imcgraduates/assets/img/company__entry__arrow.png) no-repeat center / contain;
  transition: transform 0.2s ease-out;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 3rem;
}
@media (max-width: 768px) {
  .department__entry__arrow {
    position: static;
    transform: none;
    margin-top: 2rem;
  }
}

.department__item--info {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 28px);
}

.department__subtitle {
  font-size: clamp(30px, 4vw, 60px);
  margin: 0;
  font-family:
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic Medium",
    "Meiryo",
    sans-serif;
  font-weight: bold;
  color: #e60020;
}
@media (max-width: 768px) {
  .department__subtitle {
    grid-area: subtitle;
    margin-bottom: 2rem;
  }
}

.department__text {
  line-height: 2;
  font-size: clamp(13px, 2vw, 16px);
  margin: 0;
  font-family:
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic Medium",
    "Meiryo",
    sans-serif;
  font-weight: 400;
  padding: 30px 30px 30px 0;
}

.department {
  --media-w: clamp(320px, 45vw, 800px);
}

@media (max-width: 768px) {
  .department {
    --media-w: clamp(260px, 90vw, 350px);
  }
}

.department__item {
  margin: 0;
}

.department__photo {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 8 / 9;
  box-sizing: border-box;
  margin: 0 0 3rem;
}
@media (max-width: 768px) {
  .department__photo {
    grid-area: photo;
    aspect-ratio: 7 / 8;
    overflow: hidden;
    border-radius: 12px;
  }
}

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

.department__flow-title {
  font-weight: bold;
  margin: 0 0 2.4rem;
  font-size: 2.4rem;
}

.department__flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.department__flow:not(:last-child):before {
  content: "";
  display: block;
  width: 0.6rem;
  height: 100%;
  background-color: #F5F5F5;
  position: absolute;
  left: clamp(0.3rem,0.4vw,0.7rem);
  top: 1rem;
}
.flow__box {
  margin: 30px;
}
@media (max-width: 768px) {
  .flow__box {
    grid-area: flow;
    margin: 6.5rem 0 2rem;
  }
}
.flow__row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: start;
}


.flow__detail {
  position: relative;
  padding-left: clamp(2.6rem ,2vw ,3.4rem);
  padding-bottom: 3rem;
}

.flow__time {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #e60020;
  font-weight: bold;
  white-space: nowrap;
  line-height: 1.6;
  font-size: clamp(1.6rem, 1.4vw, 2.4rem);
}
.flow__timeCircle {
  display: block;
  width: clamp(1.2rem , 1.4vw ,2rem);
  height: clamp(1.2rem , 1.4vw ,2rem);
  position: relative;
  z-index: 10;
  border-radius: 50%;
  background-color: #e60020;
}
.flow__detailTitle {
  margin: 0;
  font-weight: bold;
  line-height: 1.6;
  font-size: clamp(1.4rem, 1vw, 1.6rem);
  padding: 1rem 0 1rem;
}

.flow__detailDesc {
  display: block;
  margin-top: 0.2em;
  font-weight: 400;
  line-height: 1.7;
  font-size: clamp(1.2rem, 1vw, 1.4rem);
}
.flow__title {
  margin: 0 0 0.2em;
  font-weight: 700;
}

.flow__desc {
  margin: 0;
}

/* SP */
@media (max-width: 768px) {
  .department__item,
  .department__entry,
  .department__description {
    display: contents;
  }
  .department__text {
    grid-area: text;
    padding: 0;
  }
  .department__text br {
    display: none;
  }
  .department__photo,
  .department__entry-inner,
  .flow__box {
    min-width: 0;
  }
  .department__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}