
/***** main-top *****/

.top_wave {
    background-image: url("../images/top_img/worklife_top.JPG");
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center 45%;
}
.title h2 {
    left: 45%;
}

/* ページ内リンク */

a.jump_point {
    height: 1px;
    display: block;
    padding-top: 100px;
    margin-top: -100px;
}

/* タイトル 仕事も学びも・・・ */

.title_group {
    height: 75vh;
}
.textanime {
    font-size: clamp(25px, 5vw, 60px);
    font-weight: 700;
    margin-top: 100px;
    letter-spacing: 0.2em;
    text-align: center;
}
.textanime span {
    display: inline-block;
}
.textanime .small {
    font-size: clamp(18px, 3vw, 40px);
}
@media screen and (max-width: 1000px) {
    .title_group {
        height: 35vh;
    }
    .textanime {
        margin-top: 70px;
        letter-spacing: 0.05em;
    }
}
@media screen and (max-width: 700px) {
    .title_group {
        height: 250px;
    }
}

/* サブタイトル */

.worklife_subtitle {
    width: 100%;
    height: 59px;
    background-color: rgba(29, 135, 177, 0.7);
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    color: #dce1e6;
    font-weight: bold;
    letter-spacing: 5px;
}
.worklife_subtitle h3 {
    font-size: 63px;
    line-height: 60px;
    padding: 0 30px;
}
.worklife_subtitle p {
    font-size: 28px;
    line-height: 24px;
    color: rgb(220, 225, 230, 0.4);
}
.worklife_subtitle p span {
    font-size: 36px;
    color: #dce1e6;
}
.worklife_subtitle .opacity {
    font-size: 28px;
    opacity: 0.5;
}
.worklife_bg {
    background-repeat: no-repeat;
    background-size: cover;
    height: 250px;
    margin-bottom: 80px;
}
.work_group .worklife_bg {  /* 仕事 */
    background-image: url("../images/worklife/work_bg.png");
    background-position: bottom 43% right 100%;
}
.learning_group .worklife_bg {  /* 学び */
    background-image: url("../images/worklife/learning_bg.JPG");
    background-position: 100% 40%;
    margin-bottom: 100px;
}
.play_group .worklife_bg {  /* 遊び */
    background-image: url("../images/worklife/play_bg.png");
    background-position: 100% 10%;
}
.fellow_group .worklife_bg {  /* 仲間作り */
    background-image: url("../images/worklife/fellow_bg.png");
    background-position: 100% 60%;
}
.fellow_group h3 {
    padding: 0;
}
.fellow_group .worklife_subtitle p {
    color: #dce1e6;
}
.worklife_filter {
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAABxJREFUGFdjZGBg+M/AwMAIo0EMEIALwmVwqgAABMEIAyx8bz0AAAAASUVORK5CYII=);
    height: 100%;
}
.worklife_text {
    color: #FFF;
    font-size: 24px;
    text-align: center;
    margin-top: 50px;
}

/***** work_section *****/

.work_section {
    width: 80%;
    margin: auto;
}
.work_group .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    column-gap: 10px;
    row-gap: 10px;
    width: 100%;
    margin: auto;
}
.work_group .grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0.5px solid #060563;
    width: 100%;
    border-radius: 3px;
    height: 250px;
    text-align: center;
}
.work_group .grid-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 2px;
}
.work_group .syain {
    border: 0px solid #060563;
}
.work_group .syain img {
    height: 80%;
    object-fit: contain;
}
@media screen and (max-width: 700px) {
    .work_section {
        width: 90%;
    }
    .work_group .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }    
    .work_group .grid-item {
        height: 150px;
    }
}


/***** learning_section *****/

