/* ===== 全体の調整 ===== */
#info { --info-junior-sub: rgb(228, 244, 240); }

#info .section-book--lightblue { padding-top: var(--pad-2); }


/* レイアウト調整 */
#info :where(#teacher, #voice-student, #voice-parent) > div.width-limiter { padding-top: var(--section-space); }

/* =============================
    // #infoのSquareのボタン
    //校舎情報個別設定・入塾の流れで使用
    =============================*/
.button.btn-square {
    --btn-w: 345px;
    --btn-h: 92px;
	width: 100%;
	height: var(--btn-h);
	color: var(--color-white);
    line-height: 1;
	border: 0;
	border-radius: var(--radius);
}
.button.btn-square::after {
	color: var(--color-white);
    left: 20px;
}
.button.btn-square.main {/*本部お問い合わせTELに使用*/
    flex-direction: column;
	background-color: var(--main-color);
}
.button.btn-square.main::after { display: none; }


/* ===== //ここまで共通項目 ===== */

/* ===== ここから以下ページ別カスタマイズ ===== */
/* =============================
    // 校舎情報
    =============================*/
iframe { border-radius: 0; }
#info.info-schoolhouse .event-grid { margin-block: 0; }
#info.info-schoolhouse .event-grid .class-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: var(--space-2);
}
#info.info-schoolhouse .event-grid .class-tags li {
    flex: 1 calc(100% / 2 - 5px);
    text-align: center;
    margin-bottom: 0;
}

#info.info-schoolhouse .event-grid .card .icon {
    padding-inline: calc(4% + 2em) 4%;
}
#info.info-schoolhouse .event-grid .card .icon::before { left: calc(4% - -12px); }
#info.info-schoolhouse .event-grid .card .button { --btn-w: 280px; }

/* =============================
    // 校舎情報 - 校舎別
    =============================*/
#info.info-schoolhouse--base .section-default { padding-bottom: var(--section-space); }
#info.info-schoolhouse--base .section-default h2 { margin-bottom: var(--space-2); }
/* 校舎情報 - 画像*/
#info.info-schoolhouse--base figure.building-exterior { aspect-ratio: 870 / 480; }
#info.info-schoolhouse--base figure.building-exterior img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* //ここまで校舎情報 - 画像*/

/* =============================
    // 校舎情報 - 校舎別
    //Squareボタンの調整
    =============================*/
#info.info-schoolhouse--base .buttons { gap: var(--gap-3); }
#info.info-schoolhouse--base .button.btn-square.request {
    font-size: 1.16em;
	background-color: var(--color-request);
}
#info.info-schoolhouse--base .button.btn-square.request::before {
    content: "\f15b"; 
    display: inline-block;
    font-family: "Font Awesome 7 Free";
    font-size: 1.3em;
	font-weight: 400;
}
#info.info-schoolhouse--base .button.btn-square.main { font-size: 16px; }
#info.info-schoolhouse--base .button.btn-square.main span {
    font-size: 2.1em;
    font-family: "Roboto", sans-serif;
    font-weight: bold;
}
/* //ここまでSquareボタンの調整*/
#info.info-schoolhouse--base .database { text-align: left; }
#info.info-schoolhouse--base .database dt {
    color: var(--main-color);
    font-size: 1em;
    line-height: 2.5;
    margin-top: 25px;
}
#info.info-schoolhouse--base .database dd { font-size: .95em; }
#info.info-schoolhouse--base .database .icon { padding-inline: 1.2em 4%; }
#info.info-schoolhouse--base .database .icon::before { left: 0; }
#info.info-schoolhouse--base .database .class-tags { padding-inline: 0; }
#info.info-schoolhouse--base .database figure { aspect-ratio: 870 / 516; }
#info.info-schoolhouse--base .database figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================
    // 塾生の声
    // 保護者の声
    =============================*/
