body {
    display: block;
    font-size: 16px;
    color: #333;
    background-color: #dceeff;
    letter-spacing: 0.1em;
    font-family: 'Avenir', 'Helvetica Neue', 'Helvetica', 'Arial', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', '游ゴシック', 'Yu Gothic', 'MS Ｐゴシック', sans-serif;
}

.carousel {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

@media screen and (max-width:520px) {
    .carousel img {
        height: 100vh;
        /* width: 350px;
        height: 600px; */
        position: 50%;
        object-fit: cover;
    }

    .nav-link1 {
        font-size: 15px;
    }

    .nav-link2 {
        font-size: 15px;
    }

    .name-text p {
        font-size: 12px;
    }

    .about1 p {
        font-size: 12px;
    }

    .ftext1 {
        font-size: 14px;
    }

    .ftext2 {
        font-size: 12px;
    }

    .rtext2 {
        font-size: 13px;
    }

    .ktitle1 {
        font-size: 15px;
    }

    .ktitle {
        font-size: 15px;
    }

    .ktext li {
        font-size: 14px;
    }

    .qtext p {
        font-size: 14px;
    }
}

/* 画像に合わせてカルーセルの高さを調整 */
.slick-slide {
    height: auto;
}

.first-view {
    position: relative;
}

.nav-ja {
    position: absolute;
    left: 50px;
    top: 50px;
    color: #ffffff;
    font-size: 1.3vw;
}

.gnavi li {
    list-style: none;
}

.nav-link2 {
    font-weight: lighter;
}

.nav-ja .nav2 {
    margin-bottom: 20px;
}

.first-view img {
    width: 100%;
}

main {
    margin-left: 10%;
    margin-right: 10%;
}

.profle {
    margin-top: 80px;
}

h1 {
    color: #6c6d6d;
    font-size: clamp(18px, 2.6vw, 36px);
    margin: 80px 0 15px 0;

}

h2 {
    font-size: large;
    padding-bottom: 10px;
}

h3 {
    color: #6c6d6d;
    font-size: clamp(14px, 2vw, 30px);
    margin-bottom: 60px;
}

.lesson-title {
    margin-top: 300px;
    margin-bottom: 80px;
}

.profle-title {
    margin-top: 300px;
    margin-bottom: 80px;
}

.qa-title1 {
    margin-top: 300px;
    margin-bottom: 80px;
}

.contact-title {
    margin-top: 300px;
    margin-bottom: 80px;
}

.inst {
    /* display: block; */
    padding-left: 30px;
    margin-bottom: 20px;
    line-height: 30px;
    background: url(../yamadaimg/instlogo.svg) no-repeat;
}

.line {
    /* display: block; */
    padding-left: 30px;
    line-height: 30px;
    background: url(../yamadaimg/linelogo.svg) no-repeat;
}

.icon {
    padding-top: 50px;
    padding-bottom: 75px;
}

.name-text {
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.5em;
}

.name-text1 {
    padding-top: 60px;
    padding-bottom: 30px;
}

.name-text2 {
    margin-bottom: 30px;
}

.name-text3 {
    margin-bottom: 30px;
}

.name-text4 {
    margin-bottom: 60px;
}

.name-text5 {
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.5em;
    margin-bottom: 60px;
}

.name-background {
    background-color: #f2f6f9;
    width: 100%;
    padding: 20px;
}

.name {
    display: flex;
    width: 100%;
}

.profle-img {
    position: relative;
    width: 100%;
    height: auto;
    padding-left: 0;
    padding-bottom: 200px;
}

.pimg1 {
    position: absolute;
    top: 180px;
    right: 5px;
    /* left: 30%; */
    width: 80%;
    height: auto;
    box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.4);
}

.pimg2 {
    position: absolute;
    top: 380px;
    right: -50px;
    /* left: 60%; */
    width: 70%;
    height: auto;
    box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.4);
}

@media screen and (max-width:767px) {

    .name-background {
        width: 100%;
        padding-left: 3%;
        padding-right: 0%;
    }

    .name {
        display: block;
    }

    .profle-img {
        margin-top: 40px;
    }

    .pimg1 {
        width: 70%;
        top: 30px;
        left: 0px;
    }

    .pimg2 {
        width: 60%;
        top: 150px;
        left: 170px;
    }

    .name-all {
        padding-bottom: 150px;
    }
}

.lesson-all {
    display: flex;
    margin-bottom: 100px;
}

.lesson-img {
    width: 240px;
    height: auto;
    box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.4);
}

.lesson-all .atext {
    margin-right: 40px;
    padding-right: 100px;
}

@media screen and (max-width:767px) {
    .lesson-all .lesson-img {
        display: none;
    }

    .lesson-all .atext {
        margin-right: 0px;
        padding-right: 0px;
    }
}

.about1 {
    line-height: 1.5em;
}

.about2 {
    line-height: 1.5em;
    border: solid 1px #086cfc;
    /* 内側の線になる一本線の枠線をひく*/
    outline: solid 1px #086cfc;
    /* 外側の線になる一本線の枠線をひく*/
    outline-offset: 1px;
    /* 外側の線と内側の線の空き具合を調整*/
    margin: 2px;
    padding: 20px 15px 20px;
    margin: 60px 0 80px;
}

.overview {
    background-image: url(../yamadaimg/IMG_0523150.jpg) !important;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    position: relative;
    height: 100%;
    width: 100%;
}

