/* 英語版: Google Fonts（OFL）の latin サブセットを自サイトから配信（Google CDN を使わない） */
@font-face { font-family: 'BIZ UDGothic'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/en/biz-udgothic-400-154054.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'BIZ UDGothic'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/en/biz-udgothic-700-b4e5c9.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/en/noto-sans-jp-400-a188fb.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/en/noto-sans-jp-400-a188fb.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/en/noto-sans-jp-400-a188fb.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/en/playfair-display-600-9deeae.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/en/playfair-display-600-9deeae.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Zen Maru Gothic'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/en/zen-maru-gothic-500-14321a.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Zen Maru Gothic'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/en/zen-maru-gothic-700-b8cdd9.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Zen Maru Gothic'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/en/zen-maru-gothic-900-ae6741.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =====================================================================
   英語版（/en/）専用の差分CSS
   配色・ヘッダー・フッター・カード・記事の見た目は日本語版と同じ共有CSS
   （critical.css / common.css / top_new.css / article-detail.css / category-list.css）を使う。
   ここには「英語版でだけ必要なもの」だけを書く。日本語版には影響しない。
   ===================================================================== */

/* 下書き表示（EN_SHOW_DRAFTS=true のときだけ出る） */
.en-draft-banner {
    margin: 0 0 12px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #e0c36a;
    border-radius: 4px;
    font-size: 0.88rem;
    color: #6b5200;
}

/* Markdown の引用（Quick answer）を日本語版の強調ボックスと同じ配色に */
.article-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--accent-rose);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-dark);
}
.article-body blockquote p { margin: 0.4em 0; }
.article-body blockquote ul { margin: 0.5em 0 0.2em; }