.theme-elem { 
    --theme-bg-img: url("../_img/info/SVG/frame1.svg");
    --theme-bg-color: #fff4e9;
}
.theme-junior { 
    --theme-bg-img: url("../_img/info/SVG/frame2.svg");
    --theme-bg-color: #edf7f1; 
}
.theme-senior { 
    --theme-bg-img: url("../_img/info/SVG/frame3.svg");
    --theme-bg-color: #ecf8ff;
}
#info.info-voice {
    --figure-w: 316px;/*ずらした背景の色ぶんだけマイナス*/
    --figure-h: 240px;
}

#info.info-voice .nav.nav--class {
    gap:  11px;
    background-color: rgba(var(--color-white-rgb) / .5);
    padding-bottom: var(--pad-1);
    margin-bottom: var(--space-3);
}
#info.info-voice .nav.nav--class li {
    flex: 1 1 240px;
    max-width: 240px;
    width: 100%;
    min-width: 110px;
}
#info .nav.nav--class .button {
    min-width: 0;
    font-size: 17px;
    max-width: 100%;
    color: var(--brand-primary);
    text-indent: -.5em;
}
#info .nav.nav--class .button::after {
    transform: rotate(90deg);
    font-size: 1em;
    position: absolute;
    right: 1em;
    left: unset;
}
#info.info-voice section h3 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 172px;
    height: 100px;
    font-size: 1.36em;
    color: #fff;
    background-image: var(--theme-bg-img);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
#info.info-voice #voice-student .flex:has(article) { gap: 0; }
#info.info-voice #voice-student article {
    width: 100%;
    display: grid;
    text-align: left;
    background-color: var(--theme-bg-color);
    background-image: radial-gradient(circle, #ffffff 1px, transparent 1px), radial-gradient(circle, #ffffff 1px, transparent 1px);
    background-position: 0 0, 2.5px 5px;
    background-size: 5px 10px;
    border-radius: var(--radius);
    padding-block: var(--pad-4) var(--pad-3);
    padding-inline: var(--pad-5);
    margin-top: clamp( 40px, calc(40px + 20 * ((100vw - 520px) / 680)), 60px );
    container-type: inline-size;
}
#info.info-voice #voice-student article dt { font-size: 1rem; }
#info.info-voice #voice-student article p:not(figcaption p) {
    font-size: 1em;
    font-family: "Zen Kurenaido", sans-serif;
    font-weight: 400;
    text-align: justify;
    padding-bottom: 25px;
}
#info.info-voice #voice-student article dd + * { margin-top: 25px; }
#info.info-voice #voice-student article dd { border-bottom: 1px dashed #d1d1d1; }
#info.info-voice #voice-student article dd:last-of-type { border-bottom: 0; }
#info.info-voice #voice-student article span:not(figcaption span) { color: var(--color-red); }
#info.info-voice #voice-student article p { position: relative; }

#info.info-voice #voice-student article figure {
    width: var(--figure-w);
    height: auto;
    margin-inline: auto;
    position: relative;
    z-index: 0;
}
#info.info-voice #voice-student article figure::after {
    --offset: 6px;
    content: '';
    display: block;
    width: var(--figure-w);
    height: var(--figure-h);
    aspect-ratio: 320 / 240;
    background-color: var(--brand-primary);
    position: absolute;
    top: calc(var(--offset) + 1px);
    left: var(--offset);
    z-index: -1;
}
#info.info-voice #voice-student article figure img {
    aspect-ratio: 320 / 240;
    object-fit: cover;
}
#info.info-voice #voice-student article caption {
    margin-top: var(--space-2);
}
#info.info-voice #voice-student article .caption {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}
#info.info-voice #voice-student article .caption span.f-position {
    font-size: .86em;
}
#info.info-voice #voice-student article .caption :where(.f-position, .f-school) {
    margin-right: 1em;
}
/* =============================
    // 塾生の声
    // 生徒写真複数人の場合
    =============================*/
#info.info-voice #voice-student .students--group { grid-template-columns: 1fr var(--figure-w); }
/* =============================
    // 塾生の声
    // 生徒写真単独の場合
    =============================*/
