html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
video,
iframe,
canvas,
svg {
    max-width: 100%;
}

@media (max-width: 900px) {
    .tour-card,
    .featured-tour-card,
    .review-preview-card,
    .review-card,
    .contact-card,
    .feature-item,
    .info-card,
    .related-card,
    .tour-info-item {
        min-width: 0 !important;
    }

    .tour-grid,
    .review-grid,
    .review-preview-grid,
    .featured-tour-grid,
    .related-grid,
    .feature-grid,
    .process-grid,
    .contact-grid,
    .benefit-grid,
    .benefits-grid,
    .info-grid,
    .faq-grid,
    .tour-info-grid,
    .page-grid,
    .content-grid,
    .footer-info,
    .form-grid,
    .phone-group,
    .reservation-summary-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    nav {
        height: 72px !important;
        padding: 0 14px !important;
    }

    .nav-container {
        width: 100% !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .logo img {
        height: 34px !important;
    }

    .nav-menu {
        top: 72px !important;
        max-height: calc(100svh - 72px) !important;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom)) !important;
    }

    .container,
    .content-section,
    .tour-detail-wrapper,
    .sub-header,
    .page-header,
    .section-header,
    .tour-content,
    .tour-section,
    .form-wrap,
    .tour-info-box,
    .tour-image-container,
    .reservation-wrap,
    .reservation-section,
    .review-list-section,
    .notice-list-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .tour-card,
    .featured-tour-card,
    .review-card,
    .review-preview-card,
    .related-card,
    .tour-info-item,
    .feature-item,
    .contact-card,
    .info-card,
    .reservation-card {
        border-radius: 16px !important;
    }

    .tour-card,
    .featured-tour-card,
    .review-card,
    .review-preview-card,
    .related-card {
        width: 100% !important;
    }

    .tour-card,
    .featured-tour-card,
    .tour-price-section,
    .reservation-steps,
    .reservation-summary,
    .privacy-header,
    .footer-bottom,
    .tour-card-footer,
    .tour-price-wrapper,
    .button-row,
    .form-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .tour-card-image-wrapper,
    .featured-tour-image,
    .related-card-image,
    .review-image,
    .tour-image {
        width: 100% !important;
        min-width: 0 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .tour-card-image-wrapper,
    .featured-tour-image,
    .related-card-image {
        aspect-ratio: 16 / 9;
        height: auto !important;
    }

    .tour-card-image,
    .featured-tour-image img,
    .related-card-image img,
    .review-image,
    .tour-image,
    .hero-slide img,
    .tour-section-content img,
    .tour-section-content .image_resized,
    .tour-section-content figure.image,
    .tour-section-content figure.image img,
    .tour-section-content figure img {
        border-radius: 10px !important;
    }

    .tour-info-box,
    .tour-image-container,
    .tour-content,
    .tour-section,
    .form-wrap,
    .reservation-form,
    .reservation-summary,
    .review-card-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .featured-carousel-arrow,
    .review-carousel-arrow {
        width: 42px !important;
        height: 42px !important;
    }

    .quick-menu {
        right: 10px !important;
        top: auto !important;
        bottom: calc(16px + env(safe-area-inset-bottom)) !important;
        transform: none !important;
    }

    .quick-menu a {
        width: 50px !important;
        height: 50px !important;
        font-size: 0.58rem !important;
    }

    .quick-menu a i {
        font-size: 1rem !important;
        margin-bottom: 2px !important;
    }

    #popUp {
        left: 10px !important;
        right: 10px !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    }

    .pop-wrap {
        width: min(92vw, 360px) !important;
        max-width: 100% !important;
        max-height: min(72svh, 520px) !important;
        box-sizing: border-box !important;
    }

    .pop-wrap ul li {
        overflow-wrap: anywhere !important;
        word-break: keep-all !important;
    }

    .status-text-white,
    .status-tag-red {
        white-space: normal !important;
    }

    #popReopen {
        bottom: calc(90px + env(safe-area-inset-bottom)) !important;
    }

    .phone-modal-content,
    .inquiry-modal-content,
    .modal-content,
    .popup-modal-content {
        width: min(92vw, 420px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .phone-number {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        letter-spacing: 0.5px !important;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px !important;
    }

    input,
    select,
    textarea {
        max-width: 100% !important;
    }

    .phone-group,
    .date-group,
    .form-row,
    .search-row,
    .filter-row,
    .action-row,
    .reservation-steps {
        gap: 0.75rem !important;
    }

    .phone-separator,
    .step-arrow {
        display: none !important;
    }

    .tour-grid .tour-price-block {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    .tour-grid .tour-price-wrapper {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: baseline !important;
        gap: 0.45rem !important;
        width: 100% !important;
    }

    .submenu-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .sub-content {
        padding: 0px !important;
    }

    .submenu ul {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .submenu a {
        display: block !important;
        text-align: center !important;
        padding: 0.8rem 1rem !important;
        border: 1px solid #eee !important;
    }

    table {
        width: 100% !important;
    }

    .tour-section-content table,
    .form-table,
    .reservation-table,
    .price-table {
        table-layout: fixed !important;
        font-size: 0.82rem !important;
    }

    .tour-section-content table th,
    .tour-section-content table td,
    .form-table th,
    .form-table td,
    .reservation-table th,
    .reservation-table td,
    .price-table th,
    .price-table td {
        white-space: normal !important;
        word-break: keep-all !important;
        overflow-wrap: anywhere !important;
        padding: 0.55rem 0.4rem !important;
    }

    .tour-section-content div:has(> table),
    .tour-section-content div:has(> figure > table),
    .form-table-wrapper,
    .table-responsive {
        overflow-x: visible !important;
    }

    footer .footer-bottom,
    footer .footer-links {
        justify-content: center !important;
        text-align: center !important;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0 12px !important;
    }

    .container,
    .content-section,
    .tour-detail-wrapper,
    .sub-header,
    .page-header,
    .section-header,
    .tour-content,
    .tour-section,
    .form-wrap,
    .tour-info-box,
    .tour-image-container,
    .reservation-wrap,
    .reservation-section,
    .review-list-section,
    .notice-list-section {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }

    .hero {
        min-height: 460px !important;
    }

    .hero-content {
        padding: 0.85rem !important;
    }

    .hero-content h1 {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
    }

    .hero-content p {
        font-size: 0.92rem !important;
        padding: 0 !important;
    }

    .tour-title,
    .page-header h1,
    .sub-header-content h1 {
        font-size: clamp(1.45rem, 6vw, 1.8rem) !important;
    }

    .tour-card-content,
    .review-card-content,
    .related-card-content,
    .tour-section,
    .form-wrap,
    .reservation-form {
        padding: 1rem !important;
    }

    .tour-price,
    .tour-price-value,
    .phone-number {
        font-size: clamp(1.35rem, 5.5vw, 1.9rem) !important;
    }

    .quick-menu {
        right: 6px !important;
    }

    .quick-menu a {
        width: 44px !important;
        height: 44px !important;
        font-size: 0.5rem !important;
    }

    .quick-menu a i {
        font-size: 0.9rem !important;
    }

    .pop-wrap {
        width: min(100%, 240px) !important;
        max-width: 100% !important;
        padding: 32px 0 18px !important;
    }

    .pop-wrap ul li {
        padding-left: 22px !important;
    }

    .pop-wrap ul li::before {
        left: 8px !important;
    }

    .featured-carousel-arrow,
    .review-carousel-arrow {
        width: 38px !important;
        height: 38px !important;
    }

    .featured-carousel-viewport,
    .review-carousel-viewport {
        overflow: hidden !important;
    }

    .pagination a,
    .pagination span {
        min-width: 2.1rem !important;
        padding: 0.4rem 0.55rem !important;
        font-size: 0.82rem !important;
    }
}
