/*
 * page-admission-ao.css — AO入試 ページ固有調整 (最小)
 * 共通パーツ (figma-components.css) 利用:
 *   - ABOUT     → c-text-card
 *   - WELCOME   → c-check-item
 *   - SCHEDULE  → c-step-row
 *   - SELECTION → c-feature-numbered--horizontal --success
 * ここでは各グリッドの列数指定のみ残す。
 */

.page-admission-ao {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    padding: 50px 0 0;
    background: #fff;
}

/* ABOUT: 2列 */
.page-admission-ao__about-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

/* WELCOME: 4列 */
.page-admission-ao__welcome-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}
.page-admission-ao__welcome-grid > .c-check-item {
    max-width: none;
    width: 100%;
    height: 100%;
}

/* SCHEDULE: 縦積み (c-step-row の間隔) */
.page-admission-ao__step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* SELECTION: 2列 */
.page-admission-ao__selection-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .page-admission-ao { gap: 30px; padding: 20px 0 0; }
    .page-admission-ao__about-grid { grid-template-columns: 1fr; }
    .page-admission-ao__welcome-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .page-admission-ao__selection-grid { grid-template-columns: 1fr; }
}

/* ==================================================================
 * 2026-10-19 Figma 準拠 調整 (PC)
 * AO / 推薦 / 一般 / 企業推薦 の 4 ページ共通 (.page-admission-ao ラッパー)
 * - ABOUT 本文カード: pad20・見出し24px・本文15px/24px・中央揃え
 * - 対象者 Check Item: pad16/20・gap14
 * - SELECTION Feature Item: 縦積み中央 (番号→見出し26px→説明16px)、濃紺枠・青丸
 * ================================================================== */
