/* English Text Font Styling */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400;500;700&display=swap');

/* Target English text specifically */
[lang="en"],
[lang="en-US"],
[lang="en-GB"],
.en-text,
.english-text {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Target specific English text patterns */
/* Social media links and English brand names */
.ev-footer__snsText,
.ev-footer-mobile__snsText,
.ev-footer__colSub,
.ev-footer-mobile__navSub {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* English text in navigation and headers */
.ev-header__link,
.ev-header__tagline {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* English text in product names, descriptions, and other content */
.product-name,
.product-description,
.english-content,
[class*="en-"],
[class*="english-"] {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Target English text using attribute selectors for common English words */
/* This targets elements containing common English words */
a[href*="facebook"],
a[href*="youtube"],
a[href*="instagram"],
a[href*="twitter"] {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Target specific English text in the footer */
.ev-footer__snsText,
.ev-footer-mobile__snsText,
.ev-footer__colSub,
.ev-footer-mobile__navSub,
.ev-footer__copyright,
.ev-footer-mobile__copyright {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Target English text in buttons and links - only when they have English content */
.btn.en-text,
.btn-primary.en-text,
.btn-secondary.en-text,
.btn-success.en-text,
.btn-info.en-text,
.btn-warning.en-text,
.btn-danger.en-text,
.btn-light.en-text,
.btn-dark.en-text,
.btn-outline-primary.en-text,
.btn-outline-secondary.en-text,
.btn-outline-success.en-text,
.btn-outline-info.en-text,
.btn-outline-warning.en-text,
.btn-outline-danger.en-text,
.btn-outline-light.en-text,
.btn-outline-dark.en-text,
.btn-link.en-text {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Target English text in forms - only when they have English content */
input[type="text"].en-text,
input[type="email"].en-text,
input[type="password"].en-text,
input[type="search"].en-text,
input[type="tel"].en-text,
input[type="url"].en-text,
textarea.en-text,
select.en-text,
.form-control.en-text,
.form-select.en-text {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Target English text in headings - only when they have English content */
h1.en-text, h2.en-text, h3.en-text, h4.en-text, h5.en-text, h6.en-text,
.h1.en-text, .h2.en-text, .h3.en-text, .h4.en-text, .h5.en-text, .h6.en-text {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Target English text in paragraphs and general text - only when they have English content */
p.en-text, span.en-text, div.en-text, a.en-text, li.en-text, td.en-text, th.en-text {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Override for Japanese text to keep original font */
[lang="ja"],
[lang="ja-JP"],
.japanese-text,
.jp-text {
  font-family: 'Noto Sans JP', sans-serif !important;
}

/* Specific overrides for elements that might have explicit font-family declarations - only for English text */
.feature-section__btn[lang="en"],
.feature-section__btn.en-text,
.feature-section__btn.english-text,
.recommendation-section__label[lang="en"],
.recommendation-section__label.en-text,
.recommendation-section__label.english-text,
.recommendation-section__title[lang="en"],
.recommendation-section__title.en-text,
.recommendation-section__title.english-text,
.product-search-main__label[lang="en"],
.product-search-main__label.en-text,
.product-search-main__label.english-text,
.product-search-main__title[lang="en"],
.product-search-main__title.en-text,
.product-search-main__title.english-text,
.ev-hero-btn[lang="en"],
.ev-hero-btn.en-text,
.ev-hero-btn.english-text,
.ev-hero-scroll-text[lang="en"],
.ev-hero-scroll-text.en-text,
.ev-hero-scroll-text.english-text {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Override specific CSS files that set Noto Sans JP - only for English text */
.productSearchMain [lang="en"],
.productSearchMain .en-text,
.productSearchMain .english-text,
.feature-section [lang="en"],
.feature-section .en-text,
.feature-section .english-text,
.recommendation-section [lang="en"],
.recommendation-section .en-text,
.recommendation-section .english-text,
.header [lang="en"],
.header .en-text,
.header .english-text,
.drawer [lang="en"],
.drawer .en-text,
.drawer .english-text,
.loading [lang="en"],
.loading .en-text,
.loading .english-text {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Specific targeting for top page English labels */
.ev-mainProductSearchHeader__search div:last-child,
.feature-section__label,
.recommendation-section__label,
.ev-news-heading-en {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Additional specific rules for common English text patterns */
/* Brand names and company names */
.ev-hero-logo[alt*="EVERNEW"],
img[alt*="EVERNEW"] {
  /* Keep images as they are, but ensure alt text uses English font if displayed */
}

/* Social media handles and usernames */
.ev-followus-handle,
[class*="handle"],
[class*="username"] {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* English text in buttons and CTAs */
.ev-hero-btn span,
.ev-hero-scroll-text,
[class*="btn"] .en-text,
[class*="button"] .en-text {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Ensure English text in forms and inputs */
input[placeholder*="Enter"],
input[placeholder*="Search"],
input[placeholder*="Email"],
input[placeholder*="Password"],
textarea[placeholder*="Enter"],
textarea[placeholder*="Message"] {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Specific overrides for mixed content */
/* When English and Japanese text are mixed, prioritize English font */
.ev-footer__colTitle,
.ev-footer-mobile__navTitle {
  font-family: 'Noto Sans JP', sans-serif !important; /* Keep Japanese titles in Japanese font */
}

/* But English subtitles should use English font */
.ev-footer__colSub,
.ev-footer-mobile__navSub {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Component-scoped overrides for English-only text inside areas that force Noto Sans JP */
/* Product details page container */
.product-profile [lang="en"],
.product-profile .en-text,
.product-profile .english-text {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Category list (mobile item names) */
.ev-category-item__name-mobile [lang="en"],
.ev-category-item__name-mobile .en-text,
.ev-category-item__name-mobile .english-text {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Feature detail content blocks */
.feature-detail-content [lang="en"],
.feature-detail-content .en-text,
.feature-detail-content .english-text {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Breadcrumb TOP link should use English font */
.breadcrumb-list .breadcrumb-item:first-child > a {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Product codes should use English font */
.product-code,
.ev-product-codes-value {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* Footer bottom links color styling */
.ev-footer__bottomLinks,
.ev-footer-mobile__bottomLinks {
  color: #646464 !important;
}

.ev-footer__bottomLinks a,
.ev-footer-mobile__bottomLinks a {
  color: #646464 !important;
}

.ev-footer__bottomLinks span,
.ev-footer-mobile__bottomLinks span {
  color: #646464 !important;
} 