/* "Latest 5 IT・デジタル news" module. Namespaced (rbb-news__ / sp-news__) so it
   cannot collide with existing classes such as .panel-image-list or .lists. */

.rbb-news,
.sp-news {
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* ---------- PC ---------- */

.rbb-news {
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}
.rbb-news__head {
    background: #1f3864;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
}
.rbb-news__head h2 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .04em;
}
.rbb-news__more {
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    opacity: .92;
}
.rbb-news__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rbb-news__item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f4;
    text-decoration: none;
    color: inherit;
}
.rbb-news__item:hover {
    background: #f7f9fc;
}
.rbb-news__item:hover .rbb-news__title {
    color: #1a4f9c;
}
.rbb-news__list li:last-child .rbb-news__item {
    border-bottom: 1px solid #dfe3e8;
}
.rbb-news__thumb {
    flex: 0 0 90px;
    width: 90px;
    height: 66px;
    border-radius: 2px;
    overflow: hidden;
    background: #eceff3;
}
.rbb-news__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rbb-news__body {
    flex: 1 1 auto;
    min-width: 0;
}
.rbb-news__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 4px;
}
.rbb-news__cat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #1a4f9c;
    min-width: 0;
}
.rbb-news__cat::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 11px;
    background: #1a4f9c;
    border-radius: 1px;
}
.rbb-news__cat span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rbb-news__time {
    flex: 0 0 auto;
    font-size: 11px;
    color: #7a828b;
    white-space: nowrap;
}
.rbb-news__title {
    margin: 0 0 5px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.55;
    color: #16223a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rbb-news__summary {
    margin: 0;
    font-size: 11.5px;
    color: #7a828b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rbb-news__footlink {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 12.5px;
    color: #1a4f9c;
    text-decoration: none;
    background: #fff;
}
.rbb-news__footlink:hover {
    background: #f7f9fc;
}

/* ---------- SP ---------- */

.sp-news {
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.sp-news__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f4;
}
.sp-news__head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #16223a;
}
.sp-news__more {
    font-size: 11.5px;
    color: #1a4f9c;
    text-decoration: none;
}
.sp-news__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sp-news__item {
    display: flex;
    gap: 11px;
    padding: 11px 14px;
    border-bottom: 1px solid #eef1f4;
    text-decoration: none;
    color: inherit;
}
.sp-news__list li:last-child .sp-news__item {
    border-bottom: 0;
}
.sp-news__thumb {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    background: #eceff3;
}
.sp-news__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sp-news__body {
    flex: 1 1 auto;
    min-width: 0;
}
.sp-news__title {
    margin: 0 0 4px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    color: #16223a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sp-news__cat {
    margin: 0;
    font-size: 10.5px;
    font-weight: 700;
    color: #1a4f9c;
}
.sp-news__time {
    display: block;
    margin: 1px 0 0;
    font-size: 10.5px;
    color: #7a828b;
    white-space: nowrap;
}
.sp-news__footlink {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: #1a4f9c;
    text-decoration: none;
    background: #fff;
    border-top: 1px solid #eef1f4;
}
