/* RCE Case Section */
.rce-case {
  position: relative;
  font-family: "Noto Sans JP", sans-serif;
  background-color: #F6FAFC;
}

.rce-case_inner {
  max-width: 120rem;
  margin: 0 auto;
  padding: 8rem 5rem 6rem 5rem;
  @media only screen and (max-width: 767px) {
    padding: 6rem 2rem;
  }
}

.rce-case_titlearea {
  text-align: center;
  margin-bottom: 3.2rem;
  @media only screen and (max-width: 767px) {
    margin-bottom: 3rem;
  }
}

.rce-case_label {
  font-size: 2rem;
  font-weight: bold;
  color: #377DCD;
  letter-spacing: 0.08rem;
  margin-bottom: 1.2rem;
  line-height: 1;
  @media only screen and (max-width: 767px) {
    margin-bottom: 0.8rem;
  }
}

.rce-case_title {
  font-size: 4.2rem;
  font-weight: bold;
  letter-spacing: 0.06rem;
  color: #000000;
  padding-bottom: 3rem;
  margin: 0 0 2rem 0;
  line-height: 1;
  position: relative;
  @media only screen and (max-width: 767px) {
    font-size: 3.2rem;
    line-height: 1.3;
    padding-bottom: 1.8rem;
    margin: 0 0 1.5rem 0;
  }
}

.rce-case_title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12rem;
  height: 0.1rem;
  background-color: #377DCD;
}


.rce-case_title span {
  color: #377DCD;
}

.rce-case_text {
  font-size: 1.5rem;
  line-height: 2;
  letter-spacing: 0.04em;
  font-weight: 500;
  @media only screen and (max-width: 767px) {
    line-height: 1.6;
  }
}

.rce-case_mainlist_mainitem {
  border-radius: 0.6rem;
  box-shadow: 0.1rem 0.6rem 0.6rem 0px #00000014;
  background-color: #ffffff;
  margin-bottom: 3rem;
}

.rce-case_mainlist_mainitem_inner {
  padding: 1rem 4rem 1rem 1rem;
  display: flex;
  gap: 4rem;
  @media only screen and (max-width: 767px) {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1rem 3rem 1rem;
  }
}

.rce-case_mainlist_mainitem_image {
  border-radius: 0.6rem;
  width: 42rem;
  height: 41rem;
  object-fit: cover;
  @media only screen and (max-width: 767px) {
    width: 31.5rem;
    height: 30rem;
  }
}

.rce-case_mainlist_mainitem_content {
  padding: 2rem 0 3rem 0;
  @media only screen and (max-width: 767px) {
    padding: 2rem 1rem 0 1rem;
  }
}

.rce-case_mainlist_mainitem_content_title {
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000000;
  line-height: 1.6;
  @media only screen and (max-width: 767px) {
    font-size: 2rem;
    line-height: 1.4;
  }
}

.rce-case_mainlist_mainitem_content_subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #377DCD;
  margin-bottom: 1.6rem;
  line-height: 1.6;
  padding-bottom: 1.6rem;
  position: relative;
  @media only screen and (max-width: 767px) {
    padding-bottom: 1.5rem;
    margin-bottom: 1.2rem;
  }
}
.rce-case_mainlist_mainitem_content_subtitle:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 0.1rem;
  background-color: #377DCD;
  @media only screen and (max-width: 767px) {
    width: 8rem;
  }
}

.rce-case_mainlist_mainitem_content_text {
  color: #000000;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin-bottom: 2.7rem;
  @media only screen and (max-width: 767px) {
    line-height: 1.6;
    margin-bottom: 3rem;
  }
}

.rce-case_mainlist_mainitem_content_btn {
  box-shadow: inset 0 0 0 0.1rem #377DCD;
  border-radius: 10rem;
  width: 52.6%;
  display: inline-block;
  transition: background-color 0.3s ease;
  @media only screen and (max-width: 767px) {
    width: 100%;
  }
}

.rce-case_mainlist_mainitem_content_btn_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.6rem 1.5rem 3.5rem;
}

.rce-case_mainlist_mainitem_content_btn_link {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #377DCD;
  text-decoration: none;
  transition: color 0.3s ease;
}

