html {
    font-size: 62.5%;
}

@media (max-width: 1024px) {
    html {
        font-size: 56.25%;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 50%;
    }
}

.geniuskids-page {
    font-family: "Noto Sans JP", sans-serif;
    color: #000;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.gk-page-title {
    font-size: 4rem;
    font-weight: 700;
    text-align: left;
    margin: 150px auto 40px;
    max-width: 1140px;
    padding: 0 20px;
    border-bottom: 4px solid #EB5F51;
    display: inline-block;
    position: relative;
}

.hero {
    text-align: center;
}

.hero img {
    width: 100%;
    max-width: 355px;
    height: auto;
    margin: 0 auto 64px;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #354E41;
    margin: 100px 0 48px;
    padding-bottom: 12px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #354E41;
    margin-top: 12px;
}

.catch h2 {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.catch p {
    font-size: 1.6rem;
    line-height: 1.8;
    text-align: center;
    margin: 0 auto 60px;
    max-width: 700px;
}

.catch-head{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}

.catch-head h2{
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.catch-links{
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.catch-link{
    font-size: 1.4rem;
    font-weight: 700;
    color: #267ACE;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .3s ease, transform .3s ease;
}

.catch-link span{
    transition: transform .3s ease;
}

.catch-link:hover{
    color: #EB5F51;
}

.catch-link:hover span{
    transform: translateX(4px);
}

@media (max-width: 767px){
    .catch-head{
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .catch-links{
        align-items: center;
    }
}

.activity-list,
.event-list {
    display: grid;
    gap: 48px 32px;
}

@media (min-width: 768px) {
    .activity-list,
    .event-list{
        grid-template-columns: repeat(3, 1fr);
    }
}

.activity-item,
.event-item {
    text-align: center;
}

.activity-item img,
.event-item img {
    width: 100%;
    aspect-ratio: 576 / 333;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
}

.title {
    font-size: 2.7rem;
    font-weight: 700;
    margin: 8px 0 12px;
}

.text {
    font-size: 1.6rem;
    line-height: 1.7;
    padding: 0 6px;
}

.btn-area {
    text-align: center;
    margin-top: 32px;
}

.btn-contact {
    display: inline-block;
    border: 1px solid #000;
    padding: 14px 28px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
}

.btn-contact:hover {
    background: #000;
    color: #fff;
}

.js-animate {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.js-animate.is-show {
    opacity: 1;
    transform: translateY(0);
}

.title-line {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

.title-line::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #EB5F51;
    transition: width 1.5s ease;
}

.js-animate.is-show .title-line::after {
    width: 100%;
}

.access {
    max-width: 1140px;
    margin: 120px auto;
    text-align: left;
}

.map-area {
    width: 100%;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 6px;
}

.map-area iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.access-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    border-collapse: collapse;
    font-size: 1.6rem;
    line-height: 1.7;
}

.access-table th {
    width: 160px;
    padding: 14px 16px;
    font-weight: 700;
    background: #F0F0F0;
    border-bottom: 1px solid #EB5F51;
    white-space: nowrap;
}

.access-table td {
    padding: 14px 16px;
    background: #F8F8F8;
    border-bottom: 1px solid #EB5F51;
}

@media (min-width: 768px) {
    .access-table {
        margin: 0 auto 60px;
    }
}

.facility-list--cards {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 32px;
}

.facility-list--cards .facility-item {
    flex: 0 0 calc((100% - 64px) / 3);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.facility-list--cards .facility-item:hover {
    transform: translateY(-4px);
}

.facility-list--cards .facility-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.facility-list--cards .facility-item img {
    width: 100%;
    aspect-ratio: 576 / 333;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
    display: block;
}

.facility-list--cards .facility_text-row {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.facility-list--cards .facility_text-inner {
    padding-right: 16px;
}

.facility-list--cards .facility_title {
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
}

.facility-list--cards .facility_address {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 10px;
}

.facility-list--cards .item-title {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.facility-list--cards .arrow-btn {
    font-size: 2.1rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    width: 18px;
    transition: width 0.4s ease;
    pointer-events: none;
}

.facility-list--cards .facility-item:hover .arrow-btn {
    width: 120px;
}

.facility-list--cards .facility-item:hover .arrow-btn::before {
    content: "＞＞";
    background: linear-gradient(
        to right,
        #EB5F51 0%,
        #e67360 30%,
        #cc7e66 50%,
        #808080 80%,
        #000000 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.facility-list--cards .line {
    width: 100%;
    height: 2px;
    background: #000;
    margin-top: 12px;
    margin-bottom: 32px;
}

.gk-page-title {
    font-size: clamp(3.2rem, 4vw, 4.4rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 150px auto 40px;
}

.catch h2 {
    font-size: clamp(2.4rem, 3vw, 3.2rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}


@media (max-width: 767px) {
    .facility-list--cards .facility-item {
        flex: 0 0 100%;
    }
}

.site-footer{
    font-size: 1.6rem;
}

@media (max-width: 1024px){
    .site-footer {
        font-size: 1.7778rem;
    }
}

@media (max-width: 767px){
    .site-footer {
        font-size: 2rem;
    }
}

.gk-page-title{
    border-bottom: none;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.gk-page-title::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: #EB5F51;
    transition: width 1.6s ease;
}

.gk-page-title.is-show::after{
    width: 100%;
}