/* ═══════════════════════════════════════════════════════════════
   cast.css  ─  Design system for cast (logged-in) pages
   Main pink   : #E89EA3   Light pink : #FCEEEF
   Background  : #FFF8F8   Text       : #4A3F3A
   Sub text    : #9A8D87   Greige     : #D9CEC5
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
body.role-cast {
    --cp:    #E89EA3;  /* main pink          */
    --cplt:  #FCEEEF;  /* light pink         */
    --cpbg:  #FFF8F8;  /* page background    */
    --ct:    #4A3F3A;  /* main text          */
    --cs:    #9A8D87;  /* sub / muted text   */
    --cg:    #D9CEC5;  /* greige / border    */
    --ch:    56px;     /* header height      */
    --cnw:   220px;    /* desktop sidebar w  */
}

/* ═══════════════════════════════════════════════════════════════
   ONE STYLE Design System v1.0 — logged-in cast application
   This final layer intentionally normalizes every cast screen.
   ═══════════════════════════════════════════════════════════════ */
body.role-cast {
    --cp: #F50078;
    --cplt: #FFF0F7;
    --cpbg: #FFFFFF;
    --ct: #2B2B2B;
    --cs: #6F6A66;
    --cg: #ECE7E2;
    --cast-greige-100: #F8F6F4;
    --cast-greige-200: #F2EEEA;
    --cast-greige-500: #D8CCC3;
    --cast-greige-700: #A99A92;
    --cast-greige-900: #72675F;
    --cast-success: #2CB67D;
    --cast-waiting: #C79A5B;
    --cast-error: #E15C68;
    --cast-radius-card: 16px;
    --cast-radius-large: 20px;
    --cast-radius-control: 14px;
    --cast-shadow: 0 4px 20px rgba(114, 103, 95, .08);
    --ch: 92px;
    margin: 0;
    background: var(--cast-greige-100);
    color: var(--ct);
    font-family: Inter, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.role-cast .layout {
    width: min(100%, 430px);
    min-height: 100dvh;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 40px rgba(114, 103, 95, .08);
    overflow-x: clip;
}

body.role-cast .site-header {
    height: var(--ch);
    border: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.role-cast .site-header .container { padding: 20px 20px 12px; }
body.role-cast .site-header-row { align-items: center; }
body.role-cast .cast-logo { width: 148px; height: 48px; object-fit: contain; object-position: left center; }
body.role-cast .cast-header-icons { gap: 16px; }
body.role-cast .cast-header-icon { width: 40px; height: 40px; color: var(--cast-greige-900); border-radius: 50%; }
body.role-cast .cast-header-icon:hover { color: var(--cp); background: var(--cplt); }
body.role-cast .cast-header-icon svg { width: 24px; height: 24px; stroke-width: 2; }
body.role-cast .cast-header-badge,
body.role-cast .cast-nav-badge,
body.role-cast .nav-badge {
    background: var(--cp);
    color: #fff;
    border: 2px solid #fff;
    font-family: Inter, sans-serif;
}

body.role-cast .site-main { padding: 0 0 calc(96px + env(safe-area-inset-bottom)); }
body.role-cast .site-main .container { width: 100%; max-width: none; }
body.role-cast .page-card { padding: 24px 16px 32px; }
body.role-cast .page-card > h2:first-child,
body.role-cast .page-card > div:first-child > h2:first-child {
    margin: 0 0 24px;
    color: var(--ct);
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -.01em;
}
body.role-cast h1 { font-size: 28px; line-height: 36px; }
body.role-cast h2 { font-size: 24px; line-height: 32px; }
body.role-cast h3 { margin: 24px 0 12px; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.005em; }
body.role-cast h4 { font-size: 18px; line-height: 26px; font-weight: 600; }
body.role-cast p { color: var(--cs); }
body.role-cast a { color: inherit; }
body.role-cast a:hover { color: var(--cp); }

body.role-cast .button,
body.role-cast button.button,
body.role-cast input[type="submit"] {
    min-height: 52px;
    box-sizing: border-box;
    padding: 12px 24px;
    border: 1px solid var(--cp);
    border-radius: var(--cast-radius-control);
    background: var(--cp);
    box-shadow: 0 4px 20px rgba(245, 0, 120, .08);
    color: #fff;
    font: 600 16px/24px Inter, "Noto Sans JP", sans-serif;
    text-align: center;
    transition: transform .1s ease, opacity .1s ease, border-color .1s ease;
}
body.role-cast .button:hover,
body.role-cast button.button:hover { background: var(--cp); color: #fff; opacity: .95; }
body.role-cast .button:active,
body.role-cast button.button:active { transform: scale(.98); }
body.role-cast .button-secondary,
body.role-cast .cast-btn-decline,
body.role-cast .block-btn {
    min-height: 48px;
    border: 1px solid var(--cg);
    border-radius: var(--cast-radius-control);
    background: var(--cast-greige-100);
    box-shadow: none;
    color: var(--cast-greige-900);
    font-weight: 500;
}
body.role-cast .button-secondary:hover { border-color: var(--cast-greige-500); background: var(--cast-greige-200); color: var(--cast-greige-900); }
body.role-cast button:disabled,
body.role-cast .button:disabled { border-color: #f2f2f2; background: #f2f2f2; box-shadow: none; color: #beb8b2; }

body.role-cast .form-grid { gap: 16px; }
body.role-cast .form-field { gap: 8px; }
body.role-cast .form-field > label,
body.role-cast label:not(.cast-toggle) { color: var(--cast-greige-900); font-size: 13px; line-height: 20px; font-weight: 500; }
body.role-cast .form-input,
body.role-cast input[type="text"],
body.role-cast input[type="email"],
body.role-cast input[type="password"],
body.role-cast input[type="number"],
body.role-cast input[type="date"],
body.role-cast input[type="time"],
body.role-cast input[type="url"],
body.role-cast input[type="tel"],
body.role-cast select,
body.role-cast textarea {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid var(--cg);
    border-radius: var(--cast-radius-control);
    background: #fff;
    color: var(--ct);
    font: 400 16px/24px Inter, "Noto Sans JP", sans-serif;
    outline: none;
    transition: border-color .1s ease;
}
body.role-cast textarea { min-height: 120px; resize: vertical; }
body.role-cast .form-input:focus,
body.role-cast input:focus,
body.role-cast select:focus,
body.role-cast textarea:focus { border: 2px solid var(--cp); box-shadow: none; }
body.role-cast input[type="checkbox"], body.role-cast input[type="radio"] { width: 24px; height: 24px; accent-color: var(--cp); }
body.role-cast .form-error { margin: 0; color: var(--cast-error); font-size: 12px; line-height: 18px; }
body.role-cast .field-hint,
body.role-cast .meta-text { color: var(--cs); font-size: 12px; line-height: 18px; }

body.role-cast .simple-table {
    display: block;
    margin: 16px 0 24px;
    overflow: hidden;
    border: 1px solid var(--cg);
    border-radius: var(--cast-radius-card);
    background: #fff;
    box-shadow: var(--cast-shadow);
}
body.role-cast .simple-table tbody,
body.role-cast .simple-table thead { display: table; width: 100%; table-layout: fixed; }
body.role-cast .simple-table th,
body.role-cast .simple-table td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--cg); overflow-wrap: anywhere; }
body.role-cast .simple-table tr:last-child th,
body.role-cast .simple-table tr:last-child td { border-bottom: 0; }
body.role-cast .simple-table th { width: 34%; background: var(--cast-greige-100); color: var(--cast-greige-900); font-size: 13px; font-weight: 500; }
body.role-cast .simple-table td { color: var(--ct); font-size: 15px; }

body.role-cast .dashboard-card,
body.role-cast .dashboard-notifications,
body.role-cast .dashboard-notification-item,
body.role-cast .message-card,
body.role-cast .notification-card,
body.role-cast .job-card,
body.role-cast .shop-card,
body.role-cast .schedule-card,
body.role-cast .card {
    border: 1px solid var(--cg);
    border-radius: var(--cast-radius-card);
    background: #fff;
    box-shadow: var(--cast-shadow);
}
body.role-cast .dashboard-cards { gap: 16px; }
body.role-cast .dashboard-card { padding: 16px; }
body.role-cast .dashboard-card-count { color: var(--cp); font-family: Inter, sans-serif; }
body.role-cast .badge,
body.role-cast [class*="status-badge"] { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
body.role-cast .flash,
body.role-cast .notice { margin: 12px 16px 0; padding: 12px 16px; border-radius: var(--cast-radius-control); font-size: 13px; }
body.role-cast .flash-success,
body.role-cast .notice-success { border-color: var(--cast-success); background: #effaf6; }
body.role-cast .flash-error,
body.role-cast .notice-error { border-color: var(--cast-error); background: #fff3f4; }
body.role-cast .notice-warning { border-color: var(--cast-waiting); background: #fff8ee; }

body.role-cast .cast-bottom-nav {
    right: auto;
    left: 50%;
    width: min(100%, 430px);
    height: calc(80px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateX(-50%);
    border-top: 1px solid var(--cg);
    box-shadow: 0 -4px 20px rgba(114,103,95,.06);
}
body.role-cast .cast-bottom-nav-item { gap: 4px; padding: 10px 2px 8px; color: var(--cast-greige-700); }
body.role-cast .cast-bottom-nav-item.is-active,
body.role-cast .cast-bottom-nav-item:hover { color: var(--cp); }
body.role-cast .cast-bottom-nav-icon svg { width: 24px; height: 24px; stroke-width: 2; }
body.role-cast .cast-bottom-nav-label { font-size: 12px; line-height: 18px; font-weight: 500; }
body.role-cast .cast-nav-badge { top: 5px; left: calc(50% + 3px); color: #fff; }

body.role-cast .cast-greeting { padding: 24px 20px 0; }
body.role-cast .cast-greeting-hello { color: var(--cs); font-size: 15px; line-height: 22px; font-weight: 400; }
body.role-cast .cast-greeting-hello .cast-name-highlight { color: inherit; }
body.role-cast .cast-greeting-sub { margin-top: 8px; color: var(--ct); font-size: 26px; line-height: 36px; font-weight: 700; letter-spacing: -.01em; }
body.role-cast .cast-section { margin-top: 32px; }
body.role-cast .cast-section-header { padding: 0 20px; margin-bottom: 12px; }
body.role-cast .cast-section-title { font-size: 20px; line-height: 28px; font-weight: 600; }
body.role-cast .cast-section-more { color: var(--cp); font-size: 13px; font-weight: 500; }
body.role-cast .cast-section-more::after { content: " ›"; font-size: 18px; vertical-align: -1px; }
body.role-cast .cast-tonight-card,
body.role-cast .cast-stat-card,
body.role-cast .cast-job-card,
body.role-cast .cast-offer-card,
body.role-cast .cast-income-card,
body.role-cast .cast-notification-card,
body.role-cast .cast-calendar-wrap,
body.role-cast .cast-menu-item { border: 1px solid var(--cg); border-radius: var(--cast-radius-card); box-shadow: var(--cast-shadow); }
body.role-cast .cast-stats-row { gap: 10px; padding: 0 20px; }
body.role-cast .cast-stat-card { min-height: 104px; padding: 16px 8px; display: flex; flex-direction: column; justify-content: space-between; }
body.role-cast .cast-stat-count { color: var(--ct); font: 500 28px/34px Inter, sans-serif; order: 2; }
body.role-cast .cast-stat-count.has-alert { color: var(--cp); }
body.role-cast .cast-stat-label { color: var(--cs); font-size: 13px; line-height: 20px; order: 1; }
body.role-cast .cast-job-scroll { padding: 2px 20px 8px; }
body.role-cast .cast-job-card { width: 236px; }
body.role-cast .cast-job-card-img-wrap { height: 132px; background: var(--cast-greige-100); }
body.role-cast .cast-job-card-body { padding: 16px; }
body.role-cast .cast-job-card-name { font-size: 18px; line-height: 26px; font-weight: 600; }
body.role-cast .cast-job-card-area,
body.role-cast .cast-job-card-time { color: var(--cs); font-size: 13px; line-height: 20px; }
body.role-cast .cast-job-card-wage { color: var(--cp); font-size: 16px; line-height: 24px; }
body.role-cast .cast-menu-grid { grid-template-columns: repeat(3, 1fr); padding: 0 20px; }
body.role-cast .cast-menu-icon { background: var(--cast-greige-100); color: var(--cast-greige-700); }
body.role-cast .cast-toggle { width: 51px; height: 31px; }
body.role-cast .cast-toggle-track { border-radius: 31px; background: var(--cg); }
body.role-cast .cast-toggle-thumb { width: 25px; height: 25px; }
body.role-cast .cast-toggle input:checked ~ .cast-toggle-thumb { transform: translateX(20px); }
body.role-cast .cast-job-fixed-layer { bottom: calc(80px + env(safe-area-inset-bottom)); width: min(100%, 430px); margin: 0 auto; border-color: var(--cg); background: rgba(255,255,255,.96); }
body.role-cast .cast-job-fixed-apply { min-height: 52px; border-radius: var(--cast-radius-control); }

@media (max-width: 600px) {
    body.role-cast .simple-table thead { display: none; }
    body.role-cast .simple-table tbody { display: block; }
    body.role-cast .simple-table tr { display: grid; grid-template-columns: minmax(100px, 34%) 1fr; }
    body.role-cast .simple-table th, body.role-cast .simple-table td { width: auto; }
    body.role-cast .simple-table tr:has(td[colspan]) { display: block; }
}

@media (min-width: 431px) {
    body.role-cast { padding: 24px 0; }
    body.role-cast .layout { min-height: calc(100dvh - 48px); border-radius: 32px; }
    body.role-cast .site-header { border-radius: 32px 32px 0 0; }
    body.role-cast .cast-bottom-nav { bottom: 24px; border-radius: 0 0 32px 32px; }
}

/* ── Global reset for cast role ─────────────────────────────── */
body.role-cast {
    background: var(--cpbg);
    color: var(--ct);
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴ ProN W3', 'Yu Gothic Medium', 'Meiryo', sans-serif;
}

body.role-cast a            { color: var(--ct); text-decoration: none; }
body.role-cast a:hover      { color: var(--cp); }

body.role-cast .layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────── */
body.role-cast .site-header {
    background: #fff;
    border-bottom: 1px solid var(--cg);
    position: sticky;
    top: 0;
    z-index: 150;
    height: var(--ch);
}

body.role-cast .site-header .container {
    height: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

body.role-cast .site-header-row {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* hide legacy elements */
body.role-cast .site-title,
body.role-cast .site-user-tools { display: none !important; }

/* Cast logo */
.cast-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.cast-logo {
    height: 26px;
    width: auto;
    display: block;
}

/* Header icons */
.cast-header-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cast-header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct);
    font-size: 21px;
    line-height: 1;
    text-decoration: none;
}

.cast-header-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--cp);
    color: #fff;
    font-size: 8px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 10px;
    min-width: 14px;
    text-align: center;
    line-height: 1.6;
    pointer-events: none;
}

.cast-header-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cplt);
    border: 1.5px solid var(--cg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
}

.cast-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* ── Suppress old role nav ───────────────────────────────────── */
body.role-cast .role-nav { display: none !important; }

/* ── Bottom nav (mobile-first) ───────────────────────────────── */
body.role-cast .cast-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--cg);
    display: flex;
    align-items: stretch;
    z-index: 150;
    box-shadow: 0 -2px 16px rgba(74, 63, 58, .07);
}

.cast-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #6b6460;
    padding: 6px 4px 4px;
    transition: color .15s;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.cast-bottom-nav-item.is-active { color: var(--cp); }
.cast-bottom-nav-item:hover     { color: var(--cp); }

.cast-bottom-nav-icon {
    font-size: 20px;
    line-height: 1;
    display: block;
}

.cast-bottom-nav-label {
    font-size: 9px;
    line-height: 1;
    display: block;
    white-space: nowrap;
}

/* "仕事を探す" — same style as other items */
.cast-bottom-nav-item.is-center {
    background: none;
    color: #6b6460;
    border-radius: 0;
    margin: 0;
    padding-top: 6px;
}

.cast-bottom-nav-item.is-center:hover     { background: none; color: var(--cp); }
.cast-bottom-nav-item.is-center.is-active { background: none; color: var(--cp); }

.cast-nav-badge {
    position: absolute;
    top: 5px;
    left: calc(50% + 4px);
    background: #E53935;
    color: #000;
    font-size: 9px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    text-align: center;
    line-height: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}


/* ── Main content area ───────────────────────────────────────── */
body.role-cast .site-main {
    padding: 0 0 68px;
    flex: 1;
}

/* Remove page-card box styling, keep inner padding */
body.role-cast .page-card {
    background: transparent;
    border: none;
    padding: 20px 16px;
    box-shadow: none;
}

/* Full-width container on mobile */
body.role-cast .site-main .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* ── Footers ─────────────────────────────────────────────────── */
body.role-cast .cast-footer-nav { display: none; }
body.role-cast .site-footer     { display: none; }

/* ── Flash / Notice ─────────────────────────────────────────── */
body.role-cast .flash,
body.role-cast .notice {
    margin: 12px 16px 0;
    border-radius: 10px;
    font-size: 13px;
}

body.role-cast .flash-success  { background: #eef9ee; border-color: #7ab97a; }
body.role-cast .flash-error    { background: #fff1f1; border-color: #d99292; }

body.role-cast .notice-warning {
    background: var(--cplt);
    border-color: var(--cp);
    color: var(--ct);
}

body.role-cast .notice-info {
    background: #fff;
    border-color: var(--cg);
}

/* ═══════════════════════════════════════════════════════════════
   Dashboard Components
   ═══════════════════════════════════════════════════════════════ */

.cast-page { padding-bottom: 16px; }

/* ── Greeting ────────────────────────────────────────────────── */
.cast-greeting {
    padding: 22px 16px 0;
}

.cast-greeting-hello {
    font-size: 17px;
    font-weight: bold;
    color: var(--ct);
    line-height: 1.4;
}

.cast-greeting-hello .cast-name-highlight { color: var(--cp); }

.cast-greeting-sub {
    font-size: 16px;
    color: var(--cs);
    margin-top: 4px;
}

/* ── Tonight status card ─────────────────────────────────────── */
.cast-tonight-card {
    margin: 14px 16px 0;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(74, 63, 58, .07);
}

.cast-tonight-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--cs);
    letter-spacing: .05em;
    margin-bottom: 10px;
    text-transform: none;
}

.cast-tonight-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cast-tonight-date-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    color: var(--cp);
    background: var(--cplt);
    border-radius: 20px;
    padding: 4px 14px;
    flex-shrink: 0;
}

.cast-tonight-status-text {
    font-size: 14px;
    color: var(--ct);
    font-weight: 500;
    flex: 1;
}

/* Toggle switch */
.cast-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.cast-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cast-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: var(--cg);
    transition: background .2s;
}

.cast-toggle input:checked + .cast-toggle-track { background: var(--cp); }

.cast-toggle-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,.22);
    transition: transform .2s;
    pointer-events: none;
}

