body.kindergarten-rank-page .mainContent {
    --rankings-kindergarten-table-header-top: 135px;
    --rankings-kindergarten-title-top: 135px;
    --rankings-kindergarten-title-height: 0px;
    --rankings-kindergarten-filter-top: 135px;
    --rankings-kindergarten-filter-height: 0px;
    --rankings-kindergarten-filter-offset: 0px;
    padding-top: 130px;
}

body.city-index-page .mainContent {
    --rankings-kindergarten-city-title-height: 0px;
    --rankings-kindergarten-title-top: 100px;
    --rankings-kindergarten-table-header-top: calc(var(--rankings-kindergarten-title-top) + var(--rankings-kindergarten-city-title-height));
    padding-top: 100px;
}

.kindergarten-rank-page .rankForm,
.city-index-page .rankForm {
    gap: 0;
    justify-content: space-between;
    z-index: 10;
}

.kindergarten-rank-page .rankBtn,
.city-index-page .rankBtn {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 100%;
    justify-content: center;
    line-height: 40px;
    min-width: 0;
    overflow: visible;
    text-align: center;
    text-overflow: clip;
    text-decoration: none;
    white-space: nowrap;
}

body.lang-en.kindergarten-rank-page .rankForm,
body.lang-en.city-index-page .rankForm {
    padding: 0 3%;
}

body.lang-en.kindergarten-rank-page .rankBtn,
body.lang-en.city-index-page .rankBtn {
    font-size: 16px;
}

.kindergarten-rank-page .citySelectionContainer {
    z-index: 9;
}

.kindergarten-rank-page .citySelection,
.kindergarten-rank-page .citySelection:hover,
.kindergarten-rank-page .citySelection:focus,
.kindergarten-rank-page .citySelection:visited {
    text-decoration: none;
}

.kindergarten-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.kindergarten-table thead th {
    background: #f8f9fc;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 -1px 0 #fff, 0 1px 0 #ddd;
    box-sizing: border-box;
    color: #333;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    min-height: calc(1.2em * 2 + 20px);
    overflow-wrap: normal;
    padding: 10px 5px;
    position: sticky;
    text-align: center;
    top: var(--rankings-kindergarten-table-header-top, 100px);
    vertical-align: middle;
    white-space: normal;
    hyphens: none;
    word-break: normal;
    z-index: 6;
}

.kindergarten-table td {
    border-bottom: 1px solid #eee;
    padding: 8px 5px;
    vertical-align: middle;
}

.kindergarten-table .rank-num {
    text-align: center;
    width: 10%;
}

.kindergarten-table tbody .rank-num {
    font-size: 28px;
    font-weight: 700;
}

.kindergarten-table .school-info {
    width: 58%;
}

.kindergarten-table .school-logo {
    text-align: center;
    width: 12%;
}

.kindergarten-table .kindergarten-logo-img {
    display: block;
    height: 56px;
    margin: 0 auto;
    max-width: 100%;
    object-fit: contain;
    width: 56px;
}

.kindergarten-detail-logo-link,
.kindergarten-detail-title-link,
.kindergarten-detail-logo-link:visited,
.kindergarten-detail-title-link:visited,
.kindergarten-detail-logo-link:hover,
.kindergarten-detail-title-link:hover,
.kindergarten-detail-logo-link:active,
.kindergarten-detail-title-link:active {
    color: inherit;
    text-decoration: none;
}

.kindergarten-detail-logo-link {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition-property: transform, box-shadow;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.kindergarten-detail-title-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    transition-property: color, transform;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.kindergarten-detail-logo-link:focus-visible,
.kindergarten-detail-title-link:focus-visible {
    outline: 3px solid rgba(153, 27, 27, .28);
    outline-offset: 3px;
}

.kindergarten-detail-logo-link:active,
.kindergarten-detail-title-link:active {
    transform: scale(.96);
}

.kindergarten-table .school-title {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px;
    overflow-wrap: normal;
    word-break: normal;
}

.kindergarten-table .school-tags {
    color: #888;
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: normal;
}

.kindergarten-table .rating-total {
    text-align: center;
    width: 15%;
}

.kindergarten-table tbody .rating-total {
    color: #ff4d4f;
    font-size: 18px;
    font-weight: 700;
}

.kindergarten-table .rating-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    min-width: 0;
}

.kindergarten-table .rating-item {
    background: #f0f2f5;
    border-radius: 15px;
    font-size: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 2px 8px;
}

.kindergarten-table .rating-label {
    color: #666;
}

.kindergarten-table .rating-value {
    color: #ff4d4f;
    font-weight: 600;
}

.kindergarten-rank-page .tableWrapper {
    padding-top: var(--rankings-kindergarten-filter-offset, 0px);
}

.kindergarten-rank-page .kindergarten-table .school-info {
    min-width: 0;
    width: auto;
}

