/* ==============================================
   📱 モバイルUX爆上げスタイル - 2024年最新版
   ============================================== */

/* モバイル専用の大きなタッチターゲット */
@media (max-width: 768px) {
    /* 計算ボタンを指で押しやすく */
    .primary-button, .secondary-button {
        min-height: 56px !important;
        min-width: 200px !important;
        font-size: 18px !important;
        font-weight: bold !important;
        padding: 16px 24px !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3) !important;
        transition: all 0.3s ease !important;
    }
    
    .primary-button:active {
        transform: scale(0.98) !important;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4) !important;
    }

    /* 入力フィールドを大きく、使いやすく */
    input[type="number"], input[type="date"], input[type="text"] {
        min-height: 52px !important;
        font-size: 18px !important;
        padding: 16px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 8px !important;
        background: #fff !important;
    }
    
    input:focus {
        border-color: #007bff !important;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
        outline: none !important;
    }

    /* ラジオボタンを大きなカード型に */
    .activity-level-item, .method-btn {
        min-height: 80px !important;
        padding: 16px !important;
        margin: 8px 0 !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 12px !important;
        background: #fff !important;
        transition: all 0.3s ease !important;
    }
    
    .activity-level-item:active, .method-btn:active {
        transform: scale(0.98) !important;
        background: #f0f8ff !important;
    }
    
    .activity-level-item.selected, .method-btn.active {
        border-color: #007bff !important;
        background: linear-gradient(135deg, #007bff, #0056b3) !important;
        color: white !important;
    }

    /* 結果表示を見やすく */
    .result-value {
        font-size: 3rem !important;
        font-weight: 900 !important;
        color: #007bff !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1) !important;
        margin: 20px 0 !important;
    }

    /* スクロール不要で結果が見える */
    .result-section {
        margin-top: 20px !important;
        padding: 24px !important;
        background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    }

    /* 関連ツールカードをタップしやすく */
    .tool-card, .blog-card {
        min-height: 120px !important;
        padding: 20px !important;
        margin: 12px 0 !important;
        background: white !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }
    
    .tool-card:active, .blog-card:active {
        transform: translateY(2px) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    }
    
    .tool-card.highlight {
        border-color: #ffc107 !important;
        background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    }
    
    .tool-card i {
        font-size: 2rem !important;
        color: #007bff !important;
        margin-right: 16px !important;
    }

    /* テキストを読みやすく */
    .description, p, li {
        font-size: 16px !important;
        line-height: 1.6 !important;
        color: #333 !important;
    }
    
    h2, h3, h4 {
        color: #2c3e50 !important;
        margin: 24px 0 16px 0 !important;
    }
    
    h2 {
        font-size: 28px !important;
        font-weight: 800 !important;
    }
    
    h3 {
        font-size: 22px !important;
        font-weight: 700 !important;
    }

    /* 計算機コンテナをモバイル最適化 */
    .calculator-container {
        padding: 20px !important;
        margin: 0 !important;
        background: white !important;
        border-radius: 0 !important;
    }

    /* スペーシングの最適化 */
    .form-group {
        margin-bottom: 24px !important;
    }
    
    .info-section, .related-tools {
        margin-top: 32px !important;
        padding: 24px !important;
        background: #f8f9fa !important;
        border-radius: 16px !important;
    }

    /* 成功状態の強調 */
    .recommended {
        display: inline-block !important;
        background: #ffc107 !important;
        color: #000 !important;
        padding: 4px 12px !important;
        border-radius: 20px !important;
        font-size: 12px !important;
        font-weight: bold !important;
        margin-top: 8px !important;
        animation: pulse 2s infinite !important;
    }
    
    @keyframes pulse {
        0% { opacity: 1; }
        50% { opacity: 0.7; }
        100% { opacity: 1; }
    }

    /* ヘッダーの検索をモバイル最適化 */
    .search-container input {
        font-size: 16px !important;
        padding: 12px !important;
        border-radius: 8px !important;
    }
    
    .search-container button {
        min-width: 48px !important;
        min-height: 48px !important;
    }

    /* エラー防止：ズーム無効化 */
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* より大きなモバイル画面 (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .calculator-container {
        max-width: 90% !important;
        margin: 0 auto !important;
        padding: 40px !important;
    }
    
    .tools-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* 高DPI画面での鮮明表示 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .result-value, h2, h3 {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
} 