/* ====================================
   offices.php専用スタイル
==================================== */

.offices-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}
.offices-hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}
.offices-hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    color: white;
}

/* エリアタブボタン */
.area-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.area-tab-button {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.area-tab-button:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}
.area-tab-button.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

/* 都道府県フィルタ */
.pref-filter {
    padding: 1.5rem;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.pref-filter-header {
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pref-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pref-link-button {
    padding: 0.5rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.pref-link-button:hover {
    background: #dbeafe;
    border-color: #3b82f6;
}
.pref-link-button.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    font-weight: 700;
}

/* カウンター */
.office-counter-box {
    text-align: center;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.office-counter-box span {
    font-size: 2rem;
    font-weight: bold;
    color: #1e40af;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.pagination button {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.pagination button:hover:not(:disabled) {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}
.pagination button.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CTA（弁理士事務所ナビゲーター）セクション */
.offices-cta-section {
    background: linear-gradient(135deg, var(--color-blue-50), #dbeafe);
    padding: var(--space-10);
    margin-top: var(--space-12);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-primary);
}

.offices-cta-section h2 {
    margin-bottom: var(--space-4);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-primary);
}

.offices-cta-section p {
    margin-bottom: var(--space-6);
    color: var(--color-gray-800);
    font-size: var(--text-xl);
    line-height: 1.7;
}

.offices-cta-section p strong {
    color: var(--color-primary);
    font-weight: 700;
}

.offices-cta-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

/* ボタンスタイル */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    min-height: 48px;
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: var(--space-6) var(--space-12);
    font-size: var(--text-xl);
    min-height: 56px;
}

@media (max-width: 768px) {
    .offices-hero h1 {
        font-size: 1.75rem;
    }
    .offices-hero p {
        font-size: 1rem;
    }
    .area-tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .offices-cta-section h2 {
        font-size: var(--text-3xl);
    }

    .offices-cta-section p {
        font-size: var(--text-lg);
    }

    .offices-cta-buttons {
        flex-direction: column;
    }

    .offices-cta-buttons .btn {
        width: 100%;
    }
}
