
/* A Modern CSS Reset */
*,*::before,*::after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role="list"],ol[role="list"]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}

body {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-weight: 500;
    background-color: #fafafa;
}

/* bootstrap 上書き */
.table {
    font-size: .95rem;
    box-shadow: none;
}
.table thead th {
    font-weight: bold;
}
.table th,
.table td {
    vertical-align: middle;
}
.table input[type="checkbox"] {
    transform: scale(1.2);
    vertical-align: middle;
}
.table>:not(caption)>*>* {
    padding: 0.75rem;
}

.card {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
}
.card-header-tabs .nav-link.active {
    background-color: inherit;
}
.card-title {
    font-weight: bold;
}

.badge.bg-secondary {
    background-color: #eee !important;
}
.btn-secondary {
    border-color: #c6c6c6 !important;
}

/* Section Diff Styles */
.section-diff-container {
    margin-top: 1rem;
}

.diff-section {
    margin-bottom: 1rem;
}

.simple-diff .diff-removed,
.simple-diff .diff-added {
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.simple-diff .diff-removed {
    background-color: #ffeaea;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.simple-diff .diff-added {
    background-color: #eafaf1;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.text-diff {
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 0.875rem;
    border: 1px solid #e1e4e8;
    border-radius: 0.375rem;
    overflow-x: auto;
}

.diff-line {
    display: flex;
    border-bottom: 1px solid #f6f8fa;
    min-height: 1.5rem;
}

.diff-line:last-child {
    border-bottom: none;
}

.diff-line .line-number {
    width: 2.5rem;
    text-align: center;
    background-color: #f6f8fa;
    border-right: 1px solid #e1e4e8;
    font-size: 0.75rem;
    color: #6a737d;
    padding: 0.25rem 0.5rem;
    user-select: none;
    flex-shrink: 0;
}

.diff-line .line-content {
    padding: 0.25rem 0.5rem;
    white-space: pre-wrap;
    word-break: break-all;
    flex: 1;
}

.diff-line.diff-unchanged {
    background-color: #fff;
}

.diff-line.diff-removed {
    background-color: #ffeef0;
}

.diff-line.diff-removed .line-number {
    background-color: #fdb8c0;
    color: #24292e;
}

.diff-line.diff-removed .line-content {
    background-color: #ffeef0;
}

.diff-line.diff-added {
    background-color: #f0fff4;
}

.diff-line.diff-added .line-number {
    background-color: #acf2bd;
    color: #24292e;
}

.diff-line.diff-added .line-content {
    background-color: #f0fff4;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .text-diff {
        font-size: 0.75rem;
    }
    
    .diff-line .line-number {
        width: 2rem;
        font-size: 0.65rem;
    }
    
    .diff-line .line-content {
        padding: 0.25rem;
    }
}
