@charset "UTF-8";
/* profile_v2: detailed school profile */
.school-profile-v2 {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}
.school-profile-v2,
.school-profile-v2 * {
    box-sizing: border-box;
}
.school-profile-v2__section {
    min-width: 0;
    scroll-margin-top: var(--anchor-scroll-offset);
}
.school-profile-v2 .school-image__items {
    display: block;
    max-width: 84rem;
    margin-inline: auto;
}
.school-profile-v2 .school-image__item {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 480px;
    aspect-ratio: auto;
    object-fit: contain;
    margin-inline: auto;
    border-radius: 1.2rem;
}
.school-profile-v2__toc {
    margin-block: 3.2rem 5.6rem;
    padding: 2.4rem;
    border: 0.1rem solid var(--color-gray-300);
    border-radius: 1.2rem;
    background: var(--color-gray-100);
}
.school-profile-v2__toc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 2.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.school-profile-v2__toc-list a {
    display: block;
    padding: 0.8rem 1rem;
    border-bottom: 0.1rem solid var(--color-gray-300);
    color: var(--color-gray-700);
    text-decoration: none;
}
.school-profile-v2__toc-list a:hover,
.school-profile-v2__toc-list a:focus-visible {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.school-profile-v2__information-list,
.school-profile-v2__location-list,
.school-profile-v2__highlights-list,
.school-profile-v2__recommended-list,
.school-profile-v2__life-list,
.school-profile-v2__resource-grid {
    margin: 0;
    padding: 0;
    list-style: none;
}
.school-profile-v2__information-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0.1rem solid var(--color-gray-300);
}
.school-profile-v2__information-item {
    display: grid;
    grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 2fr);
    gap: 1.6rem;
    padding: 1.6rem;
    border-bottom: 0.1rem solid var(--color-gray-300);
}
.school-profile-v2__information-item dt {
    font-weight: 500;
    color: var(--color-gray-700);
}
.school-profile-v2__information-item dd {
    min-width: 0;
    margin: 0;
}
.school-profile-v2__location-list,
.school-profile-v2__highlights-list,
.school-profile-v2__recommended-list,
.school-profile-v2__resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}
.school-profile-v2__location-card,
.school-profile-v2__highlight-card,
.school-profile-v2__recommended-card,
.school-profile-v2__resource-card {
    min-width: 0;
    padding: 2rem;
    border: 0.1rem solid var(--color-gray-300);
    border-radius: 1rem;
    background: #fff;
}
.school-profile-v2__highlight-card {
    border-top: 0.4rem solid var(--color-primary);
}
.school-profile-v2__location-card a,
.school-profile-v2__resource-card a {
    overflow-wrap: anywhere;
}
.school-profile-v2__map,
.school-profile-v2 .school-detail__video-frame,
.school-profile-v2 iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}
.school-profile-v2__table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.school-profile-v2__table-wrap table {
    width: 100%;
    min-width: 56rem;
}
.school-profile-v2__courses-list,
.school-profile-v2__life-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}
.school-profile-v2__courses-list > li,
.school-profile-v2__life-list > li {
    min-width: 0;
    padding: 1.4rem 1.6rem;
    border-left: 0.4rem solid var(--color-secondary);
    background: var(--color-gray-100);
}

@media screen and (max-width: 768px) {
    .school-profile-v2__toc {
        margin-block: 2.4rem 4rem;
        padding: 1.6rem;
    }
    .school-profile-v2__toc-list,
    .school-profile-v2__information-list,
    .school-profile-v2__location-list,
    .school-profile-v2__highlights-list,
    .school-profile-v2__recommended-list,
    .school-profile-v2__courses-list,
    .school-profile-v2__life-list,
    .school-profile-v2__resource-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .school-profile-v2__information-item {
        grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 2fr);
        gap: 1.2rem;
        padding: 1.2rem 0.8rem;
    }
    .school-profile-v2__location-card,
    .school-profile-v2__highlight-card,
    .school-profile-v2__recommended-card,
    .school-profile-v2__resource-card {
        padding: 1.6rem;
    }
}

