/* ============================================================
   JBA セミナー管理プラグイン - フロントエンド CSS
   ============================================================ */

/* ---- 共通変数 ---- */
:root {
    --jba-primary:    #c8a84b; /* JBAゴールド */
    --jba-green:      #2e7d53; /* JBAグリーン */
    --jba-text:       #333333;
    --jba-text-light: #666666;
    --jba-bg:         #f7f7f7;
    --jba-border:     #e0e0e0;
    --jba-radius:     6px;
    --jba-shadow:     0 2px 8px rgba(0,0,0,.08);
}

/* ============================================================
   トップページ用: jba-seminar-top
   ============================================================ */
.jba-seminar-top {
    padding: 40px 0;
}

.jba-seminar-top__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 960px) {
    .jba-seminar-top__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .jba-seminar-top__inner {
        grid-template-columns: 1fr;
    }
}

/* カード */
.jba-seminar-top__card {
    background: #fff;
    border-radius: var(--jba-radius);
    box-shadow: var(--jba-shadow);
    overflow: hidden;
    transition: box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.jba-seminar-top__card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
}

/* サムネイル */
.jba-seminar-top__thumb-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e8e8;
}

.jba-seminar-top__thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.jba-seminar-top__card:hover .jba-seminar-top__thumb-link img {
    transform: scale(1.04);
}

.jba-seminar-top__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2e7d53 0%, #1a5438 100%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
}

/* 無料バッジ */
.jba-seminar-top__badge-free {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--jba-primary);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 3px;
    letter-spacing: .05em;
}

/* 本文エリア */
.jba-seminar-top__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* タグ */
.jba-seminar-top__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jba-seminar-top__tag {
    background: var(--jba-bg);
    border: 1px solid var(--jba-border);
    color: var(--jba-text-light);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
}

/* メタ情報 */
.jba-seminar-top__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.jba-seminar-top__status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 11px;
    color: #fff;
}

.jba-seminar-top__status.open   { background: var(--jba-green); }
.jba-seminar-top__status.closed { background: #999; }

.jba-seminar-top__format,
.jba-seminar-top__date,
.jba-seminar-top__time {
    color: var(--jba-text-light);
}

/* タイトル */
.jba-seminar-top__title {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
}

.jba-seminar-top__title a {
    color: var(--jba-text);
    text-decoration: none;
}

.jba-seminar-top__title a:hover {
    color: var(--jba-green);
}

/* 抜粋 */
.jba-seminar-top__excerpt {
    font-size: 13px;
    color: var(--jba-text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* もっと見るボタン */
.jba-seminar-top__more {
    text-align: center;
    margin-top: 32px;
}

.jba-seminar-top__more-btn {
    display: inline-block;
    background: var(--jba-primary);
    color: #fff;
    text-decoration: none;
    padding: 14px 48px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: .05em;
    transition: background .2s, opacity .2s;
}

.jba-seminar-top__more-btn:hover {
    background: #b09030;
    color: #fff;
    opacity: .9;
}

/* ============================================================
   一覧ページ用: jba-seminar-list
   ============================================================ */
.jba-seminar-list {
    padding: 32px 0;
}

/* フィルター */
.jba-seminar-list__filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--jba-border);
    border-radius: var(--jba-radius);
    padding: 14px 20px;
    margin-bottom: 32px;
}

.jba-seminar-list__filter-label {
    font-size: 13px;
    color: var(--jba-text-light);
    white-space: nowrap;
    font-weight: bold;
}

.jba-seminar-list__filter-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jba-seminar-list__filter-btn {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--jba-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--jba-text);
    text-decoration: none;
    background: #fff;
    transition: all .15s;
}

.jba-seminar-list__filter-btn:hover,
.jba-seminar-list__filter-btn.is-active {
    background: var(--jba-green);
    border-color: var(--jba-green);
    color: #fff;
}

/* グリッド */
.jba-seminar-list__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 720px) {
    .jba-seminar-list__grid {
        grid-template-columns: 1fr;
    }
}

