@charset "UTF-8";


:root {
    --primary: #4fc2c3;       /* 青緑（メインカラー） */
    --primary-dark: #1e9c98;
    --border: #cfcfcf;
}

main:not(.bg-even) > section:nth-child(2n+1):not(.nobg) {
  background-color: inherit;
}


.bgc{
    background-color: #f7f7f7;
}



.inner {
    container-type: inline-size;
}


/* ===== Hero ===== */
.hero {
    padding: calc(30 / 390 * 100vw) 0 calc(45 / 390 * 100vw);
}

.hero-logo img {
    width: calc(316 / 390 * 100vw);
    margin-bottom: calc(12 / 390 * 100vw);
}

.hero-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: calc(24 / 390 * 100vw);
}
.hero-title {
    font-size: calc(26 / 390 * 100vw);
    font-weight: 500;
    color: var(--primary);
}

.hero-images img {
    width: 100%;
}

.hero-message {
    text-align: center;
}
.hero-message p { 
    font-size: calc(17 / 390 * 100vw);
    font-weight: 500;
    line-height: 2;
    margin-top: 1em;
}



@media (min-width: 769px) {
  .hero {
    padding: 60px 0 40px;
  }
  .hero-logo img {
    width: 379px;
    margin-bottom: 12px;
  }
  .hero-title-wrap {
    margin-bottom: 24px;
  }
  .hero-title {
    font-size: 3.1rem;
  }
  .hero-message p { 
    font-size: 1.8rem;
    margin-top: 2em;
  }
}





/* ===== Quick Nav ===== */
.quick-nav-wraper {
    padding-top: 0;
    padding-bottom: 0;
}
.quick-nav {
    position: relative;
}
.quick-nav-toggle {
    display: none; /* SPのみで表示 */
    width: 100%;
    background: var(--primary);
    color: #fff;
    text-align: left;
    padding: 14px 22px;
    font-weight: 500;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    position: relative;
}
.quick-nav-toggle .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .2s;
}
.quick-nav-toggle.open .arrow { transform: translateY(-50%) rotate(180deg); }
.quick-nav ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-radius: 10px;
    overflow: hidden;
}
.quick-nav a {
    position: relative;
    display: block;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 14px 8px;
    font-size: 1.8rem;
    
    font-weight: 500;
    transition: background .2s;
}
.quick-nav #quickNavList li:not(:last-child) a::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 0;
    inline-size: 1px;
    block-size: 72%;
    background: #fff;
    transform: translateY(-50%);
}
.quick-nav a:hover { background: var(--primary-dark); }



@media (max-width: 768px) {
    .quick-nav-toggle { display: block;font-size: calc(20 / 390 * 100vw); }
    .quick-nav ul {
        grid-template-columns: 1fr;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        margin-top: 6px;
    }
    .quick-nav ul.open {
        max-height: 500px;  
    }
    .quick-nav a { 
        text-align: left;
        padding: 14px 20px;
        font-size: calc(18 / 390 * 100vw);
    }
    .quick-nav #quickNavList li:not(:first-child) a {
        border-top: 1px solid rgba(255,255,255,.2);
    }
    .quick-nav #quickNavList li:not(:last-child) a::after {
        display: none;
    }
}







/* ===== Sections ===== */
.section-title {
    text-align: center;
    font-size: calc(26 / 390 * 100vw);
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
    padding-bottom: 12px;
    border-bottom: solid 2px var(--primary);
    letter-spacing: .1em;
}


@media (min-width: 769px) {
    .section-title {
        font-size: 3.0rem;
    }
}








/* ===== お知らせ ===== */

.news-list {
    border-radius: 4px;
}

.news-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4.0rem 0;
}

.news-list li a {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 30px 60px 30px 5px;
    border-bottom: 1px solid var(--border);
    background-image: url(../img/btn_more.svg);
    background-size: 24px;
    background-position: right 25px center;
    background-repeat: no-repeat;
}
.news-date {  min-width: 100px; color: var(--primary) }

.more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    
    max-width: calc(300 / 390 * 100vw);
    height: calc(45 / 390 * 100vw);
    border-radius: calc(45 / 390 * 100vw);

    margin: 0 auto;
    background: var(--primary);
    color: #fff;
    text-align: center;
    
    
    font-size: calc(18 / 390 * 100vw);
    font-weight: 500;
    transition: background .2s;
}
.more-btn:hover { background: var(--primary-dark); }
.news .more-btn {
    margin-top: calc(35 / 390 * 100vw);
}



