/*! haru Cookie box v1.0.0 | CSS は別ファイル（CSP style-src 'self' だけで動く） */
.hc-root {
--hc-bg: #ffffff;
--hc-fg: #1f1f1f;
--hc-muted: #5f5f5f;
--hc-accent: #1f1f1f;
--hc-accent-fg: #ffffff;
--hc-border: rgba(0, 0, 0, .14);
--hc-radius: 12px;
--hc-btn-radius: 6px;
--hc-font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", Arial, sans-serif;
--hc-size: 14px;
--hc-line: 1.7;
--hc-shadow: 0 8px 32px rgba(0, 0, 0, .14);
--hc-overlay: rgba(0, 0, 0, .4);
--hc-gap: 16px;
--hc-pad: 20px;
--hc-z: 2147483000;
--hc-focus: #1a73e8;
--hc-switch-on: var(--hc-accent);
--hc-switch-off: #c7c7c7;
--hc-max: 480px;
--hc-align: left;
--hc-ph-bg: #f6f6f6;
--hc-ph-fg: #4a4a4a;
--hc-ph-border: #cfcfcf;
position: fixed;
z-index: var(--hc-z);
inset: auto;
font-family: var(--hc-font);
font-size: var(--hc-size);
line-height: var(--hc-line);
color: var(--hc-fg);
-webkit-font-smoothing: antialiased;
text-align: var(--hc-align);
letter-spacing: 0;
}
.hc-root, .hc-root * { box-sizing: border-box; margin: 0; padding: 0; }
.hc-root p { margin: 0; }
.hc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hc-panel {
background: var(--hc-bg);
color: var(--hc-fg);
outline: none;
}
.hc-panel:focus-visible { box-shadow: 0 0 0 3px var(--hc-focus); }
.hc-title { font-weight: 700; font-size: 1.07em; margin-bottom: 6px; }
.hc-desc { color: var(--hc-fg); }
.hc-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.hc-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hc-link:hover { opacity: .8; }
.hc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: var(--hc-gap); }
.hc-btn {
font: inherit;
font-size: 1em;
line-height: 1.2;
padding: 10px 18px;
min-height: 40px;
border-radius: var(--hc-btn-radius);
border: 1px solid var(--hc-accent);
background: var(--hc-accent);
color: var(--hc-accent-fg);
cursor: pointer;
text-decoration: none;
white-space: nowrap;
}
.hc-btn:hover { filter: brightness(.94); }
.hc-btn:focus-visible { outline: 3px solid var(--hc-focus); outline-offset: 2px; }
.hc-btn:disabled { cursor: default; opacity: .6; filter: none; }
.hc-btn.hc-ghost { background: transparent; color: var(--hc-fg); border-color: var(--hc-border); }
.hc-btn.hc-pill { border-radius: 999px; padding: 8px 14px; min-height: 0; font-size: .86em; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.hc-root[data-layout="bar"] { left: 0; right: 0; bottom: 0; }
.hc-root[data-layout="bar"][data-pos="top"] { top: 0; bottom: auto; }
.hc-root[data-layout="bar"] .hc-panel {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 10px 24px;
padding: 15px 30px;
box-shadow: 0 -2px 16px rgba(0, 0, 0, .08);
border-top: 1px solid var(--hc-border);
}
.hc-root[data-layout="bar"] .hc-body { flex: 1 1 420px; max-width: 920px; }
.hc-root[data-layout="bar"] .hc-title { display: inline; margin-right: 8px; }
.hc-root[data-layout="bar"] .hc-desc { display: inline; }
.hc-root[data-layout="bar"] .hc-links { display: inline-flex; margin: 0 0 0 8px; vertical-align: baseline; }
.hc-root[data-layout="bar"] .hc-actions { margin-top: 0; flex: 0 0 auto; justify-content: center; }
.hc-root[data-layout="card"] { right: 16px; bottom: 16px; width: min(var(--hc-max), calc(100vw - 32px)); }
.hc-root[data-layout="card"][data-pos="left"] { right: auto; left: 16px; }
.hc-root[data-layout="card"] .hc-panel {
padding: var(--hc-pad);
border-radius: var(--hc-radius);
border: 1px solid var(--hc-border);
box-shadow: var(--hc-shadow);
}
.hc-root[data-layout="modal"] { inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hc-overlay { position: absolute; inset: 0; background: var(--hc-overlay); }
.hc-root[data-layout="modal"] .hc-panel {
position: relative;
width: min(560px, 100%);
max-height: calc(100vh - 32px);
overflow: auto;
padding: calc(var(--hc-pad) + 4px);
border-radius: var(--hc-radius);
box-shadow: var(--hc-shadow);
text-align: left;
}
.hc-root[data-view="settings"] .hc-actions { justify-content: flex-start; }
.hc-cats { list-style: none; margin: var(--hc-gap) 0 0; border-top: 1px solid var(--hc-border); }
.hc-cat { padding: 12px 0; border-bottom: 1px solid var(--hc-border); }
.hc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hc-cat-label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.hc-cat-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hc-switch { position: relative; flex: 0 0 40px; width: 40px; height: 22px; border-radius: 11px; background: var(--hc-switch-off); transition: background .15s; }
.hc-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.hc-cat-label input:checked + .hc-switch { background: var(--hc-switch-on); }
.hc-cat-label input:checked + .hc-switch::after { transform: translateX(18px); }
.hc-cat-label input:focus-visible + .hc-switch { outline: 3px solid var(--hc-focus); outline-offset: 2px; }
.hc-cat-label input:disabled + .hc-switch { opacity: .5; }
.hc-always { font-size: .86em; color: var(--hc-muted); white-space: nowrap; }
.hc-cat-desc { margin-top: 6px; color: var(--hc-muted); font-size: .93em; padding-left: 52px; }
.hc-root.hc-float { left: 16px; bottom: 16px; }
.hc-root.hc-float[data-pos="right"] { left: auto; right: 16px; }
.hc-root.hc-float .hc-btn.hc-pill { background: var(--hc-bg); color: var(--hc-fg); border-color: var(--hc-border); }
.hc-root.hc-ph {
position: static;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
min-height: 180px;
padding: 24px;
border: 1px dashed var(--hc-ph-border);
border-radius: var(--hc-radius);
background: var(--hc-ph-bg);
color: var(--hc-ph-fg);
text-align: center;
}
.hc-ph-text { color: var(--hc-ph-fg); }
@media (max-width: 640px) {
.hc-root[data-layout="bar"] .hc-panel { padding: 14px 16px; gap: 10px; }
.hc-root[data-layout="bar"] .hc-body { flex-basis: 100%; }
.hc-root[data-layout="bar"] .hc-actions { flex-basis: 100%; }
.hc-root[data-layout="card"] { left: 8px; right: 8px; bottom: 8px; width: auto; }
.hc-root[data-layout="card"][data-pos="left"] { left: 8px; }
.hc-actions .hc-btn { flex: 1 1 auto; }
.hc-cat-desc { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
.hc-root *, .hc-root *::after { transition: none !important; animation: none !important; }
}
@media print { .hc-root { display: none !important; } }
/*! 株式会社山下PMC の値（companies/yamashita-pmc.json の theme） */
.hc-root { --hc-bg: rgba(77,77,77,0.95); --hc-fg: #ffffff; --hc-muted: #e0e0e0; --hc-accent: #ffffff; --hc-accent-fg: #333333; --hc-border: rgba(255,255,255,0.25); --hc-switch-on: #8ab4f8; --hc-switch-off: #9a9a9a; --hc-radius: 0px; --hc-btn-radius: 3px; --hc-size: 13px; --hc-line: 1.55; --hc-font: -apple-system, BlinkMacSystemFont, Arial, Roboto, "Helvetica Neue", sans-serif; --hc-align: center; }
