/* ==============================
   アップ教育企画 共通メンテナンスページ
   Brand: #005BAC (アップ教育企画コーポレートブルー)
   ============================== */

:root {
    --brand: #005BAC;
    --brand-dark: #004a8c;
    --text: #333333;
    --text-sub: #666666;
    --line: #e8ecf1;
    --bg: #f2f5f8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Yu Gothic",
        "YuGothic",
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    -webkit-text-size-adjust: 100%;
}

/* ==============================
   全体レイアウト
   ============================== */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

/* ==============================
   カード
   ============================== */

.card {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    border-radius: 14px;
    padding: 56px 48px 48px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 40, 80, 0.09);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--brand);
}

.logo {
    margin-bottom: 34px;
}

.logo img {
    width: 230px;
    max-width: 70%;
    height: auto;
}

/* ステータスアイコン */

.status-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #eaf2fa;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon svg {
    width: 40px;
    height: 40px;
}

/* ==============================
   テキスト
   ============================== */

.title {
    margin: 0 0 22px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text);
}

.lead {
    margin: 0 0 16px;
    font-size: 16px;
}

.description {
    margin: 0 0 34px;
    color: var(--text-sub);
    font-size: 15px;
}

/* ==============================
   お電話でのお問い合わせ 一覧
   ============================== */

.list-heading {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--brand);
}

.tel-list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.tel-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
}

.tel-item:last-child {
    border-bottom: none;
}

.tel-item__name {
    flex: 0 0 176px;
    margin: 0;
    padding-top: 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text);
}

.tel-item__sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.6;
    color: var(--text-sub);
}

.tel-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.tel-item__num {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--brand);
    letter-spacing: .01em;
}

.tel-item__num + .tel-item__num {
    margin-top: 4px;
}

.tel-item__branch {
    display: inline-block;
    min-width: 6em;
    margin-right: 10px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-sub);
    vertical-align: middle;
}

.tel-item__hours {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-sub);
}

/* PCでは電話番号をリンクとして機能させない */

a[href^="tel:"] {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}

/* ==============================
   補足
   ============================== */

.notice {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.notice-body {
    margin: 0;
    color: var(--text-sub);
    line-height: 1.9;
}

/* ==============================
   フッター
   ============================== */

footer {
    padding: 22px 20px 30px;
    text-align: center;
    color: #8a8f96;
    font-size: 12px;
    line-height: 2.2;
}

footer img {
    width: 92px;
    height: auto;
    opacity: .6;
}

/* ==============================
   スマートフォン対応
   ============================== */

@media screen and (max-width: 600px) {

    .container {
        padding: 24px 15px;
    }

    .card {
        padding: 40px 22px 34px;
        border-radius: 10px;
    }

    .logo {
        margin-bottom: 26px;
    }

    .status-icon {
        width: 64px;
        height: 64px;
    }

    .status-icon svg {
        width: 34px;
        height: 34px;
    }

    .title {
        font-size: 21px;
    }

    .lead {
        font-size: 15px;
    }

    .description {
        font-size: 14px;
    }

    .list-heading {
        font-size: 16px;
    }

    /* 塾名を電話番号の上に積む */
    .tel-item {
        display: block;
        padding: 16px 0;
    }

    .tel-item__name {
        padding-top: 0;
        margin-bottom: 6px;
        font-size: 14px;
    }

    .tel-item__sub {
        display: inline;
        margin-top: 0;
        margin-left: .5em;
    }

    .tel-item__sub br {
        display: none;
    }

    .tel-item__num {
        font-size: 26px;
    }

    /* スマホでも校舎名の幅を揃えて番号の頭を合わせる */
    .tel-item__branch {
        min-width: 5.2em;
        margin-right: 8px;
    }

    .pc-only {
        display: none;
    }

    /* スマートフォンでは電話番号をタップ発信できるようにする */
    a[href^="tel:"] {
        pointer-events: auto;
        cursor: pointer;
        color: var(--brand);
        text-decoration: underline;
    }
}
