@charset "utf-8";
.top-fv {
  padding-top: clamp(6.5rem, 4.286rem + 3.46vw, 8.438rem);
}
.slider__container {
  position: relative;
  overflow: hidden;
}
.top-fv-title__box {
    height: inherit;
    position: absolute;
    z-index: 10;
    background-color: #fff;
    writing-mode: vertical-rl;
    left: clamp(6.25rem, -8.036rem + 22.32vw, 18.75rem);
    top: 50%;
    transform: translateY(-50%);
    height: max-content;
    padding: clamp(1.875rem, -0.268rem + 3.35vw, 3.75rem) clamp(5.625rem, 0.625rem + 7.81vw, 10rem);
    height: 104%;
}
.top-fv-title__icon {
      position: absolute;
    top: 0;
    left: 20px;
    width: clamp(5rem, 0.429rem + 7.14vw, 9rem);
    z-index: 5;
}
.top-fv__title {
      font-size: clamp(1.5rem, 0.357rem + 1.79vw, 2.5rem);
    line-height: 1.5;
    position: relative;
    z-index: 10;
    font-weight: 700;
}
.top-fv__title span {
  font-size: clamp(0.75rem, 0.321rem + 0.67vw, 1.125rem);
}
.slider__wrapper {
  display: flex;
  overflow: hidden;
    width: 100vw;
  column-gap: clamp(1.875rem, -2.696rem + 7.14vw, 5.875rem);
  max-height: 661px;
}
.slider__wrapper--2 {
  display: none;
}
.slider {
  animation: scroll-left 40s infinite linear .5s both;
  display: flex; 
      align-items: center;
  column-gap: clamp(1.875rem, -2.696rem + 7.14vw, 5.875rem);
}
.slide {
  width: calc(100vw / 3 - clamp(1.875rem, -2.696rem + 7.14vw, 5.875rem));
}
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.top-concept {
  padding-top: 96px;
  position: relative;
}
.to-concept-deco1 {
      position: absolute;
    bottom: 0;
    z-index: -1;
}
.top-concept-deco-2 {
      position: absolute;
    width: clamp(7.5rem, 2.286rem + 8.15vw, 12.063rem);
    right: clamp(4.438rem, -16.991rem + 33.48vw, 23.188rem);
    top: 66%;
}
.top-concept__inner {
      padding-left: clamp(2.5rem, -1.5rem + 6.25vw, 6rem);
    padding-right: clamp(2.5rem, -15.214rem + 27.68vw, 18rem);
}
.top-concept__container {
      display: flex;
    justify-content: space-between;
    column-gap: clamp(1.875rem, -2.768rem + 7.25vw, 5.938rem);
}
.top-concept__left {
  width: 739px;
}
.top-concept__1 {
  width: 606px;
}
.top-concept__2 {
      width: 442px;
    margin-top: 42px;
    margin-left: clamp(0rem, -21.214rem + 33.15vw, 18.563rem);
}
.top-concept__right {
      width: 702px;
    margin-top: 82px;
}
.top-concept__title {
      margin-top: 44px;
    font-size: clamp(1.375rem, 0.661rem + 1.12vw, 2rem);
    line-height: 2;
    font-weight: 700;
}
.top-concept__text {
      margin-top: 38px;
    font-size: clamp(0.875rem, 0.732rem + 0.22vw, 1rem);
    font-weight: 700;
    line-height: 2;
}
.top-concept__btn {
  margin-top: 45px;
}

