.aun-account-page {
    width: 100%;
    padding: clamp(56px, 8vw, 96px) 20px;
}

.member-private-dynamic-controls {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) repeat(2, minmax(10rem, auto));
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.member-private-dynamic-controls__group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    min-width: 0;
    margin: 0;
    padding: .65rem .8rem;
    border: 1px solid var(--member-border, #d9dde3);
    border-radius: .5rem;
}

.member-private-calendar__empty {
    margin: .75rem 0 0;
    color: #5f6368;

}

.member-private-dynamic-day {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.member-private-dynamic-day__title { margin: 0; }

.member-private-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    gap: .65rem;
}

@media (max-width: 720px) {
    .member-private-dynamic-controls { grid-template-columns: 1fr; }

}

.member-private-booking-step {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid #d8d8d8;
    border-radius: 16px;
    background: #fff;
}

.member-private-booking-step + .member-private-booking-step { margin-top: 20px; }

.member-private-booking-step__heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.member-private-booking-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.member-private-booking-step__title {
    margin: 0;
    color: #111;
    font-size: clamp(1.7rem, 2.4vw, 2.1rem);
    font-weight: 900;
    line-height: 1.35;
}

.member-private-booking-step__help {
    margin: 4px 0 0;
    color: #5f5f5f;
    font-size: 1.3rem;
    line-height: 1.5;
}

.member-private-location-field {
    display: block;
    width: 100%;
    margin: 0 0 20px;
}

.member-private-location-field .account-form__control {
    width: 100%;
    min-height: 50px;
    font-size: 1.5rem;
}

.member-private-choice-group {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.member-private-choice-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #eef0f2;
}

.member-private-choice { position: relative; min-width: 0; cursor: pointer; }

.member-private-choice input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

/* The lesson length reads like the 欠席 / 振替予約 / プライベート予約 switch: one grey track, the chosen length
   as a pale green segment. */
.member-private-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 8px 10px;
    border: 2px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #4b525a;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.member-private-choice input:checked + span { border-color: #1f9d63; background: #e3f5ec; color: #145c3a; }