/* profile_v2 renderer compatibility */
.school-profile-v2__information .c-table_wrap {
    display: grid;
    grid-template-columns: minmax(10rem, 0.75fr) minmax(0, 2fr);
    margin: 0;
    border-top: 0.1rem solid var(--color-gray-300);
}
.school-profile-v2__information .c-table__term,
.school-profile-v2__information .c-table__desc {
    min-width: 0;
    margin: 0;
    padding: 1.4rem 1.6rem;
    border-bottom: 0.1rem solid var(--color-gray-300);
}
.school-profile-v2__information .c-table__term {
    font-weight: 500;
    color: var(--color-gray-700);
    background: var(--color-gray-100);
}
.school-profile-v2__location .c-campus_locations__list,
.school-profile-v2__highlights .ul-default,
.school-profile-v2__recommended .recommendedfor,
.school-profile-v2__life .facili-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.school-profile-v2__location .c-campus_locations__item,
.school-profile-v2__highlights .ul-default > li,
.school-profile-v2__recommended .recommendedfor > li,
.school-profile-v2__life .facili-list > li {
    display: block;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 1.8rem;
    border: 0.1rem solid var(--color-gray-300);
    border-radius: 1rem;
    background: #fff;
}
.school-profile-v2__highlights .ul-default > li {
    border-top: 0.4rem solid var(--color-primary);
}
.school-profile-v2__highlights .ul-default > li::before {
    content: none;
}
.school-profile-v2__highlights .ul-default > li:not(:last-of-type) {
    margin-bottom: 0;
}
.school-profile-v2__life .facili-list > li {
    border-left: 0.4rem solid var(--color-secondary);
    background: var(--color-gray-100);
}
.school-profile-v2__life .facili-list > li::after {
    content: none;
}
.school-profile-v2__courses .section-bg,
.school-profile-v2__table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.school-profile-v2__courses .c-table_school_courses,
.school-profile-v2__table-wrap table {
    width: 100%;
    min-width: 56rem;
}
.school-profile-v2__resource-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    color: var(--color-gray-700);
    text-decoration: none;
}
.school-profile-v2__resource-card:hover,
.school-profile-v2__resource-card:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.school-profile-v2__resource-card span {
    color: var(--color-text-muted, var(--color-gray-700));
    font-size: 0.9em;
}

@media screen and (max-width: 768px) {
    .school-profile-v2__information .c-table_wrap {
        grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 2fr);
    }
    .school-profile-v2__information .c-table__term,
    .school-profile-v2__information .c-table__desc {
        padding: 1.2rem 0.8rem;
    }
    .school-profile-v2__location .c-campus_locations__list,
    .school-profile-v2__highlights .ul-default,
    .school-profile-v2__recommended .recommendedfor,
    .school-profile-v2__life .facili-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* Reference-aligned profile_v2 school detail */
