/* =====================================================
   法ログ (ho-log.com) - Main Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
    /* Primary - Orange accent color #f97317 */
    --primary: #f97317;
    --primary-light: #fb923c;
    --primary-dark: #ea580c;
    --primary-foreground: #ffffff;

    /* Secondary - Navy Blue */
    --secondary: #1e3a5f;
    --secondary-foreground: #ffffff;

    /* Accent - Gold */
    --accent: #eab308;
    --accent-foreground: #1a1a1a;

    /* Background and Surface */
    --background: #faf9f7;
    --foreground: #1f2937;

    /* Card */
    --card: #ffffff;
    --card-foreground: #1f2937;

    /* Muted */
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;

    /* Border */
    --border: #e5e7eb;

    /* Success / Warning / Destructive */
    --success: #22c55e;
    --warning: #f59e0b;
    --destructive: #ef4444;
    --info: #3b82f6;

    /* Badges */
    --badge-lawyer: #1e3a5f;
    --badge-scrivener: #16a34a;
    --badge-office: #7c3aed;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Radius */
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.25s ease-out;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* =====================================================
   Header
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.header.header-colored {
    position: sticky;
    top: 0;
    background: #0f172a;
    backdrop-filter: none;
    width: 100%;
    z-index: 1000;
}

.header .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.header .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.header .btn-ghost {
    color: rgba(255, 255, 255, 0.8);
}

.header .btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-img-sm {
    height: 32px;
    width: auto;
}

