@charset "utf-8";

.portal-main {
    padding: 72px 0 90px;
    background: #faf8f5;
}

.portal-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.portal-lead {
    margin-bottom: 28px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.portal-card {
    padding: 30px;
    border: 1px solid #e5ece9;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.portal-card + .portal-card {
    margin-top: 24px;
}

.portal-title {
    margin: 0 0 14px;
    font-size: 24px;
    color: var(--color-text-strong);
}

.portal-note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.8;
    color: #667;
}

.portal-form {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.portal-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #c8d6d3;
    border-radius: 10px;
    font-size: 16px;
}

.portal-button {
    height: 46px;
    min-width: 130px;
    border: none;
    border-radius: 10px;
    padding: 0 18px;
    background: var(--color-cta-teal-dark);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.portal-error {
    display: none;
    margin-top: 10px;
    color: #b64545;
    font-size: 14px;
}

.portal-error.is-visible {
    display: block;
}

.is-hidden {
    display: none;
}

.portal-links {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.portal-links-single {
    grid-template-columns: minmax(0, 360px);
}

.portal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #d5e5e2;
    background: #f8fcfb;
    color: var(--color-text-strong);
    line-height: 1.6;
    text-align: center;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.portal-link:hover {
    background: #f0f8f7;
    border-color: #9ecfc8;
    filter: none;
}

.portal-form-list {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.portal-form-card {
    padding: 18px;
    border: 1px solid #d9e8e5;
    border-radius: 14px;
    background: #f8fcfb;
}

.portal-form-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-strong);
}

.portal-form-text {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.8;
    color: #5f6d69;
    overflow-wrap: anywhere;
}

.portal-form-link {
    margin-top: 14px;
    justify-content: center;
}

.portal-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e5ece9;
}

.portal-section-head {
    margin-bottom: 18px;
}

.portal-section-title {
    margin: 0;
    font-size: 22px;
    color: var(--color-text-strong);
}

.portal-section-note {
    margin: 8px 0 0;
    line-height: 1.8;
    color: #5f6d69;
    overflow-wrap: anywhere;
}

.exam-accordion {
    margin-top: 18px;
}

.exam-accordion .details {
    margin-bottom: 16px;
}

.exam-accordion .details:last-child {
    margin-bottom: 0;
}

.exam-accordion > .details > .details-content {
    padding: 20px;
}

.exam-year-label {
    display: inline-block;
    margin-right: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-strong);
}

.exam-year-meta {
    font-size: 13px;
    color: #66807b;
}

.exam-session {
    margin-top: 14px;
}

.exam-session:first-child {
    margin-top: 0;
}

.exam-session-summary {
    padding: 14px 56px 14px 18px;
    background: #f8fcfb;
    box-shadow: none;
    border: 1px solid #d9e8e5;
}

.exam-session-body {
    padding: 18px;
    background: #fff;
    border: 1px solid #d9e8e5;
    border-top: none;
}

.exam-session-title {
    display: block;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #2c5f57;
    overflow-wrap: anywhere;
}

.exam-session-note {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: #6a7378;
}

.exam-detail-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    table-layout: fixed;
}

.exam-detail-table th,
.exam-detail-table td {
    padding: 10px 14px;
    border: 1px solid #d9e8e5;
    text-align: left;
    line-height: 1.7;
    vertical-align: top;
}

.exam-detail-table th {
    width: 24%;
    background: #f3faf8;
    color: #335953;
}

.exam-detail-table td {
    background: #fff;
}

.exam-detail-table th:nth-child(1),
.exam-detail-table td:nth-child(1) {
    width: 18%;
    text-align: center;
    white-space: nowrap;
}

.exam-detail-table th:nth-child(2),
.exam-detail-table td:nth-child(2) {
    width: 36%;
    text-align: center;
    white-space: nowrap;
}

.exam-detail-table th:nth-child(3),
.exam-detail-table td:nth-child(3) {
    width: 46%;
    font-size: 12px;
    line-height: 1.5;
}

