/* === FS Seminar Cards === */
:root {
    --fs-primary: #3faeb2;
    --fs-primary-dark: #2d8a8e;
    --fs-primary-light: #e7f7f8;
    --fs-green: #4fce80;
    --fs-green-dark: #3ab86a;
    --fs-white: #ffffff;
    --fs-gray-100: #f5f5f5;
    --fs-gray-200: #d9d9d9;
    --fs-gray-300: #ccc;
    --fs-gray-500: #888;
    --fs-gray-700: #444;
    --fs-gray-900: #333;
    --fs-radius: 5px;
}

/* ===== Common ===== */
.fs-card {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--fs-gray-900);
    margin: 24px 0;
}
.fs-card * { box-sizing: border-box; }
.fs-card a { text-decoration: none; }

/* Tags */
.fs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.fs-tag {
    display: inline-block;
    padding: 3px 14px;
    border: 1px solid var(--fs-primary);
    border-radius: 4px;
    font-size: 13px;
    color: var(--fs-primary) !important;
    background: var(--fs-white);
    text-decoration: none !important;
    transition: all 0.2s;
}
a.fs-tag:hover {
    background: var(--fs-primary);
    color: var(--fs-white) !important;
}

/* Title */
.fs-card .fs-card-title,
.fs-card h3.fs-card-title {
    font-size: 20px !important;
    color: var(--fs-gray-900) !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.5;
    color: var(--fs-gray-900);
}

/* Summary */
.fs-card-summary {
    font-size: 16px;
    color: var(--fs-gray-900);
    margin: 0 0 16px;
    line-height: 1.7;
}

/* Info Table */
.fs-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 10px;
}
/* 共通セルスタイル */
.fs-info-table th,
.fs-info-table td {
    font-size: 16px;
    font-weight: 400;
    color: var(--fs-gray-900);
    padding: 12px 14px;
    border-bottom: 1px solid var(--fs-gray-200);
    text-align: left;
    vertical-align: middle;
}
.fs-info-table th {
    background: none;
    white-space: nowrap;
    width: 80px;
}
/* 1行目: 枠線+背景色ヘッダ */
.fs-info-table tr:first-child th,
.fs-info-table tr:first-child td {
    border: 1px solid var(--fs-gray-200);
    height: 48px;
}
.fs-info-table tr:first-child th {
    background: var(--fs-primary-light);
    text-align: center;
}

/* Info Grid (row-based) — Figma準拠テーブルライクレイアウト */
.fs-info-grid {
    display: flex;
    flex-direction: column;
    margin: 0 0 10px;
}
/* 各行: フル幅 */
.fs-info-row {
    display: flex;
    border-bottom: 1px solid var(--fs-gray-200);
}
.fs-info-row:last-child {
    border-bottom: none;
}
/* 各セル: ラベル+値の横並び */
.fs-info-cell {
    flex: 1;
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
}
.fs-info-cell-wide {
    flex: 1 1 100%;
}
/* 1行目: 枠線+背景色ヘッダ */
.fs-info-row-header {
    border: 1px solid var(--fs-gray-200);
}
.fs-info-row-header .fs-info-cell + .fs-info-cell {
    border-left: 1px solid var(--fs-gray-200);
}
.fs-info-row-header .fs-info-label {
    background: var(--fs-primary-light);
    text-align: center;
    padding: 10px 8px;
    border-right: 1px solid var(--fs-gray-200);
}
.fs-info-row-header .fs-info-value {
    padding: 10px 14px;
}
/* 通常ラベル・値 */
.fs-info-label {
    font-size: 16px;
    font-weight: 400;
    color: var(--fs-gray-900);
    padding: 12px 8px 12px 14px;
    white-space: nowrap;
}
.fs-info-value {
    font-size: 16px;
    font-weight: 400;
    color: var(--fs-gray-900);
    padding: 12px 14px;
}

