/* ========== BCHA Lab レスポンシブデザイン ========== */

/* タブレット横向き以下 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .research-visual {
        margin-top: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    .app-features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        margin-top: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 2rem;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* タブレット縦向き以下 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .notification-bubble {
        right: -20px;
        transform: scale(0.8);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-actions {
        margin-top: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .research-visual {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-actions {
        flex-wrap: wrap;
    }
    
    .btn-sm {
        flex: 1;
        min-width: 120px;
    }
}

/* モバイル */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-title .title-line {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .download-box {
        padding: 2rem 1.5rem;
    }
    
    .screenshot-item img {
        max-width: 90%;
    }
    
    /* ナビゲーション調整 */
    .nav-brand {
        font-size: 1.125rem;
    }
    
    .nav-logo {
        height: 35px;
    }
    
    /* フォーム調整 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* iOSのズーム防止 */
    }
}

/* 小型モバイル */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
}

/* プリント用スタイル */
@media print {
    .navbar,
    .hero-bg,
    .cookie-banner,
    .download-actions,
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid black;
        padding: 5px 10px;
    }
}