.eiken-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.eiken-table th,
.eiken-table td {
    border: 1px solid #d9e8e5;
    padding: 12px;
    text-align: left;
    line-height: 1.7;
}

.eiken-table th {
    width: 140px;
    background-color: #f3faf8;
    font-weight: 700;
}

.eiken-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.eiken-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background-color: var(--color-cta-coral-dark);
    color: #fff;
    font-weight: 700;
}

.eiken-action.sub {
    background-color: var(--color-cta-teal-dark);
}

.eiken-flow-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.eiken-time-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.eiken-time-card {
    border: 1px solid #d5e2df;
    border-radius: 12px;
    background: #fbfefd;
    padding: 12px 14px;
}

.eiken-time-title {
    margin: 0;
    font-size: 16px;
    color: #2c5f57;
}

.eiken-time-list {
    margin: 10px 0 0;
    padding: 0;
}

.eiken-time-list div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #d5e5e2;
}

.eiken-time-list div:last-child {
    border-bottom: none;
}

.eiken-time-list dt {
    margin: 0;
    font-size: 14px;
    color: #5c6d71;
}

.eiken-time-list dd {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #334;
}

.eiken-round-card {
    border: 1px solid #d9e8e5;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.eiken-round-card.is-inactive-round {
    border-color: #d4d8dd;
    background: #eceff3;
}

.eiken-round-card.is-inactive-round .eiken-round-title {
    background: #e6e9ee;
    border-bottom-color: #d4d8dd;
    color: #4d545c;
}

.eiken-round-card.is-inactive-round .eiken-stage {
    border-color: #d4d8dd;
    background: #f5f7fa;
}

.eiken-round-card.is-inactive-round .eiken-stage-label,
.eiken-round-card.is-inactive-round .eiken-stage-date,
.eiken-round-card.is-inactive-round .eiken-stage-note {
    color: #565d66;
}

.eiken-round-card.is-inactive-round .eiken-stage + .eiken-stage::before {
    border-top-color: #a7adb6;
}

.eiken-round-title {
    margin: 0;
    padding: 12px 14px;
    background: #eaf7f4;
    border-bottom: 1px solid #d2e8e3;
    font-size: 18px;
    line-height: 1.4;
    color: #2c5f57;
}

.eiken-stage-list {
    margin: 0;
    padding: 14px 14px 16px;
    list-style: none;
    display: grid;
    gap: 10px;
}

.eiken-stage {
    position: relative;
    border: 1px solid #d9e8e5;
    border-radius: 12px;
    background: #fff;
    padding: 12px 12px 14px;
}

.eiken-stage + .eiken-stage::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #87c1b9;
}

.eiken-stage-label {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #54756f;
}

.eiken-stage-date {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: #334;
}

.eiken-stage-note {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6a7378;
}

.eiken-stage-status {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fbe5df;
    color: #7a3a2d;
    font-size: 11px;
    font-weight: 700;
}

.eiken-stage.is-expired {
    background: #f2f3f5;
    border-color: #d4d8dd;
}

.eiken-stage.is-expired .eiken-stage-label,
.eiken-stage.is-expired .eiken-stage-date,
.eiken-stage.is-expired .eiken-stage-note {
    color: #565d66;
}

.eiken-stage.is-expired .eiken-stage-status {
    background: #d7dbe0;
    color: #4d545c;
}

.eiken-stage.is-before-open {
    background: #f5f7fa;
    border-color: #dbe5ef;
}

.eiken-stage.is-before-open .eiken-stage-label,
.eiken-stage.is-before-open .eiken-stage-date,
.eiken-stage.is-before-open .eiken-stage-note {
    color: #4d5e70;
}

.eiken-stage.is-before-open .eiken-stage-status {
    background: #dbe5ef;
    color: #516273;
}

.eiken-page .portal-wrap {
    max-width: 1280px;
}

.eiken-page .eiken-flow-grid {
    gap: 18px;
}

