/* ==================================================
   入園案内・利用料金・園児の1日の流れ
================================================== */

/* ========== 入園案内テーブル ========== */
.about-greeting-container {
    margin-bottom: 8rem;
}

.admission-table {
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}

.admission-table th,
.admission-table td {
    border: 2px solid #f0ebe6;
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    font-size: 1rem;
}

.admission-table th {
    width: 30%;
    background: var(--color-green);
    color: var(--color-hero-text);
    font-weight: bold;
    color: #fff;
}

.admission-table td {
    width: 70%;
    background: var(--color-white);
}

/* ========== 利用料金セクション ========== */
.fees-section {
    position: relative;
    padding: 0 1rem 3rem;
    background-color: #FCF7F0;
    overflow: hidden;
}

.enrollment-fees {
    padding: 2rem;
    width: 60%;
    margin: 0 auto;
}

.enrollment-fees h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.enrollment-fees h3 span {
    display: inline-block;
    background-color: #f9f5d7;
    padding: 0.3em 1em;
    border-radius: 4px;
}

/* 利用料金テーブル */
.fees-table {
    width: 100%;
    border-collapse: collapse;
}

.fees-table th,
.fees-table td {
    border: 2px solid #f0ebe6;
    padding: 1rem;
    vertical-align: middle;
    text-align: left;
}

.fees-table th {
    width: 160px;
    background-color: var(--color-green);
    color: var(--color-hero-text);
    font-weight: bold;
}

.fees-table strong {
    display: inline-block;
    padding: 0.2em 0.6em;
    background-color: #F9F5D7;
    font-weight: bold;
}

/* ==================================================
   タイムライン（園児の1日の流れ）
================================================== */
.daily-life-container {
    margin-top: 10rem;
}

.flow-timeline {
    counter-reset: step;
    position: relative;
    margin: 5rem auto 0 30rem;
    padding: 0;
    list-style: none;
    max-width: 700px;
}

.flow-timeline li {
    position: relative;
    padding-left: 6rem;
    margin-bottom: 3rem;
}

.flow-timeline li::before {
    counter-increment: step;
    content: counter(step, decimal);
    position: absolute;
    left: 2rem;
    top: 0;
    background: #f9c74f;
    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;
}

.flow-timeline li::after {
    content: '';
    position: absolute;
    left: 3.4rem;
    top: 3.3rem;
    width: 4px;
    height: calc(100% - 1rem);
    background: #f9c74f;
}

.flow-timeline li:last-child::after {
    display: none;
}

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

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

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

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

.flow-timeline li:nth-child(4n+4)::after {
    display: none;
}

.flow-timeline li h3 {
    font-size: 29.25px;
    font-weight: bold;
    margin: 0 0 29.95px 24px;
}

.flow-timeline li p {
    margin: 0 0 16px 24px;
    line-height: 3;
    white-space: nowrap;
    letter-spacing: .1em;
}

.flow-timeline .highlight {
    display: inline-block;
    background-color: #f9f5d7;
    padding: 0.3em 0.6em;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
    margin-left: 24px;
}

.flow-timeline .highlight:hover {
    text-decoration: none;
}

/* ==================================================
   レスポンシブ対応
================================================== */

/* タブレット（1024px以下） */
@media (max-width: 1024px) {
    .enrollment-fees {
        width: 100%;
    }

    .flow-timeline {
        margin: 3rem auto;
        padding-left: 2rem;
        max-width: 90%;
    }

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

    .flow-timeline li::before {
        left: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        line-height: 2.5rem;
        font-size: 1.1rem;
    }

    .flow-timeline li::after {
        left: 1.7rem;
    }

    .flow-timeline li h3 {
        font-size: 1.25rem;
        margin-left: 0;
    }

    .flow-timeline li p {
        font-size: 0.95rem;
        margin-left: 0;
        line-height: 1.8;
        white-space: normal;
    }
}

/* スマホ（600px以下） */
@media (max-width: 600px) {
    .admission-table {
        width: 100%;
    }

    .fees-section {
        padding: 0;
    }

    .fees-table th {
        width: 0;
    }

    .enrollment-fees {
        padding: 0;
    }

    .flow-timeline {
        margin: 2rem auto;
        padding-left: 0.1rem;
        max-width: 95%;
    }

    .flow-timeline li {
        padding-left: 3rem;
        margin-bottom: 2rem;
    }

    .flow-timeline li::before {
        left: 0;
        width: 2rem;
        height: 2rem;
        line-height: 2rem;
        font-size: 1rem;
    }

    .flow-timeline li::after {
        left: 1rem;
        width: 3px;
    }

    .flow-timeline li h3 {
        font-size: 1.1rem;
    }

    .flow-timeline li p {
        font-size: 0.9rem;
        margin-left: 0;
        line-height: 1.6;
        white-space: normal;
    }

    .flow-timeline .highlight {
        margin-left: 0;
    }
}