/* キャッチコピー（一覧カード） */
.jba-seminar-list__catchcopy {
    font-size: 12px;
    font-weight: bold;
    color: var(--jba-green);
    margin: 0;
    line-height: 1.5;
    border-left: 3px solid var(--jba-primary);
    padding-left: 8px;
}

/* カード */
.jba-seminar-list__card {
    background: #fff;
    border-radius: var(--jba-radius);
    box-shadow: var(--jba-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}

.jba-seminar-list__card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.13);
}

/* サムネイル */
.jba-seminar-list__thumb-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e8e8;
}

.jba-seminar-list__thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.jba-seminar-list__card:hover .jba-seminar-list__thumb-link img {
    transform: scale(1.04);
}

.jba-seminar-list__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2e7d53 0%, #1a5438 100%);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
}

/* 無料バッジ */
.jba-seminar-list__badge-free {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--jba-primary);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 3px;
}

/* 本文エリア */
.jba-seminar-list__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* タグ */
.jba-seminar-list__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jba-seminar-list__tag {
    background: var(--jba-bg);
    border: 1px solid var(--jba-border);
    color: var(--jba-text-light);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 3px;
}

/* メタ情報 */
.jba-seminar-list__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.jba-seminar-list__status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
    color: #fff;
}

.jba-seminar-list__status.open   { background: var(--jba-green); }
.jba-seminar-list__status.closed { background: #999; }

.jba-seminar-list__format,
.jba-seminar-list__date,
.jba-seminar-list__time {
    color: var(--jba-text-light);
}

/* タイトル */
.jba-seminar-list__title {
    font-size: 17px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
}

.jba-seminar-list__title a {
    color: var(--jba-text);
    text-decoration: none;
}

.jba-seminar-list__title a:hover {
    color: var(--jba-green);
}

/* 抜粋 */
.jba-seminar-list__excerpt {
    font-size: 13px;
    color: var(--jba-text-light);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* 詳しく見るリンク */
.jba-seminar-list__link-btn {
    display: inline-block;
    color: var(--jba-green);
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid var(--jba-green);
    padding-bottom: 2px;
    align-self: flex-start;
    transition: opacity .15s;
}

.jba-seminar-list__link-btn:hover {
    opacity: .7;
}

/* 空メッセージ */
.jba-seminar-list__empty {
    text-align: center;
    padding: 48px;
    color: var(--jba-text-light);
    font-size: 15px;
    background: #fff;
    border-radius: var(--jba-radius);
    border: 1px solid var(--jba-border);
}

/* ============================================================
   一覧: 開催日行
   ============================================================ */
.jba-seminar-list__date-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
    background: #f0f7f4;
    border-left: 3px solid var(--jba-green);
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
}

.jba-seminar-list__date-label {
    font-weight: bold;
    color: var(--jba-green);
    white-space: nowrap;
    font-size: 12px;
    background: var(--jba-green);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
}

.jba-seminar-list__date-val {
    color: var(--jba-text);
    font-weight: bold;
}

/* ============================================================
   詳細ページ: jba-single-seminar
   ============================================================ */
.jba-single-seminar {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

/* ヘッダー */
.jba-single__header {
    margin-bottom: 24px;
}

.jba-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.jba-single__tag {
    background: var(--jba-bg);
    border: 1px solid var(--jba-border);
    color: var(--jba-text-light);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
}

.jba-single__title {
    font-size: 26px;
    font-weight: bold;
    line-height: 1.5;
    color: var(--jba-text);
    margin: 0;
}

@media (max-width: 600px) {
    .jba-single__title { font-size: 20px; }
}

/* アイキャッチ */
.jba-single__thumb {
    position: relative;
    margin-bottom: 32px;
    border-radius: var(--jba-radius);
    overflow: hidden;
}

.jba-single__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.jba-single__badge-free {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--jba-primary);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 3px;
}

/* 開催情報テーブル */
.jba-single__info-box {
    background: #f0f7f4;
    border: 1px solid #c5e0d5;
    border-radius: var(--jba-radius);
    padding: 20px;
    margin-bottom: 36px;
}

.jba-single__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.jba-single__table th,
.jba-single__table td {
    padding: 10px 14px;
    border-bottom: 1px solid #d5e8e0;
    text-align: left;
    vertical-align: top;
}

.jba-single__table tr:last-child th,
.jba-single__table tr:last-child td {
    border-bottom: none;
}

.jba-single__table th {
    width: 120px;
    font-weight: bold;
    color: var(--jba-green);
    white-space: nowrap;
}

/* ステータスバッジ */
.jba-single__status {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 13px;
    color: #fff;
}

.jba-single__status.open   { background: var(--jba-green); }
.jba-single__status.closed { background: #999; }

/* セクション共通 */
.jba-single__section {
    margin-bottom: 36px;
}

.jba-single__section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--jba-text);
    border-left: 4px solid var(--jba-green);
    padding-left: 12px;
    margin: 0 0 16px;
    line-height: 1.4;
}