.article-body figure.article-image { margin: 1.5rem 0; text-align: center; }
.article-body figure.article-image img {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.article-body sup a { text-decoration: none; }

.en-empty { text-align: center; color: var(--text-light); margin: 1.5rem 0; }

/* 英語は単語単位で折り返す（日本語版のCSSは日本語向けに文字単位の折り返しがある場合に備える） */
.article-body, .tp-card__title, .tp-about__desc { overflow-wrap: break-word; word-break: normal; }

/* ---- トップのヒーロー: 1枚のみなので常に中央・通常サイズで表示（日本語版はJSで切替） ---- */
.tp-hero__track { justify-content: center; }
.tp-hero__copy-lead--1 { letter-spacing: 8px; }
.tp-hero__copy-lead--2 { font-size: 40px; letter-spacing: 2px; }
/* 英語のサブタイトルは等幅風になる BIZ UDGothic ではなく Noto Sans JP で表示 */
.tp-search__subtitle { font-family: 'Noto Sans JP', sans-serif; }

.tp-about__list a { color: var(--primary-dark); }

.en-draft-chip { display: inline-block; align-self: flex-start; margin-left: 6px; padding: 1px 8px; font-size: 0.7rem; font-weight: 700; color: #6b5200; background: #fff3cd; border: 1px solid #e0c36a; border-radius: 999px; vertical-align: middle; }

/* /en/about: 日本語版ではロゴ画像の見出し。英語版はテキストで同じ位置・同じ配色にする */
.en-about-hero__title {
    font-family: 'Playfair Display', 'Noto Sans JP', serif;
    font-size: clamp(2.6rem, 9vw, 4.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--lp-navy);
}
.about-profile__photo { object-fit: cover; }

/* 経歴の本文は英語で長くなるため、年と同じ行に収めて折り返す（日本語版は短文なので不要） */
.about-profile__careers li { flex-wrap: nowrap; }
.about-profile__body { flex: 1 1 0; min-width: 0; }

/* =====================================================================
   回遊性向上（Navigation & Topic Discovery）コンポーネント
   ===================================================================== */

/* ヘッダー直下のカテゴリサブナビバー */
.en-subnav {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.en-subnav__inner {
    padding-top: 0;
    padding-bottom: 0;
}
.en-subnav__list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
}
.en-subnav__list::-webkit-scrollbar {
    display: none;
}
.en-subnav__link {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark, #2d3748);
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}
.en-subnav__link:hover {
    background: #f3f4f6;
    color: var(--primary-color, #c28285);
}
.en-subnav__link.is-active {
    background: var(--primary-color, #c28285);
    color: #ffffff;
    font-weight: 600;
}

/* ドロワー内のセクション見出し */
.hamburger-section-label {
    margin: 16px 0 8px;
    padding: 0 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #8c9ba5;
    text-transform: uppercase;
}

/* 検索窓下の人気トピックタグ */
.en-topic-pills-wrap {
    max-width: 800px;
    margin: 16px auto 0;
    padding: 0 16px;
    text-align: center;
}
.en-topic-pills__label {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light, #718096);
    vertical-align: middle;
}
.en-topic-pills {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    vertical-align: middle;
}
.en-pill {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark, #2d3748);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px !important;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
    transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.en-pill:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color, #c28285);
    color: var(--primary-color, #c28285);
    background: #fff8f8;
}
.en-pill:focus,
.en-pill:active {
    outline: none !important;
    border-radius: 999px !important;
    -webkit-tap-highlight-color: transparent;
}

/* トップページのセクションヘッダー行 */
.tp-section__header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.en-section-more-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color, #c28285);
    text-decoration: none;
    transition: text-decoration 0.15s ease;
}
.en-section-more-link:hover {
    text-decoration: underline;
}

/* トップページ: カテゴリ一覧グリッド */
.en-categories-section {
    padding-top: 2rem;
}
.en-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.en-category-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.en-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(194, 130, 133, 0.4);
}
.en-category-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.en-category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff3f4;
    color: var(--primary-color, #c28285);
}
.en-category-card__badge {
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a5568;
    background: #edf2f7;
    border-radius: 999px;
}
.en-category-card__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark, #1a202c);
    letter-spacing: -0.01em;
}
.en-category-card__desc {
    margin: 0 0 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-light, #4a5568);
    flex-grow: 1;
}
.en-category-card__arrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color, #c28285);
    transition: transform 0.15s ease;
}
.en-category-card:hover .en-category-card__arrow {
    transform: translateX(4px);
}

/* カテゴリ一覧ページ: 切り替えピルバー */
.en-category-nav-pills {
    margin: 12px 0 24px;
    padding: 4px 0;
    width: 100%;
    overflow: hidden;
}
.en-category-nav-pills__scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
}
.en-category-nav-pills__scroll::-webkit-scrollbar {
    display: none;
}
.en-cat-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    gap: 6px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    color: #4a5568;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px !important;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}
.en-cat-pill:hover {
    color: var(--primary-color, #c28285);
    border-color: var(--primary-color, #c28285);
    background: #fff8f8;
}
.en-cat-pill:focus,
.en-cat-pill:active {
    outline: none !important;
    border-radius: 999px !important;
    -webkit-tap-highlight-color: transparent;
}
.en-cat-pill.is-active {
    background: var(--primary-color, #c28285);
    color: #ffffff;
    border-color: var(--primary-color, #c28285);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(194, 130, 133, 0.3);
}
.en-cat-pill__count {
    font-size: 0.75rem;
    opacity: 0.85;
}

.category-header__badge {
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color, #c28285);
    background: #fff0f1;
    border-radius: 6px;
}
.category-count {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-light, #718096);
}

/* カテゴリ一覧ページ下部: 他のトピック一覧 */
.en-other-categories {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}
.en-other-categories__title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark, #1a202c);
}
.en-other-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.en-other-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}
.en-other-cat-item:hover {
    border-color: var(--primary-color, #c28285);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}
.en-other-cat-item__name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-dark, #2d3748);
}
.en-other-cat-item__count {
    font-size: 0.8rem;
    color: var(--primary-color, #c28285);
}

/* 記事詳細ページ下部: カテゴリ・トピックピル */
.article-topic-nav {
    margin: 36px 0 20px;
    padding: 24px;
    background: #fbfbfc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
}
.article-topic-nav__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark, #2d3748);
}
.article-topic-nav__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.article-topic-nav__pill {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px !important;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
    transition: all 0.15s ease;
}
.article-topic-nav__pill:hover {
    color: var(--primary-color, #c28285);
    border-color: var(--primary-color, #c28285);
    background: #fff8f8;
}
.article-topic-nav__pill:focus,
.article-topic-nav__pill:active {
    outline: none !important;
    border-radius: 999px !important;
    -webkit-tap-highlight-color: transparent;
}
.article-topic-nav__pill.is-current {
    background: var(--primary-color, #c28285);
    color: #ffffff;
    border-color: var(--primary-color, #c28285);
    font-weight: 600;
}

