@charset "utf-8";

/* ==================================
  スクール（school.html）
=====================================*/
/* ヒーロー画像
------------------------------------- */
.hero-school {
    background-image: url(../img/school/school2.jpg);
    background-position: right;
    background-size: 58%;
    object-fit: cover;
}

.heading__blue {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    color: #18AABE;
    font-size: 2rem;
    height: 249px;
    margin-bottom: 76px;
}

main {
    font-size: calc(20/16*1rem);
}

/* ------------スクール内容----------------- */

.school {
    display: flex;
    justify-content: center;
    margin-bottom: 120px;
}

.school__menu {
    position: relative;
    padding: 30px;
    width: 620px;
    height: 280px;
    background-color: #fff;
    margin-right: 52px;
    display: grid;
    place-items: center start;
}

.school__menu h3 {
    position: absolute;
    text-align: center;
    justify-content: center;
    top: 76px;
    left: 0px;
    padding: 20px 0;
    font-size: calc(24/16*1rem);
    background: #5DC1CF;
    color: #fff;
    font-weight: 700;
    border-radius: 20px 20px 0 0;
    width: 480px;
}

.school__menu p {
    background: linear-gradient(transparent 50%, rgba(161, 217, 225, 0.28) 50%);
    text-align: center;
    margin: 0 auto 25px;
    width: 270px;
    /* 横幅がデザイン通りだと改行が入るので少し広めに */
    font-size: 24px;
    color: #18AABB;
    font-weight: bold;
    letter-spacing: 1.45em;
    text-indent: 1.45em;
    /* letter-spacingでのずれをtext-indentで直す */
}

.school__item li {
    list-style-type: circle;
    list-style-position: inside;
    line-height: 1.7;
    text-indent: -1.5rem;
    padding-left: 1.5rem;
}

.school__item li.attention {
    content: none;
    list-style-type: none;
    text-align: right;
    margin-top: 10px;
}

.attention small {
        font-size: 15px;
}

.school__recommend {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    max-width: 100%;
    font-size: 16px;
    background: #D2EEF3;
    border: solid 3px hsl(189, 58%, 89%);
    box-sizing: border-box;
    width: 340px;
    height: 280px;
}

.school__recommend:after {
    content: "";
    position: absolute;
    top: 50%;
    left: -24px;
    margin-top: -14px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 22px solid #D2EEF3;
    border-left: 0;
    z-index: 7;
}

.recommend__people {
    color: #18AABB;
    font-weight: 700;
    font-size: 27px;
}

.school__transparent {
    display: none;
}

/* 受講によって得られるもの */
/* めくれた紙風 */
.attendance {
    margin: 0 auto;
    margin-right: 50px;
    padding: 2em;
    /* 内側余白 */
    background-color: #fff;
    /* 背景色（薄いグレー） */
    position: relative;
    /* 相対位置指定 */
    text-align: center;
    line-height: 2rem;
    margin-top: 80px;
    margin-bottom: 150px;
    width: 55%;
}

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

.attendance_box img {
    padding: 30px;
    object-fit: cover;
    width: 400px;
    height: 450px;
}

.attendance h3 {
    margin-bottom: 2rem;
    font-weight: bold;
    color: #5dc1cf;
    font-size: 25px;
}

.attendance ul {
    list-style-type: none;
}

.attendance::after {
    position: absolute;
    /* 絶対位置指定 */
    content: '';
    /* 擬似要素にコンテンツを表示しない */
    right: 0px;
    /* 右端に配置 */
    top: 0px;
    /* 上端に配置 */
    border-width: 0 50px 50px 0;
    /* めくれた部分の形状 */
    border-style: solid;
    /* 線の種類 */
    border-color: #ccc #F9FDFF #5DC1CF;
    /* 線の色 */

}

/* ------------スクールの募集----------------- */

.school__news {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 120px;
}

.school__open {
    position: relative;
    display: inline-block;
    margin: 1.5em 15px 1.5em 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 267px;
    height: 244px;
    line-height: 45px;
    text-align: center;
    background: #E8FFB6;
    border-radius: 50%;
    box-sizing: border-box;
}

.school__open:before {
    content: "";
    position: absolute;
    top: 50%;
    right: -25px;
    margin-top: -15px;
    border: 15px solid transparent;
    border-left: 15px solid #E8FFB6;
    z-index: 0;
}

