/* ãƒªã‚»ãƒƒãƒˆãƒ»ãƒ™ãƒ¼ã‚¹ */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #334155;
}

/* ã‚³ãƒ³ãƒ†ãƒŠ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* é¸æŠžã‚¨ãƒªã‚¢ */
.selection-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.selectbox {
    position: relative;
}

.select01 {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 3rem 1rem 1.5rem;
    font-size: 1rem;
    color: #475569;
    min-width: 220px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 400;
}

.select01:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.select01:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 無効化されたセレクトボックスのスタイル */
.select01:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
    box-shadow: none;
}

.select01:disabled:hover {
    border-color: #e2e8f0;
    box-shadow: none;
}

.select01 option {
    background: white;
    color: #475569;
    padding: 0.5rem;
}

/* ã‚«ã‚¹ã‚¿ãƒ çŸ¢å° */
.selectbox::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #94a3b8;
    pointer-events: none;
    transition: all 0.2s ease;
}

.selectbox:hover::after {
    border-top-color: #64748b;
}

/* 無効化されたセレクトボックスの矢印 */
.selectbox:has(.select01:disabled)::after {
    border-top-color: #cbd5e1;
}

/* ãƒ­ãƒ¼ãƒ‡ã‚£ãƒ³ã‚° */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* ãƒ†ãƒ¼ãƒ–ãƒ« */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 2rem auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #374151;
}

table thead {
    background-color: #f8f9fa;
}

table thead th {
    color: #374151;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    font-size: 0.875rem;
    border-bottom: 2px solid #374151;
    border-right: 1px solid #e5e7eb;
    /* ç¸¦ç½«ç·šã‚'è–„ã */
}

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

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

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

table tbody tr:hover {
    background-color: #f9fafb;
}

table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

table tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #e5e7eb;
    /* ç¸¦ç½«ç·šã‚'è–„ã */
}

table th:last-child,
table td:last-child {
    border-right: none;
}

.txt {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ç"»åƒ */
.simg {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.simg:hover {
    transform: scale(1.05);
}

/* ã‚«ãƒ©ãƒ¼ãƒŸãƒ¼ã‚·ãƒ§ãƒƒãƒ—ãƒªãƒ³ã‚¯ */
.colorme-links h6 {
    margin: 0 0 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.colorme-links a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    margin: 0.125rem 0.25rem 0.125rem 0;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.colorme-links a:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ãƒ¬ã‚¹ãƒãƒ³ã‚·ãƒ– */
@media (max-width: 768px) {
    .container {
        padding: 1rem 0.5rem;
    }

    .selection-area {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .select01 {
        min-width: 280px;
        width: 100%;
        max-width: 320px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        box-shadow: none;
        border-radius: 0;
        margin: 1rem 0;
    }

    table thead {
        display: none;
    }

    table tbody {
        display: block;
    }

    table tr {
        display: block;
        margin-bottom: 1rem;
        background: white;
        border: 2px solid #374151;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        padding: 0;
        white-space: normal;
    }

    table td {
        display: block;
        padding: 0.75rem 1rem;
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
        /* ãƒ¢ãƒã‚¤ãƒ«ã§ã‚‚è–„ã„ç½«ç·š */
        position: relative;
        padding-left: 8rem;
        border-right: none;
    }

    table td:last-child {
        border-bottom: none;
        border-radius: 0 0 6px 6px;
    }

    table td::before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 1rem;
        top: 0.75rem;
        font-weight: 600;
        color: #6b7280;
        font-size: 0.75rem;
        width: 6rem;
    }

    .colorme-links a {
        margin: 0.125rem;
        display: inline-block;
    }
}