/* Nurslens shared styles: tokens, base, logo, header and menus, sections, components, footer */
/* ===== tokens ===== */
:root{
  --ink:#1b2356;
  --ink-2:#394177;
  --paper:#f7f1e8;
  --surface:#fffdf8;
  --cream:#fff8ec;
  --coral:#ff6f59;
  --coral-text:#b23a26;
  --marker:#ffc862;
  --line:#e3d8c6;

  --tag-kijun-fg:#1b2356;--tag-kijun-bg:#e4e9fb;
  --tag-chosa-fg:#155e63;--tag-chosa-bg:#dff2ef;
  --tag-mitate-fg:#a63a26;--tag-mitate-bg:#ffe6df;

  --sans:"Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif;
  --serif:"Shippori Mincho B1","Hiragino Mincho ProN","Yu Mincho","YuMincho","Noto Serif JP",serif;
  --latin:"Fraunces","Iowan Old Style","Palatino Linotype",Georgia,serif;

  --space-xs:8px;
  --space-s:16px;
  --space-m:24px;
  --space-l:40px;
  --space-xl:64px;
  --space-xxl:96px;
  --gutter:32px;

  --content:1728px;
  --margin:24px;
  --pad:max(var(--margin),min(4.6vw,96px));
  --section:var(--space-xl);

  --radius-s:8px;
  --radius-m:16px;
  --radius-l:24px;

  --shadow-card:0 1px 2px rgba(27,35,86,.06),0 8px 24px -12px rgba(27,35,86,.18);

  --fs-h2:28px;
  --fs-h3:20px;
  --fs-lead:16px;
  --hdr-h:64px;
  --band:80px;
  --block-gap:80px;
  --head-gap:32px;
  --line-ui:#8387a2;
  --lbl-w:64px;
  --fs-h1:26px;
  --fs-h2a:22px;
  --fs-h3a:18px;
  --sheet-r:24px;
  --ring:280px;
}
@media (min-width:768px){
  :root{
    --margin:40px;
    --section:var(--space-xxl);
    --fs-h2:36px;
    --fs-h3:24px;
    --fs-lead:18px;
    --hdr-h:80px;
    --band:128px;
    --block-gap:112px;
    --head-gap:48px;
    --fs-h1:36px;
    --fs-h2a:28px;
    --fs-h3a:20px;
    --sheet-r:48px;
    --ring:560px;
  }
}

/* ===== base ===== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-size:16px;font-weight:400;line-height:1.7;letter-spacing:.02em;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
h1,h2,h3,p,ul,ol{margin:0}
h1,h2,h3,.lead,.facts li,.pick,.tile__label,.btn span,.block__lead,.scope p,.ad__text{word-break:auto-phrase}
ul,ol{padding:0;list-style:none}
a{color:inherit}
:where(a,button):focus-visible{
  outline:3px solid var(--ink);outline-offset:2px;
  box-shadow:0 0 0 8px var(--marker);border-radius:var(--radius-s);
}
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:var(--space-s);top:-80px;z-index:60;padding:var(--space-s) var(--space-m);border-radius:var(--radius-s);background:var(--ink);color:var(--cream);font-weight:700;text-decoration:none}
.skip:focus{top:var(--space-s)}

.wrap{
  width:100%;max-width:calc(var(--content) + 192px);
  margin-inline:auto;padding-inline:var(--pad);
}

/* ===== logo ===== */
.brand{display:inline-flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none}
.brand__mark{width:44px;height:44px;flex:none;display:block;--mark-line:var(--ink)}
.brand__txt{display:block}
/* on the top page the site name is the h1; keep the heading defaults from changing its look */
h1.brand__txt{font:inherit;word-break:inherit}
.brand__name{display:block;font-family:var(--latin);font-weight:600;font-size:26px;line-height:1;letter-spacing:.005em}
.brand__sub{display:block;margin-top:6px;font-size:14px;line-height:1;font-weight:700;letter-spacing:.12em;color:var(--ink-2)}
.brand--on-ink{color:var(--cream)}
.brand--on-ink .brand__mark{--mark-line:var(--cream)}
.brand--on-ink .brand__sub{color:#c9cde8}

/* ===== header ===== */
.hdr{
  --hdr-bg:rgba(255,253,248,0);--hdr-line:transparent;--hdr-shadow:none;
  position:fixed;left:0;right:0;top:0;z-index:20;
  padding-top:env(safe-area-inset-top);
  background:var(--hdr-bg);box-shadow:inset 0 -1px 0 var(--hdr-line),var(--hdr-shadow);
  transition:background-color .3s ease,box-shadow .3s ease,transform .35s cubic-bezier(.2,.7,.2,1);
  animation:fade .9s ease .05s backwards;
}
.hdr.is-solid{
  --hdr-bg:rgba(255,253,248,.88);--hdr-line:var(--line);--hdr-shadow:0 8px 24px -16px rgba(27,35,86,.3);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);
}
.hdr.is-hidden{transform:translateY(-100%)}
.hdr__in{
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-m);
  height:var(--hdr-h);padding-inline:var(--pad);
}
.hdr .brand__mark{width:40px;height:40px}
.hdr .brand__name{font-size:24px}
.hdr .brand__sub{font-size:14px;margin-top:5px}

/* global nav (PC) */
.gnav{display:none}
.gnav__list{display:flex;align-items:center;gap:4px}
.gnav__link{
  position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:0;border-radius:999px;
  background:none;font:inherit;font-size:16px;line-height:1;font-weight:700;letter-spacing:.04em;color:var(--ink);text-decoration:none;cursor:pointer;
  transition:background-color .2s ease;
}
.gnav__link:hover,.gnav__link[aria-expanded="true"]{background:rgba(27,35,86,.07)}
.gnav__link::after{
  content:"";position:absolute;left:14px;right:14px;bottom:6px;height:2px;border-radius:2px;background:var(--ink);
  transform:scaleX(0);transform-origin:left;transition:transform .3s cubic-bezier(.2,.7,.2,1);
}
.gnav__link[aria-current="true"]::after{transform:scaleX(1)}
.gnav__link:focus-visible{border-radius:999px}
.chev{width:16px;height:16px;flex:none;transition:transform .25s ease}
.gnav__link[aria-expanded="true"] .chev{transform:rotate(180deg)}
@media (min-width:1024px){
  .gnav{display:block}
}

