/* ===================================
   レスポンシブデザイン - タブレット対応
   ================================ */
@media screen and (max-width: 1024px) {
    :root {
        /* タブレット用のスライダー設定 */
        --hero-logo-width: 16rem;
        --hero-subtitle-size: 1.25rem;
    }

    .container {
        max-width: 900px;
        padding: 0 30px;
    }

    .nav-list {
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   レスポンシブデザイン - モバイル対応
   ================================ */
@media screen and (max-width: 768px) {
    :root {
        /* モバイル用のスライダー設定 */
        --slider-height: 70vh;
        --slider-min-height: 500px;
        --hero-logo-width: 12rem;
        --hero-subtitle-size: 1.1rem;
        --dot-bottom-position: 2rem;
    }

    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    /* ヘッダー - モバイル */
    .header-inner {
        padding: 0.75rem 0;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 4rem 2rem;
    }
    
    .mobile-menu-open .nav {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 5px);
    }
    
    .mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* オーバーレイ */
    .mobile-menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    /* ヒーローセクション - モバイル */
    .hero {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-width: 200px;
    }
    
    /* サービスセクション - モバイル */
    .services {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    /* 新着情報セクション - モバイル */
    .news {
        padding: 3rem 0;
    }
    
    .news-item {
        padding: 1.5rem;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-description {
        font-size: 0.875rem;
    }
    
    /* 施工事例セクション - モバイル */
    .case-studies {
        padding: 3rem 0;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .case-image {
        height: 150px;
        font-size: 2.5rem;
    }
    
    .case-content {
        padding: 1.25rem;
    }
    
    .case-title {
        font-size: 1.1rem;
    }
    
    .case-description {
        font-size: 0.875rem;
    }
    
    /* クーリングオフセクション - モバイル */
    .cooling-off {
        padding: 2.5rem 0;
    }
    
    .cooling-off-title {
        font-size: 1.5rem;
    }
    
    .cooling-off-description {
        font-size: 1rem;
    }
    
    /* 特徴セクション - モバイル */
    .features {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .feature-number {
        font-size: 2.5rem;
    }
    
    /* お問い合わせセクション - モバイル */
    .contact {
        padding: 3rem 0;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .phone-number {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* フッター - モバイル */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.25rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.875rem;
    }
}

/* 小さなモバイルデバイス対応 */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-inner {
        padding: 0.5rem 0;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.25rem;
    }
    
    .phone-number {
        font-size: 1.25rem;
    }
}

/* 大きなデスクトップスクリーン対応 */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

/* 横向きモバイル対応 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* プリント用スタイル */
@media print {
    .header,
    .contact,
    .footer,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .hero {
        height: auto !important;
        min-height: auto !important;
        background: none !important;
        color: black !important;
    }
    
    .service-card,
    .contact-info,
    .contact-form {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}