/**
 * Responsive Stylesheet
 * レスポンシブ対応（メディアクエリ）
 * 
 * @package DRONE-DX
 */

/* ========================================
   デスクトップ大画面（1400px以上）
======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1,
    .page-hero h1 {
        font-size: 3.5rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
}

/* ========================================
   タブレット横向き（1024px以下）
======================================== */
@media (max-width: 1024px) {
    /* タイポグラフィ */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
    
    /* ヒーロー */
    .hero {
        padding: 100px 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    /* ページヒーロー */
    .page-hero {
        padding: 60px 30px;
    }
    
    .page-hero h1 {
        font-size: 2.25rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    /* グリッド */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* セクション */
    .section {
        padding: 60px 30px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* ステップ */
    .step-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .step-box {
        padding: 40px 30px;
    }
    
    /* 証言ボックス */
    .testimonial-box {
        padding: 40px 30px;
    }
    
    /* フィロソフィー */
    .philosophy-box {
        padding: 50px 40px;
    }
    
    .philosophy-title {
        font-size: 2.5rem;
    }
}

/* ========================================
   タブレット縦向き（768px以下）
======================================== */
@media (max-width: 768px) {
    /* コンテナ */
    .container {
        padding: 0 20px;
    }
    
    /* タイポグラフィ */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    /* ヒーロー */
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        /*flex-direction: column;*/
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* ページヒーロー */
    .page-hero {
        padding: 50px 20px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 0.9375rem;
    }
    
    /* セクション */
    .section {
        padding: 50px 20px;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* グリッド */
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-auto {
        grid-template-columns: 1fr;
    }
    
    /* カード */
    .service-card,
    .card {
        padding: 30px 20px;
    }
    
    .card-icon,
    .service-card .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    /* 導入効果 */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 30px 20px;
    }
    
    .benefit-number {
        font-size: 2.75rem;
    }
    
    /* ステップ */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .step-item {
        padding-left: 70px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* 納品物 */
    .deliverables-grid {
        grid-template-columns: 1fr;
    }
    
    .deliverable-card {
        padding: 30px 20px;
    }
    
    /* 2ステップ */
    .step-container {
        grid-template-columns: 1fr;
    }
    
    .step-box {
        padding: 35px 25px;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .step-box h3 {
        font-size: 1.5rem;
    }
    
    .step-subtitle {
        font-size: 1rem;
    }
    
    .feature-grid {
        gap: 15px;
    }
    
    .benefits-highlight {
        grid-template-columns: 1fr;
    }
    
    /* 統合サービス */
    .integration-box {
        padding: 35px 25px;
    }
    
    .integration-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .integration-item {
        padding: 25px 20px;
    }
    
    .highlight-text {
        font-size: 1.125rem;
        padding: 20px;
    }
    
    /* 通知バナー */
    .notice-banner {
        padding: 30px 20px;
        margin: 40px auto;
    }
    
    .notice-banner h3 {
        font-size: 1.375rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .notice-banner p {
        font-size: 0.9375rem;
    }
    
    /* フィロソフィー */
    .philosophy-box {
        padding: 40px 25px;
    }
    
    .philosophy-title {
        font-size: 2rem;
    }
    
    .philosophy-subtitle {
        font-size: 1.125rem;
    }
    
    .philosophy-description {
        font-size: 1rem;
    }
    
    /* 証言 */
    .testimonial-box {
        padding: 30px 20px;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-photo {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .testimonial-quote {
        font-size: 1rem;
        padding: 20px;
    }
    
    /* 講師 */
    .instructors-grid {
        grid-template-columns: 1fr;
    }
    
    .instructor-photo {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    /* CTA */
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.875rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* キャンペーンバナー */
    .campaign-banner {
        padding: 40px 20px;
        margin-top: 40px;
    }
    
    .campaign-banner h3 {
        font-size: 1.5rem;
    }
    
    .campaign-banner p {
        font-size: 1rem;
    }
    
    /* 安全管理 */
    .safety-section {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .safety-section h3 {
        font-size: 1.375rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .safety-list {
        grid-template-columns: 1fr;
    }
    
    /* ボタン */
    .btn {
        padding: 14px 30px;
        font-size: 0.9375rem;
    }
    
    /* バッジ */
    .badge {
        font-size: 0.8125rem;
        padding: 6px 16px;
    }
}

/* ========================================
   スマートフォン（480px以下）
======================================== */
@media (max-width: 480px) {
    /* タイポグラフィ */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    /* ヒーロー */
    .hero {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.9375rem;
    }
    
    /* ページヒーロー */
    .page-hero {
        padding: 40px 15px;
    }
    
    .page-hero h1 {
        font-size: 1.75rem;
    }
    
    .page-hero p {
        font-size: 0.875rem;
    }
    
    .page-hero .tag {
        font-size: 0.8125rem;
        padding: 6px 15px;
    }
    
    /* セクション */
    .section {
        padding: 40px 15px;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 0.9375rem;
    }
    
    /* カード */
    .service-card,
    .card,
    .benefit-card,
    .deliverable-card {
        padding: 25px 15px;
    }
    
    .card-title,
    .service-card h3 {
        font-size: 1.125rem;
    }
    
    .card-text,
    .service-card p {
        font-size: 0.875rem;
    }
    
    /* 導入効果 */
    .benefit-number {
        font-size: 2.5rem;
    }
    
    .benefit-title {
        font-size: 1rem;
    }
    
    /* ステップ */
    .step-item {
        padding-left: 60px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .step-item h3 {
        font-size: 1.125rem;
    }
    
    .step-item p {
        font-size: 0.875rem;
    }
    
    /* 2ステップボックス */
    .step-box {
        padding: 25px 15px;
    }
    
    .step-box h3 {
        font-size: 1.25rem;
    }
    
    .step-subtitle {
        font-size: 0.9375rem;
    }
    
    .feature-content h4 {
        font-size: 1rem;
    }
    
    .feature-content p {
        font-size: 0.875rem;
    }
    
    /* 統合サービス */
    .integration-box {
        padding: 25px 15px;
    }
    
    .integration-item {
        padding: 20px 15px;
    }
    
    .integration-item h4 {
        font-size: 1.125rem;
    }
    
    .integration-item p {
        font-size: 0.875rem;
    }
    
    .highlight-text {
        font-size: 1rem;
        padding: 15px;
    }
    
    /* 通知バナー */
    .notice-banner {
        padding: 25px 15px;
    }
    
    .notice-banner h3 {
        font-size: 1.25rem;
    }
    
    .notice-banner p {
        font-size: 0.875rem;
    }
    
    /* フィロソフィー */
    .philosophy-box {
        padding: 30px 20px;
    }
    
    .philosophy-title {
        font-size: 1.75rem;
    }
    
    .philosophy-subtitle {
        font-size: 1rem;
    }
    
    .philosophy-description {
        font-size: 0.9375rem;
    }
    
    /* 証言 */
    .testimonial-box {
        padding: 25px 15px;
    }
    
    .testimonial-photo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .testimonial-info h4 {
        font-size: 1.125rem;
    }
    
    .testimonial-quote {
        font-size: 0.9375rem;
        padding: 15px;
    }
    
    /* 講師 */
    .instructor-card {
        padding: 25px 15px;
    }
    
    .instructor-photo {
        width: 90px;
        height: 90px;
        font-size: 2.25rem;
    }
    
    .instructor-card h3 {
        font-size: 1.125rem;
    }
    
    /* CTA */
    .cta-section {
        padding: 50px 15px;
    }
    
    .cta-section h2 {
        font-size: 1.625rem;
    }
    
    .cta-section p {
        font-size: 0.9375rem;
    }
    
    /* キャンペーンバナー */
    .campaign-banner {
        padding: 30px 15px;
    }
    
    .campaign-banner h3 {
        font-size: 1.375rem;
    }
    
    .campaign-banner p {
        font-size: 0.9375rem;
    }
    
    /* 安全管理 */
    .safety-section {
        padding: 25px 15px;
    }
    
    .safety-section h3 {
        font-size: 1.25rem;
    }
    
    .safety-item p {
        font-size: 0.875rem;
    }
    
    /* ボタン */
    .btn {
        padding: 12px 25px;
        font-size: 0.875rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-white {
        width: 100%;
        max-width: 280px;
    }
}

/* ========================================
   極小画面（360px以下）
======================================== */
@media (max-width: 360px) {
    /* 基本フォントサイズを調整 */
    html {
        font-size: 15px;
    }
    
    .hero h1,
    .page-hero h1 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.375rem;
    }
    
    .benefit-number {
        font-size: 2.25rem;
    }
    
    .philosophy-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   印刷用スタイル
======================================== */
@media print {
    /* ヘッダー・フッター・ナビゲーションを非表示 */
    .site-header,
    .site-footer,
    .mobile-nav,
    .mobile-nav-overlay,
    .hamburger,
    .cta-section,
    .cta-buttons,
    .back-to-top {
        display: none !important;
    }
    
    /* 余白調整 */
    body {
        margin: 0;
        padding: 0;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    /* 背景色を削除 */
    .hero,
    .page-hero,
    .bg-primary,
    .bg-green,
    .bg-purple {
        background: none !important;
        color: #000 !important;
    }
    
    /* リンクの色 */
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    /* 改ページ */
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* ========================================
   横向き（ランドスケープ）対応
======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero,
    .page-hero {
        padding: 40px 20px;
    }
    
    .hero h1,
    .page-hero h1 {
        font-size: 1.75rem;
    }
}

/* ========================================
   高解像度ディスプレイ対応
======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Retina対応の画像最適化など */
    .site-logo img,
    .custom-logo-link img {
        image-rendering: -webkit-optimize-contrast;
    }
}