@charset "UTF-8";

/*-----------------------------HTMLパーツ---------------------------------*/
#tategaki + .width_fixed>.content_wrapper {
    writing-mode: vertical-rl;
    text-orientation: upright;
    margin:0 auto;
    width: fit-content;
    height: 100%;
    max-height: 480px;
}

#tategaki + section {
    background-size: contain;
}

#tategaki + section .midasi,
#tategaki + section .sub-midasi{
    font-size: 2.9rem;
    font-weight: bold;
}

#tategaki + section .title {
    font-size: 3.2rem;
    font-weight: bold;
}

#tategaki + section .text{
    line-height: 2;
    font-size: 1.8rem;
    font-weight: 600;
    padding-top: 7rem;
}

#tategaki + section .sub-midasi {
    padding-top: 10rem;
}

#tategaki + section {
    background-size: contain!important;
    /*overflow-x: scroll;*/
}

#tategaki + section .content {
    margin-left: 2vw;
}

#tategaki + section .content:last-child {
   margin-left: 0;
}

@media screen and (max-width: 700px) {
#tategaki + section .midasi,
#tategaki + section .sub-midasi {
    font-size: clamp(18px, 4vw, 28px);
}

#tategaki + section .title {
    font-size: clamp(20px, 4.2vw, 30px);
}

#tategaki + section .text {
    font-size: clamp(12px, 3vw, 18px);
}

#tategaki + section .text {
    padding-top: 7vw;
}

#tategaki + .width_fixed>.content_wrapper {
    padding: 0;
}
}

@media screen and (max-width: 400px){
     #tategaki + section .text{
    line-height: 1.4;
}
}


/*-----------------------------左側の英語---------------------------------*/
#top.index:before {
    display: none;
}

main:before {
    position: absolute;
    display: block;
    content: "IB CORPORATION";
    top: 5rem;
    left: 0;
    line-height: 1;
    writing-mode: vertical-rl;
    font-size: 6.2rem;
    font-family: 'Oswald', sans-serif;
    white-space: nowrap;
    color: #eee;
    font-weight: 700;
    letter-spacing: 0rem;
    pointer-events: none;
}

body.scrolled main:before {
    position: fixed;
}

@media screen and (max-width: 900px){
  main:before {
    top: 7rem;
    font-size: 10rem;
  }
}

@media screen and (max-width: 500px){
  main:before {
    font-size: 7rem;
  }
}

@media screen and (max-width: 400px){
  main:before {
    font-size: 5.5rem;
  }
}