/* Responsive Styles */

/* Desktop - Large */
@media (min-width: 1024px) {
    .nav {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
    
    /* デスクトップ用ヘッダー調整 */
    .header {
        height: 65px;  /* デスクトップでは少し高く */
    }
    
    .header-inner {
        max-width: 1200px;
        margin: 10px auto auto;
        padding: 0 30px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .nav-list {
        gap: 1.8rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
    }
    
    .nav-link-cta {
        padding: 8px 24px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding-top: calc(65px + 70px);  /* デスクトップヘッダー高さ + 余白 */
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .floating-cta-text {
        display: inline;
    }
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 768px) {
    .header {
        height: 55px;
    }
    
    .header-inner {
        padding: 0 20px;
        margin: 10px auto auto;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .mobile-nav {
        top: 55px;
        height: calc(100vh - 55px);
    }
    
    .hero {
        padding-top: calc(55px + 50px);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 3rem auto 0;
    }
    
    .plan-featured {
        transform: none;
    }
}

/* Mobile - Medium */
@media (max-width: 767px) {
    :root {
        --header-height: 50px;  /* モバイルではさらに小さく */
        --container-padding: 15px;
    }
    
    .header {
        height: 50px;
    }
    
    .header-inner {
        padding: 0 10px;
        margin: 10px auto auto;

    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .mobile-nav {
        top: 50px;
        height: calc(100vh - 50px);
    }
    
    .mobile-menu-toggle {
        width: 24px;
        height: 20px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Hero adjustments */
    .hero {
        padding-top: calc(50px + 40px);  /* モバイルヘッダー高さ + 余白 */
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Industries grid */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .industry-card {
        padding: 1.5rem 1rem;
    }
    
    /* Plans grid */
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-featured {
        transform: none;
    }
    
    /* Comparison table */
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Testimonials grid */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA section */
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Floating CTA */
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-cta-button {
        padding: 10px;
        border-radius: 50%;
    }
    
    .floating-cta-text {
        display: none;
    }
    
    .floating-cta-icon {
        width: 28px;
        height: 28px;
        margin: 0;
    }
}

/* Mobile - Small */
@media (max-width: 480px) {
    :root {
        --container-padding: 15px;
    }
    
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.125rem; }
    
    .section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    
    /* Button adjustments */
    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    /* Industries grid - single column on very small screens */
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    /* Plan cards */
    .plan-card {
        padding: 1.5rem;
    }
    
    .plan-price-amount {
        font-size: 2rem;
    }
    
    /* Base Price and Options - Mobile */
    .base-price-section {
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    
    .base-price-card {
        padding: 1.25rem;
    }
    
    .base-price-title {
        font-size: 1.1rem;
    }
    
    .base-price-item {
        font-size: 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .base-price-value {
        font-size: 1rem;
        margin-left: auto;
    }
    
    .price-zero {
        font-size: 1.25rem;
    }
    
    .options-title {
        font-size: 1.15rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .option-card {
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    
    .option-icon {
        width: 40px;
        height: 40px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .option-name {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .option-price {
        font-size: 1rem;
        margin: 0;
    }
    
    .option-description {
        font-size: 0.75rem;
    }
    
    /* Testimonial cards */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
    }
    
    /* Contact form */
    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 14px;
        font-size: 0.875rem;
    }
    
    /* CTA QR */
    .cta-qr {
        padding: 1rem;
    }
    
    .cta-qr-image {
        width: 120px;
        height: 120px;
    }
    
    /* Comparison table scroll */
    .comparison-table-wrapper {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .comparison-table {
        min-width: 500px;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .plans-grid,
    .features-grid,
    .testimonials-grid {
        gap: 1.5rem;
    }
    
    .mobile-nav {
        width: 90%;
    }
}

/* Print styles */
@media print {
    .header,
    .floating-cta,
    .mobile-menu-toggle,
    .mobile-nav,
    .cta-section,
    .contact {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #1a4d8f;
        --color-accent: #c51e1e;
        --shadow-md: 0 0 0 2px currentColor;
        --shadow-lg: 0 0 0 3px currentColor;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* You can add dark mode styles here if needed */
}