.hp-modal {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	transition: all 0.4s;
	opacity: 0;
	visibility: hidden;
	z-index: 100001;
}

.hp-modal__bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.hp-modal__contents-wrap {
	max-width: 1196px;
	width: 100%;
	position: absolute;
	top: 64px;
	left: 50%;
	padding: 0 10px;
	transform: translateX(-50%);
	box-sizing: border-box;
}

@media screen and (max-width: 767px) {
	.hp-modal__contents-wrap {
		padding: 0 5px;
		top: 5px;
	}
}

.hp-modal__contents {
	padding: 32px;
	background: #FFF;
	border-radius: 6px;
	overflow: hidden;
	overflow-y: scroll;
	max-height: calc(100vh - 128px);
	box-sizing: border-box;
}

@media screen and (max-width: 767px) {
	.hp-modal__contents {
		position: relative;
    max-height: calc(100vh - 45px);
		padding: 22px 0 0;
	}
}

.hp-modal__contents::-webkit-scrollbar{
	width: 4px;
}

.hp-modal__contents::-webkit-scrollbar-track{
	background: transparent;
	border-radius: 2px;
}

.hp-modal__contents::-webkit-scrollbar-thumb{
	background: #CECECE;
	border-radius: 2px;
}

.hp-modal__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

@media screen and (max-width: 767px) {
	.hp-modal__header {
		margin: 0 2.5px;
	}
}

.hp-modal__heading {
	color: var(--main-color);
	font-size: 20px;
	font-weight: bold;
	line-height: 1.5;
	margin-block-start: 0;
	margin-block-end: 0;
}

@media screen and (max-width: 767px) {
	.hp-modal__heading {
		font-size: 16px;
		padding-left: 16px;
	}
}

@media screen and (max-width: 767px) {
	.hp-modal__heading + .hc-search-small {
		padding-top: 24px;
	}
}

.hp-modal__body {
	margin-top: 24px;
}

@media screen and (max-width: 767px) {
	.hp-modal__body {
		margin: 16px 2.5px 0;
	}
}

.hp-modal__footer {
	display: none;
}

@media screen and (max-width: 767px) {
	.hp-modal__footer {
		width: calc(100% + 4px);
		display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
		margin-block-start: 0;
    margin-block-end: 0;
		margin-top: 48px;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    padding: 16px 0;
    background: #F4F4F4;
		cursor: pointer;
	}
}

@media screen and (max-width: 767px) {
	.hp-modal__footer::before {
    display: inline-block;
		position: relative;
    content: '';
    width: 12px;
    height: 12px;
    margin-right: 8px;
    background: url(/common/rwd/images/rn/icon_close_red.svg) no-repeat bottom right / contain;
	}
}

.hp-modal__close {
	position: absolute;
	width: 24px;
	height: 24px;
	top: -34px;
	right: 0;
	transform: translateX(-50%);
	cursor: pointer;
}

@media screen and (max-width: 767px) {
	.hp-modal__close {
		width: 30px;
		height: 30px;
		top: 16px;
    right: 14px;
	}
}

.hp-modal__close::before,
.hp-modal__close::after {
	position: absolute;
}

.hp-modal__close::before {
	content: '';
	width: 24px;
	height: 24px;
	background: url(/common/rwd/images/rn/icon_close_white.svg) no-repeat bottom right / contain;
}

@media screen and (max-width: 767px) {
	.hp-modal__close::before {
		width: 10px;
		height: 10px;
		top: 0;
		left: 50%;
		background: url(/common/rwd/images/rn/icon_close_gray.svg) no-repeat bottom left / contain;
		transform: translateX(-50%);
	}
}

@media screen and (max-width: 767px) {
	.hp-modal__close::after {
		content: '閉じる';
		width: 100%;
		color: var(--text-color);
		font-size: 10px;
		line-height: 1;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
	}
}

.hp-modal.is-show {
	opacity: 1;
	visibility: visible;
}