@media(max-width:1196px) {
    .nav a {
        /* font-size:18px; */
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 16px 24px;
    }

    .nav {
        gap: 24px;
    }

    .nav a {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero .subtitle {
        font-size: 24px;
    }

    .service-grid,
    .pricing-grid,
    .testimonial-grid {
        gap: 32px;
    }

    .footer-content {
        /* gap: 40px; */
    }
}

/* (max-width: 768px) */
@media (max-width: 768px) {

    /* Header */
    .header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 16px;
        position: relative;
        align-items: baseline;
    }

    /* .logo img {
        max-width: 160px;
        height: auto;
    } */

    .nav {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        text-align: center;
    }

    .nav a {
        font-size: 15px;
        padding: 8px 0;
    }

    .social-links {
        gap: 20px;
        margin-top: 8px;
    }

    /* Hero Section */
    /* .hero {
        height: 400px;
        padding: 20px;
    } */

    .hero h1 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .hero .subtitle {
        font-size: 20px;
        margin-bottom: 24px;
    }

    /* .cta-button {
        padding: 14px 32px;
        font-size: 15px;
    } */

    /* Cover Container */
    .cover-container {
        padding-top: 60px;
        padding-bottom: 30px;
        min-height: 280px;
    }

    .heading {
        font-size: 24px !important;
    }

    .heading.large {
        font-size: 24px !important;
    }

    .content-container {
        max-width: 90%;
        padding: 0 20px;
    }

    /* Service Section */
    .service-intro {
        padding: 15px 20px;
    }

    .service-intro h2 {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .service-grid {
        flex-direction: column;
        gap: 32px;
    }

    .service-card {
        max-width: 100%;
        min-width: auto;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
        margin-bottom: 20px;
    }

    .service-card h3 {
        font-size: 22px;
    }

    .service-card p {
        font-size: 18px;
    }

    /* Pricing Section */
    .pricing-section {
        /* padding: 50px 20px; */
    }

    .pricing-section h2 {
        font-size: 24px !important;
        font-weight: bold;
    }

    .pricing-subtitle {
        font-size: 18px;
    }

    .pricing-note {
        font-size: 13px;
        margin-bottom: 40px;
    }

    .pricing-grid {
        flex-direction: column;
        gap: 24px;
    }

    .price-card {
        max-width: 100%;
        min-width: auto;
        padding: 32px 24px;
    }

    .price {
        font-size: 36px;
    }

    .price-features li {
        font-size: 18px;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 50px 20px;
    }

    .testimonials h2 {
        font-size: 22px;
        margin-bottom: 40px;
        line-height: 1.5;
    }

    .testimonial-grid {
        flex-direction: column;
        gap: 24px;
    }

    .testimonial-card {
        max-width: 100%;
        min-width: auto;
        padding: 24px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .testimonial-author {
        font-size: 12px;
    }

    /* FAQ Section */
    .faq-section {
        padding: 50px 20px;
    }

    .faq-section h2 {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .faq-item {
        padding: 16px 20px;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 16px;
        margin-top: 2px;
    }

    .faq-question {
        font-size: 14px;
        line-height: 1.6;
    }

    .faq-answer.show {
        padding: 12px 16px;
        font-size: 13px;
        /* margin-left: 36px;
        margin-top: 8px; */
    }

    /* Contact Section */
    .contact-section {
        padding: 50px 20px;
    }

    .contact-h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .call-box {
        padding: 16px;
        margin-bottom: 30px;
    }

    .call-number {
        font-size: 22px;
    }

    .call-company {
        font-size: 13px;
    }

    .call-hours {
        font-size: 11px;
    }

    .contact-form {
        padding: 0 10px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .submit-button {
        padding: 14px;
        font-size: 15px;
    }

    /* Footer */
    .footer {
        padding: 40px 20px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 32px;
    }

    .footer-logo {
        gap: 10px;
    }

    .footer-logo-icon {
        width: 40px;
        height: 40px;
    }

    #logo-footer {
        width: 32px;
        height: 32px;
    }

    .footer-company {
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .footer-column h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .footer-column a {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 24px;
    }
}

/* (max-width: 480px) */
@media (max-width: 480px) {

    /* Header */
    .header {
        /* padding: 12px 16px; */
        align-items: baseline;
    }

    /* .logo img {
        max-width: 160px;
    } */

    .nav a {
        font-size: 14px;
    }

    .social-links a {
        font-size: 18px;
    }

    /* Hero */
    /* .hero {
        height: 350px;
        padding: 16px;
    } */

    .hero h1 {
        /* font-size: 24px; */
        font-size: 36px;
        margin-bottom: 10px;
    }

    .hero .subtitle {
        font-size: 20px;
        margin-bottom: 20px;
    }
     .hero-cta {
        gap: 12px;
    }

    .hero-cta .cta-button {
        padding: 12px 22px;
        font-size: 1rem;
    }

    .hero-cta .cta-button span {
        font-size: 1rem;
    }

    /* .cta-button {
        padding: 12px 28px;
        font-size: 14px;
    } */

    /* Cover Container */
    .cover-container {
        padding-top: 40px;
        padding-bottom: 20px;
        min-height: 240px;
    }

    .heading {
        font-size: 20px !important;
        line-height: 1.3;
    }

    .heading.large {
        font-size: 20px !important;
        line-height: 1.3;
    }

    .heading::before {
        width: 130%;
        height: 130%;
    }

    /* Service Section */
    .service-intro {
        padding: 15px 16px;
    }

    .service-intro h2 {
        font-size: 22px;
        margin-bottom: 32px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }

    .service-card h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .service-card p {
        font-size: 18px;
    }

    /* Pricing Section */
    .pricing-section {
        /* padding: 40px 16px; */
    }

    .pricing-section h2 {
        font-size: 24px !important;
    }

    .pricing-subtitle {
        font-size: 16px;
    }

    .pricing-note {
        font-size: 12px;
    }

    .price-card {
        padding: 28px 20px;
    }

    .badge {
        font-size: 12px;
        padding: 5px 14px;
    }

    .plan-name {
        font-size: 32px;
    }

    .plan-duration-1,
    .plan-duration {
        font-size: 13px;
    }

    .price {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .price span {
        font-size: 14px;
    }

    .price-features li {
        padding: 8px 0;
        font-size: 18px;
    }

    .plan-button {
        font-size: 22px;
    }

    /* Testimonials */
    .testimonials {
        padding: 40px 16px;
    }

    .testimonials h2 {
        font-size: 18px;
        margin-bottom: 32px;
        line-height: 1.6;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 13px;
        line-height: 1.7;
    }

    /* FAQ Section */
    .faq-section {
        padding: 40px 16px;
    }

    .faq-section h2 {
        font-size: 22px;
        margin-bottom: 32px;
    }

    .faq-item {
        padding: 14px 16px;
    }

    .faq-icon {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }

    .faq-question {
        font-size: 13px;
    }

    .faq-answer.show {
        /* margin-left: 30px; */
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Contact Section */
    .contact-section {
        padding: 40px 16px;
    }

    .contact-h2 {
        font-size: 18px;
    }

    .call-box {
        padding: 14px;
    }

    .call-label {
        font-size: 14px;
    }

    .call-number {
        font-size: 20px;
        display: block;
        margin-top: 4px;
    }

    .call-company {
        font-size: 12px;
        margin-top: 8px;
    }

    .call-hours {
        font-size: 10px;
    }

    .form-group input,
    .form-group textarea {
        padding: 11px 12px;
        font-size: 14px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .submit-button {
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 32px 16px 20px;
    }

    .footer-content {
        gap: 28px;
    }

    .footer-logo-text {
        font-size: 16px;
    }

    .footer-left p {
        /* font-size: 12px; */
        font-size: 9px;
    }

    .footer-links {
        gap: 24px;
    }
    .price-red{
        font-size:32px!important;
    }
    .price-tax{
        font-size: 14px !important;
    }
}

/* (max-width: 360px) */
@media (max-width: 360px) {
     .price-features li {
        font-size: 14px;
    }
     .price-tax{
        font-size: 14px !important;
    }
     .price-red{
        font-size:28px!important;
    }
    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 20px;
    }
     .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .cta-button {
        width: 100%;
        max-width: 280px;
    }

    .heading {
        font-size: 18px !important;
    }

    .heading.large {
        font-size: 24px !important;
    }

    .service-intro h2,
    .faq-section h2 {
        font-size: 20px;
    }

    .price {
        font-size: 28px;
    }

    .testimonials h2 {
        font-size: 16px;
    }

    .call-number {
        font-size: 18px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    /* .hero {
        height: 350px;
    } */

    .cover-container {
        min-height: 200px;
        padding-top: 40px;
        /* padding-bottom: 20px; */
    }
}

/* Print styles */
@media print {

    .header,
    .social-links,
    .cta-button,
    .plan-button,
    .submit-button {
        display: none;
    }

    .hero,
    .testimonials {
        background: white;
        color: black;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .cover-image,
    .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {

    a,
    button,
    .faq-item {
        min-height: 44px;
        min-width: 44px;
    }

    .nav a {
        padding: 12px 16px;
    }

    .faq-item {
        margin-bottom: 0;
    }
}

/* Area Map */
@media (max-width: 1024px) {
    .area-map {
        padding: 50px 30px;
    }

    .area-map h2 {
        font-size: 28px;
        margin-bottom: 35px;
    }

    .map-container {
        max-width: 800px;
    }

    .area-map-image {
        max-width: 600px;
    }

    .area-map.style-boxed .map-container {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .area-map {
        padding: 40px 20px;
    }

    .area-map h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .map-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .area-map-image {
        max-width: 100%;
    }

    .area-map.style-boxed .map-container {
        padding: 20px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .area-map {
        padding: 30px 16px;
    }

    .area-map h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .area-map-image {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }

    .area-map-image:hover {
        transform: scale(1.02);
    }

    .area-map.style-boxed .map-container {
        padding: 16px;
        border-radius: 8px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .area-map-image {
        transition: none;
    }

    .area-map-image:hover {
        transform: none;
    }
}

/* Fix for screens 564px and below */
@media (max-width: 564px) {

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Ensure all containers are fluid */
    .service-intro,
    .pricing-section,
    .testimonials,
    .faq-section,
    .contact-section,
    .area-map {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
        overflow-x: hidden;
    }
    .question-line-wt{
        margin-bottom: 0px !important;
    }

    /* Fix service cards */
    .service-grid {
        width: 100%;
        padding: 0;
    }

    .service-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    /* Fix pricing cards */
    .pricing-grid {
        width: 100%;
        padding: 0;
    }

    .price-card {
        min-width: 0;
        max-width: 100%;
        /* width: 100%; */
        /* width: 83%;  */
        width: 89%;
        /*for campaign price card */
        margin: 0 auto;
    }

    /* Fix testimonial cards */
    .testimonial-grid {
        width: 100%;
        padding: 0;
    }

    .testimonial-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    /* Fix FAQ section */
    .faq-list {
        width: 100%;
        padding: 0;
    }

    .faq-item {
        width: 100%;
        box-sizing: border-box;
    }

    /* Fix contact form */
    .contact-form {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    /* Fix content container */
    .content-container {
        max-width: 100%;
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    /* Fix hero section */
    .hero {
        /* width: 100%; */
        /* padding: 16px; */
        box-sizing: border-box;
    }

    /* Fix footer */
    .footer {
        width: 100%;
        padding: 32px 16px 20px;
        box-sizing: border-box;
    }

    .footer-content {
        width: 100%;
        padding: 0;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix map */
    .map-container {
        width: 100%;
        padding: 0;
    }

    .area-map-image {
        max-width: 100%;
        /* width: 100%; */
        /* transform: scale(1.2); */
    }
}

/* for round icons */
@media (min-width: 1100px) {
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2 columns on tablets */
@media (max-width: 1099px) and (min-width: 769px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column on mobile */
@media (max-width: 768px) {
    .service-grid {
        /* grid-template-columns: 1fr; causes the service card to display in one column only; */
        grid-template-columns: repeat(2, 1fr)
    }
}

/* for section header <div class="section-header">
    <h2>空き家</h2>
</div>  */
@media (max-width: 768px) {
    .section-header {
        gap: 12px;
        max-width: 90%;
    }

    .section-header h2 {
        font-size: 24px;
    }
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0px;
    text-align: center;
    background-color: #f3f6f8;
    padding: 100px 400px 38px 399px;
}

.contact-title-symbol {
    font-size: 64px;
    font-family: 'Abel';
}

.contact-line {
    margin-left: 1px;
    width: 150px;
    height: 0;
    flex-shrink: 0;
    align-self: center;
    border-top: 5px solid #005aa6;
    border-radius: 50%;
}

.subtitle-a {
    color: #333;
    font-size: 24px;
    text-align: left;
}

.contact-circle-light {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-color: #f8f8f8;
    border: 4px solid rgba(153, 153, 153, 0.6);
    border-radius: 50%;
}

.contact-tel {
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #333;
}

.contact-col1 {
    margin-top: 7px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Noto Sans JP';
    padding: 19px 21px 59px 21px;
    border: 3px solid #005aa6;
    border-radius: 20px;
}

.contact-title2 {
    color: #005aa6;
    font-size: 64px;
}

.contact-subtitle-symbol {
    margin-top: 1px;
}

.contact-subtitle-bottom {
    font-size: 32px;
}

.contact-form {
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-title-symbol1 {
    color: #333;
}

.contact-col2 {
    container: contact-col2 / inline-size;
    margin-top: 3px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    font-family: 'Noto Sans JP';
    padding: 23px 26px 23px 29px;
    border: 3px solid #005aa6;
    border-radius: 20px;
}



/* input-group */

.input-group {
    margin-right: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-right: 18px;
}

.input-group-input {
    width: 727px;
    flex-shrink: 0;
    color: rgba(153, 153, 153, 0.6);
    font-size: 28px;
    font-style: normal;
    letter-spacing: 0px;
    text-align: left;
    background-color: #e8f2f9;
    padding: 23px 28px;
    border-radius: 20px;
}

/* end input-group*/


.input-group-name {
    padding-left: 2px;
}

.input-group-name .input-group-subtitle {
    margin-top: 26px;
}

.input-group-tel {
    margin-top: 23px;
    padding-left: 1px;
}

.input-group-tel .input-group-subtitle {
    margin-top: 21px;
}

.input-group-email {
    margin-top: 17px;
    justify-content: center;
    gap: 92px;
    padding-left: 1px;
    padding-right: 1px;
}

.input-group-email .input-group-subtitle {
    margin-left: -7px;
    margin-top: 28px;
}

.contact-detail {
    container: contact-detail / inline-size;
    margin-right: 28px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: rgba(51, 51, 51, 0.75);
    font-size: 24px;
    font-weight: 500;
    padding-left: 3px;
    padding-right: 48px;
}

.contact-row-top {
    margin-top: -2px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
    padding-top: 2px;
}

.contact-text-symbol {
    text-align: left;
}

.contact-subtitle-left1 {
    margin-top: 1px;
    color: #333;
    font-weight: 700;
    text-align: left;
}

.contact-circle-light1 {
    margin-left: 131px;
    margin-top: 6px;
}

.contact-circle-light2 {
    margin-left: 54px;
    margin-top: 7px;
}

.contact-text-symbol1 {
    margin-left: 2px;
}

.contact-row-bottom {
    margin-left: 92px;
    width: 100%;
    max-width: 454px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    align-self: center;
}

.contact-circle-light-left {
    margin-top: 5px;
}

.contact-text-symbol2 {
    margin-top: -1px;
    text-align: left;
}

.input-group-message {
    margin-right: 10px;
    margin-top: 38px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-left: 3px;
    padding-right: 18px;
}

.input-group-message-input {
    margin-top: 1px;
    width: 727px;
    min-height: 110px;
    flex-shrink: 0;
    color: rgba(153, 153, 153, 0.6);
    font-size: 28px;
    font-style: normal;
    letter-spacing: 0px;
    text-align: left;
    background-color: #e8f2f9;
    padding: 2px 26px;
    border-radius: 20px;
}

.contact-privacy {
    width: 100%;
    max-width: 709px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    align-self: start;
    font-size: 24px;
}

.contact-subtitle-left2 {
    color: #333;
    text-align: left;
}

.contact-circle-light3 {
    margin-left: 60px;
    margin-top: 6px;
}

.contact-text-right {
    color: rgba(51, 51, 51, 0.75);
    font-weight: 500;
    text-align: left;
}

.contact-btn {
    margin-top: 40px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #f8f8f8;
    background-color: #005aa6;
    padding: 0 24px;
    border-radius: 20px;
}



/** breakpoints (margin / paddings) **/

@media screen and (max-width: 1280px) {
    .contact {
        padding-inline: var(--margin-md);
    }

    .contact-col1 {
        padding-inline: var(--margin-sm);
    }

    .contact-col2 {
        padding-inline: var(--margin-sm);
    }

    .input-group {
        margin-inline: 0;
    }

    .input-group-name {
        padding-inline: 0;
    }

    .input-group-tel {
        padding-inline: 0;
    }

    .contact-detail {
        padding-inline: 0;
        margin-inline: 0;
    }

    .contact-text-symbol1 {
        margin-inline: 0;
    }

    .input-group-message {
        padding-inline: 0;
        margin-inline: 0;
    }

    .input-group-message-input {
        padding-inline: var(--margin-sm);
    }

    .contact-btn {
        padding-inline: var(--margin-sm);
    }
}

@media screen and (max-width: 576px) {
    .contact {
        padding-inline: var(--margin-sm);
    }
}



/* container queries (flex rows) */

@container contact-col2 (width < 864px) {
    .input-group {
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .contact-col2>* {
        margin-left: 0;
        margin-right: 0;
    }

    .input-group>* {
        margin-top: unset !important;
        text-align: center;
    }

    .input-group>.input-group-input {
        width: 100%;
        max-width: 727px;
    }
}

@container contact-detail (width < 980px) {
    .contact-row-top {
        flex-direction: column;
        align-items: center;
        gap: 13px;
    }

    .contact-detail>* {
        margin-left: 0;
        margin-right: 0;
    }

    .contact-row-top>* {
        margin-left: unset !important;
        margin-top: unset !important;
        text-align: center;
    }
}

@container contact-col2 (width < 866px) {
    .input-group-message {
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .input-group-message>* {
        margin-top: unset !important;
        text-align: center;
    }

    .input-group-message>.input-group-message-input {
        width: 100%;
        max-width: 727px;
    }
}

/** breakpoints (margin / paddings) **/

@media screen and (max-width: 1280px) {
    .contact {
        padding-inline: var(--margin-md);
    }

    .contact-col1 {
        padding-inline: var(--margin-sm);
    }

    .contact-col2 {
        padding-inline: var(--margin-sm);
    }

    .input-group {
        margin-inline: 0;
    }

    .input-group-name {
        padding-inline: 0;
    }

    .input-group-tel {
        padding-inline: 0;
    }

    .contact-detail {
        padding-inline: 0;
        margin-inline: 0;
    }

    .contact-text-symbol1 {
        margin-inline: 0;
    }

    .input-group-message {
        padding-inline: 0;
        margin-inline: 0;
    }

    .input-group-message-input {
        padding-inline: var(--margin-sm);
    }

    .contact-btn {
        padding-inline: var(--margin-sm);
    }
}

@media screen and (max-width: 576px) {
    .contact {
        padding-inline: var(--margin-sm);
    }
}



/* container queries (flex rows) */

@container contact-col2 (width < 864px) {
    .input-group {
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .contact-col2>* {
        margin-left: 0;
        margin-right: 0;
    }

    .input-group>* {
        margin-top: unset !important;
        text-align: center;
    }

    .input-group>.input-group-input {
        width: 100%;
        max-width: 727px;
    }
}

@container contact-detail (width < 980px) {
    .contact-row-top {
        flex-direction: column;
        align-items: center;
        gap: 13px;
    }

    .contact-detail>* {
        margin-left: 0;
        margin-right: 0;
    }

    .contact-row-top>* {
        margin-left: unset !important;
        margin-top: unset !important;
        text-align: center;
    }
}

@container contact-col2 (width < 866px) {
    .input-group-message {
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .input-group-message>* {
        margin-top: unset !important;
        text-align: center;
    }

    .input-group-message>.input-group-message-input {
        width: 100%;
        max-width: 727px;
    }
}

/* Fix background image coverage */
.cover-container {
    position: relative;
    width: 100%;
    /* min-height: 360px; It makes the banner big */
    background-color: transparent;
    padding-top: 30px;
    /* padding-bottom: 40px; */
    overflow: hidden;
    /* Add this */
}

.cover-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Make sure it covers full height */
    z-index: -1;
}

.cover-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #E8EDF9 20%, #004080 100%);
    z-index: 1;
    opacity: 0.35;
    /* Changed from filter: opacity(35%) */
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Add this */
}

/* content is above the background */
.cover-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100%;
    /* padding: 0 0 40px 0; */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cover-container {
        min-height: 350px;
    }

    .cover-background {
        height: 100%;
    }
}

@media (max-width: 480px) {
    .cover-container {
        min-height: 300px;
    }
}

/* mobile */
@media (max-width: 768px) {
    .cover-container {
        min-height: 200px !important;
        /* Reduced from 350px */
        padding-top: 30px;
        /* padding-bottom: 30px; */
    }

    .cover-content {
        padding: 10px 0;
        min-height: auto;
        /* Removed min-height */
    }

    .content-container {
        transform: none !important;
        max-width: 95%;
        padding: 0 15px;
    }

    .heading {
        font-size: clamp(20px, 4.5vw, 32px) !important;
        line-height: 1.3 !important;
        margin-bottom: 10px;
    }

    .heading.large {
        font-size: clamp(20px, 4.5vw, 32px) !important;
        line-height: 1.3 !important;
        margin-bottom: 0;
    }

    .heading::before {
        width: 110%;
        height: 110%;
    }
}

@media (max-width: 564px) {
    .cover-container {
        min-height: 180px !important;
        padding-top: 25px;
        /* padding-bottom: 25px; */
    }

    .heading {
        font-size: clamp(18px, 4vw, 28px) !important;
        margin-bottom: 8px;
    }

    .heading.large {
        font-size: clamp(18px, 4vw, 28px) !important;
    }
}

@media (max-width: 480px) {
    .cover-container {
        min-height: 160px !important;
        padding-top: 20px;
        /* padding-bottom: 20px; */
    }

    .content-container {
        padding: 0 10px;
    }

    .heading {
        font-size: clamp(24px, 3.8vw, 40px) !important;
        line-height: 1.25 !important;
        margin-bottom: 6px;
    }

    .heading.large {
        font-size: clamp(24px, 3.8vw, 40px) !important;
    }
}

@media (max-width: 360px) {
    .cover-container {
        min-height: 150px !important;
        padding-top: 15px;
        /* padding-bottom: 15px; */
    }

    .heading {
        font-size: clamp(15px, 3.5vw, 24px) !important;
        margin-bottom: 5px;
    }

    .heading.large {
        font-size: clamp(15px, 3.5vw, 24px) !important;
    }
}

/* card  */
/* Cards match height of tallest card automatically */
@media (max-width: 768px) {
    .pricing-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        grid-auto-rows: 1fr;
        /* This makes all rows same height */
    }

    ol,
    ul {
        padding-left: 0px !important;
    }

    .price-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        /* Fill grid cell */
    }

    .price-features {
        flex-grow: 1;
        margin-bottom: 24px;
    }

    .plan-button {
        margin-top: auto;
    }
}

/* Line break hide functions */
/* default: no line break on PC */
.sp-only {
    display: none;
}

/* SP mode: show the line break */
@media screen and (max-width: 575px) {
    .sp-only {
        display: block;
        /* or inline */
    }
}

/* Mobile Header Fix - Add to responsive.css */

@media (max-width: 991px) {
    body {
        padding-top: 0px !important;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: relative;
        flex-direction: row;
        /* Override any column setting */
        gap: 0;
        /* Remove gap */
        position: fixed;
    }

    /* .logo {
        flex: 0 0 auto;
        margin: 0;
    } */

    /* .logo img {
        height: 40px;
        width: auto;
        max-width: 200px;
    } */

    /* Hamburger button positioning */
    .hamburger-btn {
        display: flex;
        position: relative;
        /* Changed from absolute */
        top: auto;
        right: auto;
        margin-left: auto;
        /* Push to right */
        background-color: #005AA6;
        border-radius: 5px;
        padding: 8px;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
    }

    .hamburger-btn img {
        max-width: 28px;
        max-height: 28px;
    }

    /* Hide desktop navigation */
    .nav {
        display: none !important;
    }

    .hero {
        margin-top: 65px;
        /* Adjust based on header height */
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 18px;
    }

    /* .logo img {
        height: 45px;
        max-width: 80vw;
    } */

    .hamburger-btn {
        width: 45px;
        height: 45px;
    }

    .hamburger-btn img {
        max-width: 24px;
        max-height: 24px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }

    /* .logo img {
        height: 40px;
        max-width: 70vw;
    } */

    .hamburger-btn {
        width: 40px;
        height: 40px;
    }

    .hamburger-btn img {
        max-width: 20px;
        max-height: 20px;
    }
}

/* Footer */
/* Footer Mobile (SP) Mode Only - Add to responsive.css */

/* Mobile Footer Redesign (768px and below) */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    /* Top Section: Logo + Company Info Horizontal */
    .footer-left {
        width: 100%;
    }

    .footer-logo {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .footer-logo-icon {
        width: 70px;
        height: 70px;
        /* background: #fff; */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        flex-shrink: 0;
    }

    #logo-footer {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .footer-company-info {
        flex: 1;
        gap: 8px;
    }

    .footer-management {
        font-size: 14px;
        flex-wrap: nowrap;
        /* Keep items on same line */
        gap: 12px;
        align-items: center;
        /* Fix vertical alignment */
        display: block;
        flex-direction: row;
        /* Force horizontal layout */
        text-align: center;
    }

    .footer-company-name {
        /* height: 22px; */
        flex-shrink: 0;
        /* Prevent image from shrinking */
    }

    .footer-copyright-text {
        font-size: 11px;
        margin-top: 4px;
    }

    /* Bottom Section: Service Links Horizontal */
    .footer-links {
        flex-direction: row;
        justify-content: center;
        /* Center the links */
        gap: 60px;
        padding-top: 0;
        width: 100%;
    }

    .footer-column {
        min-width: auto;
        flex: 0 0 auto;
    }

    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 16px;
        text-decoration: underline;
        text-decoration-style: dotted;
        text-underline-offset: 6px;
    }

    .footer-column ul li {
        margin-bottom: 12px;
    }

    .footer-column a {
        font-size: 13px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .footer {
        padding: 30px 16px;
    }

    .footer-content {
        gap: 35px;
    }

    .footer-logo {
        gap: 16px;
    }

    .footer-logo-icon {
        width: 60px;
        height: 60px;
        padding: 10px;
    }

    .footer-management {
        font-size: 13px;
        gap: 10px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .footer-company-name {
        /* height: 20px; */
        flex-shrink: 0;
    }

    .footer-copyright-text {
        font-size: 10px;
    }

    .footer-links {
        gap: 40px;
        justify-content: center;
        /* Keep centered */
    }

    .footer-column h3 {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .footer-column a {
        font-size: 12px;
    }

    .footer-column ul li {
        margin-bottom: 10px;
    }
}

/* Very Small Screens - Stack columns if needed */
@media (max-width: 360px) {
    .footer-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo-icon {
        width: 55px;
        height: 55px;
    }

    .footer-management {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
}

/* Scroll Icon Hover Effect */
/* Floating Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 90px;
    height: 90px;
    background-color: #fff;
    border: 3px solid #005AA6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    padding: 0;
}

/* Show button when scrolled */
.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover effect */
.scroll-to-top-btn:hover {
    background-color: none;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 90, 166, 0.3);
}

/* Change image color on hover */
.scroll-to-top-btn:hover img {
    /* filter: brightness(0) invert(1); */
}

.scroll-to-top-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.scroll-to-top-btn img {
    /* width: 35px;
    height: 35px; */
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* Tablet */
@media (max-width: 991px) {
    .scroll-to-top-btn {
        width: 65px;
        height: 65px;
        bottom: 35px;
        right: 35px;
    }

    .scroll-to-top-btn img {
        /* width: 32px;
        height: 32px; */
        width: 100%;
        height: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 30px;
        border-width: 2px;
    }

    .scroll-to-top-btn img {
        /* width: 28px;
        height: 28px; */
        width: 100%;
        height: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .scroll-to-top-btn {
        width: 55px;
        height: 55px;
        bottom: 50px;
        right: 20px;
    }

    .scroll-to-top-btn img {
        /* width: 26px;
        height: 26px; */
        width: 100%;
        height: 100%;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .scroll-to-top-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top-btn img {
        /* width: 24px;
        height: 24px; */
        width: 100%;
        height: 100%;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top-btn {
        transition: opacity 0.2s ease;
    }

    .scroll-to-top-btn:hover {
        transform: none;
    }
}

/* Footer Mobile (SP) Mode Only - Add to responsive.css */

/* Base footer transitions for smooth responsive behavior */
.footer-content,
.footer-logo,
.footer-links,
.footer-column {
    transition: all 0.3s ease;
}

/* Tablet/Medium screens - Transition layout */
@media (max-width: 991px) {
    .footer {
        padding: 40px 30px;
    }

    .footer-content {
        gap: 50px;
    }

    .footer-logo {
        gap: 25px;
    }

    .footer-logo-icon {
        width: 90px;
        height: 90px;
    }

    .footer-company-name {
        /* height: 26px; */
    }

    .footer-links {
        gap: 80px;
        flex-wrap: wrap;
    }
}

/* Mobile Footer Redesign (768px and below) */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    /* Top Section: Logo + Company Info Horizontal */
    .footer-left {
        width: 100%;
    }

    .footer-logo {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .footer-logo-icon {
        width: 70px;
        height: 70px;
        /* background: #fff; */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        flex-shrink: 0;
    }

    #logo-footer {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .footer-company-info {
        flex: 1;
        gap: 8px;
    }

    .footer-management {
        font-size: 14px;
        flex-wrap: nowrap;
        /* Keep items on same line */
        gap: 12px;
        /* align-items: center; */
        /* Fix vertical alignment */
        display: block;
        /* flex-direction: row; */
        /* Force horizontal layout */
    }

    .footer-company-name {
        /* height: 22px; */
        flex-shrink: 0;
        /* Prevent image from shrinking */
    }

    .footer-copyright-text {
        font-size: 11px;
        margin-top: 4px;
    }

    /* Bottom Section: Service Links Horizontal */
    .footer-links {
        flex-direction: row;
        justify-content: center;
        /* Center the links */
        gap: 60px;
        padding-top: 0;
        width: 100%;
    }

    .footer-column {
        min-width: auto;
        flex: 0 0 auto;
    }

    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 16px;
        text-decoration: underline;
        text-decoration-style: dotted;
        text-underline-offset: 6px;
    }

    .footer-column ul li {
        margin-bottom: 12px;
    }

    .footer-column a {
        font-size: 13px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .footer {
        padding: 30px 16px;
    }

    .footer-content {
        gap: 10px;
    }

    .footer-logo {
        gap: 16px;
    }

    .footer-logo-icon {
        width: 60px;
        height: 60px;
        padding: 10px;
    }

    .footer-management {
        font-size: 13px;
        gap: 10px;
        align-items: center;
        /* Keep alignment */
        flex-wrap: nowrap;
        /* Keep on same line */
    }

    .footer-company-name {
        /* height: 20px; */
        flex-shrink: 0;
    }

    .footer-copyright-text {
        font-size: 10px;
    }

    .footer-links {
        gap: 40px;
        justify-content: center;
        /* Keep centered */
    }

    .footer-column h3 {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .footer-column a {
        font-size: 12px;
    }

    .footer-column ul li {
        margin-bottom: 10px;
    }
}

/* Very Small Screens - Stack columns if needed */
@media (max-width: 360px) {
    .footer {
        padding: 25px 12px;
    }

    .footer-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .footer-logo-icon {
        width: 55px;
        height: 55px;
    }

    .footer-company-info {
        align-items: center;
    }

    .footer-management {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-copyright-text {
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
}

/* Add fluid transitions for all breakpoints */
@media (min-width: 769px) and (max-width: 1200px) {
    .footer-content {
        gap: clamp(40px, 5vw, 80px);
    }

    .footer-logo {
        gap: clamp(20px, 3vw, 80px);
    }

    .footer-logo-icon {
        width: clamp(80px, 10vw, 120px);
        height: clamp(80px, 10vw, 120px);
    }

    .footer-management {
        font-size: clamp(13px, 1.5vw, 16px);
        gap: clamp(10px, 2vw, 20px);
    }

    .footer-company-name {
        /* height: clamp(24px, 3vw, 32px); */
    }

    .footer-links {
        gap: clamp(60px, 8vw, 120px);
    }

    .footer-column h3 {
        font-size: clamp(14px, 1.8vw, 18px);
    }

    .footer-column a {
        font-size: clamp(12px, 1.5vw, 14px);
    }
}

.sp-br {
    display: none;
}

@media screen and (max-width: 767px) {
    .sp-br {
        display: block;
    }
}