@charset "utf-8";
/* ==========================================================
   Cookie設定ページ  /cookiepolicy.html
   ========================================================== */

.ck-page {
	font-size: 10px;   /* body の x-small 基準に合わせる */
	text-align: left;
}

.ck-page .ck-lead p {
	line-height: 1.9;
	margin-bottom: 1em;
}

.ck-page .ck-lead p:last-child {
	margin-bottom: 0;
}

/* ---- ボタン ---- */
.ck-btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin: 30px 0 40px;
}

.ck-btns--save {
	margin: 40px 0 0;
}

/* 「すべて拒否する」「すべてのCookieを受け入れる」は同一サイズ・同一配色 */
.ck-btn {
	display: block;
	width: 300px;
	padding: 0;
	border: 1px solid #1677B7;
	background: #1677B7;
	color: #fff;
	font-family: inherit;
	font-size: 1.6em;
	text-decoration: none !important;
	cursor: pointer;
	transform: skewX(-12deg);
	transition: .3s;
	box-sizing: border-box;
}

.ck-btn > span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 8px 12px;
	color: #fff;
	line-height: 1.4;
	text-align: center;
	transform: skewX(12deg);
}

.ck-btn:hover {
	background: #fff;
	opacity: 1;
}

.ck-btn:hover > span {
	color: #1677B7;
}

/* 「設定を保存する」はフォームの確認ボタン（form button.fbtn.confirm）と同じデザイン */
.ck-btn-save {
	width: 150px;
	height: 60px;
	padding: 10px 10px;
	margin: 12px;
	border: 1px solid #888;
	border-style: none;
	border-radius: 3px;
	background-color: #248;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
}

.ck-btn-save:hover {
	opacity: .8;
}

/* ---- カテゴリ一覧 ---- */
.ck-list {
	border-top: 1px solid #d5d9dd;
}

.ck-item {
	border-bottom: 1px solid #d5d9dd;
}

.ck-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 18px 4px;
}

/* 見出し（クリックで詳細を開閉） */
.ck-toggle-detail {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	padding: 0;
	border: none;
	background: none;
	color: #24272A;
	font-family: inherit;
	font-size: 1.8em;
	font-weight: bold;
	line-height: 1.5;
	text-align: left;
	cursor: pointer;
}

.ck-toggle-detail:hover {
	color: #1677B7;
}

/* ＋／− のマーク */
.ck-mark {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-right: 12px;
}

.ck-mark::before,
.ck-mark::after {
	position: absolute;
	top: 50%;
	left: 50%;
	content: "";
	background-color: #1677B7;
	transform: translate(-50%, -50%);
}

.ck-mark::before {
	width: 18px;
	height: 2px;
}

.ck-mark::after {
	width: 2px;
	height: 18px;
	transition: .3s;
}

.ck-toggle-detail[aria-expanded="true"] .ck-mark::after {
	height: 0;
}

/* ---- トグルスイッチ ---- */
.ck-switch {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.ck-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ck-switch-track {
	position: relative;
	display: block;
	width: 76px;
	height: 34px;
	border-radius: 17px;
	background-color: #b4bcc4;
	transition: background-color .3s;
}

.ck-switch-track::before,
.ck-switch-track::after {
	position: absolute;
	top: 50%;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
	transform: translateY(-50%);
}

.ck-switch-track::before {
	content: "ON";
	left: 10px;
	opacity: 0;
	transition: opacity .3s;
}

.ck-switch-track::after {
	content: "OFF";
	right: 9px;
	opacity: 1;
	transition: opacity .3s;
}

.ck-switch-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: #fff;
	transition: left .3s;
}

.ck-switch input:checked + .ck-switch-track {
	background-color: #1677B7;
}

.ck-switch input:checked + .ck-switch-track::before {
	opacity: 1;
}

.ck-switch input:checked + .ck-switch-track::after {
	opacity: 0;
}

.ck-switch input:checked + .ck-switch-track .ck-switch-thumb {
	left: 45px;
}

.ck-switch input:focus-visible + .ck-switch-track {
	outline: 2px solid #1677B7;
	outline-offset: 2px;
}

/* スイッチのラベルは読み上げ用（画面には出さない） */
.ck-switch-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---- 詳細 ---- */
.ck-detail {
	display: none;
	padding: 0 4px 22px;
}

.ck-detail.is-open {
	display: block;
}

.ck-detail p {
	font-size: 1.4em;
	line-height: 1.9;
}

.ck-tools {
	margin-top: 14px;
	padding: 14px 18px;
	background-color: #f2f5f7;
}

.ck-tools dt {
	font-size: 1.4em;
	font-weight: bold;
	margin-bottom: 4px;
}

.ck-tools dd {
	font-size: 1.4em;
	line-height: 1.8;
	margin: 0;
}

/* ---- 保存メッセージ（ウィンドウ中央に表示） ---- */
.ck-message {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 10000;
	width: calc(100% - 40px);
	max-width: 520px;
	margin: 0;
	padding: 28px 30px;
	background-color: #fff;
	border: 2px solid #1677B7;
	/* 1つ目の影で画面全体を暗くしてメッセージを目立たせる */
	box-shadow: 0 0 0 100vmax rgba(0,0,0,0.35), 0 8px 28px rgba(0,0,0,0.3);
	color: #12608f;
	font-size: 1.5em;
	line-height: 1.8;
	text-align: center;
	white-space: pre-line;   /* メッセージ内の改行(\n)を反映 */
	transform: translate(-50%, -50%);
	box-sizing: border-box;
}

.ck-message.is-show {
	display: block;
}

@media screen and (max-width: 769px) {

.ck-page .ck-lead p {
	font-size: 1.4em;
}

.ck-btns {
	display: block;
	margin: 24px 0 30px;
}

/* 「設定を保存する」はフォームの確認ボタンと同じ固定幅のまま中央に置く */
.ck-btns--save {
	text-align: center;
}

.ck-btn {
	width: 100%;
	font-size: 1.5em;
}

.ck-btn + .ck-btn {
	margin-top: 10px;
}

.ck-head {
	padding: 16px 0;
}

.ck-toggle-detail {
	flex: 1 1 100%;
	font-size: 1.6em;
}

.ck-switch {
	margin-left: 30px;
}

.ck-detail {
	padding: 0 0 18px;
}

.ck-detail p,
.ck-tools dt,
.ck-tools dd {
	font-size: 1.3em;
}

.ck-message {
	padding: 22px 20px;
	font-size: 1.4em;
}

}