body.school-detail-profile-page {
    --profile-page-bg: var(--color-region-bg, #eef8f7);
    --profile-surface: #fff;
    --profile-soft-bg: var(--color-region-bg, #f2f8f7);
    --profile-divider: var(--color-gray-300);
    --profile-surface-border: var(--color-gray-300);
    background-color: var(--profile-page-bg);
}
@supports (background-color: color-mix(in srgb, #000 10%, #fff)) {
    body.school-detail-profile-page {
        --profile-page-bg: color-mix(in srgb, var(--color-primary) 9%, #fff);
        --profile-soft-bg: color-mix(in srgb, var(--color-primary) 4%, #fff);
        --profile-divider: color-mix(in srgb, var(--color-primary) 20%, #fff);
        --profile-surface-border: color-mix(in srgb, var(--color-primary) 12%, var(--color-gray-300));
    }
}
.school-detail-profile-page .content-heading__wrap {
    background-color: transparent;
}
.school-profile-v2.school-detail {
    display: block;
    width: calc(100% - 48px);
    max-width: 998px;
    min-width: 0;
    margin: 40px auto 80px;
    padding: 48px 48px 64px;
    border: 1px solid var(--profile-surface-border);
    border-radius: 16px;
    font-family: "Noto Sans JP", sans-serif;
    background: var(--profile-surface);
    box-shadow: 0 1.2rem 3.2rem rgba(24, 65, 72, 0.08);
    color: var(--color-gray-700);
}
.school-profile-v2 .main-row__main {
    min-width: 0;
    width: 100%;
}
.school-profile-v2 .main-row__main :where(p) {
    font-size: clamp(14px, 1.45vw, 16px);
    line-height: 1.8;
}
.school-profile-v2 .school-detail__name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}
.school-profile-v2 .school-detail__name__logo {
    flex: 0 0 180px;
    width: 180px;
    min-width: 0;
    max-width: 180px;
    margin: 0;
}
.school-profile-v2 .school-detail__logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 120px;
    aspect-ratio: auto;
    object-fit: contain;
    margin: 0 auto;
}
.school-profile-v2 .school-detail__logo-placeholder {
    display: grid;
    place-items: center;
    flex: 0 0 180px;
    width: 180px;
    min-height: 80px;
    padding: 12px;
    border: 1px dashed var(--color-gray-400);
    border-radius: 6px;
    background: var(--color-gray-100);
    color: var(--color-text-muted, var(--color-gray-700));
    font-size: 12px;
    text-align: center;
}
.school-profile-v2 .school-detail__name__text {
    min-width: 0;
}
.school-profile-v2 .school-detail__name__text__ja {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}
.school-profile-v2 .school-detail__name__text__en {
    margin-top: 2px;
    color: var(--color-gray-500);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}
.school-profile-v2 .school-detail__unit {
    margin-bottom: 40px;
}
.school-profile-v2 .school-detail__features,
.school-profile-v2 .school-detail__reviews {
    margin-bottom: 60px;
}
.school-profile-v2 .section-heading__sub {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}
.school-profile-v2 .school-profile-v2__heading-note {
    font-size: 14px;
    font-weight: 400;
}
.school-profile-v2 .school-detail__subheading {
    margin: 24px 0 10px;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 700;
}
.school-profile-v2 .school-profile-v2__table-wrap {
    max-width: 100%;
    overflow-x: visible;
}
.school-profile-v2 .school-detail__table-info {
    margin-bottom: 30px;
}
.school-profile-v2 .school-detail__table-info table,
.school-profile-v2 .school-detail__course table {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: auto;
}
.school-profile-v2 .school-detail__table-info table {
    font-size: 14px;
    line-height: 1.5;
}
.school-profile-v2 .school-detail__table-info th {
    width: 240px;
    padding: 10px 14px;
    border-bottom: 2px solid var(--color-primary);
    text-align: left;
    vertical-align: middle;
    font-weight: 400;
}
.school-profile-v2 .school-detail__table-info td {
    padding: 10px 14px;
    border-bottom: 2px solid var(--color-gray-300);
    vertical-align: middle;
    overflow-wrap: anywhere;
}
.school-profile-v2 .school-detail__table-info tr:first-child th {
    border-top: 2px solid var(--color-primary);
}
.school-profile-v2 .school-detail__table-info tr:first-child td {
    border-top: 2px solid var(--color-gray-300);
}
.school-profile-v2 .school-detail__table__url,
.school-profile-v2 .school-detail__map-link {
    color: var(--color-primary);
    text-decoration: underline;
    overflow-wrap: anywhere;
}
.school-profile-v2 .school-detail__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 4px;
    width: 100%;
    max-width: none;
}
.school-profile-v2 .school-detail__gallery > .c-modern-picture {
    display: block;
    min-width: 0;
}
.school-profile-v2 .school-detail__gallery .school-image__item,
.school-profile-v2 .school-detail__gallery .school-image__item:nth-child(n + 2),
.school-profile-v2 .school-detail__gallery > .c-modern-picture:nth-child(n + 2) > .school-image__item {
    display: block;
    grid-column: auto;
    grid-row: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 320px;
    aspect-ratio: auto;
    margin-inline: auto;
    border-radius: 0;
    object-fit: contain;
}
.school-profile-v2 .school-detail__gallery > .school-image__item:only-child {
    grid-column: 1 / -1;
}
.school-profile-v2__highlight-figure {
    min-width: 0;
    margin: 0;
}
.school-profile-v2 .school-detail__gallery > .c-modern-picture:only-child {
    grid-column: 1 / -1;
}
.school-profile-v2 .school-detail__gallery > .school-image__item:only-child,
.school-profile-v2 .school-detail__gallery > .c-modern-picture:only-child .school-image__item {
    max-width: min(100%, 700px);
    max-height: 480px;
}
.school-profile-v2 .school-detail__location {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-rows: auto 1fr;
    gap: 0 20px;
    margin-bottom: 40px;
}
.school-profile-v2 .school-detail__location__title {
    grid-column: 1;
    grid-row: 1;
}
.school-profile-v2 .school-detail__location__text {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}
.school-profile-v2 .school-detail__location__text p {
    margin-bottom: 12px;
}
.school-profile-v2 .school-detail__location__map {
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 0;
}
.school-profile-v2 .school-detail__location__map__iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
    border: 0;
}
.school-profile-v2 .school-detail__features > p:not(:last-child) {
    margin-bottom: 16px;
}
.school-profile-v2 .school-detail__image-placeholder,
.school-profile-v2 .school-detail__media-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 700px;
    min-height: 180px;
    margin: 0 auto 20px;
    padding: 20px;
    aspect-ratio: 16 / 9;
    border: 1px dashed var(--color-gray-400);
    border-radius: 5px;
    background: var(--color-gray-100);
    color: var(--color-text-muted, var(--color-gray-700));
    font-size: 14px;
}
.school-profile-v2 .school-detail__highlight-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 700px);
    max-height: 480px;
    aspect-ratio: auto;
    margin: 0 auto 20px;
    border-radius: 5px;
    object-fit: contain;
}
.school-profile-v2 .school-profile-v2__highlight-figure {
    max-width: 700px;
    margin: 0 auto 20px;
}
.school-profile-v2 .school-profile-v2__highlight-figure .school-detail__highlight-image {
    margin: 0 auto;
}
.school-profile-v2 .responsive-video-container.school-detail__media-placeholder {
    height: auto;
    padding-bottom: 0;
    overflow: visible;
}
.school-profile-v2 .school-detail__fee {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.school-profile-v2 .school-detail__fee__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid var(--color-primary);
}
.school-profile-v2 .school-detail__fee__title,
.school-profile-v2 .school-detail__fee__content {
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 10px;
    text-align: center;
}
.school-profile-v2 .school-detail__fee__title {
    background: var(--color-primary);
    color: #fff;
}
.school-profile-v2 .school-detail__course table {
    font-size: 14px;
    line-height: 1.5;
}
.school-profile-v2 .school-detail__course thead th {
    padding: 10px;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
}
.school-profile-v2 .school-detail__course thead th + th {
    border-left: 2px solid #fff;
}
.school-profile-v2 .school-detail__course tbody th,
.school-profile-v2 .school-detail__course tbody td {
    padding: 10px;
    border-top: 2px solid #fff;
    vertical-align: middle;
}
.school-profile-v2 .school-detail__course tbody th {
    width: 50%;
    background: var(--color-gray-100);
    font-weight: 400;
    text-align: left;
}
.school-profile-v2 .school-detail__course tbody td {
    width: 50%;
    border-left: 2px solid #fff;
    background: #fff;
    text-align: center;
}
.school-profile-v2 .school-detail__course-table--cols-1 tbody th {
    width: 100%;
}
.school-profile-v2 .school-detail__course-table--cols-2 tbody th {
    width: 65%;
}
.school-profile-v2 .school-detail__course-table--cols-2 tbody td {
    width: 35%;
}
.school-profile-v2 .school-detail__course-table--cols-3 tbody th {
    width: 60%;
}
.school-profile-v2 .school-detail__course-table--cols-3 tbody td {
    width: 20%;
}
.school-profile-v2 .school-detail__course__note {
    margin-top: 10px;
    font-size: 14px !important;
    line-height: 1.7;
}
.school-profile-v2 .school-detail__special {
    margin-bottom: 30px;
    color: var(--color-primary);
}
.school-profile-v2 .school-detail__recommends {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background: var(--profile-soft-bg);
}
.school-profile-v2 .school-detail__recommends__photo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0 0 0 40px;
    padding: 30px 0;
}
.school-profile-v2 .school-detail__recommends__photo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 320px;
    aspect-ratio: auto;
    object-fit: contain;
    margin-inline: auto;
}
.school-profile-v2 .school-detail__recommends__photo .school-detail__image-placeholder {
    min-height: 170px;
    margin: 0;
    aspect-ratio: 4 / 3;
}
.school-profile-v2 .school-detail__recommends__list {
    grid-column: 2;
    grid-row: 1;
    margin: 15px 40px 15px 0;
}
.school-profile-v2 .school-detail__recommends--text-only {
    grid-template-columns: minmax(0, 1fr);
}
.school-profile-v2 .school-detail__recommends--text-only .school-detail__recommends__list {
    grid-column: 1;
    margin: 15px 40px;
}
.school-profile-v2 .school-detail__recommends__list dt {
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
}
.school-profile-v2 .school-detail__recommends__list dd {
    position: relative;
    margin: 0;
    padding: 7px 0 7px 25px;
    font-size: 13px;
    line-height: 1.5;
}
.school-profile-v2 .school-detail__recommends__list dd:not(:last-child) {
    border-bottom: 2px solid var(--profile-divider);
}
.school-profile-v2 .school-detail__recommends__list dd::before {
    content: "✓";
    position: absolute;
    left: 5px;
    color: var(--color-primary);
    font-weight: 700;
}
.school-profile-v2 .school-detail__optional-list {
    margin: 0 0 20px;
    padding-left: 1.4em;
}

