/* ================================================
   06-responsive.css - Responsive Media Queries
   休眠特許マッチング - yasutake.net
   トップページ専用
   ================================================ */

/* ===== TABLET (768px以上) ===== */
@media (min-width: 768px) {
    /* Variables Override */
    :root {
        --header-height: 5rem;  /* 80px (PC) */
    }

    /* Header */
    .top-logo-img {
        height: 3rem;  /* 48px */
    }

    .modern-search-container {
        height: 64px;
    }

    .modern-search-input {
        font-size: 1.125rem;  /* 18px */
    }

    .modern-search-btn {
        padding: 0 40px;
        font-size: 1rem;  /* 16px */
    }

    /* Desktop Navigation */
    .top-desktop-nav {
        display: flex;
    }

    .top-mobile-menu-btn {
        display: none;
    }

    .top-mobile-menu {
        display: none !important;
    }

    /* Hero Section */
    .top-hero-container {
        padding-top: var(--space-10);
        padding-bottom: var(--space-20);
    }

    .top-hero-title {
        font-size: var(--text-4xl);
    }

    .top-hero-subtitle {
        font-size: var(--text-xl);
    }

    /* Floating Cards */
    .top-floating-card-label {
        font-size: 10px;
    }

    .top-floating-card-value {
        font-size: var(--text-base);
    }

    .top-floating-card-body {
        font-size: 11px;
    }

    .top-floating-card-comparison-text {
        font-size: 10px;
    }

    .top-floating-card-comparison-text-primary {
        font-size: 11px;
    }

    /* Features Section */
    .top-features {
        padding-top: var(--space-16);
        padding-bottom: var(--space-24);
    }

    .top-features-title {
        font-size: var(--text-4xl);
        margin-bottom: var(--space-16);
    }

    .top-features-list {
        gap: var(--space-16);
    }

    .top-feature-item {
        gap: var(--space-8);
    }

    .top-feature-label {
        font-size: var(--text-sm);
    }

    .top-feature-title {
        font-size: var(--text-2xl);
    }

    .top-feature-description {
        font-size: var(--text-lg);
        -webkit-line-clamp: unset;
    }

    /* Search Section */
    .top-search-section {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }

    .top-search-header {
        margin-bottom: var(--space-12);
    }

    .top-search-title {
        font-size: var(--text-4xl);
    }

    .top-search-subtitle {
        font-size: var(--text-lg);
    }

    .top-search-form {
        margin-bottom: var(--space-16);
    }

    /* Benefits Grid */
    .top-benefits-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-12);
    }

    .top-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-8);
    }

    /* Card Components */
    .top-card {
        padding: var(--space-8);
    }

    .top-card-icon {
        font-size: var(--text-5xl);
    }

    .top-card-title {
        font-size: var(--text-xl);
    }

    .top-card-list {
        font-size: var(--text-base);
    }

    /* AI Section */
    .top-ai-section {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }

    .top-ai-header {
        margin-bottom: var(--space-12);
    }

    .top-ai-title {
        font-size: var(--text-4xl);
    }

    .top-ai-subtitle {
        font-size: var(--text-lg);
    }

    /* Patent Cards */
    .top-patent-cards-title {
        font-size: var(--text-2xl);
    }

    .top-patent-cards-link {
        font-size: var(--text-base);
    }

    /* Section Container */
    .top-section-container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

/* ===== DESKTOP (1024px以上) ===== */
@media (min-width: 1024px) {
    /* Hero Section - 2 Column Layout */
    .top-hero-container {
        padding-top: var(--space-12);
        padding-bottom: var(--space-24);
    }

    .top-hero-content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-12);
        align-items: center;
    }

    .top-hero-text {
        gap: var(--space-8);
        order: 1;
    }

    .top-hero-title {
        font-size: var(--text-5xl);
    }

    .top-hero-cta {
        display: flex;
        flex-direction: row;
        gap: var(--space-4);
    }

    .top-hero-cta-mobile {
        display: none;
    }

    .top-hero-image-container {
        order: 2;
    }

    /* Floating Cards - Absolute Positioning */
    .top-hero-floating-cards {
        display: contents;
    }

    .top-floating-card:first-child {
        position: absolute;
        bottom: 0.75rem;
        left: 0.75rem;
        width: 10rem;
        flex: none;
        margin-top: 0;
    }

    .top-floating-card:last-child {
        position: absolute;
        bottom: 0.75rem;
        right: 0.75rem;
        width: 11rem;
        flex: none;
        margin-top: 0;
    }

    .top-floating-card-label {
        font-size: 10px;
    }

    .top-floating-card-value {
        font-size: var(--text-sm);
    }

    .top-floating-card-body {
        font-size: 11px;
        line-height: 1.625;
    }

    .top-floating-card-icon {
        font-size: var(--text-lg);
    }

    .top-floating-card-header {
        gap: var(--space-2);
        margin-bottom: var(--space-2);
    }

    .top-floating-card-comparison {
        gap: var(--space-2);
        padding: var(--space-2);
    }

    .top-floating-card-comparison-item {
        gap: var(--space-1);
    }

    .top-floating-card-comparison-icon {
        font-size: var(--text-sm);
    }

    /* Features - Z Layout */
    .top-features-list {
        gap: var(--space-24);
    }

    .top-feature-item {
        gap: var(--space-12);
        align-items: center;
    }

    .top-feature-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    .top-feature-image-wrapper {
        width: 50%;
        height: auto;
    }

    .top-feature-image-inner {
        height: 20rem;  /* 320px */
        border-radius: var(--radius-2xl);
    }

    .top-feature-text {
        width: 50%;
        gap: var(--space-4);
    }

    .top-feature-title {
        font-size: var(--text-3xl);
    }

    /* Search Section */
    .top-search-section {
        padding-top: var(--space-20);
        padding-bottom: var(--space-20);
    }

    .top-search-subtitle {
        font-size: var(--text-xl);
    }

    /* Benefits Grid */
    .top-benefits-title {
        font-size: var(--text-4xl);
    }

    .top-benefits-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* AI Section */
    .top-ai-section {
        padding-top: var(--space-20);
        padding-bottom: var(--space-20);
    }

    .top-ai-subtitle {
        font-size: var(--text-xl);
    }

    /* Section Container */
    .top-section-container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

/* ===== EXTRA SMALL MOBILE (360px未満) ===== */
@media (max-width: 359px) {
    .top-hero-title {
        font-size: var(--text-2xl);
    }
}

/* ===== UTILITY RESPONSIVE CLASSES ===== */
@media (max-width: 767px) {
    .top-hidden-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .top-hidden-desktop {
        display: none !important;
    }
}

/* ===== TABLET & DESKTOP (768px+) - FORM STYLES ===== */
@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
    }

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

    .expert-layout-modern {
        grid-template-columns: 1fr 1fr;
    }

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

/* ===== DESKTOP (1024px+) - FORM STYLES ===== */
@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== OWNER BENEFITS RESPONSIVE ===== */
@media (min-width: 768px) {
    .owner-benefits-title {
        font-size: var(--text-3xl);
    }

    .owner-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }

    .owner-card-title {
        font-size: var(--text-xl);
    }
}

@media (min-width: 1024px) {
    .owner-benefits-title {
        font-size: var(--text-4xl);
        margin-bottom: var(--space-12);
    }

    .owner-benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
