/* Taxi Driver's Base global shell. Filename retained for backward compatibility. */
.km-shell-header,.km-shell-header *,.km-global-independence-footer,.km-global-independence-footer *{box-sizing:border-box}
.km-shell-header{position:sticky;top:0;z-index:900;background:rgba(255,255,255,.96);border-bottom:1px solid rgba(41,46,54,.10);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#21252b}
.km-shell-wrap{width:min(1180px,calc(100% - 36px));margin:0 auto}
.km-shell-header-inner{min-height:76px;display:flex;align-items:center;gap:22px;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:248px;max-width:40vw;height:auto;display:block}
.km-shell-nav{display:flex;align-items:center;gap:4px;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 11px;border-radius:12px;text-decoration:none!important;font-weight:800;color:#2d333c!important;background:transparent;border:1px solid transparent;line-height:1.2;white-space:nowrap;font-size:.9rem}
.km-shell-nav a:hover{background:#eef3fa}
.km-shell-nav a.is-active{background:#e8eef7;color:#39404b!important}
.km-shell-nav .km-shell-nav-account{border-color:#bfccdc;background:#fff;color:#282e36!important}
.km-shell-nav a:focus-visible,.km-shell-brand:focus-visible,.km-shell-mobile summary:focus-visible{outline:3px solid #eeb527;outline-offset:3px}
.km-shell-mobile{display:none;position:relative}
.km-shell-mobile summary{list-style:none;width:44px;height:44px;border:1px solid #c9d3e1;border-radius:12px;background:#fff;cursor:pointer;display:grid;place-content:center;gap:4px}
.km-shell-mobile summary::-webkit-details-marker{display:none}
.km-shell-mobile summary span{display:block;width:20px;height:2px;border-radius:2px;background:#1c56ac}
.km-shell-mobile nav{position:absolute;right:0;top:52px;width:min(310px,calc(100vw - 28px));padding:10px;background:#fff;border:1px solid #dbe2ec;border-radius:16px;box-shadow:0 18px 48px rgba(41,47,55,.18);display:grid;gap:4px}
.km-shell-mobile nav a{padding:12px 13px;border-radius:10px;color:#2d333c;text-decoration:none;font-weight:800}
.km-shell-mobile nav a:hover{background:#eef3fa}

/* 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%}

.km-global-independence-footer{margin:0;padding:24px 18px;background:#262b33;color:#d9dee5;font:500 13px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;text-align:center;border-top:1px solid rgba(255,255,255,.10)}
.km-global-footer-inner{max-width:1040px;margin:0 auto;display:flex;align-items:center;justify-content:center;gap:10px 18px;flex-wrap:wrap}
.km-global-independence-footer strong{color:#fff}
.km-global-independence-footer nav{display:flex;gap:14px}
.km-global-independence-footer a{color:#f3ce6f;text-decoration:none;font-weight:800}
.km-global-independence-footer a:hover{text-decoration:underline;text-underline-offset:3px}

@media(max-width:980px){
  .km-shell-nav-desktop{display:none}
  .km-shell-mobile{display:block}
  .km-shell-brand img{width:226px;max-width:62vw}
}
@media(max-width:520px){
  .km-shell-wrap{width:min(100% - 22px,1180px)}
  .km-shell-header-inner{min-height:66px;gap:10px}
  .km-shell-brand img{width:210px;max-width:70vw}
  .km-global-footer-inner{display:grid;gap:7px}
  .km-global-independence-footer nav{justify-content:center}
}


:root{--tdb-title-font:"Hiragino Maru Gothic ProN","Hiragino Maru Gothic Pro","BIZ UDPGothic","BIZ UDGothic","Yu Gothic","Meiryo",sans-serif}

h1,h2,h3,
.km-feature-title,.km-feature-subtitle,
.tdb-eyebrow,.beginner-eyebrow,.about-eyebrow,.about-section-label,.section-number,
.category-heading h2,.section-title,.completion h2,.lesson h3,.talk-intro-card b,.hero h1,.head h1{
  font-family:var(--tdb-title-font);
  line-height:1.35;
  letter-spacing:.01em;
  text-wrap:balance;
}

/* 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,#1d5ab5 0%,#205cb6 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(55,62,72,.16)!important}
.km-feature-hero .km-feature-eyebrow{display:block;margin:0 0 6px;color:#dce8f7!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:#dfedff!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:#e8eff8!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:#f4f7fc!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}
.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,.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}}


/* TD BASE unified identity. Explicit class overrides legacy wide SVG sizing. */
.km-shell-brand{gap:10px}
.km-shell-brand img.tdb-header-logo{width:60px;height:60px;max-width:none;flex:0 0 60px;object-fit:contain;border-radius:0;box-shadow:none}
.tdb-header-wordmark{display:flex;flex-direction:column;gap:2px;white-space:nowrap;line-height:1.3}
.tdb-header-wordmark strong{font-size:1rem;color:#2a2f37;font-weight:900;letter-spacing:.01em}
.tdb-header-wordmark small{font-size:.64rem;color:#19478b;font-weight:800;letter-spacing:.01em}
@media(max-width:1130px){.tdb-header-wordmark small{display:none}}
@media(max-width:980px){.tdb-header-wordmark small{display:block}}
@media(max-width:520px){.km-shell-brand img.tdb-header-logo{width:52px;height:52px;flex-basis:52px;border-radius:0}.tdb-header-wordmark strong{font-size:.85rem}.tdb-header-wordmark small{display:none}}

/* Glow brand v2: avoid large inline image dimensions on narrow screens. */
@media(max-width:520px){
 .km-shell-brand img.tdb-header-logo{width:52px!important;height:52px!important;flex-basis:52px!important;min-width:52px!important}
}

/* ProdPrep 95: header & footer share the hero's top sky color; text is dark charcoal for contrast (>= 5:1). */
:root{--tdb-sky-bar:linear-gradient(90deg,#9cc1f4 0%,#96bff8 50%,#80b4fb 100%);--tdb-sky-ink:#1f242b;--tdb-sky-ink2:#2b3440}
@media(max-width:680px){:root{--tdb-sky-bar:linear-gradient(90deg,#52a5ff 0%,#46a0fc 50%,#389afd 100%);--tdb-sky-ink2:#1f242b}}
.km-shell-header{background:#96bff8;background:var(--tdb-sky-bar);border-bottom:0;box-shadow:0 1px 0 rgba(31,36,43,.08);color:var(--tdb-sky-ink)}
body.tdb-home .km-shell-header{box-shadow:none}
.km-shell-brand,.tdb-header-wordmark,.tdb-header-wordmark strong{color:var(--tdb-sky-ink)!important}
.tdb-header-wordmark small{color:var(--tdb-sky-ink2)!important;font-weight:800}
.km-shell-brand img.tdb-header-logo{border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 2px 4px rgba(31,36,43,.18))}
.km-shell-nav a{color:var(--tdb-sky-ink)!important}
.km-shell-nav a:hover{background:rgba(255,255,255,.42)}
.km-shell-nav a.is-active{background:rgba(255,255,255,.62);color:var(--tdb-sky-ink)!important}
.km-shell-nav .km-shell-nav-account{background:#fff;border-color:#fff;color:#1a63d1!important;box-shadow:0 2px 8px rgba(31,36,43,.10)}
.km-shell-nav .km-shell-nav-account:hover{background:#f4f8fe}
.km-shell-mobile summary{background:rgba(255,255,255,.72);border-color:rgba(255,255,255,.9)}
.km-shell-mobile summary span{background:var(--tdb-sky-ink)}
.km-shell-mobile nav .km-shell-nav-account{color:#1a63d1!important}
.km-global-independence-footer{background:#96bff8;background:var(--tdb-sky-bar);color:var(--tdb-sky-ink2);border-top:0}
.km-global-independence-footer strong{color:var(--tdb-sky-ink)}
.km-global-independence-footer a{color:var(--tdb-sky-ink);text-decoration:underline;text-decoration-color:rgba(31,36,43,.35);text-underline-offset:3px}
.km-global-independence-footer a:hover{text-decoration-color:var(--tdb-sky-ink)}

/* ProdPrep 96: very light sky bar (same on PC and phone) + deep green text; logo sits on the same tile color as the active "ホーム" button. */
:root{--tdb-sky-bar:linear-gradient(90deg,#eaf2fe 0%,#e6f0fd 50%,#e2edfd 100%);--tdb-sky-ink:#0e4a2c;--tdb-sky-ink2:#0e4a2c;--tdb-sky-line:#c9dbf5;--tdb-sky-tile:rgba(255,255,255,.62)}
@media(max-width:680px){:root{--tdb-sky-bar:linear-gradient(90deg,#eaf2fe 0%,#e6f0fd 50%,#e2edfd 100%);--tdb-sky-ink2:#0e4a2c}}
.km-shell-header{background:#e6f0fd;background:var(--tdb-sky-bar);box-shadow:0 1px 0 var(--tdb-sky-line)}
body.tdb-home .km-shell-header{box-shadow:0 1px 0 var(--tdb-sky-line)}
.km-shell-brand img.tdb-header-logo{background:var(--tdb-sky-tile);border-radius:12px!important;padding:3px;filter:none}
.km-shell-nav a.is-active{background:var(--tdb-sky-tile)}
.km-shell-nav a:hover{background:rgba(255,255,255,.75)}
.km-shell-nav .km-shell-nav-account{border-color:var(--tdb-sky-line);box-shadow:none}
.km-shell-mobile summary{background:rgba(255,255,255,.72);border-color:var(--tdb-sky-line)}
.km-global-independence-footer{background:#e6f0fd;background:var(--tdb-sky-bar);border-top:1px solid var(--tdb-sky-line)}
.km-global-independence-footer a{text-decoration-color:rgba(14,74,44,.35)}