.kindergarten-rank-page .kindergarten-table .school-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.3;
    overflow: hidden;
}

.kindergarten-rank-page .kindergarten-table col.rank-col,
.kindergarten-rank-page .kindergarten-table col.city-rank-col {
    width: 12%;
}

.kindergarten-rank-page .kindergarten-table col.rating-col {
    width: 18%;
}

.kindergarten-rank-page .kindergarten-table col.match-col,
.kindergarten-rank-page .kindergarten-table .kindergarten-match-header,
.kindergarten-rank-page .kindergarten-table .kindergarten-match-cell {
    width: 15%;
}

.kindergarten-rank-page .kindergarten-table col.logo-col {
    width: 12%;
}

.kindergarten-rank-page .kindergarten-table col.school-col {
    width: 43%;
}

.kindergarten-rank-page .kindergarten-table--with-city-rank col.rank-col,
.kindergarten-rank-page .kindergarten-table--with-city-rank col.city-rank-col,
.kindergarten-rank-page .kindergarten-table--with-city-rank col.logo-col {
    width: 10%;
}

.kindergarten-rank-page .kindergarten-table--with-city-rank col.school-col {
    width: 37%;
}

.kindergarten-rank-page .kindergarten-table .kindergarten-match-cell {
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
}

.kindergarten-rank-page .kindergarten-table .kindergarten-match-cell .rankings-row-match-link {
    margin-left: auto;
    margin-right: auto;
}

.kindergarten-rank-page .kindergarten-table--with-city-rank .rank-num,
.kindergarten-rank-page .kindergarten-table--with-city-rank .city-rank-num {
    width: 12%;
}

.kindergarten-rank-page .kindergarten-table:not(.kindergarten-table--with-city-rank) .rank-num {
    width: 12%;
}

.kindergarten-rank-page .kindergarten-table .rating-total {
    width: 18%;
}

.kindergarten-rank-page .kindergarten-table .school-info {
    width: 58%;
}

.kindergarten-rank-page .kindergarten-table--with-city-rank .school-info {
    width: 52%;
}

.kindergarten-rank-page .kindergarten-table--with-city-rank .school-logo {
    width: 10%;
}

.charDropdownWrapper {
    margin: 15px 0;
    text-align: center;
}

.kindergartenCharacteristicSelect {
    appearance: none;
    -webkit-appearance: none;
    background-color: #ff4d4f;
    background-image: url('/rankings/img/arrow-down-s-fill.png');
    background-image: image-set(url('/rankings/assets/optimized/img/arrow-down-s-fill-png-1600w.webp') type('image/webp'), url('/rankings/img/arrow-down-s-fill.png') type('image/png'));
    background-position: center right 10px;
    background-repeat: no-repeat;
    background-size: 16px;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    height: 40px;
    max-width: 420px;
    padding: 0 30px 0 12px;
    text-align: center;
    width: min(100% - 32px, 420px);
}

.kindergartenCharacteristicSelect option {
    background: white;
    color: #333;
}

.kgRankEvaSys .filterToggle {
    display: none !important;
}

.kindergarten-rank-page .kgRankEvaSys,
.city-index-page .kgRankEvaSys {
    margin: 0 auto;
    width: 85%;
}

.kgRankEvaSys .filterLine {
    display: none;
    justify-content: flex-end;
}

.kindergarten-rank-page .kgRankEvaSys .evaluationSystem,
.city-index-page .kgRankEvaSys .evaluationSystem {
    box-sizing: border-box;
}

body.city-index-page .pageBottom,
body.city-index-page .tableWrapper {
    margin-top: 0;
}

body.city-index-page .school-info,
body.city-index-page .school-title {
    cursor: default;
    text-align: center;
}

body.city-index-page .kindergarten-table tbody .count-col {
    color: #444;
    font-size: 16px;
    text-align: center;
}

#bannerImg {
    display: block;
    vertical-align: middle;
    width: 100%;
}

.kindergartenSeoHeader,
.kindergartenSeoHeaderInner {
    background: #fff;
}