#learning_section_p {
    width: 75%;
    font-size: 1.6rem;
    margin: 50px auto;
}
.learning_section .grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 10px;
    row-gap: 10px;
    margin: auto;
    margin-bottom: 50px;
    position: relative;
}
.learning_section .grid-container_first {
    width: 75%;
}
.learning_section .grid-container_second {
    width: 90%;
}
.learning_section .grid-container_first::before {
    position: absolute;
    content: "";
    top: 10px;
    left: 2vw;
    width: 75vw;
    height: 100%;
    border: 1px solid #060563;
    border-radius: 3px;
}
.learning_section .grid-container_first .grid-item {
    display: flex;
    justify-content: end;
    align-items: left;
    width: 100%;
    height: 200px;
    font-size: 2.4rem;
}
.learning_section .grid-container_second .grid-item {
    width: 100%;
    height: 200px;
}
.learning_glid_img {
    grid-column: 1 / 4;
    grid-row: 1;
    height: auto;
}
.learning_section img {
    border: 0.5px solid #060563;
    border-radius: 3px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.learning_glid_text {
    grid-column: 4 / 6;
    grid-row: 1;
    height: auto;
    display: flex;
    flex-flow: column;
    padding: 20px;
}
.learning_glid_text h4 {
    font-size: 2.0rem;
    padding: 0 0 4% 4%;
}
.learning_glid_text p {
    font-size: 1.6rem;
    margin: 0;
    padding:  0 10% 5% 4%;
}
#riskil {
    grid-column: 1 ;
    grid-row: 1 / 3;
    height: auto;
}
#riskil_text {
    grid-column: 2 / 6 ;
    grid-row: 1 ;
    height: auto;
    padding: 20px;
}
.grid-container_second #riskil img {
    object-fit: cover;
    width: 100%;
    height: auto;
    border: 3px solid rgba(0, 0, 0, 0.2);
}


@media screen and (max-width: 1200px) {
    .learning_section .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
    #riskil_text {
        grid-column: 2 / 5 ;
    }
}
@media screen and (max-width: 1100px) {
    .learning_glid_img {
        grid-column: 1 / 5;
        grid-row: 1;
    }
    .learning_glid_text {
        grid-column: 1 / 5;
        grid-row: 2;
        padding: 10px;
    }    
    .learning_section .grid-container_first .grid-item {
        height: auto;
    }    
}
@media screen and (max-width: 800px) {
    .learning_section .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    #riskil_text {
        grid-column: 2 / 4 ;
    }
}
@media screen and (max-width: 600px) {
    .learning_section .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    #riskil {
        grid-column: 1 ;
        grid-row: 1 / 2 ;
    }    
    #riskil_text {
        grid-column: 2 / 3 ;
    }
}


/* モーダル */
.modaal-close:after, 
.modaal-close:before{
	background: rgb(255, 255, 255);	
}
.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before{
	background: #060563;
}


/***** play_section *****/

.play_group .grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 10px;
    row-gap: 10px;
    width: 80%;
    margin: auto;
}
.play_group .grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0.5px solid #060563;
    width: 100%;
    border-radius: 3px;
    height: 250px;
    text-align: center;
    font-size: 2.4rem;
    font-family: fot-chiaro-std, sans-serif;
    font-weight: 700;
    font-style: normal;
}
.play_group .syain {
    border: 0px solid #060563;
}
#takenoko_1 {
    grid-column: 2;
    grid-row: 1 / 3;
    height: auto;
}
#takenoko_2 {
    grid-column: 4;
    grid-row: 1 / 3;
    height: auto;
    position: relative;
}
#takenoko_2 img {
    position: absolute;
    object-position: top;
}
#yakiimo {
    grid-column: 2;
    grid-row: 3 / 5;
    height: auto;
}
#yakiimo_text {
    grid-column: 1;
    grid-row: 4;
}
#tsuri {
    grid-column: 3 / 5;
    grid-row: 4;
}
#tsuri_text {
    grid-column: 3;
    grid-row: 3;
}
#tsuri img {
    object-position: 0 -10px;
}
.play_group .grid-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 2px;
}
.play_group .syain img {
    height: 80%;
    object-fit: contain;
}
#syain3 {
    grid-column: 4;
    grid-row: 3;
}
@media screen and (max-width: 1000px) {
    .play_group .grid-container {
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
    }
    #takenoko_2 {
        grid-column: 1;
        grid-row: 3 / 5;
    }
    #yakiimo {
        grid-row: 5 / 7;
    }
    #yakiimo_text {
        grid-column: 1;
        grid-row: 5;
    }    
    #syain2 {
        grid-column: 1;
        grid-row: 6;
    }
    #tsuri {
        grid-column: 1 / 3;
        grid-row: 8;
    }
    #syain3 {
        grid-column: 2;
        grid-row: 7;
    }
    #tsuri_text {
        grid-column: 1;
        grid-row: 7;
    }
}
@media screen and (max-width: 600px) {
    .play_group .grid-item {
        height: 150px;
    }
    .play_group p {
        font-size: 1.6rem;
    }
}    

