/* common */
:root {
    --primary-black: #333333;
    --primary-white: #FEFAF1;
    --primary-green: #B5D8CF;
    --primary-brown: #E6DFD8;
}

html {
    font-size: 62.5%;
}

body {
    font-family: "BIZ UDPGothic";
    font-size: 1.8rem;
    background-color: var(--primary-brown);
    color: var(--primary-black);
    line-height: 1;
}

img {
    max-width: 100%;
    height: auto;
}

.brSP {
    display: none;
}

/* article__header */
h1 {
    margin-top: 80px;
    font-size: 4rem;
    font-family: "fot-tsukuaoldmin-pr6n", sans-serif;
    text-align: center;
    border-bottom: solid 3px var(--primary-green);
    padding-bottom: 22px;
}

.article__name {
    margin-top: 30px;
    font-size: 2.4rem;
    font-family: "fot-tsukuaoldmin-pr6n", sans-serif;
    text-align: right;
}

.article__subtitle {
    font-size: 2.6rem;
    text-align: center;
    background: rgba(120, 101, 80, 0.8);
    padding: 30px 10px;
    margin-top: 90px;
    color: var(--primary-white);
    position: relative;
    line-height: 1.6;
    border-radius: 20px;
}

.article__subtitle::after {
    position: absolute;
    display: block;
    content: "";
    background-image: url(../images/subAshirai.png);
    width: 38px;
    height: 38px;
    background-repeat: no-repeat;
    background-size: contain;
    top: 95%;
    left: 50%;
    transform: translate(-50%);
}

.article__kansai {
    display: flex;
    padding: 20px;
    justify-content: center;
    margin: 40px auto;
    flex-wrap: wrap;
    gap: 30px 5%;
    width: 75%;
}

.article__kansai li {
  width: 200px; /* 統一幅 */
  height: 60px; /* 統一高さ */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.article__kansai__btn {
    font-family: "fot-tsukuaoldmin-pr6n", sans-serif;
    font-size: 3rem;
    padding: 14px 30px;
    background: var(--primary-white);
    text-align: center;
    border-radius: 12px;
    border: solid 1px #ccc;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
    transition: transform ease .3s;
    position: relative;
    display: block;
    color: var(--primary-black);
    width: max-content;
    z-index: 10;
    width: 200px;
}

.article__kansai__btn::before {
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(120, 101, 80, 0.8);
    transform-origin: 100% 50%;
    transform: scaleX(0);
    transition: transform ease .5s;
    border-radius: 12px;
    z-index: -1;
}

.article__kansai__btn:hover {
    color: var(--primary-white);
}

.article__kansai__btn:hover::before {
    transform-origin: 0% 50%;
    transform: scaleX(1);
}

@media screen and (max-width:911px) {
    h1 {
        font-size: 3.2rem;
    }

    .article__subtitle {
        font-size: 2.4rem;
    }

    .brSP {
        display: none;
    }
}

@media screen and (max-width:769px) {
    h1 {
        font-size: 2.6rem;
        margin-top: 60px;
    }

    .article__subtitle {
        font-size: 2.2rem;
    }

    .article__name {
        font-size: 1.8rem;
    }

    .article__kansai__btn {
        font-size: 2.2rem;
    }
}

@media screen and (max-width:469px) {
    h1 {
        font-size: 3rem;
        margin-top: 50px;
    }

    .article__subtitle {
        font-size: 2rem;
    }

    .article__kansai__btn {
        font-size: 2.2rem;
    }

    .article__name {
        line-height: 1.3;
    }

    .brSP {
        display: block;
    }

    .article__subtitle {
        margin-top: 50px;
    }
}

/* article__header ここまで*/

main {
    padding: 0 5% 80px;
}

/* school */
.school {
    margin-top: 60px;
}

.school__wrapper {
    background-color: var(--primary-white);
    border-radius: 70px;
}

.school__place {
    padding-top: 80px;
    font-family: "fot-tsukuaoldmin-pr6n", sans-serif;
    font-size: 3.2rem;
    text-align: center;
}

.school__group {
    padding: 80px 4%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px 4%;
    justify-content: center;
}

.school__content {
    padding: 36px;
    max-width: 490px;
    /* min-width: 490px; */
    width: 48%;
    border: 1px solid var(--primary-black);
    position: relative;
    border-radius: 10px;
}

.school__content--1 {
    min-height: 120px;
}

.school__content--2 {
    padding-left: 42px;
}

.school__bunrui {
    display: inline-block;
    font-size: 1.8rem;
    background: #ffd21F;
    padding: 4px 28px;
}

.school__name {
    font-size: 2.4rem;
    font-family: "fot-tsukuaoldmin-pr6n", sans-serif;
    line-height: 1.6;
    margin-top: 4px;
}

.school__address,
.school__teacher,
.school__tel,
.school__exp {
    margin-top: 17px;
    position: relative;
    line-height: 1.6;
}

.school__tel a {
    font-weight: 600;
    border-bottom: 2px solid;
}

.school__tel-p {
    line-height: 1.4;
}

.school__address::before {
    display: block;
    position: absolute;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    content: "";
    background-image: url(../images/addressIcon.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 24px;
    height: 24px;
}

.school__teacher::before {
    display: block;
    position: absolute;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    content: "";
    background-image: url(../images/teacherIcon.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 24px;
    height: 24px;
}

.school__tel::before {
    display: block;
    position: absolute;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    content: "";
    background-image: url(../images/telIcon.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 24px;
    height: 24px;
}


/* ページトップ */
#page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    width: 100px;
    height: 100px;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.8rem;
    transition: all 0.3s;
    text-align: center;
    background: var(--primary-green);

}

#page-top a:hover {
    background: rgba(120, 101, 80, 0.8);
    color: var(--primary-white);
}

#page-top {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 1000;
    opacity: 1;
    transform: translateY(0);
}

#page-top.UpMove {
    animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#page-top.DownMove {
    animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(100px);
    }
}


@media screen and (max-width:769px) {
    .article__kansai__btn {
        font-size: 2.4rem;
    }

    .school__bunrui {
        font-size: 1.6rem;
    }

    .school__name {
        font-size: 2.2rem;
        margin-top: 10px;
    }

    .school__content--1 {
        min-height: 110px;
    }
}

@media screen and (max-width:769px) {
    .school__group {
        padding: 50px 4%;
        display: flex;
        flex-wrap: wrap;
        gap: 30px 4%;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .school__content {
        padding: 30px 20px;
        max-width: 490px;
        width: 100%;
        border: 1px solid var(--primary-black);
        position: relative;
        border-radius: 10px;
    }

}

@media screen and (max-width:469px) {
    .article__kansai {
        padding: 0;
        width: 100%;
    }

    .article__kansai__btn {
        font-size: 2.2rem;
        padding: 14px 39px;
    }

    .school__wrapper {
        border-radius: 30px;
    }

    .school__place {
        padding-top: 60px;
        font-size: 2.4rem;
        text-align: center;
    }
}

@media(min-width: 768px) {
    a[href^="tel:"] {
        pointer-events: none;
    }

    .school__tel a {
        font-weight: 400;
        border-bottom: none
    }
}