@media (min-width: 769px) {
    .news-container {
        grid-template-columns: 1fr 1fr;
        gap: 5%;
    }
    .news-list li a {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 30px 55px 30px 10px;
        border-bottom: 1px solid var(--border);
        background-image: url(../img/btn_more.svg);
        background-size: 24px;
        background-position: right 25px center;
        background-repeat: no-repeat;
    }
    .more-btn {
        font-size: 1.8rem;
        max-width: 300px;
        height: 45px;
        border-radius: 45px;
    }
    .news .more-btn {
        margin-top: 40px;
    }
    .news-title {
        width: 265px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}










/* ===== 校舎情報 ===== */
.school-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;

    margin-top: 35px;
    margin-bottom: 40px;
}
.map-box {
    width:100%;
}
.map-box img {
    width: 100%;
}
.info-table { width: 100%; }
.info-table th, .info-table td {
    display: block;
    text-align: left;
}
.info-table td {
    padding-top: 10px;
    padding-bottom: 15px;
    padding-inline:  20px;
}

.school-info-title {
    font-weight: 500;
    background-color: #fff;
    padding-block: 6px;
    padding-inline:  20px;
}


.classroom-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 10px;
    margin-top: 25px;
    margin-bottom: 40px;
}

.classroom-photos img {
    width: 100%;
}


.classroom-teacher {
    width: 100%;
    display: flex;
    padding: 0 0 0 15px;  
    margin-top: 30px;  
}

.classroom-teacher .img {
    width: 160px;
    margin-right: 20px;
}

.classroom-teacher .text {
    flex: 1;
    font-size: 1.6rem;
    line-height: 1.8;
}

.classroom-teacher .title {
    font-size: 1.8rem;
    font-weight: 500;
    border-left-style: solid;
    border-left-width: 2px;
    border-left-color: var(--primary);
    padding-left: 1em;
    margin-bottom: .8em;
    color: var(--primary);
}



@media (max-width: 768px) {
    
    .classroom-teacher {
        flex-wrap: wrap;
        align-items: center; 
    }
    .classroom-teacher .description {
        width: 100%;
        margin-top: calc(100vw *(30 / 390));
    }
}



@media (min-width: 769px) {
    .school-info-grid {
        grid-template-columns: 602px 1fr;
        gap: 12px;
    }
    .map-box {
        width: 602px;
    }
    
    .classroom-photos {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        
    }

    .classroom-teacher {
        padding: 0;
        margin-top: 25px;
    }

    .classroom-teacher .img {
        margin-right: 30px;
    }

}










/* ===== About / Features ===== */



.feature-intro {
    font-size: calc(100vw *(24 / 390));
    font-weight: 500;
    color: var(--primary);
}
.feature {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 0;
    margin-bottom: 20px;
}

.feature-text h3 {
    font-size: calc(100vw *(20 / 390));
    font-weight: 500;
    margin-bottom: 1em;

    padding-left:.8em;
    border-left-style: solid;
    border-left-color: var(--primary);
    border-left-width: 3px;
}
.feature-img img {
    width: 100%;
}
.feature-text p { line-height: 1.8; }




@media (min-width: 769px) {
    .feature-intro {
        font-size: 2.6rem;
    }
    .feature {
        flex-direction: row;
        gap: 45px;
        padding: 50px 0;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    .about-features .feature:nth-child(even) { 
        flex-direction: row-reverse;
    }
    .about-features .feature:not(:first-child) { 
        border-top-style: solid;
        border-top-color: var(--border);
        border-top-width: 1px;
    }
    .feature-text {
        flex: 1;
    }
    .feature-img {
        width: 390px;
    }
    .feature-text h3 {
        padding-left:.8em;
        font-size: 2.2rem;
        
        border-left-style: solid;
        border-left-color: var(--primary);
        border-left-width: 3px;
    }
}










/* ===== Course / Fees ===== */


.course-intro { text-align: center; margin-bottom: 2em; font-size: calc(100vw *(15 / 390)); line-height: 2.0; }
.course-intro span { font-size: calc(100vw *(12 / 390)); }
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    margin-bottom: 55px;
}


.course-block + .course-block { margin-top: 35px; }
.course-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.course-block .course-caption {
    color: #f08232;
    font-size: calc(100vw *(20 / 390));
    font-weight: 500;
}
.course-block .course-caption.course-caption-green {
    color:#6ebe5a;;
}
.course-block .course-meta {
    font-size: 1.2rem;
    text-align: right;
}


.course-table {
    width: 100%;
    border-collapse: collapse;

    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: #f08232;
    border-right-style: solid;
    border-right-width: 1px;
    border-right-color: #f08232;

    margin-block: 10px;
}
.course-table.course-table-green {
    border-top-color: #6ebe5a;
    border-right-color: #6ebe5a;
}
.course-table th,
.course-table td {
    border-left-style: solid;
    border-left-width: 1px;
    border-left-color: #f08232;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #f08232;

    font-size: 1.8rem;

    padding: 10px;
    text-align: center;
}

.course-table.course-table-green th,.course-table.course-table-green td {
    border-left-color: #6ebe5a;
    border-bottom-color: #6ebe5a;
}