@media (hover: hover) and (pointer: fine) {
    .member-private-choice:hover input:not(:checked) + span { background: rgba(255, 255, 255, .65); color: #222; }
}
.member-private-choice input:focus-visible + span { outline: 3px solid #6aa7e8; outline-offset: 2px; }

.member-private-reservation__month-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.member-private-reservation__month-controls[hidden] { display: none; }

.member-private-month-button,
.member-private-month-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 9px 14px;
    border: 1px solid #bdbdbd;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.member-private-month-button { cursor: pointer; }
/* Hover only firms up the button; keyboard focus gets the page's blue ring, so the two never look alike. */
.member-private-month-button:hover:not(:disabled) { border-color: #777; background: #f5f5f5; }
.member-private-month-button:focus-visible { outline: 3px solid #4d90fe; outline-offset: 2px; }

.member-private-month-picker { position: relative; border-color: #111; font-size: 1.65rem; cursor: pointer; }
.member-private-month-picker:hover { background: #f5f5f5; }
.member-private-month-picker__label { pointer-events: none; }
/* A small ▾ says the year-month opens a list; drawn in CSS so it is not read aloud. */
.member-private-month-picker::after {
    content: "";
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-top: 6px solid currentColor;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    pointer-events: none;
}
.member-private-month-picker__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    /* The browser's month list follows the page, which is light only, not the device's dark mode. */
    color-scheme: light;
}
.member-private-month-picker:focus-within { outline: 3px solid #4d90fe; outline-offset: 2px; }

.member-private-reservation [data-private-month-status],
.member-private-reservation [data-private-day-status] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Private lesson date picker: the month grid, today and selection come from calendar-core.css;
   this only styles the availability mark (○ available, △ few left, × unavailable). */
.member-private-calendar__state {
    margin-top: 2px;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.member-private-calendar__day--available .member-private-calendar__state { color: #2674a6; }
.member-private-calendar__day--limited .member-private-calendar__state { color: #b16b16; }
.member-private-calendar__day--unavailable-state .member-private-calendar__state { color: #b65b65; }

.member-private-calendar__empty { margin: 14px 0 0; font-size: 1.3rem; }

.member-private-calendar__day--today { --member-private-day-background: #e9f5e9; }
.member-private-calendar__day--today .member-private-calendar__date { color: #28623a; }
.member-private-calendar__day--today.member-private-calendar__day--selected .member-private-calendar__date { color: #fff; }

.member-private-dynamic-day { gap: 16px; margin-bottom: 18px; }
.member-private-dynamic-day__title { color: #111; font-size: 1.7rem; font-weight: 900; }

.member-private-time-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.member-reservation-button.member-private-time-grid__button {
    min-height: 52px;
    border-width: 1px;
    border-color: #d9e0e6 !important;
    background: #fff;
    color: #425466;
    font-size: 1.55rem;
    font-weight: 900;
}

.member-reservation-button.member-private-time-grid__button:hover,
.member-reservation-button.member-private-time-grid__button:focus-visible {
    outline: 3px solid rgba(38, 116, 166, .24);
    outline-offset: 2px;
    border-color: #2674a6 !important;
    background: rgba(38, 116, 166, .09);
    color: #24465e;
}

.member-reservation-button.member-private-time-grid__button:active,
.member-reservation-button.member-private-time-grid__button[aria-busy="true"],
.member-reservation-button.member-private-time-grid__button[aria-pressed="true"],
.member-reservation-button.member-private-time-grid__button.member-private-time-grid__button--selected {
    outline: 3px solid rgba(36, 95, 135, .22);
    outline-offset: 2px;
    border-color: #245f87 !important;
    background: #245f87;
    color: #fff;
    opacity: 1;
}

@media (max-width: 720px) {
    .member-private-booking-step { padding: 18px 12px; border-radius: 12px; }

    .member-private-reservation__month-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .member-private-month-button { gap: 3px; min-height: 44px; padding: 7px 4px; font-size: 1.05rem; white-space: nowrap; }
    .member-private-month-picker { min-width: 0; min-height: 44px; padding: 7px 2px; font-size: 1.3rem; white-space: nowrap; }
    .member-private-dynamic-day { align-items: flex-start; flex-direction: column; }
    .member-private-time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.aun-account-page--form {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 96px);
    min-height: calc(100svh - 96px);
    padding-block: clamp(40px, 6vw, 72px);
}

.aun-account-card {
    width: min(100%, 470px);
    margin-inline: auto;
    background: #fff;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 48px;
    letter-spacing: 0;
}

.aun-account-card--mypage {
    width: min(100%, 760px);
}

.aun-account-card--message {
    display: grid;
    gap: 32px;
}

.aun-account-card__title {
    font-size: clamp(2.6rem, 4vw, 3.1rem);
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    margin: 0 0 44px;
}

.aun-account-card--mypage .aun-account-card__title,
.aun-account-card--message .aun-account-card__title {
    text-align: left;
    margin-bottom: 0;
}

.aun-account-form {
    display: grid;
    gap: 22px;
}

.aun-account-field {
    display: grid;
    gap: 10px;
}

.aun-account-field__label,
.aun-account-plan__title,
.aun-account-profile__label,
.aun-account-status__label {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.4;
}

.aun-account-field__control {
    width: 100%;
    height: 56px;
    border: 2px solid #000;
    background: #fff;
    padding: 0 16px;
    font-size: 1.6rem;
    font-weight: 700;
}

.aun-account-field__control:focus {
    border-color: #1a73e8;
    outline: none;
}

.aun-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    color: #fff !important;
    background: #000;
    border: 2px solid #000;
    padding: 12px 18px;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.4;
    text-align: center;
    transition: color .2s ease, background-color .2s ease;
}

.aun-account-button--outline {
    color: #000 !important;
    background: #fff;
}

@media (hover: hover) {
    .aun-account-button:hover {
        color: #000 !important;
        background: #fff;
    }

    .aun-account-button--outline:hover {
        color: #fff !important;
        background: #000;
    }
}

.aun-account-form .aun-account-button {
    margin-top: 18px;
}

.aun-account-link-row {
    margin-top: 20px;
    text-align: center;
}

.aun-account-link-row a {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.5;
}

@media (hover: hover) {
    .aun-account-link-row a:hover,
    .aun-account-logout:hover {
        text-decoration: underline;
    }
}

.aun-account-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 40px 0;
}

.aun-account-plan {
    display: grid;
    gap: 10px;
}

.aun-account-alert {
    color: #b00020;
    background: #fff5f6;
    border: 1px solid #b00020;
    padding: 12px 14px;
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.6;
}

.aun-account-mypage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.aun-account-eyebrow {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.3;
    color: #777;
    margin: 0 0 8px;
}

.aun-account-logout {
    flex: 0 0 auto;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.5;
}

.aun-account-profile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.aun-account-profile > div,
.aun-account-status {
    border: 1px solid #d9d9d9;
    padding: 18px;
}

.aun-account-profile__label,
.aun-account-status__label {
    display: block;
    color: #777;
    margin-bottom: 6px;
}

.aun-account-profile strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 1.6rem;
    line-height: 1.5;
}

.aun-account-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.aun-account-status__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 34px;
    color: #000;
    background: #f1f1f1;
    padding: 4px 12px;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.4;
}

.aun-account-status__badge--active {
    color: #fff;
    background: #008f3a;
}

.aun-account-status__badge--scheduled {
    color: #000;
    background: #ffd84d;
}

.aun-account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.aun-account-actions .aun-account-button:only-child {
    grid-column: 1 / -1;
}

.aun-account-subscription {
    border-top: 1px solid #d9d9d9;
    margin-top: 32px;
    padding-top: 28px;
}

.aun-account-subscription__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.aun-account-subscription__head h2 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.4;
    margin: 0;
}

.aun-account-subscription__text,
.aun-account-subscription__note {
    color: #111;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.8;
    margin: 0;
}

.aun-account-subscription__note {
    color: #555;
}

.aun-account-cancel-form {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.aun-account-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #111;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.7;
}

.aun-account-check input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: #000;
}

.aun-account-button--danger {
    color: #fff !important;
    background: #b00020;
    border-color: #b00020;
}

@media (hover: hover) {
    .aun-account-button--danger:hover {
        color: #b00020 !important;
        background: #fff;
    }
}

.aun-account-favorites {
    border-top: 1px solid #d9d9d9;
    margin-top: 32px;
    padding-top: 28px;
}

.aun-account-favorites__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.aun-account-favorites__head h2 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.4;
    margin: 0;
}

.aun-account-favorites__head a {
    flex: 0 0 auto;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.5;
}

.aun-account-favorites__empty {
    color: #555;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.7;
    margin: 0;
}

.aun-account-favorites__list {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.aun-account-favorites__list a {
    display: block;
    color: #000;
    border: 1px solid #d9d9d9;
    padding: 13px 14px;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.5;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .aun-account-page {
        padding: 82px 12px 40px;
    }

    .aun-account-page--form {
        min-height: calc(100vh - 72px);
        min-height: calc(100svh - 72px);
        padding-block: 28px 48px;
    }

    .aun-account-card {
        border-radius: 14px;
        padding: 34px 28px;
    }

    .aun-account-card__title {
        margin-bottom: 34px;
    }

    .aun-account-mypage-head,
    .aun-account-status {
        display: grid;
    }

    .aun-account-profile,
    .aun-account-actions {
        grid-template-columns: 1fr;
    }

    .aun-account-favorites__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .aun-account-subscription__head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.member-reservation-section__head,
.member-reservation-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.member-notices__body {
    padding: clamp(22px, 4vw, 38px);
}

.member-notice-list {
    display: grid;
    gap: 12px;
}

.member-notice-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    padding: clamp(20px, 4vw, 32px);
}

.member-notice-card--list {
    padding: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.member-panel__body.member-notices__body--detail {
    box-sizing: border-box;
    width: 100%;
    max-width: 860px;
    margin-inline: auto;
    padding-block: clamp(32px, 5vw, 52px);
}

.member-notice-card--detail {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.member-notice-card--list:hover,
.member-notice-card--list:focus-within {
    border-color: #111;
    box-shadow: 0 3px 12px rgb(0 0 0 / 7%);
}

.member-notice-card__link {
    display: grid;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    gap: 16px;
    min-height: 82px;
    padding: 16px clamp(18px, 3vw, 24px);
    color: inherit;
    text-decoration: none;
    border-radius: inherit;
}

.member-notice-card__link:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.member-notice-card__summary {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.member-notice-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.member-notice-card__link:hover .member-notice-card__arrow,
.member-notice-card__link:focus-visible .member-notice-card__arrow {
    color: #fff;
    background-color: #111;
    border-color: #111;
}

.member-notice-card__header {
    display: grid;
    gap: 7px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 16px;
}

.member-notice-card__date {
    color: #666;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.5;
}

.member-notice-card__title {
    color: #111;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.5;
    margin: 0;
}

.member-notice-card--list .member-notice-card__title {
    font-size: clamp(1.7rem, 2vw, 1.9rem);
    line-height: 1.45;
}

.member-notices__back {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 46px;
    margin-top: clamp(36px, 5vw, 52px);
    margin-left: auto;
    padding: 10px 22px;
    color: #fff !important;
    border: 1px solid #111;
    border-radius: 8px;
    background: #111;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.member-notices__back:hover,
.member-notices__back:focus-visible {
    border-color: #111;
    color: #fff !important;
    background: #333;
}

.member-notices__back:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

/* From 576px up the back link uses the outline style of the panel "see all" link; phones keep the solid button. */
@media (min-width: 576px) {
    .member-notices__back {
        color: #111 !important;
        background: #fff;
    }

    .member-notices__back:hover,
    .member-notices__back:focus-visible {
        color: #111 !important;
        background: #f4f4f4;
    }
}

.member-notice-card--detail .member-notice-card__header {
    gap: 12px;
    padding-bottom: clamp(26px, 4vw, 36px);
}

.member-notice-card--detail .member-notice-card__date {
    font-size: 1.4rem;
    font-weight: 600;
}

.member-notice-card--detail .member-notice-card__title {
    font-size: clamp(2.3rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.45;
}

.member-notice-card__content {
    color: #222;
    font-size: clamp(1.6rem, 1.8vw, 1.8rem);
    font-weight: 400;
    line-height: 1.85;
    padding-top: clamp(26px, 4vw, 36px);
}

.member-notice-card__content p,
.member-notice-card__content ul,
.member-notice-card__content ol {
    margin-block: 0 1.6em;
}

.member-notice-card__content ul,
.member-notice-card__content ol {
    padding-left: 1.5em;
}

.member-notice-card__content > :first-child {
    margin-top: 0;
}

.member-notice-card__content > :last-child {
    margin-bottom: 0;
}

.member-notice-card__content a {
    overflow-wrap: anywhere;
    text-decoration: underline;
}

.member-notice-card__content img {
    max-width: 100%;
    height: auto;
}

.member-notice-card__content pre,
.member-notice-card__content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.member-notice-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.member-notice-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    padding: 8px 12px;
    text-decoration: none;
}

.member-notice-pagination__link--wide {
    min-width: 64px;
}

.member-notice-pagination__link:hover,
.member-notice-pagination__link:focus-visible,
.member-notice-pagination__link[aria-current="page"] {
    background: #111;
    color: #fff;
}

.member-notice-pagination__link[aria-current="page"] {
    cursor: default;
}

.member-notice-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 40px;
    color: #555;
    font-size: 1.5rem;
    font-weight: 900;
}

.member-notices__empty {
    margin: 0;
}

.member-reservation-shortcut__body {
    display: grid;
    gap: 20px;
}

.member-reservation-shortcut__content {
    flex: 1 1 auto;
    min-width: 0;
}

.member-reservation-shortcut__title {
    color: #111;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.45;
    margin: 0;
}

.member-reservation-shortcut__text,
.member-reservation-section__note {
    color: #555;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.75;
    margin: 8px 0 0;
}

.member-reservation-shortcut__footer {
    display: flex;
    justify-content: flex-end;
}

.member-reservation-timeline {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-reservation-timeline__item {
    min-width: 0;
}

.member-reservation-timeline__datetime {
    display: block;
}

.member-reservation-timeline__time {
    white-space: nowrap;
}

.member-reservation-timeline__badge {
    align-self: start;
}

.member-status__badge.member-reservation-timeline__badge--absent {
    border-color: #e8b84a;
    background: #fff4d8;
    color: #6f5100;
}

.member-status__badge.member-reservation-timeline__badge--excused {
    border-color: #777;
    background: #f2f2f2;
    color: #555;
}

.member-status__badge.member-reservation-timeline__badge--makeup {
    background: #111;
    color: #fff;
}

.member-status__badge.member-reservation-timeline__badge--trial {
    border-color: #2271b1;
    background: #e8f3fb;
    color: #135e96;
}

.member-status__badge.member-reservation-timeline__badge--private {
    border-color: #7b5bb5;
    background: #f2ecff;
    color: #5d3f94;
}

.member-status__badge.member-reservation-timeline__badge--admin {
    border-color: #646970;
    background: #f0f0f1;
    color: #3c434a;
}

.member-reservation-shortcut__empty {
    padding: 20px 16px;
    border: 1px solid #d7dce2;
    border-radius: 12px;
    background: #f7f8fa;
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: .06em;
    text-align: center;
}

.member-reservation-timeline__meta {
    min-width: 0;
}

.member-reservation-timeline__student {
    color: #111;
}

.member-reservation-timeline__location {
    min-width: 0;
    overflow-wrap: anywhere;
}

.member-reservation-timeline__class {
    overflow-wrap: anywhere;
}

.member-reservation-shortcut__empty {
    margin: 0;
}

.member-reservation-app {
    display: grid;
    gap: 40px;
}

.member-reservation-notice {
    margin: 0;
    outline: none;
}

.member-reservation-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 220px;
}

.member-reservation-loading[hidden],
.member-reservation-content[hidden],
.member-reservation-unavailable[hidden] {
    display: none;
}

.member-reservation-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #d5d5d5;
    border-top-color: #111;
    border-radius: 50%;
    animation: member-reservation-spin .8s linear infinite;
}

@keyframes member-reservation-spin {
    to {
        transform: rotate(360deg);
    }
}

.member-reservation-content {
    display: grid;
    gap: 40px;
}

.member-reservation-controls__body,
.member-reservation-mode-field {
    display: grid;
    gap: 12px;
}

.member-reservation-controls__body {
    gap: 22px;
}

/* Preserve the private UI for later re-enablement without exposing its controls. */
.member-reservation-app[data-private-reservations-enabled="false"] .member-reservation-mode-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-reservation-app[data-private-reservations-enabled="false"] [data-reservation-mode-button="private"],
.member-reservation-app[data-private-reservations-enabled="false"] [data-reservation-mode-panel="private"] {
    display: none;
}

/* One grey track; the chosen mode sits on it as a pale green segment, the same green as planned lessons. */
.member-reservation-mode-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    padding: 4px;
    border-radius: 12px;
    background: #eef0f2;
}

.member-reservation-mode-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 64px;
    border: 2px solid transparent;
    border-radius: 9px;
    color: #4b525a;
    background: transparent;
    padding: 8px 12px;
    font: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
}

.member-reservation-mode-button__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Labels break only where the markup allows it (プライベート / 予約). */
.member-reservation-mode-button__label {
    white-space: nowrap;
    word-break: keep-all;
}

/* Long panel headings break only at their <wbr> phrase boundaries (予約済みの / プライベート / レッスン),
   so a phone never leaves one character alone on the second line. */
.member-panel__heading--phrases {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.member-reservation-mode-button[aria-pressed="true"] {
    border-color: #1f9d63;
    color: #145c3a;
    background: #e3f5ec;
}

.member-reservation-mode-button[aria-pressed="true"] .member-reservation-mode-button__icon {
    color: #1f9d63;
}

.member-reservation-mode-button:focus-visible {
    outline: 3px solid #4d90fe;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .member-reservation-mode-button:not([aria-pressed="true"]):hover {
        color: #222;
        background: rgba(255, 255, 255, .65);
    }
}

.member-reservation-mode-panel {
    display: grid;
    gap: 40px;
}

.member-reservation-mode-panel[hidden] {
    display: none;
}

.member-reservation-student {
    display: grid;
    gap: 8px;
}

.member-reservation-select {
    border-radius: 7px;
    padding-right: 38px;
}

/* The private school picker takes the same rounded corners as the student select above it. */
.member-private-location-field .account-form__control {
    border-radius: 7px;
}

.member-reservation-select:focus {
    border-color: #4d90fe;
}

.member-reservation-section__body {
    display: grid;
    gap: 18px;
}

.member-reservation-section__head {
    align-items: center;
}

.member-reservation-section__note {
    flex: 0 0 auto;
    margin: 0;
}

.member-reservation-list {
    display: grid;
    gap: 10px;
}

.member-reservation-card,
.member-reservation-credit {
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
}

.member-reservation-card {
    align-items: center;
    padding: 18px;
}

.member-reservation-card__body {
    min-width: 0;
}

.member-reservation-card__date,
.member-reservation-card__meta,
.member-reservation-card__sub {
    color: #555;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

.member-reservation-card__date {
    color: #111;
    font-weight: 900;
}

.member-reservation-card__title {
    color: #111;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.45;
    margin: 3px 0;
}

.member-reservation-card__sub {
    margin-top: 8px;
}

.member-reservation-card__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
    max-width: 48%;
}

.member-reservation-card__cancel {
    display: grid;
    gap: 6px;
    flex: 1 1 100%;
    min-width: 0;
}

.member-reservation-card__cancel > .member-reservation-button {
    justify-self: end;
}

.member-reservation-card__help {
    color: #555;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.75;
    text-align: left;
    margin: 0;
}

.member-reservation-card__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.4;
}

.member-reservation-card__hint {
    color: #777;
    padding-inline: 0;
}

.member-reservation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    color: #111;
    background: #fff;
    border: 1px solid #111;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}

.member-reservation-button--primary {
    color: #fff !important;
    background: #111;
}

.member-reservation-button--danger {
    color: #a0001c;
    border-color: #a0001c;
}

.member-reservation-button:disabled,
.member-reservation-button[aria-busy="true"] {
    cursor: wait;
    opacity: .55;
}

@media (hover: hover) {
    .member-reservation-button:hover {
        color: #fff;
        background: #111;
    }

    .member-reservation-button--primary:hover {
        color: #111 !important;
        background: #fff;
    }

    .member-reservation-button--danger:hover {
        color: #a0001c;
        background: #fff5f6;
    }
}

.member-reservation-list--credits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-reservation-credit {
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.member-reservation-credit.is-expiring {
    border-color: #a0001c;
}

.member-reservation-credit__stub {
    display: flex;
    flex: 0 0 96px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    color: #fff;
    background: #111;
    border-right: 2px dashed #fff;
    text-align: center;
}

.member-reservation-credit.is-expiring .member-reservation-credit__stub {
    background: #a0001c;
}

.member-reservation-credit__stub-label {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.member-reservation-credit__days {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.2;
}

.member-reservation-credit__body {
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
    padding: 18px 20px;
}

.member-reservation-credit__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-reservation-credit__label {
    color: #555;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
}

.member-reservation-credit__tag {
    padding: 1px 8px;
    color: #fff;
    background: #a0001c;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
}

.member-reservation-credit__expiry {
    color: #111;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.4;
    margin: 0;
}

.member-reservation-credit__until {
    margin-left: 4px;
    color: #555;
    font-size: 1.2rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .member-reservation-credit__stub {
        flex-basis: 76px;
    }

    .member-reservation-credit__days {
        font-size: 2.2rem;
    }

    .member-reservation-credit__body {
        padding: 14px 16px;
    }

    .member-reservation-credit__expiry {
        font-size: 1.6rem;
    }
}

.member-reservation-mode-panel[data-reservation-mode-panel="makeup"] .member-reservation-empty--makeup-primary {
    grid-column: 1 / -1;
}

.member-reservation-mode-panel[data-reservation-mode-panel="private"] .member-private-reservation [data-reservation-list="private-slots"]:empty {
    display: none;
}

/* Reservation empty states sit in a list inside the panel body: 32px (24px on phones) after content above. */
.member-panel__body > * + .member-reservation-list > .member-empty-state {
    margin-top: 14px;
}

@media (max-width: 575.98px) {
    .member-panel__body > * + .member-reservation-list > .member-empty-state {
        margin-top: 6px;
    }
}

.member-private-reservation__status {
    margin: 0;
}

.member-private-payment__summary-price {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e8eaee;
}

.member-private-payment__summary-price .member-private-payment__summary-value {
    font-size: 2rem;
    font-weight: 700;
}

[data-private-payment-unavailable][hidden] {
    display: none;
}

/* iOS Safari can still scroll the page behind when only body is locked, so the root is locked too. */
body.aun-golf-private-payment-modal-open {
    overflow: hidden;
}

html:has(body.aun-golf-private-payment-modal-open) {
    overflow: hidden;
}

.member-private-payment-modal[hidden] {
    display: none;
}

.member-private-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: grid;
    place-items: center;
    overflow: hidden;
    overscroll-behavior: contain;
    padding: 16px;
}

.member-private-payment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* Member modals share one backdrop and a short entrance: fade and rise, or slide up as a sheet on phones. */
.member-private-payment-modal:not([hidden]) .member-private-payment-modal__backdrop {
    animation: aun-member-backdrop-in .2s ease-out;
}

.member-private-payment-modal:not([hidden]) .member-private-payment-modal__dialog {
    animation: aun-member-modal-in .2s ease-out;
}

@keyframes aun-member-modal-in {
    from { opacity: 0; transform: translateY(8px); }
}

@keyframes aun-member-sheet-in {
    from { opacity: 0; transform: translateY(32px); }
}

@keyframes aun-member-backdrop-in {
    from { opacity: 0; }
}

.member-private-payment-modal__dialog {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(600px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
}

.member-private-payment-modal__dialog:focus {
    outline: none;
}

.member-private-payment-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px 16px 24px;
    background: #111;
}

.member-private-payment-modal__title {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.member-private-payment-modal__header-help {
    margin: 2px 0 0;
    color: #cbd5e1;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
}

.member-private-payment-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.member-private-payment-modal__close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.member-private-payment-modal__close:focus-visible {
    outline: 3px solid #4d90fe;
    outline-offset: 3px;
}

.member-private-payment-modal__close:disabled {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
}

.member-private-payment-modal__body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #aeb8c4 transparent;
}

.member-private-payment-modal .member-private-payment-modal__status {
    margin: 20px 24px 0;
    padding: 12px 14px;
    border: 0;
    border-left: 4px solid #475569;
    border-radius: 6px;
    background: #f1f5f9;
    box-shadow: none;
    color: #1f2937;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: left;
}

.member-private-payment-modal .member-private-payment-modal__status.account-form__message--error {
    border-left-color: #a0001c;
    background: #fff4f4;
    color: #8a1f1f;
}

.member-private-payment-modal .member-private-payment-modal__status.account-form__message--success {
    border-left-color: #166534;
    background: #f0fdf4;
    color: #166534;
}

.member-private-payment {
    display: block;
    background: #fff;
}

.member-private-payment[hidden] {
    display: none;
}

.member-private-payment__content {
    display: grid;
    gap: 24px;
    padding: 22px 24px 0;
}

.member-private-payment {
    counter-reset: private-payment-step;
}

.member-private-payment__field-title,
.member-private-payment__terms-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-private-payment__field-title::before,
.member-private-payment__terms-title::before {
    counter-increment: private-payment-step;
    content: counter(private-payment-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.member-private-payment__terms {
    margin: 26px 24px 0;
}

.member-private-payment__terms-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
}

.member-private-payment__terms-scroll {
    box-sizing: border-box;
    height: 180px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 16px;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.7;
}

.member-private-payment__terms-scroll:focus-visible {
    outline: 3px solid #00a33e;
    outline-offset: 2px;
}

.member-private-payment__terms-scroll ul {
    margin: 0;
    padding-left: 1.4em;
    list-style: disc;
}

.member-private-payment__terms-scroll li + li {
    margin-top: 0.8em;
}

.member-private-payment__terms-scroll a {
    color: #0072c6;
    text-decoration: underline;
}

.member-private-payment__agreement {
    box-sizing: border-box;
    margin: 20px 24px 24px;
}

.member-private-payment__agreement-input {
    appearance: auto;
}

.member-private-payment__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    padding: 18px 20px;
    border: 1px solid #d8dee7;
    border-radius: 12px;
    background: #f8fafc;
}

.member-private-payment__summary-title {
    color: #111;
    grid-column: 1 / -1;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.5;
    margin: 0;
}

.member-private-payment__field-help,
.member-private-payment__note {
    color: #555;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.member-private-payment__summary-item {
    min-width: 0;
    padding: 0;
}

.member-private-payment__summary-label {
    display: block;
    margin-bottom: 2px;
    color: #667085;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
}

.member-private-payment__summary-value {
    display: block;
    color: #111;
    font-size: 1.45rem;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.member-private-payment__field-group {
    display: grid;
    gap: 8px;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.member-private-payment__methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.member-private-payment__methods[hidden],
[data-private-new-card-fields][hidden] {
    display: none !important;
}

.member-private-payment__methods > legend {
    margin-bottom: 10px;
}

.member-private-payment__method {
    position: relative;
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    min-height: 64px;
    border: 1px solid #d7dde5;
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
    line-height: 1.45;
}

.member-private-payment__method + .member-private-payment__method {
    margin-top: 0;
}

.member-private-payment__method input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #111;
}

.member-private-payment__method:has(input:checked) {
    border-color: #111;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #111;
}

.member-private-payment__method:focus-within:not(:has(input:checked)) {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.member-private-payment__method-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    font-size: 1.4rem;
}

.member-private-payment__method-detail {
    color: #556070;
    font-size: 1.2rem;
    font-weight: 400;
}

.member-private-payment__method-check {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-left: auto;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
}

.member-private-payment__method:has(input:checked) .member-private-payment__method-check {
    display: inline-flex;
}

.member-private-payment__field-title {
    color: #111;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.member-private-payment__note-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 82px;
    border: 1px solid #aeb8c4;
    border-radius: 7px;
    background: #fff;
    padding: 12px;
    color: #111;
    font: inherit;
    line-height: 1.6;
    resize: vertical;
}

.member-private-payment__note-field {
    gap: 6px;
}

.member-private-payment__note-input:focus-visible,
.member-private-payment__card:focus-within {
    border-color: #111;
    outline: 3px solid #4d90fe;
    outline-offset: 2px;
}

.member-private-payment__card-shell {
    position: relative;
    min-width: 0;
}

.member-private-payment__card {
    border: 0;
    border-radius: 7px;
    background: #fff;
    padding: 0;
}

.member-private-payment__card-state {
    color: #475569;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.6;
    margin: 0;
}

.member-private-payment__card-shell[data-card-state="loading"] .member-private-payment__card {
    visibility: hidden;
}

.member-private-payment__card-shell[data-card-state="loading"] .member-private-payment__card-state {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    border: 1px dashed #94a3b8;
    border-radius: 7px;
    background: #f8fafc;
    padding: 12px;
    text-align: center;
}

.member-private-payment__card-shell[data-card-state="error"] .member-private-payment__card {
    display: none;
}

.member-private-payment__card-shell[data-card-state="error"] .member-private-payment__card-state {
    border: 0;
    border-radius: 7px;
    background: #fff4f4;
    color: #8a1f1f;
    padding: 12px;
    font-weight: 500;
}

.member-private-payment__submit {
    width: 100%;
    max-width: 340px;
    min-height: 52px;
    justify-self: center;
    justify-content: center;
    border-radius: 8px;
    border-color: #df0f3e;
    background: #df0f3e;
    font-size: 1.5rem;
}

.member-private-payment__submit:disabled:not(.member-private-payment__submit--loading) {
    border-color: #cbd5e1;
    background: #cbd5e1;
    color: #fff;
    cursor: not-allowed;
    opacity: 1;
}

.member-private-payment__footer-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

.member-private-payment__footer-total[hidden],
.member-private-payment__submit-reason[hidden] {
    display: none;
}

.member-private-payment__footer-total-label {
    color: #555;
    font-size: 1.3rem;
    font-weight: 700;
}

.member-private-payment__footer-total-value {
    color: #111;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
}

.member-private-payment__submit-reason {
    margin: 0;
    color: #a0001c;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.member-private-payment__submit:focus-visible {
    outline: 3px solid rgba(223, 15, 62, 0.35);
    outline-offset: 2px;
}

.member-private-payment__submit--loading {
    cursor: wait;
    opacity: 1;
}

.member-private-payment__spinner {
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: member-private-payment-spin 0.75s linear infinite;
}

@keyframes member-private-payment-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .member-private-payment__spinner {
        animation-duration: 1.5s;
    }
}

@media (hover: hover) {
    .member-private-payment__submit:hover:not(:disabled) {
        border-color: #bd0d35;
        background: #bd0d35;
        color: #fff !important;
    }
}

.member-private-payment__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid;
    gap: 10px;
    padding: 16px 24px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid #d8dee7;
    background: #fff;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}

.member-private-payment__final-help {
    margin: 0;
    color: #667085;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.member-private-payment__complete {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.member-private-payment__complete:focus-visible {
    outline: 3px solid rgba(22, 101, 52, 0.25);
    outline-offset: 2px;
}

.member-private-payment__submit[hidden],
.member-private-payment__complete[hidden],
.member-private-payment__final-help[hidden] {
    display: none;
}

/* Completed booking: the result first, then the booked summary and one way out. */
.member-private-payment.member-private-payment--complete:not([hidden]) {
    display: flex;
    flex-direction: column;
    padding: 24px 24px max(24px, env(safe-area-inset-bottom));
}

.member-private-payment--complete .member-private-payment__footer {
    display: contents;
}

.member-private-payment--complete .member-private-payment__field-group,
.member-private-payment--complete .member-private-payment__terms,
.member-private-payment--complete .member-private-payment__agreement,
.member-private-payment--complete .member-private-payment__footer-total {
    display: none;
}

.member-private-payment--complete .member-private-payment__complete:not([hidden]) {
    order: 1;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 24px 16px 6px;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    font-size: 1.8rem;
    line-height: 1.5;
}

.member-private-payment--complete .member-private-payment__complete::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
}

.member-private-payment__complete-next {
    order: 2;
    margin: 0 0 20px;
    padding: 0 16px 20px;
    border: 1px solid #bbf7d0;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #f0fdf4;
    color: #1d2327;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.9;
    text-align: center;
    word-break: auto-phrase;
}

.member-private-payment__complete-next span {
    display: block;
}

.member-private-payment--complete .member-private-payment__content {
    order: 3;
    padding: 0;
}

.member-private-payment__done {
    order: 4;
    width: 100%;
    min-height: 52px;
    margin-top: 20px;
    font-size: 1.5rem;
}

.member-private-payment__complete-next[hidden],
.member-private-payment__done[hidden] {
    display: none;
}

.member-private-payment-modal--complete .member-private-payment-modal__header-help {
    display: none;
}

@media (max-height: 640px) {
    .member-private-payment__footer {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 6px 20px;
        padding-top: 10px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .member-private-payment__footer > * {
        grid-column: 1 / -1;
    }

    .member-private-payment__footer > .member-private-payment__footer-total {
        grid-column: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .member-private-payment__footer > .member-private-payment__footer-total:not([hidden]) + .member-private-payment__submit {
        grid-column: 2;
        justify-self: stretch;
        max-width: none;
    }
}

.member-reservation-confirm {
    box-sizing: border-box;
    width: min(560px, calc(100% - 32px));
    border: 1px solid #d6dde6;
    border-radius: 16px;
    background: #fff;
    padding: 28px;
    color: #111;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .24);
}

.member-reservation-confirm::backdrop {
    background: rgba(0, 0, 0, .6);
}

html:has(.member-reservation-confirm[open]) {
    overflow: hidden;
}

.member-reservation-confirm[open] {
    animation: aun-member-modal-in .2s ease-out;
}

.member-reservation-confirm[open]::backdrop {
    animation: aun-member-backdrop-in .2s ease-out;
}

.member-reservation-confirm__title {
    margin: 0 0 12px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
}

.member-reservation-confirm__message {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.8;
}

.member-reservation-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* The dialog buttons take the member focus ring; the payment modal keeps its own 3px ring. */
.member-reservation-confirm .member-reservation-button:focus-visible {
    outline: 2px solid #4d90fe;
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .member-reservation-section__head,
    .member-reservation-card {
        align-items: stretch;
        flex-direction: column;
    }

    .member-reservation-shortcut__footer .member-reservation-button,
    .member-reservation-button {
        width: 100%;
    }

    .member-reservation-timeline__time {
        white-space: normal;
    }

    .member-reservation-app,
    .member-reservation-content {
        gap: 28px;
    }

    .member-reservation-controls__body {
        gap: 18px;
    }

    .member-reservation-mode-switcher {
        gap: 3px;
        padding: 3px;
        border-radius: 11px;
    }

    .member-reservation-mode-button {
        flex-direction: column;
        gap: 4px;
        min-height: 68px;
        padding: 8px 2px;
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .member-reservation-mode-button__label {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .member-reservation-mode-panel {
        gap: 28px;
    }

    .member-reservation-section__head {
        gap: 8px;
    }

    .member-reservation-card__action {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: none;
    }

    .member-reservation-card__cancel > .member-reservation-button {
        justify-self: stretch;
    }

    .member-reservation-card__action .member-status__badge,
    .member-reservation-card__action .member-reservation-card__hint {
        justify-self: start;
    }

    .member-reservation-list--credits {
        grid-template-columns: 1fr;
    }

    .member-private-payment {
        padding: 0;
    }

    .member-private-payment__content {
        padding: 14px;
    }

    .member-private-payment__terms {
        margin-inline: 14px;
    }

    .member-private-payment__terms-scroll {
        height: clamp(140px, 24dvh, 180px);
    }

    .member-private-payment__agreement {
        margin-inline: 14px;
    }

    .member-private-payment__field-group {
        padding: 0;
    }

    .member-private-payment__methods {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .member-private-payment__note-input {
        min-height: 82px;
    }

    .member-private-payment__submit {
        justify-self: stretch;
        max-width: none;
    }

    .member-reservation-confirm {
        width: calc(100% - 24px);
        padding: 22px 16px;
    }

    .member-reservation-confirm__actions {
        flex-direction: column-reverse;
    }

    .member-reservation-confirm__actions .member-reservation-button {
        width: 100%;
    }

    .member-private-payment-modal {
        align-items: end;
        padding: max(8px, env(safe-area-inset-top)) 0 0;
    }

    .member-private-payment-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 8px);
        max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
        border-bottom: 0;
        border-radius: 18px 18px 0 0;
    }

    .member-private-payment-modal:not([hidden]) .member-private-payment-modal__dialog {
        animation-name: aun-member-sheet-in;
    }

    .member-private-payment-modal__title {
        font-size: 1.8rem;
    }

    .member-private-payment-modal__header {
        padding: 14px 16px;
    }

    .member-private-payment-modal__header-help {
        font-size: 1.3rem;
    }

    .member-private-payment__footer {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 8px 16px;
        padding: 12px 16px max(14px, env(safe-area-inset-bottom));
    }

    .member-private-payment__footer > * {
        grid-column: 1 / -1;
    }

    .member-private-payment__footer > .member-private-payment__footer-total {
        grid-column: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .member-private-payment__footer > .member-private-payment__footer-total:not([hidden]) + .member-private-payment__submit {
        grid-column: 2;
    }

    .member-private-payment__footer-total-label {
        font-size: 1.1rem;
    }

    .member-private-payment__footer-total-value {
        font-size: 1.9rem;
    }

    .member-private-payment__summary {
        gap: 12px;
        padding: 14px 16px;
    }

    .member-private-payment__summary-price {
        grid-column: 1 / -1;
    }

    .member-private-payment-modal .member-private-payment-modal__status {
        margin: 14px 16px 0;
    }
}

/* At the narrowest phones 「プライベート」 still fits on its own line. */
@media (max-width: 359.98px) {
    .member-reservation-mode-button {
        font-size: 1.2rem;
    }
}

.member-registration-heading {
    margin: 24px 0 12px;
}

.member-account-settings__heading {
    margin: 0 0 24px;
}
.member-account-settings__cards {
    display: grid;
    gap: 20px;
}
.member-account-card {
    overflow: hidden;
    background: #fff;
    border: 2px solid #000;
    border-radius: 20px;
}
.member-account-card__heading {
    margin: 0;
    padding: 10px 28px;
    color: #fff;
    background: #000;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.45;
}
.member-account-card__description {
    margin: 0;
    padding: 28px 34px 0;
    color: #666;
    font-size: 14px;
}
.member-account-card > .member-summary-list,
.member-account-card > .member-result__text,
.member-account-card > .member-student-card,
.member-account-card > .member-account-card__username {
    margin-left: 34px;
    margin-right: 34px;
}
.member-account-card > .member-summary-list { margin-top: 28px; }
.member-account-card__heading + .member-result__text { margin-top: 28px; }
.member-account-card > .member-summary-list,
.member-account-card > .member-result__text,
.member-account-card > .member-student-card,
.member-account-card > .member-account-card__username {
    margin-bottom: 32px;
}
.member-account-card__username {
    color: #666;
    font-size: 13px;
}
.member-student-card .member-summary-list {
    margin: 0;
}
.member-summary-list__note {
    color: #666;
    font-size: 13px;
}
.member-student-card {
    padding: 18px 0 0;
    border-top: 1px solid #e5e5e5;
}
.member-student-card:first-of-type {
    border-top: 0;
    padding-top: 16px;
}
/* Each student's table is its own framed box, so students stand apart without a line, 16px apart like the
   stacked lists in the contract card. */
.member-student-card + .member-student-card {
    border-top: 0;
    padding-top: 0;
}
.member-account-card > .member-student-card:not(:last-of-type) {
    margin-bottom: 16px;
}
.member-student-card__heading {
    margin: 0 0 4px;
}
.member-student-card__role {
    margin: 0 0 12px;
    color: #666;
    font-size: 13px;
}

.member-registration-list + .member-registration-list {
    margin-top: 16px;
}
/* Stacked lists in one card (contract holder, then address) sit 16px apart instead of the card's 32px bottom gap. */
.member-account-card > .member-registration-list:has(+ .member-registration-list) {
    margin-bottom: 0;
}

/* Account edit links use one dedicated route instead of inline accordion panels. */
.member-account-edit-page .member-information-edit-cancel,
.member-information-edit-toggle {
    display: inline-block;
}
.member-account-edit-page .member-information-edit-cancel {
    display: inline-block;
    margin: 12px 0 0;
    padding: 6px 0;
    color: #444;
    font-size: 13px;
    text-decoration: none;
}
.member-account-edit-page .member-information-edit-cancel:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
}
.member-summary-list .member-summary-list__row--editable {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 0;
    align-items: stretch;
}
.member-information-edit-cancel {
    color: #37664d;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.member-information-edit-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    box-sizing: border-box;
    min-width: 0;
    margin-right: 18px;
    min-height: 40px;
    padding: 8px 16px;
    color: #000;
    background: #fff;
    border: 1px solid #000;
    border-radius: 8px;
    text-decoration: none;
    text-underline-offset: 3px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    transition: border-color .2s ease, background-color .2s ease;
}
.member-information-edit-toggle:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}
@media (hover: hover) {
    .member-information-edit-toggle:hover {
        border-color: #000;
        background: #f4f4f4;
    }
}
@media (max-width: 600px) {
    .member-account-card { border-radius: 16px; }
    .member-account-card__heading { padding: 10px 20px; font-size: 2rem; }
    .member-account-card__description { padding: 22px 20px 0; }
    .member-account-card > .member-summary-list,
    .member-account-card > .member-result__text,
    .member-account-card > .member-student-card,
    .member-account-card > .member-account-card__username { margin-left: 20px; margin-right: 20px; }
    .member-account-card > .member-summary-list { margin-top: 22px; }
    .member-account-card__heading + .member-result__text { margin-top: 22px; }
    .member-account-card > .member-summary-list,
    .member-account-card > .member-result__text,
    .member-account-card > .member-student-card,
    .member-account-card > .member-account-card__username { margin-bottom: 24px; }
    .member-summary-list .member-summary-list__row--editable { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
    .member-summary-list .member-summary-list__row--editable .member-summary-list__label { grid-column: 1 / -1; }
    .member-summary-list .member-summary-list__row--editable .member-summary-list__value { grid-column: 1; grid-row: 2; overflow-wrap: anywhere; }
    .member-summary-list .member-summary-list__row--editable .member-information-edit-toggle { grid-column: 2; grid-row: 2; align-self: center; white-space: normal; max-width: 100px; margin-right: 18px; }
}

/* アカウント情報: a row edited in place (member-account-inline-edit.js). The row keeps its height (40px controls,
   the 変更 button's height, and the row's earlier height as its minimum), and the input's text starts where the
   shown value's text was. One line while the field has room; the buttons wrap below otherwise, and on phones. */
.member-summary-list .member-summary-list__row--editing { background: #fbfcfd; }
.member-summary-list .member-summary-list__row--editing .member-summary-list__value {
    display: flex;
    align-items: center;
    grid-column: 2 / -1;
    padding: 6px 18px 6px 6.5px;
}
.member-summary-list .member-summary-list__row--editing .member-information-edit-toggle { display: none; }
.member-inline-edit { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; min-width: 0; margin: 0; }
.member-inline-edit__fields { order: 1; flex: 1 1 16em; min-width: 0; display: grid; gap: 10px; }
.member-inline-edit--address .member-inline-edit__fields { flex-basis: 18em; }
.member-inline-edit__fields--address { grid-template-columns: 7.5em minmax(0, 1fr); }
.member-inline-edit__field { display: grid; align-content: start; min-width: 0; margin: 0; }
.member-inline-edit__actions { order: 2; flex: 0 0 auto; display: flex; flex-wrap: nowrap; gap: 8px; }
.member-inline-edit__error { order: 3; flex: 1 1 100%; margin: 0; padding: 8px 12px; border-radius: 6px; background: #fff1f4; color: #8a1f1f; font-size: 1.3rem; font-weight: 700; line-height: 1.6; }
.member-inline-edit__error[hidden] { display: none; }
.member-inline-edit .account-form__control.member-inline-edit__control {
    height: 40px;
    padding: 0 10px;
    border: 1.5px solid #111;
    border-radius: 7px;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: .04em;
}
.member-inline-edit .account-form__control.member-inline-edit__control::placeholder { color: #9aa1a9; opacity: 1; }
.member-inline-edit .account-form__control.member-inline-edit__control:focus-visible { outline: 3px solid #4d90fe; outline-offset: 1px; }
.member-inline-edit .account-form__control.member-inline-edit__control[aria-invalid="true"] { border-color: #b5122f; background: #fff8f9; }
.member-inline-edit__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 84px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #111;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}
.member-inline-edit__button--save { background: #111; color: #fff; }
.member-inline-edit__button:focus-visible { outline: 3px solid #4d90fe; outline-offset: 1px; }
.member-inline-edit__button:disabled { cursor: wait; opacity: .7; }
@media (hover: hover) and (pointer: fine) {
    .member-inline-edit__button--cancel:not(:disabled):hover { background: #f4f4f4; }
    .member-inline-edit__button--save:not(:disabled):hover { background: #333; }
}
.member-inline-edit__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: member-inline-edit-spin .8s linear infinite;
}
@keyframes member-inline-edit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .member-inline-edit__spinner { animation: none; }
}
/* While one row is open, the other 変更 buttons step back. */
.member-account-settings--inline-editing .member-information-edit-toggle[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.member-inline-edit__saved {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 1px 9px;
    border: 1px solid #8fd5b3;
    border-radius: 999px;
    background: #ebf8f1;
    color: #145c3a;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.6;
    vertical-align: middle;
}
.member-inline-edit__live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 600px) {
    .member-summary-list .member-summary-list__row--editing .member-summary-list__value { display: block; grid-column: 1 / -1; grid-row: 2; padding: 4px 14px 14px; }
    .member-inline-edit__fields, .member-inline-edit--address .member-inline-edit__fields { flex-basis: 100%; }
    .member-inline-edit__fields--address { grid-template-columns: minmax(0, 1fr); }
    .member-inline-edit__actions { order: 4; flex: 1 1 100%; }
    .member-inline-edit__actions .member-inline-edit__button { flex: 1 1 0; }
}

.member-result__text + .member-summary-list {
    margin-top: 16px;
}

.member-school-affiliations {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.member-school-affiliations li {
    display: grid;
    gap: 2px;
}

.member-school-affiliations__student {
    font-size: 0.9em;
    font-weight: 700;
}

.member-school-affiliations__unavailable {
    display: inline-block;
    margin-left: 8px;
    color: #5f6670;
}

.member-payment-method-page .member-action-row {
    margin-top: 0;
}

/* Lesson schedule calendar used by /mypage/ and /mypage/reservations/.
   The month controls, grid, today and selection come from calendar-core.css (shared month grid);
   this file only styles the lesson entries and the summary/detail around the grid. */

.member-schedule-calendar__empty {
    margin: 0;
    color: #5f6670;
    font-size: 13px;
    line-height: 1.7;
}

.member-makeup-calendar__note { margin: 0 0 12px; color: #5f6670; font-size: 13px; line-height: 1.7; }

.member-schedule-calendar {
    min-width: 0;
}

.member-schedule-calendar__day--today,
button.member-schedule-calendar__day--today:hover:not(.member-schedule-calendar__day--selected) {
    background: #e9f5e9;
}
.member-schedule-calendar__day--today .member-schedule-calendar__date { color: #28623a; }
.member-schedule-calendar__day--today.member-schedule-calendar__day--selected {
    background: #e9f5e9;
    box-shadow: inset 0 0 0 3px #344054;
}

.member-schedule-calendar__entry {
    display: block;
    min-width: 0;
    margin-top: 4px;
    padding: 5px 6px;
    border: 1px solid #888;
    border-radius: 6px;
    background: #f2f2f2;
    color: #333;
    font-size: 13px;
    line-height: 1.35;
    transition: border-color .15s ease;
}
.member-schedule-calendar__entry-status {
    display: inline-block;
    margin-top: 2px;
    padding: 1px 4px;
    border-radius: 3px;
    background: #fcecec;
    color: #9b1c31;
    font-weight: 800;
}

.member-schedule-calendar__entry--private {
    border-color: #dcc7f2;
    background: #f8f3fd;
    color: #57317e;
}

/* The whole day is the button, so hovering it firms up its lesson cards as the clickable cue. */
button.member-schedule-calendar__day:hover .member-schedule-calendar__entry { border-color: #555; }
button.member-schedule-calendar__day:hover .member-schedule-calendar__entry--private { border-color: #8050af; }

/* Weekends and holidays carry the same faint tint as the admin calendars, on every member calendar including the
   private date picker. The cell is tinted too, because a row grows to its tallest day and a shorter day would
   otherwise leave a white strip below its own tint. */
.member-schedule-calendar [data-aun-calendar-saturday]:not([data-aun-calendar-holiday]):not([data-aun-calendar-outside]),
.member-schedule-calendar__cell:has(> [data-aun-calendar-saturday]:not([data-aun-calendar-holiday]):not([data-aun-calendar-outside])),
.member-private-calendar__grid [data-aun-calendar-saturday]:not([data-aun-calendar-holiday]):not([data-aun-calendar-outside]),
.member-private-calendar__cell:has(> [data-aun-calendar-saturday]:not([data-aun-calendar-holiday]):not([data-aun-calendar-outside])) { background: #f5f9fd; }
.member-schedule-calendar :is([data-aun-calendar-sunday], [data-aun-calendar-holiday]):not([data-aun-calendar-outside]),
.member-schedule-calendar__cell:has(> :is([data-aun-calendar-sunday], [data-aun-calendar-holiday]):not([data-aun-calendar-outside])),
.member-private-calendar__grid :is([data-aun-calendar-sunday], [data-aun-calendar-holiday]):not([data-aun-calendar-outside]),
.member-private-calendar__cell:has(> :is([data-aun-calendar-sunday], [data-aun-calendar-holiday]):not([data-aun-calendar-outside])) { background: #fdf6f6; }

/* The chosen day on the member calendars looks like the chosen mode button: pale green with a green frame, here
   rounded and lightly hatched, over any weekend or holiday tint (the admin calendars keep their black frame). */
.member-schedule-calendar [data-aun-month-grid] [data-aun-calendar-day][aria-pressed="true"],
.member-private-calendar__grid[data-aun-month-grid] [data-aun-calendar-day][aria-pressed="true"] {
    border-radius: 8px;
    background-color: #e3f5ec;
    background-image: repeating-linear-gradient(-45deg, rgba(31, 157, 99, .12) 0 2px, transparent 2px 8px);
    box-shadow: inset 0 0 0 2px #1f9d63;
}

.member-schedule-calendar__entry-time,
.member-schedule-calendar__entry-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-schedule-calendar__entry-time { font-weight: 700; }
.member-schedule-calendar__entry-label { font-weight: 500; }
.member-schedule-calendar__more { margin-top: 4px; color: #5f6670; font-size: 13px; }

.member-schedule-calendar__detail {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.member-schedule-calendar__detail:empty { display: none; }

.member-schedule-calendar__detail-title {
    margin: 0;
    color: #111;
    font-size: 17px;
}

/* Shared lesson card (dashboard calendar and absence calendar): date, time and status lead; actions sit to the right. */
.member-reservation-card.member-lesson-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px 24px;
    align-items: start;
    position: relative;
    padding: 18px 20px 18px 24px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.member-reservation-card.member-lesson-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #2cce8a;
}

.member-lesson-card[data-lesson-status="private"]::before { background: #7b5bb5; }
.member-lesson-card[data-lesson-status="makeup"]::before { background: #111; }
.member-lesson-card[data-lesson-status="trial"]::before { background: #2271b1; }
.member-lesson-card[data-lesson-status="admin"]::before { background: #646970; }
.member-lesson-card[data-lesson-status="absent"]::before { background: #e8b84a; }
.member-lesson-card[data-lesson-status="school_canceled"]::before { background: #b5122f; }

.member-reservation-card.member-lesson-card:has(> .member-lesson-card__action) {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
}

.member-lesson-card__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.member-schedule-calendar__detail .member-lesson-card__date {
    margin: 0 0 2px;
    color: #555;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
}

.member-lesson-card__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 6px;
}

.member-lesson-card__time {
    margin: 0;
    color: #111;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.member-status__badge.member-reservation-timeline__badge--regular {
    border-color: #2cce8a;
    background: #2cce8a;
    color: #143825;
}

.member-status__badge.member-reservation-timeline__badge--school_canceled {
    border-color: #f5375b;
    background: #fff1f4;
    color: #b5122f;
}

.member-lesson-card .member-lesson-card__title {
    margin: 0;
    color: #111;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.member-lesson-card .member-lesson-card__meta {
    margin: 0;
    color: #555;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.member-lesson-card__note {
    margin: 8px 0 0;
    padding: 8px 12px;
    border-radius: 6px;
    background: #fff1f4;
    color: #8a1f1f;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.6;
}

.member-lesson-card .member-lesson-card__action {
    display: grid;
    gap: 10px;
    align-self: center;
    min-width: 0;
    max-width: none;
    width: 100%;
}

.member-absence-lesson__cutoff {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #555;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6;
}

.member-absence-lesson__help {
    margin: 0;
    color: #555;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.7;
}

.member-absence-lesson__cutoff-label,
.member-absence-lesson__cutoff-value {
    display: block;
}

.member-absence-lesson__cutoff-value {
    color: #111;
    font-size: 1.4rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .member-reservation-card.member-lesson-card,
    .member-reservation-card.member-lesson-card:has(> .member-lesson-card__action) {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 16px 16px 20px;
    }

    .member-lesson-card__time {
        font-size: 2rem;
    }

    /* Phones: each lesson is a dot under the date; tapping the day lists the details below the grid. */
    .member-schedule-calendar__entry {
        width: 8px;
        height: 8px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #555;
        font-size: 0;
    }
    .member-schedule-calendar__date + .member-schedule-calendar__entry:last-child { grid-column: 1 / -1; justify-self: center; }
    .member-schedule-calendar__entry--private { background: #8050af; }
    .member-schedule-calendar__entry-time,
    .member-schedule-calendar__entry-label,
    .member-schedule-calendar__entry-status,
    .member-schedule-calendar__more { display: none; }
}

@media (max-width: 600px) {
    /* Phones: the availability mark sits centred under the date in the compact shared grid. */
    .member-private-calendar__state { grid-column: 1 / -1; justify-self: center; margin-top: 0; font-size: 1.4rem; }
}

/* Latest member notices and the shared event shell. */
.member-notice-list--recent { margin:0 0 24px; }
.aun-member-events-route .member-main .aun-event { width:100%; max-width:none; margin:0; padding:0; }
/* At most three cards a row (each at least 250px), so the member event list keeps readable cards on wide screens. */
.aun-member-events-route .aun-event-grid { grid-template-columns:repeat(auto-fit,minmax(max(min(100%,250px),calc((100% - 48px) / 3 - 1px)),1fr)); }

.member-withdrawal-panel { margin-top:2rem; border-top:1px solid #dce3dc; padding-top:1.5rem; }
.member-withdrawal-panel p { line-height:1.8; margin-block:1rem; }
.member-withdrawal-item { border:1px solid #dce3dc; border-radius:8px; padding:1.25rem; margin-block:1.25rem; }
.member-withdrawal-item h3 { margin-top:0; font-size:1.05rem; }
.member-withdrawal-item dt { font-weight:700; margin-top:.7rem; line-height:1.8; }
.member-withdrawal-item dd { margin:0; line-height:1.8; }

/* 契約状況: one card per contract, then the payment and procedures rows shared by both. */
.member-contract__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: stretch; }
.member-contract__card { display: flex; flex-direction: column; border: 1px solid #d7dce2; border-radius: 12px; overflow: hidden; background: #fff; }
.member-contract__card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #f7f8fa; border-bottom: 1px solid #d7dce2; }
.member-contract__title { margin: 0; color: #000; font-size: 16px; font-weight: 700; line-height: 1.6; letter-spacing: .06em; }
.member-contract__group { padding: 14px 18px; }
.member-contract__group + .member-contract__group { border-top: 1px solid #e8ebef; }
.member-contract__student { margin: 0 0 4px; color: #000; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.member-contract__facts { display: grid; gap: 4px; margin: 0; }
.member-contract__fact { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.8; letter-spacing: .06em; }
.member-contract__fact dt { color: #5f6670; font-weight: 700; }
.member-contract__fact dd { margin: 0; color: #000; font-weight: 500; overflow-wrap: anywhere; }
.member-contract__empty,
.member-contract__note { margin: 0; padding: 14px 18px; color: #5f6670; font-size: 14px; font-weight: 500; line-height: 1.8; letter-spacing: .06em; }
.member-contract__note { color: #6f5100; }
.member-contract__action { padding: 0 18px 18px; }
.member-contract__common { margin-top: 20px; }
@media (max-width: 575.98px) {
    .member-contract__cards { gap: 16px; }
    .member-contract__fact { grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; }
    .member-contract__action .member-action-link { width: 100%; min-width: 0; }
}

/* アカウント情報: unfilled values read as gaps, not data; one line says what to do when nothing is filled. */
.member-summary-list .member-summary-list__value--empty { color: #6b7178; font-weight: 500; }
.member-account-card__notice { margin: 28px 34px 0; padding: 12px 16px; border: 1px solid #e8b84a; border-radius: 8px; background: #fff8e6; color: #6f5100; font-size: 14px; font-weight: 500; line-height: 1.7; }
.member-account-card__notice + .member-summary-list { margin-top: 16px; }
.member-summary-list__note--block { display: block; margin-top: 2px; }
.member-summary-list__note a { color: #0072c6; text-decoration: underline; text-underline-offset: .16em; }
@media (max-width: 600px) {
    .member-account-card__notice { margin: 22px 20px 0; }
}

/* お支払いカードの変更: last result as badges, the contracts this card will move, then the form. */
.member-payment-operation { margin-bottom: 20px; padding: 14px 18px; border: 1px solid #d7dce2; border-radius: 12px; background: #f7f8fa; }
.member-payment-operation__message { margin: 0 0 10px; color: #000; font-size: 14px; font-weight: 500; line-height: 1.8; }
.member-payment-operation__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.member-payment-operation__list li { display: flex; list-style: none; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }
.member-payment-targets-block { margin-bottom: 24px; }
.member-payment-targets-block__title { margin: 0 0 8px; color: #5f6670; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.member-payment-targets-block .member-payment-targets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.member-payment-targets-block .member-payment-targets li { display: inline-flex; list-style: none; padding: 4px 12px; border: 1px solid #d7dce2; border-radius: 999px; background: #fff; color: #000; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.member-payment-method-form { max-width: 560px; }
.member-payment-method-form__secure { margin: 0; color: #5f6670; font-size: 13px; line-height: 1.7; }
.member-payment-method-form__note { margin: 0; color: #5f6670; font-size: 13px; text-align: center; }
/* Card change result: tone by outcome, the summary sentence then one line per contract. */
.member-payment-operation--success { border-color: #bbf7d0; background: #f0fdf4; }
.member-payment-operation--error { border-color: #fecaca; background: #fef2f2; }
.member-payment-method-form__result { white-space: pre-line; }
.member-payment-operation[hidden],
.member-payment-targets-block[hidden] { display: none; }
.member-payment-method-form[data-result="finished"] > :not(.member-payment-method-form__result):not(.member-payment-method-form__done) { display: none; }
.member-payment-method-form__done[hidden] { display: none; }

/* Single-item edit pages: one 480px column (the theme's field width), hints under fields, save and cancel side by side. */
.member-account-edit-page .account-form__body { max-width: 480px; }
.member-account-edit-page .account-form__control { width: 100%; }
.member-account-edit-page .account-form__hint { display: block; margin-top: -2px; color: #5f6670; font-size: 13px; font-weight: 500; line-height: 1.6; }
.member-account-edit-current__value { display: block; padding: 10px 14px; border-radius: 6px; background: #f7f8fa; color: #5f6670; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.member-account-edit-note { margin: 0; padding: 10px 14px; border-radius: 6px; background: #f7f8fa; color: #5f6670; font-size: 13px; line-height: 1.7; }
.member-account-edit-actions { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.member-account-edit-actions .account-form__button { width: 100%; min-width: 0; }
.member-account-edit-page .account-form__button--cancel { background: #fff; color: #000 !important; border: 1px solid #000; text-decoration: none; }
@media (hover: hover) {
    .member-account-edit-page .account-form__button--cancel:hover { background: #f4f4f4; color: #000 !important; }
}
@media (max-width: 600px) {
    .member-account-edit-actions { grid-template-columns: 1fr; }
}

/* Cancellation and withdrawal: one card per procedure, the current status first, actions as buttons. */
.member-procedure__body { display: grid; gap: 16px; padding: 28px 34px 32px; }
.member-procedure__body > p { max-width: 720px; margin: 0; color: #444; font-size: 1.5rem; font-weight: 500; line-height: 1.9; }
.member-procedure__body > .member-procedure__status { color: #000; font-weight: 700; }
.member-procedure__body > .member-action-row { margin-top: 8px; }
.member-procedure__form { display: grid; gap: 16px; }
.member-procedures__back { margin: 16px 0 0; font-size: 1.5rem; }
/* Going back is secondary, so it is a text link like the event detail's back link, not a filled button. */
.member-procedures__back a { display: inline-block; padding: 8px 0; color: #000; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.member-procedures__back a:hover { text-decoration-thickness: 2px; }
@media (max-width: 767px) {
    .member-procedure__body { padding: 22px 20px 24px; }
}
/* Withdrawal requests use the shared procedure card and heading. */
.member-procedures .member-withdrawal-panel { margin: 0; padding: 0; overflow: hidden; background: #fff; border: 2px solid #000; border-radius: 20px; }
.member-procedures .member-withdrawal-panel > .member-result__title { margin: 0; padding: 10px 28px; color: #fff; background: #000; font-size: 2.4rem; font-weight: 700; letter-spacing: .06em; line-height: 1.45; }
.member-procedures .member-withdrawal-panel > p { margin: 0; padding: 0 34px; color: #333; font-size: 1.5rem; line-height: 2; }
.member-procedures .member-withdrawal-panel > .member-result__title + p { padding-top: 28px; }
.member-procedures .member-withdrawal-panel > p + p { padding-top: 12px; }
.member-procedures .member-withdrawal-panel > :last-child { padding-bottom: 32px; }
@media (max-width: 600px) {
    .member-procedures .member-withdrawal-panel { border-radius: 16px; }
    .member-procedures .member-withdrawal-panel > .member-result__title { padding: 10px 20px; font-size: 2rem; }
    .member-procedures .member-withdrawal-panel > p { padding-left: 20px; padding-right: 20px; }
}
/* Withdrawal status precedes the rules, which are shown as short lists. */
.member-procedures .member-withdrawal-panel > .member-withdrawal-status { color: #000; font-weight: 700; }
.member-procedures .member-withdrawal-panel > .member-withdrawal-subheading { margin: 0; padding: 24px 34px 8px; color: #000; font-size: 1.6rem; font-weight: 700; letter-spacing: .06em; }
.member-procedures .member-withdrawal-panel > .member-withdrawal-list { display: grid; gap: 6px; margin: 0; padding: 0 34px 0 56px; color: #333; font-size: 1.5rem; line-height: 2; list-style: disc; }
.member-procedures .member-withdrawal-panel > .member-withdrawal-contact { padding-top: 24px; }
/* Withdrawal request: student and school, then the status and last day of use, then the dates in the 契約状況 label | value layout. */
.member-procedures .member-withdrawal-panel > .member-withdrawal-item { margin: 0; padding: 24px 34px; border: 0; border-bottom: 1px solid #e8ebef; border-radius: 0; }
.member-procedures .member-withdrawal-item h3 { margin: 0; color: #000; font-size: 1.8rem; font-weight: 700; line-height: 1.5; letter-spacing: .06em; overflow-wrap: anywhere; }
.member-procedures .member-withdrawal-item__location { margin: 2px 0 0; color: #5f6670; font-size: 1.4rem; font-weight: 500; line-height: 1.8; }
.member-procedures .member-withdrawal-request { margin-top: 16px; padding: 16px 18px; border: 1px solid #d7dce2; border-radius: 12px; background: #fff; }
.member-procedures .member-withdrawal-request + .member-withdrawal-request { margin-top: 12px; }
.member-procedures .member-withdrawal-request__status { margin: 0; }
.member-procedures .member-withdrawal-request__last-day { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 12px 0 0; color: #000; line-height: 1.5; }
.member-procedures .member-withdrawal-request__last-day > span { color: #5f6670; font-size: 1.4rem; font-weight: 700; }
.member-procedures .member-withdrawal-request__last-day > strong { font-size: 2.2rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.member-procedures .member-withdrawal-request__last-day > small { flex-basis: 100%; color: #5f6670; font-size: 1.3rem; font-weight: 500; }
.member-procedures .member-withdrawal-request__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 20px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #e8ebef; font-size: 1.4rem; line-height: 1.8; letter-spacing: .06em; }
.member-procedures .member-withdrawal-request__facts > div { display: contents; }
.member-procedures .member-withdrawal-request__facts dt { margin: 0; color: #5f6670; font-weight: 700; }
.member-procedures .member-withdrawal-request__facts dd { margin: 0; color: #000; font-weight: 500; overflow-wrap: anywhere; }
.member-procedures .member-withdrawal-item form { display: grid; gap: 12px; margin-top: 16px; }
@media (max-width: 575.98px) {
    .member-procedures .member-withdrawal-panel > .member-withdrawal-item { padding: 20px; }
    .member-procedures .member-withdrawal-request { padding: 14px; }
    .member-procedures .member-withdrawal-request__facts { column-gap: 14px; letter-spacing: .02em; }
}
.member-procedures .member-withdrawal-panel > .member-action-row { margin: 0; padding: 12px 34px 32px; }
@media (max-width: 600px) {
    .member-procedures .member-withdrawal-panel > .member-withdrawal-subheading { padding-left: 20px; padding-right: 20px; }
    .member-procedures .member-withdrawal-panel > .member-withdrawal-list { padding-left: 40px; padding-right: 20px; }
    .member-procedures .member-withdrawal-panel > .member-action-row { padding-left: 20px; padding-right: 20px; }
}
/* Emphasize the status and keep guidance readable at a comfortable width. */
.member-procedures .member-withdrawal-panel > p,
.member-procedures .member-withdrawal-panel > .member-withdrawal-list { max-width: 720px; color: #444; font-weight: 500; }
.member-procedures .member-withdrawal-panel > .member-withdrawal-status { color: #000; font-weight: 700; }

/* Contract page as one table: the two contracts and the payment / procedure rows share one frame and one
   190px label column, and each contract's status leads its value column. */
.member-contract__card-body { display: grid; min-width: 0; }
/* The badge box itself sets the row height, so it centres on the text beside it. */
.member-contract__status { display: flex; align-items: center; padding: 14px 18px 0; line-height: 1; }
.member-contract__status + .member-contract__empty,
.member-contract__status + .member-contract__note,
.member-contract__status + .member-contract__group { padding-top: 8px; }
@media (min-width: 768px) {
    .member-contract__cards { grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; border: 1px solid #d7dce2; border-radius: 12px 12px 0 0; }
    .member-contract__card { display: grid; grid-template-columns: 190px minmax(0, 1fr); border: 0; border-radius: 0; }
    .member-contract__card + .member-contract__card { border-top: 1px solid #d7dce2; }
    .member-contract__card > .member-contract__card-head { align-items: flex-start; border-bottom: 0; border-right: 1px solid #d7dce2; }
    .member-contract__card > .member-contract__card-head .member-contract__title { color: #5f6670; font-size: 14px; }
    .member-contract__status + .member-contract__empty,
    .member-contract__status + .member-contract__note,
    .member-contract__status + .member-contract__group { padding-top: 4px; }
    /* A one-line status ("no contract") sits beside its badge; detail groups wrap onto their own lines. */
    .member-contract__card-body { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; }
    .member-contract__card-body > .member-contract__status { flex: 0 0 auto; padding: 12px 0 12px 18px; }
    .member-contract__card-body > .member-contract__status + .member-contract__empty,
    .member-contract__card-body > .member-contract__status + .member-contract__note { flex: 1 1 280px; padding: 12px 18px 12px 12px; }
    .member-contract__card-body > .member-contract__group { flex: 0 0 100%; box-sizing: border-box; }
    /* The sign-up action sits at the row's right end like the 変更 buttons below. */
    .member-contract__card-body > .member-contract__action { flex: 0 0 auto; margin-left: auto; padding: 0 18px 0 0; align-self: center; }
    .member-contract__card-body > .member-contract__status + .member-contract__group { padding-top: 0; }
    .member-contract__cards:last-child { border-radius: 12px; }
    .member-panel__body > .member-contract__cards + .member-contract__common { margin-top: 0; border-top: 0; border-radius: 0 0 12px 12px; }
    /* The payment and procedure labels close their column with the same line as the contract name cells above. */
    .member-contract__common .member-summary-list__label { border-right: 1px solid #d7dce2; }
}

/* The status badge sits beside the contract name; the school card splits into 在籍情報 and お支払い. */
.member-contract__card-head > .member-contract__status { padding: 0; }
.member-contract__column-title { margin: 0; padding: 14px 18px 0; color: #5f6670; font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
.member-contract__column > .member-contract__group { padding-top: 8px; }
.member-contract__column > .member-contract__group + .member-contract__group { padding-top: 14px; }
.member-contract__column + .member-contract__column { border-top: 1px solid #e8ebef; }
.member-contract__column > .member-contract__note { padding-top: 8px; }
.member-contract__student { font-size: 15px; line-height: 1.6; }
@media (min-width: 768px) {
    .member-contract__card > .member-contract__card-head { flex-wrap: wrap; align-content: flex-start; gap: 8px 10px; }
    .member-contract__card-body > :is(.member-contract__column, .member-contract__empty, .member-contract__note) { flex: 0 0 100%; box-sizing: border-box; }
    .member-contract__card-body > :is(.member-contract__empty, .member-contract__note) { padding: 12px 18px; }
    .member-contract__card-body > .member-contract__group:first-child { padding-top: 14px; }
    /* No-contract text and its sign-up button share one row, the button at the right end. */
    .member-contract__card-body > .member-contract__empty:has(+ .member-contract__action) { flex: 1 1 260px; }
}
/* Rules: each fact is a table row with a hairline between rows; the column titles are a shaded header band
   with a line under it, so 在籍情報 and お支払い read as two labelled tables. */
.member-contract .member-contract__facts { gap: 0; }
.member-contract .member-contract__fact { padding: 7px 0; }
.member-contract .member-contract__fact + .member-contract__fact { border-top: 1px solid #eef0f3; }
.member-contract .member-contract__student { margin-bottom: 2px; padding-bottom: 8px; border-bottom: 1px solid #d7dce2; }
.member-contract .member-contract__column-title { padding: 8px 18px; background: #fafbfc; border-bottom: 1px solid #e8ebef; }
.member-contract .member-contract__column > .member-contract__group { padding-top: 12px; padding-bottom: 12px; }
.member-contract .member-contract__card-body > .member-contract__group { padding-top: 10px; padding-bottom: 10px; }
.member-contract__billing-link { margin: 0; padding: 0 18px 14px; font-size: 14px; line-height: 1.5; }
.member-contract__billing-link a { color: #000; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.member-contract__billing-link a::after { content: " →"; }
.member-contract__billing-link a:hover, .member-contract__billing-link a:focus-visible { text-decoration-thickness: 2px; }
/* Side by side only when the card itself is wide enough for school names to stay on one line. */
.member-contract__card { container: member-contract-card / inline-size; }
@container member-contract-card (min-width: 950px) {
    .member-contract__card-body:has(> .member-contract__column + .member-contract__column) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; }
    .member-contract__card-body:has(> .member-contract__column + .member-contract__column) > :not(.member-contract__column) { grid-column: 1 / -1; }
    .member-contract__card-body > .member-contract__column + .member-contract__column { border-top: 0; border-left: 1px solid #e8ebef; }
}

/* 動画プランに登録する: the same size and shape as the 変更 buttons; only the accent colour stays. */
.member-contract .member-contract__action .member-action-link {
    width: auto; min-width: 0; min-height: 40px; padding: 8px 16px; border-width: 1px; border-radius: 8px;
    font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: normal; white-space: nowrap;
}

/* お支払い状況 (/account/billing/), inside the member page frame. Every invoice is one table row:
   period | kind | amount | state | actions, in a single table: open invoices (unpaid / failed, with the invoice
   link) come first, settled ones (paid / canceled) follow without actions. Processing and unknown
   observations have neutral badges and no payment action. */
.member-billing__lead { margin: 0; color: #333; font-size: 1.4rem; line-height: 1.9; }
.member-billing__section { margin-top: 24px; }
.member-billing__hint { margin: 0; color: #5f6670; font-size: 1.25rem; line-height: 1.6; }
.member-billing__table { margin: 10px 0 0; padding: 0; border: 1px solid #d7dce2; border-radius: 12px; background: #fff; list-style: none; overflow: hidden; }
/* The table's own width (not the screen's) decides the layout: beside the member menu a 1024px screen leaves too
   little room for one-line rows, so narrow tables stack each row like on phones. */
.member-billing__table { container: member-billing-table / inline-size; }
.member-billing__row { display: grid; grid-template-columns: 9em 4.5em 7.5em auto minmax(0, 1fr); align-items: center; gap: 2px 16px; padding: 10px 16px; font-size: 14px; line-height: 1.6; letter-spacing: .04em; }
.member-billing__row + .member-billing__row { border-top: 1px solid #e8ebef; }
.member-billing__row-period { color: #000; font-weight: 700; }
.member-billing__row-period small { display: block; color: #5f6670; font-size: 12px; font-weight: 500; }
.member-billing__row-kind { color: #5f6670; font-weight: 500; }
.member-billing__row-amount { color: #000; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.member-billing__row .member-status__badge { justify-self: start; }
/* Only states that need the member's attention get colour; waiting, unverified and scheduled stay neutral. */
.member-billing__row--unpaid .member-status__badge,
.member-billing__row--unknown .member-status__badge,
.member-billing__row--scheduled .member-status__badge {border-color: #c3c8d0; background: #fff; color: #3c434a; }
.member-billing__row--failed { background: #fffafb; }
.member-billing__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; grid-column: 5; grid-row: 1; }
.member-billing__actions form { margin: 0; }
.member-billing__actions button { min-height: 40px; padding: 6px 14px; border: 1px solid #000; border-radius: 8px; background: #fff; color: #000; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.5; text-align: center; white-space: nowrap; cursor: pointer; }
.member-billing__actions button:hover { background: #f4f4f4; }
.member-billing__actions button:focus-visible { outline: 3px solid #2271b1; outline-offset: 2px; }
.member-billing__actions button:disabled { border-color: #c3c4c7; color: #8a8a8a; cursor: wait; }
.member-billing__empty,
.member-billing__error { margin: 20px 0 0; padding: 16px; border: 1px solid #d7dce2; border-radius: 12px; background: #fff; color: #333; font-size: 1.4rem; line-height: 1.8; }
.member-billing__error { border-color: #e8b84a; background: #fff8e6; color: #6f5100; }
.member-billing__empty { padding: 20px 16px; background: #f7f8fa; color: #000; font-size: 1.5rem; font-weight: 700; letter-spacing: .06em; text-align: center; }
.member-billing__back { margin: 24px 0 0; font-size: 1.4rem; }
.member-billing__back a { color: #000; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@container member-billing-table (max-width: 680px) {
    .member-billing__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; }
    .member-billing__row-period { white-space: nowrap; }
    .member-billing__row-kind { grid-column: 1; grid-row: 2; }
    .member-billing__row-amount { grid-column: 2; grid-row: 2; }
    .member-billing__row .member-status__badge { grid-column: 2; grid-row: 1; justify-self: end; }
    .member-billing__actions { grid-column: 1 / -1; grid-row: auto; justify-content: stretch; margin-top: 6px; }
    .member-billing__actions form { flex: 1 1 0; }
    .member-billing__actions button { width: 100%; min-height: 40px; }
}
/* On the smallest phones the period and a long status badge cannot share a line, so the badge drops below the period. */
@container member-billing-table (max-width: 300px) {
    .member-billing__row-period { grid-column: 1 / -1; grid-row: 1; }
    .member-billing__row .member-status__badge { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
    .member-billing__row-kind { grid-row: 3; }
    .member-billing__row-amount { grid-row: 3; }
}

.member-billing__pagination { display: flex; justify-content: center; gap: 20px; margin-top: 20px; font-size: 14px; }

/* Lesson states: every state has a mark that reads without colour; the legend under the calendar explains them.
   Only lesson calendars opt in (--states); slot calendars keep the plain dot. */
.member-schedule-calendar--states .member-schedule-calendar__entry { position: relative; }
.member-schedule-calendar__entry-mark { position: absolute; top: 4px; right: 6px; color: #555; font-size: 11px; font-weight: 700; line-height: 1; }
.member-schedule-calendar--states .member-schedule-calendar__entry-time { padding-right: 14px; }
.member-schedule-calendar__entry--off .member-schedule-calendar__entry-mark { color: #b5122f; }
.member-schedule-calendar__entry--waiting .member-schedule-calendar__entry-mark { color: #8a6100; }
.member-schedule-calendar__entry--done .member-schedule-calendar__entry-mark { color: #1d6b46; }
.member-schedule-calendar__entry--moved,
.member-schedule-calendar__entry--unknown { border-style: dashed; }
.member-schedule-calendar__entry--done .member-schedule-calendar__entry-status,
.member-schedule-calendar__entry--other .member-schedule-calendar__entry-status,
.member-schedule-calendar__entry--moved .member-schedule-calendar__entry-status,
.member-schedule-calendar__entry--unknown .member-schedule-calendar__entry-status { background: #f0f2f5; color: #3c434a; }
.member-schedule-calendar__entry--waiting .member-schedule-calendar__entry-status { background: #fff4d8; color: #6f5100; }
.member-schedule-calendar__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; color: #3c434a; font-size: 13px; line-height: 1.6; }
.member-schedule-calendar__legend[hidden] { display: none; }
.member-schedule-calendar__legend-item { display: inline-flex; align-items: center; gap: 6px; }
.member-schedule-calendar__legend-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2em; color: #555; font-weight: 700; }
.member-schedule-calendar__legend-mark--1 { color: #1d6b46; }
.member-schedule-calendar__legend-mark--4, .member-schedule-calendar__legend-mark--5 { color: #b5122f; }
.member-schedule-calendar__legend-mark--7 { color: #8a6100; }
@media (max-width: 600px) {
    /* Phones: the mark itself sits under the date instead of the plain dot. */
    .member-schedule-calendar--states .member-schedule-calendar__entry { width: auto; height: auto; background: none; border-radius: 0; line-height: 1; }
    .member-schedule-calendar--states .member-schedule-calendar__entry--private { background: none; }
    .member-schedule-calendar--states .member-schedule-calendar__entry-mark { position: static; display: block; font-size: 12px; }
    .member-schedule-calendar--states .member-schedule-calendar__entry--planned .member-schedule-calendar__entry-mark { font-size: 10px; }
    .member-schedule-calendar--states .member-schedule-calendar__entry--private .member-schedule-calendar__entry-mark { color: #8050af; }
    .member-schedule-calendar--states .member-schedule-calendar__entry-time { padding-right: 0; }
}

/* Lesson card badges for the states the reservation context never had. */
.member-status__badge.member-reservation-timeline__badge--attended { border-color: #2cce8a; background: #fff; color: #1d6b46; }
.member-status__badge.member-reservation-timeline__badge--completed,
.member-status__badge.member-reservation-timeline__badge--rescheduled_from { border-color: #d7dce2; background: #f0f2f5; color: #5f6670; }
.member-status__badge.member-reservation-timeline__badge--pending { border-color: #e8b84a; background: #fff4d8; color: #6f5100; }
.member-status__badge.member-reservation-timeline__badge--unknown { border-color: #8a9099; border-style: dashed; background: #fff; color: #3c434a; }

/* Next lesson, above the dashboard calendar. */
.member-next-lesson { display: grid; gap: 2px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid #d7dce2; border-radius: 12px; background: #f7f8fa; }
.member-next-lesson p { margin: 0; }
.member-next-lesson__label { color: #5f6670; font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; }
.member-next-lesson__when { color: #000; font-size: 1.8rem; font-weight: 700; line-height: 1.5; }
.member-next-lesson__what { color: #3c434a; font-size: 1.4rem; line-height: 1.8; overflow-wrap: anywhere; }
.member-next-lesson__note { color: #6f5100; font-size: 1.3rem; font-weight: 700; }
p.member-next-lesson { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.member-next-lesson__text { color: #3c434a; font-size: 1.4rem; line-height: 1.8; }
.member-next-lesson--error .member-next-lesson__text { color: #6f5100; }

/* Event application states, per student. Display only. */
.member-status__badge.member-event-state--confirmed { background-color: #2cce8a; color: #143825; }
.member-status__badge.member-event-state--payment-checking,
.member-status__badge.member-event-state--cancellation-processing { border-color: #e8b84a; background-color: #fff4d8; color: #6f5100; }
.member-status__badge.member-event-state--waitlisted { border-color: #8a9099; background-color: #fff; color: #3c434a; }
.member-status__badge.member-event-state--none { border-color: #d7dce2; background-color: #f0f2f5; color: #5f6670; }
.member-status__badge.member-event-state--unknown { border-color: #8a9099; border-style: dashed; background-color: #fff; color: #3c434a; }
.member-event-states { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.member-event-states--single { display: block; }
.member-event-states__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.4rem; line-height: 1.6; }
.member-event-states__name { color: #000; font-weight: 700; overflow-wrap: anywhere; }
.member-event-shortcut__notice { margin: 0 0 12px; color: #6f5100; font-size: 1.4rem; line-height: 1.8; }
.member-event-shortcut__event-status { margin: 6px 0 0; color: #b5122f; font-size: 1.3rem; font-weight: 700; }
.member-event-shortcut__item .member-reservation-timeline__class a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .member-private-payment-modal:not([hidden]) :is(.member-private-payment-modal__backdrop, .member-private-payment-modal__dialog),
    .member-reservation-confirm[open],
    .member-reservation-confirm[open]::backdrop {
        animation: none;
    }
}

/* お支払い状況 → お支払い方法の変更: one line and an outline button above the way back. */
.member-billing__card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 24px 0 0; padding: 16px; border: 1px solid #d7dce2; border-radius: 12px; background: #f7f8fa; }
.member-billing__card-text { flex: 1 1 260px; margin: 0; color: #333; font-size: 1.4rem; line-height: 1.8; }
.member-billing__card .member-billing__card-link { min-width: 0; min-height: 44px; padding: 8px 18px; font-size: 1.4rem; }

/* Member lesson calendars (the ones with marks): upcoming class lessons in green, the colour of their card edge and
   「予定」 badge; the member's own events in blue with a ◆/◇ mark. Past or changed lessons keep the grey look, and
   calendars of bookable slots (振替候補) stay as they were. */
.member-schedule-calendar--states .member-schedule-calendar__entry--class.member-schedule-calendar__entry--planned { border-color: #8fd5b3; background: #ebf8f1; color: #145c3a; }
.member-schedule-calendar--states button.member-schedule-calendar__day:hover .member-schedule-calendar__entry--class.member-schedule-calendar__entry--planned { border-color: #1d8a5a; }
.member-schedule-calendar--states .member-schedule-calendar__entry--class.member-schedule-calendar__entry--planned .member-schedule-calendar__entry-mark { color: #1f9d63; }
.member-schedule-calendar__entry--event { border-color: #a9c8ec; background: #eef5fc; color: #0b4a8b; }
button.member-schedule-calendar__day:hover .member-schedule-calendar__entry--event { border-color: #0a66c2; }
.member-schedule-calendar__entry--event .member-schedule-calendar__entry-mark { color: #0a66c2; }
.member-schedule-calendar__entry--event.member-schedule-calendar__entry--off .member-schedule-calendar__entry-mark { color: #b5122f; }
.member-schedule-calendar__entry--event-waitlist { border-style: dashed; }
.member-schedule-calendar__entry--event-waitlist .member-schedule-calendar__entry-status { background: #f0f2f5; color: #3c434a; }
.member-schedule-calendar--states .member-schedule-calendar__legend-mark--0 { color: #1f9d63; }
.member-schedule-calendar__legend-mark--9,
.member-schedule-calendar__legend-mark--10 { color: #0a66c2; }
@media (max-width: 600px) {
    .member-schedule-calendar__entry--event { background: #0a66c2; }
    .member-schedule-calendar--states .member-schedule-calendar__entry--event,
    .member-schedule-calendar--states .member-schedule-calendar__entry--class.member-schedule-calendar__entry--planned { background: none; }
    .member-schedule-calendar--states .member-schedule-calendar__entry--event .member-schedule-calendar__entry-mark { color: #0a66c2; font-size: 11px; }
}

/* What the dashboard calendar's events cover, a quiet line under the calendar. */
.member-day-agenda-scope { margin: 10px 0 0; color: #5f6670; font-size: 1.3rem; font-weight: 500; line-height: 1.7; }

/* Dashboard: the selected day as one agenda in the soft grey box, each lesson or event a white row.
   A state chip appears only for an unusual state; an event row links to its page. */
.member-day-agenda-panel { padding: 16px 18px 18px; border: 1px solid #d7dce2; border-radius: 12px; background: #f7f8fa; }
.member-day-agenda__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; color: #111; font-size: 1.6rem; font-weight: 800; line-height: 1.5; }
.member-day-agenda__holiday { color: #9b1c31; font-size: 1.3rem; font-weight: 700; }
.member-day-agenda { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.member-day-agenda__item { overflow: hidden; border: 1px solid #dfe3e8; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.member-day-agenda__row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto; grid-template-areas: "time body chevron"; align-items: center; gap: 4px 20px; padding: 16px 20px; color: inherit; text-decoration: none; }
a.member-day-agenda__row { transition: background-color .15s ease; }
a.member-day-agenda__row:hover { background: #f5f9fd; }
a.member-day-agenda__row:hover .member-day-agenda__title { text-decoration: underline; text-underline-offset: 3px; }
a.member-day-agenda__row:focus-visible { outline: 2px solid #4d90fe; outline-offset: -2px; }
.member-day-agenda__time { grid-area: time; align-self: start; margin: 0; color: #111; font-size: 2rem; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.member-day-agenda__end { display: block; color: #5f6670; font-size: 1.3rem; font-weight: 600; line-height: 1.6; }
.member-day-agenda__body { grid-area: body; min-width: 0; }
.member-day-agenda__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.member-day-agenda__kind,
.member-day-agenda__status { display: inline-flex; align-items: center; padding: 1px 9px; border: 1px solid; border-radius: 999px; font-size: 1.2rem; font-weight: 800; line-height: 1.6; }
.member-day-agenda__kind--lesson { border-color: #8fd5b3; background: #ebf8f1; color: #145c3a; }
.member-day-agenda__kind--event { border-color: #a9c8ec; background: #eef5fc; color: #0b4a8b; }
.member-day-agenda__kind--private { border-color: #dcc7f2; background: #f8f3fd; color: #57317e; }
.member-day-agenda__status--waiting { border-color: #e8b84a; background: #fff4d8; color: #6f5100; }
.member-day-agenda__status--off { border-color: #f5375b; background: #fff1f4; color: #b5122f; }
.member-day-agenda__status--other { border-color: #c3c8cf; background: #f0f2f5; color: #3c434a; }
.member-day-agenda__title { margin: 0; color: #111; font-size: 1.6rem; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.member-day-agenda__meta { margin: 2px 0 0; color: #5f6670; font-size: 1.3rem; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.member-day-agenda__students { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.member-day-agenda__student { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 1.3rem; line-height: 1.6; }
.member-day-agenda__student-name { color: #111; font-weight: 700; overflow-wrap: anywhere; }
.member-day-agenda__note { margin: 8px 0 0; padding: 6px 10px; border-radius: 6px; background: #fff1f4; color: #8a1f1f; font-size: 1.3rem; font-weight: 700; line-height: 1.6; }
.member-day-agenda__chevron { grid-area: chevron; color: #5f6670; font-size: 2.4rem; line-height: 1; }
@media (max-width: 600px) {
    /* Phones: the time sits on its own line above the name, so the name keeps the full width. */
    .member-day-agenda-panel { padding: 12px 10px; }
    .member-day-agenda__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time chevron" "body chevron"; gap: 6px 10px; padding: 12px 14px; }
    .member-day-agenda__time { display: flex; align-items: baseline; gap: 2px; font-size: 1.7rem; }
    .member-day-agenda__end { display: inline; font-size: 1.3rem; }
}

/* 予約・欠席: the same day list, with each lesson's 欠席登録締切 and action at the right of its row. */
.member-day-agenda__row--action { grid-template-columns: 6.5em minmax(0, 1fr) minmax(18rem, 26rem); grid-template-areas: "time body action"; }
.member-day-agenda__action { grid-area: action; display: grid; gap: 8px; min-width: 0; }
.member-day-agenda__action .member-absence-lesson__cutoff { background: #f7f8fa; }
.member-day-agenda__action .member-reservation-button { width: 100%; }

@media (max-width: 600px) {
    .member-day-agenda__row--action { grid-template-columns: minmax(0, 1fr); grid-template-areas: "time" "body" "action"; }
    .member-day-agenda__action { margin-top: 6px; }
}

/* 振替候補: seats left read as an open (green) or full (red) word; a row without its action says why. */
.member-day-agenda__status--open { border-color: #8fd5b3; background: #ebf8f1; color: #145c3a; }
.member-day-agenda__help { margin: 0; color: #555; font-size: 1.3rem; font-weight: 500; line-height: 1.7; }

/* Dashboard 「イベントの申込状況」 in the same style: date | name, time and place | each state | ›. */
.member-event-list { padding: 12px; border: 1px solid #d7dce2; border-radius: 12px; background: #f7f8fa; }
.member-event-list__items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.member-event-list__item { overflow: hidden; border: 1px solid #dfe3e8; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.member-event-list__row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto auto; grid-template-areas: "date body state chevron"; align-items: center; gap: 4px 18px; padding: 14px 18px; color: inherit; text-decoration: none; }
a.member-event-list__row { transition: background-color .15s ease; }
a.member-event-list__row:hover { background: #f5f9fd; }
a.member-event-list__row:hover .member-event-list__title { text-decoration: underline; text-underline-offset: 3px; }
a.member-event-list__row:focus-visible { outline: 2px solid #4d90fe; outline-offset: -2px; }
.member-event-list__date { grid-area: date; display: flex; flex-direction: column; align-self: start; margin: 0; color: #111; line-height: 1.3; font-variant-numeric: tabular-nums; }
.member-event-list__day { font-size: 2rem; font-weight: 800; }
.member-event-list__weekday { color: #5f6670; font-size: 1.3rem; font-weight: 600; line-height: 1.6; }
.member-event-list__body { grid-area: body; min-width: 0; }
.member-event-list .member-event-list__title { margin: 0; color: #111; font-size: 1.6rem; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.member-event-list__meta { margin: 2px 0 0; color: #5f6670; font-size: 1.3rem; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.member-event-list__note { margin: 8px 0 0; padding: 6px 10px; border-radius: 6px; background: #fff1f4; color: #8a1f1f; font-size: 1.3rem; font-weight: 700; line-height: 1.6; }
.member-event-list__state { grid-area: state; min-width: 0; }
.member-event-list__state .member-event-states { margin: 0; }
.member-event-list__chevron { grid-area: chevron; color: #5f6670; font-size: 2.4rem; line-height: 1; }
@media (max-width: 600px) {
    /* Phones: date on its own line above the name, states under it, so the name keeps the full width. */
    .member-event-list { padding: 10px; }
    .member-event-list__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date chevron" "body chevron" "state chevron"; gap: 4px 10px; padding: 12px 14px; }
    .member-event-list__date { flex-direction: row; align-items: baseline; }
    .member-event-list__day { font-size: 1.7rem; }
    .member-event-list__state { justify-self: start; margin-top: 4px; }
}

/* 予約済みレッスン: the same list with each reservation's cancel actions at the right (below on phones). */
.member-event-list__row--action { grid-template-columns: 5.5em minmax(0, 1fr) minmax(18rem, 26rem); grid-template-areas: "date body action"; }
.member-event-list__row .member-reservation-card__cancel > .member-reservation-button { justify-self: stretch; }

@media (max-width: 600px) {
    .member-event-list__row--action { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "body" "action"; }
}
