/* ============================================================
   open.css — オープン講座一覧ページ固有CSS
   ============================================================ */

/* ビルボード: サービスページ用の左オフセット無効化 */
@media (min-width: 1200px) {
    .article-header__inner {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   S2: 講座カード（open-program-card）
   縦型: 上画像 + 下テキスト、3カラムグリッド
   ============================================================ */
.open-programs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 780px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .open-programs {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
        gap: 24px;
    }
}

.open-program-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 36, 64, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.open-program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 36, 64, 0.12);
}

.open-program-card__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.open-program-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.open-program-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.open-program-card__tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563EB;
    background: linear-gradient(135deg, #EEF2FF, #DBEAFE);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.open-program-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F2440;
    line-height: 1.4;
    margin-bottom: 12px;
}

.open-program-card__desc {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.open-program-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex: 1;
}

.open-program-card__features li {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #4B5563;
    padding-left: 1.2em;
    position: relative;
    margin-bottom: 6px;
}

.open-program-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: #F97316;
    border-radius: 50%;
}

.open-program-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2563EB;
    text-decoration: none;
    padding: 10px 0;
    border-top: 1px solid #E5E7EB;
    transition: color 0.2s ease;
    margin-top: auto;
}

.open-program-card__btn:hover {
    color: #1D4ED8;
}

.open-program-card__btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.open-program-card__btn:hover .open-program-card__btn-arrow {
    transform: translateX(4px);
}

/* ============================================================
   S3: 選び方ガイド（open-guide）
   ============================================================ */
.open-guide {
    max-width: 780px;
    margin: 0 auto;
}

.open-guide__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.7;
    letter-spacing: 0.04em;
}

.open-guide__table thead th {
    background: linear-gradient(135deg, #0F2440, #1E3A5F);
    color: #fff;
    font-weight: 700;
    padding: 14px 20px;
    text-align: left;
    font-size: 0.85rem;
}

.open-guide__table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.open-guide__table thead th:last-child {
    border-radius: 0 8px 0 0;
    width: 200px;
}

.open-guide__table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid #E5E7EB;
    color: #374151;
}

.open-guide__table tbody tr:nth-child(even) {
    background: #F8FAFB;
}

.open-guide__table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.open-guide__table tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

.open-guide__table tbody td a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.open-guide__table tbody td a:hover {
    text-decoration: underline;
}

.open-guide__note {
    margin-top: 24px;
    font-size: 0.88rem;
    color: #6B7280;
    text-align: center;
    line-height: 1.7;
}

/* ============================================================
   モバイル対応
   ============================================================ */
@media (max-width: 767px) {
    .open-programs {
        gap: 24px;
        padding: 0 4px;
    }

    .open-program-card__body {
        padding: 16px;
    }

    .open-program-card__title {
        font-size: 1rem;
    }

    .open-program-card__desc {
        font-size: 0.85rem;
    }

    /* テーブル: モバイルではカード型に変換 */
    .open-guide__table,
    .open-guide__table thead,
    .open-guide__table tbody,
    .open-guide__table tr,
    .open-guide__table td,
    .open-guide__table th {
        display: block;
    }

    .open-guide__table thead {
        display: none;
    }

    .open-guide__table tbody tr {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 6px rgba(15, 36, 64, 0.06);
        margin-bottom: 12px;
        overflow: hidden;
    }

    .open-guide__table tbody tr:nth-child(even) {
        background: #fff;
    }

    .open-guide__table tbody td {
        padding: 12px 16px;
        border-bottom: none;
    }

    .open-guide__table tbody td:first-child {
        font-weight: 500;
        color: #0F2440;
        padding-bottom: 4px;
    }

    .open-guide__table tbody td:last-child {
        padding-top: 4px;
        padding-bottom: 14px;
        font-size: 0.85rem;
    }

    .open-guide__table tbody td:last-child::before {
        content: '→ ';
        color: #F97316;
        font-weight: 700;
    }

    .open-guide__table tbody tr:last-child td:first-child,
    .open-guide__table tbody tr:last-child td:last-child {
        border-radius: 0;
    }
}
