/* Tailwind CSS Base */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: 'Noto Sans JP', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    line-height: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

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

b, strong {
    font-weight: bolder;
}

/* Forms */
button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, select {
    text-transform: none;
}

button, [type='button'], [type='reset'], [type='submit'] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

/* Tables */
table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

/* Lists */
ol, ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Images */
img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
}

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

/* Utility Classes */
.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-white {
    background-color: #ffffff;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.text-white {
    color: #ffffff;
}

.text-black {
    color: #000000;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-800 {
    color: #1f2937;
}

.text-blue-500 {
    color: #3b82f6;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-red-700 {
    color: #b91c1c;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Layout */
.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.inline {
    display: inline;
}

.grid {
    display: grid;
}

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

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

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

.justify-end {
    justify-content: flex-end;
}

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

.gap-4 {
    gap: 1rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Spacing */
.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

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

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

.mr-3 {
    margin-right: 0.75rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-b-2 {
    border-bottom-width: 2px;
}

.border-r {
    border-right-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-blue-300 {
    border-color: #93c5fd;
}

.border-red-300 {
    border-color: #fca5a5;
}

.border-blue-500 {
    border-color: #3b82f6;
}

.border-red-500 {
    border-color: #ef4444;
}

.border-collapse {
    border-collapse: collapse;
}

/* Border Radius */
.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-t-lg {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* Effects */
.hover\:opacity-80:hover {
    opacity: 0.8;
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover\:bg-gray-300:hover {
    background-color: #d1d5db;
}

.hover\:text-blue-600:hover {
    color: #2563eb;
}

.hover\:text-gray-800:hover {
    color: #1f2937;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Overflow */
.overflow-x-auto {
    overflow-x: auto;
}

/* Width & Height */
.w-full {
    width: 100%;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

/* Text */
.text-left {
    text-align: left;
}

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

.whitespace-nowrap {
    white-space: nowrap;
}

/* Transition */
.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Ring */
.ring-2 {
    box-shadow: 0 0 0 2px;
}

.ring-blue-500 {
    box-shadow: 0 0 0 2px #3b82f6;
}

/* Additional colors */
.text-red-500 {
    color: #ef4444;
}

.text-green-500 {
    color: #10b981;
}

.text-yellow-500 {
    color: #f59e0b;
}

.text-gray-500 {
    color: #6b7280;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.opacity-50 {
    opacity: 0.5;
}

/* Additional backgrounds */
.bg-yellow-50 {
    background-color: #fef3c7;
}

/* Additional borders */
.border-yellow-200 {
    border-color: #fde68a;
}

/* Additional text colors */
.text-yellow-800 {
    color: #92400e;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .flex-wrap {
        flex-wrap: wrap;
    }
    
    .gap-2 {
        gap: 0.5rem;
    }
    
    .space-x-4 > * + * {
        margin-left: 0;
    }
    
    .space-x-2 > * + * {
        margin-left: 0.5rem;
    }
    
    .overflow-x-scroll {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}