@media screen and (max-width: 768px) {
    .only-pc {
        display: none;
    }

    .only-768-500px {
        display: block;
    }

    .only-768px {
        display: block;
    }

    .header-nav {
        padding: 15px 20px;
    }

    .hero {
        background: url(../img/hero.webp) no-repeat center right / cover;
        height: 500px;
        padding-left: 5%;
    }
    
    .catchphrase h2 {
        font-size: 2rem;
        line-height: 1.4;
    }

    .catchphrase h2 span {
        font-size: 2.2rem;
    }

    .gear-icon {
        max-width: 150px;
    }

    .about {
        padding: 100px 20px;
    }

    .cta-area p {
        margin: 0 0 20px 0;
    }

    .gallery {
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }

    .section-title span {
        font-size: 2rem;
    }

    .trivia-title {
        font-size: 1.2rem;
    }

    .cta-title {
        font-size: 2.3rem;
        line-height: 1.4;
    }

    .story-txt {
        font-size: 2rem;
    }

    .story-txt span {
        font-size: 2.8rem;
    }

}

@media screen and (max-width: 500px) {
    body {
        padding-bottom: 80px; 
    }

    .only-500px {
        display: block;
    }

    .only-768px {
        display: none;
    }

    .header-logo img {
        height: 50px;
    }

    .header-menu {
        gap: 15px;
        font-size: 12px;
    }

    .header-menu .line-btn.mobile-menu-link {
        background: none !important;   
        box-shadow: none !important;    
        border-radius: 0 !important;   
        color: #fff !important;  
        padding: 0;      
    }

    .header-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;         
        z-index: 999;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 0;
    }

    .header-menu li {
        width: 50%;
        margin: 0;
        text-align: center;
        color: #fff;
        padding: 15px 0;   
    }

    .header-nav {
        padding: 15px 10px;
        flex-direction: row; 
    }

    .underline-orange {
        padding-bottom: 0;
        font-size: 1rem;
        color: #fff;
    }
    .underline-orange:hover {
        color: #fff; 
    }

    .underline-orange:hover::after {
        transform: scaleX(0); 
    }

    .mobile-blue {
        background: #0268b8;
    }

    .mobile-orange {
        background: #f39800;
    }
    
    .back-to-top {
        bottom: 55px;
        right: 11px;
    }

    .hero {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-content {
        margin: 0 auto;
        padding-top: 170px;
    }

    .gear-icon {
        max-width: 90px;
    }

    .catchphrase h2 {
        font-size: 1.6rem;
    }

    .catchphrase h2 span {
        font-size: 1.8rem;
    }

    .cta-area p {
        font-size: 1.1rem;
    }

    .section-title {
        line-height: 1.4;
    }

    .section-title span {
        font-size: 1.7rem;
    }

    .about {
        padding: 65px 15px;
    }

    .speech-box .speech-box-img {
        max-width: 80px;
    }

    .speechBubble-left, .speechBubble-right {
        font-size: 1rem;
        padding: 10px;
    }

    .story-txt span {
        font-size: 2.1rem;
    }

    .story-txt {
        font-size: 1.6rem;
        line-height: 1.5;
    }

    .gallery {
        flex-direction: column;
    }

    .gallery-item {
        max-width: 100%;
    }

    .solution {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .trivia-title::before, .trivia-title::after {
        right: 12px;
        width: 15px;
    } 

    .trivia-title {
        font-size: 1.1rem;
        padding-right: 35px;
    }


    .trivia-body {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-box {
        padding: 30px 20px;
        border-radius: 25px;
    }

    .cta-desc {
        font-size: 1.1rem;
        text-align: left;
    }

    footer {
        padding: 40px 20px;
    }

    .footer-nav {
        margin: 15px 0;
    }

}