.course-table th { background: #f08232;color: #fff;font-weight: 400; }
.course-table.course-table-green th {
    background: #6ebe5a;
}
.course-table thead th + th {
    border-left-color: #fff;
}

.course-table.course-table-green thead th + th {
    border-left-color: #fff;
}



.course-note {
    font-size: 1.2rem;
    margin-top: 40px;
    padding-left: 2.5em;
    text-indent: -2.5em;
}

.course-notice {
    font-size: 1.2rem;
    line-height: 1.8;
    border: solid 1px #cfcfcf;
    background-color: #fff;
    margin-top: 20px;
    text-align: center;
    padding: .8em;
}



/* SP用テーブル群 */
.course-table.course-table-sp tbody tr:not(:last-child) th {
    border-bottom-color: #fff;
}


@media (min-width: 769px) {
    .course-intro { font-size: 1.8rem; }
    .course-intro span { font-size: 1.4rem; }
    .schedule-grid {
        grid-template-columns: repeat(2, 400px);
        gap: 30px;
        margin-bottom: 65px;
        justify-content: center;
    }

    .course-block .course-caption {
        font-size: 2.0rem;
    }

    .course-block .course-meta {
        font-size: 1.4rem;
    }

    .course-note {
        font-size: 1.4rem;
        margin-top: 20px;
    }

    .course-notice {
        font-size: 1.4rem;
        margin-top: 30px;
    }

    
}















/* ===== 入塾の流れ ===== */
.flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}
.flow-step {
    background: #f7f7f7;
    padding: 25px 15px 25px 25px;
    border-radius: 10px;
    position: relative;
}
.flow-step .box {
    display: flex;
    align-items: center;
}
.flow-step::after {
    content: "";
    display: block;

    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 126%);

    background: var(--primary);
    height: 23px;
    width: 46px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.flow-step:last-child::after { display: none; }
.flow-num {
    position: relative;
    color: var(--primary);
    margin-bottom: .2em;
    font-size: 3.6rem;
    padding-bottom: 0;
}
.flow-num:after {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(0, 0);
}
.flow-step h3 { font-size: 2.0rem; font-weight: 500; }
.flow-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flow-step.flow-step-01 .flow-icon img {
    width: 96px;
}
.flow-step.flow-step-02 .flow-icon img {
    width: 69px;
}
.flow-step.flow-step-03 .flow-icon img {
    width: 79px;
}
.flow-step.flow-step-04 .flow-icon img {
    width: 61px;
}
.flow-step .flow-description { font-size: 1.5rem; line-height: 1.66; }


@media (max-width: 768px) {
    .flow-step .box {
        margin-bottom: 15px;
    }
    .flow-num {
        width: 62px;
    }
    .flow-step h3 { flex: 1; }

    .flow-icon {
        width: 100px;
        height: auto;
        min-height: 55px;
    }
}

@media (min-width: 769px) {
    .flow {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        margin-top: 60px;
    }
    .flow-step {
        padding: 20px 15px 25px;
    }
    .flow-step .box {
        flex-direction: column;
        align-items: center;
    }
    .flow-step::after {
        right: 0;
        top: 50%;
        bottom: inherit;
        left: inherit;
        transform: translate(100%, -50%);

        height: 46px;
        width: 23px;
        clip-path: polygon(0 0, 100% 50%, 0 100%);
    }
    .flow-step:last-child::after { display: none; }
    .flow-num {
        position: relative;
        color: var(--primary);
        margin-bottom: .2em;
        font-size: 3.6rem;
        padding-bottom: 0;
    }
    .flow-num:after {
        content: "";
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--primary);
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 0);
    }
    .flow-step h3 { font-size: 2.0rem; font-weight: 500; }
    .flow-icon {
        width: 100%;
        height: 74px;
    }
    .flow-step.flow-step-01 .flow-icon img {
        width: 96px;
    }
    .flow-step.flow-step-02 .flow-icon img {
        width: 69px;
    }
    .flow-step.flow-step-03 .flow-icon img {
        width: 79px;
    }
    .flow-step.flow-step-04 .flow-icon img {
        width: 61px;
    }
    .flow-step p { text-align: center; }
}















/* ===== 生徒の声 ===== */

.voice-list {
    margin-top: 40px;
}
.voice {
    background-color: #fff;
    padding: 30px 20px 40px 30px;
    border-radius: 10px;

    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.23);
}
.voice + .voice {
    margin-top: 20px;
}
.voice h3 {
    color: var(--primary);
    font-size: 2.0rem;
    font-weight: 500;
    border-left: 4px solid var(--primary);
    padding-left: 1em;
    margin-bottom: 25px;
}
.voice p { font-size: 1.4rem; line-height: 1.8; }



@media (min-width: 769px) {
    .voice-list {
        margin-top: 65px;
    }
    .voice + .voice {
        margin-top: 30px;
    }
    .voice p { font-size: 1.5rem; }
}













/* ===== FAQ ===== */

.faq_items {
    margin-top: 45px;
}

.faq_item .faq_q {
  color: var(--primary);
}

@media (min-width: 769px) {
    .faq_items {
        margin-top: 65px;
    }
}