.cast-toggle input:checked ~ .cast-toggle-thumb { transform: translateX(24px); }

/* ── Section wrapper ─────────────────────────────────────────── */
.cast-section { margin-top: 24px; }

.cast-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 12px;
}

.cast-section-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--ct);
}

.cast-section-more {
    font-size: 12px;
    color: var(--cs);
    text-decoration: none;
}

.cast-section-more:hover { color: var(--cp); }

/* ── Stats bar (応募中 / オファー / 確定) ─────────────────────── */
.cast-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 16px;
}

.cast-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(74, 63, 58, .07);
    text-decoration: none;
    color: var(--ct);
    display: block;
    transition: box-shadow .15s, transform .15s;
}

.cast-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(74, 63, 58, .13);
    color: var(--ct);
}

.cast-stat-count {
    font-size: 26px;
    font-weight: bold;
    color: var(--cp);
    line-height: 1.1;
}

.cast-stat-count.has-alert { color: #c0392b; }

.cast-stat-label {
    font-size: 10px;
    color: var(--cs);
    margin-top: 5px;
    line-height: 1.3;
}

/* ── Menu grid (home-page shortcut icons) ─────────────────────── */
.cast-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 10px;
    padding: 0 16px;
}

.cast-menu-item {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 16px 4px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(74, 63, 58, .07);
    text-decoration: none;
    color: var(--ct);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: box-shadow .15s, transform .15s;
}