/* mega menu (PC) */
.mega{
  position:absolute;left:0;right:0;top:100%;
  padding:var(--space-l) var(--pad) var(--space-l);
  background:var(--surface);box-shadow:inset 0 1px 0 var(--line),0 24px 48px -24px rgba(27,35,86,.35);
  opacity:0;transform:translateY(-8px);visibility:hidden;
  transition:opacity .2s ease,transform .25s cubic-bezier(.2,.7,.2,1),visibility 0s linear .25s;
}
.mega.is-open{opacity:1;transform:none;visibility:visible;transition:opacity .2s ease,transform .25s cubic-bezier(.2,.7,.2,1)}
.mega__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gutter);max-width:var(--content);margin-inline:auto}
.mega__kind{
  display:flex;align-items:center;gap:var(--space-s);padding:var(--space-xs);margin-bottom:var(--space-xs);border-radius:var(--radius-m);
  font-size:20px;line-height:1.4;font-weight:700;color:var(--ink);text-decoration:none;transition:background-color .2s ease;
}
.mega__kind:hover{background:#fff4e2}
.mega__kind .arw{margin-left:auto}
.mega__list a{
  display:flex;align-items:center;gap:12px;min-height:52px;padding:6px var(--space-xs);border-radius:var(--radius-s);
  font-size:16px;line-height:1.4;font-weight:700;color:var(--ink);text-decoration:none;transition:background-color .2s ease;
}
.mega__list a:hover{background:#fff4e2}
.mega__foot{
  display:flex;flex-wrap:wrap;gap:var(--space-s);max-width:var(--content);margin:var(--space-m) auto 0;padding-top:var(--space-m);border-top:1px solid var(--line);
}
.mega__foot a{
  display:inline-flex;align-items:center;gap:var(--space-xs);min-height:44px;padding:0 var(--space-s) 0 var(--space-xs);border-radius:999px;
  font-size:16px;font-weight:700;color:var(--ink);text-decoration:none;box-shadow:inset 0 0 0 1px var(--line);transition:background-color .2s ease;
}
.mega__foot a:hover{background:#fff4e2}
.mega__foot .ic{width:24px;height:24px}

/* menu button (phone / tablet) */
.menu-btn{
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  min-width:64px;height:56px;margin-right:-8px;padding:0 4px;border:0;border-radius:var(--radius-m);background:none;
  font:inherit;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.menu-btn__bars{position:relative;display:block;width:24px;height:16px}
.menu-btn__bars i{position:absolute;left:0;right:0;height:2px;border-radius:2px;background:currentColor}
.menu-btn__bars i:nth-child(1){top:0}
.menu-btn__bars i:nth-child(2){top:7px;right:6px}
.menu-btn__bars i:nth-child(3){top:14px}
.menu-btn__label{font-size:14px;line-height:1;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.menu-btn:active{background:rgba(27,35,86,.07)}
@media (min-width:1024px){
  .menu-btn{display:none}
}

/* drawer (phone / tablet) */
.drawer{
  position:fixed;inset:0;z-index:40;display:flex;flex-direction:column;
  background:var(--paper);
  transform:translateX(100%);visibility:hidden;
  transition:transform .4s cubic-bezier(.2,.7,.2,1),visibility 0s linear .4s;
}
.drawer.is-open{transform:none;visibility:visible;transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.drawer__head{
  flex:none;display:flex;align-items:center;justify-content:space-between;
  height:calc(var(--hdr-h) + env(safe-area-inset-top));padding:env(safe-area-inset-top) var(--pad) 0;
  background:var(--surface);box-shadow:inset 0 -1px 0 var(--line);
}
.drawer__head .brand__mark{width:40px;height:40px}
.drawer__head .brand__name{font-size:24px}
.drawer__head .brand__sub{font-size:14px;margin-top:5px}
.close-btn{
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  min-width:64px;height:56px;margin-right:-8px;padding:0 4px;border:0;border-radius:var(--radius-m);background:none;
  font:inherit;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.close-btn svg{width:24px;height:24px}
.close-btn span{font-size:14px;line-height:1;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.close-btn:active{background:rgba(27,35,86,.07)}
.drawer__body{
  flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:var(--space-m) var(--pad) calc(var(--space-xl) + env(safe-area-inset-bottom));
}
.drawer__label{margin:0 0 12px;font-size:16px;line-height:1.5;font-weight:700;letter-spacing:.04em;color:var(--ink-2)}
.drawer__group + .drawer__group{margin-top:var(--space-l)}

.acc{border-radius:var(--radius-m);background:var(--surface);box-shadow:var(--shadow-card);overflow:hidden}
.acc + .acc{margin-top:12px}
.acc summary{
  display:flex;align-items:center;gap:var(--space-s);min-height:72px;padding:12px var(--space-s);
  font-size:18px;line-height:1.4;font-weight:700;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent;
}
.acc summary::-webkit-details-marker{display:none}
.acc summary .chev{margin-left:auto;width:20px;height:20px;color:var(--ink-2)}
.acc[open] summary .chev{transform:rotate(180deg)}
.acc summary:focus-visible{border-radius:var(--radius-m)}
.acc__body{padding:0 var(--space-xs) var(--space-xs);border-top:1px solid var(--line)}
.acc__body a{
  display:flex;align-items:center;gap:12px;min-height:56px;padding:var(--space-xs);border-radius:var(--radius-s);
  font-size:16px;line-height:1.4;font-weight:700;color:var(--ink);text-decoration:none;
}
.acc__body a > span:not(.chip){flex:1 1 auto;min-width:0}
.acc__body a:active{background:#fff4e2}
.acc__body .acc__top{color:var(--ink);margin-top:var(--space-xs);background:#fff4e2}

.drow{
  display:flex;align-items:center;gap:var(--space-s);min-height:72px;padding:12px var(--space-s);
  border-radius:var(--radius-m);background:var(--surface);box-shadow:var(--shadow-card);
  font-size:18px;line-height:1.4;font-weight:700;color:var(--ink);text-decoration:none;
}
.drow > span:not(.chip){flex:1 1 auto;min-width:0}
.drow + .drow{margin-top:12px}
.drow:active{background:#fff4e2}

.dwords{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dwords a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:104px;padding:12px 8px;border-radius:var(--radius-m);text-align:center;
  background:var(--surface);box-shadow:var(--shadow-card);
  font-size:16px;line-height:1.3;font-weight:700;color:var(--ink);text-decoration:none;word-break:auto-phrase;
}
.dwords a:active{background:#fff4e2}
@media (min-width:600px){
  .dwords{grid-template-columns:repeat(3,minmax(0,1fr))}
}
html.is-locked,html.is-locked body{overflow:hidden}
.brand__sub{white-space:nowrap}
@media (max-width:359px){
  .hdr .brand__sub,.drawer__head .brand__sub{display:none}
}
@media (max-width:413px){
  .drow{gap:12px;padding:12px}
  .drow .chip--m{width:44px;height:44px}
  .drow .chip--m .ic{width:26px;height:26px}
}

/* section anchors clear the fixed header */
.sec,#main{scroll-margin-top:calc(var(--hdr-h) + var(--space-s))}

/* phone/tablet tabs for 職場の種類から */
.ptabs{display:none}
@media (max-width:1023px){
  .tabs-ready .ptabs{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:var(--space-s);padding:4px;
    border-radius:var(--radius-m);background:#efe6d8;
  }
  .ptab{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:72px;padding:8px 4px;border:0;border-radius:12px;
    background:none;font:inherit;font-size:16px;line-height:1.3;font-weight:700;color:var(--ink-2);cursor:pointer;-webkit-tap-highlight-color:transparent;
    transition:background-color .2s ease,color .2s ease,box-shadow .2s ease;
  }
  .ptab .ic{width:28px;height:28px;color:currentColor}
  .ptab[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(27,35,86,.08),0 4px 12px -6px rgba(27,35,86,.25)}
  .ptab:focus-visible{border-radius:12px}
  .tabs-ready .places > .place[hidden]{display:none}
}

/* bands group blocks by meaning; blocks carry the headings */
.band{padding-block:var(--band)}
.block + .block{margin-top:var(--block-gap)}
.block,.band{scroll-margin-top:calc(var(--hdr-h) + var(--space-s))}
.block__head{max-width:40em;margin:0 auto var(--head-gap);text-align:center}
.block__title{font-size:var(--fs-h2);line-height:1.4;font-weight:700;letter-spacing:.02em}
.block__lead{margin-top:var(--space-s);font-size:var(--fs-lead);line-height:1.7;color:var(--ink-2)}
.block__more{margin-top:var(--space-l);text-align:center}

/* icon chip */
.ic{display:block;flex:none;color:var(--ink)}
.chip{--chip-line:var(--line);flex:none;display:grid;place-items:center;border-radius:50%;background:var(--cream);box-shadow:inset 0 0 0 1px var(--chip-line)}
.chip--l{width:64px;height:64px}.chip--l .ic{width:36px;height:36px}
.chip--m{width:48px;height:48px}.chip--m .ic{width:28px;height:28px}
.chip--s{width:40px;height:40px}.chip--s .ic{width:24px;height:24px}
.chip--med{--chip-line:#cfe0ea;background:#eaf3f8;box-shadow:inset 0 0 0 1px var(--chip-line)}
.chip--care{--chip-line:#f0dcc8;background:#fdf0e4;box-shadow:inset 0 0 0 1px var(--chip-line)}
.arw{flex:none;width:20px;height:20px;color:currentColor;transition:transform .25s ease}
a:hover .arw{transform:translateX(3px)}

/* buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:56px;padding:0 var(--space-m);
  border-radius:999px;font-size:16px;line-height:1.3;font-weight:700;letter-spacing:.04em;text-decoration:none;text-align:center;
  transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,color .2s ease;
}
.btn:focus-visible{border-radius:999px}
.btn--primary{
  padding-right:8px;background:var(--ink);color:var(--cream);
  box-shadow:0 12px 24px -12px rgba(27,35,86,.6),inset 0 0 0 1px rgba(255,255,255,.08);
}
.btn--primary:hover{transform:translateY(-2px);box-shadow:0 16px 28px -12px rgba(27,35,86,.7),inset 0 0 0 1px rgba(255,255,255,.1)}
.btn--primary:active{transform:translateY(0)}
.btn__ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--coral);color:var(--ink);transition:transform .2s ease}
.btn__ic svg{width:20px;height:20px}
.btn--primary:hover .btn__ic{transform:translateX(3px)}
.btn--secondary{
  background:var(--surface);color:var(--ink);
  box-shadow:inset 0 0 0 2px var(--ink),0 8px 16px -12px rgba(27,35,86,.45);
}
.btn--secondary .ic{width:24px;height:24px;color:currentColor}
.btn--secondary:hover{background:var(--ink);color:var(--cream);--ic-accent:var(--marker)}
.btn--secondary:active{transform:translateY(1px)}

/* link tiles: pressable, so they look pressable */
.tiles{display:grid;gap:var(--space-s)}
.tile{
  display:flex;align-items:center;gap:var(--space-s);height:100%;min-height:88px;padding:var(--space-s) 20px;
  border-radius:var(--radius-m);background:#fff;color:var(--ink);text-decoration:none;
  box-shadow:inset 0 0 0 1px var(--line-ui),0 2px 0 rgba(27,35,86,.06);
  font-size:18px;line-height:1.5;font-weight:700;
  transition:transform .2s ease,box-shadow .2s ease;
}
.tile:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 2px var(--ink),0 12px 24px -14px rgba(27,35,86,.45)}
.tile:active{transform:translateY(0)}
.tile:focus-visible{border-radius:var(--radius-m)}
.tile__label{flex:1 1 auto;min-width:0}
.tile__label .x{display:inline-block;margin:0 .25em;color:var(--ink-2)}
.tile__icons{flex:none;display:flex;align-items:center;gap:4px}
.tile__vs{width:16px;height:16px;color:var(--ink-2)}
.tile--term{flex-direction:column;justify-content:center;gap:12px;min-height:148px;padding:var(--space-m) 12px;text-align:center}
.tile--term .tile__label{flex:none}
.tiles > li{display:flex}
.tiles > li > .tile{flex:1 1 auto}
.tiles--6{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:600px){
  .tiles--6{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:768px){
  .tiles{gap:var(--space-m)}
  .tiles--2,.tiles--3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1024px){
  .tiles--3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tiles--6{grid-template-columns:repeat(6,minmax(0,1fr))}
}

/* 職場の種類から: the main block of the page */
.places{display:grid;gap:var(--space-m)}
.place{
  display:flex;flex-direction:column;padding:var(--space-l) var(--space-m) var(--space-m);
  border-radius:var(--radius-l);background:var(--surface);
  box-shadow:0 1px 2px rgba(27,35,86,.06),0 20px 40px -24px rgba(27,35,86,.3);
}
.place--med{background:linear-gradient(180deg,#f2f8fb 0,var(--surface) 160px)}
.place--care{background:linear-gradient(180deg,#fff4ea 0,var(--surface) 160px)}
.place__head{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:var(--space-s) var(--space-s)}
.place__title{font-size:var(--fs-h3);line-height:1.4;font-weight:700;letter-spacing:.02em}
.place__text{grid-column:1 / -1;color:var(--ink-2)}
.place__label{margin-top:var(--space-m);padding-top:20px;border-top:1px solid var(--line);font-size:16px;line-height:1.5;font-weight:700;color:var(--ink-2)}
.place__list{display:grid;gap:var(--space-xs);margin-top:12px}
.pick{
  display:flex;align-items:center;gap:12px;min-height:56px;padding:var(--space-xs) var(--space-s) var(--space-xs) var(--space-xs);
  border-radius:12px;background:#fff;color:var(--ink);text-decoration:none;
  box-shadow:inset 0 0 0 1px var(--line-ui);
  font-size:16px;line-height:1.4;font-weight:700;transition:box-shadow .2s ease,transform .2s ease;
}
.pick > span:not(.chip){flex:1 1 auto;min-width:0}
.pick:hover{box-shadow:inset 0 0 0 2px var(--ink)}
.pick:focus-visible{border-radius:12px}
.place__btn{margin-top:var(--space-m);width:100%;justify-content:space-between;padding-left:var(--space-m)}
.place{min-width:0}
.pick > span:not(.chip),.place__btn > span:first-child{overflow-wrap:anywhere}
@media (min-width:1024px){
  .places{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 var(--gutter)}
  .place{display:grid;grid-template-rows:subgrid;grid-row:span 4;row-gap:0}
  .place__list{align-self:start}
  .place__btn{align-self:end}
}

/* このサイトの読み方: one legend, every row the same shape */
.legend{
  max-width:880px;margin-inline:auto;padding:var(--space-xs) var(--space-l);
  border-radius:var(--radius-l);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line),0 12px 32px -24px rgba(27,35,86,.3);
}
.legend__row{display:grid;grid-template-columns:200px 1fr;align-items:center;gap:var(--space-m);padding:20px 0}
.legend__row + .legend__row{border-top:1px solid var(--line)}
.legend dt{display:flex;align-items:center;gap:var(--space-s)}
.legend dd{margin:0;color:var(--ink);word-break:auto-phrase}
.legend__row--kijun .chip{background:var(--tag-kijun-bg);box-shadow:none}
.legend__row--chosa .chip{background:var(--tag-chosa-bg);box-shadow:none}
.legend__row--mitate .chip{background:var(--tag-mitate-bg);box-shadow:none}
.legend__row--term .chip{background:#efe6d8;box-shadow:none}
.tag{
  display:inline-flex;align-items:center;justify-content:center;min-width:80px;min-height:36px;padding:0 12px;border-radius:var(--radius-s);
  font-size:16px;line-height:1;font-weight:700;letter-spacing:.05em;white-space:nowrap;
}
.tag--kijun{color:var(--tag-kijun-fg);background:var(--tag-kijun-bg)}
.tag--chosa{color:var(--tag-chosa-fg);background:var(--tag-chosa-bg)}
.tag--mitate{color:var(--tag-mitate-fg);background:var(--tag-mitate-bg)}
.tag--term{color:var(--ink);background:#efe6d8}
@media (max-width:767px){
  .legend{padding:var(--space-xs) 20px}
  .legend__row{grid-template-columns:1fr;gap:12px;padding:20px 0}
}

/* phones */
@media (max-width:767px){
  .place{padding:var(--space-m) 20px 20px}
  .tile{font-size:16px;gap:12px;min-height:80px;padding:12px var(--space-s)}
  .tile--term{min-height:128px;padding:20px 8px}
  .tiles--6{gap:12px}
  .tiles--6 .chip--l{width:56px;height:56px}
  .tiles--6 .chip--l .ic{width:32px;height:32px}
  .block__more .btn--secondary{display:flex;width:100%}
  .block__more .btn--secondary > .ic{display:none}
  .tile__vs{display:none}
  .tile__icons{gap:0}
  .tile__icons .chip--m{width:44px;height:44px;box-shadow:inset 0 0 0 1px var(--chip-line),0 0 0 3px #fff}
  .tile__icons .chip--m .ic{width:26px;height:26px}
  .tile__icons .chip + .chip{margin-left:-10px}
}

/* ===== decoration ===== */
/* paper bands: morning light; surface band: fine dots */
.band{position:relative;isolation:isolate;overflow:hidden}
.band > .wrap{position:relative;z-index:1}
.band--paper{
  background:
    radial-gradient(60% 50% at 0% 0%,rgba(255,200,98,.16),transparent 70%),
    radial-gradient(50% 45% at 100% 100%,rgba(169,222,240,.22),transparent 70%),
    var(--paper);
}
.band--surface{
  background:
    radial-gradient(circle,rgba(27,35,86,.07) 1px,transparent 1.5px) 0 0/24px 24px,
    var(--surface);
}
/* sheets: each band after the first rises over the one before it */
.band + .band{margin-top:calc(var(--sheet-r) * -1);border-radius:var(--sheet-r) var(--sheet-r) 0 0;box-shadow:0 -1px 0 var(--line),0 -16px 32px -24px rgba(27,35,86,.25)}
.band:last-child{padding-bottom:calc(var(--band) + var(--sheet-r))}
.foot{position:relative;margin-top:calc(var(--sheet-r) * -1);border-radius:var(--sheet-r) var(--sheet-r) 0 0}
/* lens rings in the corners */
.band__deco{position:absolute;z-index:0;width:var(--ring);height:var(--ring);color:#e6dac6;pointer-events:none}
.band--surface .band__deco{color:#e3e6f0}
.band__deco svg{display:block;width:100%;height:100%;animation:spin 160s linear infinite}
.band__deco--r{top:calc(var(--ring) * -.28);right:calc(var(--ring) * -.32)}
.band__deco--l{bottom:calc(var(--ring) * -.3);left:calc(var(--ring) * -.34)}
.band__deco--rb{bottom:calc(var(--ring) * -.36);right:calc(var(--ring) * -.3)}
/* block headings carry the same yellow marker as the FV headline */
.block__title{
  display:inline;padding:0 .12em;
  background:linear-gradient(180deg,transparent 64%,rgba(255,200,98,.72) 64%,rgba(255,200,98,.72) 92%,transparent 92%);
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
}
.block__lead{margin-top:var(--space-m)}
.block__head .block__lead{display:block}
/* faint icon in the corner of each workplace card */
.place{position:relative;overflow:hidden}
.place > *:not(.place__mark){position:relative;z-index:1}
.place__mark{position:absolute;z-index:0;top:-18px;right:-18px;width:150px;height:150px;color:var(--ink);opacity:.06;--ic-accent:var(--ink);pointer-events:none}
@media (max-width:767px){
  .place__mark{width:120px;height:120px}
  .band__deco{opacity:.7}
}
@media (prefers-reduced-motion:reduce){
  .band__deco svg{animation:none}
}

/* ===== footer ===== */
.foot{background:var(--ink);color:var(--cream);padding-block:var(--space-xl) var(--space-l)}
.foot__in{display:grid;gap:var(--space-l)}
.foot__nav ul{display:flex;flex-wrap:wrap;gap:var(--space-xs) var(--space-m)}
.foot__nav a{display:inline-flex;align-items:center;min-height:44px;font-size:16px;font-weight:500;color:var(--cream);text-underline-offset:.3em}
.foot__nav a:hover{text-decoration-thickness:2px}
.foot :where(a):focus-visible{outline-color:var(--cream)}
.foot__copy{padding-top:var(--space-m);border-top:1px solid rgba(255,248,236,.18);font-size:14px;line-height:1.5;color:#c9cde8}
.foot__copy small{font-size:inherit}
@media (min-width:768px){
  .foot__in{grid-template-columns:auto 1fr;align-items:center;gap:var(--gutter)}
  .foot__nav ul{justify-content:flex-end}
  .foot__copy{grid-column:1 / -1}
}

/* shared keyframes */
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes spin{to{transform:rotate(360deg)}}

/* reduced motion */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ===== article pages ===== */
.is-sub #main{padding-top:calc(var(--hdr-h) + env(safe-area-inset-top))}
.page-top{position:relative;isolation:isolate;overflow:hidden;padding:var(--space-m) 0 var(--space-l)}
.page-top > .wrap{position:relative;z-index:1}

/* breadcrumbs */
.crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;font-size:14px;line-height:1.5;color:var(--ink-2)}
.crumbs li{display:inline-flex;align-items:center}
.crumbs li + li::before{content:"";width:6px;height:6px;margin:0 10px;border-top:1.5px solid var(--ink-2);border-right:1.5px solid var(--ink-2);transform:rotate(45deg)}
.crumbs a{display:inline-flex;align-items:center;min-height:32px;color:var(--ink-2);text-underline-offset:.25em}
.crumbs a:hover{color:var(--ink)}
.crumbs [aria-current]{color:var(--ink);font-weight:700}

/* page heading */
.page-head{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:var(--space-m);margin-top:var(--space-l)}
.chip--xl{width:96px;height:96px}.chip--xl .ic{width:56px;height:56px}
.kind-tag{
  display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;
  font-size:14px;line-height:1;font-weight:700;letter-spacing:.06em;text-decoration:none;color:var(--ink);
}
.kind-tag--care{background:#fdf0e4;box-shadow:inset 0 0 0 1px #e9cfb5}
.kind-tag--med{background:#eaf3f8;box-shadow:inset 0 0 0 1px #c3d7e4}
.kind-tag:hover{box-shadow:inset 0 0 0 2px var(--ink)}
.page-head__title{margin-top:12px;font-size:var(--fs-h1);line-height:1.4;font-weight:700;letter-spacing:.02em;word-break:auto-phrase}
.page-head__meta{display:flex;align-items:center;gap:var(--space-xs);margin-top:12px;font-size:14px;line-height:1.5;color:var(--ink-2)}
.page-head__meta .ic{width:18px;height:18px;color:var(--ink-2)}

.adnote{display:flex;align-items:center;gap:var(--space-xs);margin-top:var(--space-m);font-size:14px;line-height:1.5;color:var(--ink-2)}
.adnote .ic{width:18px;height:18px;color:var(--ink-2)}

.scope{display:grid;gap:12px;margin-top:var(--space-m)}
.scope__item{padding:var(--space-s) 20px;border-radius:var(--radius-m);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.scope__k{display:flex;align-items:center;gap:var(--space-xs);margin-bottom:4px;font-weight:700}
.scope__k .ic{width:20px;height:20px}
.scope__item--yes .scope__k .ic{color:#155e63}
.scope__item--no .scope__k .ic{color:var(--ink-2)}
.scope__item p:not(.scope__k){color:var(--ink-2)}
@media (min-width:768px){
  .scope{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:var(--space-m)}
}

@media (max-width:767px){
  .page-head{grid-template-columns:1fr;gap:var(--space-s);margin-top:var(--space-m)}
  .page-head .chip--xl{width:64px;height:64px}
  .page-head .chip--xl .ic{width:38px;height:38px}
  .article-wrap{padding-top:0;gap:var(--space-m)}
}
@media (min-width:1024px){
  .article-wrap{padding-top:var(--space-l)}
}
.marks-inline{display:flex;flex-wrap:wrap;gap:var(--space-xs) var(--space-m);margin-top:var(--space-m)}
.marks-inline > div{display:flex;align-items:center;gap:var(--space-xs)}
.marks-inline dd{margin:0;font-size:14px;line-height:1.5;color:var(--ink-2)}

/* inline labels inside the text */
.lbl{
  flex:none;display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:6px;
  font-size:14px;line-height:1.2;font-weight:700;letter-spacing:.04em;white-space:nowrap;
}
.lbl--kijun{color:var(--tag-kijun-fg);background:var(--tag-kijun-bg)}
.lbl--chosa{color:var(--tag-chosa-fg);background:var(--tag-chosa-bg)}
.lbl--mitate{color:var(--tag-mitate-fg);background:var(--tag-mitate-bg)}
.lbl--s{min-height:24px;padding:0 8px}

/* layout: contents + article */
.article-wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-l);padding-top:var(--space-l);padding-bottom:var(--space-xxl)}
.article{min-width:0}
@media (min-width:1024px){
  .article-wrap{grid-template-columns:232px minmax(0,800px);justify-content:center;gap:var(--space-xl);padding-top:var(--space-xl)}
}

/* table of contents: chips on phones, a sticky column on PC */
.toc{min-width:0;position:sticky;top:calc(var(--hdr-h) + env(safe-area-inset-top));z-index:5;margin-inline:calc(var(--pad) * -1);padding:var(--space-xs) var(--pad);
  background:rgba(247,241,232,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 -1px 0 var(--line);
  transition:top .35s cubic-bezier(.2,.7,.2,1)}
body:has(.hdr.is-hidden) .toc{top:0}
.toc__k{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.toc__list{display:flex;gap:var(--space-xs);overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.toc__list::-webkit-scrollbar{display:none}
.toc__list a{
  display:inline-flex;align-items:center;min-height:44px;padding:0 var(--space-s);border-radius:999px;white-space:nowrap;
  font-size:16px;font-weight:700;color:var(--ink-2);text-decoration:none;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);
}
.toc__list a[aria-current="true"]{background:var(--ink);color:var(--cream);box-shadow:none}
.toc__list a:focus-visible{border-radius:999px}
@media (min-width:1024px){
  .toc{align-self:start;top:calc(var(--hdr-h) + var(--space-l));margin:0;padding:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
  body:has(.hdr.is-hidden) .toc{top:var(--space-l)}
  .toc__k{position:static;width:auto;height:auto;clip:auto;margin-bottom:12px;font-size:14px;font-weight:700;letter-spacing:.08em;color:var(--ink-2)}
  .toc__list{flex-direction:column;gap:0;overflow:visible;border-left:2px solid var(--line)}
  .toc__list a{
    display:flex;min-height:44px;margin-left:-2px;padding:8px 0 8px var(--space-s);border-radius:0;white-space:normal;
    font-size:16px;font-weight:500;background:none;box-shadow:inset 2px 0 0 transparent;
  }
  .toc__list a:hover{color:var(--ink)}
  .toc__list a[aria-current="true"]{background:none;color:var(--ink);font-weight:700;box-shadow:inset 3px 0 0 var(--ink)}
}

/* article sections */
.sect{scroll-margin-top:calc(var(--hdr-h) + 72px)}
.sect + .sect,.ad + .sect,.sect + .ad{margin-top:var(--space-xl)}
.sect__title{
  display:inline;padding:0 .1em;font-size:var(--fs-h2a);line-height:1.5;font-weight:700;letter-spacing:.02em;
  background:linear-gradient(180deg,transparent 64%,rgba(255,200,98,.72) 64%,rgba(255,200,98,.72) 92%,transparent 92%);
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
}
.sect__title + *{margin-top:var(--space-m)}
@media (min-width:1024px){
  .sect{scroll-margin-top:calc(var(--hdr-h) + var(--space-l))}
}

.article strong{font-weight:700;background:linear-gradient(180deg,transparent 70%,rgba(255,200,98,.5) 70%)}
.article p a,.article dd a{color:var(--ink);text-decoration-thickness:1px;text-underline-offset:.25em}
.article p a:hover,.article dd a:hover{text-decoration-thickness:2px}

/* 要点: one panel, three rows */
.points{border-radius:var(--radius-l);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line),0 12px 32px -24px rgba(27,35,86,.3);padding:0 var(--space-m)}
.point{padding:var(--space-m) 0}
.point__head{display:flex;align-items:center;gap:var(--space-s)}
.point__body{padding-left:calc(48px + var(--space-s))}
.point + .point{border-top:1px solid var(--line)}
.point__title{font-size:18px;line-height:1.5;font-weight:700}
.say{display:grid;grid-template-columns:var(--lbl-w) 1fr;align-items:baseline;gap:12px;margin-top:var(--space-s)}
.say .lbl{margin-top:1px}
.basis{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:var(--space-xs);padding:10px 12px;border-radius:10px;background:var(--paper);font-size:16px;line-height:1.7;color:var(--ink-2)}
.basis__k{flex:none;display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:6px;background:var(--ink);color:var(--cream);font-size:14px;font-weight:700;letter-spacing:.06em}
@media (max-width:767px){
  .points{padding:0 20px}
  .point__head{gap:12px}
  .point__head .chip--m{width:36px;height:36px}
  .point__head .chip--m .ic{width:22px;height:22px}
  .point__body{padding-left:0}
}

/* 基準で決まっていること: one panel of toggles */
.facts{border-radius:var(--radius-l);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);padding:0 var(--space-m) var(--space-xs)}
.facts__bar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-s);padding:var(--space-s) 0;border-bottom:1px solid var(--line)}
.facts__count{font-size:14px;font-weight:700;color:var(--ink-2)}
.facts__all{
  display:inline-flex;align-items:center;min-height:44px;padding:0 var(--space-s);border:0;border-radius:999px;cursor:pointer;
  background:var(--surface);color:var(--ink);font:inherit;font-size:16px;font-weight:700;box-shadow:inset 0 0 0 2px var(--ink);
  transition:background-color .2s ease,color .2s ease;
}
.facts__all:hover{background:var(--ink);color:var(--cream)}
.facts__all:focus-visible{border-radius:999px}
.fact + .fact{border-top:1px solid var(--line)}
.fact summary{
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-s);min-height:60px;padding:12px 0;
  font-weight:700;line-height:1.5;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent;
}
.fact summary::-webkit-details-marker{display:none}
.fact summary:hover .fact__k{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.3em}
.fact summary:focus-visible{border-radius:var(--radius-s)}
.fact__chev{flex:none;width:28px;height:28px;padding:4px;border-radius:50%;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-ui);transition:transform .25s ease,background-color .2s ease}
.fact[open] .fact__chev{transform:rotate(180deg);background:var(--ink);color:var(--cream);box-shadow:none}
.fact__body{padding:0 0 20px}
.fact__src{display:flex;gap:var(--space-xs);margin-top:var(--space-xs);font-size:14px;line-height:1.6;color:var(--ink-2)}
.fact__src .ic{flex:none;width:18px;height:18px;margin-top:3px;color:var(--ink-2)}
.fact:target summary,.fact:target .fact__body{background:linear-gradient(90deg,rgba(255,200,98,.18),transparent)}
@media (max-width:767px){
  .facts{padding:0 20px var(--space-xs)}
}

.callout{display:flex;gap:12px;margin-top:var(--space-m);padding:var(--space-s) 20px;border-radius:var(--radius-m);background:#eef4f8;color:var(--ink)}
.callout .ic{flex:none;width:22px;height:22px;margin-top:2px;color:var(--ink)}

/* 読み解き: facts, then what they let us say */
.reads + .reads{margin-top:var(--space-xl)}
.reads__title{display:flex;align-items:center;gap:12px;margin-bottom:var(--space-m);font-size:var(--fs-h3a);line-height:1.5;font-weight:700}
.logic{border-radius:var(--radius-l);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line),0 12px 32px -24px rgba(27,35,86,.3);overflow:hidden}
.logic + .logic{margin-top:var(--space-m)}
.logic__k{margin-bottom:var(--space-xs);font-size:14px;line-height:1.5;font-weight:700;letter-spacing:.08em;color:var(--ink-2)}
.logic__facts{padding:20px var(--space-m) var(--space-m)}
.logic__fact{display:grid;grid-template-columns:var(--lbl-w) 1fr;align-items:baseline;gap:12px;padding:14px 0}
.say > .lbl,.logic__fact > .lbl,.logic__claim > .lbl{justify-self:stretch;justify-content:center;--lbl-w:64px}
.src-note{display:inline-block;margin-left:.4em;font-size:14px;font-weight:500;color:var(--ink-2)}
.logic__say .src-note{font-weight:500}
.logic__fact + .logic__fact{border-top:1px dashed var(--line)}
.logic__arrow{position:relative;height:0;border-top:1px solid #f0d9cf}
.logic__arrow svg{position:absolute;left:50%;top:0;width:36px;height:36px;padding:7px;border-radius:50%;transform:translate(-50%,-50%);
  background:var(--surface);color:var(--tag-mitate-fg);box-shadow:inset 0 0 0 1px #f0d9cf}
.logic__views{padding:var(--space-m) var(--space-m) var(--space-m);background:#fff6f2}
.logic__views .logic__k{color:var(--tag-mitate-fg)}
.logic__claim + .logic__claim{margin-top:var(--space-m);padding-top:var(--space-m);border-top:1px dashed #f0d9cf}
.logic__claim{display:grid;grid-template-columns:var(--lbl-w) 1fr;align-items:baseline;gap:12px}
.logic__say{font-size:18px;line-height:1.7;font-weight:700;color:var(--ink)}
.logic__basis{grid-column:1;display:flex;align-items:baseline;gap:8px;padding:10px 12px;border-radius:10px;background:#fff;font-size:16px;line-height:1.7;color:var(--ink-2)}
.logic__basis .basis__k{transform:translateY(-1px)}
.lbl__meta{margin-left:2px;font-weight:500;opacity:.85}
@media (max-width:767px){
  .logic__facts{padding:20px 20px var(--space-m)}
  .logic__views{padding:var(--space-m) 20px 20px}
  .logic__basis{grid-column:auto}
  .logic__say{font-size:17px}
}

/* checklist */
.checklist{position:relative;border-radius:var(--radius-l);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);padding:var(--space-xs) var(--space-m) var(--space-xs)}
.checklist__count{position:absolute;top:-14px;right:var(--space-m);display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border-radius:999px;background:var(--ink);color:var(--cream);font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.checklist li + li{border-top:1px solid var(--line)}
.checklist label{display:flex;align-items:flex-start;gap:var(--space-s);min-height:56px;padding:var(--space-s) 0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.checklist input{position:absolute;opacity:0;width:1px;height:1px}
.checklist__box{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 2px var(--line-ui);transition:background-color .15s ease,box-shadow .15s ease}
.checklist__box svg{width:18px;height:18px;color:var(--cream);opacity:0;transform:scale(.6);transition:opacity .15s ease,transform .15s ease}
.checklist input:checked + .checklist__box{background:var(--ink);box-shadow:none}
.checklist input:checked + .checklist__box svg{opacity:1;transform:none}
.checklist input:checked ~ span:last-child{color:var(--ink-2);text-decoration:line-through;text-decoration-thickness:1px}
.checklist input:focus-visible + .checklist__box{outline:3px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 8px var(--marker)}
@media (max-width:767px){
  .checklist{padding:var(--space-xs) 20px}
}

/* ad */
.ad{position:relative;padding:var(--space-l) var(--space-m) var(--space-m);border-radius:var(--radius-l);text-align:center;
  background:repeating-linear-gradient(135deg,rgba(27,35,86,.025) 0 10px,transparent 10px 20px),var(--cream);box-shadow:inset 0 0 0 1px var(--line)}
.ad__label{position:absolute;top:var(--space-s);left:var(--space-m);display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:6px;background:var(--ink-2);color:#fff;font-size:14px;font-weight:700;letter-spacing:.1em}
.ad__text{font-size:18px;font-weight:700}
.ad__btn{margin-top:var(--space-s)}
.ad__note{margin-top:var(--space-xs);font-size:14px;color:var(--ink-2)}
@media (max-width:767px){
  .ad__btn{display:flex;width:100%;justify-content:space-between;padding-left:var(--space-m)}
}

.tiles--article{grid-template-columns:1fr}
@media (min-width:768px){
  .tiles--article{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ===== article parts used across pages ===== */
.page-lead{max-width:40em;margin-top:var(--space-m);font-size:var(--fs-lead);line-height:1.8;color:var(--ink)}
.page-lead + .page-lead{margin-top:var(--space-s)}
.page-head__pair{display:flex;align-items:center}
.page-head__pair .chip + .chip{margin-left:-16px;box-shadow:inset 0 0 0 1px var(--chip-line),0 0 0 4px var(--paper)}
.kind-tag:not(.kind-tag--care):not(.kind-tag--med){background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-ui)}
.article-wrap--solo{grid-template-columns:minmax(0,800px);justify-content:center}
.sect--lead > * + *{margin-top:var(--space-m)}
.sect--lead + .sect{margin-top:var(--space-xl)}
.article .sect > * + *{margin-top:var(--space-m)}
.article .sect > .sect__title + *{margin-top:var(--space-m)}
.prose{max-width:40em}

/* the page's answer, written in bold in the manuscript */
.answer{padding:var(--space-m);border-radius:var(--radius-l);background:var(--surface);box-shadow:inset 4px 0 0 var(--marker),inset 0 0 0 1px var(--line);font-size:var(--fs-lead);line-height:1.8}
.answer strong{display:block;margin-bottom:6px;font-size:20px;line-height:1.6;background:none}

/* source line under a block */
.src-line{display:flex;gap:var(--space-xs);font-size:14px;line-height:1.6;color:var(--ink-2)}
.src-line .ic{flex:none;width:18px;height:18px;margin-top:3px;color:var(--ink-2)}

/* sources at the end of a page: folded */
.sources{border-radius:var(--radius-l);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);padding:0 var(--space-m)}
.sources summary{display:flex;align-items:center;justify-content:space-between;gap:var(--space-s);min-height:60px;font-weight:700;cursor:pointer;list-style:none}
.sources summary::-webkit-details-marker{display:none}
.sources summary:focus-visible{border-radius:var(--radius-s)}
.sources[open] .fact__chev{transform:rotate(180deg);background:var(--ink);color:var(--cream);box-shadow:none}
.sources__list{padding:0 0 var(--space-m)}
.sources__list li{display:flex;gap:var(--space-xs);padding:12px 0;font-size:16px;line-height:1.7;color:var(--ink-2)}
.sources__list li + li{border-top:1px dashed var(--line)}
.sources__list .ic{flex:none;width:18px;height:18px;margin-top:3px;color:var(--ink-2)}

/* plain lists (policy pages) */
.plain{border-radius:var(--radius-l);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);padding:0 var(--space-m)}
.plain li{display:grid;gap:4px;padding:var(--space-s) 0}
.plain li + li{border-top:1px solid var(--line)}
.plain__k{font-weight:700}
@media (min-width:768px){
  .plain li:has(.plain__k){grid-template-columns:200px 1fr;gap:var(--space-m)}
}

/* single labelled paragraph, and rows with no label */
.logic--single .logic__facts{padding-top:var(--space-xs);padding-bottom:var(--space-xs)}
.logic__fact--plain{grid-template-columns:1fr}
.say--plain{grid-template-columns:1fr}

/* tables: a real table on PC, one card per row on phones */
.dtable{border-radius:var(--radius-l);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);overflow-x:auto}
.dtable:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.dtable table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.7}
.dtable th,.dtable td{padding:14px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.dtable thead th{background:var(--paper);font-size:16px;font-weight:700;color:var(--ink-2);white-space:nowrap}
.dtable thead th:first-child{border-top-left-radius:var(--radius-l)}
.dtable thead th:last-child{border-top-right-radius:var(--radius-l)}
.dtable tbody tr:last-child > *{border-bottom:0}
.dtable tbody th{font-weight:700;min-width:8em}
.dtable a{color:var(--ink);text-underline-offset:.25em}
.dtable p + p{margin-top:8px}
.cell-say{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:8px}
.cell-say .lbl{min-height:24px;padding:0 8px;font-size:14px}
.dtable__none{color:var(--ink-2)}
.dtable--wide table{min-width:860px}
@media (max-width:767px){
  .dtable{overflow:visible;background:none;box-shadow:none;border-radius:0}
  .dtable table,.dtable tbody,.dtable tr,.dtable th,.dtable td{display:block;width:100%}
  .dtable--wide table{min-width:0}
  .dtable thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .dtable tbody tr{margin-bottom:var(--space-s);border-radius:var(--radius-m);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
  .dtable tbody th{padding:12px 16px;background:var(--paper);border-bottom:1px solid var(--line);font-size:16px}
  .dtable td{padding:12px 16px;font-size:16px}
  .dtable tbody tr:last-child > *{border-bottom:1px solid var(--line)}
  .dtable tbody tr > *:last-child{border-bottom:0}
}

/* wide tables use the full content width on PC */
@media (min-width:1024px){
  .article-wrap--solo .dtable--wide{position:relative;left:50%;width:min(var(--content),calc(100vw - var(--pad) * 2));transform:translateX(-50%)}
  .article-wrap--solo .dtable--wide table{min-width:0}
}

.answer--top{max-width:52em;margin-top:var(--space-m)}

/* date the sources were checked, at the end of the article */
.checked-date{display:flex;align-items:center;gap:var(--space-xs);margin-top:var(--space-xl);padding-top:var(--space-m);border-top:1px solid var(--line);font-size:14px;line-height:1.5;color:var(--ink-2)}
.checked-date .ic{width:18px;height:18px;color:var(--ink-2)}

/* the lead sits under the title and shares its left edge */
.page-head{align-items:start}
.page-head > .chip,.page-head__pair{margin-top:6px}
.page-head__body .page-lead{margin-top:var(--space-s);word-break:auto-phrase}
.page-head__body .answer--top{margin-top:var(--space-m)}

/* comparison tables: one block per row, places side by side */
.cmp{border-radius:var(--radius-l);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.cmp__head{display:none}
.cmp__col{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--ink)}
.cmp__col .chip--s{width:32px;height:32px}
.cmp__col .chip--s .ic{width:20px;height:20px}
.cmp__col a{color:var(--ink);text-underline-offset:.25em}
.cmp__row{padding:20px var(--space-m)}
.cmp__row + .cmp__row{border-top:1px solid var(--line)}
.cmp__k{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-size:18px;line-height:1.5;font-weight:700}
.cmp__k .chip--s{width:36px;height:36px}
.cmp__k a{color:var(--ink);text-underline-offset:.25em}
.cmp__cells{display:grid;gap:12px}
.cmp__cell{padding:var(--space-s);border-radius:var(--radius-m);background:var(--paper)}
.cmp__who{margin-bottom:10px;font-size:16px}
.cmp__say{display:grid;gap:6px}
.cmp__say + .cmp__say,.cmp__text + .cmp__say,.cmp__say + .cmp__text{margin-top:12px}
.cmp__say .lbl{justify-self:start}
.cmp__none{color:var(--ink-2)}
.cmp + .callout{margin-top:var(--space-s)}
@media (min-width:768px){
  .cmp__head{display:grid;grid-template-columns:180px 1fr;gap:var(--space-m);align-items:center;padding:14px var(--space-m);background:#efe6d8;border-bottom:1px solid var(--line)}
  .cmp__corner{font-size:14px;font-weight:700;color:var(--ink-2)}
  .cmp__heads{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:var(--space-m)}
  .cmp--2{--n:2}.cmp--3{--n:3}.cmp--4{--n:4}
  .cmp__row{display:grid;grid-template-columns:180px 1fr;gap:var(--space-m);align-items:start}
  .cmp__k{margin:0;padding-top:4px;font-size:16px}
  .cmp__cells{grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:var(--space-m)}
  .cmp__cell{padding:0;background:none}
  .cmp__who{display:none}
}

/* contact form: a Google Form shown inside the page; the height fits the form so it does not scroll inside */
.gform{margin-top:var(--space-l);border-radius:var(--radius-l);background:#fff;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.gform iframe{display:block;width:100%;height:1000px;border:0}
.gform__alt{margin-top:var(--space-s)}
@media (max-width:479px){
  .gform iframe{height:1150px}
}


/* ===== review fixes ===== */
/* rows reached by an in-page link stop below the fixed header and the contents strip */
.fact,.sources,.cmp,.facts{scroll-margin-top:calc(var(--hdr-h) + 80px)}
@media (min-width:1024px){
  .fact,.sources,.cmp,.facts{scroll-margin-top:calc(var(--hdr-h) + var(--space-l))}
}

/* focus: ink ring plus the yellow outer ring, also on parts that have their own shadow */
:is(.pick,.tile,.btn,.facts__all,.drow,.toc__list a,.acc__body a,.gnav__link,.ptab,.btn-sub,.cta,.cue,.menu-btn,.close-btn,.fact summary,.sources summary,.acc summary,.src-link,.kind-tag,.term):focus-visible{
  outline:3px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 8px var(--marker)!important;
}
.btn--primary:focus-visible,.cta:focus-visible{outline-offset:3px}

/* phones: the label sits above its text, the text uses the full width */
@media (max-width:767px){
  .say,.logic__fact,.logic__claim{grid-template-columns:1fr;gap:6px}
  .say > .lbl,.logic__fact > .lbl,.logic__claim > .lbl{justify-self:start;justify-content:flex-start}
}

/* what to check, at the end of a box */
.logic__checks{padding:var(--space-s) var(--space-m) var(--space-m);border-top:1px solid var(--line);background:var(--surface)}
.logic__checks li{display:flex;gap:10px;align-items:flex-start;padding:6px 0}
.logic__checks .ic{flex:none;width:20px;height:20px;margin-top:4px;color:#155e63}
.logic__checks .logic__k{color:#155e63}
@media (max-width:767px){
  .logic__checks{padding:var(--space-s) 20px 20px}
}
/* a box of facts that only adds to the box above it */
.logic--note{background:#eef4f8;box-shadow:none}
.logic--note .logic__facts{background:none}

/* sub-headings without an icon keep their alignment */
.reads__title:not(:has(.chip)){gap:0}

/* answer line with a label in the page head */
.page-lead--say{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 12px}

/* a plain note after an estimate in a comparison cell */
.cmp__text--note{margin-top:10px;font-size:16px;color:var(--ink-2)}

/* comparison names: break between the two places, not after the arrow */
.nw{white-space:nowrap}

/* links to the primary sources */
.src-links{display:inline-flex;flex-wrap:wrap;gap:6px 10px;margin-left:8px;vertical-align:baseline}
.src-link{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:0 10px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--line-ui);font-size:14px;font-weight:700;color:var(--ink);text-decoration:none;white-space:nowrap}
.src-link svg{width:14px;height:14px}
.src-link:hover{box-shadow:inset 0 0 0 2px var(--ink)}
.fact__src{flex-wrap:wrap}

/* table: labels inside cells for the phone card view */
.dtable__lbl{display:none}
@media (max-width:767px){
  .dtable__lbl{display:block;margin-bottom:4px;font-size:16px;font-weight:700;color:var(--ink-2)}
  .dtable__lbl a{color:var(--ink-2)}
}
/* header links are big enough to press */
.dtable thead a,.cmp__col a,.cmp__k a{display:inline-flex;align-items:center;min-height:32px}

/* wide tables that scroll sideways show a shadow at the edge that can still move */
@media (max-width:1023px){
  .dtable--wide{
    background:
      linear-gradient(90deg,var(--surface) 30%,rgba(255,253,248,0)) left center/40px 100% no-repeat local,
      linear-gradient(270deg,var(--surface) 30%,rgba(255,253,248,0)) right center/40px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%,rgba(27,35,86,.18),transparent) left center/14px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%,rgba(27,35,86,.18),transparent) right center/14px 100% no-repeat scroll,
      var(--surface);
  }
}
@media (max-width:767px){
  .dtable--wide{background:none}
}

/* phone contents strip: fade at the right edge so more items read as more */
@media (max-width:1023px){
  .toc__list{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);padding-right:32px}
}

.ptab__t{display:block;line-height:1.25;word-break:keep-all}

/* 訪問看護: one wide card under the three workplace cards */
.place--wide{margin-top:var(--space-m);grid-template-rows:none;grid-row:auto}
@media (min-width:768px){
  .place--wide{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--space-m)}
  .place--wide .place__btn{margin-top:0;width:auto;min-width:280px}
}
@media (min-width:1024px){.mega__grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* a 【調査】 label in front of a fact row whose source is a survey */
.fact summary > .lbl{flex:none}
.fact summary > .lbl + .fact__k{flex:1 1 auto}
/* long place names in the row head wrap inside the 180px column instead of running into the cells */
.cmp__k > span:not(.chip){min-width:0}
.cmp__k > span:not(.chip),.cmp__k a{overflow-wrap:anywhere;word-break:normal}
