/* responsive styles moved from style.css */

@media (max-width: 1024px) {
    .contact-banner {
        flex-direction: column;
        gap: 30px;
    }
    .contact-banner__separator {
        width: 100%;
        height: 1px;
    }
    .contact-banner__number {
        font-size: 2.8rem;
    }
    .contact-banner__btn {
        min-width: 100%;
    }
    .curriculum__flow {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .about__inner,
    .voice__grid,
    .curriculum__flow,
    .news__list {
        flex-direction: column;
    }
    .curr-card,
    .news-item {
        width: 100%;
        margin-bottom: 20px;
        min-height: auto;
    }
    .curr-card__arrow {
        display: none;
    }
    .hero__inner {
        flex-direction: column;
        padding: 0 20px;
    }
    .hero__catch {
        font-size: 2.2rem;
    }
    .hero__sub {
        font-size: 1rem;
    }
    .hero__features {
        flex-direction: column;
        align-items: center;
    }
    .hero__features li {
        width: 100%;
        max-width: 320px;
    }
    .hero__image {
        width: 100%;
    }
}

@media (max-width: 950px) {
    .br-sp {
        display: block;
    }
    .br-pc {
        display: none;
    }
    .features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cta__points {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header__inner {
        padding: 15px 20px;
    }
    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        border-bottom: 1px solid #eee;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .header__nav--open {
        display: flex;
        flex-direction: column;
    }
    .header__nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .header__nav a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .header__nav a:last-child {
        border-bottom: none;
    }
    .header__menu {
        display: block;
        margin-left: auto;
    }
    .header__btn {
        display: none;
    }
    .hero {
        padding: 0 20px 40px;
    }
    .hero__inner {
        gap: 30px;
    }
    .hero__image {
        order: -1;
        width: 100%;
    }
    .hero__image img {
        border-radius: 20px;
    }
    .hero__catch {
        font-size: 2rem;
    }
    .hero__sub {
        font-size: 1rem;
    }
    .hero__features {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .hero__features li {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        align-items: center;
        gap: 15px;
        padding: 16px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }
    .hero__features li img {
        width: 50px;
        height: 50px;
    }
    .hero__features li span {
        font-size: 0.9rem;
        font-weight: 700;
    }
    .hero__cta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }
    .hero__cta .btn {
        width: 100%;
        padding: 16px 0;
    }
    .hero__target {
        margin-top: 0;
        font-size: 0.95rem;
    }
    .about__inner,
    .voice__grid,
    .curriculum__flow,
    .news__list {
        flex-direction: column;
    }
    .curr-card,
    .news-item {
        width: 100%;
        margin-bottom: 20px;
        min-height: auto;
    }
    .contact-banner {
        flex-direction: column;
        text-align: center;
    }
    .contact-banner__separator {
        width: 100%;
        height: 1px;
    }
    .contact-banner__btn {
        min-width: 100%;
    }
    .blog-hero {
        padding: 40px 15px;
    }
    .blog-hero__title {
        font-size: 1.6rem;
    }
    .blog-hero__sub {
        font-size: 0.9rem;
    }
    .blog-nav {
        padding: 15px 0;
        margin-bottom: 30px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .blog-nav::-webkit-scrollbar {
        display: none;
    }
    .blog-nav__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 20px;
        gap: 20px;
        width: max-content;
    }
    .blog-nav__list a {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .blog-card__img {
        padding-top: 56.25%;
    }
    .blog-card__content {
        padding: 20px 15px;
    }
    .blog-card__title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .blog-card__excerpt {
        font-size: 0.85rem;
    }
    .pagination {
        margin-top: 40px;
    }
    .article-container {
        padding: 30px 20px;
        margin-top: 20px;
        border-radius: 0;
    }
    .article-title {
        font-size: 1.5rem;
    }
    .article-content {
        font-size: 1rem;
    }
    .floating-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 10px 15px;
        z-index: 9999;
    }
    .floating-cta__btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #ffb700;
        color: #fff;
        text-decoration: none;
        padding: 10px;
        border-radius: 8px;
        font-weight: bold;
        box-shadow: 0 4px 6px rgba(255, 183, 0, 0.3);
    }
    .floating-cta__sub {
        font-size: 0.7rem;
        color: white;
        background: var(--color-primary);
        padding: 10px;
        border-radius: 10px;
    }
    .floating-cta__main {
        font-size: 1.1rem;
        color: black;
        background: #ffb700;
        padding: 10px;
        border-radius: 10px;
    }
    body {
        padding-bottom: 80px;
    }
    .access__container {
    padding: 20px; /* スマホでは余白を少し狭くする */
    }
    
    .access__map iframe {
        height: 300px; /* スマホでは地図の高さを抑える */
    }
}

@media (min-width: 951px) {
    .cta_points_image {
        width: 120px;
        border-radius: 30px;
    }
}

@media (max-width: 640px) {
    .curriculum__flow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .bottom-contact {
        padding: 40px 0;
    }
    .contact-banner__phone {
        flex-direction: column;
        text-align: center;
    }
    .contact-banner__icon {
        width: 60px;
        height: 60px;
    }
    .contact-banner__icon svg {
        width: 30px;
        height: 30px;
    }
    .contact-banner__number {
        font-size: 2.2rem;
    }
    .contact-banner__btn {
        padding: 15px 20px;
        font-size: 1.1rem;
        gap: 15px;
    }
}