.cast-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(74, 63, 58, .13);
    color: var(--ct);
}

.cast-menu-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cplt);
    color: var(--cp);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cast-menu-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.25;
}

.cast-menu-label {
    font-size: 11.5px;
    line-height: 1.3;
}

.cast-menu-badge {
    position: absolute;
    top: 6px;
    right: 14px;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ── Job cards (horizontal scroll) ──────────────────────────── */
.cast-job-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 16px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cast-job-scroll::-webkit-scrollbar { display: none; }

.cast-job-card {
    flex-shrink: 0;
    width: 148px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(74, 63, 58, .09);
    text-decoration: none;
    color: var(--ct);
    display: block;
    transition: transform .15s, box-shadow .15s;
}

.cast-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 63, 58, .15);
    color: var(--ct);
}

.cast-job-card-img-wrap {
    width: 100%;
    height: 96px;
    background: var(--cplt);
    overflow: hidden;
    position: relative;
}

.cast-job-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cast-job-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--cg);
    background: var(--cplt);
}

.cast-job-card-body { padding: 10px; }

.cast-job-card-name {
    font-weight: bold;
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ct);
}

.cast-job-card-area {
    font-size: 10px;
    color: var(--cs);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-job-card-wage {
    font-size: 13px;
    font-weight: bold;
    color: var(--cp);
    margin-bottom: 2px;
}

.cast-job-card-time {
    font-size: 10px;
    color: var(--cs);
    margin-bottom: 4px;
}

.cast-job-card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--cs);
}

.cast-job-card-star { color: #F5B800; font-size: 11px; }

/* No-jobs placeholder */
.cast-job-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--cs);
    font-size: 13px;
    background: #fff;
    border-radius: 12px;
    margin: 0 16px;
}

/* ── Offer card ──────────────────────────────────────────────── */
.cast-offer-card {
    margin: 0 16px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 12px rgba(74, 63, 58, .07);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cast-offer-img-wrap {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cplt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cast-offer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cast-offer-img-placeholder {
    font-size: 24px;
    color: var(--cg);
}

.cast-offer-body { flex: 1; min-width: 0; }

.cast-offer-shop-name {
    font-weight: bold;
    font-size: 14px;
    color: var(--ct);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-offer-message {
    font-size: 12px;
    color: var(--cs);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.cast-offer-meta {
    font-size: 11px;
    color: var(--cs);
    margin-bottom: 10px;
    line-height: 1.65;
}

.cast-offer-meta strong { color: var(--ct); }

.cast-offer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cast-btn-accept {
    background: var(--cp);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    transition: background .15s;
    line-height: 1.4;
}

.cast-btn-accept:hover { background: #d4868b; color: #fff; }

.cast-btn-decline {
    background: #fff;
    color: var(--cs);
    border: 1px solid var(--cg);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    transition: background .15s, color .15s;
    line-height: 1.4;
}

.cast-btn-decline:hover { background: var(--cplt); color: var(--ct); }

/* ── Income cards ────────────────────────────────────────────── */
.cast-income-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
}

.cast-income-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 14px;
    box-shadow: 0 2px 12px rgba(74, 63, 58, .07);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, transform .15s;
}

a.cast-income-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(74, 63, 58, .13);
    color: inherit;
}

.cast-income-label {
    font-size: 11px;
    color: var(--cs);
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cast-income-amount {
    font-size: 22px;
    font-weight: bold;
    color: var(--ct);
    line-height: 1;
}

.cast-income-unit {
    font-size: 13px;
    font-weight: normal;
    margin-left: 1px;
    color: var(--cs);
}

/* ── Notification card ───────────────────────────────────────── */
.cast-notification-card {
    margin: 0 16px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(74, 63, 58, .07);
}

.cast-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    text-decoration: none;
    color: var(--ct);
    border-bottom: 1px solid var(--cpbg);
    transition: background .12s;
}

.cast-notification-item:last-child { border-bottom: none; }
.cast-notification-item:hover      { background: var(--cpbg); }

.cast-notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cp);
    flex-shrink: 0;
    margin-top: 5px;
}

.cast-notification-dot.is-read { background: var(--cg); }

.cast-notification-body { flex: 1; min-width: 0; }

.cast-notification-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ct);
    line-height: 1.4;
    margin-bottom: 2px;
}

.cast-notification-title.is-read {
    font-weight: normal;
    color: var(--cs);
}

.cast-notification-meta {
    font-size: 10px;
    color: var(--cs);
    line-height: 1.4;
}

.cast-notification-arrow {
    font-size: 14px;
    color: var(--cg);
    flex-shrink: 0;
    align-self: center;
}

.cast-notification-empty {
    padding: 20px 14px;
    text-align: center;
    color: var(--cs);
    font-size: 13px;
}

/* ── Calendar mini wrapper ───────────────────────────────────── */
.cast-calendar-wrap {
    margin: 0 16px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(74, 63, 58, .07);
    overflow: hidden;
}

body.role-cast .mini-cal-nav {
    border-color: var(--cg);
    color: var(--cs);
    background: var(--cpbg);
}

body.role-cast .cal-today .mini-cal-num {
    background: var(--cp);
}

/* ── Job detail fixed apply layer ───────────────────────────── */
body.role-cast .page-card.cast-job-detail-page {
    padding-bottom: 180px;
}

