@charset "UTF-8";

/*-------------追加テキスト-------------*/
#service_text + section {
    text-align: center;
} 
#service_text + section .heading.block_header_6.align-left {
    align-items: center !important;
    text-align: center !important;
}
@media screen and (max-width: 768px){
    #service_text + section {
        text-align: left;
    }
    #service_text + section .heading.block_header_6.align-left {
        align-items: flex-start !important;
        text-align: left !important;
    }
    #service_text + section .inner_item_txt br{
        display: none;
    }
}


/*-------------授業の流れ-------------*/
#service_flow + section .service_flow_item {
  box-sizing: border-box;
  list-style: none !important;
  margin: 0;
  padding: 0;
  padding-left: 4em;
  padding-bottom: 3em;
  position: relative;
}
#service_flow + section .service_flow_item:not(:last-of-type)::before {
  content: "";
  width: 5px;
  height: 100%;
  background-color: var(--i_sub_color);
  font-size: 1.4em;
  position: absolute;
  top: 1em;
  left: 1em;
  transform: translateX(-50%);
  z-index: 1;
}
#service_flow + section .service_flow_item .number {
  font-size: 1.4em;
  letter-spacing: 0;
  line-height: 2em;
  width: 2em;
  height: 2em;
  font-weight: 700;
  border-radius: 50%;
  background-color: var(--i_sub_color);
  color: var(--i_bg_color);
  text-align: center;
  position: absolute;
  left: 0;
  top: 0.8em;
  transform: translateY(-50%);
  z-index: 2;
}
#service_flow + section .service_flow_item .ttl {
  font-size: 1.4em;
  line-height: 1.6;
  font-weight: 700;
  color: var(--i_sub_color);
}
#service_flow + section .service_flow_item .txt {
  margin-top: 1em;
}

@media screen and (max-width: 800px) {
  #service_flow + section .service_flow_item {
    padding-left: 3em;
    padding-bottom: 3em;
  }
  #service_flow + section .service_flow_item:not(:last-of-type)::before {
    width: 3px;
    font-size: 1.2em;
  }
  #service_flow + section .service_flow_item .number {
    font-size: 1.2em;
  }
  #service_flow + section .service_flow_item .ttl {
    font-size: 1.2em;
  }
  #service_flow + section .service_flow_item .txt {
    margin-top: 0.75em;
  }
}


/*-------------atama+の効果-------------*/
#service_before_after + .composite_box01 .inner_item:nth-of-type(2):nth-last-of-type(1){
    margin-left: 8%;
    position: relative;
}
#service_before_after + .composite_box01 .inner_item:nth-of-type(2):nth-last-of-type(1)::before{
    content: "";
    width: 10%;
    aspect-ratio: 1 / 1;
    background-image: url(/common/upload_data/school-kgcom/image/20241029101408.png);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    left: -8%;
    transform: translate(-50%,-50%);
}

@media screen and (max-width: 900px){
    #service_before_after + .composite_box01 .inner_item:nth-of-type(2):nth-last-of-type(1){
        margin-left: 0;
        margin-top: 80px;
    }
    #service_before_after + .composite_box01 .inner_item:nth-of-type(2):nth-last-of-type(1)::before{
        width: 50px;
        top: -40px;
        left: 50%;
        transform: translate(-50%,-50%) rotate(90deg);
    }
}


@media screen and (max-width: 480px){
    #service_before_after + .composite_box01 .inner_item:nth-of-type(2):nth-last-of-type(1){
        margin-top: 30px;
    }
    #service_before_after + .composite_box01 .inner_item:nth-of-type(2):nth-last-of-type(1)::before{
        width: 30px;
        top: -30px;
        left: 50%;
        transform: translate(-50%,-50%) rotate(90deg);
    }
}


/*------ アンカーボタン ------*/
@media screen and (max-width: 550px){
    #service_anchor_btn + .contents_btn01 .content_wrapper{
        display: flex;
        gap: 10px;
    }
    #service_anchor_btn + .contents_btn01 .content_wrapper > a{
        flex: 1;
        margin: 0;
        min-width: initial;
    }
    #service_anchor_btn + .contents_btn01 .content_wrapper > a span{
        padding: 12px 4px;
    }
}