.cookie-consent {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 2147483000;
	width: 470px;
	max-width: calc(100vw - 32px);
	background: #f0f0f0;
	color: #111;
	padding: 30px;
	box-sizing: border-box;
	border-radius: 6px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
	font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	line-height: 1.7;
}

.cookie-consent__title {
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 20px;
	font-size: 160%;
}

.cookie-consent__text {
	margin: 0 0 12px;
}

.cookie-consent__list {
	margin: 0 0 16px 16px;
	padding: 0;
}

.cookie-consent__list li {
	margin-bottom: 6px;
}

.cookie-consent__list li::before {
	content: "・";
}

.cookie-consent__link {
	margin: 0 0 18px;
}

.cookie-consent__link a {
	color: #111;
	text-decoration: underline;
}

.cookie-consent__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.cookie-consent__btn {
	border: 0;
	border-radius: 9999px;
	padding: 12px 26px;
	cursor: pointer;
	font-weight: 700;
	line-height: 1.2;
}

.cookie-consent__btn--primary,
.cookie-consent__btn--secondary {
	background: #111;
	color: #fff;
}

.cookie-settings-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	background: transparent;
	display: flex;
	justify-content: flex-start;
}

.cookie-settings-modal__panel {
	position: relative;
	width: min(600px, 100vw);
	height: 100%;
	background: #efefef;
	padding: 24px 24px 120px;
	box-sizing: border-box;
	overflow-y: auto;
	font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.cookie-settings-modal[hidden] {
	display: none !important;
}

.cookie-settings-modal__close {
	position: absolute;
	right: 12px;
	top: 8px;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: #d2d2d2;
	color: #333;
	line-height: 1;
	cursor: pointer;
}

.cookie-settings-modal__title {
	margin: 0 0 16px;
	font-weight: 700;
}

.cookie-settings-modal__desc {
	margin: 0;
	line-height: 1.75;
}

.cookie-settings-modal__detail-link {
	margin: 10px 0 30px;
}

.cookie-settings-modal__detail-link a {
	color: #0058ab;
	text-decoration: underline;
}

.cookie-settings-modal__sub-title {
	margin: 0 0 14px;
	font-weight: 700;
}

.cookie-settings-list {
	border: 1px solid #cdcdcd;
	border-radius: 4px;
	overflow: hidden;
	background: #f7f7f7;
}

.cookie-settings-row {
	border-bottom: 1px solid #d6d6d6;
}

.cookie-settings-row:last-child {
	border-bottom: 0;
}

.cookie-settings-item {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 68px;
	padding: 0 14px;
	box-sizing: border-box;
}

.cookie-settings-item__head {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.cookie-settings-item__icon {
	line-height: 1;
	font-weight: 700;
	display: inline-block;
	width: 20px;
	text-align: center;
}

.cookie-settings-item__name {
	font-weight: 700;
	flex: 1;
}

.cookie-settings-item__status {
	font-weight: 700;
	color: #0058ab;
}

.cookie-settings-item__head[aria-expanded="true"] .cookie-settings-item__icon {
	transform: rotate(45deg);
}

.cookie-settings-item__desc {
	padding: 0 14px 14px 44px;
	line-height: 1.7;
	color: #333;
	background: #fafafa;
}

.cookie-settings-enable-all-wrap {
	margin-top: 10px;
	display: none;
}

.cookie-settings-enable-all {
	min-height: 40px;
    padding: 0 40px;
    margin-bottom: 8px;
    border: 1px solid #b9b9b9;
    border-radius: 9999px;
    background: #000000;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.cookie-settings-item__toggle {
	appearance: none;
	-webkit-appearance: none;
    width: 40px;
    height: 22px;
	border-radius: 9999px;
	background: #8a8a8a;
	position: relative;
	cursor: pointer;
	outline: none;
	border: 0;
}

.cookie-settings-item__toggle::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
    width: 16px;
    height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: left 0.2s ease;
}

.cookie-settings-item__toggle:checked {
	background: #0058ab;
}

.cookie-settings-item__toggle:checked::after {
	left: 20px;
}

.cookie-settings-modal__actions {
	position: static;
	left: 22px;
	right: 22px;
	bottom: 18px;
}

.cookie-settings-modal__submit {
    min-height: 40px;
    padding: 0 32px;
	margin-top: 10px;
	border: 1px solid #000;
	border-radius: 9999px;
	background: #000;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

@media screen and (max-width: 900px) {
	.cookie-consent {
		left: 10px;
		bottom: 10px;
		width: calc(100vw - 20px);
		padding: 16px;
	}

	.cookie-consent__title {
		margin-bottom: 12px;
		font-size: 130%;
	}

	.cookie-consent__text,
	.cookie-consent__list li {
	}

	.cookie-consent__link {
	}

	.cookie-consent__btn {
		padding: 10px 16px;
	}

	.cookie-settings-modal__panel {
		padding: 18px 14px 92px;
	}

	.cookie-settings-modal__close {
		width: 36px;
		height: 36px;
	}

	.cookie-settings-modal__title {
	}

	.cookie-settings-modal__desc {
	}

	.cookie-settings-modal__sub-title {
	}

	.cookie-settings-item {
		min-height: 52px;
		gap: 8px;
		padding: 0 10px;
	}

	.cookie-settings-item__head {
		min-height: 52px;
		gap: 8px;
	}

	.cookie-settings-item__icon {
		width: 16px;
	}

	.cookie-settings-item__name {
	}

	.cookie-settings-item__status {
	}

	.cookie-settings-item__toggle {
		width: 50px;
		height: 28px;
	}

	.cookie-settings-item__toggle::after {
		top: 2px;
		left: 2px;
		width: 24px;
		height: 24px;
	}

	.cookie-settings-item__toggle:checked::after {
		left: 24px;
	}

	.cookie-settings-item__desc {
		padding: 0 10px 10px 30px;
	}

	.cookie-settings-enable-all {
		min-height: 30px;
		padding: 0 12px;
	}

	.cookie-settings-modal__actions {
		left: 14px;
		right: 14px;
		bottom: 12px;
	}

	.cookie-settings-modal__submit {
		min-height: 52px;
	}
}
