/* Seminar archive page (セミナーアーカイブ). Card grid — Figma node 4260-71891. */

.sn-breadcrumb-wrap,
.sa-title-band-wrap,
.sa-inner {
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 40px;
    padding-left: 40px;
    box-sizing: border-box;
}

.sa-title-band-wrap {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 20px;
    padding-bottom: 0;
}
.sa-title-band {
    display: inline-block;
    background: rgba(0, 143, 141, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    padding: 12px 24px;
    margin: 0;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
}

.sa-archive {
    padding-top: 30px;
    padding-bottom: 60px;
}
.sa-inner {
    padding-top: 0;
}

.sa-card-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-card {
    background: #FFFFFF;
    border: 1px solid #008F8D;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.sa-card:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18); transform: translateY(-1px); }

.sa-card-inner {
    display: grid;
    grid-template-columns: 253px 1fr;
    gap: 9px;
    align-items: stretch;
    padding: 16px;
}

.sa-card-thumb {
    display: block;
    width: 253px;
    height: 142px;
    overflow: hidden;
    border-radius: 4px;
    background: #DDF1F0;
    flex-shrink: 0;
    text-decoration: none;
}
.sa-card-thumb:hover .sa-card-img {
    opacity: 0.9;
}
.sa-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.sa-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    position: relative;
    padding-right: 222px; /* 206 CTA width + 16 gutter */
}
.sa-card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: -0.02em;
    color: #061C3D;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sa-card-title-link {
    color: #061C3D;
    text-decoration: none;
    transition: color 0.2s ease;
}
.sa-card-title-link:hover {
    color: #008F8D;
    text-decoration: none;
}
.sa-card-speaker {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #061C3D;
    margin: 0;
    overflow-wrap: break-word;
}

