/* やさしいKAIFUKU 介護用語集（sub.css のあとに読み込む） */
.kf .yg-sec{padding-top:0;padding-bottom:72px}
.kf .yg-wrap{max-width:1080px}
.kf .sr,.yg-page .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- 検索（画面の上に固定） ---------- */
.kf .yg-search{position:sticky;top:70px;z-index:20;margin:0 -24px;padding:22px 24px 12px;background:rgba(250,247,241,0.96);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid transparent;transition:border-color .2s,box-shadow .2s}
.kf .yg-search.is-stuck{border-bottom-color:#E8E0D0;box-shadow:0 12px 24px -22px rgba(40,25,10,0.6)}
.kf .yg-search-form{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.kf .yg-search-box{position:relative;flex:1 1 420px;min-width:0}
.kf .yg-search-ico{position:absolute;left:16px;top:50%;width:22px;height:22px;transform:translateY(-50%);fill:none;stroke:#A8873A;stroke-width:2.2;stroke-linecap:round;pointer-events:none}
.kf .yg-search-box input{width:100%;height:56px;box-sizing:border-box;padding:0 48px 0 50px;border:1.5px solid #D9CDB2;border-radius:999px;background:#FFFFFF;font:17px/1 'BIZ UDPGothic',sans-serif;color:#2A2233;box-shadow:0 10px 26px -20px rgba(60,40,10,0.55);-webkit-appearance:none;appearance:none}
.kf .yg-search-box input::placeholder{color:#9A90A6;font-size:15px}
.kf .yg-search-box input::-webkit-search-cancel-button{display:none}
.kf .yg-search-box input:focus{outline:none;border-color:#A8873A;box-shadow:0 0 0 4px rgba(201,168,92,0.22)}
.kf .yg-clear{position:absolute;right:10px;top:50%;width:36px;height:36px;transform:translateY(-50%);border:0;border-radius:50%;background:#F1ECF7;color:#5B4A73;font:700 20px/1 sans-serif;cursor:pointer}
.kf .yg-full{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:#3F3848;cursor:pointer;line-height:2.2}
.kf .yg-full input{width:20px;height:20px;accent-color:#5B4A73}
.kf .yg-heads{display:flex;gap:6px;margin:14px 0 0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px}
.kf .yg-heads::-webkit-scrollbar{display:none}
.kf .yg-head{flex:none;min-width:46px;height:40px;padding:0 12px;border:1px solid #DCD3C2;border-radius:10px;background:#FFFFFF;color:#3E3152;font:700 16px/1 'BIZ UDPGothic',sans-serif;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.kf .yg-head:hover{border-color:#C9A85C}
.kf .yg-head.is-on{background:#2E2638;border-color:#2E2638;color:#E9D59E}
.kf .yg-head:focus-visible,.kf .yg-card:focus-visible,.kf .yg-tab:focus-visible,.kf .yg-more:focus-visible{outline:2px solid #5B4A73;outline-offset:2px}

/* ---------- パスワードの案内（一覧の上） ---------- */
.kf .yg-lock{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin:18px 0 0;padding:18px 22px;border-radius:14px;background:linear-gradient(135deg,#2E2638,#3B3049);color:#FFFFFF;border-top:2px solid #C9A85C}
.kf .yg-lock-txt{flex:1 1 380px;min-width:0}
.kf .yg-lock-h{display:flex;align-items:flex-start;gap:10px;margin:0;font-weight:700;font-size:15.5px;line-height:2.2}
.kf .yg-lock-h svg{flex:none;width:22px;height:22px;margin-top:6px;fill:none;stroke:#E9D59E;stroke-width:2;stroke-linecap:round}
.kf .yg-lock-p{margin:2px 0 0 32px;font-size:13.5px;line-height:2.1;color:#D6CEE0}
.kf .yg-lock-p a{color:#E9D59E;font-weight:700}
.kf .yg-lock .kr-t{color:#E4DCEE}
.kf .yg-lock-soon{margin:0;font-size:14px;color:#E9D59E}
.kf .yg-pw{display:flex;flex-wrap:wrap;gap:8px;flex:0 1 360px}
.kf .yg-pw input{flex:1;min-width:0;height:48px;box-sizing:border-box;padding:0 14px;border:1px solid #CFC6D8;border-radius:10px;background:#FFFFFF;font:17px 'BIZ UDPGothic',sans-serif;letter-spacing:0.06em;color:#2A2233}
.kf .yg-pw input:focus{outline:2px solid #C9A85C;outline-offset:1px}
.kf .yg-pw-go{flex:none;height:48px;padding:0 22px;border:0;border-radius:10px;background:linear-gradient(135deg,#E2C77E,#A8873A);color:#2A2233;font:700 16px 'BIZ UDPGothic',sans-serif;cursor:pointer;box-shadow:0 8px 18px -10px rgba(168,135,58,0.9)}
.kf .yg-pw-go:disabled{opacity:.6;cursor:wait}
.kf .yg-pw-err{flex-basis:100%;margin:0;padding:6px 12px;border-radius:8px;background:#FBEDEC;color:#B0352A;font-size:13.5px;line-height:2}

/* ---------- 一覧 ---------- */
.kf .yg-count{margin:20px 0 10px;font-size:14px;color:#5E5668}
.kf .yg-count #yg-count-n{font:600 26px/1 'Cormorant Garamond',Georgia,serif;color:#A8873A;margin-right:3px}
.kf .yg-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.kf .yg-list li{margin:0;min-width:0}
.kf .yg-card{position:relative;display:flex;flex-direction:column;justify-content:center;gap:2px;height:100%;min-height:84px;box-sizing:border-box;padding:22px 44px 12px 18px;background:#FFFFFF;border:1px solid #E8E0D0;border-radius:12px;color:#2A2233;text-decoration:none;box-shadow:0 10px 24px -22px rgba(60,40,10,0.55);transition:transform .15s,border-color .15s,box-shadow .15s}
.kf .yg-card::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-4px;border-top:2px solid #C9A85C;border-right:2px solid #C9A85C;transform:rotate(45deg)}
.kf .yg-card:hover{transform:translateY(-2px);border-color:#D9C48E;box-shadow:0 16px 30px -22px rgba(60,40,10,0.6)}
.kf .yg-card-w{font:700 18px/1.9 'Noto Serif JP',serif;word-break:break-word;overflow-wrap:anywhere}
.kf .yg-card-w .kr-t{font-size:max(0.5em,9px) !important;color:#7A6E86}
.kf .yg-card-a{font-size:12.5px;line-height:1.7;color:#7A6E86;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kf .yg-card-img{position:absolute;right:36px;top:10px;width:18px;height:18px;fill:none;stroke:#B9A574;stroke-width:1.6;stroke-linejoin:round}
.kf .yg-empty{margin:30px 0;padding:26px;border:1px dashed #D9CDB2;border-radius:12px;text-align:center;font-size:15px;line-height:2.2;color:#5E5668}
.kf .yg-more-wrap{margin:26px 0 0;text-align:center}
.kf .yg-more{min-width:220px;height:50px;padding:0 26px;border:1px solid #CFC6D8;border-radius:999px;background:#FFFFFF;color:#3E3152;font:700 15px 'BIZ UDPGothic',sans-serif;cursor:pointer}
.kf .yg-more:hover{border-color:#5B4A73}

/* ---------- 用語のページ ---------- */
.kf .yg-term-sec{padding-top:26px}
.kf .yg-term-wrap{max-width:820px}
.kf .yg-term{background:#FFFFFF;border:1px solid #E8E0D0;border-top:3px solid #C9A85C;border-radius:16px;box-shadow:0 26px 60px -40px rgba(40,25,10,0.6);overflow:hidden}
.kf .yg-term-head{position:relative;padding:34px 36px 26px;background:radial-gradient(120% 160% at 0% 0%,#FFFDF6 0%,#FFFFFF 60%);border-bottom:1px solid #F0E9DA}
.kf .yg-term-head::after{content:"";position:absolute;right:-60px;top:-60px;width:200px;height:200px;border-radius:50%;border:1px solid rgba(201,168,92,0.22);pointer-events:none}
.kf .yg-term-en{margin:0;font:italic 500 17px/1.4 'Cormorant Garamond',Georgia,serif;letter-spacing:0.14em;color:#A8873A}
.kf .yg-term-en span{display:inline-grid;place-items:center;min-width:26px;height:26px;margin-left:8px;padding:0 6px;border-radius:7px;background:#2E2638;color:#E9D59E;font:700 13px/1 'BIZ UDPGothic',sans-serif;font-style:normal;letter-spacing:0;vertical-align:2px}
.kf .yg-term-h{margin:18px 0 4px;font:700 34px/1.9 'Noto Serif JP',serif;letter-spacing:0.03em;color:#2A2233;word-break:break-word;overflow-wrap:anywhere}
.kf .yg-term-h .kr-t{font-size:max(0.42em,11px) !important;color:#7A6E86}
.kf .yg-term-yomi{margin:0;font-size:15px;color:#3F3848;line-height:2}
.kf .yg-term-yomi > span,.kf .yg-term-alias-l{display:inline-block;margin-right:10px;padding:1px 10px 0;border-radius:999px;background:#F6F1E4;font-size:12px;color:#5E5668;line-height:2}
.kf .yg-term-alias{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 0}
.kf .yg-chip{display:inline-block;padding:2px 12px 1px;border:1px solid #DCD3C2;border-radius:999px;font-size:14px;line-height:1.9;color:#3E3152;background:#FFFFFF}
.kf .yg-draft{margin:12px 0 0;padding:6px 12px;border-radius:8px;background:#FFF4D6;color:#7A5B00;font-size:13px}

.kf .yg-blk{padding:26px 36px 28px;border-bottom:1px solid #F0E9DA}
.kf .yg-blk:last-child{border-bottom:0}
.kf .yg-blk-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.kf .yg-blk-h{margin:0;padding-left:12px;border-left:3px solid #C9A85C;font:700 19px/2 'Noto Serif JP',serif;color:#2A2233}
.kf .yg-blk-h span[lang="en"]{margin-left:6px;font:italic 500 16px 'Cormorant Garamond',Georgia,serif;color:#A8873A}
.kf .yg-text p{margin:0;font-size:17px;line-height:2.25;color:#2F2838;text-align:left;word-break:normal;line-break:strict;overflow-wrap:anywhere}
.kf .yg-text-kana p{font-size:18px;letter-spacing:0.04em}
.kf .yg-text-ruby p{line-height:2.7}
.kf .yg-text-ruby .kr-t{font-size:max(0.5em,9px) !important;color:#6E6280}
html.kf-noruby .kf .yg-text-ruby p{line-height:2.25}
.kf .yg-eng .yg-text p{font-family:Georgia,'Times New Roman',serif;font-size:17px;line-height:1.9}
.kf .yg-tabs{display:inline-flex;padding:3px;border-radius:999px;background:#F1ECF7}
.kf .yg-tab{min-width:84px;height:38px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:#5B4A73;font:700 14px 'BIZ UDPGothic',sans-serif;cursor:pointer}
.kf .yg-tab.is-on{background:#2E2638;color:#E9D59E}
.kf .yg-tab.is-on .kr-t{color:#CFC4DC}

.kf .yg-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kf .yg-gallery.is-one{grid-template-columns:1fr}
.kf .yg-shot{display:flex;align-items:center;justify-content:center;padding:10px;border:1px solid #EFE7D6;border-radius:12px;background:#FBFAF6;cursor:zoom-in}
.kf .yg-shot img,.yg-zoom img{-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none}
.kf .yg-shot img{display:block;max-width:100%;max-height:420px;height:auto;border-radius:6px}
.kf .yg-imgs-note{margin:8px 0 0;font-size:13px;color:#7A6E86}
.kf .yg-doclist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.kf .yg-doclist a{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid #E8E0D0;border-radius:10px;color:#3E3152;text-decoration:none;font-size:15px}
.kf .yg-ext{flex:none;padding:2px 8px;border-radius:6px;background:#2E2638;color:#E9D59E;font:700 11px/1.6 'BIZ UDPGothic',sans-serif}
.kf .yg-none{margin:0;padding:26px 36px;color:#5E5668}

/* パスワード未入力のとき */
.kf .yg-locked{position:relative;padding-top:30px;padding-bottom:34px;overflow:hidden}
.kf .yg-ghost{display:grid;gap:12px;filter:blur(1px);opacity:.55}
.kf .yg-ghost span{display:block;height:14px;border-radius:8px;background:linear-gradient(90deg,#EFE9DC,#F7F3EA)}
.kf .yg-ghost span.s{width:60%}
.kf .yg-locked-in{position:relative;max-width:500px;margin:-40px auto 0;padding:26px 26px 22px;border:1px solid #E8E0D0;border-radius:14px;background:rgba(255,255,255,0.97);box-shadow:0 20px 44px -30px rgba(40,25,10,0.6);text-align:center}
.kf .yg-locked-ico{margin:0}
.kf .yg-locked-ico svg{width:44px;height:44px;padding:10px;border-radius:50%;box-sizing:border-box;background:linear-gradient(140deg,#F6E7B8,#C9A85C 70%,#A8863E);fill:none;stroke:#2E2638;stroke-width:1.8;stroke-linecap:round}
.kf .yg-locked-h{margin:10px 0 6px;font:700 19px/2.1 'Noto Serif JP',serif;color:#2A2233}
.kf .yg-locked-p{margin:0 0 14px;font-size:14.5px;line-height:2.2;color:#3F3848;text-align:left}
.kf .yg-pw-lg{flex:none}
.kf .yg-pw-lg input{height:52px}
.kf .yg-pw-lg .yg-pw-go{height:52px}
.kf .yg-locked-help{margin:16px 0 0;font-size:14px;line-height:2.2;color:#5E5668}
.kf .yg-locked-help a{font-weight:700;color:#5B4A73}

/* 前後・一覧へ */
.kf .yg-pager{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;margin:26px 0 0}
.kf .yg-pager a{color:#3E3152;text-decoration:none}
.kf .yg-prev,.kf .yg-next{display:flex;flex-direction:column;gap:0;min-width:0;padding:10px 14px;border:1px solid #E8E0D0;border-radius:12px;background:#FFFFFF;font:700 15px/1.9 'Noto Serif JP',serif}
.kf .yg-next{text-align:right}
.kf .yg-prev:hover,.kf .yg-next:hover{border-color:#D9C48E}
.kf .yg-pager-l{font:400 12px/1.8 'BIZ UDPGothic',sans-serif;color:#7A6E86}
.kf .yg-all{padding:10px 20px 8px;border:1px solid #CFC6D8;border-radius:999px;background:#FFFFFF;font-size:14px;font-weight:700;white-space:nowrap}
.kf .yg-mini{display:flex;gap:8px;max-width:520px;margin:26px auto 0}
.kf .yg-mini input{flex:1;min-width:0;height:48px;box-sizing:border-box;padding:0 18px;border:1px solid #D9CDB2;border-radius:999px;background:#FFFFFF;font:16px 'BIZ UDPGothic',sans-serif;-webkit-appearance:none;appearance:none}
.kf .yg-mini button{flex:none;height:48px;padding:0 22px;border:0;border-radius:999px;background:#2E2638;color:#E9D59E;font:700 15px 'BIZ UDPGothic',sans-serif;cursor:pointer}

/* 画像の拡大 */
.yg-zoom{max-width:min(96vw,1100px);max-height:92vh;padding:0;border:0;border-radius:12px;background:#FFFFFF;box-shadow:0 30px 80px rgba(0,0,0,0.5)}
.yg-zoom::backdrop{background:rgba(20,15,26,0.78)}
.yg-zoom img{display:block;max-width:100%;max-height:92vh;margin:0 auto}
.yg-zoom-x{position:absolute;right:8px;top:8px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(46,38,56,0.85);color:#FFFFFF;font:700 24px/1 sans-serif;cursor:pointer}

/* ---------- 画面の幅 ---------- */
@media (max-width:900px){
.kf .yg-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
.kf .yg-search{top:66px;margin:0 -14px;padding:14px 14px 10px}
.kf .yg-search-box{flex-basis:100%}
.kf .yg-search-box input{height:52px;font-size:16px}
.kf .yg-search-box input::placeholder{font-size:13.5px}
.kf .yg-heads{margin-top:10px;gap:5px}
.kf .yg-head{min-width:42px;height:38px;padding:0 10px;font-size:15px}
.kf .yg-lock{padding:16px}
.kf .yg-lock-p{margin-left:0}
.kf .yg-pw{flex-basis:100%}
.kf .yg-list{grid-template-columns:1fr;gap:8px}
.kf .yg-card{min-height:70px;padding:18px 40px 10px 16px}
.kf .yg-card-w{font-size:17px}
.kf .yg-term-sec{padding-top:16px}
.kf .yg-term-head{padding:26px 18px 20px}
.kf .yg-term-h{font-size:27px}
.kf .yg-blk{padding:22px 18px 24px}
.kf .yg-text p{font-size:16px;line-height:2.2}
.kf .yg-text-kana p{font-size:17px}
.kf .yg-gallery{grid-template-columns:1fr}
.kf .yg-locked-in{padding:22px 16px 18px}
.kf .yg-pager{grid-template-columns:1fr 1fr}
.kf .yg-all{grid-column:1 / -1;grid-row:2;text-align:center}
.kf .yg-prev,.kf .yg-next{font-size:14px}
}

/* やさしいKAIFUKU が無効のとき（予備のデザイン） */
.yg-standalone{margin:0;background:#FAF7F1;font-family:'BIZ UDPGothic','Hiragino Sans',sans-serif;color:#2A2233}
.yg-standalone .wrap{max-width:1120px;margin:0 auto;padding:0 24px;box-sizing:border-box}
.yg-standalone .yg-sa-hdr{position:sticky;top:0;z-index:25;height:70px;display:flex;align-items:center;background:#2E2638}
.yg-standalone .yg-sa-hdr a{color:#E9D59E;font-weight:700;text-decoration:none}
.yg-standalone .sub-hero{padding:40px 0;text-align:center;background:#2E2638;color:#FFFFFF}
.yg-standalone ruby rt{font-size:0.5em;color:#7A6E86}
