/* highschool-start.php 専用調整
   共通 style.css を基準に、本文中のフロー／確認カードの余白だけを整える。 */

/* 「授業を受ける → もう一度解く」の4段階 */
.hs-learning-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
}

.hs-learning-flow .box-card {
    margin: 0;
    padding: 18px 18px;
    min-width: 0;
}

.hs-learning-flow .box-card h3 {
    margin-top: 0;
}

/* 高1・1月頃の3つの確認 */
.hs-january-check {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0 0;
}

.hs-january-check .box-card {
    margin: 0;
    padding: 18px 28px;
}

.hs-january-check .box-card h3 {
    margin-top: 0;
}

/* 共通カード側の指定が強い場合でも、本文量に合わせて高さを固定しない */
.hs-learning-flow .box-card,
.hs-january-check .box-card {
    height: auto;
    min-height: 0;
}

@media (max-width: 900px) {
    .hs-learning-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .hs-learning-flow,
    .hs-january-check {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .hs-learning-flow .box-card,
    .hs-january-check .box-card {
        padding: 16px 18px;
    }
}

/* 高校合格後から1月頃までの記事全体の地図 */
.hs-year-timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 30px 0 8px;
    border: 1px solid #cfddeb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.hs-timeline-item {
    position: relative;
    padding: 18px 14px 16px;
    min-width: 0;
}

.hs-timeline-item + .hs-timeline-item {
    border-left: 1px solid #dce6ef;
}

.hs-timeline-label {
    display: block;
    margin-bottom: 7px;
    color: #062852;
    font-size: 13px;
    font-weight: 700;
}

.hs-timeline-item p {
    margin: 0;
    color: #555;
    font-size: 12.5px;
    line-height: 1.65;
}

/* 「数学を進路を狭める科目にしない」の実写 */
.hs-math-photo {
    max-width: 720px;
    margin: 24px auto 26px;
}

.hs-math-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.hs-math-photo figcaption {
    margin-top: 9px;
    color: #666;
    font-size: 12.5px;
    line-height: 1.65;
    text-align: left;
}

@media (max-width: 900px) {
    .hs-year-timeline {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .hs-timeline-item {
        display: grid;
        grid-template-columns: 88px 1fr;
        gap: 12px;
        padding: 13px 16px;
        align-items: start;
    }

    .hs-timeline-item + .hs-timeline-item {
        border-left: 0;
        border-top: 1px solid #dce6ef;
    }

    .hs-timeline-label {
        margin: 0;
    }
}

@media (max-width: 600px) {
    .hs-year-timeline {
        margin: 20px 0 4px;
    }

    .hs-timeline-item {
        grid-template-columns: 74px 1fr;
        gap: 10px;
        padding: 12px 14px;
    }

    .hs-timeline-label,
    .hs-timeline-item p {
        font-size: 12.5px;
    }

    .hs-math-photo {
        margin: 20px auto 22px;
    }

    .hs-math-photo figcaption {
        font-size: 12px;
    }
}
