*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-basic: #29a4db;
    --orange-mid: #EA5A24;
    --orange-light: #EE7D53;
    --orange-pale: #FFF0EB;
    --accent: #EA5A24;
    --gold: #c8973a;
    --text-basic: #333333;
    --border: #E8E0DC;
    --bg: #ebe6e4;

}

/* ========== 2交代制SHIFT VISUAL ========== */
.shift-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.shift-card {
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
}

.shift-card-head {
    padding: 14px 18px;
    font-weight: 700;
}

.shift-card-head.ours {
    background: var(--blue-basic);
    color: #fff;
}

.shift-card-head.other {
    background: #e8e8e8;
    color: var(--text-sub);
}

.shift-card-body {
    padding: 16px 18px;
}

.shift-bar {
    display: flex;
    height: 50px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

.sb-day {
    background: var(--orange-mid);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    ;
    /* 必要に応じて調整 */
}

.sb-night {
    background: #1e3a5f;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    ;
    /* 必要に応じて調整 */
}

/*
.sb-ake {
    background: #2e6ba8;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    ;
     必要に応じて調整 
}*/
/*
.sb-off {
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    ;
     必要に応じて調整 
}*/

.sb-grey {
    background: #999;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    ;
    /* 必要に応じて調整 */
}

.sb-dk {
    background: #555555;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    ;
    /* 必要に応じて調整 */
}

.sb-mn {
    background: #333333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    ;
    /* 必要に応じて調整 */
}

.shift-points {
    list-style: none;
    padding: 0;
}

.shift-points li {
    color: var(--text-sub);
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.shift-points li::before {
    content: '○';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.shift-points li.bad::before {
    content: '×';
    color: #e05;
}

/* ========== 実質３連休 ========== */
.cycle-wrap {
    background: var(--orange-pale);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 24px;
}

.cycle-title {
    font-weight: 700;
    color: var(--text-basic);
    margin-bottom: 16px;
}

.cycle-steps {
    display: grid;
    grid-template-columns: 1fr 32px 1fr 32px 1fr;
    align-items: center;
    gap: 8px;
}

.cycle-step {
    border-radius: 0;
    padding: 14px 10px;
    text-align: center;
}

.cycle-step.night {
    background: #1e3a5f;
    color: #fff;
}

.cycle-step.ake {
    background: #d2f1ff;
    color: #1a4a5a;
}

.cycle-step.off {
    background: #2e7d4f;
    color: #fff;
}

.cycle-step-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.cycle-step-name {
    font-weight: 700;
}

.cycle-step-desc {
    opacity: .75;
    margin-top: 3px;
}

.cycle-arrow {
    text-align: center;
    color: var(--text-sub);
    font-size: 18px;
}

@media (max-width: 700px) {

    /* 2カラム → 1カラム縦積み */
    .shift-grid {
        grid-template-columns: 1fr;
    }

    /* 日勤・夜勤バーも縦積み */
    .shift-bar {
        flex-direction: column;
        height: auto;
    }

    .sb-day,
    .sb-night,
    .sb-grey,
    .sb-dk,
    .sb-mn {
        width: 100% !important;
        padding: 10px;
    }

    /* サイクルを縦積み */
    .cycle-steps {
        grid-template-columns: 1fr;
    }

    /* 矢印を横向き → 縦向きに */
    .cycle-arrow {
        transform: rotate(90deg);
    }

    /* cycle-stepを横幅いっぱいに */
    .cycle-step {
        width: 100%;
    }
}