.top-service {
  margin-top: 120px;
  background-image: url(https://gokigenjuku.jp/system_panel/uploads/images/top-service_bg.png);
      position: relative;
    margin-bottom: 80px;
    background-size: cover;
}
.top-service-deco {
      position: absolute;
    z-index: -1;
    bottom: -8%;
}
.top-service__inner {
      padding-right: clamp(2.5rem, -1.5rem + 6.25vw, 6rem);
    padding-left: clamp(2.5rem, -15.214rem + 27.68vw, 18rem);
}
.top-service__container {
      display: flex;
    justify-content: space-between;
    column-gap: clamp(1.875rem, -0.554rem + 3.79vw, 4rem);
}
.top-service__left {
  width: 610px;
  margin-top: 82px;
  padding-bottom: 283px;
}
.top-service__right {
      width: 864px;
  position: relative;
}
.top-service__1 {
  width: 454px;
      position: absolute;
    z-index: 1;
    right: 0;
    bottom: 660px;
}
.top-service__2 {
      width: 454px;
      position: absolute;
    z-index: 2;
    bottom: clamp(23.125rem, 19.268rem + 6.03vw, 26.5rem);
}
.top-service__3 {
  width: 414px;
      position: absolute;
    right: clamp(0rem, -6.857rem + 10.71vw, 6rem);
    z-index: 3;
    bottom: clamp(4.625rem, 0.054rem + 7.14vw, 8.625rem);
}
.top-service__btn {
  margin-top: 45px;
}

.top-news {
      padding-top: 80px;
    padding-bottom: clamp(7.5rem, 5.833rem + 3.47vw, 10rem);
}
.top-news__inner {
  padding: 0 clamp(2.5rem, -7.833rem + 21.53vw, 18rem);
}
.news__block {
  margin-top: 64px;
}
.news__block section {
    display: grid;
        column-gap: clamp(2.5rem, -1.75rem + 8.85vw, 8.875rem);
    row-gap: clamp(2rem, 0.667rem + 2.78vw, 4rem);
    grid-template-columns: repeat(3, 1fr);
}
.newsItem {
      box-shadow: 0px 3px 6px rgba(0,0,0,16%);
    border-radius: 10px;
}
.newsItemImg {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}
.newsItemImg img {
    width: 100%;
    aspect-ratio: 355 / 211;
    object-fit: cover;
}
.newsItemCate {
        font-size: clamp(0.75rem, 0.667rem + 0.17vw, 0.875rem);
    color: #FFF;
    font-weight: 700;
    background-color: #05BC91;
    padding: 8px 16px;
    border-radius: 15px;
    display: inline-block;
    line-height: 1;
    text-align: center;
}
.news__block section a:hover .newsItemImg img {
    transform: scale(1.1);
    transition: all .7s;
}
.newsItemText {
  margin-top: 16px;
    display: flex;
    align-items: center;
    padding: 0 clamp(0.5rem, 0.208rem + 0.61vw, 0.938rem);
    column-gap: clamp(0.375rem, 0.042rem + 0.69vw, 0.875rem);
}
.newsItemTime {
       font-size: clamp(0.875rem, 0.792rem + 0.17vw, 1rem);
    color: #000;
    font-weight: 700;
}
.newsItemTit {
        font-size: 16px;
    margin-top: 10px;
    font-weight: 700;
    color: #000;
    padding-left: clamp(0.5rem, 0.208rem + 0.61vw, 0.938rem);
    padding-bottom: clamp(1.25rem, 0.667rem + 1.22vw, 2.125rem);
    padding-right: clamp(0.5rem, 0.208rem + 0.61vw, 0.938rem);
}
.top-news__btn {
      margin-top: clamp(2.5rem, 1.5rem + 2.08vw, 4rem);
    text-align: center;
}

@media (max-width: 1023px) {
  .top-fv {
    padding-top: 113px;
  }
  .top-fv-title__box {
    padding: clamp(3.75rem, -3.779rem + 15.69vw, 6.25rem) clamp(7rem, -4.671rem + 24.31vw, 10.875rem);
  }
  .top-fv-title__icon {
    left: clamp(1.875rem, -9.419rem + 23.53vw, 5.625rem);
  }
  .top-fv__title {
    font-size: clamp(1.5rem, -0.006rem + 3.14vw, 2rem);
  }
  .slider__wrapper {
    column-gap: 20px;
  }
  .slider {
    column-gap: 20px;
  }
  .slide {
    width: calc(100vw / 2 - 20px);
  }
  
  .top-concept-deco-2 {
    top: 60%;
  }
  .top-concept__container {
    flex-direction: column;
  }
  .top-concept__left {
        display: flex;
    align-items: flex-start;
    width: 100%;
  }
  .top-concept__1 {
    width: 60%;
  }
  .top-concept__2 {
        width: 40%;
    margin-top: 100px;
  }
  .top-concept__right {
        margin-top: 20px;
    width: 100%;
  }
  .top-concept__btn {
        display: flex;
    justify-content: center;
  }
  
  .top-service-deco {
    bottom: 18%;
  }
  .top-service__container {
        flex-direction: column-reverse;
    position: unset;
  }
  .top-service__left {
        padding-bottom: 40px;
    width: 100%;
  }
  .top-service__right {
    width: 100%;
  }
  .top-service__1 {
        position: unset;
    width: 100%;
  }
  .top-service__2 {
        position: unset;
    width: 100%;
    margin-top: 8px;
  }
  .top-service__3 {
        position: unset;
    width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 767px) {
  .slider__container {
        display: flex;
    flex-direction: column-reverse;
  }
  .slider__wrapper--2 {
    display: flex;
  }
  .slider__wrapper--2 > div >div {
    width: calc(100vw / 3 - 20px);
  }
  .top-fv-title__box {
        writing-mode: unset;
    position: unset;
    transform: unset;
    display: flex;
    justify-content: center;
    padding: 34px 40px;
  }
  .top-fv-title__icon {
        top: clamp(12.5rem, -3.017rem + 63.66vw, 27.5rem);
    left: unset;
    right: 20px;
    width: clamp(6.938rem, 1.183rem + 23.61vw, 12.5rem);
  }
  .top-fv__title {
    font-size: clamp(1.25rem, 0.474rem + 3.18vw, 2rem);
  }
  .top-fv__title span {
    font-size: 16px;
  }
  
  .to-concept-deco1 {
    top: 24%;
  }
  .top-concept-deco-2 {
    display: none;
  }
  .top-concept__inner {
    padding: 0 20px;
  }
  .top-concept__2 {
    margin-top: 40px;
  }
  .top-concept__title {
        margin-top: 22px;
    font-size: 18px;
  }
  .top-concept__text {
    margin-top: 23px;
  }
  .top-concept__btn {
    margin-top: 24px;
  }
  
  .top-service {
        margin-top: 64px;
    background-image: unset;
    margin-bottom: 0;
  }
  .top-service-deco {
    bottom: 45%;
  }
  .top-service__inner {
    padding: 0;
  }
  .top-service__left {
        background-image: url(https://gokigenjuku.jp/system_panel/uploads/images/top-service-bg--sp.png);
    background-size: cover;
    padding: 38px 20px;
    margin: 0;
  }
  .top-service__right {
    padding: 0 20px;
  }
  
  .news__block {
    margin-top: 40px;
  }
  .news__block section {
        display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .news__block section article {
    width: clamp(20rem, 8.362rem + 47.75vw, 31.25rem);
  }
  .newsItemImg img {
    aspect-ratio: 312 / 185;
  }
  .newsItemText {
        padding: 0 15px;
    column-gap: 10px;
  }
  .newsItemCate {
    font-size: 14px;
    padding: 8px 20px;
  }
  .newsItemTime {
    font-size: 14px;
  }
  .newsItemTit {
    font-size: clamp(0.875rem, 0.487rem + 1.59vw, 1.25rem);
  }
}

@media (max-width: 389px) {
  .top-concept__title {
    font-size: clamp(0.875rem, -0.86rem + 8.16vw, 1.125rem);
  }
}