#info.info-voice #voice-student .students--solo {
    width: calc(100% / 2 - 2%) !important;
    padding-inline: 4%;
}
#info.info-voice .flex:has(.students--solo) { --gap: 4%; }
.students--solo figure {
    --figure-w: 368px;
}
#info.info-voice #voice-student article.students--solo figure,
#info.info-voice #voice-student article.students--solo figure::after  {
    max-width: var(--figure-w);
    width: 100%;
}
.students--solo figure img { aspect-ratio: 368 / 276;}

/* =============================
    // 保護者の声
    =============================*/
#info.info-voice #voice-parent article {
    flex: 1 1 calc(100% / 2 - 21px);
    border: 1px solid var(--brand-primary);
    border-radius: var(--radius);
    padding: var(--pad-3);
}
#info.info-voice #voice-parent .flex:has(article) { margin-top: var(--space-3); }
#info.info-voice #voice-parent dt {
    color: var(--color-white);
    font-size: 0.95em;
    background-color: var(--brand-primary);
    border-radius: var(--radius-inner);
    padding-block: var(--pad-2) 15px;
    margin-bottom: var(--space-2);
}
#info.info-voice #voice-parent dt p.tag-schoolhouse {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 163px;
    height: 37px;
    font-size: 0.89em;
    color: var(--brand-primary);
    background-color: var(--color-white);
    border-radius: 50rem;
}
#info.info-voice #voice-parent dd {
    font-family: "Zen Kurenaido", sans-serif;
    font-weight: 400;
    text-align: justify;
    letter-spacing: 0.05em;
}

/* =============================
    // 入塾の流れ
    =============================*/
#info.info-enterflow ol { margin: 0; }
#info.info-enterflow ol.step-flow > li {
    --gap: var(--gap-3);
    text-align: left;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    padding-block:var(--pad-3);
    padding-inline: var(--pad-4) var(--pad-3);
    margin-top: var(--space-4);
}
#info.info-enterflow ol > li:not(:last-child)::after {
    content: '';
    display: block;
    --size: 0px;
    width: var(--size);
    height: var(--size);
    border: 20px solid transparent;
    border-top-color: #76a1ce;
    border-left-width: 30px;
    border-right-width: 30px;
    position: absolute;
    bottom: -68px;
    left: 0;
    right: 0;
    margin: auto;
}
#info.info-enterflow ol li .enterflow-title { color: var(--brand-primary);}
#info.info-enterflow ol li .enterflow-title .card-tag {
    --tag-h: 39px;    
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: static;
    transform: none;
    font-size: 0.80em;
    text-transform: uppercase;
    height: var(--tag-h);
    min-width: 103px;
    background-color: var(--brand-primary);
    padding-inline: 1em;
    margin-right: 1em;
}
#info.info-enterflow ol li .enterflow-title .card-tag span {
    font-size: 1.2em;
    padding-left: 5px;
}

/* =============================
    // 入塾の流れ
    // Squareボタンの調整
    =============================*/
#info.info-enterflow ol li .buttons { --gap: 1rem; }
#info.info-enterflow .button {
    --btn-h: auto;
    font-size: 1rem;
    padding-block: 25px;
    padding-left: 35px;
    position: relative;
}
#info.info-enterflow .button::after {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.7em;
    top: 0;
    bottom: 0;
    margin: auto;
    position: absolute;
    left: unset;
    right: 1em;
}
#info.info-enterflow .button p { letter-spacing: 0.05em; }
#info.info-enterflow .button p span { display: block; }
/* お問合せフォーム側 */
#info.info-enterflow .button.btn-square.contact {
    background-color: var(--color-red);
    justify-content: start;
}
#info.info-enterflow .button.btn-square.contact span {
    font-size: 1.37em;
    line-height: 2.5;
}
#info.info-enterflow .button.btn-square.contact span::before {
    content: "\f0e0";
    display: inline-block;
    line-height: 1;
    font-family: "Font Awesome 7 Free";
    font-size: 1.3em;
	font-weight: 400;
    margin-right: 5px;
    top: 2px;
}
/*電話側*/
#info.info-enterflow .button.main::after { display: none; }
#info.info-enterflow .button.main .tel-num {
    font-family: "Roboto", sans-serif;
    font-size: 2.3em;
    line-height: 1.5;
}
#info.info-enterflow .button.main .tel-date { font-size: 0.87em;}