.sa-card-cta {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: 206px;
    height: 48px;
    padding: 4px 8px 4px 16px;
    box-sizing: border-box;
    background: #008F8D url(../../images/btn_background_blue_v2.png) center/cover no-repeat;
    color: #FFFFFF;
    border-radius: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: -0.02em;
    transition: opacity .15s ease;
    white-space: nowrap;
    text-decoration: none;
}
.sa-card-cta:hover {
    opacity: 0.9;
}
.sa-card-cta-text { flex: 1; }
.sa-card-cta-icon {
    display: block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.sa-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 26px;
}
.sa-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: #000000;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
    box-sizing: border-box;
}
.sa-page-link:hover:not(.current):not(.ellipsis):not(.disabled) { background: #F0F0F0; }
.sa-page-link.current {
    background: #008F8D;
    color: #FFFFFF;
    box-shadow: 0 1px 2px -1px rgba(17, 12, 34, 0.08);
}
.sa-page-link.sa-page-prev,
.sa-page-link.sa-page-next {
    background: #FFFFFF;
    border: 1px solid #ECECED;
    box-shadow: 0 1px 2px -1px rgba(17, 12, 34, 0.08);
    color: #061C3D;
}
.sa-page-link.sa-page-prev { margin-right: 24px; }
.sa-page-link.sa-page-next { margin-left: 24px; }
.sa-page-link.sa-page-prev.disabled,
.sa-page-link.sa-page-next.disabled {
    color: #C3CAD4;
    cursor: not-allowed;
    opacity: 1;
}
.sa-page-link.ellipsis {
    background: transparent;
    color: #000000;
    box-shadow: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(4px);
    cursor: default;
    pointer-events: none;
}

@media (max-width: 960px) {
    .sn-breadcrumb-wrap,
    .sa-title-band-wrap,
    .sa-inner {
        padding-right: 24px;
        padding-left: 24px;
    }
}
@media (max-width: 768px) {
    .sn-breadcrumb-wrap,
    .sa-title-band-wrap,
    .sa-inner {
        padding-right: 20px;
        padding-left: 20px;
    }
    .sa-title-band { font-size: 24px; padding: 10px 20px; }
    .sa-archive { padding-top: 20px; padding-bottom: 40px; }
    .sa-card-list { gap: 18px; }
    .sa-card-link { grid-template-columns: 180px 1fr; gap: 16px; padding: 12px; }
    .sa-card-thumb { width: 180px; height: 100px; }
    .sa-card-body { padding-right: 0; }
    .sa-card-title { font-size: 17px; line-height: 26px; }
    .sa-card-speaker { font-size: 13px; }
    .sa-card-cta {
        position: static;
        align-self: flex-start;
        margin-top: 8px;
        width: auto;
        height: 40px;
        padding: 4px 6px 4px 14px;
        font-size: 16px;
        line-height: 24px;
        gap: 10px;
    }
    .sa-card-cta-icon { width: 32px; height: 32px; }
    .sa-pagination { flex-wrap: wrap; gap: 6px; margin-top: 20px; }
    .sa-page-link { width: 36px; height: 36px; font-size: 13px; }
    .sa-page-link.sa-page-prev, .sa-page-link.sa-page-next { margin-left: 0; margin-right: 0; }
}
@media (max-width: 480px) {
    .sn-breadcrumb-wrap,
    .sa-title-band-wrap,
    .sa-inner {
        padding-right: 16px;
        padding-left: 16px;
    }
    .sa-title-band { font-size: 20px; padding: 8px 16px; }
    .sa-card-link { grid-template-columns: 1fr; gap: 12px; }
    .sa-card-thumb { width: 100%; height: 160px; }
    .sa-card-title { font-size: 16px; line-height: 24px; }
    .sa-pagination { gap: 4px; margin-top: 20px; }
    .sa-page-link { width: 32px; height: 32px; font-size: 12px; }
    .sa-page-link.ellipsis { min-width: 16px; }
}
@media (max-width: 360px) {
    .sa-pagination { gap: 4px; }
    .sa-page-link { width: 30px; height: 30px; }
}

/* Seminar Detail Page Styling (Legacy Memberregistration Parity) */
.sa-detail-container .pages-contents {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333333;
    line-height: 1.8;
}
.sa-detail-container .pages-contents section {
    margin-bottom: 30px;
}
.sa-detail-container .pages-contents h3 {
    font-size: 24px;
    font-weight: 700;
    color: #008F8D;
    padding-bottom: 12px;
    border-bottom: 2px solid #008F8D;
    margin-bottom: 20px;
}
.sa-detail-container .pages-contents h4 {
    font-size: 18px;
    font-weight: 700;
    color: #008F8D;
    margin-bottom: 12px;
}
.sa-detail-container .pages-contents .text p {
    margin-bottom: 12px;
}
.sa-detail-container iframe {
    max-width: 100%;
}
/* Legacy 一覧へ Button Style (Compact path_short button) */
.pages-forlist {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages-forlist a,
.pages-forlist .sn-single-close-btn {
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 106px;
    height: 32px;
    background: #008F8D;
    border-radius: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 32px;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity .15s ease;
    margin: 0 auto;
}

.pages-forlist a::after,
.pages-forlist .sn-single-close-btn::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 53px;
    height: 100%;
    background: url('../../images/path_short.png') right center / 100% 100% no-repeat;
    pointer-events: none;
    z-index: 1;
    border-radius: 0 8px 8px 0;
}

.pages-forlist a > span,
.pages-forlist .sn-single-close-btn > span {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pages-forlist a:hover,
.pages-forlist .sn-single-close-btn:hover {
    opacity: 0.9;
    color: #FFFFFF;
    text-decoration: none;
}

/* Member-only gate — shown instead of the card list when the visitor isn't
   logged in (see sn_render_sa_list() in register-seminar-archive-blocks.php). */
.sa-gate-inner {
    padding-top: 40px;
    padding-bottom: 80px;
}

.sa-gate-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #1A1A1A;
    text-align: center;
    margin: 0 0 60px;
}

.sa-gate-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Same visual as .sn-req-btn (page-contact.css) — the login/contact form CTA
   button — so the gate matches the rest of the member-login flow. Duplicated
   here instead of enqueuing page-contact.css just for one button. */
.sa-gate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #008F8D;
    background-image: url('../../images/Btn_background.png');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    padding: 10px 24px;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    min-width: 254px;
    height: 56px;
    box-sizing: border-box;
    letter-spacing: -0.02em;
    transition: opacity 0.3s;
}

.sa-gate-btn:hover {
    opacity: 0.9;
    color: #FFFFFF;
    text-decoration: none;
}

@media (max-width: 768px) {
    .sa-gate-text {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .sa-gate-actions { gap: 24px; }
    .sa-gate-text {
        font-size: 15px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .sa-gate-text {
        font-size: 14px;
        line-height: 1.6;
    }
}
