/* ==================================================
   タイムラインセクション（園児の1日のスケジュール）
================================================== */

/* セクション見出し */
.daily-life-container .about-features-header h2 {
    font-size: 3rem;
    /* 好きな大きさに調整 */
}

.about-features-header {
    margin-top: 5rem;
}

/* タイムラインセクション全体 */
.schedule-section {
    padding: 4rem 1rem;
    display: flex;
    justify-content: center;
    /* 中央寄せ */
}

.schedule-inner {
    max-width: 700px;
    width: 100%;
}

/* セクション内の見出し */
.schedule-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* タイムライン本体 */
.schedule-timeline {
    counter-reset: step;
    position: relative;
    margin: 10rem auto 0 25rem;
    padding: 0;
    list-style: none;
    max-width: 600px;
}

/* 各アイテム */
.schedule-timeline li {
    position: relative;
    padding-left: 6rem;
    margin-bottom: 3rem;
}

/* 番号（丸） */
.schedule-timeline li::before {
    counter-increment: step;
    content: counter(step, decimal);
    position: absolute;
    left: 2rem;
    top: 0;
    background: #999;
    color: var(--color-white);
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    font-size: 1.3rem;
    z-index: 1;
}

/* 縦の色付き線 */
.schedule-timeline li::after {
    content: '';
    position: absolute;
    left: 3.4rem;
    top: 3.3rem;
    width: 4px;
    height: calc(100% - 1rem);
    background: inherit;
}

/* 時間・本文 */
.schedule-timeline li .time {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.schedule-timeline li p {
    margin-left: 5rem;
}

/* スケジュール全体のアイテム */
.schedule-item {
    margin-bottom: 2rem;
}

/* 時間表示 */
.schedule-item .time {
    display: block;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* 画像とテキストを横並びに */
.schedule-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* 画像とテキストの間隔 */
}

.schedule-content img {
    width: 350px;
    height: auto;
    flex-shrink: 0;
    /* 画像は縮まない */
}

.schedule-content p {
    margin: 0;
    white-space: nowrap;
    /* 折り返さない */
    flex: 1;
    /* 残り幅を使う */
    min-width: 300px;
    /* テキストが潰れないように最低幅を確保 */
}

/* --- 色分けルール（4色ループ） --- */
.schedule-timeline li:nth-child(4n+1)::before,
.schedule-timeline li:nth-child(4n+1)::after {
    background-color: var(--color-hover);
}

.schedule-timeline li:nth-child(4n+2)::before,
.schedule-timeline li:nth-child(4n+2)::after {
    background-color: var(--color-accent);
}

.schedule-timeline li:nth-child(4n+3)::before,
.schedule-timeline li:nth-child(4n+3)::after {
    background-color: var(--color-border);
}

.schedule-timeline li:nth-child(4n+4)::before,
.schedule-timeline li:nth-child(4n+4)::after {
    background-color: var(--color-green);
}

/* ==================================================
   タブレット対応（1024px以下）
================================================== */
@media (max-width: 64rem) {
    .schedule-timeline {
        margin: 5rem;
    }

    .schedule-timeline li {
        padding-left: 5rem;
    }

    .schedule-timeline li::before {
        left: -1rem;
        width: 3.5rem;
        height: 3.5rem;
        line-height: 3.5rem;
        font-size: 1.7rem;
    }

    .schedule-timeline li::after {
        left: 0.6rem;
    }

    .schedule-content img {
        width: 250px;
    }

    .schedule-content p {
        min-width: 200px;
    }

    .schedule-timeline li p {
        margin-left: 0;
        white-space: normal;
    }
}

/* ==================================================
   スマホ対応（768px以下）
================================================== */
@media (max-width: 48rem) {
    .schedule-timeline {
        margin: 0.6rem;
    }

    .daily-life-container .about-features-header h2 {
        font-size: 1.5rem;
    }

    .schedule-timeline li {
        padding-left: 4rem;
    }

    .schedule-timeline li::before {
        left: 0;
        width: 3rem;
        height: 3rem;
        line-height: 3rem;
        font-size: 1.5rem;
    }

    .schedule-timeline li::after {
        left: 1.4rem;
    }

    .schedule-timeline li .time {
        font-size: 1.4rem;
    }

    .schedule-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .schedule-content img {
        width: 100%;
        max-width: 250px;
        height: auto;
    }

    .schedule-content p {
        white-space: normal;
        /* 折り返し可 */
        min-width: auto;
    }
}