/* セミナー情報テキスト */
.jba-single__info-text {
    background: #fff;
    border: 1px solid var(--jba-border);
    border-radius: var(--jba-radius);
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--jba-text);
}

/* 本文 */
.jba-single__content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--jba-text);
}

/* 講師情報 */
.jba-single__lecturers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .jba-single__lecturers { grid-template-columns: 1fr; }
}

.jba-single__lecturer-card {
    background: var(--jba-bg);
    border: 1px solid #c5e0d5;
    border-radius: var(--jba-radius);
    padding: 20px;
}

.jba-single__lecturer-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.jba-single__lecturer-num {
    display: inline-block;
    background: var(--jba-green);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    margin-top: 4px;
}

.jba-single__lecturer-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--jba-text);
    margin: 0 0 3px;
}

.jba-single__lecturer-title {
    font-size: 12px;
    color: var(--jba-green);
    font-weight: bold;
    margin: 0;
}

.jba-single__lecturer-profile {
    font-size: 13px;
    line-height: 1.8;
    color: var(--jba-text-light);
    margin: 0;
    border-top: 1px solid var(--jba-border);
    padding-top: 10px;
}

/* 申込みボタン */
.jba-single__apply {
    text-align: center;
    margin: 40px 0;
}

.jba-single__apply-btn {
    display: inline-block;
    background: var(--jba-primary);
    color: #fff;
    text-decoration: none;
    padding: 18px 60px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: .05em;
    transition: background .2s, transform .15s;
    box-shadow: 0 4px 12px rgba(200,168,75,.35);
}

.jba-single__apply-btn:hover {
    background: #b09030;
    color: #fff;
    transform: translateY(-2px);
}

.jba-single__apply-note {
    font-size: 13px;
    color: var(--jba-text-light);
    margin-top: 10px;
}

/* 一覧に戻る */
.jba-single__back {
    border-top: 1px solid var(--jba-border);
    padding-top: 20px;
    margin-top: 40px;
}

.jba-single__back a {
    color: var(--jba-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.jba-single__back a:hover {
    text-decoration: underline;
}

/* キャッチコピー（詳細ページ） */
.jba-single__catchcopy {
    font-size: 16px;
    font-weight: bold;
    color: var(--jba-green);
    background: #f0f7f4;
    border-left: 4px solid var(--jba-primary);
    padding: 12px 18px;
    margin: 0 0 28px;
    border-radius: 0 var(--jba-radius) var(--jba-radius) 0;
    line-height: 1.6;
}

/* トップ見出し */
.jba-seminar-top__heading {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: var(--jba-text);
    margin: 0 0 32px;
    padding-bottom: 16px;
    position: relative;
}

.jba-seminar-top__heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--jba-primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* キャッチコピー（トップカード） */
.jba-seminar-top__catchcopy {
    font-size: 11px;
    font-weight: bold;
    color: var(--jba-green);
    margin: 0;
    border-left: 3px solid var(--jba-primary);
    padding-left: 7px;
    line-height: 1.5;
}