.school-profile-v2 .school-detail__video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 20px;
}
.school-profile-v2 .school-detail__video {
    margin: 0;
    min-width: 0;
}
.school-profile-v2 .school-detail__video:only-child {
    grid-column: 1 / -1;
}
.school-profile-v2 .school-detail__video-caption {
    margin-top: 8px;
}
.school-profile-v2 .school-profile-v2__resources {
    margin-top: 24px;
    border-top: 1px solid var(--color-gray-300);
}
.school-profile-v2 .school-profile-v2__resources summary {
    padding: 14px 0;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.school-profile-v2 .school-profile-v2__resources[open] summary {
    margin-bottom: 12px;
}
.school-profile-v2 .school-profile-v2__resources:not([open]) .school-profile-v2__resource-grid {
    display: none;
}
.school-profile-v2 .school-profile-v2__resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.school-profile-v2 .school-profile-v2__resource-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--color-gray-300);
    border-radius: 5px;
    background: #fff;
    color: var(--color-gray-700);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.school-profile-v2 .school-profile-v2__resource-card:hover,
.school-profile-v2 .school-profile-v2__resource-card:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.school-profile-v2 .school-profile-v2__resource-card span {
    color: var(--color-text-muted, var(--color-gray-700));
    font-size: 14px;
}
.school-profile-v2 .school-detail__testimonial-list,
.school-profile-v2 .review-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.school-profile-v2 .school-detail__testimonial-card,
.school-profile-v2 .review-item {
    width: calc((100% - 40px) / 3);
    min-width: 0;
    padding: 20px 15px;
    border-radius: 5px;
    background: var(--profile-soft-bg);
    box-sizing: border-box;
}
.school-profile-v2 .school-detail__testimonial-card[data-profile-empty="true"],
.school-profile-v2 .review-item:only-child {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 160px;
    border: 1px dashed var(--color-gray-400);
    background: var(--color-gray-100);
    color: var(--color-text-muted, var(--color-gray-700));
}
.school-profile-v2 .review-item:only-child .review-box {
    width: min(100%, 480px);
}
.school-profile-v2 .review-meta {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}
.school-profile-v2 .review-box {
    padding: 20px 15px;
    border-radius: 5px;
    background: #fff;
    text-align: center;
}
.school-profile-v2 .review-item--rating {
    padding: 0;
    background: transparent;
}
.school-profile-v2 .review-item--rating .review-meta {
    line-height: 1.5;
    color: var(--color-gray-700);
}
.school-profile-v2 .review-item--rating .review-meta span {
    font-weight: 400;
}
.school-profile-v2 .review-item--rating .review-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    background: var(--profile-soft-bg);
}
.school-profile-v2 .review-main {
    width: 40%;
    padding-right: 15px;
    border-right: 1px solid var(--color-gray-300);
    text-align: center;
}
.school-profile-v2 .review-label {
    margin-bottom: 5px;
    color: var(--color-gray-700);
    font-size: 14px;
    font-weight: 700;
}
.school-profile-v2 .review-point {
    margin-bottom: 5px;
    color: var(--color-gray-700);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}
