/**
 * NEXTLIFE.JP - Global Stylesheet
 * ブランドカラー、コンポーネント、グローバルスタイル
 */

/* ===== CSS Variables ===== */

:root {
    --primary-color: #6f42c1;
    --secondary-color: #e83e8c;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #1a1a1a;
    --border-color: #dee2e6;
    --text-color: #333333;
    --text-muted: #6c757d;
    
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
}

/* ===== Typography ===== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* ===== Buttons ===== */

.btn {
    border-radius: var(--border-radius);
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #5a2d99;
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #c71b6f;
    box-shadow: var(--box-shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
}

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

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* ===== Cards ===== */

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

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

/* ===== Forms ===== */

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.65rem 0.8rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ===== Alerts ===== */

.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ===== Navigation ===== */

.navbar {
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    color: white !important;
}

/* ===== Hero Section ===== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
}

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

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Tables ===== */

.table {
    border-collapse: collapse;
}

.table thead {
    background-color: var(--light-color);
    border-bottom: 2px solid var(--border-color);
}

.table th {
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--light-color);
}

/* ===== Pagination ===== */

.pagination {
    margin-top: 2rem;
    display: flex;
    gap: 0.5rem;
}

.page-link {
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Loading Spinner ===== */

.spinner-container {
    text-align: center;
    padding: 3rem;
}

.spinner-border {
    color: var(--primary-color);
}

/* ===== Footer ===== */

footer {
    margin-top: 5rem;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

footer h5 {
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

footer a:hover {
    color: white;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== Utilities ===== */

.bg-light-gray {
    background-color: var(--light-color);
}

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

.border-top {
    border-top: 1px solid var(--border-color);
}

.border-bottom {
    border-bottom: 1px solid var(--border-color);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

.shadow-custom {
    box-shadow: var(--box-shadow);
}

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

/* ===== Scrollbar ===== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== Print Styles ===== */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
