/* Responsive Design */
@media (max-width: 768px) {
    /* Layout Order for Mobile */
    .header {
        order: 1;
    }

    .reference-price-section {
        order: 2;
    }

    main {
        order: 3;
    }

    body > *:not(.reference-price-section):not(.header):not(main) {
        order: 4;
    }

    /* Header Styles */
    .header {
        background-attachment: scroll;
    }

    .company-logo {
        max-width: 200px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Section Styles */
    .section {
        padding: 3rem 0;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section:nth-child(even) .section-content,
    .section:nth-child(odd) .section-content {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .section:nth-child(even) .text-content,
    .section:nth-child(even) .image-content,
    .section:nth-child(odd) .text-content,
    .section:nth-child(odd) .image-content {
        direction: ltr;
    }

    .text-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .feature-icons {
        justify-content: center;
    }

    .cta-button {
        display: block;
        margin: 0 auto;
    }

    .image-content {
        text-align: center;
    }

    /* Contact Info */
    .contact-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Modal Styles */
    .modal-content {
        margin: 10px auto;
        padding: 1.5rem;
        width: 95%;
        max-height: calc(100vh - 20px);
    }

    .modal h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .submit-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .close {
        font-size: 1.2rem;
        right: 0.8rem;
        top: 0.8rem;
    }

    /* Instagram Icon */
    .header-instagram {
        top: 1rem;
        right: 1rem;
    }
    
    .instagram-icon {
        width: 80px;
        height: 80px;
        font-size: 4.7rem;
    }

    /* Price Bar */
    .kicorin-price-container {
        flex-direction: column;
        font-size: 1.2rem;
    }

    .kicorin-price-value {
        font-size: 1.2rem;
    }

    .kicorin-price-note {
        font-size: 1rem;
    }

    .kicorin-price-item {
        width: 70%;
        margin: 0 auto;
    }

    /* Property Management */
    .catchphrase h2 {
        font-size: 1.4rem;
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .property-card {
        padding: 1.5rem;
    }

    .catchphrase h2:not(.mobile-catchphrase) {
        display: none;
    }

    .mobile-catchphrase {
        display: block !important;
    }

    /* Profile Section */
    #profile .image-content > div {
        width: 270px !important;
        height: 270px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .contact-item {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    /* Modal Styles */
    .modal-content {
        margin: 5px auto;
        padding: 1rem;
        width: 98%;
        max-height: calc(100vh - 10px);
    }

    .modal h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .submit-button {
        padding: 0.7rem;
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .close {
        font-size: 1rem;
        right: 0.5rem;
        top: 0.5rem;
    }

    /* Instagram Icon */
    .header-instagram {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .instagram-icon {
        width: 80px;
        height: 80px;
        font-size: 4.7rem;
    }

    /* Profile Section */
    #profile .image-content > div {
        width: 240px !important;
        height: 240px !important;
    }

    #profile .text-content h3 {
        font-size: 1.2rem !important;
    }

    #profile .text-content p {
        font-size: 0.9rem !important;
    }
}