.cast-job-fixed-layer {
    position: fixed;
    right: 0;
    bottom: 60px;
    left: 0;
    z-index: 145;
    padding: 10px 12px;
    border-top: 1px solid rgba(208, 184, 168, .8);
    background: rgba(255, 253, 251, .96);
    box-shadow: 0 -6px 24px rgba(74, 63, 58, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cast-job-fixed-layer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 8px 14px;
    max-width: 760px;
    margin: 0 auto;
}

.cast-job-fixed-meta {
    min-width: 0;
    color: var(--ct);
    font-size: 13px;
    line-height: 1.35;
}

.cast-job-fixed-meta strong {
    display: block;
    overflow-wrap: anywhere;
}

.cast-job-fixed-label {
    display: block;
    margin-bottom: 2px;
    color: var(--cs);
    font-size: 10px;
    font-weight: 600;
}

.cast-job-fixed-pay {
    color: #c0392b;
    font-size: 17px;
}

body.role-cast .cast-job-fixed-apply {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    border-color: var(--cp);
    border-radius: 8px;
    background: var(--cp);
    color: #fff;
    font-weight: 700;
}

body.role-cast .cast-job-fixed-apply:hover:not(:disabled) {
    border-color: var(--cs);
    background: var(--cs);
    color: #fff;
}

body.role-cast .cast-job-fixed-apply:disabled {
    border-color: var(--cg);
    background: #eee9e6;
    color: #8e8580;
    cursor: not-allowed;
}

@media (min-width: 900px) {
    body.role-cast .page-card.cast-job-detail-page {
        padding-bottom: 120px;
    }

    .cast-job-fixed-layer {
        bottom: 0;
        padding: 12px 24px;
    }

    .cast-job-fixed-layer-inner {
        grid-template-columns: minmax(220px, 1.4fr) minmax(160px, .8fr) minmax(230px, 1fr);
        align-items: center;
    }

    body.role-cast .cast-job-fixed-apply {
        grid-column: auto;
    }
}

/* final cascade guard for ONE STYLE v1 */
html body.role-cast {
    background: #F8F6F4;
    color: #2B2B2B;
    font-family: Inter, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
html body.role-cast .site-header { border-bottom: 0; }
.cast-home-job-summary { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; min-height: 164px; margin: 24px 20px 0; padding: 20px; box-sizing: border-box; color: #2B2B2B; }
.cast-home-summary-icon { display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:16px;background:#FFF0F7;color:#F50078; }
.cast-home-summary-icon svg { width:30px;height:30px; }
.cast-home-summary-content { display:flex;flex-direction:column;align-items:flex-start; }
.cast-home-summary-content > strong { font-size:16px;line-height:24px;font-weight:600; }
.cast-home-summary-number { color:#F50078;font:600 38px/44px Inter,sans-serif; }
.cast-home-summary-number small { margin-left:4px;color:#2B2B2B;font-size:15px;font-weight:500; }
.cast-home-summary-note { color:#6F6A66;font-size:13px;line-height:20px; }
.cast-home-summary-link { position:absolute;right:20px;bottom:18px;color:#F50078;font-size:14px;font-weight:600; }
html body.role-cast .section-label { display:flex;align-items:center;gap:8px;margin:0 0 8px;padding-bottom:8px;border-bottom:1px solid #ECE7E2;color:#72675F;font-size:13px;line-height:20px;font-weight:500; }
html body.role-cast .list-link { min-height:64px;padding:12px 8px;border-bottom:1px solid #ECE7E2; }
html body.role-cast .list-link:hover { background:#F8F6F4;color:#2B2B2B; }
html body.role-cast .list-arrow { color:#A99A92;font-size:22px; }
html body.role-cast .badge-count, html body.role-cast .unread-badge { background:#F50078;color:#fff; }
html body.role-cast .job-filter-bar { gap:16px;padding:16px;border:1px solid #ECE7E2;border-radius:16px;background:#F8F6F4; }
html body.role-cast .job-cards, html body.role-cast .shop-grid { gap:16px; }
html body.role-cast .job-card, html body.role-cast .shop-card { border-color:#ECE7E2;border-radius:16px;box-shadow:0 4px 20px rgba(114,103,95,.08);overflow:hidden; }
html body.role-cast .fav-btn { border-color:#ECE7E2;border-radius:999px;background:#fff;color:#A99A92; }
html body.role-cast .fav-btn.active { border-color:#F50078;background:#FFF0F7;color:#F50078; }
html body.role-cast .pay-summary, html body.role-cast .offer-pay-summary { border-radius:14px;background:#F8F6F4;color:#2B2B2B; }
html body.role-cast .offer-net-total, html body.role-cast .pay-summary-total { color:#F50078; }
html body.role-cast .chat-bubble, html body.role-cast .message-bubble { border-radius:16px; }
html body.role-cast .shop-photos, html body.role-cast .shop-photos-placeholder { border-radius:16px;overflow:hidden; }
@media (max-width:600px){
  html body.role-cast .simple-table:has(thead) { overflow-x:auto; }
  html body.role-cast .simple-table:has(thead) thead { display:table;min-width:680px; }
  html body.role-cast .simple-table:has(thead) tbody { display:table;min-width:680px; }
  html body.role-cast .simple-table:has(thead) tr { display:table-row; }
  html body.role-cast .simple-table:has(thead) th, html body.role-cast .simple-table:has(thead) td { display:table-cell;width:auto; }
}

/* ══════════════════════════════════════════════════════════════
   Desktop layout  (≥ 900px) — full-width fixed bottom navigation
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {

    /* Dedicated desktop bottom navigation */
    body.role-cast .cast-bottom-nav {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        height: calc(80px + env(safe-area-inset-bottom));
        z-index: 150;
        flex-direction: row;
        align-items: stretch;
        border-top: 1px solid var(--cg);
        border-bottom: 0;
        border-radius: 0;
        box-shadow: 0 -4px 20px rgba(114,103,95,.06);
        padding: 0 0 env(safe-area-inset-bottom);
        gap: 0;
        overflow: visible;
    }

    /* Five equal-width buttons */
    body.role-cast .cast-bottom-nav-item {
        flex: 1 1 20%;
        min-width: 0;
        height: auto;
        flex-direction: column;
        gap: 4px;
        padding: 10px 2px 8px;
        border-bottom: 0;
        border-radius: 0;
    }

    body.role-cast .cast-bottom-nav-item.is-active {
        color: var(--cp);
        background: none;
    }

    body.role-cast .cast-bottom-nav-item:hover {
        color: var(--cp);
        background: var(--cplt);
    }

    body.role-cast .cast-bottom-nav-item.is-center {
        flex: 1 1 20%;
        min-width: 0;
        background: none;
        color: var(--cs);
        border-radius: 0;
        margin: 0;
        padding: 10px 2px 8px;
        height: auto;
    }

    body.role-cast .cast-bottom-nav-item.is-center:hover {
        background: var(--cplt);
        color: var(--cp);
    }

    body.role-cast .cast-bottom-nav-item.is-center.is-active {
        background: none;
        color: var(--cp);
    }

    body.role-cast .cast-bottom-nav-icon {
        font-size: 17px;
        display: flex;
        align-items: center;
    }

    body.role-cast .cast-bottom-nav-label { font-size: 12px; line-height: 18px; }

    body.role-cast .cast-nav-badge {
        position: absolute;
        top: 5px;
        left: calc(50% + 3px);
        margin-left: 0;
        background: #E53935;
        color: #000;
        font-size: 10px;
        font-weight: bold;
        padding: 0 5px;
        height: 17px;
        line-height: 17px;
        border-radius: 9px;
        min-width: 17px;
        text-align: center;
    }

    /* Sidebar-specific elements not used in top-nav layout */
    body.role-cast .cast-nav-sidebar-extra,
    body.role-cast .cast-nav-logout { display: none; }

    /* Keep page content clear of the fixed navigation */
    body.role-cast .site-main {
        margin-left: 0;
        padding: 0 0 calc(100px + env(safe-area-inset-bottom));
    }

    body.role-cast .site-footer {
        display: block;
        margin-left: 0;
        background: #fff;
        border-top: 1px solid var(--cg);
        padding: 14px 0;
        text-align: center;
        font-size: 12px;
        color: var(--cs);
    }

    /* Content centered with max-width */
    body.role-cast .cast-page {
        max-width: 760px;
        margin: 0 auto;
        padding: 0 24px 24px;
    }

    body.role-cast .page-card {
        max-width: 760px;
        margin: 0 auto;
        padding: 24px;
    }

    /* Remove mobile side-padding (max-width + auto-margin centers everything) */
    body.role-cast .cast-greeting       { padding-left: 0; padding-right: 0; }
    body.role-cast .cast-tonight-card   { margin-left: 0; margin-right: 0; }
    body.role-cast .cast-section-header { padding-left: 0; padding-right: 0; }
    body.role-cast .cast-offer-card     { margin-left: 0; margin-right: 0; }
    body.role-cast .cast-income-row     { padding-left: 0; padding-right: 0; }
    body.role-cast .cast-notification-card { margin-left: 0; margin-right: 0; }
    body.role-cast .cast-stats-row      { padding-left: 0; padding-right: 0; }
    body.role-cast .cast-calendar-wrap  { margin-left: 0; margin-right: 0; }
    body.role-cast .cast-job-empty      { margin-left: 0; margin-right: 0; }
    body.role-cast .flash,
    body.role-cast .notice              { margin-left: 0; margin-right: 0; }
    body.role-cast .cast-job-scroll     { padding-left: 0; padding-right: 0; }

    /* Larger components on desktop */
    .cast-job-card          { width: 180px; }
    .cast-job-card-img-wrap { height: 120px; }
.cast-job-card-name     { font-size: 13px; }
    .cast-income-amount     { font-size: 26px; }
    .cast-greeting-hello    { font-size: 24px; }
    .cast-stat-count        { font-size: 28px; }
}

@media (min-width: 1200px) {
    body.role-cast .cast-page { max-width: 900px; }
    body.role-cast .cast-bottom-nav-item { padding: 10px 2px 8px; }
}

/* ══════════════════════════════════════════════════════════════
   General pages (non-dashboard)  — forms, lists, tables, etc.
   ══════════════════════════════════════════════════════════════ */

/* Page wrapper for non-dashboard pages */
body.role-cast .cast-inner-page {
    padding: 20px 16px;
}

.recruitment-type-tabs { gap: 8px; border-bottom: 0 !important; }
body.role-cast .recruitment-type-tabs .tab-item {
    flex: 1;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid var(--cg);
    border-radius: 12px;
    background: #fff;
    text-align: center;
}
body.role-cast .recruitment-type-tabs .tab-item strong { font-size: 14px; }
body.role-cast .recruitment-type-tabs .tab-item small { color: var(--cs); font-size: 10px; font-weight: 500; }
body.role-cast .recruitment-type-tabs .tab-item.is-active { border-color: var(--cp); background: var(--cplt); box-shadow: inset 0 0 0 1px var(--cp); }
body.role-cast .recruitment-list-page.is-period .recruitment-type-tabs .tab-item.is-active { border-color: #6750a4; color: #503b8c; background: #f3efff; box-shadow: inset 0 0 0 1px #6750a4; }

.recruitment-type-guide { display:flex; align-items:center; gap:10px; margin:0 0 18px; padding:10px 12px; border-radius:10px; background:var(--cplt); }
.recruitment-type-guide p { margin:0; color:var(--cs); font-size:12px; line-height:1.6; }
.recruitment-type-guide-label,
.recruitment-type-badge { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; border-radius:999px; font-size:11px; font-weight:700; white-space:nowrap; }
.recruitment-type-guide-label { padding:4px 9px; background:var(--cp); color:#fff; }
.recruitment-list-page.is-period .recruitment-type-guide { background:#f3efff; }
.recruitment-list-page.is-period .recruitment-type-guide-label { background:#6750a4; }
.recruitment-type-badge { margin-right:6px; padding:2px 7px; vertical-align:middle; }
.recruitment-type-badge.is-one-day { background:var(--cplt); color:var(--cp); }
.recruitment-type-badge.is-period { background:#eee8ff; color:#503b8c; }
.job-card.is-one-day-job { border-top:3px solid var(--cp); }
.job-card.is-period-job { border-top:3px solid #6750a4; }
.recruitment-list-empty { padding:20px 16px; border:1px dashed var(--cg); border-radius:12px; background:#faf9f8; color:var(--cs); text-align:center; }

@media (min-width: 900px) {
    body.role-cast .cast-inner-page {
        max-width: 760px;
        margin: 0 auto;
        padding: 24px;
    }
}

/* Section heading */
body.role-cast .cast-page-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--ct);
    margin: 0 0 16px;
}

/* Card box for inner pages */
body.role-cast .cast-card-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(74, 63, 58, .07);
    margin-bottom: 16px;
}

/* Shop detail action buttons */
.shop-view-actions {
    width: min(100%, 360px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.shop-view-action-form { min-width: 0; margin: 0; }
body.role-cast .shop-view-action {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid var(--cg);
    border-radius: var(--cast-radius-control);
    background: #fff;
    box-shadow: none;
    color: var(--ct);
    font: 600 13px/20px Inter, "Noto Sans JP", sans-serif;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
body.role-cast .shop-view-action:hover { border-color: var(--cast-greige-500); background: var(--cast-greige-100); color: var(--ct); }
body.role-cast .shop-view-action:active { transform: scale(.98); }
body.role-cast .shop-view-action.is-favorite { color: #9b7212; }
body.role-cast .shop-view-action.is-favorite.active { border-color: #e5ba43; background: #fff8dc; color: #8a6200; }
body.role-cast .shop-view-action.is-block { color: var(--cast-error); }
body.role-cast .shop-view-action.is-block.active { border-color: var(--cast-error); background: var(--cast-error); color: #fff; }
body.role-cast .shop-view-action.is-jobs { border-color: var(--cp); background: var(--cp); color: #fff; }
body.role-cast .shop-view-action.is-jobs:hover { border-color: var(--cp); background: var(--cp); color: #fff; opacity: .92; }
body.role-cast .shop-view-action.is-back { background: var(--cast-greige-100); color: var(--cast-greige-900); }
.shop-profile-lightbox-counter { position:absolute; left:50%; bottom:22px; transform:translateX(-50%); padding:5px 10px; border-radius:999px; background:rgba(0,0,0,.56); color:#fff; font-size:12px; font-weight:600; }

@media (max-width: 560px) {
    .shop-view-actions { width: 100%; }
}

/* Tab bar (pink variant) */
body.role-cast .tab-bar {
    border-bottom-color: var(--cg);
}

body.role-cast .tab-item {
    color: var(--cs);
}

body.role-cast .tab-item.is-active {
    color: var(--cp);
    border-bottom-color: var(--cp);
}

body.role-cast .tab-item:hover {
    color: var(--cp);
    background: var(--cplt);
}

/* Buttons */
body.role-cast .button {
    border-radius: var(--cast-radius-control);
    border-color: var(--cp);
    color: var(--cp);
}

body.role-cast .button:hover {
    background: var(--cp);
    border-color: var(--cp);
    color: #fff;
}

body.role-cast .button-secondary {
    border-color: var(--cg);
    color: var(--cast-greige-900);
}

body.role-cast .button-secondary:hover {
    background: var(--cplt);
    border-color: var(--cp);
    color: var(--cp);
}

/* Form inputs */
body.role-cast .form-input {
    border-color: var(--cg);
    border-radius: 8px;
}

body.role-cast .form-input:focus {
    outline: none;
    border-color: var(--cp);
    box-shadow: 0 0 0 3px rgba(232, 158, 163, .2);
}

/* Badge */
body.role-cast .badge-approved { background: #eef9ee; color: #2e7a2e; border-color: #7ab97a; }

/* Notification unread badge */
body.role-cast .notification-tabs a.active {
    border-color: var(--cp);
    background: var(--cplt);
    color: var(--cp);
}

/* Chat bubbles for cast */
body.role-cast .chat-cast .chat-row.chat-mine .chat-bubble { background: var(--cp); }

/* Relation tabs */
body.role-cast .relation-tab.active {
    color: var(--cp);
    border-bottom-color: var(--cp);
}

/* nav-count badge */
body.role-cast .nav-count { background: var(--cp); }

/* ══════════════════════════════════════════════════════════════
   My Page — view mode  (profile_edit.php default)
   ══════════════════════════════════════════════════════════════ */

.mypage-wrap {
    padding-bottom: 16px;
}

/* ── Profile card ───────────────────────────────────────── */
.mypage-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px 16px;
}

.mypage-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cplt);
    border: 2px solid var(--cg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cg);
}

.mypage-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mypage-profile-info {
    flex: 1;
    min-width: 0;
}

.mypage-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--ct);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.3;
    margin-bottom: 4px;
}

.mypage-kyc-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: var(--cs);
    border: 1px solid var(--cg);
    border-radius: 20px;
    padding: 2px 8px 2px 5px;
    white-space: nowrap;
}

.mypage-kyc-badge svg { color: var(--cp); }

.mypage-sub {
    font-size: 13px;
    color: var(--cs);
    margin-bottom: 10px;
}

.mypage-sub-sep {
    margin: 0 4px;
}

.mypage-avail-prefs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.mypage-avail-prefs-label {
    font-size: 11px;
    color: var(--cs);
    white-space: nowrap;
    margin-right: 2px;
}

.mypage-avail-pref-tag {
    font-size: 11px;
    background: #f0f4ff;
    color: #3a5bb0;
    border: 1px solid #c7d4f4;
    border-radius: 10px;
    padding: 2px 8px;
    white-space: nowrap;
}

.mypage-edit-btn {
    display: inline-block;
    font-size: 13px;
    color: var(--cs);
    border: 1px solid var(--cg);
    border-radius: 20px;
    padding: 5px 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, color .15s;
}

.mypage-edit-btn:hover {
    border-color: var(--cp);
    color: var(--cp);
}

/* ── Stats grid ─────────────────────────────────────────── */
.mypage-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 16px 16px;
}

.mypage-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(74,63,58,.07);
}

.mypage-stat-value {
    font-size: 22px;
    font-weight: bold;
    color: var(--ct);
    line-height: 1.1;
}

.mypage-stat-unit {
    font-size: 11px;
    font-weight: normal;
    color: var(--cs);
    margin-left: 1px;
}

.mypage-stat-label {
    font-size: 9px;
    color: var(--cs);
    margin-top: 3px;
    line-height: 1.3;
}

.mypage-stat-stars {
    font-size: 10px;
    margin-top: 3px;
    letter-spacing: -1px;
}

.star-on  { color: #F5B800; }
.star-off { color: var(--cg); }

/* ── Menu card ──────────────────────────────────────────── */
.mypage-menu-card {
    margin: 8px 16px 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(74,63,58,.07);
}

.mypage-menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    text-decoration: none;
    color: var(--ct);
    border-bottom: 1px solid var(--cpbg);
    transition: background .12s;
}

.mypage-menu-row:last-child { border-bottom: none; }
.mypage-menu-row:hover      { background: var(--cpbg); }

.mypage-menu-logout-form { margin: 0; }
.mypage-menu-logout {
    width: 100%;
    border: 0;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}
.mypage-menu-logout .mypage-menu-icon {
    color: #b94a48;
    background: #fff1f1;
}
.mypage-menu-logout .mypage-menu-label { color: #b94a48; }

.mypage-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--cplt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cp);
    flex-shrink: 0;
}

.mypage-menu-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.mypage-menu-arrow {
    font-size: 20px;
    color: var(--cg);
    line-height: 1;
}

/* ── Back link (edit mode) ──────────────────────────────── */
.mypage-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--cs);
    text-decoration: none;
    margin-bottom: 12px;
}

.mypage-back-link:hover { color: var(--cp); }

/* ── Desktop ─────────────────────────────────────────────── */
@media (min-width: 900px) {
    .mypage-wrap {
        max-width: 760px;
        margin: 0 auto;
        padding: 0 24px 24px;
    }

    .mypage-profile-card { padding: 24px 0 16px; }
    .mypage-stats-grid   { padding: 0 0 16px; }
    .mypage-menu-card    { margin: 8px 0 0; }

    .mypage-stat-value   { font-size: 26px; }
    .mypage-name         { font-size: 20px; }
}

/* ══════════════════════════════════════════════════════════════
   Avatar edit section  (profile_edit.php)
   ══════════════════════════════════════════════════════════════ */

.avatar-edit-section {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0 20px;
    flex-wrap: wrap;
}

.avatar-edit-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--cplt);
    border: 2px solid var(--cg);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cg);
}

.avatar-edit-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-edit-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.avatar-upload-label {
    cursor: pointer;
    display: inline-block;
}

.avatar-delete-btn {
    color: #c0392b;
    border-color: #c0392b;
}

.avatar-delete-btn:hover {
    background: #fff1f1;
    border-color: #c0392b;
    color: #c0392b;
}

.avatar-edit-hint {
    width: 100%;
    font-size: 11px;
    color: var(--cs);
    margin: 0;
    padding-left: 98px;
}

@media (max-width: 400px) {
    .avatar-edit-hint { padding-left: 0; }
}

/* ══════════════════════════════════════════════════════════════
   Schedule list  (schedule_list.php)
   ══════════════════════════════════════════════════════════════ */

/* Outer card — wraps tabs + list */
.cast-schd-card {
    background: #fff;
    margin: 0 16px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(74, 63, 58, .07);
}

/* Tab bar sits flush inside the card */
.cast-schd-tab-bar {
    border-bottom: 1px solid var(--cpbg);
    background: #fff;
    padding: 0 4px;
}

/* Filter bar (date drill-down) */
.cast-schd-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 12px;
    color: var(--cs);
    background: var(--cpbg);
    border-bottom: 1px solid var(--cg);
}
.cast-schd-filter-bar a { color: var(--cp); text-decoration: none; }

/* Empty state */
.cast-schd-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--cs);
    font-size: 13px;
    line-height: 1.7;
}
.cast-schd-empty p { margin-bottom: 16px; }
.cast-schd-empty-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Row container */
.cast-schd-list { /* no extra padding — items handle their own */ }

/* Individual row */
.cast-schd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--cpbg);
    text-decoration: none;
    color: var(--ct);
    transition: background .12s;
}
.cast-schd-item:last-child { border-bottom: none; }
a.cast-schd-item:hover { background: var(--cpbg); color: var(--ct); }
.cast-schd-item.is-today { background: #fffbf0; }

/* Date column */
.cast-schd-date-col {
    flex-shrink: 0;
    width: 38px;
    text-align: center;
    background: var(--cplt);
    border-radius: 10px;
    padding: 6px 4px;
}
.cast-schd-mon {
    font-size: 9px;
    color: var(--cs);
    line-height: 1.2;
}
.cast-schd-day {
    font-size: 20px;
    font-weight: bold;
    color: var(--ct);
    line-height: 1.1;
}
.cast-schd-dow {
    font-size: 9px;
    color: var(--cs);
    line-height: 1.2;
}

/* Shop + time */
.cast-schd-info { flex: 1; min-width: 0; }

.cast-schd-shop {
    font-size: 14px;
    font-weight: 600;
    color: var(--ct);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.cast-schd-time {
    font-size: 12px;
    color: var(--cs);
    margin-top: 3px;
}

/* Right meta column */
.cast-schd-meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

/* Status badges */
.cast-schd-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.2;
}
.cast-schd-badge.is-confirmed { background: #eef9ee; color: #2e7a2e; }
.cast-schd-badge.is-offered   { background: #fff3e0; color: #e65100; }
.cast-schd-badge.is-applied   { background: #e3f2fd; color: #1565c0; }
.cast-schd-badge.is-completed { background: var(--cplt); color: var(--cs); }

/* Chevron arrow */
.cast-schd-arrow { font-size: 18px; color: var(--cg); line-height: 1; }

/* Review / report links */
.cast-schd-review-link {
    font-size: 11px;
    color: #c89600;
    text-decoration: none;
    white-space: nowrap;
}
.cast-schd-review-link:hover { color: #a07800; }

.cast-schd-reviewed {
    font-size: 10px;
    color: var(--cs);
}

.cast-schd-report-link {
    font-size: 10px;
    color: var(--cg);
    text-decoration: none;
}
.cast-schd-report-link:hover { color: #c0392b; }

/* Desktop overrides */
@media (min-width: 900px) {
    body.role-cast .cast-schd-card        { margin: 0; }
    body.role-cast .cast-schd-filter-bar  { padding: 10px 20px; }
    body.role-cast .cast-schd-item        { padding: 16px 20px; gap: 16px; }
    body.role-cast .cast-schd-shop        { font-size: 15px; }
    body.role-cast .cast-schd-date-col    { width: 44px; }
    body.role-cast .cast-schd-day         { font-size: 22px; }
}

/* ═══════════════════════════════════════════════════════════════
   ONE STYLE Design System v1.0 — cast app shell / home
   ═══════════════════════════════════════════════════════════════ */
body.role-cast {
    --cp: #F50078;
    --cplt: #FFF0F7;
    --cpbg: #FFFFFF;
    --ct: #2B2B2B;
    --cs: #6F6A66;
    --cg: #ECE7E2;
    --cgreige-100: #F8F6F4;
    --cgreige-200: #F2EEEA;
    --cgreige-700: #A99A92;
    --cgreige-900: #72675F;
    --csuccess: #2CB67D;
    --cwaiting: #C79A5B;
    --cerror: #E15C68;
    --ch: calc(72px + env(safe-area-inset-top));
    background: var(--cgreige-100);
    color: var(--ct);
    font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.role-cast .layout {
    width: min(100%, 390px);
    margin: 0 auto;
    background: #fff;
}

body.role-cast .site-header {
    height: var(--ch);
    border-bottom: 0;
    box-shadow: none;
}

body.role-cast .site-header .container {
    width: min(100%, 390px);
    max-width: 390px;
    margin: 0 auto;
    padding: env(safe-area-inset-top) 16px 0;
}

.cast-logo-link {
    flex: 1 1 auto;
    min-width: 0;
}
.cast-logo {
    width: clamp(104px, 36vw, 140px);
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.cast-header-icons {
    flex: 0 0 auto;
    gap: clamp(8px, 3vw, 16px);
}
.cast-header-icon {
    width: 40px;
    height: 40px;
    color: var(--cgreige-900);
}
.cast-header-icon svg { width: 24px; height: 24px; stroke-width: 2; }
.cast-header-badge {
    top: 1px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    line-height: 14px;
}

body.role-cast .site-main {
    width: 100%;
    padding: 0 0 calc(96px + env(safe-area-inset-bottom));
}

body.role-cast .cast-bottom-nav {
    position: fixed;
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    width: min(100%, 390px);
    height: calc(80px + env(safe-area-inset-bottom));
    padding: 0 4px env(safe-area-inset-bottom);
    transform: translateX(-50%);
    align-items: stretch;
    gap: 0;
    overflow: visible;
    border-top: 1px solid var(--cg);
    border-bottom: 0;
    background: rgba(255,255,255,.96);
    box-shadow: 0 -4px 20px rgba(114,103,95,.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.role-cast .cast-bottom-nav-item,
body.role-cast .cast-bottom-nav-item.is-center {
    flex: 1;
    height: auto;
    margin: 0;
    padding: 12px 2px 8px;
    flex-direction: column;
    gap: 4px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--cgreige-700);
}
body.role-cast .cast-bottom-nav-item:hover,
body.role-cast .cast-bottom-nav-item.is-center:hover { background: none; color: var(--cp); border: 0; }
body.role-cast .cast-bottom-nav-item.is-active,
body.role-cast .cast-bottom-nav-item.is-center.is-active { background: none; color: var(--cp); border: 0; }
.cast-bottom-nav-icon { display: flex; align-items: center; justify-content: center; height: 24px; }
.cast-bottom-nav-icon svg { width: 24px; height: 24px; stroke-width: 2; }
body.role-cast .cast-bottom-nav-label { font-size: 12px; font-weight: 500; line-height: 18px; }
body.role-cast .cast-nav-badge {
    position: absolute;
    top: 7px;
    left: calc(50% + 5px);
    min-width: 18px;
    height: 18px;
    margin: 0;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--cp);
    color: #fff;
    font-size: 10px;
    line-height: 14px;
    box-shadow: none;
}

body.role-cast .cast-page {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    padding: 0 16px 32px;
    box-sizing: border-box;
}
body.role-cast .cast-page > .notice,
body.role-cast .cast-page > .flash { margin-right: 0; margin-left: 0; }

.cast-greeting {
    position: relative;
    padding: 24px 0 0;
}
.cast-verified-badge {
    position: absolute;
    top: 24px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.cast-greeting-eyebrow {
    margin-bottom: 8px;
    color: var(--cgreige-900);
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
}
.cast-greeting-hello {
    margin: 0;
    color: var(--ct);
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -.01em;
}

.cast-today-card {
    min-height: 196px;
    margin-top: 24px;
    padding: 24px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--cg);
    border-radius: 20px;
    background: linear-gradient(145deg, #fff 62%, #FFF7FB 100%);
    box-shadow: 0 4px 20px rgba(114,103,95,.08);
    box-sizing: border-box;
}
.cast-today-main { display: flex; align-items: flex-start; gap: 16px; }
.cast-today-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #FFE5F2;
    color: var(--cp);
}
.cast-today-icon svg { width: 28px; height: 28px; }
.cast-today-content { min-width: 0; }
.cast-today-content h2 {
    margin: 0;
    color: var(--ct);
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}
.cast-today-count { margin-top: 4px; display: flex; align-items: baseline; gap: 4px; }
.cast-today-count strong {
    color: var(--cp);
    font-family: "Inter", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 44px;
}
.cast-today-count span { font-size: 16px; font-weight: 500; }
.cast-today-content p { margin: 0; color: var(--cs); font-size: 13px; line-height: 20px; }
.cast-today-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cast-today-link {
    flex-shrink: 0;
    color: var(--cp) !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
}
.cast-today-link span,
.cast-section-more span { margin-left: 4px; font-size: 22px; font-weight: 400; vertical-align: -1px; }

.cast-availability {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0,1fr);
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--cs);
    font-size: 12px;
    line-height: 18px;
}
.cast-availability input { position: absolute; opacity: 0; pointer-events: none; }
.cast-availability .cast-toggle-track {
    position: relative;
    inset: auto;
    width: 40px;
    height: 24px;
    grid-column: 1;
    grid-row: 1;
    border-radius: 999px;
    background: var(--cg);
}
.cast-availability input:checked + .cast-toggle-track { background: var(--cp); }
.cast-availability .cast-toggle-thumb {
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    grid-column: 1;
    grid-row: 1;
}
.cast-availability input:checked ~ .cast-toggle-thumb { transform: translateX(16px); }

.cast-section { margin-top: 32px; }
.cast-section-header { margin-bottom: 12px; padding: 0; }
.cast-section-title {
    margin: 0;
    color: var(--ct);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -.005em;
}
.cast-section-more { color: var(--cp) !important; font-size: 13px; font-weight: 600; line-height: 20px; }

.cast-stats-row { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding: 0; }
.cast-stat-card {
    min-width: 0;
    min-height: 128px;
    padding: 16px 12px;
    display: grid;
    grid-template-columns: 40px minmax(0,1fr);
    grid-template-rows: 40px 1fr;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--cg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(114,103,95,.06);
    text-align: left;
    box-sizing: border-box;
}
.cast-stat-card:hover { transform: none; border-color: #D8CCC3; box-shadow: 0 4px 20px rgba(114,103,95,.1); }
.cast-stat-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
}
.cast-stat-icon svg { width: 22px; height: 22px; }
.cast-stat-icon.is-waiting { background: #FBF3E7; color: var(--cwaiting); }
.cast-stat-icon.is-confirmed { background: #EAF8F3; color: var(--csuccess); }
.cast-stat-icon.is-offer { background: #FFE8F3; color: var(--cp); }
.cast-stat-label { margin: 0; color: var(--cs); font-size: 12px; font-weight: 500; line-height: 18px; }
.cast-stat-count {
    grid-column: 1 / -1;
    align-self: end;
    color: var(--ct);
    font-family: "Inter", sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
    text-align: center;
}
.cast-stat-count.has-alert { color: var(--ct); }
.cast-stat-count span { margin-left: 3px; font-family: "Noto Sans JP", sans-serif; font-size: 12px; font-weight: 400; }

.cast-recommend-kicker { margin-bottom: 2px; color: var(--cp); font-size: 13px; font-weight: 500; line-height: 20px; }
.cast-recommend-kicker span { margin-right: 4px; }
.cast-recommend-header { margin-bottom: 12px; }
.cast-job-scroll { gap: 12px; margin-right: -16px; padding: 0 16px 8px 0; }
.cast-job-card {
    width: 240px;
    border: 1px solid var(--cg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(114,103,95,.06);
}
.cast-job-card-img-wrap { height: 132px; background: var(--cgreige-100); }
.cast-job-card-img-placeholder { background: var(--cgreige-100); color: var(--cgreige-700); }
.cast-job-card-body { padding: 16px; }
.cast-job-card-name { margin-bottom: 4px; font-size: 18px; font-weight: 600; line-height: 26px; }
.cast-job-card-area { margin-bottom: 8px; font-size: 13px; line-height: 20px; }
.cast-job-card-wage { color: var(--cp); font-size: 16px; font-weight: 600; line-height: 24px; }
.cast-job-card-time { margin: 0; font-size: 13px; line-height: 20px; }
.cast-job-empty { margin: 0; border: 1px solid var(--cg); border-radius: 16px; background: var(--cgreige-100); }

.cast-offer-card,
.cast-income-card,
.cast-notification-card,
.cast-menu-item {
    border: 1px solid var(--cg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(114,103,95,.06);
}
.cast-offer-card,
.cast-notification-card { margin-right: 0; margin-left: 0; }
.cast-income-row,
.cast-menu-grid { padding-right: 0; padding-left: 0; }
.cast-btn-accept { min-height: 40px; padding: 8px 20px; border-radius: 14px; background: var(--cp); }
.cast-btn-accept:hover { background: var(--cp); opacity: .95; }
.cast-btn-decline { min-height: 40px; padding: 7px 20px; border-radius: 14px; }

@media (min-width: 600px) {
    body.role-cast .layout { box-shadow: 0 0 40px rgba(114,103,95,.12); }
}

@media (min-width: 900px) {
    body.role-cast .site-header .container { max-width: 390px; }
    body.role-cast .site-main { padding: 0 0 calc(96px + env(safe-area-inset-bottom)); }
    body.role-cast .cast-page { max-width: 390px; padding: 0 16px 32px; }
    body.role-cast .cast-bottom-nav { position: fixed; top: auto; bottom: 0; height: calc(80px + env(safe-area-inset-bottom)); }
    body.role-cast .cast-bottom-nav-item,
    body.role-cast .cast-bottom-nav-item.is-center { height: auto; padding: 12px 2px 8px; flex-direction: column; gap: 4px; }
    body.role-cast .cast-bottom-nav-label { font-size: 12px; }
    body.role-cast .cast-bottom-nav-icon { height: 24px; }
    body.role-cast .site-footer { display: none; }
    body.role-cast .cast-job-scroll { padding-right: 16px; padding-left: 0; }
    .cast-job-card { width: 240px; }
    .cast-job-card-img-wrap { height: 132px; }
    .cast-job-card-name { font-size: 18px; }
    .cast-greeting-hello { font-size: 28px; }
    .cast-stat-count { font-size: 30px; }
}

/* ══════════════════════════════════════════════════════════════
   PC/デスクトップ版：左サイドバーメニュー
   ══════════════════════════════════════════════════════════════ */
body.role-cast .cast-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 248px;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid var(--cg);
    z-index: 160;
    overflow-y: auto;
}

.cast-sidebar-top {
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--cg);
}

body.role-cast .cast-sidebar-logo { display: block; text-decoration: none; }
body.role-cast .cast-sidebar-logo img { display: block; height: 32px; width: auto; }

.cast-sidebar-username {
    margin-top: 6px;
    font-size: 12px;
    color: var(--cs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-sidebar-nav {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.role-cast .cast-sidebar-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 9px;
    border-left: 3px solid transparent;
    border-radius: 8px;
    color: var(--ct);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .12s, color .12s, border-color .12s;
}
body.role-cast .cast-sidebar-item:hover { background: var(--cplt); }
body.role-cast .cast-sidebar-item.is-active {
    background: #fff;
    border-left-color: var(--cp);
    color: var(--cp);
    font-weight: bold;
}

.cast-sidebar-item-icon { display: flex; align-items: center; flex-shrink: 0; color: inherit; }
.cast-sidebar-item-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cast-sidebar-item-badge {
    background: var(--cast-error, #E15C68);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    border-radius: 9px;
    text-align: center;
    padding: 0 5px;
    flex-shrink: 0;
}

body.role-cast .cast-sidebar-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--cg);
    text-decoration: none;
    color: var(--ct);
}
body.role-cast .cast-sidebar-account:hover { background: var(--cplt); }

.cast-sidebar-account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cast-greige-100, #F8F6F4);
    border: 1.5px solid var(--cg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--cs);
}
.cast-sidebar-account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cast-sidebar-account-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cast-sidebar-account-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-sidebar-account-role { font-size: 11px; color: var(--cs); }
.cast-sidebar-account-chevron { color: var(--cast-greige-700, #A99A92); font-size: 16px; flex-shrink: 0; }

/* デスクトップ専用ヘッダー要素（タイトル） */
.cast-header-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--ct);
    white-space: nowrap;
}
.cast-header-desktop-only { display: none; }

@media (min-width: 1024px) {
    body.role-cast .layout {
        width: 100%;
        max-width: none;
        margin: 0;
        box-shadow: none;
        background: var(--cast-greige-100, #F8F6F4);
        border-radius: 0;
    }

    body.role-cast .cast-bottom-nav { display: none; }
    body.role-cast .cast-sidebar    { display: flex; }

    .cast-header-mobile-only  { display: none; }
    span.cast-header-desktop-only { display: block; }
    div.cast-header-desktop-only  { display: flex; }

    body.role-cast .site-header { margin-left: 248px; border-radius: 0; }
    body.role-cast .site-header .container { width: auto; max-width: none; padding: 20px 32px 12px; }

    body.role-cast .site-main {
        width: auto;
        margin-left: 248px;
        padding: 0 0 40px;
    }
    body.role-cast .site-main .container { max-width: none; }

    body.role-cast .site-footer {
        display: block;
        margin-left: 248px;
        background: #fff;
        border-top: 1px solid var(--cg);
        padding: 14px 0;
        text-align: center;
        font-size: 12px;
        color: var(--cs);
    }

    body.role-cast .cast-page,
    body.role-cast .page-card {
        max-width: 760px;
        margin: 0 auto;
        padding: 24px;
    }

    body.role-cast .cast-greeting          { padding-left: 0; padding-right: 0; }
    body.role-cast .cast-tonight-card      { margin-left: 0; margin-right: 0; }
    body.role-cast .cast-section-header    { padding-left: 0; padding-right: 0; }
    body.role-cast .cast-offer-card        { margin-left: 0; margin-right: 0; }
    body.role-cast .cast-notification-card { margin-left: 0; margin-right: 0; }
    body.role-cast .cast-income-row,
    body.role-cast .cast-menu-grid         { padding-left: 0; padding-right: 0; }
    body.role-cast .cast-stats-row         { padding-left: 0; padding-right: 0; }
    body.role-cast .cast-calendar-wrap     { margin-left: 0; margin-right: 0; }
}

/* ══════════════════════════════════════════════════════════════
   Dashboard grid（index.php：メイン＋右レール）
   ══════════════════════════════════════════════════════════════ */
.cast-stats-row { grid-template-columns: repeat(4, minmax(0,1fr)); }

.cast-calendar-wrap {
    margin: 0 16px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(43, 43, 43, .06);
    overflow: hidden;
}

.cast-dashboard-main { min-width: 0; }

.cast-dashboard-rail {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.cast-rail-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(43, 43, 43, .06);
}

.cast-rail-card-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--ct);
    margin-bottom: 10px;
}

.cast-rail-empty {
    font-size: 12px;
    color: var(--cs);
    padding: 8px 0;
}

.cast-rail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.role-cast .cast-rail-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--cpbg);
    text-decoration: none;
    color: var(--ct);
    font-size: 12px;
}
body.role-cast .cast-rail-event:hover { background: var(--cplt); }

.cast-rail-event-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cast-rail-status {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 999px;
    color: #fff;
}
.cast-rail-status--confirmed { background: var(--success); }
.cast-rail-status--pending   { background: var(--warn); }
.cast-rail-status--completed { background: var(--disabled); }

body.role-cast .cast-rail-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    text-decoration: none;
    color: var(--ct);
    border-radius: 8px;
}
body.role-cast .cast-rail-message:hover { background: var(--cpbg); }

.cast-rail-message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F5F5F6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 15px;
}
.cast-rail-message-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cast-rail-message-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.cast-rail-message-name {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cast-rail-message-preview {
    font-size: 11px;
    color: var(--cs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.role-cast .cast-rail-more {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--cs);
    text-decoration: none;
    text-align: right;
}
body.role-cast .cast-rail-more:hover { color: var(--cp); }

.cast-rail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cast-rail-action-btn {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════
   Wide desktop (≥ 1180px) — home page gains a right rail
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1180px) {
    body.role-cast .cast-page { max-width: 1100px; }

    .cast-dashboard-grid {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 24px;
        align-items: start;
    }

    .cast-dashboard-grid.cast-dashboard-grid--no-rail {
        display: block;
    }

    .cast-dashboard-rail { display: flex; margin-top: 40px; }
}

/* .button の既定色が後方の正規化レイヤーでピンク文字に上書きされ、
   ピンク背景と衝突して視認不能になっていたための修正 */
body.role-cast .button:not(:disabled):not(.button-secondary),
body.role-cast button.button:not(:disabled):not(.button-secondary) { color: #fff; }

/* ── おすすめショップ（job_list.php：縦長フォトカード） ─────── */
.cast-shop-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

body.role-cast .cast-shop-mini-card {
    background: #fff;
    border: 1px solid var(--cg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(74, 63, 58, .1);
    text-decoration: none;
    color: var(--ct);
    display: flex;
    min-width: 0;
    flex-direction: column;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), border-color .2s ease, box-shadow .28s ease;
}

body.role-cast .cast-shop-mini-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 0, 120, .28);
    box-shadow: 0 16px 38px rgba(74, 63, 58, .17);
    color: var(--ct);
}

.cast-shop-mini-photo-wrap {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--cplt);
    overflow: hidden;
}

.cast-shop-mini-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.001);
    transition: transform .7s cubic-bezier(.22, 1, .36, 1), filter .3s ease;
}

body.role-cast .cast-shop-mini-card:hover .cast-shop-mini-photo {
    transform: scale(1.045);
    filter: saturate(1.06);
}

.cast-shop-mini-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--cg);
    background: radial-gradient(circle at 35% 25%, #fff, var(--cplt) 52%, #e9e1dc);
}

.cast-shop-mini-photo-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(28,22,19,.1), transparent 38%, transparent 62%, rgba(28,22,19,.46));
}

.cast-shop-mini-job-count {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    color: #fff;
    background: rgba(245,0,120,.84);
    box-shadow: 0 5px 16px rgba(0,0,0,.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.cast-shop-mini-open {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    color: #fff;
    background: rgba(26,21,18,.48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .25s cubic-bezier(.22,1,.36,1), background .2s ease;
}

body.role-cast .cast-shop-mini-card:hover .cast-shop-mini-open {
    transform: translate(2px,-2px);
    background: rgba(245,0,120,.86);
}

.cast-shop-mini-body {
    display: flex;
    min-height: 98px;
    padding: 11px 12px 12px;
    flex: 1;
    flex-direction: column;
}

.cast-shop-mini-name {
    font-weight: bold;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ct);
}

.cast-shop-mini-meta {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--cs);
    margin-bottom: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-shop-mini-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 10px;
    color: var(--cs);
}

.cast-shop-mini-rating { color: #b47b00; font-weight: 700; }
.cast-shop-mini-rating.is-empty { color: var(--cs); font-weight: 500; }
.cast-shop-mini-detail { color: var(--cp); font-weight: 700; white-space: nowrap; }

@media (min-width: 700px) {
    .cast-shop-mini-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .cast-shop-mini-body { min-height: 110px; padding: 13px 14px 14px; }
    .cast-shop-mini-name { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    body.role-cast .cast-shop-mini-card,
    .cast-shop-mini-photo,
    .cast-shop-mini-open { transition: none; }
    body.role-cast .cast-shop-mini-card:hover { transform: none; }
    body.role-cast .cast-shop-mini-card:hover .cast-shop-mini-photo { transform: none; }
}

/* ── Job detail visual gallery ─────────────────────────────── */
.cast-job-visual {
    margin: 0 0 24px;
    animation: cast-job-visual-enter .55s cubic-bezier(.22, 1, .36, 1) both;
}

.cast-job-visual-main {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #ede8e4, #faf7f5);
    box-shadow: 0 18px 45px rgba(43, 43, 43, .16);
    cursor: zoom-in;
    text-align: left;
}

.cast-job-visual-main > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition: transform .8s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, filter .22s ease;
}

.cast-job-visual-main:hover > img { transform: scale(1.035); }
.cast-job-visual-main > img.is-switching { opacity: .62; filter: saturate(.72); }

.cast-job-visual-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(20, 16, 14, .18) 0%, transparent 34%, transparent 60%, rgba(20, 16, 14, .48) 100%);
}

.cast-job-visual-badges {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cast-job-visual-label,
.cast-job-visual-urgent,
.cast-job-visual-counter,
.cast-job-visual-zoom {
    color: #fff;
    background: rgba(22, 18, 16, .56);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.cast-job-visual-label,
.cast-job-visual-urgent {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.cast-job-visual-urgent {
    border-color: rgba(255, 255, 255, .45);
    background: rgba(245, 0, 120, .84);
}

.cast-job-visual-counter {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.cast-job-visual-zoom {
    position: absolute;
    z-index: 2;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    transition: transform .2s ease, background .2s ease;
}

.cast-job-visual-main:hover .cast-job-visual-zoom {
    transform: translateY(-2px);
    background: rgba(22, 18, 16, .72);
}

.cast-job-visual-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 2px 2px 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--cg) transparent;
}

.cast-job-visual-thumb {
    flex: 0 0 84px;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--cplt);
    box-shadow: 0 5px 16px rgba(43, 43, 43, .09);
    cursor: pointer;
    opacity: .68;
    scroll-snap-align: start;
    transition: opacity .2s ease, transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cast-job-visual-thumb:hover { opacity: 1; transform: translateY(-2px); }
.cast-job-visual-thumb.is-active {
    opacity: 1;
    border-color: var(--cp);
    box-shadow: 0 0 0 3px rgba(245, 0, 120, .12), 0 7px 18px rgba(43, 43, 43, .12);
}
.cast-job-visual-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }

.cast-job-visual-placeholder {
    width: 100%;
    min-height: 260px;
    margin-bottom: 24px;
    border: 1px solid var(--cg);
    border-radius: 20px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    color: var(--cs);
    background: radial-gradient(circle at 30% 20%, #fff 0, #f8f5f3 38%, #eee8e4 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 12px 32px rgba(43,43,43,.08);
}

body.cast-lightbox-open { overflow: hidden; }
.cast-job-lightbox {
    background: rgba(15, 12, 11, .82);
    backdrop-filter: blur(18px) saturate(.85);
    -webkit-backdrop-filter: blur(18px) saturate(.85);
}
.cast-job-lightbox.open { animation: cast-job-lightbox-in .22s ease-out both; }
.cast-job-lightbox.open img { animation: cast-job-lightbox-image-in .38s cubic-bezier(.22, 1, .36, 1) both; }
.cast-job-lightbox img {
    max-width: min(94vw, 1280px);
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .52);
}
.cast-job-lightbox-close {
    position: absolute;
    z-index: 2002;
    top: max(16px, env(safe-area-inset-top));
    right: 18px;
    width: 44px;
    height: 44px;
    padding: 0 0 3px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.cast-job-lightbox-counter {
    position: absolute;
    z-index: 2002;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    font: 600 12px/1 "Inter", sans-serif;
}

@keyframes cast-job-visual-enter {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cast-job-lightbox-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes cast-job-lightbox-image-in {
    from { opacity: 0; transform: translateY(10px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 639px) {
    .cast-job-visual { margin-right: -16px; margin-left: -16px; }
    .cast-job-visual-main {
        min-height: 290px;
        border-radius: 0 0 22px 22px;
        box-shadow: 0 16px 34px rgba(43, 43, 43, .16);
    }
    .cast-job-visual-thumbs { padding-right: 16px; padding-left: 16px; }
    .cast-job-visual-thumb { flex-basis: 76px; }
    .cast-job-visual-placeholder { min-height: 290px; margin-right: -16px; margin-left: -16px; width: auto; border-radius: 0 0 22px 22px; }
}

@media (min-width: 640px) {
    .cast-job-visual-main { aspect-ratio: 16 / 10; min-height: 420px; max-height: 600px; }
    .cast-job-visual-thumb { flex-basis: 104px; }
}

.offer-shop-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-bottom: 20px;
}
.offer-expired-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid #e0a09a;
    border-radius: 8px;
    background: #fff1f0;
    color: #9f2f26;
}
.offer-expired-notice strong {
    flex: 0 0 auto;
    font-size: 16px;
}
.offer-expired-notice span { font-size: 14px; }
.offer-shop-photo-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
}

.lightbox-overlay img.is-changing-next {
    animation: offer-lightbox-next .3s cubic-bezier(.22, 1, .36, 1);
}
.lightbox-overlay img.is-changing-prev {
    animation: offer-lightbox-prev .3s cubic-bezier(.22, 1, .36, 1);
}
@keyframes offer-lightbox-next {
    from { opacity: 0; transform: translateX(28px) scale(.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes offer-lightbox-prev {
    from { opacity: 0; transform: translateX(-28px) scale(.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (min-width: 900px) {
    body.role-cast .page-card.cast-job-detail-page { max-width: 920px; }
    .cast-job-visual-main { min-height: 500px; }
    .offer-shop-photo-grid { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox-overlay img.is-changing-next,
    .lightbox-overlay img.is-changing-prev { animation: none; }
    .cast-job-visual,
    .cast-job-lightbox.open,
    .cast-job-lightbox.open img { animation: none; }
    .cast-job-visual-main > img,
    .cast-job-visual-thumb,
    .cast-job-visual-zoom { transition: none; }
    .cast-job-visual-main:hover > img { transform: none; }
}

/* キャストプロフィールと同じ考え方で、募集・店舗画像を同格に並べる */
.cast-job-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 24px;
}

.cast-job-photo-grid--count-1 { grid-template-columns: minmax(0, 1fr); }

.cast-job-photo-tile {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ede8e4, #faf7f5);
    box-shadow: 0 8px 24px rgba(43, 43, 43, .12);
    cursor: zoom-in;
    animation: cast-job-photo-enter .5s cubic-bezier(.22, 1, .36, 1) both;
}

.cast-job-photo-tile:nth-child(2) { animation-delay: .06s; }
.cast-job-photo-tile:nth-child(3) { animation-delay: .12s; }
.cast-job-photo-tile:nth-child(4) { animation-delay: .18s; }
.cast-job-photo-tile:nth-child(n+5) { animation-delay: .22s; }

.cast-job-photo-tile > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition: transform .65s cubic-bezier(.22, 1, .36, 1), filter .3s ease;
}

.cast-job-photo-tile:hover > img {
    transform: scale(1.045);
    filter: saturate(1.06);
}

.cast-job-photo-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(18, 14, 12, .2), transparent 30%, transparent 58%, rgba(18, 14, 12, .5));
}

.cast-job-photo-urgent,
.cast-job-photo-number,
.cast-job-photo-zoom {
    position: absolute;
    z-index: 2;
    color: #fff;
    border: 1px solid rgba(255,255,255,.27);
    background: rgba(24, 19, 17, .54);
    box-shadow: 0 5px 16px rgba(0,0,0,.15);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

.cast-job-photo-urgent {
    top: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.cast-job-photo-urgent { right: 10px; background: rgba(245, 0, 120, .86); }

.cast-job-photo-number {
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    font: 600 10px/1 "Inter", sans-serif;
}

.cast-job-photo-zoom {
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translate(-50%, -40%) scale(.88);
    transition: opacity .2s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}

.cast-job-photo-tile:hover .cast-job-photo-zoom,
.cast-job-photo-tile:focus-visible .cast-job-photo-zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cast-job-photo-tile:focus-visible {
    outline: 3px solid rgba(245, 0, 120, .42);
    outline-offset: 3px;
}

@keyframes cast-job-photo-enter {
    from { opacity: 0; transform: translateY(12px) scale(.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 700px) {
    .cast-job-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .cast-job-photo-grid--count-1 { grid-template-columns: minmax(0, 520px); }
    .cast-job-photo-grid--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cast-job-photo-tile { border-radius: 18px; }
}

@media (hover: none) {
    .cast-job-photo-zoom {
        top: auto;
        right: auto;
        bottom: 9px;
        left: 9px;
        width: 32px;
        height: 32px;
        opacity: .9;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cast-job-photo-tile { animation: none; }
    .cast-job-photo-tile > img,
    .cast-job-photo-zoom { transition: none; }
    .cast-job-photo-tile:hover > img { transform: none; }
}
