:root {
    --h5-primary: #2563eb;
    --h5-primary-soft: #dbeafe;
    --h5-brand: #2f6778;
    --h5-brand-soft: #dcebef;
    --h5-brand-border: rgba(47, 103, 120, 0.18);
    --h5-brand-muted: #7a919a;
    --h5-text: #0f172a;
    --h5-text-muted: #64748b;
    --h5-bg: #f8fafc;
    --h5-card: #ffffff;
    --h5-border: #e2e8f0;
    --h5-success: #10b981;
    --h5-danger: #ef4444;
    --h5-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #eef4ff 0%, var(--h5-bg) 220px);
    color: var(--h5-text);
    font-family: "Inter", "Noto Sans SC", "Noto Sans JP", "Microsoft YaHei", sans-serif;
}


a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

input, select, textarea {
    font-family: inherit;
    outline: none;
}

/* --- Layout --- */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--bg-color);
    position: relative;
    padding-bottom: calc(var(--nav-height) + 20px);
    overflow-x: hidden;
}

.content-grid {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-padding {
    padding: 20px;
}

.pt-0 {
    padding-top: 0;
}

/* --- Components --- */

/* Buttons */
.btn-primary-design, .btn-premium-primary {
    background-color: var(--brand-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    width: 100%;
    text-align: center;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-primary-design:active, .btn-premium-primary:active {
        background-color: var(--brand-hover);
    }

    .btn-primary-design:disabled, .btn-premium-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-secondary-design {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    width: 100%;
    text-align: center;
}

    .btn-secondary-design:active {
        background-color: #F1F5F9;
    }

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Forms */
.premium-form-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.premium-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.premium-input-group {
    margin-bottom: 20px;
}

.premium-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required {
    color: var(--error);
    margin-right: 2px;
}

.premium-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s;
    background: #F8FAFC;
}

    .premium-input:focus {
        background: white;
        border-color: var(--brand-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

/* Radio Group */
.premium-radio-group {
    display: flex;
    gap: 12px;
}

.premium-radio-option {
    flex: 1;
    cursor: pointer;
}

    .premium-radio-option input {
        display: none;
    }

.premium-radio-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.premium-radio-option input:checked + .premium-radio-tile {
    border-color: var(--brand-color);
    background: #EFF6FF;
    color: var(--brand-color);
    font-weight: 600;
}

/* --- Navigation --- */
.top-bar {
    height: var(--header-height);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--nav-height);
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: #94a3b8;
    gap: 4px;
}

    .nav-item.active {
        color: #3b82f6;
    }

/* --- H5 Date Picker --- */
.layui-laydate {
    border: 1px solid rgba(47, 103, 120, 0.12) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16) !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(18px);
}

.layui-laydate * {
    box-sizing: border-box;
}

.layui-laydate-header {
    height: 54px;
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(47, 103, 120, 0.08) !important;
    background: linear-gradient(135deg, #f4f8fa 0%, #ffffff 100%);
}

.layui-laydate-header i {
    width: 32px;
    height: 32px;
    line-height: 32px !important;
    border-radius: 999px;
    color: #255967 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.layui-laydate-header i:hover,
.layui-laydate-header i:active {
    background: rgba(47, 103, 120, 0.08);
    color: #2f6778 !important;
}

.layui-laydate-header .laydate-set-ym {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.layui-laydate-header .laydate-set-ym span {
    color: #0f2550 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.2;
}

.layui-laydate-content {
    padding: 10px 10px 8px;
}

.layui-laydate-content th {
    color: #64748b !important;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 10px 0 !important;
}

.layui-laydate-content td,
.layui-laydate-content td div {
    height: 38px !important;
    line-height: 38px !important;
}

.layui-laydate-content td div {
    border-radius: 12px;
    font-weight: 700;
    color: #1e293b;
}

.layui-laydate-content td:hover div,
.layui-laydate-content td.layui-this:hover div {
    background-color: rgba(47, 103, 120, 0.08) !important;
}

.layui-laydate .layui-this div,
.layui-laydate .layui-this,
.layui-laydate td.layui-this div {
    background: linear-gradient(135deg, #2f6d7d 0%, #255967 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(37, 89, 103, 0.24);
}

.layui-laydate td.laydate-day-prev div,
.layui-laydate td.laydate-day-next div {
    color: #b8c2cf !important;
}

.layui-laydate-footer {
    padding: 10px 14px 14px !important;
    border-top: 1px solid rgba(47, 103, 120, 0.08) !important;
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.layui-laydate-footer span {
    min-width: 68px;
    height: 34px;
    line-height: 34px !important;
    padding: 0 14px;
    margin-left: 8px;
    border: 1px solid rgba(47, 103, 120, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #255967 !important;
    font-size: 0.84rem;
    font-weight: 800;
}

.layui-laydate-footer span:hover {
    background: rgba(47, 103, 120, 0.06);
}

.layui-laydate-list > li,
.layui-laydate-list li {
    border-radius: 12px;
    font-weight: 700;
}

    .nav-item svg {
        stroke-width: 2.5px;
    }

/* --- Home Page --- */
.page-home {
    background-color: #F1F5F9;
}

.view-toggle-container {
    display: flex;
    background: #F1F5F9;
    padding: 4px;
    border-radius: var(--radius-full);
}

.toggle-btn {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

    .toggle-btn.active {
        background: white;
        color: var(--text-primary);
        box-shadow: var(--shadow-sm);
    }

.search-container {
    padding: 16px;
    background: var(--surface-color);
}

.search-box {
    position: relative;
    background: #F1F5F9;
    border-radius: var(--radius-full);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .search-box input {
        border: none;
        background: transparent;
        width: 100%;
    }

.terminal-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-image-wrapper {
    height: 140px;
    position: relative;
    background: #CBD5E1;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

    .card-badge.warn {
        background: var(--warning);
        color: white;
    }

    .card-badge.success {
        background: var(--success);
        color: white;
    }

.card-content {
    padding: 16px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

    .job-header h3 {
        font-size: 1.1rem;
    }

.wage {
    color: var(--brand-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.job-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background: #F1F5F9;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.card-status {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.card-status.closed .dot {
    background: var(--text-tertiary);
}

.btn-apply {
    background: var(--text-primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
}

    .btn-apply.disabled {
        background: #E2E8F0;
        color: #94A3B8;
        cursor: not-allowed;
    }

/* --- Login Page --- */
.page-auth-design {
    background: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 100%);
}

.auth-container-design {
    display: flex;
    flex-direction: column;
    padding: 24px;
    padding-top: 6px;
}

.lang-switch-wrapper {
    align-self: flex-end;
    position: relative;
    margin-bottom: 10px;
    margin-top: 10px;
}

.lang-visual {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.4);
}

.lang-dropdown-menu {
    position: absolute;
    top: 80%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    min-width: 140px;
    z-index: 200;
}

.lang-switch-wrapper:hover .lang-dropdown-menu {
    display: block;
}

.lang-option {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

    .lang-option:hover {
        background: #F1F5F9;
    }

.design-header {
    margin-bottom: 40px;
}

.brand-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #1E293B, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-slogan {
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

.login-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5);
    margin-bottom: 40px;
}

.welcome-text {
    font-size: 1.75rem;
    margin-bottom: 32px;
}

.input-group-design {
    margin-bottom: 20px;
}

.input-field {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

    .input-field:focus-within {
        border-color: var(--brand-color);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

    .input-field input {
        border: none;
        width: 100%;
        font-size: 1rem;
    }

.form-extras {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.text-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-section {
    margin-top: auto;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

    .section-divider::before, .section-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #E2E8F0;
    }

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nav-card {
    background: white;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

    .nav-card:active {
        transform: scale(0.98);
    }

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

    .nav-icon.blue {
        background: #3B82F6;
    }

    .nav-icon.green {
        background: #10B981;
    }

    .nav-icon.purple {
        background: #8B5CF6;
    }

    .nav-icon.indigo {
        background: #6366F1;
    }

.nav-content {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.nav-tip {
    font-size: 0.65rem;
    color: var(--brand-color);
    margin-top: 4px;
}

.company-footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

/* --- MyPage --- */
.page-mypage {
    background-color: #F8FAFC;
}

.profile-header {
    background: white;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

    .profile-header.transparent {
        background: transparent;
        border: none;
        padding-top: 20px;
    }

.profile-card {
    display: flex;
    flex-direction: column;
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-id {
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: inline-block;
}

.qr-btn {
    padding: 8px;
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--text-primary);
}

.menu-group {
    background: white;
    border-radius: var(--radius-lg);
    padding: 8px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.group-title {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 12px 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-list {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 8px;
    border-bottom: 1px solid #F1F5F9;
    gap: 16px;
}

    .menu-item:last-child {
        border-bottom: none;
    }

.menu-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .menu-icon-wrapper.blue {
        background: #EFF6FF;
        color: #3B82F6;
    }

    .menu-icon-wrapper.indigo {
        background: #EEF2FF;
        color: #6366F1;
    }

    .menu-icon-wrapper.gray {
        background: #F8FAFC;
        color: #64748B;
    }

    .menu-icon-wrapper.red {
        background: #FEF2F2;
        color: #EF4444;
    }

.menu-text {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.menu-value {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

    .status-badge.error {
        background: #FEF2F2;
        color: #EF4444;
    }

.audit-alert {
    background: #FEF2F2;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin: 8px 0;
}

    .audit-alert svg {
        color: #EF4444;
        flex-shrink: 0;
    }

.audit-title {
    font-weight: 700;
    color: #991B1B;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.audit-desc {
    font-size: 0.8rem;
    color: #B91C1C;
    line-height: 1.4;
    margin-bottom: 8px;
}

.audit-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: #DC2626;
}

.company-address {
    margin-top: 16px;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

/* QR Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

    .modal-backdrop.active {
        display: flex;
    }

.modal-content {
    background: white;
    width: 90%;
    max-width: 360px;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    animation: modalUp 0.3s ease-out;
}

@keyframes modalUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.qr-display {
    background: #F8FAFC;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.qr-placeholder-large {
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* --- Audit Pages --- */
.page-audit-premium {
    background-color: #F8FAFC;
}

.audit-dashboard-card {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border-radius: 20px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.dashboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-text h2 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: white;
}

.dashboard-text p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.progress-ring-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-text {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
}

.step-header {
    font-weight: 700;
    color: var(--text-secondary);
    margin: 24px 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

    .step-header span {
        background: #E2E8F0;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
    }

.premium-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-card {
    background: white;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    position: relative;
}

    .premium-card:active {
        transform: scale(0.99);
    }

    .premium-card.completed .status-indicator {
        background: #DCFCE7;
        color: #16A34A;
    }

    .premium-card.action-required {
        background: #FFF7ED;
        border-color: #FED7AA;
    }

.premium-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .premium-icon-box.blue {
        background: #DBEAFE;
        color: #2563EB;
    }

    .premium-icon-box.indigo {
        background: #E0E7FF;
        color: #4F46E5;
    }

    .premium-icon-box.purple {
        background: #F3E8FF;
        color: #9333EA;
    }

    .premium-icon-box.emerald {
        background: #D1FAE5;
        color: #059669;
    }

    .premium-icon-box.orange {
        background: #FFEDD5;
        color: #EA580C;
    }

    .premium-icon-box.rose {
        background: #FFE4E6;
        color: #E11D48;
    }

    .premium-icon-box.cyan {
        background: #CFFAFE;
        color: #0891B2;
    }

    .premium-icon-box.slate {
        background: #F1F5F9;
        color: #475569;
    }

.premium-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.premium-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.premium-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-tag {
    background: #EA580C;
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(234, 88, 12, 0.2);
}

/* Wizard */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

    .wizard-step.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-navigation {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-bottom: 24px;
}

/* Photo Upload */
.premium-upload-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.premium-image-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: #F1F5F9;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #CBD5E1;
}

    .premium-image-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.premium-upload-btn {
    width: 100%;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

    .premium-upload-btn:active {
        background: #F8FAFC;
    }

/* --- My Jobs / Schedule Page Styles --- */
.page-my-jobs {
    background-color: #F8FAFC;
    background-image: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 12px;
    background: transparent;
}

.schedule-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
}

.job-count {
    font-size: 1.5rem;
    margin-left: 8px;
    font-weight: 800;
}

.month-selector {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-alert {
    padding: 12px 24px;
    color: #EF4444;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.schedule-container {
    padding: 0 16px;
    margin-bottom: 24px;
}

.schedule-table {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.table-header {
    display: flex;
    background-color: #F1F5F9;
    padding: 14px 8px;
    border-bottom: 1px solid #E2E8F0;
}

    .table-header > div {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--text-primary);
        text-align: center;
    }

.col-date {
    width: 25%;
}

.col-time {
    width: 30%;
}

.col-loc {
    width: 45%;
}

.sub-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

.table-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

    .table-row:last-child {
        border-bottom: none;
    }

    .table-row.confirmed {
        background-color: #EF4444; /* Tailwind Red-500 */
        color: white;
    }

    .table-row > div {
        padding: 16px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
        font-weight: 500;
        border-right: 1px solid rgba(255,255,255,0.2);
    }

        .table-row > div:last-child {
            border-right: none;
        }

.cell-date {
    width: 25%;
    font-weight: 700;
    flex-direction: column;
    line-height: 1.4;
}

.cell-time {
    width: 30%;
    white-space: nowrap;
    font-weight: 600;
}

.cell-loc {
    width: 45%;
    flex-direction: column;
    gap: 4px;
}

.loc-jp {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}

.loc-en {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.2;
}

/* --- Trend Home Design --- */
.page-trend-home {
    background-color: #FFFFFF;
    position: relative;
    overflow-x: hidden;
}

.trend-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%), radial-gradient(circle at 0% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

    /* Ship silhouette pseudo-element */
    .trend-bg-overlay::after {
        content: '';
        position: absolute;
        bottom: 60px; /* Above nav */
        right: -50px;
        width: 300px;
        height: 300px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E0F2FE' opacity='0.5'%3E%3Cpath d='M22 18H2v-2h20v2zM3.5 14h17c.83 0 1.5.67 1.5 1.5S21.33 17 20.5 17h-17c-.83 0-1.5-.67-1.5-1.5S2.67 14 3.5 14zM19 12H5l2-6h10l2 6z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: contain;
        transform: rotate(-10deg);
        opacity: 0.3;
    }

.trend-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo-small {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #F59E0B, #EF4444); /* Orange to Red gradient like screenshot */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trend-tabs {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
}

.tab-item {
    color: var(--text-secondary);
    cursor: pointer;
}

    .tab-item.active {
        color: #3B82F6;
        font-weight: 600;
    }

.trend-list {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trend-card {
    display: flex;
    min-height: 100px;
    box-shadow: var(--shadow-sm);
}

.card-left {
    width: 60%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    color: #333;
}

.bg-green {
    background-color: #D1E7DD; /* Pastel Green */
}

.bg-purple {
    background-color: #E0DAF5; /* Pastel Purple */
}

.ship-info {
    font-size: 0.75rem;
    margin-top: 4px;
    line-height: 1.3;
    opacity: 0.9;
}

.card-right {
    width: 40%;
    background: transparent; /* Or slight tint */
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: space-between;
}

.date-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.date-text {
    font-size: 1rem;
}

.weekday {
    font-size: 0.9rem;
}

.detail-link {
    font-size: 0.75rem;
    color: #64748B;
    text-decoration: none;
    margin-left: auto;
}

.status-row {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #22C55E;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

    .check-icon svg {
        stroke: #22C55E;
        width: 18px;
        height: 18px;
        stroke-width: 3px;
    }

/* The screenshot shows a FILLED green check for some, or just outlined. 
   Wait, screenshot checkmark is Green Circle with White Check? Or Green Check?
   It looks like a Green Circle outline with Green Check inside? Or Green Circle with White Check?
   Actually, one is filled green. Let's make it simple. */

.stats-row {
    font-size: 0.75rem;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    font-weight: 600;
}

.num-red {
    color: #EF4444;
    font-weight: 700;
    margin-left: 2px;
}


/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0F172A;
        --surface-color: #1E293B;
        --border-color: #334155;
        --text-primary: #F8FAFC;
        --text-secondary: #94A3B8;
        --text-tertiary: #64748B;
    }

    .btn-secondary-design {
        background: transparent;
        border-color: #475569;
        color: #F1F5F9;
    }

    .premium-input {
        background: #0F172A;
        border-color: #334155;
        color: white;
    }

        .premium-input:focus {
            background: #1E293B;
        }

    .page-home, .page-auth-design, .page-mypage, .page-audit-premium, .page-my-jobs {
        background-color: #0F172A;
        background-image: none;
    }

    .top-bar, .bottom-nav, .premium-form-card, .search-container {
        background: #1E293B;
    }

    .search-box {
        background: #0F172A;
    }

        .search-box input {
            color: white;
        }

    .nav-item {
        color: #94A3B8;
    }

        .nav-item.active {
            color: #60A5FA;
        }

        .nav-item svg {
            stroke-width: 2.5px;
        }

    /* Login Dark */
    .login-card {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(255,255,255,0.1);
    }

    .lang-dropdown-menu {
        background: #1E293B;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .lang-option {
        color: #F8FAFC;
    }

        .lang-option:hover {
            background: rgba(255,255,255,0.05);
        }

    .input-field {
        background: #0F172A;
        border-color: transparent;
    }

        .input-field input {
            background: transparent;
            color: white;
        }

    .nav-card {
        background: #1E293B;
    }

    .section-divider::before, .section-divider::after {
        background: #334155;
    }

    /* Audit Dark */
    .premium-card {
        background: #1E293B;
        border-color: transparent;
    }

        .premium-card.action-required {
            background: rgba(124, 45, 18, 0.2);
            border-color: rgba(249, 115, 22, 0.2);
        }

    .step-header span {
        background: #334155;
        color: #CBD5E1;
    }

    /* My Jobs Dark */
    .schedule-title {
        color: #F8FAFC;
    }

    .month-selector {
        background: #1E293B;
        border-color: #334155;
        color: #F8FAFC;
    }

    .schedule-alert {
        color: #F87171;
    }

    .schedule-table {
        border-color: #334155;
    }

    .table-header {
        background-color: #1E293B;
        border-bottom-color: #334155;
    }

        .table-header > div {
            color: #F8FAFC;
        }

    .table-row.confirmed {
        background-color: #B91C1C;
    }

    /* Mypage Dark */
    .profile-header {
        background: #1E293B;
        border-bottom-color: #334155;
    }

    .profile-id {
        background: #0F172A;
        color: #94A3B8;
    }

    .qr-btn {
        background: #334155;
        color: #F8FAFC;
    }

    .menu-group {
        background: #1E293B;
    }

    .menu-item {
        border-bottom-color: #334155;
    }

    .company-address {
        background: #0F172A;
    }

    /* Keep icon backgrounds consistent in Dark Mode */
    .menu-icon-wrapper.blue {
        background: #EFF6FF;
        color: #3B82F6;
    }

    .menu-icon-wrapper.indigo {
        background: #EEF2FF;
        color: #6366F1;
    }

    .menu-icon-wrapper.gray {
        background: #F8FAFC;
        color: #64748B;
    }

    .menu-icon-wrapper.red {
        background: #FEF2F2;
        color: #EF4444;
    }

    /* Modal Dark */
    .modal-content {
        background: #1E293B;
        color: #F8FAFC;
    }

    .qr-display {
        background: #0F172A;
    }

    .qr-placeholder-large {
        color: #F8FAFC;
    }

    .close-btn {
        color: #94A3B8;
    }

    /* Trend Home Dark */
    .page-trend-home {
        background-color: #0F172A;
    }

    .trend-bg-overlay {
        display: none;
    }

    .trend-header {
        background: #1E293B;
    }

    .bg-green {
        background-color: #064E3B;
        color: #ECFDF5;
    }
    /* Dark Green */
    .bg-purple {
        background-color: #4C1D95;
        color: #F5F3FF;
    }
    /* Dark Purple */
    .card-left {
        color: #F8FAFC;
    }

    .card-right {
        color: #F8FAFC;
    }

    .date-row {
        color: #F8FAFC;
    }

    .stats-row {
        color: #CBD5E1;
    }

    .num-red {
        color: #F87171;
    }

    /* Extra Fixes for Dark Mode */
    .field-icon {
        color: #F8FAFC;
    }

    .text-link {
        color: #94A3B8;
    }

    .Languages .list {
        background-color: #1E293B;
        border-color: #334155;
        color: #F8FAFC;
    }

    .Languages .select {
        background-color: #0F172A;
        color: #60A5FA;
    }
}

/* --- Admin Login (Japanese Style) --- */
.admin-login-body {
    background-color: #1A1F35; /* Kachi-iro (Winning Color/Indigo) */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Serif JP', serif;
}

/* Background Elements */
.jp-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ffffff 1px, transparent 1px), radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.03;
    z-index: 1;
}

.jp-decoration-circle {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vh;
    height: 60vh;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.admin-login-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 20px;
}

/* Vertical Text */
.jp-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    font-weight: 300;
    height: 300px;
    display: flex;
    justify-content: center;
    border-left: 1px solid rgba(197, 160, 89, 0.3);
    padding-left: 20px;
}

    .jp-vertical-text .highlight {
        font-size: 1.8rem;
        font-weight: 700;
        color: #C5A059; /* Kin-cha (Gold) */
        margin-top: 20px;
    }

/* Login Card */
.admin-login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 48px;
    border-radius: 4px;
    width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

    .admin-login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #C5A059, transparent);
    }

.card-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo-symbol {
    width: 40px;
    height: 40px;
    border: 2px solid #C5A059;
    transform: rotate(45deg);
    margin: 0 auto 20px;
    position: relative;
}

    .logo-symbol::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        background: #C5A059;
    }

.card-header h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 300;
    margin-bottom: 8px;
}

.card-header p {
    font-size: 0.7rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Inputs */
.jp-input-group {
    position: relative;
    margin-bottom: 32px;
}

    .jp-input-group input {
        width: 100%;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 8px 0;
        color: white;
        font-size: 1rem;
        font-family: 'Noto Sans JP', sans-serif;
        transition: all 0.3s;
    }

    .jp-input-group label {
        position: absolute;
        top: 8px;
        left: 0;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.9rem;
        transition: all 0.3s;
        pointer-events: none;
    }

    .jp-input-group input:focus,
    .jp-input-group input:not(:placeholder-shown) {
        border-bottom-color: #C5A059;
        outline: none;
    }

        .jp-input-group input:focus + label,
        .jp-input-group input:not(:placeholder-shown) + label {
            top: -16px;
            font-size: 0.75rem;
            color: #C5A059;
        }

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #C5A059;
    transition: width 0.3s;
}

.jp-input-group input:focus ~ .input-border {
    width: 100%;
}

/* Captcha */
.captcha-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 40px;
}

    .captcha-row .jp-input-group {
        flex: 1;
        margin-bottom: 0;
    }

.captcha-display {
    width: 100px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.captcha-text {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #C5A059;
    font-size: 1.2rem;
    letter-spacing: 4px;
    z-index: 2;
}

.captcha-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 1;
}

/* Button */
.btn-jp-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #C5A059 0%, #A08040 100%);
    color: #1A1F35;
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    border-radius: 2px;
}

    .btn-jp-login:hover {
        box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
        transform: translateY(-1px);
    }

.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.card-footer {
    text-align: center;
    margin-top: 24px;
}

    .card-footer a {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.75rem;
        text-decoration: none;
        transition: color 0.3s;
    }

        .card-footer a:hover {
            color: #C5A059;
        }

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .admin-login-container {
        flex-direction: column;
        gap: 30px;
        padding: 16px;
        width: 100%;
    }

    .jp-vertical-text {
        writing-mode: horizontal-tb;
        height: auto;
        border-left: none;
        border-bottom: 1px solid rgba(197, 160, 89, 0.3);
        padding-left: 0;
        padding-bottom: 16px;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

        .jp-vertical-text .highlight {
            margin-top: 0;
        }

    .admin-login-card {
        width: 100%;
        padding: 32px 24px;
    }
}

.recover {
    padding: 20px;
    line-height: 32px;
    font-size: 18px;
}

.Languages {
    width: 90%;
    margin: 0 auto;
}

    .Languages .list {
        padding: 1rem 1rem;
        margin-top: 2rem;
        line-height: 3.6rem;
        background-color: #fff;
        border: 1px solid #f7f7f7;
        border-radius: 16px;
        color: #666;
        font-size: 1.6rem;
        height: 3.6rem;
        display: flex;
        align-items: center
    }

        .Languages .list img {
            max-width: 6rem;
            height: 2.6rem;
        }

        .Languages .list span {
            margin-left: 2rem;
            font-size: 1.4rem;
            font-weight: bold;
        }

    .Languages .select {
        background-color: #f0f1f6;
        color: #2973ff;
    }

.bt {
    background-color: #3b82f6;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    border-radius: 1.8rem;
    font-size: 1.3rem;
    line-height: 3.6rem;
    color: #fff;
    font-weight: bolder;
    margin-top: 3rem;
}
/*底部*/

.h5-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(249, 252, 252, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--h5-brand-border);
    box-shadow: 0 -8px 24px rgba(47, 103, 120, 0.08);
    z-index: 1200;
}

    .h5-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
        font-size: 12px;
        color: var(--h5-brand-muted);
        padding: 8px 4px;
        border-radius: 14px;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

        .h5-bottom-nav a.active {
            color: var(--h5-brand);
            background: var(--h5-brand-soft);
            font-weight: 700;
            box-shadow: 0 6px 16px rgba(47, 103, 120, 0.12);
        }

        .h5-bottom-nav a:hover {
            color: var(--h5-brand);
        }

    .h5-bottom-nav svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .h5-bottom-nav span {
        line-height: 1.2;
    }