.nav-desktop {
    display: none;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--foreground);
    background: var(--muted);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(249, 115, 23, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-actions .btn-ghost,
.header-actions .btn-primary {
    display: none;
}

@media (min-width: 640px) {

    .header-actions .btn-ghost,
    .header-actions .btn-primary {
        display: flex;
    }
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 100%;
    background: var(--card);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.mobile-nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--foreground);
    background: var(--muted);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: #162d4d;
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--muted);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--foreground);
    background: var(--muted);
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* =====================================================
   Cards
   ===================================================== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-hover:hover {
    transform: translateY(-2px);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.card-content {
    padding: 1.5rem;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}



/* =====================================================
   Badges
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background: var(--muted);
    color: var(--muted-foreground);
}

.badge-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.badge-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.badge-lawyer {
    background: var(--badge-lawyer);
    color: white;
}

.badge-scrivener {
    background: var(--badge-scrivener);
    color: white;
}

.badge-office {
    background: var(--badge-office);
    color: white;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.7), rgba(30, 58, 95, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 0;
}

.hero-text {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    margin-top: 2.5rem;
    max-width: 900px;
}

.search-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .search-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.search-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.search-select {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
}

.search-input::placeholder {
    color: var(--muted-foreground);
    opacity: 0.7;
}

.search-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 23, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 23, 0.1);
}

.search-btn {
    height: 44px;
    margin-top: auto;
}

.search-quick {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.search-quick-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.search-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-quick-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.search-quick-link:hover {
    color: var(--foreground);
    background: var(--muted);
}

/* Scroll Indicator */
.scroll-indicator {
    padding-bottom: 2rem;
    text-align: center;
}

.scroll-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.scroll-btn:hover {
    color: white;
}

.scroll-text {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.scroll-icon {
    width: 32px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.5rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

.scroll-icon i {
    animation: bounce 1.5s infinite;
}

/* =====================================================
   Trust Indicators
   ===================================================== */
.trust-bar {
    padding: 2rem 0;
    background: var(--muted);
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .trust-grid {
        gap: 4rem;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(249, 115, 23, 0.1);
    border-radius: 9999px;
    color: var(--primary);
}

.trust-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.trust-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* =====================================================
   Sections
   ===================================================== */
.section {
    padding: 4rem 0;
}

.section-muted {
    background: var(--muted);
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

.section-dark .section-title,
.section-primary .section-title {
    color: white;
}

.section-subtitle {
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.section-primary .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* =====================================================
   Grid Layouts
   ===================================================== */
.grid {
    display: grid;
    gap: 1.25rem;
}

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

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (min-width: 640px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =====================================================
   Area Cards
   ===================================================== */
.area-card {
    display: block;
}

.area-card .card-image {
    height: 160px;
}

.area-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.area-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.area-card-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.area-card-desc {
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Practice Area Cards */
.practice-card .card-image {
    height: 128px;
}

.practice-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

@media (min-width: 640px) {
    .practice-card-title {
        font-size: 1rem;
    }
}

.practice-card-desc {
    padding: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Region List */
.region-list {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .region-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .region-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .region-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

.region-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.region-links {
    list-style: none;
}

.region-links li {
    margin-bottom: 0.5rem;
}

.region-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color var(--transition-fast);
}

.region-link:hover {
    color: var(--primary);
}

.region-count {
    font-size: 0.75rem;
}

/* =====================================================
   Office/Professional Cards
   ===================================================== */
.pro-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pro-card .card-image {
    height: 160px;
}

.pro-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
}

.pro-card-content {
    padding: 1rem;
    flex: 1;
}

.pro-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pro-card-title:hover {
    color: var(--primary);
}

.pro-card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.pro-card-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.pro-card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pro-card-meta {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    padding: 0.5rem;
    background: var(--muted);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.pro-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.pro-card-actions .btn {
    flex: 1;
}

/* Star Rating */
.star-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.stars {
    display: flex;
    gap: 2px;
    color: var(--accent);
}

.star-empty {
    color: #d1d5db;
}

.rating-score {
    font-weight: 600;
    color: var(--foreground);
}

.rating-count {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* =====================================================
   How it Works
   ===================================================== */
.steps-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.step-card .card-image {
    height: 160px;
}

.step-card .card-image img {
    opacity: 0.8;
}

.step-content {
    padding: 1.25rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.step-number {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.step-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* =====================================================
   Trust Section
   ===================================================== */
.trust-section .card {
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-lg);
}

.trust-section-grid {
    display: grid;
}

@media (min-width: 768px) {
    .trust-section-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.trust-section-content {
    padding: 2rem;
}

@media (min-width: 768px) {
    .trust-section-content {
        padding: 3rem;
    }
}

.trust-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .trust-section-title {
        font-size: 1.875rem;
    }
}

.trust-list {
    list-style: none;
}

.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.trust-list li i {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.trust-list li span {
    color: var(--muted-foreground);
}

.trust-section-image {
    display: none;
}

@media (min-width: 768px) {
    .trust-section-image {
        display: block;
    }
}

.trust-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    text-align: center;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 1.875rem;
    }
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

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

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--muted);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo-img {
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.footer-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--foreground);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-updated {
    font-size: 0.75rem;
}

/* =====================================================
   Utility Classes
   ===================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-muted {
    color: var(--muted-foreground);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--destructive);
}

.bg-primary {
    background: var(--primary);
}

.bg-secondary {
    background: var(--secondary);
}

.bg-muted {
    background: var(--muted);
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.hidden {
    display: none;
}

@media (min-width: 640px) {
    .sm\:flex {
        display: flex;
    }

    .sm\:hidden {
        display: none;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }

    .lg\:hidden {
        display: none;
    }
}

/* =====================================================
   Page Specific: Search Page
   ===================================================== */
.page-header {
    background: var(--muted);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.search-input-wrapper {
    position: relative;
    max-width: 400px;
    margin-top: 1rem;
}

.search-input {
    width: 100%;
    height: 44px;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

.search-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 0;
}

@media (min-width: 1024px) {
    .search-layout {
        flex-direction: row;
    }
}

.search-sidebar {
    display: none;
    width: 100%;
    flex-shrink: 0;
}

.search-sidebar.is-open {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@media (min-width: 1024px) {
    .search-sidebar {
        display: block !important;
        width: 256px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-sidebar .card {
    position: static;
    /* top: 80px; */
}

.search-results {
    flex: 1;
    min-width: 0;
}

.search-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.results-count strong {
    color: var(--foreground);
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--muted);
    border-radius: 9999px;
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

.empty-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.empty-desc {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   Page Specific: About Page
   ===================================================== */
.about-hero {
    background: var(--primary);
    color: white;
    padding: 4rem 0;
}

.about-hero h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .about-hero h1 {
        font-size: 2.25rem;
    }
}

.about-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    line-height: 1.7;
}

.about-layout {
    display: grid;
    gap: 2rem;
    padding: 3rem 0;
    grid-template-columns: 100%;
}

@media (min-width: 1024px) {
    .about-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.about-section {
    margin-bottom: 3rem;
}

.about-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.about-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(249, 115, 23, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
}

.about-list {
    list-style: none;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.about-list li i {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.about-list li span {
    color: var(--muted-foreground);
}

.rating-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .rating-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rating-item {
    padding: 1rem;
    background: var(--muted);
    border-radius: var(--radius);
}

.rating-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.rating-item-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius);
}

.warning-box i {
    color: var(--warning);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.warning-box-content {
    font-size: 0.875rem;
    color: var(--warning);
}

.warning-box-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Sidebar Nav */

.sidebar-nav-list {
    list-style: none;
}

.sidebar-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.sidebar-nav-link:hover {
    color: var(--foreground);
    background: var(--muted);
}

.sidebar-info {
    margin-top: 1.5rem;
}

.sidebar-info-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.sidebar-cta {
    margin-top: 1.5rem;
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.sidebar-cta i {
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.sidebar-cta h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.sidebar-cta .btn {
    width: 100%;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Stagger delays */
.stagger-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.stagger-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.stagger-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.stagger-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* Custom Grid for Practice Areas */
.practice-area-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .practice-area-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .practice-area-grid {
        grid-template-columns: 1fr;
    }
}

/* Fee Stats Scrollable Area */
.fee-stats-scroll {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

.fee-stats-scroll::-webkit-scrollbar {
    width: 6px;
}

.fee-stats-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.fee-stats-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 20px;
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .scroll-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

.simulator-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.banner-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.banner-desc {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.banner-btn {
    background: white;
    color: #3b82f6;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Fixed banner for both mobile and desktop */
.mobile-banner {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    z-index: 9999;
    padding: 12px 16px;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    /* Wider constraint for desktop */
    margin: 0 auto;
    width: 100%;
}

.mobile-banner-text {
    display: flex;
    flex-direction: column;
}

.mobile-banner-title {
    font-weight: 700;
    font-size: 16px;
    /* Slightly larger base */
}

.mobile-banner-sub {
    font-size: 13px;
    opacity: 0.9;
}

.mobile-banner-btn {
    background: white;
    color: #2563eb;
    border: none;
    padding: 10px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s;
}

.mobile-banner-btn:hover {
    background-color: #f1f5f9;
}

/* Hide the inline desktop banner since we use the fixed one now */
.desktop-banner {
    display: none;
}

@media (max-width: 768px) {
    .mobile-banner-content {
        max-width: 600px;
    }

    .mobile-banner-title {
        font-size: 14px;
    }

    .mobile-banner-sub {
        font-size: 11px;
    }

    .mobile-banner-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}