.city-index-page .kindergartenCityIndexSeoHeader {
    position: sticky;
    top: var(--rankings-kindergarten-title-top, 100px);
    z-index: 8;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.city-index-page .kindergartenCityIndexSeoHeader .kindergartenSeoHeaderInner {
    display: flow-root;
}

.kindergartenSeoHeader.kindergartenSeoHeaderSticky .kindergartenSeoHeaderInner {
    box-sizing: border-box;
    left: 0;
    margin: 0;
    max-width: none;
    padding: 0;
    position: fixed;
    right: 0;
    top: var(--rankings-kindergarten-title-top, 135px);
    width: 100%;
    z-index: 8;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.kindergarten-rank-page .thirdMenuContainer.kindergartenFilterSticky {
    box-sizing: border-box;
    left: 0;
    position: fixed;
    right: 0;
    top: var(--rankings-kindergarten-filter-top, 135px);
    width: auto;
    z-index: 7;
}

.kindergartenSeoH1 {
    color: #1e2a3e;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    margin: 18px auto 8px;
    max-width: 1180px;
    padding: 0 16px;
    text-align: center;
}

.kindergartenSeoMeta {
    color: #6b7280;
    column-gap: 16px;
    display: grid;
    font-size: 13px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    line-height: 1.6;
    margin: 0 auto 14px;
    padding: 0;
    width: 85%;
}

.kindergartenSeoDates {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
}

.kindergartenSeoEvaluation {
    font-size: 16px;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    line-height: 1.2;
    text-align: left;
}

.kindergartenSeoEvaluation a {
    color: black;
    text-decoration: none;
    white-space: nowrap;
}

.kindergartenSeoDates time {
    white-space: nowrap;
}

@media screen and (min-width: 801px) {
    .kindergarten-rank-page .kgRankEvaSys > .evaluationSystem.PCOnly {
        display: none;
    }

    .kindergarten-rank-page .rankBtn,
    .city-index-page .rankBtn {
        font-size: 22px;
    }

    body.lang-en.kindergarten-rank-page .rankBtn,
    body.lang-en.city-index-page .rankBtn {
        font-size: 18px;
    }
}

@media screen and (max-width: 800px) {
    body.kindergarten-rank-page .mainContent {
        padding-top: 135px;
    }

    body.city-index-page .mainContent {
        padding-top: 100px;
    }

    .kindergarten-rank-page .rankForm,
    .city-index-page .rankForm {
        flex-wrap: nowrap;
        gap: 0;
        height: 30px;
        justify-content: space-between;
        overflow-x: hidden;
        overflow-y: hidden;
        padding: 0 8px;
        scrollbar-width: none;
        top: 70px;
    }

    .kindergarten-rank-page .rankForm::-webkit-scrollbar,
    .city-index-page .rankForm::-webkit-scrollbar {
        display: none;
    }

    .kindergarten-rank-page .rankBtn,
    .city-index-page .rankBtn {
        flex: 0 0 auto;
        line-height: 30px;
        min-width: 0;
        overflow: visible;
        padding: 0 4px;
        text-overflow: clip;
        white-space: nowrap;
    }

    .kindergarten-rank-page .rankBtn {
        font-size: 14px;
    }

    .city-index-page .rankBtn {
        font-size: 16px;
    }

    body.lang-en.kindergarten-rank-page .rankForm,
    body.lang-en.city-index-page .rankForm {
        align-content: center;
        column-gap: 0;
        flex-wrap: nowrap;
        height: 30px;
        min-height: 30px;
        padding: 0 8px;
        row-gap: 0;
    }

    body.lang-en.kindergarten-rank-page .rankBtn,
    body.lang-en.city-index-page .rankBtn {
        flex: 0 0 auto;
        line-height: 30px;
        overflow-wrap: normal;
        white-space: nowrap;
    }

    body.lang-en.kindergarten-rank-page .rankBtn {
        font-size: 10px;
    }

    body.lang-en.city-index-page .rankBtn {
        font-size: 10px;
    }

    body.lang-en.kindergarten-rank-page .citySelectionContainer {
        top: 100px;
    }

    body.lang-en.kindergarten-rank-page .mainContent {
        padding-top: 135px;
    }

    body.lang-en.city-index-page .mainContent {
        padding-top: 100px;
    }

    .kindergartenSeoH1 {
        font-size: 18px;
        line-height: 1.4;
        margin: 8px auto 4px;
    }

    .kindergartenSeoMeta {
        display: block;
        padding: 0 16px;
        width: auto;
        margin: 0 auto 2px;
    }

    .kindergartenSeoDates {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .kindergartenSeoEvaluation {
        display: none;
    }

    .kindergarten-rank-page .thirdMenuContainer,
    .city-index-page .thirdMenuContainer {
        padding: 4px clamp(24px, 7.5%, 48px) 6px;
    }

    .kgRankEvaSys .filterLine {
        display: flex !important;
        grid-area: evaluation;
        justify-content: flex-end;
        justify-self: end;
        padding: 0;
    }

    .kindergarten-rank-page .kgRankCharacteristicControls {
        align-items: center;
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin: 0;
        width: 100%;
    }

    .kgRankCharacteristicControls .charDropdownWrapper {
        flex: 1 1 auto;
        margin: 0;
        min-width: 0;
        text-align: left;
    }

    .kgRankCharacteristicControls .filterLine {
        flex: 0 0 auto;
    }

    .kgRankEvaSys .evaluationSystem a {
        display: inline-block;
        font-size: 16px;
        line-height: 32px;
        padding: 0;
    }

    .kindergarten-table thead th,
    .kindergarten-table thead th.rank-num,
    .kindergarten-table thead th.rating-total,
    .kindergarten-table thead th.school-info,
    .kindergarten-table thead th.count-col {
        color: #000;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.18;
        min-height: calc(1.18em * 2 + 18px);
        overflow-wrap: normal;
        padding: 8px 3px;
        white-space: normal;
        hyphens: none;
        word-break: normal;
    }

    .kindergarten-rank-page .kindergarten-table thead th.rating-total {
        color: #ff4d4f;
    }

    .kindergarten-rank-page .tableWrapper {
        padding-bottom: 110px;
    }

    .kindergarten-rank-page .kindergarten-table--with-city-rank .rank-num,
    .kindergarten-rank-page .kindergarten-table--with-city-rank .city-rank-num {
        width: clamp(32px, 10%, 42px);
    }

    .kindergarten-rank-page .kindergarten-table--with-city-rank col.rank-col,
    .kindergarten-rank-page .kindergarten-table--with-city-rank col.city-rank-col {
        width: 36px;
    }

    .kindergarten-rank-page .kindergarten-table col.logo-col,
    .kindergarten-rank-page .kindergarten-table--with-city-rank col.logo-col {
        width: 44px;
    }

    .kindergarten-rank-page .kindergarten-table:not(.kindergarten-table--with-city-rank) .rank-num {
        width: clamp(36px, 11%, 52px);
    }

    .kindergarten-rank-page .kindergarten-table:not(.kindergarten-table--with-city-rank) col.rank-col {
        width: 44px;
    }

    .kindergarten-rank-page .kindergarten-table .rating-total {
        width: clamp(58px, 18%, 72px);
    }

    .kindergarten-rank-page .kindergarten-table .school-logo,
    .kindergarten-rank-page .kindergarten-table--with-city-rank .school-logo {
        width: 44px;
    }

    .kindergarten-table .kindergarten-logo-img {
        height: 36px;
        width: 36px;
    }

    .kindergarten-rank-page .kindergarten-table col.rating-col {
        width: 58px;
    }

    .kindergarten-rank-page .kindergarten-table .school-info {
        width: auto;
    }

    .kindergarten-rank-page .kindergarten-table--with-city-rank thead th.rank-num,
    .kindergarten-rank-page .kindergarten-table--with-city-rank thead th.city-rank-num {
        font-size: 14px;
        line-height: 1.12;
        padding-left: 1px;
        padding-right: 1px;
    }

    .kindergarten-rank-page .kindergarten-table tbody .rank-num {
        font-size: 20px;
        line-height: 1.1;
    }

    .kindergarten-rank-page .kindergarten-table .school-title {
        font-size: 15px;
        line-height: 1.2;
    }

    .kindergarten-rank-page .kindergarten-table .school-tags {
        font-size: 12px;
    }

    .kindergarten-rank-page .kindergarten-table col.match-col {
        display: none;
    }

    .kindergarten-rank-page .kindergarten-table .kindergarten-match-header,
    .kindergarten-rank-page .kindergarten-table .kindergarten-match-cell {
        display: none;
    }

    .kindergarten-rank-page .kindergarten-table tbody .rating-total {
        font-size: 13px;
        line-height: 1.15;
    }

    .kindergarten-table .rating-item {
        font-size: 10px;
    }

    .charDropdownWrapper .kindergartenCharacteristicSelect {
        width: min(100% - 32px, 420px);
    }

    .kgRankCharacteristicControls .charDropdownWrapper .kindergartenCharacteristicSelect {
        max-width: none;
        width: 100%;
    }

    body.city-index-page .cityIndexTableScroll {
        overflow-x: visible;
    }

    body.city-index-page .kindergarten-table td {
        padding: 5px 1px;
    }

    body.city-index-page .kindergarten-table th.rank-num,
    body.city-index-page .kindergarten-table td.rank-num {
        width: 9% !important;
    }

    body.city-index-page .kindergarten-table td.rank-num {
        font-size: 14px;
    }

    body.city-index-page .kindergarten-table th.school-info,
    body.city-index-page .kindergarten-table td.school-info {
        width: 20% !important;
    }

    body.city-index-page .school-title {
        font-size: 13px;
        line-height: 1.2;
        margin: 0;
        word-break: break-word;
    }

    body.city-index-page .kindergarten-table th.rating-total,
    body.city-index-page .kindergarten-table td.rating-total {
        width: 15% !important;
    }

    body.city-index-page .kindergarten-table td.rating-total {
        font-size: 12px;
    }

    body.city-index-page .kindergarten-table th.count-col,
    body.city-index-page .kindergarten-table td.count-col {
        width: 18% !important;
    }

    body.city-index-page .kindergarten-table tbody .count-col {
        font-size: 12px;
    }
}
