/* v8: TourJepang.net homepage geometry and motion, adapted to Ekonichiwa. */
.eko-refined.eko-home { padding-top: 0 !important; padding-bottom: 0 !important; }
.eko-home .eko-hero-wrap { font-family: 'Poppins', Arial, sans-serif; background: #fff; overflow: hidden; }
.eko-home #home.eko-hero { position: relative; display: block; min-height: 610px !important; overflow: visible; isolation: isolate; background: #111; }
.eko-home #home.eko-hero .eko-hero-picture { position: absolute; inset: 0; display: block; overflow: hidden; z-index: -2; background: #101010; pointer-events: none; }
.eko-home #home.eko-hero .eko-hero-picture img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center 45%; opacity: 1; filter: none; transform: scale(1.012); }
.eko-home #home.eko-hero .eko-hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.02) 35%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.50) 60%, rgba(0,0,0,.72) 75%, rgba(0,0,0,.86) 90%, rgba(0,0,0,.92) 100%); }
.eko-home #home.eko-hero .eko-hero-content { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 110px; max-width: 630px; padding: 0 !important; color: #fff; }
.eko-home #home.eko-hero p.eko-hero-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: #ffffffed !important; font-size: 11px !important; font-weight: 600 !important; line-height: 1.65 !important; letter-spacing: 1.7px; }
.eko-home #home.eko-hero .eko-hero-eyebrow::before { content: ''; width: 25px; height: 2px; border-radius: 20px; background: #dd141f; }
.eko-home #home.eko-hero h1.eko-hero-title { max-width: 570px; margin: 0; padding: 0; color: #fff; font-size: 36px !important; font-weight: 700 !important; line-height: 1.06 !important; letter-spacing: -1.6px !important; text-shadow: none; }
.eko-home #home.eko-hero p.eko-hero-intro { max-width: 570px !important; margin: 14px 0 0; padding: 0; color: #ffffffeb !important; font-size: 15px !important; font-weight: 400 !important; line-height: 1.65 !important; }
.eko-home #home.eko-hero .eko-hero-actions-wrap { position: absolute; z-index: 4; left: 16px; right: 16px; bottom: -38px; }
.eko-home #home.eko-hero .eko-hero-actions { display: grid; grid-template-columns: 1fr 1fr; max-width: 720px; margin: auto; padding: 10px; gap: 8px; border: 1px solid #ffffffcc; border-radius: 20px; background: #ffffffe8; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 18px 44px #141e2d2e; }
.eko-home #home.eko-hero .eko-hero-action { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 7px; border-radius: 12px; font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.eko-home #home.eko-hero .eko-hero-primary { color: #fff; background: #dd141f; }
.eko-home #home.eko-hero .eko-hero-secondary { color: #30343a; border: 1px solid #c8cdd4d9; background: #ffffffde; }
.eko-home #home.eko-hero .eko-hero-secondary i { font-size: 19px; color: #25b861; }
.eko-home #home.eko-hero .eko-hero-action:active { transform: scale(.98); }
.eko-home #home.eko-hero .eko-hero-primary:hover { background: #bd101b; }
.eko-home #home.eko-hero .eko-hero-secondary:hover { background: #fff; }
.eko-home .eko-hero-benefits-wrap { padding-top: 72px; background: linear-gradient(#fff, #fafbfc); }
.eko-home .eko-hero-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: calc(100% - 30px); max-width: 1100px; margin: 0 auto; padding: 18px 0 21px; list-style: none; border-bottom: 1px solid #e9eaed; }
.eko-home .eko-hero-benefits li { min-width: 0; padding: 0 9px; text-align: center; }
.eko-home .eko-hero-benefits li + li { border-left: 1px solid #e9eaed; }
.eko-home .eko-hero-benefits i { display: block; color: #dd141f; font-size: 25px; line-height: 1; }
.eko-home .eko-hero-benefits span { display: block; max-width: 120px; margin: 7px auto 0; color: #666; font-size: 12px !important; line-height: 1.45; }
/* Transparent over the hero; a white surface appears once the hero passes the menu. */
.eko-home #mainNav.navbar-tf { height: auto; min-height: 79px; padding: 0 !important; color: #fff; background: transparent !important; border-bottom: 1px solid transparent; box-shadow: none; transition: background .55s ease, border-color .55s ease, box-shadow .55s ease, color .35s ease; }
.eko-home #mainNav.navbar-tf > .container { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 64px); max-width: none; min-height: 78px; padding: 0 !important; margin: auto; gap: 22px; }
.eko-home #mainNav .navbar-brand { display: block; position: relative; left: auto; transform: none; flex: 0 0 156px; width: 156px; margin: 0; padding: 0; line-height: 0; }
.eko-home #mainNav .navbar-brand img { width: 156px; height: 46px; object-fit: contain; object-position: left center; filter: none !important; transition: filter .45s ease; }
.eko-home #mainNav .navbar-nav { gap: 17px; }
.eko-home #mainNav .nav-link, .eko-home #mainNav .btn.btn-white-tf { display: flex; align-items: center; min-height: 44px; padding: 0 !important; border: 0; border-radius: 0; font-size: 12px !important; font-weight: 500 !important; line-height: 1.5; color: inherit !important; background: transparent !important; box-shadow: none !important; }
.eko-home #mainNav .nav-item { margin: 0 !important; }
.eko-home #mainNav .nav-link { position: relative; }
.eko-home #mainNav .nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.eko-home #mainNav .nav-link:hover::after { transform: scaleX(1); }
.eko-home #mainNav.navbar-solid, .eko-home.menu-open #mainNav { background: #fffffffa !important; color: #30343a; border-bottom-color: #e8eaedd9; box-shadow: 0 6px 24px #141e2d11; }
.eko-home #mainNav.navbar-solid .navbar-brand img, .eko-home.menu-open #mainNav .navbar-brand img { filter: brightness(0) saturate(100%) !important; }
.eko-home #mainNav.navbar-solid .nav-link:hover, .eko-home #mainNav.navbar-solid .btn:hover { color: #dd141f !important; }
.eko-home #mainNav .navbar-toggler-tf { color: #fff; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffffcc; border-radius: 50%; background: #00000014; transition: color .35s ease, border-color .35s ease, background .35s ease; }
.eko-home #mainNav .eko-menu-glyph { display: block; position: relative; width: 19px; height: 14px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.eko-home #mainNav .eko-menu-glyph::after { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1.5px; background: currentColor; }
.eko-home #mainNav.navbar-solid .navbar-toggler-tf, .eko-home.menu-open #mainNav .navbar-toggler-tf { color: #dd141f; border-color: #d8dde3; background: transparent; }
.eko-home #mainNav :is(a, button):focus-visible { outline: 2px solid currentColor !important; outline-offset: 4px; }
/* Keep the existing mobile-menu actions, with the reference's white dropdown styling. */
.eko-home #mobileOverlay { top: 72px; height: auto; max-height: calc(100dvh - 72px); padding: 42px 24px 20px; justify-content: flex-start; overflow-y: auto; background: #fff; color: #30343a; border-top: 1px solid #e8eaed; box-shadow: 0 15px 25px #141e2d0d; transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }
.eko-home #mobileOverlay.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.eko-home #mobileOverlay .mobile-nav-link { display: flex; align-items: center; min-height: 46px; margin: 0; border-bottom: 1px solid #f1f2f4; color: #30343a; font-size: 13px; font-weight: 500; line-height: 1.5; transform: none; }
.eko-home #mobileOverlay .mobile-nav-link:hover { color: #dd141f; }
.eko-home #mobileOverlay .menu-close-btn { top: 0; right: 14px; width: 44px; height: 44px; color: #30343a; font-size: 26px; }
.eko-home #mobileOverlay .mobile-overlay-footer { position: static; padding-top: 18px; margin-top: 16px; border-top: 1px solid #e9eaed; }
.eko-home #mobileOverlay .mobile-overlay-footer p { display: none; }
.eko-home #mobileOverlay .social-circle { width: 40px; height: 40px; border-color: #e8eaed; color: #30343a; }
@media (min-width: 1024px) {
  .eko-home #home.eko-hero { min-height: 650px !important; }
  .eko-home #home.eko-hero .eko-hero-content { left: 50%; right: auto; bottom: 130px; width: calc(100% - 80px); max-width: 1180px; transform: translateX(-50%); }
  .eko-home #home.eko-hero h1.eko-hero-title { font-size: 46px !important; }
  .eko-home #home.eko-hero p.eko-hero-intro { font-size: 17px !important; }
  .eko-home #home.eko-hero .eko-hero-actions-wrap { left: 50%; right: auto; width: calc(100% - 80px); max-width: 1180px; transform: translateX(-50%); }
  .eko-home #home.eko-hero .eko-hero-actions { width: 520px; margin-left: 0; }
  .eko-home .eko-hero-benefits i { font-size: 34px; }
  .eko-home .eko-hero-benefits span { max-width: none; }
}
@media (min-width: 1200px) {
  .eko-home #home.eko-hero { min-height: 680px !important; }
  .eko-home #home.eko-hero h1.eko-hero-title { font-size: 54px !important; }
  .eko-home #mainNav .navbar-collapse { display: flex !important; }
  .eko-home #mainNav .navbar-toggler-tf, .eko-home #mobileOverlay { display: none !important; }
}
@media (max-width: 1199px) {
  .eko-home #mainNav.navbar-tf { min-height: 73px; }
  .eko-home #mainNav.navbar-tf > .container { min-height: 72px; width: calc(100% - 32px); }
  .eko-home #mainNav .navbar-collapse { display: none !important; }
  .eko-home #mainNav .navbar-toggler-tf { display: flex !important; align-items: center; justify-content: center; margin-left: auto; }
}
/* Motion follows the reference's 6.8s blur-to-clear cinematic image reveal. */
.eko-home #home.eko-hero-motion .eko-hero-picture img { animation: ekoHeroCinematic 6.8s cubic-bezier(.16,.72,.25,1) both; }
.eko-home #home.eko-hero-motion .eko-hero-eyebrow { animation: ekoHeroCopy .8s .15s both; }
.eko-home #home.eko-hero-motion h1.eko-hero-title { animation: ekoHeroCopy .85s .28s both; }
.eko-home #home.eko-hero-motion .eko-hero-intro { animation: ekoHeroCopy .85s .42s both; }
.eko-home #home.eko-hero-motion .eko-hero-actions { animation: ekoHeroCopy .85s .55s both; }
@keyframes ekoHeroCinematic {
  0% { opacity: .68; filter: blur(7px) brightness(.72) saturate(.88); transform: scale(1.065); }
  18% { opacity: 1; filter: blur(0) brightness(.94) saturate(.98); transform: scale(1.053); }
  100% { opacity: 1; filter: blur(0) brightness(1) saturate(1); transform: scale(1.012); }
}
@keyframes ekoHeroCopy { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .eko-home #home.eko-hero img, .eko-home #home.eko-hero p,
  .eko-home #home.eko-hero h1, .eko-home #home.eko-hero .eko-hero-actions { animation: none !important; opacity: 1 !important; filter: none !important; }
  .eko-home #mainNav, .eko-home #mainNav *, .eko-home #mobileOverlay { transition: none !important; }
}
