:root{
  --aosc-blue:#0d198f;
  --aosc-red:#ef3038;
  --aosc-orange:#ff4b0b;
  --aosc-text:#111827;
  --aosc-muted:#687386;
  --aosc-line:#e5e7eb;
  --aosc-soft:#f7f8fa;
}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--aosc-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif}

/* Thinkific-like shared shell. No plugin structure is replaced. */
.aosc-header{position:relative!important;z-index:10000!important;width:100%!important;background:var(--aosc-blue)!important;color:#fff!important;border:0!important;box-shadow:none!important}
.aosc-native-header-pending{display:none!important}
.aosc-header__inner{width:min(1240px,calc(100% - 48px));min-height:126px;margin:auto;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px}
.aosc-brand{display:flex;align-items:center;gap:12px;color:#fff!important;text-decoration:none!important;font-weight:800;font-size:18px}
.aosc-brand__mark{width:52px;height:52px;border:1px solid rgba(255,255,255,.48);background:rgba(255,255,255,.10);display:grid;place-items:center;border-radius:50%;font-size:13px}
.aosc-brand__text{letter-spacing:.01em}
.aosc-nav{display:flex;justify-content:center;gap:28px;flex-wrap:wrap}
.aosc-nav a,.aosc-login-link{color:#fff!important;text-decoration:none!important;font-weight:700;white-space:nowrap}
.aosc-nav a{position:relative;padding:9px 0}
.aosc-nav a.is-active::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#fff}
.aosc-user{position:relative;justify-self:end}
.aosc-user__button{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:#fff!important;font-weight:700;cursor:pointer;padding:4px}
.aosc-user__avatar{width:38px;height:38px;border:1px solid rgba(255,255,255,.9);border-radius:50%;overflow:hidden;background:#fff;display:block}
.aosc-user__avatar-img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
.aosc-user__chevron{font-size:14px}
.aosc-user__menu{position:absolute;right:0;top:50px;width:210px;background:var(--aosc-blue)!important;padding:8px;box-shadow:0 12px 30px rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.18);z-index:10001}
.aosc-user__menu a{display:block;padding:11px 12px;color:#fff!important;text-decoration:none!important}
.aosc-user__menu a:hover{background:rgba(255,255,255,.12)}

.aosc-container{width:min(1180px,calc(100% - 48px));margin:auto}
.aosc-page{min-height:700px;padding:64px 0 90px;background:#fff}
.aosc-page-title{margin-bottom:42px}
.aosc-page-title h1{margin:0 0 8px;font-size:44px;line-height:1.15;letter-spacing:-.03em;font-weight:700}
.aosc-page-title p{margin:0;color:var(--aosc-muted)}
.aosc-plugin-surface{width:100%}
.aosc-empty{padding:56px 24px;border:1px solid var(--aosc-line);background:var(--aosc-soft);text-align:center}

.aosc-footer{display:block!important;clear:both;background:var(--aosc-blue)!important;color:#fff!important;padding:34px 0 28px}
.aosc-footer__inner{width:min(1240px,calc(100% - 48px));margin:auto;display:flex;flex-direction:column;gap:28px}
.aosc-footer nav{display:flex;gap:30px;flex-wrap:wrap}
.aosc-footer a{color:#fff!important;text-decoration:none!important;font-weight:700}
.aosc-footer small{color:rgba(255,255,255,.9)}

.aosc-btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:0 24px;text-decoration:none!important;font-weight:800;border-radius:3px}
.aosc-btn--primary{background:#fff;color:var(--aosc-blue)!important}
.aosc-btn--ghost{border:1px solid rgba(255,255,255,.7);color:#fff!important}
.aosc-hero{min-height:405px;background:linear-gradient(120deg,#102942,#07192e);background-size:cover;background-position:center;display:flex;align-items:center;color:#fff}
.aosc-hero__inner{width:min(1160px,calc(100% - 48px));margin:auto}
.aosc-eyebrow{font-size:13px;font-weight:800;letter-spacing:.12em}
.aosc-hero h1{max-width:720px;margin:10px 0 14px;font-size:46px;line-height:1.2}
.aosc-hero p{max-width:720px;line-height:1.8}
.aosc-hero__actions{display:flex;gap:12px;margin-top:24px}
.aosc-home-copy{padding:70px 0}

/* School pages: hide AFFINGER chrome only. Do NOT reset generic main/plugin elements. */
body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) :is(
  #header,header#header,#st-header,#st-header-top,#st-menuwide,#st-headerwide,#st-mobile-logo,#st-menuwide-w,
  #side,aside#side,#breadcrumb,#footer,footer#footer,.st-eyecatch,.blog_info,.st-catgroup,.st-tags,.kanren,.sns,.st-sns-button
){display:none!important}

body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) :is(#wrapper,#content,#contentInner,#st-main){
  width:100%!important;max-width:none!important;margin:0!important;float:none!important
}
body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) #content{
  min-height:680px!important;padding:54px 0 80px!important;background:#fff!important
}
body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) #contentInner{
  width:min(1180px,calc(100% - 48px))!important;margin:0 auto!important;padding:0!important
}
body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) :is(
  .posted-on,.entry-meta,time.entry-date,.st-page-title + .blog_info,
  .author,.vcard,.posted-by,.byline,.updated-on,.post-date,
  #breadcrumb,.breadcrumb,.breadcrumbs,[class*="breadcrumb"]
){display:none!important}
body:is(.aosc-courses-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) .entry-title{
  display:block!important;margin:0 0 28px!important;font-size:42px!important;line-height:1.2!important;color:#111827!important
}

@media(max-width:980px){
  .aosc-header__inner{grid-template-columns:auto 1fr;min-height:104px}
  .aosc-nav{grid-column:1/-1;order:3;padding-bottom:18px}
  .aosc-user{justify-self:end}
}
@media(max-width:720px){
  .aosc-header__inner,.aosc-container,.aosc-footer__inner,.aosc-hero__inner{width:min(100% - 28px,1240px)}
  .aosc-header__inner{min-height:88px}
  .aosc-nav{display:none}
  .aosc-user__name{display:none}
  .aosc-page{padding:42px 0 64px}
  .aosc-page-title h1{font-size:36px}
  .aosc-hero{min-height:360px}
  .aosc-hero h1{font-size:36px}
  body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) #content{padding:36px 0 56px!important}
  body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) #contentInner{width:min(100% - 28px,1180px)!important}
}


/* ===== 1.0.4 unified school header ===== */
.aosc-header{
  position:relative!important;
  z-index:9990!important;
  width:100%!important;
  margin:0!important;
  background:linear-gradient(90deg,#111f9d 0%,#09167f 100%)!important;
  color:#fff!important;
  box-shadow:0 1px 0 rgba(255,255,255,.08),0 8px 24px rgba(7,20,90,.10)!important;
}
.aosc-header__inner{
  width:min(1240px,calc(100% - 64px))!important;
  min-height:104px!important;
  margin:0 auto!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:260px minmax(0,1fr) 220px!important;
  align-items:center!important;
  gap:28px!important;
}
.aosc-brand{gap:12px!important;font-size:18px!important}
.aosc-brand__mark{width:50px!important;height:50px!important;border:1px solid rgba(255,255,255,.55)!important;background:rgba(255,255,255,.06)!important}
.aosc-nav{gap:30px!important;align-items:center!important}
.aosc-nav a{font-size:16px!important;line-height:1!important;padding:17px 0 16px!important}
.aosc-nav a.is-active::after{height:2px!important;border-radius:2px!important}
.aosc-user__button{font-size:15px!important;gap:10px!important}
.aosc-user__avatar{width:40px!important;height:40px!important}

/* The AFFINGER header is a direct child of #wrapper-in. Hide only that chrome. */
body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) #wrapper-in > header:not(.aosc-header),
body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) #header-full,
body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) #st-mobile-link-design,
body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen) #st-header-cardlink-wrapper{
  display:none!important;
}