/***** fellow_section *****/

.fellow_group .grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    column-gap: 10px;
    width: 75%;
    margin: auto;
}
.fellow_group .grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0.5px solid #060563;
    width: 100%;
    border-radius: 3px;
    height: auto;
    text-align: center;
    font-size: 2.4rem;
}
.fellow_group .grid-item:first-child {
    border: 0px solid #060563;
}
.fellow_group .grid-item img {
    height: 50%;
    object-fit: contain;
}
#fellow_text {
    grid-column: 2 / 5;
    grid-row: 1;
    padding: 20px;
    text-align: left;
}
#fellow_text span {
    text-decoration: underline; /* 下線 */
    text-decoration-thickness: 0.5em; /* 線の太さ */
    text-decoration-color: rgba(255, 228, 0, 0.6); /* 線の色 */
    text-underline-offset: -0.2em; /* 線の位置。テキストに重なるようにやや上部にする */
    text-decoration-skip-ink: none; /* 下線と文字列が重なる部分でも下線が省略されない（線が途切れない） */
}
@media screen and (max-width: 600px) {
    .fellow_group .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
    #fellow_text {
        grid-column: 1;
        grid-row: 2;
        font-size: 1.6rem;
    }    
}





@media screen and (max-width: 800px) {
    .learning {
        width: 100%;
        height: 22vh;
        margin: 50px auto 0 auto;
        position: relative;
    }
    .learning_section p {
        font-size: 16px;
    }
    .learning_img::before {
        height: 23vh;
    }    
    .learning_text {
        width: 90vw;
        bottom: -10%;
        left: 0%;
    }
    .learning_img {
        position: absolute;
        top: -10px;
        left: 0px;
    }    
    .learning_img img {
        width: 80vw;
    }
    .learning_text h4 {
        font-size: 20px;
        padding: 0 0 2% 4%;
    }
    .riskil_section {
        margin: 50px auto;
    }
    .riskil_section p {
        margin: 20px;
        font-size: 16px;
    }
    .fellow_section {
        background-position: 50% 0;
        background-size: 20%;
        margin: auto;
        width: 70%;
        height: 200px;
    }
    .fellow_section p {
        font-size: 16px;
        position: absolute;
        top: 20%;
        left: 0%;
        line-height: 20px;
    }
}
@media screen and (max-width: 700px) {
    .worklife_subtitle {
        height: 53px;
        flex-flow: column;
        align-items: center;
        justify-content: space-between;
    }
    .fellow_group .worklife_subtitle {
        flex-flow: row;
        justify-content: center;
        align-items:baseline;
        height: 33px;
    }
    .worklife_subtitle h3 {
        font-size: 35px;
        line-height: 35px;
    }
    .worklife_subtitle p {
        font-size: 16px;
        color: rgb(220, 225, 230, 0.4);
    }
    .worklife_subtitle p span {
        font-size: 18px;
        color: #dce1e6;
    }
    .worklife_subtitle .opacity {
        font-size: 16px;
        opacity: 0.5;
    }    
    .worklife_text {
        font-size: 1.4rem;
        margin: 20px 10px;
        text-align: left;
    }
    .worklife_bg {
        background-repeat: no-repeat;
        background-size: cover;
        height: 170px;
        margin-bottom: 40px;
    }
    .learning {
        height: 28vh;
    }
    .learning_text {
        width: 90vw;
        left: 0%;
        bottom: 20%;
    }
    .riskil_section {
        flex-flow: column;
    }
    .learning_text p {
        margin-top: 0;
    }
}
@media screen and (max-width: 500px) {
    .title br {
        display: block;
    }
    .learning_text {
        width: 90vw;
        bottom: 18%;
        left: 0%;
    }
    .learning {
        margin: 30px auto 0 auto;
    }
}
    




