/* テーブルをスクロール可能なフレーム内に表示 */
.table-frame {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ccc;
}

/* テーブル全体のスタイル */
.sikaku-table {
    width: 100%;
    border-collapse: collapse;
}

/* ヘッダー行を上部に固定 */
.sikaku-table thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 24px;
    background: linear-gradient(165deg, #f6faff 0%, #edf5ff 55%, #e3efff 100%);
    min-height: 100vh;
    box-sizing: border-box;
}

h1 {
    color: #1c3e77;
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 24px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d6e4f6;
    box-shadow: 0 12px 30px rgba(20, 41, 78, 0.1);
}

th, td {
    padding: 16px;
    text-align: center;
}

th {
    background: linear-gradient(135deg, #3975d9 0%, #2555a8 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #1f4894;
}

td {
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    font-size: 1em;
    transition: all 0.3s ease;
}

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background-color: #f2f7ff;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* サイト先リンク行のスタイル - グループの区切りを明確に */
.site-link {
    background-color: #f5f8fc !important;
    font-size: 0.9em;
    text-align: left;
    padding: 8px 20px !important;
    border-top: 2px solid #3d6cb3;
    border-bottom: 1px solid #e0e0e0;
    color: #3b4f72;
}

/* サイト先リンク行の上に余白を追加してグループを分離 */
tbody tr:has(.site-link) {
    border-top: 8px solid transparent;
}

tbody tr:has(.site-link):hover {
    background-color: #f5f8fc !important;
    transform: none;
    box-shadow: none;
}

@media (max-width: 700px) {
    body {
        padding: 12px;
    }

    th, td {
        padding: 10px;
        font-size: 0.9rem;
    }
}