.kintone .screen-reader-response {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	word-wrap: normal !important;
}

.kintone form .kintone-response-output {
	margin: 2em 0.5em 1em;
	padding: 0.2em 1em;
	border: 2px solid #00a0d2; /* Blue */
}

.kintone form.init .kintone-response-output,
.kintone form.resetting .kintone-response-output,
.kintone form.submitting .kintone-response-output {
	display: none;
}

.kintone form.sent .kintone-response-output {
	border-color: #46b450; /* Green */
}

.kintone form.failed .kintone-response-output,
.kintone form.aborted .kintone-response-output {
	border-color: #dc3232; /* Red */
}

.kintone form.spam .kintone-response-output {
	border-color: #f56e28; /* Orange */
}

.kintone form.invalid .kintone-response-output,
.kintone form.unaccepted .kintone-response-output,
.kintone form.payment-required .kintone-response-output {
	border-color: #ffb900; /* Yellow */
}

.kintone-form-control-wrap {
	position: relative;
}

.kintone-not-valid-tip {
	color: #dc3232; /* Red */
	font-size: 1em;
	font-weight: normal;
	display: none;
}

.kintone-form-control.kintone-not-valid + .kintone-not-valid-tip {
    display: block;
}

.use-floating-validation-tip .kintone-not-valid-tip {
	position: relative;
	top: -2ex;
	left: 1em;
	z-index: 100;
	border: 1px solid #dc3232;
	background: #fff;
	padding: .2em .8em;
	width: 24em;
}

.kintone-list-item {
	display: inline-block;
	margin: 0 0 0 1em;
}

.kintone-list-item-label::before,
.kintone-list-item-label::after {
	content: " ";
}

.kintone-spinner {
	visibility: hidden;
	display: inline-block;
	background-color: #23282d; /* Dark Gray 800 */
	opacity: 0.75;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 100%;
	padding: 0;
	margin: 0 24px;
	position: relative;
}

form.submitting .kintone-spinner {
	visibility: visible;
}

.kintone-spinner::before {
	content: '';
	position: absolute;
	background-color: #fbfbfc; /* Light Gray 100 */
	top: 4px;
	left: 4px;
	width: 6px;
	height: 6px;
	border: none;
	border-radius: 100%;
	transform-origin: 8px 8px;
	animation-name: spin;
	animation-duration: 1000ms;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
	.kintone-spinner::before {
		animation-name: blink;
		animation-duration: 2000ms;
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes blink {
	from {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

.kintone [inert] {
	opacity: 0.5;
}

.kintone input[type="file"] {
	cursor: pointer;
}

.kintone input[type="file"]:disabled {
	cursor: default;
}

.kintone .kintone-submit:disabled {
	cursor: not-allowed;
}

.kintone input[type="url"],
.kintone input[type="email"],
.kintone input[type="tel"] {
	direction: ltr;
}

.kintone-reflection > output {
	display: list-item;
	list-style: none;
}

.kintone-reflection > output[hidden] {
	display: none;
}

span.kintone-not-valid-tip {
    margin-bottom: 5px;
}

#entry span.kintone-list-item {
    margin-left: 0;
}

/* フローティングエラーメッセージ（全ページ同じ見え方に統一） */
.kf-floating .kintone-form-control-wrap { position: relative; }

.kf-floating .kintone-not-valid-tip {
  display: none;                 /* JSが必要時に block にする */
  position: absolute;
  top: calc(100% + .3rem);       /* 入力欄のすぐ下に出す */
  left: 0;
  background: #fff;
  color: #dc3232;
  border: 1px solid #dc3232;
  border-radius: 4px;
  padding: .35em .6em;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  z-index: 1000;
  max-width: 28em;               /* 長文でも崩れにくく */
}

.kf-floating .kintone-not-valid-tip::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 12px;
  border: 6px solid transparent;
  border-bottom-color: #dc3232;  /* 三角のツノ */
}

/* フォーカス中のフィールドを少し強調（任意） */
.kf-floating :invalid:focus {
  outline: 2px solid rgba(220,50,50,.35);
  outline-offset: 2px;
}
