@charset "utf-8";

.feature-index__item {
  width: calc(100% + 120px);
  height: 500px;
  margin: 120px 0;
  display: flex;
  position: relative;
  left: -60px;
  box-sizing: border-box;
  align-items: center;
  flex-direction: row-reverse;
}

.feature-index__item:last-child {
  margin-bottom: 0;
}

.feature-index__item.reverse {
  flex-direction: row;
}

.feature-index__wrap {
  max-width: 35%;
  flex-basis: 35%;
  padding: 0 60px;
  position: relative;
  box-sizing: border-box;
}

.feature-index__image {
  max-width: 65%;
  flex-basis: 65%;
  border-radius: 40px 0 0 40px;
  position: relative;
  overflow: hidden;
}

.reverse .feature-index__image {
  border-radius: 0 40px 40px 0;
}

.feature-index__image a {
  height: 500px;
  display: block;
}

.feature-index__image img {
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: all 300ms ease;
}

.feature-index__image a:hover img {
  transform: scale3d(1.1, 1.1, 1.1);
}

.feature-index__title span {
  display: table;
}

.feature-index__title .jp {
  border-bottom: 2px dotted rgba(24, 141, 96, 1);
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.6;
  color: rgba(24, 141, 96, 1);
}

.feature-index__title .en {
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(24, 141, 96, 1);
}

.feature-index__text {
  margin: 30px 0 40px 0;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 2.2;
  color: rgba(0, 0, 0, 1);
}

.feature-index-sub {
  display: flex;
  justify-content: space-between;
}

.feature-index-sub__item {
  max-width: calc(50% - 60px);
  flex-basis: calc(50% - 60px);
  position: relative;
}

.feature-index-sub__image {
  width: calc(100% + 60px);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.feature-index-sub__item:first-child .feature-index-sub__image {
  left: -60px;
  border-radius: 0 40px 40px 0;
}

.feature-index-sub__item:last-child .feature-index-sub__image {
  border-radius: 40px 0 0 40px;
}

.feature-index-sub__image a img {
  transition: all 300ms ease;
}

.feature-index-sub__image a:hover img {
  transform: scale3d(1.1, 1.1, 1.1);
}

.tbf-sub.single {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
}

.single__image {
  max-width: 60%;
  flex-basis: 60%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.single__image__item {
  max-width: calc(50% - 5px);
  border-radius: 10px;
  overflow: hidden;
}

.single__wrap {
  max-width: calc(40% - 60px);
  flex-basis: calc(40% - 60px);
}

@media screen and (min-width: 1621px) {
  .feature-index__item {
    flex-direction: row;
  }

  .feature-index__item.reverse {
    flex-direction: row-reverse;
  }

  .feature-index__wrap {
    max-width: calc((1500px * 0.35) - 60px);
    flex-basis: calc((1500px * 0.35) - 60px);
  }

  .feature-index__image {
    width: 100%;
    max-width: calc((1500px * 0.65) + ((100vw - 1500px) / 2));
    position: absolute;
    right: calc(((100vw - 1500px) / -2) + 60px);
  }

  .reverse .feature-index__image {
    right: auto;
    left: calc(((100vw - 1500px) / -2) + 60px);
  }

  .feature-index-sub__image {
    width: calc(100% + ((100vw - 1500px) / 2));
  }

  .feature-index-sub__item:first-child .feature-index-sub__image {
    left: calc((100vw - 1500px) / -2);
  }
}

@media screen and (max-width: 1280px) {
  .feature-index-sub__item {
    max-width: calc(50% - 30px);
    flex-basis: calc(50% - 30px);
  }
}

@media screen and (max-width: 1024px) {
  .feature-index__item {
    width: 100%;
    margin: 100px 0;
    height: auto;
    display: block;
    left: auto;
  }

  .feature-index__wrap,
  .feature-index__image {
    max-width: none;
  }

  .feature-index__image {
    height: auto;
    margin-bottom: 20px;
    border-radius: 40px !important;
  }

  .feature-index__image img {
    height: auto;
    object-fit: auto;
  }

  .feature-index__wrap {
    padding: 0;
  }

  .feature-index__title .jp {
    font-size: 3rem;
  }

  .feature-index__title .en {
    margin-top: 5px;
    font-size: 1.4rem;
    line-height: 2;
  }

  .feature-index-sub__item:first-child .feature-index-sub__image {
    left: -60px;
    border-radius: 0 20px 20px 0;
  }

  .feature-index-sub__item:last-child .feature-index-sub__image {
    border-radius: 20px 0 0 20px;
  }

  .feature-index__image a {
    height: auto;
  }
}

@media screen and (max-width: 800px) {
  .feature-index__item {
    margin: 80px 0;
  }

  .feature-index__text {
    margin: 20px 0;
    font-size: 1.4rem;
  }

  .feature-index-sub {
    display: block;
  }

  .feature-index-sub__item {
    max-width: none;
    margin: 80px 0;
  }

  .feature-index-sub__image {
    width: 100%;
    margin-bottom: 20px;
    left: auto !important;
    right: auto !important;
    border-radius: 20px !important;
  }
}

@media screen and (max-width: 640px) {
  .feature-index__item,
  .feature-index-sub__item {
    margin: 60px 0;
  }

  .feature-index__image {
    border-radius: 20px !important;
  }

  .feature-index__title .jp {
    font-size: 2.5rem;
  }
}
