/* KM TAXI BASE global site header. Keep app-specific UI below this shell isolated. */
.km-shell-header,.km-shell-header *{box-sizing:border-box}
.km-shell-header{position:sticky;top:0;z-index:900;background:rgba(255,255,255,.97);border-bottom:1px solid rgba(8,45,91,.10);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#10243c}
.km-shell-wrap{width:min(1180px,calc(100% - 32px));margin:0 auto}
.km-shell-header-inner{min-height:78px;display:flex;align-items:center;gap:24px;justify-content:space-between}
.km-shell-brand{display:flex;align-items:center;text-decoration:none;min-width:0;flex:0 1 auto}
.km-shell-brand img{width:186px;max-width:42vw;height:auto;display:block}
.km-shell-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;flex:0 0 auto}
.km-shell-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border-radius:12px;text-decoration:none!important;font-weight:800;color:#082d5b!important;background:transparent;border:1px solid transparent;line-height:1.2;white-space:nowrap}
.km-shell-nav a:hover{background:#edf4fb}
.km-shell-nav .km-shell-nav-account{border-color:#b8cbe0;background:#fff}
.km-shell-nav a:focus-visible,.km-shell-brand:focus-visible{outline:3px solid #d4a853;outline-offset:3px}

/* Authentication pages used to center one card as the body's only flex item. */
body.auth-page.km-shell-auth{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;min-height:100vh!important;padding:0!important}
body.auth-page.km-shell-auth>.auth-shell{width:min(480px,calc(100% - 36px));margin:auto;padding:28px 0;flex:0 0 auto}
body.auth-page.km-shell-auth>.auth-login-stage{flex:1 0 auto;width:100%}
body.auth-page.km-shell-auth>.km-global-independence-footer{flex:0 0 auto;width:100%}

@media(max-width:900px){
  .km-shell-header-inner{min-height:70px;gap:12px}
  .km-shell-brand img{width:155px}
}
@media(max-width:640px){
  .km-shell-wrap{width:min(100% - 22px,1180px)}
  .km-shell-header-inner{gap:7px}
  .km-shell-brand img{width:132px;max-width:42vw}
  .km-shell-nav{gap:5px}
  .km-shell-nav a{padding:8px 9px;font-size:.82rem;min-height:38px}
  .km-shell-nav-home{display:none!important}
}
@media(max-width:390px){
  .km-shell-brand img{width:118px;max-width:40vw}
  .km-shell-nav a{padding:7px 8px;font-size:.78rem}
}


/* Unified top-level feature title card. */
.km-feature-hero,
.km-feature-hero *{box-sizing:border-box}
.km-feature-hero{
  display:block!important;
  width:100%;
  background:linear-gradient(135deg,#143c64 0%,#235d8e 100%)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:24px!important;
  padding:clamp(22px,4vw,30px)!important;
  box-shadow:0 16px 38px rgba(23,63,104,.16)!important;
}
.km-feature-hero .km-feature-eyebrow{
  display:block;
  margin:0 0 6px;
  color:#dceaf7!important;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.13em;
}
.km-feature-hero .km-feature-title{
  margin:0!important;
  color:#fff!important;
  font-size:clamp(1.85rem,4.7vw,2.85rem)!important;
  line-height:1.15!important;
  letter-spacing:-.035em!important;
  text-shadow:none!important;
}
.km-feature-hero .km-feature-subtitle{
  margin:9px 0 0!important;
  color:#dff2ff!important;
  font-size:clamp(1rem,2.4vw,1.22rem)!important;
  font-weight:900!important;
  line-height:1.5!important;
  opacity:1!important;
}
.km-feature-hero .km-feature-description{
  max-width:820px;
  margin:12px 0 0!important;
  color:#e8f1f8!important;
  line-height:1.75!important;
  font-weight:600;
}
.km-feature-account{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
}
.km-feature-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:36px;
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.11);
  color:#f4f8fc!important;
  font-size:.82rem;
  line-height:1.25;
}
.km-feature-pill strong{color:#fff!important}
.km-feature-hero .flow{margin-top:16px}
.km-feature-hero .bc-summary{margin-top:18px}

/* The old foreign hero used a white first child and a separate dark count box. */
.foreign-hero.km-feature-hero{
  grid-template-columns:1fr!important;
  gap:0!important;
  align-items:initial!important;
  margin-bottom:18px;
}
.foreign-hero.km-feature-hero>div:first-child{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
}
.foreign-hero.km-feature-hero .foreign-title-sub{display:none!important}
.foreign-hero.km-feature-hero .foreign-count{display:none!important}

@media(max-width:640px){
  .km-feature-hero{border-radius:20px!important;padding:20px 17px!important}
  .km-feature-account{display:grid;grid-template-columns:1fr;gap:7px}
  .km-feature-pill{width:100%;border-radius:12px}
}

