/* ===========================================================
   データポケット — ポケットから取り出すUI
   =========================================================== */
.hdp {
	--dp-blue: #0b8ed6;
	--dp-blue-dark: #0a72ac;
	--dp-blue-deep: #075d8d;
	--dp-sky: #e9f5fd;
	--dp-sky-line: #c4e2f5;
	--dp-red: #e4002b;
	--dp-ink: #16283a;
	--dp-muted: #5d7488;
	--dp-line: #dbe6ef;
	color: var(--dp-ink);
	font-size: 15px;
	line-height: 1.75;
	margin: 0 0 2.5em;
	-webkit-font-smoothing: antialiased;
}

.hdp *,
.hdp *::before,
.hdp *::after {
	box-sizing: border-box;
}

/* ---------- ポケット本体 ---------- */
.hdp-pocket {
	position: relative;
	border-radius: 26px;
	background: linear-gradient(180deg, #0b8ed6 0%, #0a7ec0 100%);
	padding: 20px 20px 22px;
	box-shadow: 0 14px 34px rgba(10, 114, 172, .22);
}

/* ポケットの口（白い半円） */
.hdp-lip {
	position: relative;
	height: 74px;
	margin: 0 auto 18px;
	max-width: 560px;
	filter: drop-shadow(0 6px 10px rgba(4, 60, 92, .25));
}

.hdp-lip svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.hdp-lip-label {
	position: absolute;
	left: 50%;
	top: 15px;
	transform: translateX(-50%);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .2em;
	color: var(--dp-blue-deep);
	white-space: nowrap;
}

.hdp-lip-label::after {
	content: "";
	display: block;
	width: 34px;
	height: 3px;
	margin: 7px auto 0;
	border-radius: 2px;
	background: var(--dp-blue);
	opacity: .5;
}

/* ---------- フィルタ（ポケットの上に乗る） ---------- */
.hdp-filter {
	margin: 0 0 16px;
}

.hdp-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: flex-start;
	margin: 0 0 10px;
}

.hdp-filter-row:last-child {
	margin-bottom: 0;
}

.hdp-filter-label {
	flex: 0 0 auto;
	min-width: 62px;
	padding-top: 8px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em;
	color: rgba(255, 255, 255, .82);
}

.hdp-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	flex: 1 1 240px;
	min-width: 0;
}

/* 資料の種類は控えめに */
.hdp-tabs--sub .hdp-tab {
	padding: 5px 13px;
	font-size: 12.5px;
	font-weight: 700;
	border-color: rgba(255, 255, 255, .38);
	background: transparent;
}

.hdp-tabs--sub .hdp-tab.is-active {
	background: rgba(255, 255, 255, .95);
	border-color: rgba(255, 255, 255, .95);
}

.hdp-tab {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, .55);
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: transform .15s ease, background .15s ease;
}

.hdp-tab:hover {
	background: rgba(255, 255, 255, .28);
	transform: translateY(-1px);
}

.hdp-tab.is-active {
	background: #fff;
	border-color: #fff;
	color: var(--dp-blue-deep);
	box-shadow: 0 3px 10px rgba(4, 60, 92, .2);
}

.hdp-search {
	display: flex;
	gap: 6px;
	flex: 0 0 auto;
	margin-left: auto;
}

.hdp-search input[type="search"] {
	min-width: 190px;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	font-size: 14px;
	background: #fff;
	color: var(--dp-ink);
	box-shadow: inset 0 1px 3px rgba(4, 60, 92, .14);
}

.hdp-search input[type="search"]::placeholder {
	color: #93a7b8;
}

.hdp-search button {
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--dp-red);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 3px 0 #b30022;
}

.hdp-search button:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 #b30022;
}

.hdp-count {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, .92);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
}

/* ---------- 取り出した資料カード ---------- */
.hdp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hdp-grid li {
	list-style: none;
	margin: 0;
}

.hdp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 18px 18px 16px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 16px rgba(4, 60, 92, .16);
	transition: transform .18s ease, box-shadow .18s ease;
}

.hdp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 26px rgba(4, 60, 92, .22);
}

.hdp-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

/* 形式バッジ（丸い鈴のような形） */
.hdp-ext {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--dp-ink);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .02em;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16);
}

.hdp-ext[data-ext="XLSX"],
.hdp-ext[data-ext="XLS"],
.hdp-ext[data-ext="CSV"] {
	background: #1a8a55;
}