/* =============================
    // 入塾の流れ
    // step 2の流れ
    =============================*/
#info.info-enterflow .flow-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    list-style: none;
    margin: 0;
    position: relative;
    z-index: 0;
}
#info.info-enterflow ol.flow-list > li::after {
    border-width: 15px;
    border-left-width: 20px;
    border-right-width: 20px;
}
#info.info-enterflow .flow-list li figure {
    max-width: 200px;
}
#info.info-enterflow .flow-list li figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 200 / 150;
}
#info.info-enterflow .flow-list li figcaption {
    font-size: 1.05em;
    color: var(--main-color);
}
#info.info-enterflow .step.step--3 {
    display: grid;
    grid-template-columns: 1fr 232px;
    gap: 0;
    column-gap: clamp( 25px, calc(25px + 60 * ((100vw - 520px) / 680)), 85px );
}
#info.info-enterflow .step.step--3 h3 { order: 0; }
#info.info-enterflow .step.step--3 p { order: 1; }
#info.info-enterflow .step.step--3 figure { grid-row: span 2; }


/* =============================
    // 教師紹介
    =============================*/
#info.info-teacher #teacher  h3 {
    color: var(--main-color);
    margin-bottom: var(--space-2);
}

/* =============================
    // レスポンシブ Responsive
    =============================*/
@media (max-width: 1034px) {
    #info .nav.nav--class .button {
        --btn-h: 40px;
        font-size: 0.8em;
        padding: calc(var(--pad-1) / 2) var(--pad-1);
        white-space: nowrap;
    }
}
@media (max-width: 939px) {
    /* =============================
    // 教師紹介
    =============================*/
    #info.info-teacher ul.teacher-list.grid > *:nth-child(3n + 2) { border: 0; }
    #info.info-teacher ul.teacher-list.grid > *:nth-child(2n) {
        border-left: 1px dashed #d1d1d1;
        border-right: 0;
    }
}
@media (max-width: 920px) {
    /* =============================
    // 塾生の声・保護者の声 920
    =============================*/
    #info.info-voice .nav.nav--class {
        position: sticky;
        top: var(--header-offset);
        z-index: 10;
        padding-top: var(--pad-3);
        margin-bottom: 0;
    }
    #info.info-voice #voice-student .nav.nav--class {
        padding-top: var(--pad-1);
    }
    #info.info-voice .section-book--white { margin-bottom: var(--space-4); }

    /* =============================
    // 保護者の声 920
    =============================*/
    #info.info-voice #voice-parent .flex:has(article) { gap: var(--gap-3); }
    #info.info-voice #voice-parent article { padding: var(--pad-2); }

    /* =============================
    // 入塾の流れ 920
    =============================*/
    #info.info-enterflow ol.step-flow > li { padding-inline: var(--pad-2); }
    #info.info-enterflow .step.step--3 {
        grid-template-columns: 1fr;
        gap: var(--gap-2);
    }
    #info.info-enterflow .step.step--3 h3, #info.info-enterflow .step.step--3 p { order: unset; }
    #info.info-enterflow .step.step--3 figure {
        width: 232px;
        margin-left: auto;
    }
}

