@charset "utf-8";
/*
 * TUTURIGACHI 2026 / 総務部
 * Copyright (C) 2026 Tuturigachi Language Solutions Corp. All Rights Reserved.
 * kairan-slip.css  資料の回覧票
 */

.ks, .ks-exit { --hk-green: #30752a; --hk-green-hi: #3a8433; --hk-green-lo: #275f22; --hk-cream: #f2eebc; --hk-cream-hi: #f7f4d4; --hk-arrow: #cf3f2b; --ks-shu: #c8322a; }
.hk-end:has(> .ks) { align-items: flex-end; }

.ks {
  position: relative; box-sizing: border-box; flex: none; width: 512px; max-width: 100%; margin: 0; padding: 10px 12px 9px;
  font: 11px/1.5 var(--font-agency-ja, sans-serif); color: var(--sumi, #2b2f30); text-align: left;
  background: #fff; border: 1px solid var(--sumi, #2b2f30);
  box-shadow: 2px 2px 0 var(--shironezumi, #e9edee);
}

/* ---- 表題 ---- */
.ks__head { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 6px; padding: 0 0 6px; border-bottom: 1.5px solid var(--sumi, #2b2f30); }
.ks__title { margin: 0; font: 600 19px/1 var(--font-agency-heading, serif); letter-spacing: .7em; white-space: nowrap; }
.ks__done { display: flex; align-items: center; gap: 5px; flex: none; align-self: center; }
.ks__buji { display: block; width: 30px; height: auto; transform: rotate(8deg); }
.ks__done-text { font-size: 10px; line-height: 1; letter-spacing: .12em; color: var(--sumi-sub, #54595a); }
.ks__meta { display: grid; grid-template-columns: auto auto; margin: 0 0 0 auto; font-size: 10.5px; line-height: 1.35; border-top: 1px solid var(--jimu-gray-500, #7b8283); border-left: 1px solid var(--jimu-gray-500, #7b8283); }
.ks__meta dt, .ks__meta dd { margin: 0; padding: 2px 7px; border-right: 1px solid var(--jimu-gray-500, #7b8283); border-bottom: 1px solid var(--jimu-gray-500, #7b8283); white-space: nowrap; }
.ks__meta dt { color: var(--sumi-sub, #54595a); background: var(--shironezumi-50, #f4f7f8); letter-spacing: .08em; }
.ks__meta dd { font-family: var(--font-agency-heading, serif); font-size: 11.5px; }
.ks__lead { word-break: keep-all; overflow-wrap: anywhere; margin: 0 0 7px; font-size: 10.5px; line-height: 1.6; color: var(--sumi-sub, #54595a); }

.ks__grid { width: 100%; margin: 0; border-collapse: collapse; table-layout: fixed; }
.ks__grid col.ks__c { width: 66px; }
.ks__grid col.ks__c-gap { width: 10px; }
.ks__grid th, .ks__grid td { padding: 0; border: 1px solid var(--sumi, #2b2f30); text-align: center; vertical-align: middle; }
.ks__grid th { word-break: keep-all; height: 18px; font-weight: normal; font-size: 10px; line-height: 1.2; letter-spacing: .06em; color: var(--sumi-sub, #54595a); background: var(--shironezumi-50, #f4f7f8); }
.ks__grid th.ks__h-frog, .ks__grid th.ks__h-care { letter-spacing: 0; }
.ks__grid .ks__gap { border: 0; background: none; }
.ks__marks td { height: 60px; }
.ks__dates td { height: 17px; font: 10px/1 var(--font-dates, sans-serif); letter-spacing: .02em; color: var(--sumi-sub, #54595a); }
.ks__dates time { white-space: nowrap; }
.ks__grid .ks__care { border-left-width: 3px; border-left-style: double; }

.ks__mark { position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; height: 100%; min-height: 44px; margin: 0; padding: 0; color: var(--ks-shu); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ks a.ks__mark, .ks a.ks__mark:visited, .ks a.ks__mark:hover { color: var(--ks-shu); cursor: pointer; }
.ks__name { display: block; padding: 0 3px; font: 11px/1.25 var(--font-agency-heading, serif); word-break: break-all; }
.ks__mark.is-drawn .ks__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ks__seal { display: block; width: 50px; height: auto; }
.ks__seal.is-oval { width: 58px; }
.ks__seal.is-done { width: 42px; }
.ks__frog img { display: block; width: 36px; height: auto; }
.ks__mark.is-done { cursor: default; }

@media (hover: hover) {
  a.ks__mark:hover { background: var(--hk-cream-hi); }
}
a.ks__mark:focus-visible { outline: 2px solid var(--hk-green); outline-offset: -3px; background: var(--hk-cream-hi); }
a.ks__mark.is-open { background: var(--hk-cream); }

.ks td.ks__care.has-hand { position: relative; }
.ks td.has-hand .ks__mark { justify-content: flex-start; align-items: flex-start; padding: 3px 0 0 3px; }
.ks td.has-hand .ks__seal { width: 42px; }
.ks td.has-hand .ks__seal.is-oval { width: 50px; }
.ks__kawazu { position: absolute; right: 3px; bottom: 2px; width: 31px; height: auto; transform: rotate(-14deg); pointer-events: none; }

.ks__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 12px; margin: 7px 0 0; font-size: 10.5px; line-height: 1.5; }
.ks__foot:has(> .ks__next) { gap: 6px 12px; margin-top: 8px; padding: 8px 0 3px; border-top: 1px dotted var(--jimu-gray-500, #7b8283); }
.ks__more { margin: 0 auto 0 0; color: var(--sumi, #2b2f30); }
.ks a.ks__next, .ks a.ks__next:visited {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 12px; font-size: 11px; font-weight: bold; letter-spacing: .04em;
  color: #fff; text-decoration: none; white-space: nowrap; background: var(--hk-green); border-radius: 12px;
}
.ks a.ks__next::after { content: "→"; color: var(--hk-cream); }
.ks a.ks__next:hover { background: var(--hk-green-hi); color: #fff; }
.ks a.ks__next:focus-visible { outline: 2px solid var(--hk-green); outline-offset: 2px; }

.ks-exit {
  --u: 1px;
  position: absolute; z-index: 1000; box-sizing: border-box; width: 340px; margin: 0; padding: calc(16 * var(--u)) calc(18 * var(--u)) calc(16 * var(--u));
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: calc(13.5 * var(--u)); line-height: 1.7; letter-spacing: 0; color: #fff; text-align: left; -webkit-font-smoothing: antialiased;
  background: var(--hk-green); border: 0; border-radius: calc(16 * var(--u));
  box-shadow: 0 calc(16 * var(--u)) calc(32 * var(--u)) calc(-16 * var(--u)) rgb(0 0 0 / 0.6), 0 calc(2 * var(--u)) calc(5 * var(--u)) calc(-2 * var(--u)) rgb(0 0 0 / 0.2);
  transition: opacity .2s ease, transform .26s cubic-bezier(.2, .8, .25, 1);
}
.ks-exit.hk-fit { --u: var(--hk-u); }
.ks-exit *, .ks-exit *::before, .ks-exit *::after { box-sizing: border-box; }
.ks-exit[hidden] { display: none; }
.ks-exit.is-before { opacity: 0; }
.ks-exit--below.is-before { transform: translateY(calc(-8 * var(--u))); }
.ks-exit--above.is-before { transform: translateY(calc(8 * var(--u))); }
.ks-exit--sheet { position: fixed; border-radius: calc(18 * var(--u)) calc(18 * var(--u)) 0 0; padding: calc(20 * var(--u)) calc(20 * var(--u)) calc(24 * var(--u)); }
.ks-exit--sheet.is-before { opacity: 1; transform: translateY(100%); }
@media (prefers-reduced-motion: reduce) { .ks-exit { transition: none; } }
.ks-exit--below::before, .ks-exit--above::before {
  content: ""; position: absolute; left: var(--ks-notch, 50%); width: calc(12 * var(--u)); height: calc(12 * var(--u)); margin-left: calc(-6 * var(--u));
  background: var(--hk-green); border-radius: calc(2 * var(--u)); transform: rotate(45deg);
}
.ks-exit--below::before { top: calc(-5 * var(--u)); }
.ks-exit--above::before { bottom: calc(-5 * var(--u)); }
.ks-exit:focus { outline: none; }
.ks-exit__head { margin: 0 0 calc(4 * var(--u)); padding: 0; font-size: calc(14.5 * var(--u)); font-weight: 700; letter-spacing: .04em; }
.ks-exit__text { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.ks-exit__to { margin: calc(8 * var(--u)) 0 0; padding: calc(6 * var(--u)) calc(10 * var(--u)); font-size: calc(12 * var(--u)); color: rgb(255 255 255 / 0.86); background: rgb(0 0 0 / 0.14); border-radius: calc(8 * var(--u)); word-break: break-all; }
.ks-exit__to b { font-weight: 600; color: #fff; }
.ks-exit__buttons { display: flex; justify-content: flex-end; gap: calc(8 * var(--u)); margin: calc(14 * var(--u)) 0 0; }
.ks-exit .ks-exit__btn, .ks-exit .ks-exit__btn:visited, .tuturigachi .ks-exit .ks-exit__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(5 * var(--u)); height: calc(36 * var(--u)); margin: 0;
  padding: 0 calc(18 * var(--u)); font-family: inherit; font-size: calc(13.5 * var(--u)); font-weight: 500; line-height: 1; color: #fff;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid rgb(255 255 255 / 0.5); border-radius: calc(18 * var(--u)); background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.ks-exit .ks-exit__btn:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.ks-exit a.ks-exit__btn--go, .ks-exit a.ks-exit__btn--go:visited, .tuturigachi .ks-exit a.ks-exit__btn--go { color: var(--hk-green); font-weight: 700; letter-spacing: .04em; border-color: var(--hk-cream); background: var(--hk-cream); }
.ks-exit a.ks-exit__btn--go:hover, .tuturigachi .ks-exit a.ks-exit__btn--go:hover { color: var(--hk-green); background: var(--hk-cream-hi); }
.ks-exit__btn--go::after { content: "→"; color: var(--hk-arrow); font-weight: bold; }
.ks-exit .ks-exit__btn:focus-visible { outline: calc(2 * var(--u)) solid var(--hk-cream); outline-offset: calc(2 * var(--u)); }
.ks-exit.hk-fit .ks-exit__head { font-size: calc(16 * var(--u)); }
.ks-exit.hk-fit { font-size: calc(15 * var(--u)); }
.ks-exit.hk-fit .ks-exit__to { font-size: calc(13.5 * var(--u)); }
.ks-exit.hk-fit .ks-exit__buttons { gap: calc(10 * var(--u)); margin-top: calc(16 * var(--u)); }
.ks-exit.hk-fit .ks-exit__btn, .tuturigachi .ks-exit.hk-fit .ks-exit__btn { flex: 1 1 0; height: calc(46 * var(--u)); font-size: calc(15 * var(--u)); border-radius: calc(23 * var(--u)); }

.ks.hk-fit { width: auto; max-width: none; padding: calc(10 * var(--hk-u)) calc(10 * var(--hk-u)) calc(9 * var(--hk-u)); font-size: calc(12 * var(--hk-u)); border-width: var(--hk-u); box-shadow: calc(2 * var(--hk-u)) calc(2 * var(--hk-u)) 0 var(--shironezumi, #e9edee); }
.ks.hk-fit .ks__head { flex-wrap: wrap; gap: calc(6 * var(--hk-u)) calc(10 * var(--hk-u)); margin-bottom: calc(6 * var(--hk-u)); padding-bottom: calc(6 * var(--hk-u)); border-bottom-width: calc(1.5 * var(--hk-u)); }
.ks.hk-fit .ks__title { font-size: calc(18 * var(--hk-u)); }
.ks.hk-fit .ks__meta { font-size: calc(10.5 * var(--hk-u)); border-width: var(--hk-u) 0 0 var(--hk-u); }
.ks.hk-fit .ks__meta dt, .ks.hk-fit .ks__meta dd { padding: calc(2 * var(--hk-u)) calc(6 * var(--hk-u)); border-width: 0 var(--hk-u) var(--hk-u) 0; }
.ks.hk-fit .ks__meta dd { font-size: calc(11.5 * var(--hk-u)); }
.ks.hk-fit .ks__lead { margin-bottom: calc(7 * var(--hk-u)); font-size: calc(11 * var(--hk-u)); }
.ks.hk-fit .ks__grid col.ks__c { width: auto; }
.ks.hk-fit .ks__grid col.ks__c-gap { width: calc(6 * var(--hk-u)); }
.ks.hk-fit .ks__grid th, .ks.hk-fit .ks__grid td { border-width: var(--hk-u); }
.ks.hk-fit .ks__grid .ks__gap { border-width: 0; }
.ks.hk-fit .ks__grid .ks__care { border-left-width: calc(3 * var(--hk-u)); }
.ks.hk-fit .ks__grid th { height: calc(30 * var(--hk-u)); font-size: calc(10 * var(--hk-u)); }
.ks.hk-fit .ks__marks td { height: calc(52 * var(--hk-u)); }
.ks.hk-fit .ks__dates td { height: calc(17 * var(--hk-u)); font-size: calc(10 * var(--hk-u)); }
.ks.hk-fit .ks__mark { min-height: calc(44 * var(--hk-u)); }
.ks.hk-fit .ks__name { font-size: calc(10 * var(--hk-u)); }
.ks.hk-fit .ks__seal { width: calc(38 * var(--hk-u)); }
.ks.hk-fit .ks__seal.is-oval { width: calc(42 * var(--hk-u)); }
.ks.hk-fit .ks__seal.is-done { width: calc(32 * var(--hk-u)); }
.ks.hk-fit .ks__frog img { width: calc(28 * var(--hk-u)); }
.ks.hk-fit a.ks__mark:focus-visible { outline-width: calc(2 * var(--hk-u)); outline-offset: calc(-3 * var(--hk-u)); }
.ks.hk-fit .ks__foot { gap: calc(6 * var(--hk-u)) calc(12 * var(--hk-u)); margin-top: calc(8 * var(--hk-u)); font-size: calc(11.5 * var(--hk-u)); }
.ks.hk-fit .ks__foot:has(> .ks__next) { gap: calc(8 * var(--hk-u)) calc(12 * var(--hk-u)); padding: calc(8 * var(--hk-u)) 0 calc(4 * var(--hk-u)); border-top-width: var(--hk-u); }
.ks.hk-fit .ks__more { flex-basis: 100%; }
.ks.hk-fit a.ks__next { height: calc(40 * var(--hk-u)); padding: 0 calc(18 * var(--hk-u)); font-size: calc(14 * var(--hk-u)); border-radius: calc(20 * var(--hk-u)); gap: calc(6 * var(--hk-u)); }
.ks.hk-fit td.has-hand .ks__mark { padding: calc(3 * var(--hk-u)) 0 0 calc(2 * var(--hk-u)); }
.ks.hk-fit td.has-hand .ks__seal { width: calc(28 * var(--hk-u)); }
.ks.hk-fit td.has-hand .ks__seal.is-oval { width: calc(34 * var(--hk-u)); }
.ks.hk-fit .ks__kawazu { width: calc(22 * var(--hk-u)); }
.ks.hk-fit .ks__buji { width: calc(28 * var(--hk-u)); }
.ks.hk-fit .ks__done-text { font-size: calc(10.5 * var(--hk-u)); }

@media (max-width: 540px) {
  .ks:not(.hk-fit) .ks__grid col.ks__c { width: auto; }
  .ks:not(.hk-fit) .ks__grid col.ks__c-gap { width: 6px; }
  .ks:not(.hk-fit) .ks__seal { width: 42px; }
  .ks:not(.hk-fit) .ks__frog img { width: 30px; }
  .ks:not(.hk-fit) td.has-hand .ks__mark { padding: 3px 0 0 2px; }
  .ks:not(.hk-fit) td.has-hand .ks__seal { width: 28px; }
  .ks:not(.hk-fit) td.has-hand .ks__seal.is-oval { width: 34px; }
  .ks:not(.hk-fit) .ks__kawazu { width: 22px; }
}