.hdp-ext[data-ext="PDF"] {
	background: #d1332c;
}

.hdp-ext[data-ext="DWG"],
.hdp-ext[data-ext="DXF"],
.hdp-ext[data-ext="JWW"],
.hdp-ext[data-ext="JWC"],
.hdp-ext[data-ext="SFC"],
.hdp-ext[data-ext="P21"] {
	background: #7a4ea8;
}

.hdp-ext[data-ext="DOCX"],
.hdp-ext[data-ext="DOC"] {
	background: #1f5f8b;
}

.hdp-ext[data-ext="PNG"],
.hdp-ext[data-ext="JPG"],
.hdp-ext[data-ext="JPEG"] {
	background: #c67c12;
}

.hdp-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	min-width: 0;
}

.hdp-badge--work {
	color: #fff !important;
	background: var(--dp-blue) !important;
}

.hdp-badge {
	font-size: 12px;
	font-weight: 700;
	color: var(--dp-blue-deep);
	background: var(--dp-sky);
	border-radius: 999px;
	padding: 4px 12px;
}

.hdp-title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 800;
	color: var(--dp-ink);
}

.hdp-desc {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--dp-muted);
	flex: 1 1 auto;
}

.hdp-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	font-size: 11.5px;
	color: var(--dp-muted);
}

.hdp-meta span {
	background: #f2f6fa;
	border-radius: 6px;
	padding: 3px 8px;
	white-space: nowrap;
}

/* 取り出すボタン */
.hdp-dl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 11px 18px;
	border-radius: 999px;
	background: var(--dp-blue);
	color: #fff !important;
	font-size: 14.5px;
	font-weight: 800;
	text-decoration: none !important;
	box-shadow: 0 4px 0 var(--dp-blue-deep);
	transition: transform .12s ease, box-shadow .12s ease;
}

.hdp-dl:hover {
	background: var(--dp-blue-dark);
}

.hdp-dl:active {
	transform: translateY(3px);
	box-shadow: 0 1px 0 var(--dp-blue-deep);
}

.hdp-dl svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

/* ---------- ページャ ---------- */
.hdp-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 18px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.hdp-pager a {
	color: #fff;
	text-decoration: none;
	background: rgba(255, 255, 255, .18);
	border-radius: 999px;
	padding: 6px 16px;
}

.hdp-pager a:hover {
	background: rgba(255, 255, 255, .3);
}

/* ---------- 空っぽの状態 ---------- */
.hdp-empty {
	padding: 30px 20px 34px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .96);
	text-align: center;
}

.hdp-empty-art {
	width: 108px;
	height: auto;
	margin: 0 auto 14px;
	display: block;
}

.hdp-empty-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 800;
	color: var(--dp-ink);
}

.hdp-empty-sub {
	margin: 0 auto 18px;
	max-width: 30em;
	font-size: 14px;
	color: var(--dp-muted);
}

/* ---------- 入れるフォーム ---------- */
.hdp-form-wrap {
	margin-top: 30px;
}

.hdp-form {
	position: relative;
	padding: 26px 24px 24px;
	border: 2px solid var(--dp-sky-line);
	border-radius: 22px;
	background: #fff;
}

.hdp-form-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 6px;
}

.hdp-form-head svg {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
}

.hdp-form-head h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: var(--dp-ink);
}

.hdp-form-lead {
	margin: 0 0 20px;
	font-size: 13.5px;
	color: var(--dp-muted);
}

.hdp-field {
	margin: 0 0 18px;
}

.hdp-field > label,
.hdp-field > .hdp-label {
	display: block;
	margin: 0 0 7px;
	font-size: 13.5px;
	font-weight: 800;
	color: var(--dp-ink);
}

.hdp-field input[type="text"],
.hdp-field input[type="email"],
.hdp-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--dp-line);
	border-radius: 12px;
	font-size: 15px;
	font-family: inherit;
	background: #fbfdff;
	color: var(--dp-ink);
}

.hdp-field input[type="text"]:focus,
.hdp-field input[type="email"]:focus,
.hdp-field textarea:focus {
	outline: none;
	border-color: var(--dp-blue);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(11, 142, 214, .14);
}

.hdp-field textarea {
	resize: vertical;
}

