body {
    background-color: #F5F5F5;
}

hgroup {
    padding-top: 300px;
}

hgroup p {
    color: white;
    font-size: min(60vw,50px);
    background: linear-gradient(to right,#010088, #0000FB);
    display: block;
    width: fit-content;
    padding: 0 8px;
    margin: 0;
}

.btn-1 {
    margin-left: 0;
}
/*****************************************/

@media(min-width:640px){
    hgroup{
     padding: 0;   
    }    
}
/*****************************************************

fv

********************************************************/
#fv{
    max-width: 1400px;
    margin: 0 auto;
}

#fv div.contents{
    position: relative; 
    height: 70vh;
}

#fv div.contents img{
   width: 100%;
   height: 60vh;
   object-fit: cover;
   object-position: 70% 25%;
}

#fv div.contents hgroup{
    padding: 0 18px;
    position: absolute;
    bottom: 0;
    left: 0;
}

#fv div.contents h1 {
    font-size: min(5vw, 24px);
    margin: 0;
    color: white;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.6);
}

#fv div.contents p.catch {
    background: linear-gradient(to right,rgb(1,0,136),rgb(0,0,251));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: min(7vw, 32px);
    padding: 0;
    font-family: 'Noto Sans JP';
}

#fv div.contents p.catch span {
    background-color: white;
    white-space: nowrap;
    width: fit-content;
    margin: 5px;
    display: inline-block;
}

#fv div.contents p.catch span b {
    background: linear-gradient(to right,rgb(1,0,136),rgb(0,0,251));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;padding: 15px;
}

.fv-btn{
    padding: 30px 18px;
}

.btn-2 {
    box-sizing: border-box;
    text-decoration: none;
    position: relative;
    background-image: url(./doboku.jpg);
    margin: 14px 0;
    background-size: cover;
    background-position: center;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    display: block;
    width: min(100%, 400px);
    margin: 16px auto;
}

.btn-2:nth-child(2){
    background-image: url(./kenchiku.jpg);
}

#fv .inner {
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
    transition: .2s;
}

#fv .inner:hover {
    background-color: rgba(0,0,0,.7);
}

.btn-2 .inner::after{
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 16px;
    content :"";
    display: block;
    background-image: url(./w-arw.png);
    height:20px;
    width: 24px;  
    background-repeat: no-repeat;
    background-size: contain;
}

.course{
    font-size: 20px;
    margin: 20px 12px;
}

.see{
    padding-right: 40px;
}

p.text {
    color: black;
    margin: 0 auto;
    padding: 35px 20px 52px;
    font-weight: bold;
    line-height: 2.5em;
}

p.text span.comment{
    display: inline-block;
}
  
@media(min-width:640px){
    #fv div.contents p.catch {
        display: block;
    }
    
    #fv div.contents p.catch span{
        margin: 4px 0;
        display: block;
    }

    #fv div.v p.catch br {
        display: block;
    }

    p.text {
        text-align: center;
    }
}

@media(min-width:768px){
    .fv-btn{
        display: flex;
        justify-content: space-around;
    }

    .btn-2 {
        width: 40%;
        max-width: 360px;
    }  
    
    #fv .inner{
        padding: 10px;
    }

    .see{
        padding-right: 32px;
    }
}

@media(min-width:1100px){
    #fv{
        position: relative;
    }

    .fv-btn{
        position: absolute;
        bottom: -48px;
        right: 16px;
        display: flex;
    }

    .btn-2{
        width: 100%;
        padding: 8px;
    }

    .course{
        align-self: flex-start;
        margin: 0  0 40px 0;
    }
    
    .see{
        align-self: flex-end;
    }

    .btn-2 .inner::after{
        bottom: 26px;
        margin: 0;
        top: auto;
    }
}

/******************************************************

vision

*************************************************/

#vision {
    background-image: url(vision.jpg);
    background-position: center;
    background-size: cover;
    padding: 18px;
    margin: 48px auto;
}

#vision hgroup p {
    color: white;
    font-family: 'outfit', sans-serif;
    font-weight: bold;
    font-size: clamp(60px, 8vw, 100px);
    line-height: 1em;
}

#vision h2 {
    margin: 10px 0;    
    color: white;
}

#vision > p {
    color: white;
    margin: 24px 0;
    max-width: 40em;
    text-shadow: 0 4px 4px rgba(0,0,0,0.25);
    line-height: 1.6;
    font-weight: bold;
}

@media(min-width:640px){
    #vision {
        max-width: 1200px;
        margin: 18px auto;
        height: 550px;
        padding: 48px min(50%, 600px) 21px 7%;
        box-sizing: border-box;
        background-image:linear-gradient(to left, transparent 0%, rgba(0,0,201,0.25) 49%, #0000C9 100%), url(vision.jpg); 
    }  
}

/******************************************************

role

****************************************************/
#role{
    background-color: #0000C9;
    padding-bottom: 18px;
    z-index: 10;
    position: relative;
}

#role img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: -10;
    position: relative;
}

#role hgroup{
    padding: 0 18px;
    bottom: 0;
    left: 0;
    padding: 0 18px;
    margin-top: -264px;
}

#role hgroup p {
    font-family: 'outfit', sans-serif;
    font-weight: bold;
    font-size: clamp(60px, 8vw, 100px);
    line-height: 1em;
}

#role hgroup h2 {
    color: white; 
}

#role > p {
    color: white;
    text-shadow: 0 4px 4px rgba(0,0,0,0.25);
    line-height: 1.6;
    font-weight: bold;
    padding: 0 18px;
}

#role a{
    margin: 18px 18px 0 18px;
}

@media(min-width:640px){
    #role{
        background-size: cover;
        background-image:linear-gradient(to right, transparent 0%, rgba(0,0,201,0.25) 49%, #0000C9 100%), url(role.jpg); 
        background-position: 25% center;
        max-width: 1200px;
        margin: 36px auto;
        height: 550px;
        padding: 48px 18px 18px min(50%, 600px);
        box-sizing: border-box;
    } 
    
    #role img{
        display: none;
    }

    #role hgroup{
        margin:0;
    }
}

/******************************************************

location

****************************************************/

#location {
    background-image: url(location.jpg);
    background-size: cover;
    background-position: 30%;
    padding: 18px;
    padding-bottom: 330px;
    margin: 48px 0;
}

#location div.box{
    max-width: 1000px;
    margin: 0 auto;
}

#location h2 {
    color: #01009D;
    text-align: center;
    font-size: clamp(24px, 5vw, 60px);
    line-height: 1em;
    line-height: 1.5em;
}

#location .box > p {
    margin: 0;
    color: #01009D;
    font-weight: bold;
}

#location a.btn-1 {
    background: linear-gradient(to right,#005A04,#0CAA13);
    color: white;
    border: solid 2px white;
    margin-top: 16px;
    transition: .2s;
}

#location a.btn-1:hover {
    background: white;
    color: #005A04;
}

#location a.btn-1::before{
    background-image: url(w-arw.png);
    transition: .2s;
}

#location a.btn-1:hover::before {
    background-image: url(g-arw.png);
}

@media(min-width:640px){
    #location {
        padding: 40px;
        padding-bottom: 330px;
        margin: 0;
    }
    #location .btn-1 {
        margin-right: 50%;
    }
}