/* ALDONIX 2026-09 renewal — shared chrome for subpages (TOP keeps top.css + top-purple.css).
   Palette follows the purple TOP (top-purple.css). Chrome classes are prefixed sx- so they never
   collide with each page's own .wrap/.footer. Fills use --sx-fill; small text/links use --sx-accent
   (the fill purple is too light for small text on white). */
:root{--sx-fill:#9e3dff;--sx-fill-d:#8028d5;--sx-accent:#8028d5;--sx-accent-d:#6222ac;--sx-soft:#f6edff;--sx-soft-line:#dec4f4;--sx-ink:#29153e;--sx-muted:#6a597a;--sx-line:#e5dbea;--sx-wash:#faf6ff;--sx-foot:#210c36;--sx-on-dark:#d7c4e8;--sx-font:'Manrope','Noto Sans JP',sans-serif}
.sx-wrap{width:min(1280px,calc(100% - 112px));margin-inline:auto}
.sx-skip{position:fixed;left:20px;top:-100px;z-index:3000;background:#fff;color:var(--sx-ink);padding:12px}.sx-skip:focus{top:10px}

/* Header */
.sx-header{position:sticky;top:0;z-index:1000;height:88px;display:flex;align-items:center;gap:36px;padding:0 40px;background:var(--sx-fill);color:#fff;border-bottom:1px solid #ffffff30;font-family:var(--sx-font);line-height:1.5}
.sx-header a{color:inherit;text-decoration:none}
.sx-brand{display:flex;flex-direction:column;gap:8px;flex-shrink:0}.sx-brand svg{display:block;width:178px;height:auto}.sx-brand>span{font-size:12px;font-weight:600;letter-spacing:.035em}
.sx-nav{display:flex;align-items:center;justify-content:flex-end;gap:28px;flex:1;font-size:14px;font-weight:700}
.sx-nav a{border-bottom:2px solid transparent;padding-block:4px}.sx-nav a:hover,.sx-nav a[aria-current=page]{border-bottom-color:#fff}
.sx-cta{display:inline-grid;grid-template-columns:1fr 20px;align-items:center;column-gap:20px;min-height:48px;padding:12px 20px;background:#fff;color:#7925ca!important;font-size:14px;font-weight:700}
.sx-cta>span{font-size:20px;line-height:1;text-align:center}.sx-cta:hover{background:#f3e8ff;color:var(--sx-accent-d)!important}
.sx-toggle{display:none}
.sx-menu[hidden]{display:none}
.sx-menu{position:fixed;top:88px;left:0;right:0;z-index:999;background:var(--sx-fill);color:#fff;padding:20px 28px 28px;font-family:var(--sx-font);box-shadow:0 25px 30px #29153e1a}
.sx-menu a{display:block;padding:13px 0;border-bottom:1px solid #ffffff40;font-weight:700;color:#fff;text-decoration:none}

/* Footer (the purple TOP closes on a dark plum footer) */
.sx-footer{background:var(--sx-foot);color:#fff;border-top:1px solid #ffffff26;padding:50px 0 25px;font-family:var(--sx-font);line-height:1.8;text-align:left;letter-spacing:normal}
.sx-footer a{color:inherit;text-decoration:none;border:0;padding:0}
.sx-footer-top{display:flex;align-items:center;justify-content:space-between;gap:30px}
.sx-footer-top svg{display:block;width:178px;height:auto}
.sx-footer-top p{margin:0;font-size:12px;color:var(--sx-on-dark)}
.sx-footer-nav{display:flex;gap:25px;flex-wrap:wrap;margin:36px 0;font-size:12px;color:var(--sx-on-dark)}.sx-footer-nav a:hover{color:#fff}
.sx-copy{display:flex;justify-content:space-between;border-top:1px solid #ffffff26;padding-top:20px;color:var(--sx-on-dark);font-size:10px;letter-spacing:.1em}
.sx-mobile-cta{display:none}
.sx-header a:focus-visible,.sx-footer a:focus-visible,.sx-toggle:focus-visible,.sx-mobile-cta:focus-visible{outline:3px solid #e6aa00;outline-offset:4px}

@media(max-width:1100px){.sx-wrap{width:calc(100% - 64px)}.sx-header{padding-inline:26px;gap:22px}.sx-nav{gap:18px;font-size:12px}.sx-brand svg{width:155px}.sx-brand>span{font-size:10px}}
@media(max-width:800px){
  .sx-header{height:80px;gap:18px}.sx-nav{display:none}.sx-cta{margin-left:auto}
  .sx-toggle{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;width:40px;height:44px;border:0;background:none;color:#fff;cursor:pointer;padding:0}
  .sx-toggle span{width:22px;height:2px;background:currentColor;transition:transform .2s}
  .sx-toggle[aria-expanded=true] span:first-child{transform:translateY(4.5px) rotate(45deg)}.sx-toggle[aria-expanded=true] span:last-child{transform:translateY(-4.5px) rotate(-45deg)}
  .sx-menu{top:80px}.sx-footer-top{align-items:flex-start}}
@media(max-width:560px){
  .sx-wrap{width:calc(100% - 40px)}
  .sx-header{height:74px;padding-inline:20px;gap:12px}.sx-brand svg{width:132px}.sx-brand>span{font-size:9px;letter-spacing:0}
  .sx-cta{font-size:12px;min-height:44px;padding:12px 14px;column-gap:12px;grid-template-columns:1fr 16px}.sx-cta>span{font-size:18px}
  .sx-toggle{width:28px}.sx-menu{top:74px}
  .sx-footer{padding-bottom:90px}.sx-footer-top{flex-direction:column;gap:22px}.sx-footer-nav{gap:15px 23px;margin-block:28px}.sx-copy{font-size:9px;gap:20px;line-height:1.7}
  .sx-mobile-cta{display:flex;align-items:center;justify-content:space-between;position:fixed;bottom:0;left:0;right:0;z-index:900;background:var(--sx-fill);color:#fff;padding:18px 24px calc(18px + env(safe-area-inset-bottom));font:700 14px/1.5 var(--sx-font);text-decoration:none;box-shadow:0 -1px 0 #ffffff40}
  .sx-mobile-cta:hover{background:var(--sx-fill-d);color:#fff}
  /* pages set th{white-space:nowrap} and body{word-break:auto-phrase}; together they kept
     cells from breaking, so tables ran past a 390px screen */
  table th{white-space:normal!important}
  table th,table td{word-break:normal}}
.sx-footer,.sx-footer p,.sx-footer a{text-transform:none;font-weight:400}

/* Some pages style the bare nav element (profile: fixed top bar, hidden on SP).
   Class-scoped resets keep the site chrome's navs out of those rules. */
.sx-header .sx-nav,.sx-footer .sx-footer-nav{position:static;inset:auto;transform:none;width:auto;height:auto;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;border:0;box-shadow:none;padding:0;z-index:auto;opacity:1}
.sx-footer .sx-footer-nav{display:flex}
.sx-header .sx-nav a,.sx-footer .sx-footer-nav a,.sx-menu a{font-family:var(--sx-font);letter-spacing:normal;text-transform:none}
.sx-footer .sx-footer-nav a{color:inherit;font-size:12px;padding:0;margin:0}

/* ── Retheme layer: pages converted to the new system carry body.sx-page ──
   Old pages share the token names --bg/--text/--sub/--accent/--border, so remapping them
   re-colors every component; the rules below reshape the shared components. */
.sx-page{--bg:#fff;--text:var(--sx-ink);--sub:var(--sx-muted);--accent:var(--sx-accent);--accent-soft:var(--sx-soft);--border:var(--sx-line);background:#fff;color:var(--sx-ink);font-family:var(--sx-font);font-weight:400;-webkit-font-smoothing:antialiased}
.sx-page ::selection{background:#9e3dff33}
.sx-page a:focus-visible{outline:3px solid #e6aa00;outline-offset:4px}
.sx-page .wallpaper-texture{background-image:none!important;background-color:#fff!important}
.sx-page h1,.sx-page h2,.sx-page h3{font-family:var(--sx-font)}

/* Headings carry the TOP's heavy weight; body copy stays 400 */
.sx-page h1{font-weight:800;letter-spacing:-.035em}
.sx-page main h2{font-weight:800;letter-spacing:-.02em}
.sx-page main h3{font-weight:700}
.sx-page .page-label+h1{font-size:clamp(34px,4.6vw,60px);line-height:1.45}
.sx-page .cat-filter{margin-top:32px}

/* Page hero (price / contact / tools / privacy): aligned to the page's content column */
.sx-page .intro{text-align:left;max-width:none;width:min(820px,calc(100% - 56px));margin:0 auto;padding:96px 0 48px;border-bottom:1px solid var(--sx-line)}
.sx-page .page-label{display:flex;align-items:center;gap:12px;font-family:var(--sx-font);font-size:12px;font-weight:800;letter-spacing:.16em;color:var(--sx-accent);margin-bottom:22px}
.sx-page .page-label::before{content:'';width:18px;height:3px;background:var(--sx-fill);flex-shrink:0}
.sx-page .intro h1,.sx-page .page-title{font-family:var(--sx-font);font-size:clamp(36px,5vw,68px);font-weight:800;letter-spacing:-.045em;line-height:1.4;color:var(--sx-ink)}
.sx-page .h1-ja{display:block;font-family:var(--sx-font);font-size:clamp(15px,1.4vw,18px);font-weight:600;letter-spacing:.02em;color:var(--sx-muted);margin-top:14px;line-height:1.7}
.sx-page .intro-lead,.sx-page .page-lead{max-width:640px;margin:26px 0 0;font-size:16px;line-height:2;color:var(--sx-muted)}

/* Buttons & links: fills use the brighter purple like the TOP's buttons */
.sx-page .cta-btn,.sx-page .btn-primary{display:inline-grid;grid-template-columns:1fr auto;align-items:center;column-gap:24px;min-height:64px;padding:20px 28px;border-radius:0;background:var(--sx-fill);color:#fff;font-family:var(--sx-font);font-size:15px;font-weight:700;letter-spacing:.02em;line-height:1.5;opacity:1;text-decoration:none;border:0}
.sx-page .cta-btn:hover,.sx-page .btn-primary:hover{background:var(--sx-fill-d);color:#fff;opacity:1}
.sx-page .breadcrumb{font-size:12px;font-weight:600;color:var(--sx-muted)}.sx-page .breadcrumb a:hover{color:var(--sx-accent)}

@media(max-width:1100px){.sx-page .intro{padding:80px 0 44px}}
@media(max-width:560px){.sx-page .intro{width:calc(100% - 40px);padding:56px 0 36px}.sx-page .intro-lead,.sx-page .page-lead{font-size:15px}.sx-page .cta-btn,.sx-page .btn-primary{width:100%}}
@media(prefers-reduced-motion:reduce){.sx-toggle span{transition:none}}

/* 2026-09-15 マスター指示: ナビの回遊性。SPメニューとフッターをグループ構成に（TOPと同じ構成） */
.sx-menu{max-height:calc(100dvh - 88px);overflow-y:auto;padding:8px 28px 28px}
.sx-menu .nav-group{padding:14px 0 8px;border-bottom:1px solid #ffffff33}
.sx-menu .nav-group-label{margin:0 0 2px;font-size:11px;font-weight:800;letter-spacing:.14em;color:#ead8ff;font-family:var(--sx-font)}
.sx-menu .nav-group a{display:block;padding:9px 0;border:0}
.sx-menu .nav-menu-cta{display:flex;align-items:center;justify-content:space-between;margin-top:20px;padding:16px 18px;border:0;background:#fff;color:#7925ca;font-weight:700}
.sx-footer .sx-footer-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 32px;margin:40px 0}
.sx-footer .sx-footer-nav .nav-group{display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.sx-footer .sx-footer-nav .nav-group-label{margin:0 0 4px;font-size:11px;font-weight:800;letter-spacing:.14em;color:#fff;font-family:var(--sx-font)}
.sx-footer .sx-footer-nav .nav-group a{font-size:12px;line-height:1.6}
@media(max-width:1100px) and (min-width:801px){.sx-nav{gap:14px}.sx-header{gap:16px}}
@media(max-width:800px){.sx-menu{max-height:calc(100dvh - 80px)}.sx-footer .sx-footer-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.sx-menu{max-height:calc(100dvh - 74px);padding-inline:20px}.sx-footer .sx-footer-nav{gap:24px 20px;margin-block:30px}}

.sx-nav a{white-space:nowrap}


/* 2026-09-19 マスター指示: PCのグロナビを廃止し、全幅でハンバーガーメニューに統一（TOPと同じ挙動） */
.sx-nav{display:none!important}
.sx-header{gap:16px}
.sx-cta{margin-left:auto}
.sx-toggle{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;width:40px;height:44px;border:0;background:none;color:#fff;cursor:pointer;padding:0}
.sx-toggle span{width:22px;height:2px;background:currentColor;transition:transform .2s}
.sx-toggle[aria-expanded=true] span:first-child{transform:translateY(4.5px) rotate(45deg)}
.sx-toggle[aria-expanded=true] span:last-child{transform:translateY(-4.5px) rotate(-45deg)}
@media(min-width:801px){.sx-menu{left:auto;right:0;width:min(460px,100%);border-left:1px solid #ffffff30;box-shadow:-20px 0 40px #29153e26}}
@media(max-width:560px){.sx-toggle{width:28px}}
@media(prefers-reduced-motion:reduce){.menu-toggle span,.sx-toggle span{transition:none}}

/* 2026-10-07 目次などのページ内リンクで飛んだとき、見出しが固定ヘッダー（88px／狭い画面は80px）の下に隠れないようにする */
:where(h1,h2,h3,h4,section,article,div,li,p,dt,figure,table)[id]{scroll-margin-top:112px}
@media(max-width:800px){:where(h1,h2,h3,h4,section,article,div,li,p,dt,figure,table)[id]{scroll-margin-top:100px}}

/* 2026-10-08 マスター指示: スマホ下部の追従ボタンを外す（ヘッダーに同じ「無料相談」があるため）。フッターの逃がし余白も元に戻す */
/* ボタンの要素は、ヘッダーに「無料相談」があるページのHTMLから削除済み。ヘッダーにボタンがないページ（/coreforce/・/profile/）だけ残してある */
.sx-footer{padding-bottom:25px}
@media(max-width:560px){body:has(.sx-mobile-cta) .sx-footer{padding-bottom:90px}}

/* 2026-10-13 コラムの本文は、文節ごとではなく通常の行送りにする（auto-phrase だと行末が大きく空いて改行がおかしく見える）。見出しとカードのタイトルは文節で折る */
main.wrap p,main.wrap li,main.wrap td,main.wrap th,main.wrap dd,main.wrap figcaption,main.wrap .lead{word-break:normal;line-break:strict;overflow-wrap:anywhere}
main.wrap .card-title,main.wrap .cta-title{word-break:auto-phrase}
