/* 英語ページ共通のヘッダー・フッター。noveblo_is_english_view() のときだけ読み込まれる */
/* 配色は英語トップ（en-top.css）に合わせている */

/* ===== ヘッダー ===== */

.neh {
    background: #fff;
    border-bottom: 1px solid #dfe5ec;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 横幅・左右余白はSWELLの .l-container に任せる（--container_size と --swl-pad_container が
   画面幅で変わるため、自前で数値を持つと本文とズレる）。ここでは上下余白だけを指定する */
.neh__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-top: 13px;
    padding-bottom: 13px;
    box-sizing: border-box;
}

.neh__logo {
    order: 1;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #14202e;
    text-decoration: none;
    line-height: 1.2;
}

.neh__logo:hover {
    color: #1f6feb;
}

.neh__nav {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
}

.neh__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.neh__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.neh__item::before,
.neh__item::marker {
    content: none;
}

.neh__link {
    display: inline-block;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5866;
    text-decoration: none;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
}

.neh__link:hover {
    color: #1f6feb;
}

.neh__link[aria-current="page"] {
    color: #1f6feb;
    font-weight: 700;
    border-bottom-color: #1f6feb;
}

.neh__lang {
    order: 2;
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1;
    color: #4b5866;
    text-decoration: none;
    padding: 7px 14px;
    border: 1px solid #c3cdd9;
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
}

.neh__lang:hover {
    color: #1f6feb;
    border-color: #1f6feb;
    background: #f6f8fa;
}

@media (min-width: 782px) {
    .neh__nav {
        order: 2;
        flex: 1 1 auto;
    }

    .neh__list {
        gap: 4px 24px;
    }

    .neh__lang {
        order: 3;
        margin-left: 0;
    }
}

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

/* SWELLは .l-footer に色を持たせ .l-footer a, .l-footer span { color: inherit } を当てている。
   この詳細度(0,1,1)に負けるとリンクがフッター文字色（白）を継承して見えなくなるため、
   以下のリンク・テキストはクラス2つ(0,2,0)で指定して確実に勝たせている */

.nef {
    background: #f6f8fa;
    border-top: 1px solid #dfe5ec;
    padding: 30px 0 26px;
    color: #6b7787;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ヘッダーと同じく、横幅と左右余白は .l-container に任せる */
.nef__inner {
    text-align: center;
}

.nef__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nef__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nef__item::before,
.nef__item::marker {
    content: none;
}

.nef .nef__link {
    font-size: 13px;
    line-height: 1.6;
    color: #6b7787;
    text-decoration: none;
}

.nef .nef__link:hover {
    color: #1f6feb;
    text-decoration: underline;
}

.nef .nef__copy {
    margin: 18px 0 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #7a8798;
}

/* ===== 英語ページで日本語UIを出さないための調整 ===== */

/* 記事下コンテンツ（著者情報・関連記事）はPHP側で出力を止めている。
   残る空ラッパーの余白だけを潰す */
.noveblo-en #after_article {
    display: none;
}

/* 英語トップの投稿タイトルは parts/page_head.php の差し替えでDOMごと出力を止めている。
   これはそのパーツが未反映だった場合の保険。通常はマッチする要素が無い */
.noveblo-en-hub .c-pageTitle {
    display: none;
}