.school-profile-v2 .review-star-rating {
    display: block;
    width: 116px;
    max-width: 100%;
    margin: 0 auto;
    line-height: 0;
}
.school-profile-v2 .review-star-rating__svg {
    display: block;
    width: 100%;
    height: auto;
}
.school-profile-v2 .review-star-base {
    fill: #b7c3cf;
}
.school-profile-v2 .review-star-fill {
    fill: #f4964e;
}
.school-profile-v2 .review-details {
    width: 56%;
    margin: 0;
    padding: 0 0 0 15px;
    list-style: none;
    box-sizing: border-box;
}
.school-profile-v2 .review-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--profile-divider);
    color: var(--color-text-muted, var(--color-gray-700));
    font-size: 14px;
    line-height: 1.7;
}
.school-profile-v2 .review-details li:last-child {
    border-bottom: 0;
}
.school-profile-v2 .review-details li span:last-child {
    margin-left: 5px;
    color: var(--color-gray-700);
    font-size: 14px;
    font-weight: 700;
}

@media screen and (max-width: 1024px) {
    .school-profile-v2.school-detail {
        width: calc(100% - 30px);
        max-width: 942px;
        padding: 32px clamp(16px, 2vw, 20px) 48px;
        border-radius: 12px;
    }
}
@media screen and (max-width: 960px) {
    .school-profile-v2 .review-item--rating {
        width: calc((100% - 20px) / 2);
    }
}
@media screen and (max-width: 840px) {
    .school-profile-v2 .review-item--rating {
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .school-profile-v2.school-detail {
        width: 100%;
        max-width: none;
        margin: 0 auto 48px;
        padding: 32px 16px 40px;
        border-inline: 0;
        border-radius: 0;
        background: var(--profile-surface);
        box-shadow: none;
    }
    .school-profile-v2 .main-row__main :where(p) {
        font-size: 15px;
        line-height: 1.85;
    }
    .school-profile-v2 .school-detail__name {
        display: block;
        margin-bottom: 30px;
        text-align: center;
    }
    .school-profile-v2 .school-detail__logo-placeholder {
        width: 120px;
        min-height: 60px;
        margin: 0 auto 8px;
    }
    .school-profile-v2 .school-detail__name__logo {
        max-width: 120px;
        margin-inline: auto;
    }
    .school-profile-v2 .school-detail__logo-image {
        max-height: 90px;
        margin-bottom: 8px;
    }
    .school-profile-v2 .school-detail__name__text__ja {
        font-size: 18px;
    }
    .school-profile-v2 .school-profile-v2__heading-note {
        display: block;
        margin-top: 4px;
    }
    .school-profile-v2 .school-detail__unit {
        margin-bottom: 40px;
    }
    .school-profile-v2 .school-detail__features,
    .school-profile-v2 .school-detail__reviews {
        margin-bottom: 48px;
    }
    .school-profile-v2 .school-detail__table-info table,
    .school-profile-v2 .school-detail__table-info tbody,
    .school-profile-v2 .school-detail__table-info tr,
    .school-profile-v2 .school-detail__table-info th,
    .school-profile-v2 .school-detail__table-info td {
        display: block;
        width: 100%;
    }
    .school-profile-v2 .school-detail__table-info tr:first-child th,
    .school-profile-v2 .school-detail__table-info tr:first-child td {
        border-top: 0;
    }
    .school-profile-v2 .school-detail__table-info th {
        position: relative;
        padding: 10px 12px;
        border: 0;
        border-left: 4px solid var(--color-primary);
        background: var(--profile-soft-bg);
        font-weight: 700;
    }
    .school-profile-v2 .school-detail__table-info tr:first-child {
        border-top: 0.1rem solid var(--color-gray-300);
    }
    .school-profile-v2 .school-detail__table-info th::before {
        display: none;
    }
    .school-profile-v2 .school-detail__table-info td {
        padding: 12px 12px 18px;
        border: 0;
        border-bottom: 1px solid var(--color-gray-300);
        background: #fff;
    }
    .school-profile-v2 .school-detail__gallery {
        grid-template-columns: 1fr;
    }
    .school-profile-v2 .school-detail__location {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0;
        margin-bottom: 40px;
    }
    .school-profile-v2 .school-detail__location__title,
    .school-profile-v2 .school-detail__location__text,
    .school-profile-v2 .school-detail__location__map {
        grid-column: 1;
    }
    .school-profile-v2 .school-detail__location__title {
        grid-row: 1;
    }
    .school-profile-v2 .school-detail__location__text {
        grid-row: 2;
        margin-bottom: 20px;
    }
    .school-profile-v2 .school-detail__location__map {
        grid-row: 3;
    }
    .school-profile-v2 .school-detail__location__map__iframe {
        min-height: 220px;
    }
    .school-profile-v2 .school-detail__fee {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .school-profile-v2 .school-detail__course table,
    .school-profile-v2 .school-detail__course tbody,
    .school-profile-v2 .school-detail__course tr,
    .school-profile-v2 .school-detail__course th,
    .school-profile-v2 .school-detail__course td {
        display: block;
        width: 100%;
    }
    .school-profile-v2 .school-detail__course thead {
        display: none;
    }
    .school-profile-v2 .school-detail__course tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--color-gray-300);
        background: #fff;
    }
    .school-profile-v2 .school-detail__course tbody th,
    .school-profile-v2 .school-detail__course tbody td {
        width: 100%;
        padding: 0 12px 14px;
        border: 0;
        background: #fff;
        text-align: left;
    }
    .school-profile-v2 .school-detail__course tbody th::before,
    .school-profile-v2 .school-detail__course tbody td::before {
        content: attr(data-label);
        display: block;
        margin: 0 -12px 12px;
        padding: 7px 12px;
        background: var(--color-primary);
        color: #fff;
        text-align: center;
        font-weight: 700;
    }
    .school-profile-v2 .school-detail__course tbody td::before {
        background: var(--profile-soft-bg);
        color: var(--color-primary);
    }
    .school-profile-v2 .school-detail__recommends {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        margin-bottom: 30px;
    }
    .school-profile-v2 .school-detail__recommends__list {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        padding: 15px 10px 0;
    }
    .school-profile-v2 .school-detail__recommends--text-only .school-detail__recommends__list {
        margin: 0;
        padding: 15px 10px 0;
    }
    .school-profile-v2 .school-detail__recommends__list dt {
        text-align: center;
    }
    .school-profile-v2 .school-detail__recommends__photo {
        grid-column: 1;
        grid-row: 2;
        margin: 10px;
        padding: 0;
    }
    .school-profile-v2 .school-profile-v2__resource-grid {
        grid-template-columns: 1fr;
    }

    .school-profile-v2 .school-detail__video-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .school-profile-v2 .school-detail__testimonial-card,
    .school-profile-v2 .review-item {
        width: 100%;
    }
    .school-profile-v2 .review-list {
        gap: 30px;
    }
    .school-profile-v2 .review-item--rating .review-box {
        padding: 15px;
    }
    .school-profile-v2 .review-main {
        width: 40%;
        padding-right: 15px;
    }
    .school-profile-v2 .review-point {
        font-size: 36px;
    }
    .school-profile-v2 .review-details {
        width: 60%;
        padding-left: 15px;
    }
    .school-profile-v2 .review-details li {
        font-size: 14px;
        line-height: 1.7;
    }
    .school-profile-v2 .review-details li span:last-child {
        font-size: 14px;
    }
}

