/* ダークモードスタイル - 青のグローエフェクト */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #00aaff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* ナビゲーションバー */
.navbar {
    background-color: #000000;
    border-bottom: 1px solid #003366;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 170, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #00aaff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.8);
    transition: text-shadow 0.3s;
}

.nav-logo:hover {
    text-shadow: 0 0 20px rgba(0, 170, 255, 1);
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #00aaff;
    border-radius: 2px;
    transition: all 0.3s;
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.hamburger:hover span {
    box-shadow: 0 0 10px rgba(0, 170, 255, 1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-link {
    color: #00aaff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.nav-link:hover {
    background-color: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* フラッシュメッセージ */
.flash-messages {
    margin-bottom: 1rem;
}

.flash-message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

.flash-success {
    background-color: rgba(0, 170, 255, 0.2);
    border: 1px solid #00aaff;
    color: #00aaff;
}

.flash-error {
    background-color: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff6666;
}

.info-message {
    background-color: rgba(0, 170, 255, 0.2);
    border: 1px solid #00aaff;
    color: #00aaff;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

.info-message p {
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

/* 認証ページ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 2rem 1rem;
}

.auth-box {
    background-color: #000000;
    border: 1px solid #003366;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
}

.auth-title {
    color: #00aaff;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.8);
    font-size: 1.8rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #00aaff;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.form-group input,
.form-input {
    background-color: #000000;
    border: 1px solid #003366;
    color: #00aaff;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-input:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-actions .btn {
    flex: 1;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-link {
    color: #00aaff;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    transition: text-shadow 0.3s;
}

.auth-link:hover {
    text-shadow: 0 0 10px rgba(0, 170, 255, 1);
}

/* ボタン */
.btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid #00aaff;
    background-color: rgba(0, 170, 255, 0.1);
    color: #00aaff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}

.btn:hover {
    background-color: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.6);
    text-shadow: 0 0 10px rgba(0, 170, 255, 1);
}

.btn-primary {
    width: 100%;
}

.btn-secondary {
    border-color: #666666;
    color: #aaaaaa;
    background-color: rgba(102, 102, 102, 0.1);
    text-shadow: 0 0 5px rgba(170, 170, 170, 0.5);
    box-shadow: 0 0 10px rgba(102, 102, 102, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(102, 102, 102, 0.2);
    box-shadow: 0 0 20px rgba(102, 102, 102, 0.6);
}

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

.btn-success {
    border-color: #00ff00;
    color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.btn-success:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

.btn-warning {
    border-color: #ffaa00;
    color: #ffaa00;
    background-color: rgba(255, 170, 0, 0.1);
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.2);
}

.btn-warning:hover {
    background-color: rgba(255, 170, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.6);
}

.btn-danger {
    border-color: #ff0000;
    color: #ff6666;
    background-color: rgba(255, 0, 0, 0.1);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.btn-danger:hover {
    background-color: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

/* ダッシュボード */
.dashboard-container,
.admin-container {
    padding: 1rem 0;
}

.page-title {
    color: #00aaff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.8);
    font-size: 2rem;
}

.artist-label {
    color: #00aaff;
    font-size: 0.85rem;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    margin-bottom: 0;
    opacity: 0.8;
    line-height: 1;
}

.artist-name {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0.1rem;
    line-height: 1.2;
}

.dashboard-content {
    color: #00aaff;
}

.dashboard-actions {
    margin-top: 1.5rem;
}

.dashboard-actions .btn {
    width: auto;
    min-width: 200px;
}

/* アップロードセクション */
.upload-section,
.password-section,
.backup-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(0, 51, 102, 0.2);
    border: 1px solid #003366;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}

.section-title {
    color: #00aaff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.upload-form,
.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.file-label-text {
    color: #00aaff;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.file-input {
    padding: 0.5rem;
    background-color: rgba(0, 51, 102, 0.3);
    border: 1px solid #003366;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #00aaff;
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.3);
}

.file-input:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.file-name {
    color: #cccccc;
    font-size: 0.9rem;
    padding: 0.5rem;
    background-color: rgba(0, 51, 102, 0.2);
    border-radius: 4px;
    min-height: 1.5rem;
}

.upload-form .btn,
.password-form .btn {
    align-self: flex-start;
    min-width: 150px;
}

/* プロセスセクション */
.process-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(0, 51, 102, 0.2);
    border: 1px solid #003366;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}

.process-status {
    margin-top: 1.5rem;
}

.status-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.status-message.running {
    background-color: rgba(0, 170, 255, 0.2);
    color: #00aaff;
    border: 1px solid #00aaff;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.status-message.completed {
    background-color: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.status-message.error {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff6666;
    border: 1px solid #ff0000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.status-message.idle {
    background-color: rgba(170, 170, 170, 0.2);
    color: #aaaaaa;
    border: 1px solid #aaaaaa;
}

.process-steps {
    margin-top: 1rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    background-color: rgba(0, 51, 102, 0.2);
    border: 1px solid #003366;
    transition: all 0.3s ease;
}

.step-item.pending {
    opacity: 0.5;
}

.step-item.running {
    background-color: rgba(0, 170, 255, 0.2);
    border-color: #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    animation: pulse 2s infinite;
}

.step-item.completed {
    background-color: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    opacity: 0.8;
}

.step-item.error {
    background-color: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(0, 51, 102, 0.5);
    color: #00aaff;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-item.running .step-number {
    background-color: rgba(0, 170, 255, 0.3);
    color: #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.step-item.completed .step-number {
    background-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.step-item.error .step-number {
    background-color: rgba(255, 0, 0, 0.3);
    color: #ff6666;
}

.step-name {
    flex: 1;
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

.step-status {
    color: #cccccc;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: right;
}

.step-item.running .step-status {
    color: #00aaff;
    font-weight: bold;
}

.step-item.completed .step-status {
    color: #00ff00;
}

.step-item.error .step-status {
    color: #ff6666;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* テーブル */
.table-container {
    overflow-x: auto;
    border: 1px solid #003366;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
    max-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #000000;
}

.data-table thead {
    background-color: rgba(0, 51, 102, 0.5);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    color: #00aaff;
    padding: 0.75rem;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #003366;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    background-color: rgba(0, 51, 102, 0.5);
}

.fee-summary-table th {
    text-align: center;
}

.data-table tbody {
    display: block;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
    overflow-x: hidden;
}

.data-table thead tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.data-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.fee-summary-table thead tr,
.fee-summary-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.data-table td {
    color: #00aaff;
    padding: 0.75rem;
    border-bottom: 1px solid #003366;
}

.data-table tbody tr:hover {
    background-color: rgba(0, 170, 255, 0.05);
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.2);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* User Managementページのテーブルカラム幅 */
.admin-container .data-table th:nth-child(1),
.admin-container .data-table td:nth-child(1) {
    width: 5%;
    min-width: 50px;
}

.admin-container .data-table th:nth-child(2),
.admin-container .data-table td:nth-child(2) {
    width: 12%;
    min-width: 100px;
}

.admin-container .data-table th:nth-child(3),
.admin-container .data-table td:nth-child(3) {
    width: 20%;
    min-width: 200px;
}

.admin-container .data-table th:nth-child(4),
.admin-container .data-table td:nth-child(4) {
    width: 8%;
    min-width: 80px;
}

.admin-container .data-table th:nth-child(5),
.admin-container .data-table td:nth-child(5) {
    width: 10%;
    min-width: 100px;
}

.admin-container .data-table th:nth-child(6),
.admin-container .data-table td:nth-child(6) {
    width: 8%;
    min-width: 80px;
}

.admin-container .data-table th:nth-child(7),
.admin-container .data-table td:nth-child(7) {
    width: 12%;
    min-width: 140px;
}

.admin-container .data-table th:nth-child(8),
.admin-container .data-table td:nth-child(8) {
    width: 25%;
    min-width: 300px;
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-admin {
    background-color: rgba(0, 170, 255, 0.2);
    color: #00aaff;
    border: 1px solid #00aaff;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.8);
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.3);
}

.badge-user {
    background-color: rgba(170, 170, 170, 0.2);
    color: #aaaaaa;
    border: 1px solid #aaaaaa;
}

.badge-success {
    background-color: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.badge-warning {
    background-color: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid #ffaa00;
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.8);
    box-shadow: 0 0 5px rgba(255, 170, 0, 0.3);
}

.badge-error {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff6666;
    border: 1px solid #ff0000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

/* アクションボタン */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons form {
    display: inline;
}

/* ファイル一覧 */
.file-list-container {
    margin-top: 1rem;
}

.file-count-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.file-count {
    color: #00aaff;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    font-size: 0.9rem;
}

.filter-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.filter-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: rgba(0, 51, 102, 0.5);
    border: 1px solid #003366;
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.3);
}

.switch-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background-color: #00aaff;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.8);
}

.filter-switch input[type="checkbox"]:checked + .switch-slider {
    background-color: rgba(0, 170, 255, 0.3);
    border-color: #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.filter-switch input[type="checkbox"]:checked + .switch-slider::before {
    transform: translateX(20px);
    box-shadow: 0 0 15px rgba(0, 170, 255, 1);
}

.switch-label {
    color: #00aaff;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
}

.file-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.4fr 0.5fr;
    gap: 1rem;
    padding: 0.75rem;
    background-color: rgba(0, 51, 102, 1);
    border: 1px solid #003366;
    border-radius: 4px;
    font-weight: bold;
    color: #00aaff;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.file-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.4fr 0.5fr;
    gap: 1rem;
    background-color: rgba(0, 51, 102, 0.3);
    border: 1px solid #003366;
    border-radius: 4px;
    padding: 0.75rem;
    color: #00aaff;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.file-item.clickable-row {
    cursor: pointer;
}

.file-item:hover {
    background-color: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    border-color: #00aaff;
}

.file-name-col {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clickable-row:hover {
    background-color: rgba(0, 170, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
    border-color: #00aaff;
}

.file-amount-col {
    text-align: right;
    font-family: 'Courier New', monospace;
}

.file-count-col {
    text-align: center;
    font-family: 'Courier New', monospace;
}

.file-month-col {
    text-align: center;
    font-family: 'Courier New', monospace;
}

.file-action-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.clickable {
    cursor: pointer;
    transition: color 0.3s;
}

.clickable:hover {
    color: #00ccff;
    text-shadow: 0 0 10px rgba(0, 204, 255, 1);
}

.settle-btn {
    width: 100%;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.artist-header {
    margin-bottom: 1.5rem;
}

.amount-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(0, 51, 102, 0.3);
    border: 1px solid #003366;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}

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

.amount-label {
    color: #00aaff;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    font-size: 0.9rem;
    font-weight: bold;
}

.amount-value {
    color: #00aaff;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.amount-value.settle-high-amount {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.data-table td.settle-high-amount-cell {
    color: #ff0000 !important;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8) !important;
    font-weight: bold !important;
}

.settle-button-cell {
    text-align: center;
}

.settle-month-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid #00aaff;
    background-color: rgba(0, 170, 255, 0.1);
    color: #00aaff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
    min-width: 60px;
}

.settle-month-btn:hover {
    background-color: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.6);
    text-shadow: 0 0 10px rgba(0, 170, 255, 1);
}

.settle-month-btn.settled {
    border-color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.settle-month-btn.settled:hover {
    background-color: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    text-shadow: 0 0 15px rgba(255, 0, 0, 1);
}

.settled-row {
    border: 2px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.settled-row td {
    border-color: rgba(255, 0, 0, 0.5);
}

.settle-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(0, 51, 102, 0.3);
    border: 1px solid #003366;
    border-radius: 4px;
    color: #00aaff;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    font-size: 0.9rem;
}

.settle-amount.settle-high-amount {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    font-weight: bold;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #000000;
        border: 1px solid #003366;
        border-top: none;
        box-shadow: 0 4px 10px rgba(0, 170, 255, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        gap: 0;
    }
    
    .nav-menu.active {
        max-height: 500px;
        padding: 0.5rem 0;
    }
    
    .nav-link {
        text-align: left;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #003366;
        width: 100%;
        display: block;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-sm {
        width: 100%;
    }
    
    .file-count-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .filter-switch {
        width: 100%;
        justify-content: space-between;
    }
    
    .file-header {
        display: none;
    }
    
    .file-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .file-name-col {
        font-weight: bold;
        margin-bottom: 0.25rem;
    }
    
    .file-amount-col {
        text-align: left;
        padding-left: 1rem;
    }
    
    .file-item .file-amount-col:nth-child(2)::before {
        content: "累計金額（税込）: ";
        font-weight: normal;
    }
    
    .file-item .file-amount-col:nth-child(3)::before {
        content: "精算可能金額（税込）: ";
        font-weight: normal;
    }
    
    .file-item .file-count-col::before {
        content: "精算回数: ";
        font-weight: normal;
    }
    
    .file-item .file-month-col::before {
        content: "最終精算: ";
        font-weight: normal;
    }
    
    
    .amount-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .amount-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* レポートボタン */
.report-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(0, 170, 255, 0.2);
    color: #00aaff;
    border: 1px solid #00aaff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
    transition: all 0.3s ease;
}

.report-btn:hover {
    background-color: rgba(0, 170, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.6);
    transform: translateY(-2px);
}

/* レポートページ（明るいモード） */
body.report-page {
    background-color: #ffffff !important;
}

body.report-page .main-content {
    background-color: #ffffff;
}

.report-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    color: #000000;
    min-height: calc(100vh - 200px);
}

.report-logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    text-align: left;
}

.report-logo {
    max-width: 400px;
    max-height: 80px;
    width: auto;
    height: auto;
}

.report-date {
    color: #000000;
    font-size: 0.9rem;
    text-align: right;
}

.report-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.report-title {
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: bold;
}

.report-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
}

.report-info-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.report-info-right {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    min-width: 300px;
    align-self: flex-start;
}

.report-info-right .info-row {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0.5rem;
}

.report-info-right .info-label {
    min-width: 80px;
    text-align: right;
}

.report-info-right .info-value {
    min-width: 200px;
    text-align: right;
}

.report-message {
    margin-top: 0.5rem;
    line-height: 1.4;
}

.report-message p {
    margin: 0.15rem 0;
    color: #000000;
}

.report-note {
    margin-top: 0.5rem;
    text-align: right;
}

.report-note p {
    margin: 0;
    color: #000000;
    font-size: 0.9rem;
}

.report-note-left {
    margin-top: 0.5rem;
    text-align: left;
}

.report-note-left p {
    margin: 0;
    color: #000000;
    font-size: 0.9rem;
}

.report-divider {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-top: 1px solid #000000;
}

.report-company-info {
    margin-top: 1rem;
    text-align: left;
}

.report-company-info p {
    margin: 0.25rem 0;
    color: #000000;
    font-size: 0.9rem;
}

.report-company-info .company-name {
    font-size: 1.1rem;
    font-weight: bold;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-label {
    color: #000000;
    font-weight: bold;
    min-width: 120px;
}

.info-value {
    color: #000000;
    font-size: 1.1rem;
}

.report-table-container {
    margin: 0.5rem 0;
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #000000;
}

.report-table thead {
    background-color: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 10;
}

.report-table th {
    color: #000000;
    padding: 0.5rem 1rem;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
    background-color: #f5f5f5;
}

.report-table th:last-child {
    border-right: none;
}

.report-table tbody tr {
    border-bottom: 1px solid #cccccc;
    transition: background-color 0.2s ease;
}

.report-table tbody tr.before-summary {
    border-bottom: none;
}

.report-table tbody tr:hover {
    background-color: #f9f9f9;
}

.report-table td {
    padding: 0.4rem 1rem;
    color: #000000;
    border-right: 1px solid #cccccc;
    text-align: right;
}

.report-table td:first-child {
    text-align: left;
}

.report-table td:last-child {
    border-right: none;
}

.report-table tfoot {
    background-color: #f5f5f5;
    border-top: 1px solid #000000;
}

.report-table .summary-row {
    font-weight: bold;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.report-table .summary-label {
    text-align: left;
    color: #000000;
    font-weight: bold;
    padding: 0.4rem 1rem;
}

.report-table .summary-value {
    text-align: right;
    color: #000000;
    font-weight: bold;
    padding: 0.4rem 1rem;
}

.report-table .summary-count-row {
    border-bottom: 1px solid #cccccc;
}

.report-table .summary-count-row .summary-value {
    text-align: right;
    color: #000000;
    font-weight: bold;
    padding: 0.75rem 1rem;
}

.report-table .total-row {
    font-weight: bold;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.report-table .total-label {
    text-align: right;
    color: #000000;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
}

.report-table .total-formula {
    display: block;
    font-size: 0.7rem;
    font-weight: normal;
    margin-top: 0.25rem;
    color: #666666;
}

.report-table .total-amount {
    text-align: right;
    color: #000000;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    font-weight: bold;
}

.report-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #000000;
    text-align: center;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.back-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Fee Summaryページのテーブルカラム幅 */
.fee-summary-table {
    table-layout: fixed;
}

.fee-summary-table th {
    text-align: right;
}

.fee-summary-table th.file-amount-col {
    text-align: right;
}

.fee-summary-table td.file-amount-col {
    text-align: right;
}

.fee-summary-table th:nth-child(1),
.fee-summary-table td:nth-child(1) {
    width: 8%;
    min-width: 80px;
}

.fee-summary-table th:nth-child(2),
.fee-summary-table td:nth-child(2),
.fee-summary-table th:nth-child(3),
.fee-summary-table td:nth-child(3),
.fee-summary-table th:nth-child(4),
.fee-summary-table td:nth-child(4),
.fee-summary-table th:nth-child(5),
.fee-summary-table td:nth-child(5),
.fee-summary-table th:nth-child(7),
.fee-summary-table td:nth-child(7),
.fee-summary-table th:nth-child(8),
.fee-summary-table td:nth-child(8),
.fee-summary-table th:nth-child(9),
.fee-summary-table td:nth-child(9) {
    width: 11%;
    min-width: 100px;
}

.fee-summary-table th:nth-child(6),
.fee-summary-table td:nth-child(6) {
    width: 8%;
    min-width: 80px;
}

/* レポートページのレスポンシブ対応 */
@media (max-width: 768px) {
    .report-container {
        padding: 1rem;
    }
    
    .report-title {
        font-size: 1.8rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .report-table {
        font-size: 0.9rem;
    }
    
    .report-table th,
    .report-table td {
        padding: 0.5rem;
    }
    
    .report-table .total-label,
    .report-table .total-amount {
        font-size: 1rem;
    }
}

/* Bank Listページのテーブルカラム幅 */
.bank-list-table {
    table-layout: fixed;
}

.bank-list-table th:nth-child(1),
.bank-list-table td:nth-child(1) {
    width: 25%;
    min-width: 200px;
}

.bank-list-table th:nth-child(2),
.bank-list-table td:nth-child(2) {
    width: 20%;
    min-width: 150px;
}

.bank-list-table th:nth-child(3),
.bank-list-table td:nth-child(3),
.bank-list-table th:nth-child(4),
.bank-list-table td:nth-child(4),
.bank-list-table th:nth-child(5),
.bank-list-table td:nth-child(5) {
    width: 10%;
    min-width: 100px;
}

.bank-list-table th:nth-child(6),
.bank-list-table td:nth-child(6) {
    width: 15%;
    min-width: 150px;
}

.bank-list-table th:nth-child(7),
.bank-list-table td:nth-child(7) {
    width: 10%;
    min-width: 100px;
}

.bank-list-table .action-cell {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    vertical-align: middle;
}

.bank-list-table .action-cell .btn {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

