@charset "UTF-8";
/* @import url('https://fonts.googleapis.com/css2?family=Crimson+Text&display=swap'); */

/*!
 * TOP Case Page Styles
 */
.under-sm {
  display: none;

  @media (max-width: 640px) {
    display: inline;
  }
}
.under-xsl {
  display: none;

  @media (max-width:499px) {
    display: inline;
  }
}

.top__case {
  background-color: #ecf6fc;
  padding: 10rem 0;
  margin-bottom: 12rem;

  @media (max-width:1200px) {
    padding: 8rem 0;
    margin-bottom: 10rem;
  }

  @media (max-width:834px) {
    padding: 6rem 0;
    margin-bottom: 8rem;
  }

  @media (max-width:640px) {
    padding: 5rem 0;
    margin-bottom: 6rem;
  }

  @media (max-width:449px) {
    padding: 4rem 0;
    margin-bottom: 5rem;
  }
}

.top__case__inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.top__case-ttl-heading {
  text-align: center;
  font-size: 40px;
  color: #2464dd;
  margin-bottom: 4rem;
  font-weight: 400;
  font-family: "Noto Serif Japanese", serif;

  @media (max-width:834px) {
    margin-bottom: 3rem;
    font-size: 28px;
  }

  @media (max-width:640px) {
    margin-bottom: 2rem;
    font-size: 24px;
  }

  @media (max-width:499px) {
    margin-bottom: 2rem;
    font-size: 22px;
  }
}

.top__case-list {
  display: flex;
  gap: 2.5rem;

  @media (max-width:1024px) {
    flex-direction: column;
  }
}

.top__case-item {
  flex: 1;
  background-color: #ffffff;
  padding: 4.5rem 3.5rem;
  border-radius: 15px;

  @media (max-width:834px) {
    padding: 3rem 2.5rem;
  }

  @media (max-width:640px) {
    padding: 2rem 2.5rem;
  }
}

.top__case-item-title {
  font-family: "Noto Serif Japanese", serif;
  font-weight: 400;
  font-size: 21px;
  color: #2c354c;
  text-align: center;
  border-bottom: 1px solid #cdd7de;
  padding-bottom: 1.8rem;
  margin-bottom: 4rem;
  line-height: 1.3;

  @media (max-width:834px) {
    margin-bottom: 3rem;
    font-size: 18px;
  }

  @media (max-width:640px) {
    margin-bottom: 2rem;
    font-size: 16px;
  }

  a {
    color: #2c354c;
  }
}

.top__case-link {
  background-color: #04b2cf;
  color: #ffffff;
  border-radius: 5px;
  width: 100%;
  max-width: 36rem;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  margin: 6rem auto 0;
  transition: all 0.3s ease;

  @media (max-width:834px) {
    margin: 4rem auto 0;
    max-width: 30rem;
    height: 70px;
    font-size: 18px;
  }
  @media (max-width:640px) {
    margin: 3rem auto 0;
    max-width: 25rem;
    height: 60px;
    font-size: 16px;
  }
  @media (max-width:499px) {
    margin: 2rem auto 0;
    max-width: 20rem;
    height: 50px;
    font-size: 14px;
  }

  &:hover {
    filter: brightness(1.1);
    color: #ffffff;
  }
}

.top__case-item-link {
  color: #04b2cf;
  background-color: transparent;
  border: 1px solid #04b2cf;
  border-radius: 5px;
  width: 100%;
  max-width: 21.6rem;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  margin: 0 auto;
  margin-top: 3.6rem;
  transition: all 0.3s ease;

  @media (max-width:834px) {
    margin-top: 3rem;
    max-width: 18rem;
    height: 40px;
  }

  @media (max-width:640px) {
    margin-top: 2rem;
    max-width: 16rem;
    height: 35px;
    font-size: 16px;
  }

  @media (max-width:499px) {
    margin-top: 2rem;
    max-width: 14rem;
    font-size: 14px;
  }

  &:hover {
    background-color: #90cde2;
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
  }
}

.top__case .case__item-ttl {
  display: none;
}

.top__case .case__thumb {
  display: flex;
  gap: 3.5rem;
}

.top__case .case__img-title {
  display: none;
}

.top__case .case__treatment-details {
  display: none;
}

.top__case .case__caution {
  display: none;
}

.top__case .case__risk {
  display: none;
}

.top__case .case__list {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.top__case .circle {
  width: 115px;
  border: 1px solid #90cde2;
  display: inline-block;
  padding: .2rem 1.5rem .3rem;
  border-radius: 100vmax;
  background-color: hsl(0, 0%, 100%);
  white-space: nowrap;
  font-weight: bold;
  margin-right: 1rem;
  text-align: center;
}

.top__case .case__img-wrapper {
  position: relative;
}

.top__case .case__img-wrapper:first-child::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid #b4d9f0;
  background: none;
  position: absolute;
  top: 50%;
  left: calc(100% + 1.2rem);
  transform: translateY(-50%);

  @media (max-width:640px) {
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #b4d9f0;
    left: calc(100% + .8rem);
  }

  @media (max-width:499px) {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #b4d9f0;
    left: calc(100% + .6rem);
  }
}