/* KCOM Session A R2 public shell — scoped; never restyle PMPro, P account, or admin views. */
.kcom-r2-site,.kcom-r2-nav-wrap,.kcom-r2-footer{
  --kcom-color-bg:#FFFFFF;--kcom-color-surface:#FFFFFF;
  --kcom-color-primary:#0F766E;--kcom-color-primary-hover:#115E59;
  --kcom-color-accent:#FBBF24;--kcom-color-text:#1F2937;
  --kcom-color-muted:#64748B;--kcom-color-subtle-bg:#F7FAF9;
  --kcom-color-border:#DCE5E1;--kcom-color-control-border:#7B8794;
  color:var(--kcom-color-text);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic",sans-serif;
}
.kcom-r2-site *,.kcom-r2-site *::before,.kcom-r2-site *::after,.kcom-r2-nav-wrap *,.kcom-r2-footer *{box-sizing:border-box}
.kcom-r2-container{width:min(1120px,calc(100% - 48px));margin-inline:auto}
.kcom-r2-nav-wrap{margin-inline:auto;display:flex;align-items:center;justify-content:flex-end;min-width:0;flex:1}
.kcom-r2-nav{display:flex;align-items:center;justify-content:flex-end;gap:clamp(12px,2vw,28px);min-width:0}
.kcom-r2-nav-link{display:inline-flex;min-height:44px;align-items:center;text-decoration:none!important;font-size:14px;font-weight:650;color:var(--kcom-color-text)!important;white-space:nowrap}
.kcom-r2-nav-link:hover,.kcom-r2-nav-link[aria-current="page"]{color:var(--kcom-color-primary)!important;text-decoration:underline!important;text-underline-offset:4px}
.kcom-r2-nav-toggle{display:none;cursor:pointer;color:var(--kcom-color-text);background:#fff;border:1px solid var(--kcom-color-control-border);border-radius:6px;padding:0 14px;min-height:44px;font:inherit;font-size:14px;font-weight:650}
.kcom-r2-account-fallback{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 16px;border:1px solid #7B8794;border-radius:6px;color:#0F766E;text-decoration:none;font-size:14px;font-weight:700;white-space:nowrap}
.kcom-r2-account-fallback img.avatar{width:32px;height:32px;border-radius:50%;margin-right:8px}
.kcom-r2-home{background:var(--kcom-color-bg);font-size:16px;line-height:1.6;min-width:0}
.kcom-r2-home a,.kcom-r2-footer a{color:var(--kcom-color-primary);text-decoration:underline;text-underline-offset:3px}
.kcom-r2-home a:hover,.kcom-r2-footer a:hover{color:var(--kcom-color-primary-hover)}
.kcom-r2-home a:focus-visible,.kcom-r2-nav-wrap a:focus-visible,.kcom-r2-nav-wrap button:focus-visible,.kcom-r2-footer a:focus-visible{outline:3px solid #0F766E;outline-offset:3px}
.kcom-r2-hero{padding:72px 0 56px;border-bottom:1px solid var(--kcom-color-border)}
.kcom-r2-eyebrow{font-size:13px;color:var(--kcom-color-primary);font-weight:700;margin:0 0 18px}
.kcom-r2-home h1{font-size:clamp(32px,4vw,48px)!important;line-height:1.35!important;letter-spacing:-.03em;margin:0 0 22px!important;font-weight:750}
.kcom-r2-lead{max-width:770px;font-size:17px;line-height:1.85;color:var(--kcom-color-muted);margin:0}
.kcom-r2-actions-section{padding:56px 0 72px}
.kcom-r2-actions-section h2{font-size:22px;line-height:1.4;margin:0 0 8px;font-weight:750}
.kcom-r2-section-lead{font-size:14px;color:var(--kcom-color-muted);margin:0 0 24px}
.kcom-r2-action-list{border-top:1px solid var(--kcom-color-border)}
.kcom-r2-action{display:grid;grid-template-columns:46px minmax(0,1fr) 176px;gap:20px;align-items:center;border-bottom:1px solid var(--kcom-color-border);padding:24px 4px}
.kcom-r2-action-no{color:var(--kcom-color-muted);font-size:13px;font-variant-numeric:tabular-nums}
.kcom-r2-action h3{font-size:18px;line-height:1.5;margin:0 0 4px;font-weight:700}
.kcom-r2-action p{font-size:14px;line-height:1.7;margin:0;color:var(--kcom-color-muted)}
.kcom-r2-action-secondary{justify-self:end;font-size:14px;font-weight:700;white-space:nowrap}
.kcom-r2-action-primary{display:inline-flex;align-items:center;justify-content:center;justify-self:end;padding:10px 18px;min-height:44px;background:var(--kcom-color-primary);border:1px solid var(--kcom-color-primary);border-radius:6px;text-decoration:none!important;color:#fff!important;font-size:14px;font-weight:700;white-space:nowrap}
.kcom-r2-action-primary:hover{background:var(--kcom-color-primary-hover);border-color:var(--kcom-color-primary-hover);color:#fff!important}
.kcom-r2-institutions{padding:28px 0;background:var(--kcom-color-subtle-bg);border-top:1px solid var(--kcom-color-border);border-bottom:1px solid var(--kcom-color-border)}
.kcom-r2-institutions-inner{display:flex;justify-content:space-between;align-items:center;gap:24px}
.kcom-r2-institutions h2{font-size:17px;line-height:1.4;margin:0 0 6px}
.kcom-r2-institutions p{margin:0;font-size:14px;color:var(--kcom-color-muted)}
.kcom-r2-institutions a{font-size:14px;font-weight:700;white-space:nowrap}
.kcom-r2-footer{background:#fff;border-top:1px solid var(--kcom-color-border);padding:36px 0 48px}
.kcom-r2-footer-inner{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap}
.kcom-r2-copyright{font-size:13px;color:var(--kcom-color-muted);margin:0}
.kcom-r2-footer-links{display:flex;gap:12px 20px;align-items:center;justify-content:flex-end;flex-wrap:wrap;max-width:790px}
.kcom-r2-footer-links a{font-size:13px;color:var(--kcom-color-muted)}
@media(max-width:900px){
  .kcom-r2-nav-wrap{flex:0 1 auto;position:relative;justify-content:flex-end}
  .kcom-r2-nav-toggle{display:inline-flex;gap:5px;align-items:center;justify-content:center}
  .kcom-r2-nav{display:flex;position:absolute;z-index:100;top:calc(100% + 8px);right:0;width:min(340px,calc(100vw - 28px));flex-direction:column;align-items:stretch;background:#fff;border:1px solid var(--kcom-color-control-border);border-radius:8px;gap:0;padding:8px 12px}
  .kcom-r2-js .kcom-r2-nav:not(.is-open){display:none}
  .kcom-r2-nav-link{min-height:48px;border-bottom:1px solid var(--kcom-color-border);font-size:16px;padding:8px}
  .kcom-r2-nav-link:last-child{border-bottom:none}
}
@media(max-width:480px){
  .kcom-r2-nav-toggle{width:48px;min-width:48px;padding:0;white-space:nowrap}
  .kcom-r2-nav-toggle-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
}
@media(max-width:600px){
  .kcom-r2-container{width:calc(100% - 32px)}
  .kcom-r2-hero{padding:50px 0 40px}
  .kcom-r2-home h1{font-size:32px!important}
  .kcom-r2-lead{font-size:16px}
  .kcom-r2-actions-section{padding:40px 0 50px}
  .kcom-r2-action{grid-template-columns:34px minmax(0,1fr);gap:12px;padding:22px 0}
  .kcom-r2-action-secondary,.kcom-r2-action-primary{grid-column:2;justify-self:start;margin-top:4px}
  .kcom-r2-institutions-inner{display:block}
  .kcom-r2-institutions a{display:inline-block;margin-top:16px}
  .kcom-r2-footer{padding:30px 0}
  .kcom-r2-footer-links{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){.kcom-r2-nav-wrap *,.kcom-r2-site *{animation:none!important;transition:none!important}}

/* Emergency integration: isolated header/nav host. P avatar markup is untouched. */
.kcom-public-nav-host{display:flex;align-items:center;gap:16px;min-height:48px;max-width:1120px;margin:0 auto;padding:0 12px;justify-content:flex-end}
.kcom-public-nav-host .kcom-r2-nav-wrap{margin-left:auto;flex:0 1 auto}
.kcom-public-nav-host .kcom-r2-account-slot{display:inline-flex;align-items:center;flex:0 0 auto}
.kcom-public-nav-fallback{background:#fff;border-block:1px solid #DCE5E1;position:relative;z-index:100;clear:both}
.kcom-public-nav-fallback .kcom-public-nav-host{max-width:1120px}
.kcom-r2-account-slot .kcom-r2-account-fallback{text-align:center}
.kcom-public-legacy-hidden{display:none!important}
@media(max-width:900px){
 .kcom-public-nav-host{justify-content:flex-end;gap:12px;flex-wrap:nowrap}
 .kcom-public-nav-host .kcom-r2-nav-wrap{position:relative;order:0}
 .kcom-public-nav-host .kcom-r2-account-slot{order:1}
}
@media(max-width:480px){.kcom-public-nav-host{padding:0 8px;gap:8px}.kcom-r2-account-slot .kcom-r2-account-fallback{font-size:13px;padding:6px 8px}}