.school__open p {
    font-size: 40px;
}

.school__open span {
    font-size: 24px;
}

.begin p:first-of-type {
    font-size: 48px;
    background: linear-gradient(transparent 70%, #FFDD55 50%);
}

.begin {
    margin-left: 24px;
    text-align: center;
}

.begin p {
    text-indent: -1rem;
    padding-left: 1rem;
}

.begin p+p {
    margin-top: 10px;
}

/* ------------フットケアの基礎知識から技術まで、～----------------- */

.school__text {
    margin: 0 auto 120px;
    /* 外側の余白（上下と中央配置） */
    padding: 2em;
    /* 内側余白 */
    background: none;
    /* 元のボックス背景色なし */
    outline: 2px solid #5DC1CF;
    /* 線の太さ（1px）、種類（実線）、色（#ccc） */
    position: relative;
    /* 配置（基準となる位置） */
    width: 100%;
    text-align: center;
}

.school__text::after {
    background-color: #fff;
    /* ずらしたボックスの背景色 */
    border: none;
    /* 枠線なし */
    content: '';
    /* 擬似要素にコンテンツなし */
    position: absolute;
    /* 配置（ここを動かす） */
    top: 7px;
    /* 上から7pxずらす */
    left: 7px;
    /* 左から7pxずらす */
    width: 100%;
    /* 幅100%（親要素に合わせる） */
    height: 100%;
    /* 高さ100%（親要素に合わせる） */
    z-index: -100;
    /* 背景として後ろに表示 */
}

.school__text p {
    margin: 0;
    font-size: 24px;
    text-indent: 0.5rem;
}

/* ------------開業を目指している方や、----------------- */

.school__contact {
    border-radius: 20px;
    margin: 0px 0 120px;
    padding: 20px;
    background-color: #d7eff3;
    width: 100%;
    text-align: center;
}

.school__contact a {
    text-decoration: none;
    color: #18aabe;
    font-weight: bold;
    font-size: 32px;
}

.school__contact a:hover {
    text-decoration: underline;
    text-decoration-color: #18AABB;
}

/* ------------frei----------------- */

.frei {
    text-align: center;
    margin-bottom: 120px;
}

.frei h4 {
    color: #6D956D;
    font-size: 1.8rem;
}

.frei p {
    color: #3f3f3f;
}

.frei a {
    text-decoration: none;
    color: #18AABB;
}



@media (max-width:960px) {
    .heading__blue {
        font-size: 24px;
        margin-bottom: 0;
        height: 150px;
    }

    /* ----------スクール内容------------- */

    .school {
        flex-direction: column-reverse;
        margin-bottom: 46px;
        gap: 100px;
    }

    .school__menu h3 {
        font-size: 20px;
        width: 70%;
        top: -60px;
        left: 0px;
        padding: 15px 5px;
    }

    .school__menu {
        padding: 20px;
        width: 90%;
        max-width: 500px;
        height: 300px;
        background-color: #fff;
        margin-right: 0;
        display: grid;
        place-items: center center;
        margin: 0 auto;
    }

    .school__menu p {
        font-size: 20px;
        letter-spacing: 1.1em;
        text-indent: 1.1em;
        margin-bottom: 15px;
    }

    .school__transparent p {
        margin-top: 20px;
    }

    .school__menu p span {
        font-size: 20px;
        color: #3f3f3f;
        font-weight: normal;
        letter-spacing: 0;
        text-indent: 0;
    }

    .school__menu p:last-child {
        background: none;
    }

    .school__recommend {
        font-size: 20px;
        width: 100%;
        height: 100%;
        position: relative;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
    }

    .school__recommend:after {
        display: none;
    }

    .school__recommend:before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        border: 15px solid transparent;
        border-top: 15px solid #D2EEF3;
    }

    .school__recommend {
        width: 340px;
        height: 100px;
    }

    .school__grid .recommend__people {
        margin-bottom: 0;
    }

    .recommend__people {
        font-size: 20px;
    }

    /* 受講によって得られるもの-------------- */
    .attendance {
        width: 80%;
        margin-right: auto;
        margin-left: auto;
        padding: 2.2em 1.5em;
    }

    .attendance_box {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 60px;
    }

    .attendance_box h3 {
        font-size: 24px;
    }

    .attendance_box img {
        width: 300px;
        height: 350px;
        padding: 20px;
    }


    /* ----------スクール募集------------- */

    .school__news {
        display: block;
        margin-bottom: 40px;
    }

    .school__open p {
        font-size: 3vw;
    }

    .school__open {
        width: 25vw;
        height: 20vw;
        aspect-ratio: 1/1;
        margin: 1.5em 15px 0 0;
        line-height: 1.2;
        padding: 15px;
        left: 30px;
    }

    .school__open:before {
        top: 85%;
        right: -7px;
        border: 25px solid transparent;
        border-left: 50px solid #E8FFB6;
        z-index: -1;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .school__open span {
        font-size: 2.3vw;
    }

    .begin {
        margin: 0;
    }

    .begin p:first-of-type {
        font-size: 25px;
        padding-left: 0;
        display: inline;
        background: linear-gradient(transparent 70%, #FFDD55 50%);
        height: 100%;
    }

    /* ------------フットケアの基礎知識から技術まで、～----------------- */

    .school__text {
        margin-bottom: 40px;
    }

    .school__text p {
        font-size: 20px;
        text-align: left;
    }

    /* ----------開業を目指している方や、～------------- */

    .school__contact a {
        font-size: 24px;
    }
/* ------------frei----------------- */

.frei h4 {
    font-size: 1.5rem;
}
}

@media (max-width:428px) {
    main {
        font-size: 16px;
    }

    .heading__blue {
        font-size: 15px;
        height: 150px;
    }

    /* ------------スクール内容----------------- */
    .school__recommend {
        font-size: 16px;
        width: 300px;
        position: relative;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
    }

    .school__recommend:after {
        display: none;
    }

    .school__recommend:before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        border: 15px solid transparent;
        border-top: 15px solid #D2EEF3;
    }

    .school__recommend p {
        margin: 0;
        padding: 0;
    }

    .school__grid .recommend__people {
        margin-bottom: 0;
    }

    .recommend__people {
        font-size: 15px;
    }

    .school__menu {
        padding: 20px;
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .school__item li {
        text-indent: -1.2rem;
    }

    .school__item small {
        font-size: 13px;
    }

    .school__menu h3 {
        font-size: 15px;
        top: -40px;
        left: 0px;
        padding: 10px;
    }

    .school__menu p {
        font-size: 15px;
        width: 70%;
        letter-spacing: 0.5em;
        text-indent: 0.5em;
        /* letter-spacingでのずれをtext-indentで直す */
    }

    .school__item li.attention {
        font-size: 13px;
    }

    .school__menu .school__transparent {
        width: 70%;
    }

    .school__menu p span {
        font-size: 16px;
    }


    /* 受講によって得られるもの------------------------------- */

    .attendance {
        width: 95%;
        margin: 20px auto;
        padding: 1.5em 1em;
    }

    .attendance_box {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .attendance_box img {
        width: 90%;
        height: auto;
    }

    .attendance h3 {
        font-size: 1rem;
    }

    .attendance::after {
        border-width: 0 25px 25px 0;
    }


    /* ------------フットケアの基礎知識から技術まで、～----------------- */

    .school__text {
        margin-bottom: 62px;
    }

    .school__text p {
        margin: 0;
        font-size: 15px;
    }

    /* ------------スクールの募集----------------- */

    .school__news {
        display: block;
        margin-bottom: 62px;
    }

    .school__open {
        margin: 1.5em 15px 0 0;
        width: 110px;
        height: 96px;
        line-height: 1.5;
        padding: 5px;
        left: 0;
    }

    .school__open:before {
        top: 90%;
        right: -10px;
        border: 15px solid transparent;
        border-left: 15px solid #E8FFB6;
        z-index: 0;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .school__open p {
        font-size: 18px;
    }

    .school__open span {
        font-size: 15px;
    }

    .begin p:first-of-type {
        font-size: 18px;
        background: linear-gradient(transparent 70%, #FFDD55 50%);
    }

    .school__contact a {
        font-size: 20px;
    }
    /* ------------frei----------------- */
.frei h4 {
    font-size: 1.2rem;
}
}
