.kdb-consent-dialog {
  position: fixed;
  z-index: 2147483646;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid #dce2e7;border-top: 4px solid #d62828;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(16, 20, 24, .28);
  color: #101418;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}
.kdb-consent-dialog[hidden] { display: none; }
.kdb-consent-dialog h2 { margin: 0 0 7px; font-size: 18px; }
.kdb-consent-dialog p { margin: 0; color: #3f4b57; font-size: 15px; line-height: 1.75; }
.kdb-consent-dialog .kdb-consent-policy { margin-top: 5px; }
.kdb-consent-dialog a { color: #27698f; text-decoration: underline; }
.kdb-consent-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.kdb-consent-actions button,
.kdb-consent-settings {
  border: 2px solid #101418;
  border-radius: 6px;
  background: #fff;
  color: #101418;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.kdb-consent-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 48px;
  box-sizing: border-box;
  padding: 8px 12px;
}
.kdb-consent-actions .primary { background: #101418; color: #fff; }
.kdb-consent-details { margin-top: 6px; }
.kdb-consent-details summary { display: flex; align-items: center; min-height: 44px; font-weight: 700; color: #27698f; cursor: pointer; }
.kdb-consent-details ul { margin: 0 0 4px; padding-left: 1.2em; color: #3f4b57; font-size: 14px; line-height: 1.7; }
.kdb-consent-details summary:focus-visible { outline: 3px solid #327ca8; outline-offset: 3px; }
.kdb-consent-custom { margin-top: 12px; padding-top: 12px; border-top: 1px solid #d7dee7; }
.kdb-consent-custom[hidden] { display: none; }
.kdb-consent-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; }
.kdb-consent-toggle input { width: 24px; height: 24px; flex: 0 0 auto; accent-color: #101418; }
.kdb-consent-custom p { margin: 4px 0 10px; }
.kdb-consent-custom .primary { border: 2px solid #101418; border-radius: 6px; background: #101418; color: #fff; font: inherit; font-weight: 700; min-height: 48px; min-width: 132px; cursor: pointer; }
.kdb-consent-custom button:focus-visible,.kdb-consent-toggle input:focus-visible { outline: 3px solid #327ca8; outline-offset: 3px; }
.kdb-consent-actions button:focus-visible,.kdb-consent-settings:focus-visible,.kdb-consent-dialog a:focus-visible { outline: 3px solid #327ca8; outline-offset: 3px; }
.kdb-consent-privacy {
  width: min(820px, calc(100% - 32px));
  max-height: min(82vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(16, 20, 24, .35);
  color: #101418;
}
.kdb-consent-privacy::backdrop { background: rgba(16, 20, 24, .72); }
.kdb-consent-privacy-body { padding: 28px 30px 32px; overflow: auto; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; }
.kdb-consent-privacy-body h2 { margin: 0 42px 20px 0; font-size: 24px; }
.kdb-consent-privacy-body h2:not(:first-child) { margin-top: 28px; font-size: 19px; }
.kdb-consent-privacy-body p,
.kdb-consent-privacy-body li { font-size: 16px; line-height: 1.85; }
.kdb-consent-privacy-body a { color: #27698f; }
.kdb-consent-privacy-close {
  position: sticky;
  z-index: 1;
  top: 12px;
  float: right;
  width: 44px;
  height: 44px;
  margin: 12px 12px -50px 0;
  border: 2px solid #101418;
  border-radius: 50%;
  background: #fff;
  color: #101418;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.kdb-consent-settings {
  /* v0.26.4: 画面に固定せず、サイトの最下部（フッターの下）に置く。 */
  position: static;
  display: block;
  margin: 0 auto;
  min-height: 44px;
  padding: 8px 16px;
  border-color: #101418;
  background: #fff;
  font-size: 13px;
}
.kdb-consent-ui { padding: 14px 12px 18px; text-align: center; }
.kdb-consent-ui-compact { padding: 0; text-align: left; }
@media (max-width: 680px) {
  .kinhidai-dedicated-page .kdb-consent-ui:not(.kdb-consent-ui-compact) { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .kdb-consent-dialog { bottom: 12px; left: 12px; right: 12px; display: block; padding: 18px 16px; }
  .kdb-consent-actions { margin-top: 14px; }
  .kdb-consent-actions button { flex: 1 1 0; width: auto; min-width: 0; }
  .kdb-consent-privacy-body { padding: 24px 18px 28px; }
}
