@charset "utf-8";




.sec-intro {
    margin-bottom: 147px;
}

.t_school .inner {
    margin-right: 4%;
}

.main-contents {
    max-width: 1050px;
    width: 90%;
    margin-left: 0;
    margin-right: auto;
}

.t_school .title {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-bottom: 17px;
}

.t_school .title .ttl-ja {
    font-size: 24px;
    letter-spacing: 0.08em;
}

.t_school .sec-body {
    width: auto;
}



.t_school .box .box-inner {
    padding: 23px 56px 33px;
    grid-template-columns: max-content 1fr;
    gap: 5%;
}

.t_school .pref-name {
    font-size: 24px;
    letter-spacing: 0.08em;
}

.t_school .box.blue .city-list {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 0px 0px;
    grid-template-areas:
        "kyoto"
        "others";
    row-gap: 40px;
}

.t_school .box .city-group.others {
    grid-area: others;
    flex-direction: row;
}

.t_school .box .city-group .link p {
    line-height: 40px;
    font-size: 16px;
    letter-spacing: 0.04em;
}

.t_school .box .city-group .link a {
    padding: 0 25px;
}

.sec-main {
    overflow-x: hidden;
    margin-bottom: 160px;
}

.schoollist {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.school {
    position: relative;
    z-index: 5;
}

.school::before {
    content: "";
    position: absolute;
    width: 100svw;
    height: 100%;
    border-radius: 80px 0px 0px 80px;
    background: #fffeea;
    left: -165px;
    top: 0;
    z-index: -1;
}

.school .inner {
    padding: 100px 0 100px 0;

}

.school .title {
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 40px;
}

.school .title .num {
    font-family: var(--eng);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: #d32e26;
    margin-top: 21px;
}

.school .title .school-ttl {
    font-family: var(--main);
    font-weight: 700;
    font-size: 48px;
    font-size: clamp(2rem, 1.757rem + 1.04vw, 3rem);
    letter-spacing: 0.08em;
    color: #000;
}

.school .access {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 4%;
    align-items: flex-start;
    margin-bottom: 56px;
}

.school .access .map,
.school .access .map iframe {
    width: 100%;
    border-radius: 20px;
}

.school .access .map iframe {
    height: 365px;
}

.school .access .list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    width: 90%;

}