@media (max-width: 900px) {
    .eiken-flow-grid {
        grid-template-columns: 1fr;
    }

    .exam-session-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .exam-session-body .exam-detail-table {
        width: 680px;
        max-width: none;
        min-width: 680px;
        margin-top: 14px;
    }

    .exam-session-body .exam-detail-table tr th,
    .exam-session-body .exam-detail-table tr td {
        display: table-cell;
        width: auto;
        padding: 10px 14px;
        font-size: 14px;
        border-right: 1px solid #d9e8e5;
        border-bottom: 1px solid #d9e8e5;
    }

    .exam-session-body .exam-detail-table tr th:nth-child(1),
    .exam-session-body .exam-detail-table tr td:nth-child(1) {
        width: 21%;
        white-space: nowrap;
    }

    .exam-session-body .exam-detail-table tr th:nth-child(2),
    .exam-session-body .exam-detail-table tr td:nth-child(2) {
        width: 34%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .exam-session-body .exam-detail-table tr th:nth-child(3),
    .exam-session-body .exam-detail-table tr td:nth-child(3) {
        width: 45%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media screen and (max-width: 768px) {
    .portal-main {
        padding: 56px 0 72px;
    }

    .portal-wrap {
        padding: 0 14px;
    }

    .portal-card {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .portal-title {
        font-size: 20px;
    }

    .portal-lead {
        margin-bottom: 22px;
        font-size: 14px;
        line-height: 1.8;
    }

    .portal-form {
        grid-template-columns: 1fr;
    }

    .portal-button {
        width: 100%;
    }

    .portal-links {
        grid-template-columns: 1fr;
    }

    .portal-section-title {
        font-size: 20px;
    }

    .portal-section-note,
    .portal-form-text,
    .portal-note {
        font-size: 14px;
        line-height: 1.8;
    }

    .portal-form-title {
        font-size: 16px;
    }

    .exam-year-label {
        display: block;
        margin-right: 0;
        font-size: 18px;
    }

    .exam-year-meta {
        display: block;
        margin-top: 4px;
        padding-right: 28px;
    }

    .exam-session-summary {
        padding: 14px 48px 14px 14px;
    }

    .exam-session-body {
        padding: 14px;
    }

    .exam-session-title {
        font-size: 16px;
        line-height: 1.5;
    }

    .exam-session-body .exam-detail-table tr th,
    .exam-session-body .exam-detail-table tr td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .exam-session-body .exam-detail-table tr th:nth-child(3),
    .exam-session-body .exam-detail-table tr td:nth-child(3) {
        font-size: 12px;
    }

    .eiken-flow-grid {
        grid-template-columns: 1fr;
    }

    .eiken-time-grid {
        grid-template-columns: 1fr;
    }

    .eiken-page .portal-wrap {
        max-width: 980px;
    }

    .eiken-round-title {
        font-size: 17px;
    }

    .eiken-stage-date {
        font-size: 13px;
    }

    .eiken-table th,
    .eiken-table td {
        padding: 10px;
        font-size: 14px;
    }

    .eiken-table th {
        width: 105px;
    }
}

@media screen and (max-width: 480px) {
    .portal-main {
        padding: 44px 0 60px;
    }

    .portal-wrap {
        padding: 0 10px;
    }

    .portal-card {
        padding: 16px 12px;
    }

    .portal-title {
        font-size: 19px;
    }

    .portal-section {
        margin-top: 24px;
        padding-top: 22px;
    }

    .portal-link {
        min-height: 48px;
        padding: 11px 12px;
        font-size: 14px;
    }

    .exam-accordion > .details > .details-content {
        padding: 14px 10px;
    }

    .exam-session-summary {
        padding: 12px 42px 12px 12px;
    }

    .exam-session-body {
        padding: 12px 10px;
    }

    .exam-session-title {
        font-size: 15px;
    }

    .exam-session-body .exam-detail-table {
        width: 640px;
        min-width: 640px;
    }
}