.overview::after {
    content: '';
    background-color: rgba(0, 0, 0, .5);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

@media screen and (max-width:520px) {
    .overview {
        border: solid #086cfc;
        border-width: 1px;
    }

    .o-1 {
        background-color: #bbdef9;
    }

    .course {
        color: black;
        border: solid #086cfc;
        border-width: 0 0 1px 0;
    }

    .price {
        color: black;
        border: solid #086cfc;
        border-width: 0 0 1px 0;
        word-break: keep-all;
    }

    .o-2 {
        background-color: #bbdef9;
    }

    .access {
        color: black;
    }

    .pay {
        color: black;
        border: solid #086cfc;
        border-width: 1px 0 0 0;
    }

}

@media screen and (min-width:521px) {
    .course {
        border: solid #ffffff;
        border-width: 0 0 1px 0;
    }

    .price {
        border: solid #ffffff;
        border-width: 0 0 1px 0;
    }

    .pay {
        border: solid #ffffff;
        border-width: 1px 0 0 0;
    }
}

h5 {
    font-weight: bold;
    padding-top: 50px;
    padding-bottom: 40px;
    font-size: larger;
}

h6 {
    font-weight: bold;
    padding-top: 50px;
    padding-bottom: 10px;
    font-size: larger;
}

.o-1 {
    height: auto;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.o-2 {
    height: auto;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.course {
    height: 25%;
    position: relative;
    z-index: 1;
    padding-left: 30px;
    padding-right: 30px;
    /* border: solid #ffffff;
    border-width: 0 0 1px 0; */
}

.price {
    height: 25%;
    position: relative;
    z-index: 1;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 20px;
    /* border: solid #ffffff;
    border-width: 0 0 1px 0; */
}

.price-text {
    word-break: keep-all;
}

@media screen and (max-width:520px) {
    .price-text {
        word-break: keep-all;
    }
}

.access {
    height: 25%;
    padding-bottom: 35px;
    padding-left: 30px;
    padding-right: 30px;
}

.actext2 {
    padding-bottom: 20px;
}

.pay {
    height: 25%;
    position: relative;
    z-index: 1;
    /* border: solid #ffffff;
    border-width: 1px 0 0 0; */
    padding-bottom: 40px;
    padding-left: 30px;
    padding-right: 30px;
}

.c-ul li {
    padding-bottom: 40px;
    list-style-position: inside;
    /* list-style: none; */
}

.price-text2 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.price-text p {
    padding-bottom: 20px;
}

.price-text2 p {
    padding-top: 10px;
}

.actext {
    padding-top: 20px;
}

.actext p {
    padding-bottom: 5px;
}

.pay-text-s {
    font-size: small;
    padding-top: 30px;
}

span {
    font-size: small;
}

.first-title {
    padding-bottom: 10px;
    font-weight: bold;
}

.reserve-title {
    margin-top: 80px;
    font-weight: bold;
    font-size: larger;
}

.ftext1 {
    padding-bottom: 15px;
}

.ftext1 .ftext2 .about1 {
    font-size: clamp(14px, 1.6vw, 16px);
}

.atext {
    padding-bottom: 40px;
}

.atext p {
    padding-bottom: 10px;
}

.ktitle {
    font-weight: bold;
    padding-bottom: 10px;
}

.ktext {
    padding-bottom: 40px;
}

li {
    list-style-type: disc;
    /* padding-bottom: 10px; */
}

.rtext {
    padding-top: 40px;
    padding-bottom: 60px;
    line-height: 1.5em;
}

.rtext2 {
    padding-top: 40px;
}

.mail2 {
    font-size: small;
}

.line2 {
    font-size: small;
}

.kiyaku {
    background-color: #f2f6f9;
    line-height: 1.5em;
    padding: 40px 30px 40px 30px;
}

.kiyaku li {
    /* margin: 0 30px 0 60px; */
    list-style: inside;
    padding: 5px 20px 5px 20px;
}

/* .ktitle1 {
    padding: 50px 0 20px 30px;
    padding-bottom: 20px;
    font-weight: bold;
}

.ktitle {
    padding: 0 0 20px 30px;
    font-weight: bold;
} */

a {
    font-weight: bold;
}

.button-all {
    padding-top: 40px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    height: 64px;
    padding: 8px 24px;
    font-family: sans-serif;
    font-size: 16px;
    color: #086cfc;
    text-align: center;
    overflow-wrap: anywhere;
    background-color: transparent;
    border: 2px solid #086cfc;
}

@media (any-hover: hover) {
    .button {
        transition: background-color 0.2s;
    }

    .button:hover {
        background-color: #cadcf9;
    }
}

.qa-all {
    background-image: url(../yamadaimg/IMG_0534150.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    min-width: 100%;
    background-position: 50%;
    position: relative;
    padding-top: 10px;
    padding-bottom: 80px;
}

.qa-all::after {
    content: '';
    background-color: rgba(0, 0, 0, .5);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.qa-title {
    position: relative;
    z-index: 1;
    font-weight: bold;
    padding: 20px 10px 20px 40px;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #ffffff;
}

.qtext p {
    position: relative;
    z-index: 1;
    padding-bottom: 10px;
    padding-left: 40px;
    padding-right: 40px;
    color: #ffffff;
    line-height: 1.5em;
}

.qa-title0 {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-weight: bold;
    padding: 50px 40px 0 40px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.q2 {
    margin-bottom: 20px;
}

.mail {
    padding-left: 30px;
    line-height: 30px;
    width: 16%;
    background: url(../yamadaimg/maillogo.svg) no-repeat;
    color: black;

}

.mail-all {
    margin-bottom: 200px;
}

.mail-all a:hover {
    text-decoration: underline;
}

footer {
    background-color: #225175;
    padding: 30px 0 30px;
    text-align: center;
}