/*
 * page-about.css — 学校案内トップ ページ固有調整
 * Figma 準拠リビルド (Phase 10 / 2026-10-02)
 * 共通パーツは figma-components.css に集約済み。
 * ここでは NUMBERS 一列並び / HISTORY 3カラム / 校長挨拶 枠 など
 * このページ特有のレイアウト調整のみ。
 */

.page-about {
    display: flex;
    flex-direction: column;
    gap: 30px; /* 2026-10-19 Figma準拠: .c-section-box の margin-top 50px と合わせて箱同士 80px (Figma: wrapper gap 50 + 見出しはみ出し 30) */
    align-items: center;
    padding: 50px 0 0;
    background: #fff;
}

/* Hero は .c-page-hero (figma-components.css) をフル使用 */

/* ------------------------------------------------------------------
 * NUMBERS 数字で見るYTC
 * ------------------------------------------------------------------ */
.page-about__stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}
.page-about__stats > li {
    flex: 1 0 0;
    min-width: 0;
    max-width: none;
}

/* ------------------------------------------------------------------
 * MESSAGE 校長挨拶
 * ------------------------------------------------------------------ */
.page-about__president {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--ytc-border-strong, #39364e);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}
.page-about__president-photo {
    flex-shrink: 0;
    width: 360px;
    aspect-ratio: 360 / 400;
    border: 1px solid var(--ytc-border-strong, #39364e);
    border-radius: 10px;
    overflow: hidden;
    background: #d7f2ff;
}
.page-about__president-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.page-about__president-text {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.page-about__president-body p {
    font-family: var(--ytc-font-jp);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: var(--ytc-text-primary, #000);
    margin: 0 0 1em;
}
.page-about__president-body p:last-child {
    margin-bottom: 0;
}
.page-about__president-name {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-family: var(--ytc-font-jp);
    font-weight: 700;
}
.page-about__president-name-title { font-size: 20px; }
.page-about__president-name-value { font-size: 26px; }

/* ------------------------------------------------------------------
 * HISTORY 沿革
 * ------------------------------------------------------------------ */
.page-about__history-divider {
    width: 100%;
    height: 1px;
    background: #d9d9d9;
}
.page-about__history-grid {
    display: flex;
    gap: 60px;
    align-items: stretch;
    width: 100%;
}
.page-about__history-photos {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.page-about__history-photos img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--ytc-border-strong, #39364e);
    border-radius: 10px;
    display: block;
}
.page-about__history-list {
    flex-shrink: 0;
    width: 500px;
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 861px;
}

/* ------------------------------------------------------------------
 * LINKS 関連ページ
 * ------------------------------------------------------------------ */
.page-about__links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}
.page-about__links-list > li {
    flex: 1 0 0;
    min-width: 0;
}
.page-about__links-list .c-link-row {
    max-width: 100%;
    width: 100%;
    justify-content: space-between;
}

/* ------------------------------------------------------------------
 * SP (<=768px)
 * ------------------------------------------------------------------ */
@media screen and (max-width: 768px) {
    .page-about { gap: 30px; padding: 20px 0 0; }
    .page-about__stats {
        flex-wrap: wrap;
        gap: 12px;
    }
    .page-about__stats > li {
        flex: 1 0 calc(50% - 6px);
        min-width: 0;
    }
    /* 2026-10-19 Figma SP準拠: 写真(幅いっぱい/高さ200) → 校長・氏名(中央・縦積み) → 本文 の順。
       旧: .page-about__president-text が flex:1 0 0 のため縦並びで高さ0に潰れ、本文が箱からはみ出していた */
    .page-about__president {
        flex-direction: column;
        padding: 16px 18px 16px 16px;
        gap: 12px;
    }
    .page-about .page-about__president-photo {
        width: 100%;
        max-width: none;
        height: 200px;
        margin: 0;
    }
    .page-about .page-about__president-photo img {
        object-position: center 20%;
    }
    .page-about__president-text {
        flex: none;
        width: 100%;
        gap: 12px;
    }
    .page-about__president-name {
        order: -1;
        flex-direction: column;
        gap: 6px;
        justify-content: center;
    }
    .page-about__president-body p {
        font-size: 14px;
        line-height: 1.8;
    }
    .page-about__president-name-title { font-size: 16px; line-height: 1.2; }
    .page-about__president-name-value { font-size: 20px; line-height: 1.2; }

    .page-about__history-grid {
        flex-direction: column;
        gap: 24px;
    }
    .page-about__history-photos {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
    }
    .page-about__history-photos img {
        width: calc(50% - 5px);
        aspect-ratio: 1 / 1;
    }
    .page-about__history-list {
        width: 100%;
        min-height: 0;
    }

    .page-about__links-list {
        flex-direction: column;
        gap: 10px;
    }
}