.rce-case_mainlist_mainitem_content_btn_arrow_wrap {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  position: relative;
  overflow: hidden;
}

.rce-case_mainlist_mainitem_content_btn_arrow_wrap img {
  width: 3rem;
  height: 3rem;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rce-case_mainlist_mainitem_content_btn_arrow_wrap img:first-child {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.rce-case_mainlist_mainitem_content_btn_arrow_wrap img:last-child {
  opacity: 0;
  transform: translate(-50%, -50%);
}

.rce-case_mainlist_mainitem_content_btn:hover {
  background-color: #377DCD;
}

.rce-case_mainlist_mainitem_content_btn:hover .rce-case_mainlist_mainitem_content_btn_link {
  color: #FFFFFF;
}

.rce-case_mainlist_mainitem_content_btn:hover .rce-case_mainlist_mainitem_content_btn_arrow_wrap img:first-child {
  opacity: 0;
  transform: translate(-50%, -50%);
}

.rce-case_mainlist_mainitem_content_btn:hover .rce-case_mainlist_mainitem_content_btn_arrow_wrap img:last-child {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.rce-case_mainlist_sublist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  @media only screen and (max-width: 767px) {
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }
}

.rce-case_mainlist_sublist_item {
  box-shadow: 0.1rem 0.6rem 0.6rem 0px #00000014;
  background-color: #ffffff;
  border-radius: 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.3rem;
  padding: 1rem 1rem 2rem;
  @media only screen and (max-width: 767px) {
    gap: 0;
    padding: 1rem 1rem 3rem;
  }
}

.rce-case_mainlist_sublist_item_image_area {
  border-radius: 0.6rem;
  width: 100%;
  padding-bottom: 66.6%;
  position: relative;
  object-fit: cover;
  @media only screen and (max-width: 767px) {
    padding-bottom: 63.5%;
  }
}
.rce-case_mainlist_sublist_item_image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.6rem;
  @media only screen and (max-width: 767px) {
    border-radius: 0.8rem;
  }
}

.rce-case_mainlist_sublist_item_content {
  color: #000000;
}

.rce-case_mainlist_sublist_item_content_title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  padding: 0 2rem;
  margin-top: 1.8rem;
  @media only screen and (max-width: 767px) {
    padding: 0 1rem;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
  }
}

.rce-case_mainlist_sublist_item_content_text {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin-bottom: 2.3rem;
  padding: 0 2rem;
  @media only screen and (max-width: 767px) {
    padding: 0 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
  }
}

.rce-case_mainlist_sublist_item_content_btn {
  box-shadow: inset 0 0 0 0.1rem #377DCD;
  border-radius: 10rem;
  width: 94%;
  display: inline-block;
  transition: background-color 0.3s ease;
  @media only screen and (max-width: 767px) {
    width: 100%;
  }
}

.rce-case_mainlist_sublist_item_content_btn_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.6rem 1.5rem 3.5rem;
}

.rce-case_mainlist_sublist_item_content_btn_link {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #377DCD;
  text-decoration: none;
  transition: color 0.3s ease;
}

.rce-case_mainlist_sublist_item_content_btn_arrow_wrap {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  position: relative;
  overflow: hidden;
}

.rce-case_mainlist_sublist_item_content_btn_arrow_wrap img {
  width: 3rem;
  height: 3rem;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rce-case_mainlist_sublist_item_content_btn_arrow_wrap img:first-child {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.rce-case_mainlist_sublist_item_content_btn_arrow_wrap img:last-child {
  opacity: 0;
  transform: translate(-50%, -50%);
}

.rce-case_mainlist_sublist_item_content_btn:hover {
  background-color: #377DCD;
}

.rce-case_mainlist_sublist_item_content_btn:hover .rce-case_mainlist_sublist_item_content_btn_link {
  color: #FFFFFF;
}

.rce-case_mainlist_sublist_item_content_btn:hover .rce-case_mainlist_sublist_item_content_btn_arrow_wrap img:first-child {
  opacity: 0;
  transform: translate(-50%, -50%);
}

.rce-case_mainlist_sublist_item_content_btn:hover .rce-case_mainlist_sublist_item_content_btn_arrow_wrap img:last-child {
  opacity: 1;
  transform: translate(-50%, -50%);
}