/* Standalone home must not inherit AFFINGER main sizing. */
.aosc-home{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
}
.aosc-home .aosc-hero{width:100%!important;max-width:none!important;margin:0!important}

body:is(.aosc-courses-screen,.aosc-course-detail-screen,.aosc-cart-screen,.aosc-checkout-screen,.aosc-order-received-screen,.aosc-account-screen,.aosc-dashboard-screen,.aosc-static-school-screen){overflow-x:hidden}

@media(max-width:1040px){
  .aosc-header__inner{width:min(100% - 36px,1240px)!important;grid-template-columns:auto 1fr!important;min-height:96px!important}
  .aosc-nav{grid-column:1/-1!important;order:3!important;justify-content:flex-start!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding:0 0 16px!important;scrollbar-width:none}
  .aosc-nav::-webkit-scrollbar{display:none}
  .aosc-user{justify-self:end!important}
}
@media(max-width:720px){
  .aosc-header__inner{width:min(100% - 28px,1240px)!important;min-height:82px!important}
  .aosc-nav{display:none!important}
  .aosc-brand__mark{width:44px!important;height:44px!important}
}

/* AOSC 1.3.0 - clear storefront / learner-area separation. */
.aosc-header--learner .aosc-header__inner{grid-template-columns:auto 1fr auto}
.aosc-header--learner .aosc-nav--learner{min-height:1px}
.aosc-header--learner .aosc-brand__text::after{content:"  /  LEARNING";margin-left:9px;color:rgba(255,255,255,.72);font-size:10px;font-weight:700;letter-spacing:.12em}
.aosc-header--storefront .aosc-nav--storefront{display:flex}

/* Purchase completion: preserve WooCommerce content and add one obvious next step. */
.aosc-learning-handoff{display:flex;align-items:center;justify-content:space-between;gap:24px;width:min(980px,calc(100% - 32px));margin:32px auto;padding:24px 26px;border:1px solid #dbe5f0;border-radius:12px;background:#f7fafe;box-shadow:0 8px 24px rgba(17,24,39,.05)}
.aosc-learning-handoff__copy{display:flex;flex-direction:column;gap:5px;color:#172033}
.aosc-learning-handoff__copy strong{font-size:18px}
.aosc-learning-handoff__copy span{color:#667085;font-size:14px;line-height:1.7}
.aosc-learning-handoff__button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:7px;background:#173c70;color:#fff!important;font-weight:800;text-decoration:none!important;white-space:nowrap}
.aosc-learning-handoff__button:hover{opacity:.92}

@media(max-width:760px){
  .aosc-learning-handoff{align-items:stretch;flex-direction:column}
  .aosc-learning-handoff__button{width:100%}
  .aosc-header--learner .aosc-brand__text::after{display:none}
}