/* profile_v2 mobile reviews: preserve the desktop rating relationship on SP */
@media screen and (max-width: 576px) {
    .school-profile-v2 .review-list {
        gap: 28px;
    }
    .school-profile-v2 .review-item--rating {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .school-profile-v2 .review-item--rating .review-meta {
        margin: 0 0 10px;
        padding: 0;
        border: 0;
        background: transparent;
        font-size: 15px;
        line-height: 1.6;
    }
    .school-profile-v2 .review-item--rating .review-meta span {
        display: inline;
        margin-top: 0;
        font-size: 14px;
    }
    .school-profile-v2 .review-item--rating .review-box {
        display: flex;
        align-items: center;
        padding: 16px 12px;
        border-radius: 6px;
        background: var(--profile-soft-bg);
        text-align: center;
    }
    .school-profile-v2 .review-main {
        display: block;
        width: 42%;
        padding: 0 12px 0 0;
        border-right: 1px solid var(--color-gray-300);
        border-bottom: 0;
        text-align: center;
    }
    .school-profile-v2 .review-label {
        margin-bottom: 4px;
        font-size: 14px;
    }
    .school-profile-v2 .review-point {
        margin-bottom: 4px;
        font-size: 34px;
        line-height: 1;
    }
    .school-profile-v2 .review-star-rating {
        width: 108px;
        max-width: 100%;
        margin: 0 auto;
    }
    .school-profile-v2 .review-details {
        width: 58%;
        padding: 0 0 0 12px;
    }
    .school-detail-profile-page .school-profile-v2 .review-details li {
        padding: 3px 0;
        font-size: 13px;
        line-height: 1.55;
    }
    .school-profile-v2 .review-details li span:last-child {
        margin-left: 8px;
        font-size: 14px;
    }
}

/* Legacy school-detail heading compatibility (pre-profile_v2 unification). */
.school-profile-v2 .title-left-red {
    margin: 0 0 20px;
    padding-left: 10px;
    border-left: 5px solid var(--color-primary);
    color: var(--color-gray-700);
    font-size: clamp(16px, 1.6vw, 18px);
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.school-profile-v2 .title-left-red__note {
    font-size: 14px;
    font-weight: 400;
}
.school-profile-v2 .school-detail__reviews .title-left-red {
    margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
    .school-profile-v2 .title-left-red {
        margin-bottom: 18px;
        font-size: 17px;
        line-height: 1.65;
    }
    .school-profile-v2 .title-left-red__note {
        display: block;
        margin-top: 4px;
    }
}

/* Ordered content uses the same sequence on the editor preview and public page. */
.school-profile-v2 .school-profile-v2__content-section {
    margin-bottom: 48px;
}
.school-profile-v2 .school-profile-v2__content-section:last-child {
    margin-bottom: 0;
}
.school-profile-v2 .school-profile-v2__content-block {
    min-width: 0;
    margin-block: 24px;
}
.school-profile-v2 .school-profile-v2__content-block:last-child {
    margin-bottom: 0;
}
.school-profile-v2 .school-profile-v2__content-block .school-detail__table-info,
.school-profile-v2 .school-profile-v2__content-block .school-detail__gallery {
    margin-block: 0;
}
.school-profile-v2 .school-profile-v2__rich-text {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: anywhere;
}
.school-profile-v2 .school-profile-v2__rich-text > :first-child {
    margin-top: 0;
}
.school-profile-v2 .school-profile-v2__rich-text > :last-child {
    margin-bottom: 0;
}
.school-profile-v2 .school-profile-v2__rich-text :where(p, ul, ol, blockquote, table) {
    margin-block: 16px;
}
.school-profile-v2 .school-profile-v2__rich-text :where(h2, h3, h4) {
    margin-block: 24px 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}
/* Bullet lists print like the legacy optional lists (activities, timetable, brochures): indented, no marker. */
.school-profile-v2 .school-profile-v2__rich-text ul {
    padding-left: 1.4em;
    list-style: none;
}
.school-profile-v2 .school-profile-v2__rich-text ol {
    padding-left: 1.6em;
    list-style: decimal;
}
.school-profile-v2 .school-profile-v2__rich-text li {
    margin-block: 6px;
    line-height: 1.8;
}
.school-profile-v2 .school-profile-v2__rich-text strong {
    font-weight: 700;
}
.school-profile-v2 .school-profile-v2__rich-text em {
    font-style: italic;
}
.school-profile-v2 .school-profile-v2__rich-text :where(a, a:visited),
.school-profile-v2 .school-profile-v2__content-block--info a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.school-profile-v2 .school-profile-v2__rich-text blockquote {
    padding-left: 16px;
    border-left: 4px solid var(--color-gray-300);
}
.school-profile-v2 .school-profile-v2__rich-text table {
    width: 100%;
    min-width: 30rem;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.8;
}
.school-profile-v2 .school-profile-v2__rich-text :where(th, td) {
    padding: 12px;
    border: 1px solid var(--color-gray-300);
    text-align: left;
    vertical-align: top;
}
.school-profile-v2 .school-profile-v2__rich-text th {
    background: var(--profile-soft-bg);
    color: var(--color-gray-700);
    font-weight: 700;
}
.school-profile-v2 .school-profile-v2__rich-text thead th {
    background: var(--color-action-primary, var(--color-primary));
    color: #fff;
}
.school-profile-v2 .school-profile-v2__content-block--video figcaption {
    margin-top: 8px;
}
@media screen and (max-width: 768px) {
    .school-profile-v2 .school-profile-v2__content-section {
        margin-bottom: 36px;
    }
    .school-profile-v2 .school-profile-v2__content-block {
        margin-block: 20px;
    }
    .school-profile-v2 .school-profile-v2__rich-text :where(h2, h3, h4) {
        font-size: 17px;
    }
}

/* Authored school sections retain the public profile's spacing and components. */
.school-profile-v2 .school-profile-v2__authored-block {
    min-width: 0;
}
.school-profile-v2 .school-profile-v2__styled-text em {
    font-style: italic;
}
.school-profile-v2 .school-profile-v2__styled-text ol {
    list-style: decimal;
    padding-left: 1.6em;
}
.school-profile-v2 .school-profile-v2__styled-text blockquote {
    border-left: 4px solid var(--color-gray-300);
    padding-left: 16px;
}
/*
 * Free prose blocks print headings, lists, tables and links like the rich text above.
 * Limited to prose: the fee, course and review layouts keep their own component rules.
 */
.school-profile-v2 .school-profile-v2__styled-text--prose {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: anywhere;
}
.school-profile-v2 .school-profile-v2__styled-text--prose :where(h2, h4) {
    margin-block: 24px 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}
.school-profile-v2 .school-profile-v2__styled-text--prose ul {
    padding-left: 1.4em;
    list-style: none;
}
.school-profile-v2 .school-profile-v2__styled-text--prose li {
    margin-block: 6px;
    line-height: 1.8;
}
.school-profile-v2 .school-profile-v2__styled-text--prose :where(a, a:visited) {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.school-profile-v2 .school-profile-v2__styled-text--prose table {
    width: 100%;
    min-width: 30rem;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.8;
}
.school-profile-v2 .school-profile-v2__styled-text--prose :where(th, td) {
    padding: 12px;
    border: 1px solid var(--color-gray-300);
    text-align: left;
    vertical-align: top;
}
.school-profile-v2 .school-profile-v2__styled-text--prose th {
    background: var(--profile-soft-bg);
    color: var(--color-gray-700);
    font-weight: 700;
}
.school-profile-v2 .school-profile-v2__styled-text--prose thead th {
    background: var(--color-action-primary, var(--color-primary));
    color: #fff;
}
.school-profile-v2 .school-profile-v2__authored-section--location > .title-left-red {
    grid-column: 1;
    grid-row: 1;
}
.school-profile-v2 .school-profile-v2__authored-section--location > .school-profile-v2__authored-block--text {
    grid-column: 1;
    grid-row: 2;
}
.school-profile-v2 .school-profile-v2__authored-section--location > .school-profile-v2__authored-block--map {
    display: contents;
}
.school-profile-v2 .school-profile-v2__authored-section--highlight .school-profile-v2__authored-block--photos {
    margin-bottom: 20px;
}
.school-profile-v2 .school-detail__features .school-profile-v2__styled-text > p:not(:last-child) {
    margin-bottom: 16px;
}
.school-profile-v2 .school-profile-v2__authored-section--recommendations > .school-profile-v2__authored-block,
.school-profile-v2 .school-profile-v2__authored-section--recommendations .school-profile-v2__styled-text {
    display: contents;
}
.school-profile-v2 .school-detail__video-grid > .school-profile-v2__authored-block--video:only-child {
    grid-column: 1 / -1;
}
.school-profile-v2 .school-profile-v2__styled-text--resources .school-profile-v2__resource-card a {
    color: inherit;
    text-decoration: none;
}

.school-profile-v2 .school-profile-v2__authored-section--highlight {
    padding-top: 0;
}
.school-profile-v2 .school-profile-v2__authored-section--highlight + .school-profile-v2__authored-section--highlight {
    padding-top: 20px;
}
.school-profile-v2 .school-profile-v2__authored-section--highlight + .school-profile-v2__authored-section:not(.school-profile-v2__authored-section--highlight) {
    padding-top: 0;
}