/* ファイル投入口 */
.hdp-drop {
	position: relative;
	padding: 18px 16px 16px;
	border: 2px dashed var(--dp-sky-line);
	border-radius: 18px 18px 44px 44px;
	background: linear-gradient(180deg, #f5fbff 0%, #e9f5fd 100%);
	text-align: center;
}

.hdp-drop input[type="file"] {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.hdp-filebtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 24px;
	border-radius: 999px;
	background: var(--dp-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 4px 0 var(--dp-blue-deep);
	transition: transform .12s ease, box-shadow .12s ease;
}

.hdp-filebtn:active {
	transform: translateY(3px);
	box-shadow: 0 1px 0 var(--dp-blue-deep);
}

.hdp-filebtn svg {
	width: 17px;
	height: 17px;
}

.hdp-filename {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dp-blue-deep);
	word-break: break-all;
}

.hdp-filename.is-empty {
	font-weight: 400;
	color: var(--dp-muted);
}

.hdp-drop input[type="file"]::file-selector-button {
	margin-right: 10px;
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--dp-blue);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 3px 0 var(--dp-blue-deep);
}

.hdp-drop input[type="file"]::-webkit-file-upload-button {
	margin-right: 10px;
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--dp-blue);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}

.hdp-req {
	display: inline-block;
	margin-left: 7px;
	padding: 2px 7px;
	border-radius: 4px;
	background: var(--dp-red);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	vertical-align: 2px;
	letter-spacing: .04em;
}

.hdp-help {
	display: block;
	margin-top: 7px;
	font-size: 12px;
	color: var(--dp-muted);
	line-height: 1.7;
}

.hdp-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hdp-radio {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 9px 18px;
	border: 1.5px solid var(--dp-line);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	color: var(--dp-muted);
	cursor: pointer;
	transition: all .15s ease;
}

.hdp-radio:hover {
	border-color: var(--dp-blue);
	color: var(--dp-blue-deep);
}

.hdp-radio input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 2px solid #c3d3e0;
	border-radius: 50%;
	background: #fff;
	transition: all .15s ease;
}

.hdp-radio input[type="radio"]:checked {
	border-color: #fff;
	background: radial-gradient(circle, var(--dp-blue) 0 42%, #fff 44% 100%);
}

.hdp-radio:has(input:checked) {
	border-color: var(--dp-blue);
	background: var(--dp-blue);
	color: #fff;
	box-shadow: 0 3px 10px rgba(11, 142, 214, .3);
}

.hdp-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 16px;
}

.hdp-agree {
	padding: 14px 16px;
	border-radius: 14px;
	background: #f6fafd;
}

.hdp-agree label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.75;
	color: var(--dp-muted);
	cursor: pointer;
}

.hdp-agree input[type="checkbox"] {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin-top: 4px;
	accent-color: var(--dp-blue);
}

.hdp-submit {
	margin: 20px 0 0;
	text-align: center;
}

.hdp-submit button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 36px;
	border: 0;
	border-radius: 999px;
	background: var(--dp-red);
	color: #fff;
	font-size: 15.5px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 5px 0 #b30022;
	transition: transform .12s ease, box-shadow .12s ease;
}

.hdp-submit button:active {
	transform: translateY(4px);
	box-shadow: 0 1px 0 #b30022;
}

.hdp-submit button svg {
	width: 19px;
	height: 19px;
}

.hdp-submit .hdp-help {
	margin-top: 12px;
}

.hdp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hdp-notice {
	margin: 0 0 18px;
	padding: 15px 18px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.8;
}

.hdp-notice-ok {
	background: #e7f6ee;
	border: 1.5px solid #a8dcc0;
	color: #12603a;
}

.hdp-notice-error {
	background: #fdecec;
	border: 1.5px solid #f2bfbf;
	color: #8c2020;
}

@media (max-width: 640px) {
	.hdp-filter-label {
		min-width: 100%;
		padding-top: 0;
	}

	.hdp-search {
		width: 100%;
		margin-left: 0;
	}

	.hdp-pocket {
		padding: 16px 13px 18px;
		border-radius: 20px;
	}

	.hdp-filter {
		flex-direction: column;
		align-items: stretch;
	}

	.hdp-search input[type="search"] {
		flex: 1 1 auto;
		min-width: 0;
	}

	.hdp-form {
		padding: 20px 16px;
	}
}

/* ===========================================================
   テーマCSSとの衝突対策（JIN 等）
   =========================================================== */
.hdp a {
	text-decoration: none !important;
	box-shadow: none !important;
	border-bottom: 0 !important;
}

