﻿@charset "utf-8";

a {
    text-decoration: none;
}

html,
body {
    margin: 0;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Sawarabi Gothic', sans-serif;
}

#wrap {
    width: 1500px;
    margin: 0 auto 5em;
}

h1 {
    letter-spacing: 0.05em;
    font-size: 4.4rem;
    font-weight: 400;
    line-height: 1.2;
}

h1 span {
    font-size: 1.6rem;
    
}

.langlk {
    display:block;
    width:100px;
    font-size:1.4rem;
    margin-left:auto;
    margin-right:0;
    text-align:center;
    margin-bottom:2em;
    padding:0.3em;
 }

#container {
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(3, 640px);
    gap: 3em 3em;
}

.card-list {
    background-color:#f7f7f7;
}

.card-list:not(:nth-child(-n+3)) {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s;
}

.card-list>div {
    height: 100%;
    position: relative;
}

.card-list h2 a {
    color: #fff;
}

.card-list h2 {
    font-weight: 400;
    font-size: 2.6rem;
    margin: 0;
    line-height: 1.2;
    padding-bottom: 0.2em;
    padding-left: 10px;
    width: 75%;
}

.card-list h2 span {
    font-size: 1.6rem;
}

.fbox {
    display: flex;
    align-items: flex-start;
}

.message {
    position: relative;
    display: inline-block;
    margin: 2em 2em 1em 2em;
    padding: 10px 20px;
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: justify;
    letter-spacing: 0.03em;
    color: #121212;
}

.message:before {
    content: "";
    position: absolute;
    border: 15px solid transparent;
    top: -30px;
    left: 85%;
    margin-left: -15px;
}

.title-head {
    height: 150px;
    position: relative;
}

.t-name {
    font-size: 2rem;
    margin: 0;
    line-height: 1;
    color: #fff;
    margin-left: 10px;
}

.t-name span {
    font-size: 1.4rem;
}

.photo {
    position: absolute;
    right: -5px;
    bottom: 0;
}

.photo img {
    vertical-align: bottom;
}

h3 {
    font-size: 1.2em;
    color: #fff;
    position: relative;
    padding: 0.5rem 0.5rem calc(0.5rem + 7px);
    width: 80px;
    font-weight: 400;
    margin-left: 20px;
    height: 15px;
}

h3:before {
    position: absolute;
    top: -7px;
    left: -7px;
    width: 100%;
    height: 100%;
    content: '';
}

.fig {
    text-align: center;
    padding: 1em;
}

.fig img {
    border: 1px solid #e6e6e6;
}

.fig a:hover {
    opacity: 0.7;
    transition: 0.2s;
}

ol li {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 0.3em;
}

.courselk {
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
    padding: 1rem 3.5rem 1rem 1.5rem;
    transition: all 0.3s;
    z-index: 1;
    overflow: hidden;
    font-weight: 600;
    line-height: 2;
}

.courselk:before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -30px;
    bottom: -30px;
    width: 60px;
    height: 60px;
    transform: rotate(-45deg);
    transition: all 0.3s;
}

.courselk .arrow {
    color: #000;
    position: absolute;
    bottom: 10px;
    right: 6px;
    margin-left: 2px;
    margin-top: 10px;
    width: 15px;
    height: 1px;
    background-color: #fff;
    transition: all 0.3s;
}

.courselk .arrow:before {
    content: "";
    position: absolute;
    right: 1px;
    top: -4px;
    width: 7px;
    height: 7px;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
    transform: rotate(45deg);
}

.courselk:hover {
    font-weight: 600;
    padding: 1rem 2.5rem 1rem 2.5rem;
}

.courselk:hover:before {
    right: -80px;
}

.courselk:hover .arrow {
    right: -20px;
}

.lkwrap {
    position: absolute;
    bottom: -3px;
    right: -3px;
}

.link-bds {
    display: inline-block;
    font-size: 0.75em;
    padding:0.5em 1em;
    margin-left:10px;
    margin-top: 10px;
    padding-right:28px;
    position: relative;
}
.link-bds::after {
    content:'';
    width: 18px;
    height: 18px;
    background-size: contain ;
    position: absolute;
    right:5px;
    top:1px;
}

footer p {
    text-align: center;
    color: #fff;
    font-size: 1.4rem;
    margin-top: 3rem;
}

@media screen and (max-width: 1500px) {
    h1 span {
        display: block;
    }
    #container {
        grid-template-columns: 1fr 1fr;
    }
    #wrap {
        width: 1000px;
    }
}

@media screen and (max-width: 1000px) {
    html {
        font-size: 58%;
    }

    #wrap {
        width: 98%;
    }

    .fbox div {
        flex-shrink: 1;
        flex-basis: 200px;
    }
    h1 {
        font-size:4rem;
    }
}

@media screen and (max-width: 890px) and (min-width: 743px), (max-width: 500px) {

    .card-list h2 {
        font-size:2.2rem;
        padding-bottom:0.3em ;
    }

    .card-list h2 span {
        display: inline-block;
        line-height:1.1;
    }
    .t-name {
        font-size:1.8rem;
    }
    .title-head {
        height:130px;
    }

    .link-bds {
        margin-top: 8px;
    }

    .link-bds::after {
        width:16px;
        height:16px;
    }

    .photo img {
        width:140px;
    }

    .message {
        line-height:1.1;
        margin:1.5em 1.5em 1em 1.5em;
    }

    .message:before {
        border-width: 10px;
        top: -20px;
        left: 90%;
    }

    h3 {
        padding: 0.25rem 0.25rem calc(0.25rem + 5px);
        width: 70px;
        height: 12px;
    }

    h3:before {
        top: -6px;
        left: -6px;
    }

    .fbox {
        display: block;
    }

    .card-list {
        padding-bottom: 22px;
    }

    .lkwrap {
        bottom:-26px;
    }

}


@media screen and (max-width: 743px) {
    #wrap {
        width: 500px;
    }
    #container {
        grid-template-columns: 1fr;
        gap: 5em;
    }
}

@media screen and (max-width: 540px) {
    #wrap {
        width: 95%;
    }
    h1 {
        font-size:3rem;
    }

}