@media (max-width: 768px) {
    .fs-info-row {
        flex-direction: column;
    }
    .fs-info-cell {
        grid-template-columns: 70px 1fr;
    }
    .fs-info-row-header {
        border: none;
        border-bottom: 1px solid var(--fs-gray-200);
    }
    .fs-info-row-header .fs-info-cell + .fs-info-cell {
        border-left: none;
        border-top: 1px solid var(--fs-gray-200);
    }
    .fs-info-row-header .fs-info-label {
        background: none;
        text-align: left;
        border-right: none;
        padding: 10px 8px 10px 0;
        font-size: 13px;
        color: var(--fs-gray-500, #888);
    }
    .fs-info-row-header .fs-info-value {
        padding: 10px 0;
    }
    .fs-info-label {
        padding: 10px 8px 10px 0;
        font-size: 13px;
        color: var(--fs-gray-500, #888);
    }
    .fs-info-value {
        padding: 10px 0;
        font-size: 15px;
    }
}

/* Venue Link */
.fs-venue-link {
    display: inline-block;
    float: right;
    padding: 4px 16px;
    margin: -4px 0;
    background: var(--fs-white);
    border: 1px solid var(--fs-primary);
    color: var(--fs-primary) !important;
    border-radius: 30px;
    font-size: 16px;
    text-decoration: none !important;
    vertical-align: middle;
    transition: all 0.2s;
}
.fs-venue-link:hover {
    background: var(--fs-primary);
    color: var(--fs-white) !important;
}

/* Buttons */
.fs-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.fs-btn-detail {
    background: #7B7A7A;
    color: var(--fs-white) !important;
    flex: 1;
}
.fs-btn-detail:hover {
    background: #5a5959;
    color: var(--fs-white) !important;
}
.fs-btn-apply {
    background: var(--fs-primary);
    color: var(--fs-white) !important;
    flex: 1;
}
.fs-btn-apply:hover {
    background: var(--fs-primary-dark);
    color: var(--fs-white) !important;
}

/* Outline buttons (Top card) */
.fs-btn-outline {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid var(--fs-green);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fs-green) !important;
    background: var(--fs-white);
    text-decoration: none !important;
    transition: all 0.2s;
}
.fs-btn-outline:hover {
    background: var(--fs-green);
    color: var(--fs-white) !important;
}

/* Card Actions */
.fs-card-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.fs-card-actions .fs-btn {
    flex: 1;
}
.fs-card-actions-center {
    justify-content: center;
}
.fs-card-actions-center .fs-btn.fs-btn-apply,
.fs-card-actions-center .fs-btn {
    flex: none;
    min-width: 300px;
    max-width: 500px;
    width: 60%;
}
.fs-card-actions-split {
    justify-content: space-between;
}
.fs-btn-center {
    flex: none !important;
    width: 60%;
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto;
}

/* Closed state */
.fs-link-closed {
    display: inline-block;
    padding: 10px 24px;
    background: var(--fs-gray-200);
    color: var(--fs-gray-500);
    border-radius: 30px;
    font-size: 14px;
}

/* ===== Archive Card (横型フルカード) ===== */
.fs-card-archive {
    background: var(--fs-white);
    border: 1px solid var(--fs-gray-200);
    border-radius: var(--fs-radius);
    overflow: hidden;
    box-shadow: 0 4px 4px rgba(0,0,0,0.25);
}
.fs-card-archive-top {
    display: flex;
    gap: 0;
    padding: 26px 30px 0;
}
.fs-card-header {
    flex: 1;
    padding: 4px 0 16px 24px;
}
.fs-card-archive-inner {
    display: flex;
    gap: 0;
}
.fs-card-thumb {
    width: 286px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
}
.fs-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.fs-card-body {
    padding: 16px 30px 30px;
}

/* Archive responsive — 縦型カードに切り替え */
@media (max-width: 768px) {
    /* レイアウトを縦積みに */
    .fs-card-archive-top {
        flex-direction: column;
        padding: 0;
    }
    .fs-card-archive-inner {
        flex-direction: column;
    }
    /* サムネイルを上部全幅 */
    .fs-card-thumb {
        width: 100%;
        height: 200px;
    }
    /* ヘッダー（タイトル・概要）*/
    .fs-card-header {
        padding: 20px 20px 12px;
    }
    .fs-card-archive .fs-card-title {
        font-size: 18px;
    }
    .fs-card-archive .fs-card-summary {
        font-size: 14px;
        margin-bottom: 8px;
    }
    /* ボディ（テーブル・ボタン）*/
    .fs-card-body {
        padding: 0 20px 20px;
    }
    /* ボタンを縦積み全幅 */
    .fs-card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .fs-card-actions .fs-btn {
        width: 100%;
        min-width: 0;
        text-align: center;
        box-sizing: border-box;
    }
    .fs-card-actions-center .fs-btn.fs-btn-apply,
    .fs-card-actions-center .fs-btn {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
    .fs-btn-center {
        width: 100%;
        min-width: 0 !important;
        max-width: none;
    }

    /* 情報テーブル: 全セルを1列表示 */
    .fs-info-table,
    .fs-info-table tbody,
    .fs-info-table tr,
    .fs-info-table th,
    .fs-info-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .fs-info-table th {
        padding: 8px 0 2px;
        font-size: 12px;
        color: var(--fs-gray-500, #888);
        border-bottom: none;
    }
    .fs-info-table td {
        padding: 2px 0 10px;
        border-bottom: 1px solid var(--fs-gray-200);
    }
    /* 1行目の枠線スタイルをリセット */
    .fs-info-table tr:first-child th,
    .fs-info-table tr:first-child td {
        border: none;
        height: auto;
        background: none;
        text-align: left;
    }
    .fs-info-table tr:first-child td {
        border-bottom: 1px solid var(--fs-gray-200);
    }
    .fs-info-table tr:first-child th {
        background: none;
        color: var(--fs-gray-500, #888);
    }
    .fs-info-table tr {
        border-bottom: none;
        padding: 4px 0;
    }
    .fs-info-table th {
        border-bottom: none;
    }
    .fs-venue-link {
        float: none;
        display: block;
        width: fit-content;
        margin: 8px 0 0;
    }
}

/* ===== Top Card (縦型カード) ===== */
.fs-card-top {
    background: var(--fs-white);
    border: 1px solid var(--fs-gray-200);
    border-radius: var(--fs-radius);
    overflow: hidden;
    box-shadow: 0 4px 4px rgba(0,0,0,0.25);
    max-width: 320px;
}
.fs-card-top-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}
.fs-card-top-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.fs-card-top-body {
    padding: 20px;
}
.fs-card-top .fs-card-title {
    font-size: 16px;
}
.fs-card-top .fs-info-compact th {
    width: 70px;
    padding: 6px 10px;
    font-size: 12px;
}
.fs-card-top .fs-info-compact td {
    padding: 6px 10px;
    font-size: 12px;
}
.fs-card-top .fs-card-actions-split {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.fs-card-top .fs-card-actions-split .fs-btn {
    font-size: 14px;
    padding: 10px 0;
}

/* ===== Page Card (情報テーブル+ボタン) ===== */
.fs-card-page {
    background: var(--fs-white);
    border: 1px solid var(--fs-gray-200);
    border-radius: var(--fs-radius);
    padding: 24px;
    box-shadow: 0 4px 4px rgba(0,0,0,0.25);
}
.fs-card-page .fs-card-actions {
    margin-top: 24px;
}

/* ===== List (一覧表示) ===== */
.fs-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
}
.fs-list .fs-card {
    margin: 0;
}
.fs-empty {
    text-align: center;
    color: var(--fs-gray-500);
    padding: 40px 0;
    font-size: 15px;
}

/* ===== Top Card Grid (トップページ用グリッド) ===== */
.fs-topcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.fs-topcard-grid .fs-card {
    margin: 0;
    max-width: none;
}
@media (max-width: 640px) {
    .fs-topcard-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Archive Page Layout ===== */
.form-wrapper.fs-archive-wrapper {
    max-width: var(--wp--style--global--content-size, 1340px);
}

/* ===== Archive Page Heading ===== */
.fs-archive-heading {
    font-size: 36px;
    font-weight: 400;
    color: var(--fs-gray-900);
    margin: 0 0 32px;
    padding-bottom: 0;
    border-bottom: none;
    text-align: center;
}
.fs-archive-heading::after {
    content: '';
    display: block;
    width: 20px;
    height: 3px;
    background: var(--fs-primary);
    margin: 12px auto 0;
}
.fs-archive-back {
    margin: 0 0 20px;
    font-size: 14px;
}
.fs-archive-back a {
    color: var(--fs-primary);
    text-decoration: none;
}
.fs-archive-back a:hover {
    color: var(--fs-primary-dark);
    text-decoration: underline;
}

/* ===== Pagination ===== */
.fs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    font-family: 'Noto Sans JP', sans-serif;
}
.fs-pagination a,
.fs-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 16px;
    transition: all 0.2s;
}
.fs-pagination .fs-page-num {
    width: 48px;
    height: 48px;
    border: 1px solid var(--fs-primary);
    background: var(--fs-white);
    color: var(--fs-primary) !important;
}
.fs-pagination .fs-page-num.fs-page-current {
    background: var(--fs-gray-900);
    border-color: var(--fs-primary);
    color: var(--fs-white) !important;
}
.fs-pagination .fs-page-num:hover:not(.fs-page-current) {
    background: var(--fs-primary-light);
}
.fs-pagination .fs-page-prev,
.fs-pagination .fs-page-next {
    color: var(--fs-primary) !important;
    font-size: 16px;
    padding: 0 8px;
}
.fs-pagination .fs-page-prev:hover,
.fs-pagination .fs-page-next:hover {
    color: var(--fs-primary-dark) !important;
}
.fs-pagination .fs-page-dots {
    color: var(--fs-primary);
    font-size: 16px;
    padding: 0 4px;
}

/* ===== Info List ([seminar_info_list]) ===== */
.fs-info-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.fs-info-list-item {
    /* 各セミナーブロック */
}
.fs-info-list-item .fs-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 12px;
    line-height: 1.5;
}
.fs-info-list-item .fs-card-page {
    margin: 0;
}
@media (max-width: 640px) {
    .fs-info-list-item .fs-card-title {
        font-size: 17px;
    }
}