.hdp .hdp-tab {
	color: #fff !important;
	background: rgba(255, 255, 255, .14) !important;
}

.hdp .hdp-tab.is-active {
	color: var(--dp-blue-deep) !important;
	background: #fff !important;
}

.hdp .hdp-dl,
.hdp .hdp-filebtn {
	color: #fff !important;
	background: var(--dp-blue) !important;
}

.hdp .hdp-dl:hover,
.hdp .hdp-filebtn:hover {
	background: var(--dp-blue-dark) !important;
}

.hdp .hdp-pager a {
	color: #fff !important;
	background: rgba(255, 255, 255, .18) !important;
}

.hdp .hdp-field > label,
.hdp .hdp-field > .hdp-label {
	display: block !important;
	margin: 0 0 7px !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	line-height: 1.6 !important;
}

.hdp .hdp-radios {
	display: flex !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hdp .hdp-radios .hdp-radio {
	display: inline-flex !important;
	align-items: center !important;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 9px 18px !important;
	line-height: 1.4 !important;
	font-weight: 700 !important;
	border-radius: 999px !important;
}

.hdp .hdp-radios .hdp-radio input[type="radio"] {
	display: inline-block !important;
	flex: 0 0 auto !important;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.hdp .hdp-agree label {
	display: flex !important;
	align-items: flex-start !important;
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 400 !important;
	line-height: 1.75 !important;
}

.hdp .hdp-agree input[type="checkbox"] {
	flex: 0 0 auto !important;
	width: 17px !important;
	height: 17px !important;
	margin: 4px 0 0 !important;
	float: none !important;
}

.hdp .hdp-filebtn {
	display: inline-flex !important;
	width: auto !important;
	margin: 0 !important;
	font-weight: 800 !important;
}

.hdp .hdp-form input[type="text"],
.hdp .hdp-form input[type="email"],
.hdp .hdp-form textarea {
	display: block !important;
	max-width: 100% !important;
	margin: 0 !important;
}

.hdp .hdp-form button,
.hdp .hdp-filter button {
	width: auto !important;
	line-height: 1.4 !important;
	text-shadow: none !important;
}

.hdp p {
	margin-top: 0;
}

.hdp > br,
.hdp-form > br,
.hdp-filter > br,
.hdp-pocket > br {
	display: none;
}

/* label を縦積みにするテーマ対策・見出し装飾のリセット */
.hdp .hdp-radios .hdp-radio,
.hdp .hdp-agree label,
.hdp .hdp-drop .hdp-filebtn {
	flex-direction: row !important;
	gap: 8px !important;
}

.hdp .hdp-radios .hdp-radio {
	align-items: center !important;
}

.hdp .hdp-form-head h3 {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-size: 17px !important;
	line-height: 1.5 !important;
	color: var(--dp-ink) !important;
}

.hdp .hdp-form-head h3::before,
.hdp .hdp-form-head h3::after,
.hdp .hdp-empty-title::before,
.hdp .hdp-empty-title::after,
.hdp .hdp-title::before,
.hdp .hdp-title::after {
	content: none !important;
	display: none !important;
}

.hdp .hdp-title {
	margin: 0 0 8px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
}

.hdp .hdp-badge--work {
	color: #fff !important;
	background: var(--dp-blue) !important;
}

/* 用語集の自動リンク（hgls-link 等）がバッジ・タイトルを崩さないようにする */
.hdp .hdp-badge a,
.hdp .hdp-title a,
.hdp .hdp-ext a,
.hdp .hdp-count a {
	color: inherit !important;
	background: none !important;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	pointer-events: none;
}

.hdp .hdp-badge a::before,
.hdp .hdp-badge a::after,
.hdp .hdp-title a::before,
.hdp .hdp-title a::after,
.hdp .hdp-ext a::before,
.hdp .hdp-ext a::after,
.hdp .hdp-count a::before,
.hdp .hdp-count a::after,
.hdp .hdp-tab a::before,
.hdp .hdp-tab a::after,
.hdp .hdp-radio a::before,
.hdp .hdp-radio a::after,
.hdp .hdp-desc a::before,
.hdp .hdp-desc a::after {
	content: none !important;
	display: none !important;
}

.hdp .hdp-desc a {
	color: inherit !important;
	background: none !important;
	border: 0 !important;
	text-decoration: underline dotted !important;
	text-underline-offset: 3px;
}
