/*===========================================
  事務所イベント (office_event) ページ用CSS
  archive-office_event.php / taxonomy-tx_event.php / single-office_event.php
===========================================*/


/*-----------------------------------------
  アーカイブ・フィルターボタン
  (.news.news_v2 と同等のスタイルを .office_event.office_event_v2 に適用)
-----------------------------------------*/

main.office_event.office_event_v2 .content2 > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

main.office_event.office_event_v2 .content2 > .refine.active,
main.office_event.office_event_v2 .content2 .refine.active {
    border: 1px solid #222222;
    background-color: #222222;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-size: 13px;
    line-height: 1;
    padding: 7px 8px 8px;
    margin-bottom: 8px;
    cursor: pointer;
    min-width: 72px;
    width: max-content;
    font-weight: bold;
}

main.office_event.office_event_v2 .content2 > .refine,
main.office_event.office_event_v2 .content2 .refine {
    border: 1px solid #222222;
    background-color: #ffffff;
    color: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-size: 13px;
    line-height: 1;
    padding: 7px 8px 8px;
    margin-bottom: 8px;
    cursor: pointer;
    min-width: 72px;
    width: max-content;
    font-weight: bold;
}

/*-----------------------------------------
  カードグリッド
-----------------------------------------*/

.office_event.office_event_v2 .content_roop a {
    flex-direction: column;
    align-items: flex-start;
    justify-content: stretch;
    gap: 12px;
    width: 48%;
    margin: 0;
}

.office_event.office_event_v2 .content_roop a > div:first-child {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.office_event.office_event_v2 .content_roop a > div:first-child img {
    width: 100%;
    height: 100% !important;
    transition: 0.3s;
    object-fit: cover;
}

.office_event.office_event_v2 .content_roop a:hover > div:first-child img {
    transform: scale(1.05);
}

.office_event.office_event_v2 .content_roop a .title {
    font-size: 13px;
    line-height: 1.5;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.office_event.office_event_v2 .content_roop a time {
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
    letter-spacing: 0.02em;
    color: #bebebf;
}

/*-----------------------------------------
  single-office_event
-----------------------------------------*/

main.single-office_event.single-office_event_v2.pages_main {
    background-color: #ffffff;
    padding-bottom: 80px;
}