@media screen and (min-width: 769px) {
    .page-admission-ao .page-admission-ao__about-grid > .c-text-card.c-text-card {
        justify-content: flex-start;
        gap: 10px;
        padding: 20px;
    }
    .page-admission-ao .page-admission-ao__about-grid .c-text-card__title.c-text-card__title {
        font-size: 24px;
        line-height: 29px;
        text-align: center;
    }
    .page-admission-ao .page-admission-ao__about-grid .c-text-card__body.c-text-card__body {
        font-size: 15px;
        line-height: 24px;
        text-align: center;
    }

    .page-admission-ao .c-check-item.c-check-item {
        gap: 14px;
        padding: 16px 20px;
    }

    .page-admission-ao .page-admission-ao__selection-grid > .c-feature-numbered.c-feature-numbered {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px;
        text-align: center;
        border-color: var(--ytc-border-strong, #39364e);
    }
    .page-admission-ao .page-admission-ao__selection-grid .c-feature-numbered__no.c-feature-numbered__no {
        width: 34px;
        height: 34px;
        font-size: 14px;
        background: var(--ytc-bg-brand, #439fff);
        border: 1px solid var(--ytc-border-strong, #39364e);
        box-sizing: border-box;
    }
    .page-admission-ao .page-admission-ao__selection-grid .c-feature-numbered__body.c-feature-numbered__body {
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    .page-admission-ao .page-admission-ao__selection-grid .c-feature-numbered__title.c-feature-numbered__title {
        font-size: 26px;
        line-height: 39px;
    }
    .page-admission-ao .page-admission-ao__selection-grid .c-feature-numbered__desc.c-feature-numbered__desc {
        font-size: 16px;
        line-height: 26px;
        color: var(--ytc-text-secondary, #787878);
    }
}

/* 2026-10-19 Figma 準拠 (PC): 一般・企業推薦の SELECTION はカード間 50px + 点線でつなぐ (AO は 20px・線なし) */
@media screen and (min-width: 769px) {
    .page-admission-general .page-admission-ao__selection-grid,
    .page-admission-company .page-admission-ao__selection-grid {
        gap: 50px;
    }
    .page-admission-general .page-admission-ao__selection-grid > .c-feature-numbered.c-feature-numbered,
    .page-admission-company .page-admission-ao__selection-grid > .c-feature-numbered.c-feature-numbered {
        position: relative;
        overflow: visible;
    }
    .page-admission-general .page-admission-ao__selection-grid > .c-feature-numbered:not(:last-child)::after,
    .page-admission-company .page-admission-ao__selection-grid > .c-feature-numbered:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        right: -41px;
        width: 30px;
        border-top: 1px dashed var(--ytc-border-strong, #39364e);
    }
}

/* ----------------------------------------------------------
   入試日程表 (2026-10-21 / template-parts/exam-dates.php)
   推薦・一般はスケジュール内、AO は DATES セクションに表示
   ---------------------------------------------------------- */
.c-exam-dates {
    width: 100%;
    margin-top: 40px;
    font-family: var(--ytc-font-jp, "Noto Sans JP", sans-serif);
}
.page-admission-ao__dates .c-exam-dates { margin-top: 0; }
.c-exam-dates + .c-exam-dates { margin-top: 50px; }
.c-exam-dates__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ytc-text-primary, #000);
    text-align: center;
}
.c-exam-dates__lead.c-exam-dates__lead {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}
.c-exam-dates__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--ytc-border-strong, #39364e);
    border-radius: 10px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.5;
}
.c-exam-dates__table th,
.c-exam-dates__table td {
    padding: 14px 12px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--ytc-border-strong, #39364e);
    border-right: 1px solid #d0d0d8;
}
.c-exam-dates__table th:last-child,
.c-exam-dates__table td:last-child { border-right: 0; }
.c-exam-dates__table tbody tr:last-child > * { border-bottom: 0; }
.c-exam-dates__table thead th {
    color: #fff;
    font-weight: 700;
    background: var(--ytc-bg-brand, #439fff);
}
.c-exam-dates__table thead th:nth-child(even) { background: var(--ytc-bg-brand-strong, #2f8aee); }
.c-exam-dates__round {
    font-weight: 700;
    background: #f4faff;
    white-space: nowrap;
}
.c-exam-dates__no,
.c-exam-dates__date,
.c-exam-dates__badge { display: block; }
.c-exam-dates__date { font-size: 17px; }
.c-exam-dates__badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #8a8a95;
    border-radius: 999px;
}
.c-exam-dates__row--closed td,
.c-exam-dates__row--closed .c-exam-dates__no { color: #8a8a95; }
.c-exam-dates__row--message td { font-weight: 700; color: #d6243f; }
.c-exam-dates__notes {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.c-exam-dates__notes li {
    position: relative;
    padding-left: 1.1em;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ytc-text-secondary, #555);
}
.c-exam-dates__notes li::before { content: "※"; position: absolute; left: 0; }

@media screen and (max-width: 768px) {
    .c-exam-dates { margin-top: 30px; }
    .c-exam-dates__title { font-size: 17px; }
    .c-exam-dates__lead { text-align: left; font-size: 13px; }
    /* SP: 行ごとのカード表示 */
    .c-exam-dates__table,
    .c-exam-dates__table tbody,
    .c-exam-dates__table tr,
    .c-exam-dates__table th,
    .c-exam-dates__table td { display: block; width: 100%; box-sizing: border-box; }
    .c-exam-dates__table thead { display: none; }
    .c-exam-dates__table { font-size: 14px; }
    .c-exam-dates__table tbody tr { border-bottom: 1px solid var(--ytc-border-strong, #39364e); }
    .c-exam-dates__table tbody tr:last-child { border-bottom: 0; }
    .c-exam-dates__table th,
    .c-exam-dates__table td { border: 0; padding: 8px 14px; }
    .c-exam-dates__table .c-exam-dates__round {
        display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
        text-align: left; color: #fff; background: var(--ytc-bg-brand, #439fff);
        white-space: normal;
    }
    .c-exam-dates__row--closed .c-exam-dates__round { background: #8a8a95; }
    .c-exam-dates__row--closed .c-exam-dates__no { color: #fff; }
    .c-exam-dates__badge { margin: 0; background: #fff; color: #8a8a95; }
    .c-exam-dates__no, .c-exam-dates__date { display: inline; }
    .c-exam-dates__date { font-size: 15px; }
    .c-exam-dates__table td[data-label] {
        display: grid; grid-template-columns: 9em 1fr; gap: 8px; text-align: left;
        border-bottom: 1px dashed #d0d0d8;
    }
    .c-exam-dates__table tr > td[data-label]:last-child { border-bottom: 0; }
    .c-exam-dates__table td[data-label]::before {
        content: attr(data-label); font-weight: 700; font-size: 12px; color: #555;
    }
    .c-exam-dates__row--message td { text-align: left; padding: 12px 14px; }
}