@media (min-width: 768.1px) {
    /* =============================
    // 入塾の流れ
    // STEP2の流れの表
    =============================*/
    #info.info-enterflow ol.flow-list > li::after {
        transform: rotate(-90deg);
        top: 60px;
        right: -44px;
        bottom: unset;
        left: unset;
        z-index: 1;
    }
}
@media (max-width: 768px) {
     /* =============================
    // 塾生の声
    =============================*/
    #info.info-voice #voice-student .students--group {
        grid-template-columns: 1fr !important;
        padding-inline: 4%;
    }
    #info.info-voice #voice-parent article { flex: 1 1 100%; }

    /* =============================
    //  入塾の流れ
    =============================*/
    #info.info-enterflow .flow-list { flex-direction: column; }
    #info.info-enterflow ol.flow-list > li::after { bottom: -35px; }
    #info.info-enterflow .flow-list li figure { margin-inline: auto; }
    #info.info-enterflow .flow-list li figure img {
        width: 50%;
        object-fit: cover;
        object-position: top center;
    }
    /* =============================
    //  教師紹介
    =============================*/
    dialog :where(.recommend dl) { grid-column: span 2; }
}
@media (max-width: 755px) {
    /* =============================
    // 塾生の声
    // 塾生一人の写真の場合
    =============================*/
    #info.info-voice #voice-student .students--solo {
        width: 100% !important;
        min-width: auto;
    }
}
@media (max-width: 652px) {
    /* =============================
    // 教師紹介
    =============================*/
    #info.info-teacher ul.teacher-list.grid > *:nth-child(2n) { border: 0; }
    #info.info-teacher ul.teacher-list.grid > *:not(:last-child) {
        padding-bottom: var(--pad-5);
        border-bottom: 1px dashed #d1d1d1;
    }
}
@media (max-width: 570px) {
    /* =============================
    // 入塾の流れ
    =============================*/
    #info.info-enterflow ol li .enterflow-title { text-align: center; }
    #info.info-enterflow ol li .enterflow-title .card-tag {
        display: block;
        margin-bottom: 10px;
    }
}
@media (max-width: 520px) {
    .button.btn-square {
        max-width: 100%;
        max-height: 100%;
    }
    /* =============================
    // 校舎紹介 520
    =============================*/
    #info.info-schoolhouse--base .section-default h2 { margin-bottom: var(--space-1); }
    #info.info-schoolhouse--base .section-default h2 .ja { font-size: 30px; }


    /* =============================
    // 保護者の声 520
    =============================*/
    #info.info-voice #voice-parent  .nav.nav--class { padding-top: var(--pad-1); }
    #info.info-voice #voice-parent  .nav.nav--class li { flex: 1 1 120px; }
    #info.info-voice #voice-parent  .nav.nav--class .button {
        --btn-h: auto;
        font-size: 15px;
        line-height: 1.2;
    }
    #info.info-voice #voice-parent article { padding: 4%; }
    #info.info-voice #voice-parent article dl { font-size: 1rem; }

    /* =============================
    // 教師紹介 520
    =============================*/
    #info.info-teacher #teacher h3 { font-size: 1.2em; }
    #info.info-teacher #teacher h3 + p { font-size: 0.8em; }
    
    /*ダイアログ*/
    #info.info-teacher dialog { 
        max-height: calc(100vh - var(--header-offset));
        top: var(--header-offset);
        bottom: unset;
    }
    dialog button.close {
        top: 15px;
        right: 15px;
    }
    dialog article {
        padding-right: 0;
    }
    dialog :where(.db, .message, .recommend dl, .recommend figure) { grid-column: span 2; }
    dialog .db figure { margin-inline: auto !important; }
    #info.info-teacher .recommend div:has(dl) { gap: 0; }
    #info.info-teacher .recommend div:has(dl) figure { max-width: 100% !important; }

    /* =============================
    // 入塾の流れ 520
    =============================*/
    #info.info-enterflow .flow-list li figure {
        margin-inline: auto;
        max-width: 100%;
    }
    #info.info-enterflow .step.step--3 figure {
        width: 232px;
        margin-inline: auto;
    }
    #info.info-enterflow .button.btn-square.contact { justify-content: center; }
    #info.info-enterflow .button::after { right: var(--pad-1); }
    #info.info-enterflow .button.main p { font-size: 14px; }
}
@media (max-width: 425px) {
    #info.info-enterflow .button.btn-square.contact { justify-content: start; }
}