/* Offline font fallback when local subsets are unavailable */
body,
[class*="__variable_"] {
  font-family: var(--font-sans, "Zen Old Mincho"), "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* English serif (layout JS injects century-old-style-std — use OFL-safe fallback) */
.ff_en,
.tk-century-old-style-std {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0;
}

/* Preserve noise texture overlay (do not override section background-color) */
[style*="noise-bg"] {
  background-image: url(..../elements/noise-bg.jpg) !important;
  background-size: 100% auto !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: repeat !important;
}

/* Footer topBlock: FAQ removed — keep Contact in right column (live: 416fr | 832fr grid) */
[class*="footer_topBlock"] > .footer_topBlockSpacer {
  min-height: 0;
}

@media screen and (max-width: 960px) {
  [class*="footer_topBlock"] > .footer_topBlockSpacer {
    display: none;
  }
}

@media screen and (min-width: 961px) {
  [class*="footer_topBlock"] > [class*="footer_lLink"]:only-child {
    grid-column: 2;
  }

  [class*="footer_lLinkNote"] {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ja/brew/nijiglobal — Lineup_cardContainer product cards: no scroll fade entrance */
[class*="Lineup_cardContainer"] [class*="ProductCard_container"] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

/* ja/contact — no entrance animations (scroll fade, blurred ghost) */
html[data-static-page="contact"] main .static-fade-target {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

html[data-static-page="contact"] [class*="Blurred_replica"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Keep header and footer navigation horizontal. */
[class*="navigation_nav"][class*="navigation_ja"] {
  align-items: center !important;
}

[class*="navigation_link"][class*="navigation_ja"] {
  letter-spacing: 0 !important;
  writing-mode: horizontal-tb !important;
}

[class*="navigation_link"]::after {
  top: auto !important;
  right: auto !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 100% !important;
  height: 1px !important;
  transform-origin: right !important;
}

[class*="navigation_link"][aria-current="page"]::after,
[class*="navigation_link"]:focus-visible::after,
[class*="navigation_link"]:hover::after {
  transform-origin: left !important;
}

.static-nav-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5rem;
  line-height: 1.1;
}

.navigation_link__syMgT .static-nav-label {
  align-items: center;
}

.static-nav-ja {
  display: block;
  font-size: 1em;
  letter-spacing: .04em;
}

.static-nav-en {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: .72em;
  letter-spacing: .02em;
}

.Hamburger_navLink__DWA1p .static-nav-en {
  color: rgba(245, 245, 242, .62);
}

.Hamburger_menuWrapper___BHNV .LocaleSwitcher_container__PyugX.LocaleSwitcher_flex__Culh6,
.Hamburger_menuWrapper___BHNV .Hamburger_snsList__avAqE {
  display: none !important;
}

.HeaderWrapper_header__5f_N1 a[href*="philosophy"],
.Hamburger_menuWrapper___BHNV a[href*="philosophy"],
.footer_wrapper__Uj3R9 a[href*="philosophy"] {
  display: none !important;
}

/* Footer contact link spans the full footer width. */
[class*="footer_topBlock"] {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

[class*="footer_topBlock"] > .footer_topBlockSpacer {
  display: none !important;
}

[class*="footer_topBlock"] > [class*="footer_lLink"] {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

[class*="footer_lLinkNote"] {
  opacity: 1 !important;
  visibility: visible !important;
}

.footer_wrapper__Uj3R9.static-footer-redesign {
  padding: 96rem 0 56rem !important;
  background: #111 !important;
  color: #f5f5f2 !important;
}

.static-footer-shell {
  width: min(100% - 80rem, 1760rem);
  margin: 0 auto;
}

.static-footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 170rem;
  padding: 0 0 56rem;
  border-bottom: 1px solid rgba(245, 245, 242, .24);
  color: inherit;
}

.static-footer-contactText {
  display: flex;
  flex-direction: column;
  gap: 28rem;
}

.static-footer-contactJa {
  margin-right: 26rem;
  font-size: 34rem;
  line-height: 1;
  letter-spacing: .06em;
}

.static-footer-contactEn {
  color: rgba(245, 245, 242, .52);
  font-size: 22rem;
}

.static-footer-contactNote {
  font-size: 16rem;
  letter-spacing: .06em;
}

.static-footer-contactCircle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78rem;
  height: 78rem;
  border: 1px solid rgba(245, 245, 242, .55);
  border-radius: 50%;
  font-size: 32rem;
  line-height: 1;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.static-footer-contact:hover .static-footer-contactCircle,
.static-footer-contact:focus-visible .static-footer-contactCircle {
  border-color: #f5f5f2;
  background-color: #f5f5f2;
  color: #111;
}

.static-footer-main {
  display: grid;
  grid-template-columns: minmax(420rem, 1fr) minmax(600rem, 1.25fr);
  gap: 72rem;
  padding: 92rem 0 72rem;
  border-bottom: 1px solid rgba(245, 245, 242, .24);
}

.static-footer-brand {
  display: grid;
  grid-template-columns: 220rem 1px 1fr;
  align-items: center;
  gap: 62rem;
}

.static-footer-logo {
  display: block;
  width: 176rem;
  height: auto;
}

.static-footer-divider {
  display: block;
  width: 1px;
  height: 118rem;
  background-color: rgba(245, 245, 242, .28);
}

.static-footer-company {
  font-size: 18rem;
  line-height: 1.7;
}

.static-footer-companyName {
  margin: 0 0 16rem !important;
  font-size: 22rem;
}

.static-footer-address {
  margin: 0 !important;
  color: rgba(245, 245, 242, .9);
}

.static-footer-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(96rem, 1fr));
  gap: 40rem;
  padding-left: 66rem;
  border-left: 1px solid rgba(245, 245, 242, .18);
}

.static-footer-navLink {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16rem;
  color: inherit;
}

.static-footer-navLink .static-nav-ja {
  font-size: 17rem;
}

.static-footer-navLink .static-nav-en {
  color: rgba(245, 245, 242, .48);
  font-size: 14rem;
}

.static-footer-navDash {
  display: block;
  width: 20rem;
  height: 1px;
  margin-top: 14rem;
  background-color: rgba(245, 245, 242, .72);
  transition: width .3s ease, background-color .3s ease;
}

.static-footer-navLink:hover .static-footer-navDash,
.static-footer-navLink:focus-visible .static-footer-navDash {
  width: 44rem;
  background-color: #f5f5f2;
}

.static-footer-copy {
  margin: 42rem 0 0 !important;
  color: rgba(245, 245, 242, .46);
  font-size: 13rem;
  letter-spacing: .06em;
}

@media screen and (max-width: 960px) {
  .footer_wrapper__Uj3R9.static-footer-redesign {
    padding: 72rem 0 40rem !important;
  }

  .static-footer-shell {
    width: min(100% - 48rem, 1760rem);
  }

  .static-footer-main {
    grid-template-columns: 1fr;
    gap: 56rem;
    padding: 64rem 0 56rem;
  }

  .static-footer-brand {
    grid-template-columns: 180rem 1px 1fr;
    gap: 36rem;
  }

  .static-footer-logo {
    width: 150rem;
  }

  .static-footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36rem 28rem;
    padding-left: 0;
    border-left: 0;
  }
}

/* Homepage lineup product mark and copy stack. */
.Lineup_wrapper__1v84z .Lineup_logo__UwXoo {
  position: absolute !important;
  top: calc(50% - 88rem) !important;
  right: auto !important;
  left: 50% !important;
  width: 220rem !important;
  height: auto !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
}

.Lineup_wrapper__1v84z .Lineup_slogan__YAIaK {
  position: absolute !important;
  top: calc(50% + 38rem) !important;
  right: auto !important;
  left: 50% !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  font-size: 32rem !important;
  line-height: 1.4 !important;
  letter-spacing: .08em !important;
  text-align: center !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
}

@media screen and (max-width: 560px) {
  .Lineup_wrapper__1v84z .Lineup_logo__UwXoo {
    top: calc(50% - 68rem) !important;
    width: 180rem !important;
  }

  .Lineup_wrapper__1v84z .Lineup_slogan__YAIaK {
    top: calc(50% + 40rem) !important;
    font-size: 24rem !important;
  }
}

/* News index: show one clean item with title above date. */
.NewsLink_container__cOfX3 {
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: flex-start !important;
  gap: 14rem !important;
}

.NewsLink_infoContainer__Zlcbc {
  display: block !important;
}

.NewsLink_title__2_muL {
  margin: 0 !important;
}

.NewsLink_cate__QuFVs,
.Categories_categoryContainer__IicC1 {
  display: none !important;
}

/* Company history: stage-based layout. */
.company-historyTimeline {
  display: flex !important;
  flex-direction: column !important;
  gap: 20rem !important;
}

.company-historyCard {
  display: grid !important;
  grid-template-columns: minmax(150rem, 220rem) 1fr !important;
  align-items: stretch !important;
  gap: 24rem !important;
  padding: 28rem 0 !important;
  border-top: 1px solid rgba(1, 2, 2, .22) !important;
}

.company-historyCard:last-child {
  border-bottom: 1px solid rgba(1, 2, 2, .22) !important;
}

.company-historyYear {
  width: auto !important;
  font-size: 28rem !important;
  line-height: 1.3 !important;
}

.company-historyContent {
  gap: 10rem !important;
  padding-bottom: 0 !important;
}

.company-historyContent::before,
.company-historyPhase::before,
.company-historyPhase::after,
.company-historyFactory::before,
.company-historyFactory::after {
  display: none !important;
}

.company-historyPhase,
.company-historyFactory {
  padding-left: 0 !important;
}

.company-historyPhase {
  font-weight: 700 !important;
  font-size: 20rem !important;
}

.company-historyFactory {
  color: rgba(1, 2, 2, .72) !important;
}

.company-sectionThumbnail {
  position: relative;
  aspect-ratio: 1200 / 480;
  width: min(100%, 1200rem);
  margin: 48rem auto 80rem;
}

.company-philosophyCopy {
  gap: 24rem !important;
}

.company-philosophyCopy p {
  margin: 0 !important;
  font-size: 16rem !important;
  line-height: 2 !important;
  letter-spacing: .04em !important;
}

.company-philosophyKeywords {
  margin-top: 16rem !important;
  font-weight: 700 !important;
  font-size: 20rem !important;
  line-height: 1.8 !important;
}

#company,
#company * {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[data-static-hero-title-fixed="true"] [class*="SubPageTitle_content"] {
  opacity: 1 !important;
  transform: none !important;
}

.Lineup_cardContainer__Div_d > .ProductCard_container__U_Iu4 > div:last-child {
  padding:16rem 0;
  border: 1rem solid #111;
  color: #111;
  font-size: 16rem;
  text-align: center;
  line-height: 1;
  transition: background-color .3s ease, color .3s ease;
}

.Lineup_cardContainer__Div_d > .ProductCard_container__U_Iu4:hover > div:last-child,
.Lineup_cardContainer__Div_d > .ProductCard_container__U_Iu4:focus-visible > div:last-child {
  background-color: #111;
  color: #fff;
}

@media screen and (max-width: 560px) {
  .static-nav-label {
    gap: 3rem;
  }

  .static-nav-en {
    font-size: .68em;
  }

  .footer_wrapper__Uj3R9.static-footer-redesign {
    padding: 64rem 0 32rem !important;
  }

  .static-footer-shell {
    width: min(100% - 32rem, 1760rem);
  }

  .static-footer-contact {
    min-height: 0;
    padding-bottom: 40rem;
  }

  .static-footer-contactJa {
    display: block;
    margin: 0 0 10rem;
    font-size: 28rem;
  }

  .static-footer-contactEn {
    font-size: 18rem;
  }

  .static-footer-contactNote {
    font-size: 14rem;
    line-height: 1.7;
  }

  .static-footer-contactCircle {
    flex-shrink: 0;
    width: 58rem;
    height: 58rem;
    font-size: 24rem;
  }

  .static-footer-main {
    grid-template-columns: 1fr;
    gap: 44rem;
    padding: 48rem 0;
  }

  .static-footer-brand {
    grid-template-columns: 140rem 1px 1fr;
    gap: 24rem;
  }

  .static-footer-logo {
    width: 128rem;
  }

  .static-footer-divider {
    height: 92rem;
  }

  .static-footer-companyName {
    font-size: 18rem;
  }

  .static-footer-company {
    font-size: 14rem;
  }

  .static-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30rem 24rem;
    padding-left: 0;
    border-left: 0;
  }

  .static-footer-navLink .static-nav-ja {
    font-size: 16rem;
  }

  .static-footer-copy {
    margin-top: 28rem !important;
  }

  .company-historyCard {
    grid-template-columns: 1fr !important;
    gap: 12rem !important;
    padding: 22rem 0 !important;
  }

  .company-historyYear {
    font-size: 22rem !important;
  }

  .company-historyPhase {
    font-size: 17rem !important;
  }

  .company-sectionThumbnail {
    aspect-ratio: 1;
    margin: 32rem auto 56rem;
  }

  .company-philosophyCopy p {
    font-size: 14rem !important;
    line-height: 1.9 !important;
  }

  .company-philosophyKeywords {
    font-size: 17rem !important;
  }

  #company .Table_tr__n4MoI {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8rem !important;
    padding: 18rem 0 !important;
  }

  #company .Table_th__FScFb {
    width: auto !important;
  }

  #company .Table_tr__n4MoI > div {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 13rem !important;
    line-height: 1.75 !important;
  }
}