.school .access .list .item {
    padding-bottom: 24px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.school .access .list .item .ttl {
    font-family: var(--main);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: #212121;
}

.school .access .list .item .detail {
    font-family: var(--main);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.04em;
    line-height: 24px;
    color: #000;
}

.school .access .list .item::after {
    content: "";
    background-size: 100% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    display: inline-block;
    width: 100%;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: 0;
}

.school .access .list .item.red::after {
    background-image: repeating-linear-gradient(to right, #c84a3b, #c84a3b 8px, transparent 8px, transparent 16px);
}

.school .access .list .item.yellow::after {
    background-image: repeating-linear-gradient(to right, #F2E300, #F2E300 8px, transparent 8px, transparent 16px);
}

.school .access .list .item.blue::after {
    background-image: repeating-linear-gradient(to right, #489FE4, #489FE4 8px, transparent 8px, transparent 16px);
}

.school .access .list .item .instructor {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.school .access .list .item .instructor .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-bottom: 0;
    text-align: center;
    max-width: 72px;
}

.school .access .list .item .instructor .item::after {
    content: none;
}

.school .access .list .item .instructor .item .name {
    font-family: var(--eng);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;

    color: #000;
}

.school .images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 56px;
    width: 95%;
}



.schedule-title {
    font-family: var(--main);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.08em;
    color: #212121;
    position: relative;
    margin-bottom: 24px;
    width: 90%;
}

.schedule-title::before {
    content: "";
    width: 24px;
    height: 24px;
    background: #d32e26;
    border-radius: 50px;
    display: inline-block;
    vertical-align: sub;
    margin-right: 8px;

}

.schedule-container {
    width: 95%;
    padding-right: 25px;
    padding-top: 52px;
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-container .scroll-area {
    min-width: 1300px;
    width: 100%;
}

.time-scale {
    position: absolute;
    right: auto;
    top: 0;
    display: grid;
    grid-template-columns: 111px repeat(9, 1fr);
    justify-content: space-between;
    width: 100%;
    min-width: 1320px;
}

.time-scale p {
    font-family: var(--eng);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: #212121;
    text-align: right;
    margin: 0;
}



.rowitem {
    background-color: #FFF;
    display: flex;
    border-top: .5px solid #ACACAC;
    min-height: 80px;
}

.rowitem:nth-child(2) {
    border-radius: 20px 20px 0 0;
    border-top: none;
}

.rowitem:last-child {
    border-radius: 0 0 20px 20px;
}

.rowitem.double {
    display: grid;
    /* 曜日セル(64px) / 講師・レッスンエリア(残り全部) */
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    border-top: .5px solid #ACACAC;
}

.rowitem.double .day-cell {
    grid-row: span 2;
    height: 100%;
    /* 既存のborder-rightを維持 */
}

.instructor-row {
    display: flex;
    grid-column: 2;
    position: relative;
}


.instructor-row.lower::after {
    content: "";
    background-size: 100% .5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    display: inline-block;
    width: 100%;
    height: .5px;
    position: absolute;
    left: 0;
    top: 0;
    background-image: repeating-linear-gradient(to right, #ACACAC, #ACACAC 5px, transparent 5px, transparent 10px);
}




.day-cell {
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border-right: .5px solid #ACACAC;
}

.day-cell p {
    margin: 0;
    font-family: var(--main);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.08em;
    text-align: center;
    color: #212121;
}

.instructor-cell {
    min-width: 154px;
    padding: 12px 10px;
    border-right: .5px solid #ACACAC;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--eng);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #000;
}

.instructor-cell .photo {
    width: 48px;
    height: auto;
}

.instructor-cell .photo img {
    width: 100%;
}

.lessons-area {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-rows: min-content;
    width: 100%;
    position: relative;
}

.schedule-container.div-15 .scroll-area {
    min-width: 1400px;
    width: 100%;
}

.schedule-container.div-15 .lessons-area {
    grid-template-columns: repeat(9, 1fr);
}

.schedule-container.div-15 .time-scale {
    grid-template-columns: 1fr repeat(10, 1fr);
    min-width: 1420px;
}



.schedule-container.div-15 .grid-line:nth-child(8) {
    border-right: .5px solid #ACACAC;
}








.grid-line {
    grid-row: 1;
    height: 100%;
    min-height: 80px;
    border-right: .5px solid #ACACAC;
    pointer-events: none;
    z-index: 0;
    position: relative;
}

.rowitem:nth-child(2) .grid-line::after {
    content: "";
    position: absolute;
    bottom: 100%;
    width: 0.5px;
    height: 28px;
    background-color: #ACACAC;
}

.lesson {
    /* 線と同じ「1行目」に重ねるための指定 */
    grid-row: 1;
    position: relative;
    z-index: 1;
}

.grid-line:nth-child(1) {
    grid-column: 1;
}

.grid-line:nth-child(2) {
    grid-column: 2;
}

.grid-line:nth-child(3) {
    grid-column: 3;
}

.grid-line:nth-child(4) {
    grid-column: 4;
}

.grid-line:nth-child(5) {
    grid-column: 5;
}

.grid-line:nth-child(6) {
    grid-column: 6;
}

.grid-line:nth-child(7) {
    grid-column: 7;
}

.grid-line:nth-child(8) {
    grid-column: 8;
    border-right: none;
}


.grid-line:nth-child(9) {
    grid-column: 9;
    border-right: none;
}


/* 開始位置の定義 */
.start-1630 {
    grid-column-start: 1;
}

.start-1700 {
    grid-column-start: 2;
}

.start-1715 {
    grid-column-start: 2;
}

.start-1730 {
    grid-column-start: 3;
}

.start-1800 {
    grid-column-start: 4;
}

.start-1815 {
    grid-column-start: 6;
}

.start-1830 {
    grid-column-start: 5;
}

.start-1900 {
    grid-column-start: 6;
}

.start-1915 {
    grid-column-start: 10;
}

.start-1930 {
    grid-column-start: 7;
}

.start-2000 {
    grid-column-start: 8;
}

.start-2015 {
    grid-column-start: 14;
}

.start-2030 {
    grid-column-start: 9;
}

/* 長さの定義 */
.span-30 {
    grid-column-end: span 1;
    padding-left: .5vw;
}

.span-60 {
    grid-column-end: span 2;
    padding-left: 2vw;
}

.span-90 {
    grid-column-end: span 3;
    padding-left: 3vw;
}

/* 見た目の装飾 */
.lesson {
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    margin: 2px;
}

.lesson .top {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.lesson .top .name {
    font-family: var(--main);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.04em;
}

.lesson .top .tag {
    display: inline-block;
    background: #fff;
    border-radius: 50px;
    padding: 0 4px;
    font-family: var(--main);
    font-weight: 700;
    font-size: 12px;
    line-height: 21px;
    text-align: center;
    color: #000;
}

.lesson .time {
    display: flex;
    font-family: var(--eng);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.04em;
    gap: 1px;
    align-items: center;
}

.lesson .time .icon {
    width: 12px;
}

.bg-green {
    background-color: #56E862;
    color: #000;
}

.bg-yellow {
    background-color: #FDF250;
    color: #000;
}

.bg-blue {
    background-color: #489FE4;
    color: #FFF;
}

.bg-orange {
    background-color: #FF8831;
    color: #FFF;
}

.bg-red {
    background-color: #D32E26;
    color: #FFF;
}

.bg-purple {
    background-color: #9648E4;
    color: #FFF;
}

.f-15 {
    font-size: 15px !important;
}

@media (max-width: 1300px) {
    .main-contents {
        margin: 0 auto;
        max-width: 90%;
        width: 100%;
    }

    .school::before {
        left: -64px;
    }

    .t_school .inner {
        margin: 0 auto;
    }
}

@media (max-width: 960px) {

    .sec-intro {
        margin-bottom: 40px;
    }


    .t_school .inner {
        width: 90%;
        margin: 0 auto;
    }

    .t_school .box .box-inner {
        padding: 40px 25px;
    }

    .t_school .box .city-group .link.col-5 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .t_school .box .city-group .link.col-2 {
        grid-template-columns: 1fr;
    }

    .t_school .box .city-group .link.col-5 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .t_school .box.blue .city-list {
        grid-template-rows: auto auto auto;
        gap: 40px 20px;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "kyoto kyoto"
            "others others";
    }

    .t_school .box.red .city-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0px 0px;
        grid-template-areas: "ibaraki .";
        row-gap: 40px;
    }

    .t_school .box .city-group .link {
        width: 100%;
    }

    .school .access {
        display: flex;
        flex-direction: column;
    }

    .time-scale {
        right: auto;
        top: 0;
        width: 100%;
        min-width: 1000px;
        grid-template-columns: 1.6fr repeat(9, 1fr);
    }

    .school .title {
        align-items: flex-end;
    }

    .school .images {
        grid-template-columns: 1fr;
    }

    .sec-main {
        margin-bottom: 0;
    }

    .school::before {
        border-radius: 40px;
    }

    .school .inner {
        padding: 100px 0;
        width: 90%;
        margin: 0 auto;
    }
}


.gjs-dashed .schedule-container {
    overflow: scroll;
}