.folder-list {
    list-style: none;
    padding: 0;
    display: flex; /* Added for better alignment */
    flex-wrap: wrap; /* Added for wrapping items */
    justify-content: center; /* Center items */
    gap: 1.5rem; /* gap-6 */
}

.folder-item {
    background-color: #eff6ff; /* bg-blue-50 */
    transition-property: background-color;
    transition-duration: 200ms;
    transition-timing-function: ease-in-out;
    padding: 1rem; /* p-4 */
    border-radius: 0.5rem; /* rounded-lg */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem; /* gap-3 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    width: calc(50% - 0.75rem); /* For 2 columns on smaller screens */
    box-sizing: border-box; /* Include padding in width */
}

@media (min-width: 640px) { /* sm */
    .folder-item {
        width: calc(33.333% - 1rem); /* For 3 columns on sm screens */
    }
}

@media (min-width: 768px) { /* md */
    .folder-item {
        width: calc(25% - 1.125rem); /* For 4 columns on md screens */
    }
}

@media (min-width: 1024px) { /* lg */
    .folder-item {
        width: calc(20% - 1.2rem); /* For 5 columns on lg screens */
    }
}

.folder-item:hover {
    background-color: #dbeafe; /* hover:bg-blue-100 */
}

.folder-item:nth-child(even) {
    /* No specific styling for even children without Tailwind */
}

.folder-link {
    text-decoration: none;
    color: #1e40af; /* text-blue-800 */
    font-weight: 600; /* font-semibold */
    text-align: center;
    display: block;
}

.folder-link:hover {
    color: #172b7b; /* hover:text-blue-900 */
}

.thumb-img {
    max-width: 100%;
    height: auto;
    border: 2px solid #93c5fd; /* border-blue-300 */
    border-radius: 0.375rem; /* rounded-md */
    object-fit: contain;
    background-color: #ffffff; /* bg-white */
    padding: 0.25rem; /* p-1 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    box-sizing: border-box; /* Added this line */
}

.no-image {
    color: #6b7280; /* text-gray-500 */
    font-style: italic;
    font-size: 0.875rem; /* text-sm */
    text-align: center;
}

.error-message {
    background-color: #fee2e2; /* bg-red-100 */
    border: 1px solid #ef4444; /* border-red-400 */
    color: #b91c1c; /* text-red-700 */
    padding: 1rem; /* px-4 py-3 */
    border-radius: 0.5rem; /* rounded-lg */
    text-align: center;
    margin-top: 1.5rem; /* mt-6 */
}

hr {
    border-top: 1px solid #d1d5db; /* border-t border-gray-300 */
    margin-top: 1.5rem; /* my-6 */
    margin-bottom: 1.5rem;
}

/* Individual course display styles */

.main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    margin-bottom: 1.5rem; /* mb-6 */
    border: 4px solid #60a5fa; /* border-blue-400 */
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* grid-cols-2 */
    gap: 1rem; /* gap-4 */
}

@media (min-width: 640px) { /* sm */
    .thumbnail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* sm:grid-cols-3 */
    }
}

@media (min-width: 768px) { /* md */
    .thumbnail-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* md:grid-cols-4 */
    }
}

@media (min-width: 1024px) { /* lg */
    .thumbnail-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)); /* lg:grid-cols-5 */
    }
}

.thumbnail-item img {
    width: 100%;
    height: 6rem; /* h-24 */
    object-fit: cover;
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    transition-property: border-color;
    transition-duration: 200ms;
}

.thumbnail-item img:hover {
    border-color: #3b82f6; /* hover:border-blue-500 */
}

.text-center {
    text-align: center;
}

.text-gray-600 {
    color: #4b5563;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.text-blue-600 {
    color: #2563eb;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.col-span-full {
    grid-column: span / span;
}

.text-gray-500 {
    color: #6b7280;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-semibold {
    font-weight: 600;
}

.text-blue-800 {
    color: #1e40af;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.hover\:underline:hover {
    text-decoration-line: underline;
}

/* CSVデータ表示用のスタイル */
.csv-data-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d1d5db;
}

.csv-data-section h3 {
    text-align: center;
    font-size: 1.75rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: #1d4ed8; /* text-blue-700 */
    margin-bottom: 1.5rem;
}

.csv-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    margin-bottom: 2rem; /* Add margin between tables */
}

.csv-table th, .csv-table td {
    border: 1px solid #e5e7eb; /* border-gray-200 */
    padding: 0.75rem; /* p-3 */
    text-align: left;
}

.csv-table th {
    background-color: #eff6ff; /* bg-blue-50 */
    font-weight: 600; /* font-semibold */
    color: #1e40af; /* text-blue-800 */
}

.csv-table tr:nth-child(even) {
    background-color: #f9fafb; /* bg-gray-50 */
}

.csv-table tr:hover {
    background-color: #e0f2fe; /* hover:bg-blue-50 */
}

.csv-table a {
    color: #2563eb; /* text-blue-600 */
    text-decoration: none;
}

.csv-table a:hover {
    text-decoration: underline;
}

/* New styles for horizontal tables */
.csv-data-tables-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow tables to wrap on smaller screens */
    gap: 2rem; /* Space between tables */
    justify-content: center; /* Center tables when they wrap */
}

.csv-table-container {
    flex: 1 1 calc(50% - 1rem); /* Takes about half width, with gap consideration */
    min-width: 300px; /* Minimum width for each table to prevent squishing */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

@media (max-width: 768px) {
    .csv-table-container {
        flex: 1 1 100%; /* Full width on smaller screens */
    }
}

/* Styles for the image display area */
#imageDisplayArea {
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 200px; /* Ensure space for image */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #e2e8f0;
}

#imageDisplayArea img {
    max-width: 90%;
    max-height: 400px;
    object-fit: contain;
    border: none; /* Override default img border */
    box-shadow: none; /* Override default img shadow */
}

.image-display-button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.image-display-button:hover {
    background-color: #45a049;
}

.reset-image-button-container {
    text-align: center; /* ボタンを中央寄せにするためのスタイル */
    margin-top: 10px; /* 画像表示エリアとの間に少しスペースを空ける */
    margin-bottom: 20px; /* CSVデータセクションとの間にスペースを空ける */
}

.reset-image-button {
    background-color: #008CBA; /* Blue */
    border: none;
    color: white;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.reset-image-button:hover {
    background-color: #007B9E;
}