/*
ENTAG 共通 1.0 ベース（2026-12-02）：ENTAG の色と、ヘッダー・フッター。会社サイト（entag.jp）も含め、ENTAG のどのサイトでも読み込める
（FRAME の変数や、サイトの丸み・色は変えない）。会社サイトのやわらかい見た目に合わせている。

・色・丸み・影などの値は、いちばん上の :root だけに書く。ほかの場所では、必ず変数（--ec-*）を使う。
・外枠（ヘッダー・フッター）の HTML は、サーバーの entag_shared/Lib/Chrome.php が出す。リンクや文言は entag_shared/Chrome/links.php。
・サービス（ACCOUNT・ONE など）は、このあとに entag_service.css も読み込む。
*/

:root {
    /* ---- ENTAG の色（ロゴの色から） ---- */
    --ec-text:        #595455;
    --ec-text-sub:    #7b7677;
    --ec-text-faint:  #a99;
    --ec-bg:          #f4f3f3;
    --ec-white:       #fefeff;
    --ec-teal:        #0088a8;
    --ec-pink:        #d00164;
    --ec-orange:      #f49c00;

    /* ---- サービスのカテゴリの色（ロゴの3色。一般の方向け＝黄、Web制作者向け＝青、ゲーム制作向け＝赤） ---- */
    --ec-cat-general: var(--ec-orange);
    --ec-cat-web:     var(--ec-teal);
    --ec-cat-game:    var(--ec-pink);

    /* ---- 線・ガラス ---- */
    --ec-line:         rgb(89 84 85 / 0.14);
    --ec-line-strong:  rgb(89 84 85 / 0.28);
    --ec-glass:        rgb(255 254 254 / 0.8);
    --ec-glass-weak:   rgb(255 254 254 / 0.62);
    --ec-glass-line:   rgb(255 254 254 / 0.95);
    --ec-field-bg:     rgb(255 254 254 / 0.85);
    --ec-header-bg:    #ffffff;
    --ec-header-line:  #e8e6e6;

    /* ---- 丸み・影 ---- */
    --ec-radius:        24px;
    --ec-radius-field:  14px;
    --ec-radius-small:  10px;
    --ec-shadow:        0 20px 50px -30px rgb(89 84 85 / 0.35);

    /* ---- お知らせ ---- */
    --ec-success:     #1e7d46;
    --ec-success-bg:  #e9f6ee;
    --ec-error:       #b00020;
    --ec-error-bg:    #fdecec;

    /* ---- 背景（ロゴの3色を、ごく薄くにじませる） ---- */
    --ec-blobs:
        radial-gradient(40% 35% at 12% 18%, rgb(244 156 0 / 0.16), transparent 70%),
        radial-gradient(38% 40% at 88% 30%, rgb(208 1 100 / 0.11), transparent 70%),
        radial-gradient(45% 40% at 30% 92%, rgb(0 136 168 / 0.13), transparent 70%),
        var(--ec-bg);
}

/* ================================================================
   外枠（ヘッダー・フッター）。会社サイトもフッターを使う
   ================================================================ */

.ec-header {
    top: 0;
    background: var(--ec-header-bg);
    border-bottom: 1px solid var(--ec-header-line);

    .width-limiter {
        display: flex;
        align-items: center;
        min-height: var(--et-header-height);
    }
}

.ec-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ec-text);
    text-decoration: none;

    img {
        width: auto;
        height: 36px;
    }

    span {
        padding-left: 12px;
        border-left: 1px solid var(--ec-line-strong);
        font-size: 0.85em;
        font-weight: bold;
        letter-spacing: 0.14em;
    }

    /* サービス名は、そのカテゴリの色（ACCOUNT のように、カテゴリのないものは文字色のまま） */
    .ec-brand-name {
        &.ec-cat-general { color: var(--ec-cat-general); }
        &.ec-cat-web     { color: var(--ec-cat-web); }
        &.ec-cat-game    { color: var(--ec-cat-game); }
    }
}

.ec-footer {
    margin-top: auto;
    padding: 48px 0 24px;
    background: var(--ec-glass-weak);
    border-top: 1px solid var(--ec-glass-line);
    color: var(--ec-text);
    font-size: 13px;
    line-height: 1.8;
    text-align: left;

    .ec-footer-inner {
        width: min(100% - 40px, 1000px);
        margin-inline: auto;
    }

    a {
        color: inherit;
        text-decoration: none;

        &:hover {
            color: var(--ec-pink);
        }
    }

    .ec-footer-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 28px 40px;
    }

    .ec-footer-brand {
        flex: 1 1 260px;

        img {
            width: auto;
            height: 40px;
        }

        p {
            max-width: 22em;
            margin: 10px 0 0;
            color: var(--ec-text-sub);
            font-size: 12px;
            text-align: left;
        }
    }

    .ec-footer-col {
        flex: 0 1 170px;
        min-width: 140px;

        ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        li + li {
            margin-top: 2px;
        }
    }

    .ec-footer-title {
        margin: 0 0 8px;
        padding: 0;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.6;
        letter-spacing: 0.24em;
        text-align: left;
        color: var(--ec-text-sub);

        /* カテゴリの色の点 */
        &[class*="ec-cat-"]::before {
            content: "";
            display: inline-block;
            width: 8px;
            height: 8px;
            margin-right: 8px;
            border-radius: 50%;
            background: var(--ec-text-faint);
        }

        &.ec-cat-general::before { background: var(--ec-cat-general); }
        &.ec-cat-web::before     { background: var(--ec-cat-web); }
        &.ec-cat-game::before    { background: var(--ec-cat-game); }
    }

    .ec-footer-soon {
        color: var(--ec-text-faint);
    }

    .ec-footer-bottom {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px 22px;
        margin-top: 32px;
        padding-top: 14px;
        border-top: 1px solid var(--ec-line);
        font-size: 12px;

        ul {
            display: flex;
            flex-wrap: wrap;
            gap: 4px 22px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        li + li {
            margin-top: 0;
        }

        small {
            margin-left: auto;
            color: var(--ec-text-faint);
            font-size: 12px;
            letter-spacing: 0.08em;
        }
    }
}
