.dept-selector {
	background: #ffecd1;
	padding: 40px 20px;
}
@media (max-width: 767px) {
	.dept-selector {
		padding: 24px 0 32px;
	}
}
.dept-selector__inner {
	max-width: 1008px;
	margin: 0 auto;
}
@media (max-width: 767px) {
	.dept-selector__inner {
		max-width: 335px;
		width: 94%;
	}
}

.dept-block {
	margin-bottom: 24px;
}
@media (max-width: 767px) {
	.dept-block {
		margin-bottom: 16px;
	}
}
@media (min-width: 768px) {
	.dept-block {
		display: flex;
		align-items: stretch;
	}
}
.dept-block:last-child {
	margin-bottom: 0;
}
.dept-block__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 14px 24px;
	background: #1b7fbe;
	color: #fff;
	border-radius: 6px 0 0 6px;
}
@media (max-width: 767px) {
	.dept-block__header {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 12px 16px;
		gap: 8px;
		border-radius: 6px 6px 0 0;
	}
}
@media (min-width: 768px) {
	.dept-block__header {
		flex-direction: column;
		justify-content: center;
		width: min(211px, 21vw);
		flex-shrink: 0;
		gap: 5px;
		padding: 20px 16px;
	}
}
.dept-block__icon {
	width: 41px;
	height: 41px;
	object-fit: contain;
	flex-shrink: 0;
}
@media (max-width: 767px) {
	.dept-block__icon {
		width: 24px;
		height: 24px;
	}
}
/* 科ごとの個別調整 */
/* 皮膚科 */
.dept-block[data-dept="dermatology"] .dept-block__icon {
	width: 42px;
	height: 45px;
}
@media (max-width: 767px) {
	.dept-block[data-dept="dermatology"] .dept-block__icon {
		width: 24px;
		height: 25px;
	}
}
/* 耳鼻科領域 */
.dept-block[data-dept="ent"] .dept-block__icon {
	width: 30px;
	height: 44px;
}
@media (max-width: 767px) {
	.dept-block[data-dept="ent"] .dept-block__icon {
		width: 16px;
		height: 26px;
	}
}
/* アレルギー科 */
.dept-block[data-dept="allergy"] .dept-block__icon {
	width: 55px;
	height: 56px;
}
@media (max-width: 767px) {
	.dept-block[data-dept="allergy"] .dept-block__icon {
		width: 28px;
		height: 29px;
	}
}
/* 泌尿器科 */
.dept-block[data-dept="urology"] .dept-block__icon {
	width: 59px;
	height: 38px;
}
@media (max-width: 767px) {
	.dept-block[data-dept="urology"] .dept-block__icon {
		width: 33px;
		height: 21px;
	}
}
/* 自費診療 */
.dept-block[data-dept="pmc"] .dept-block__icon {
	width: 44px;
	height: 44px;
}
@media (max-width: 767px) {
	.dept-block[data-dept="pmc"] .dept-block__icon {
		width: 24px;
		height: 24px;
	}
}

.dept-block__title {
	font-size: clamp(1.25rem, 0.45rem + 1.67vw, 1.5rem);
	font-weight: bold;
	letter-spacing: 0.05em;
}
@media (max-width: 767px) {
	.dept-block__title {
		font-size: 20px;
	}
}
.dept-block__body {
	background: #ffffff;
	padding: 16px 24px 20px;
	border-radius: 0 6px 6px 0;
}
@media (max-width: 767px) {
	.dept-block__body {
		padding: 12px 16px 16px;
		border-radius: 0 0 6px 6px;
	}
}
@media (min-width: 768px) {
	.dept-block__body {
		flex: 1;
		display: flex;
		align-items: center;
		padding: 16px 24px;
	}
}

.dept-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 767px) {
	.dept-list {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 9px;
	}
}
@media (min-width: 768px) {
	.dept-list {
		width: 100%;
	}
}
.dept-list__item {
	border-bottom: 1px solid #f5f5f5;
}
@media (max-width: 767px) {
	.list__item--full {
		grid-column: 1 / -1;
	}
}
.dept-list__item a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 0;
	color: #216b9a;
	font-size: clamp(0.813rem, 0.59rem + 0.46vw, 0.938rem);
	font-weight: bold;
	line-height: 1.4;
}
@media (max-width: 767px) {
	.dept-list__item a {
		font-size: 14px;
		padding: 9px 2px;
	}
}
.dept-list__item a::before {
	content: "";
	width: 0;
	height: 0;
	flex-shrink: 0;
	border-style: solid;
	border-width: 4px 0 4px 6px;
	border-color: transparent transparent transparent #1b7fbe;
}
.dept-list__item a:hover {
	text-decoration: underline;
}
@media (min-width: 768px) {
	.dept-list__more-wrap {
		display: contents;
	}
}
@media (max-width: 767px) {
	.dept-list__more-wrap {
		grid-column: 1/-1;
		overflow: hidden;
		max-height: 0;
		transition: max-height 0.5s ease;
	}
}
.dept-list__more-inner {
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 768px) {
	.dept-list__more-inner {
		display: contents;
	}
}
@media (max-width: 767px) {
	.dept-list__more-inner {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		column-gap: 12px;
	}
}
.dept-list__more-inner .dept-list__item {
	border-bottom: 1px solid #f5f5f5;
}
.dept-list__more-inner .dept-list__item a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 0;
	color: #1b7fbe;
	font-size: clamp(0.813rem, 0.59rem + 0.46vw, 0.938rem);
	line-height: 1.4;
}
@media (max-width: 767px) {
	.dept-list__more-inner .dept-list__item a {
		font-size: 14px;
		padding: 9px 2px;
	}
}
.dept-list__more-inner .dept-list__item a::before {
	content: "";
	width: 0;
	height: 0;
	flex-shrink: 0;
	border-style: solid;
	border-width: 4px 0 4px 6px;
	border-color: transparent transparent transparent #1b7fbe;
}
.dept-list__more-inner .dept-list__item a:hover {
	text-decoration: underline;
}
.dept-list__more-inner .list__item--full a {
	font-size: 14px;
}
.dept-toggle {
	display: none;
}
@media (max-width: 767px) {
	.dept-toggle {
		display: flex;
	}
}
.dept-toggle {
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 0;
	border: none;
	border-radius: 20px;
	background: #e7f2f9;
	color: #1b7fbe;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
  position: relative;
}
.dept-toggle__icon {
  position: absolute;
  right: 15px;
	width: 18px;
	height: auto;
	transition: transform 0.5s ease;
}

.dept-block.is-open .dept-toggle__icon {
	transform: rotate(180deg);
}
