/* COLUMN Filer i18n — 言語の切り替えメニュー（ヘッダーの文字色に合わせる） */

.cf-lang { position: relative; display: inline-flex; align-items: center; color: inherit; }
.cf-lang-item { display: flex; align-items: center; }
.cf-lang__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.85em;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.cf-lang__button:hover { border-color: currentColor; }
.cf-lang__button:focus-visible { outline: 2px solid #afafe9; outline-offset: 2px; }
.cf-lang__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1000;
	min-width: 150px;
	margin: 0;
	padding: 6px;
	list-style: none;
	border-radius: 12px;
	background: #1a1826;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	/* 画面に収まらない時は cf-i18n.js が max-height を付け、中でスクロールさせる */
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.cf-lang__menu[hidden] { display: none; }
.cf-lang__menu li { margin: 0; padding: 0; list-style: none; }
.cf-lang__menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: #ecebf7 !important;
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}
.cf-lang__menu a:hover, .cf-lang__menu a:focus-visible { background: rgba(175, 175, 233, 0.16); outline: none; }
.cf-lang__menu a[aria-current] { color: #afafe9 !important; font-weight: 600; }
.cf-lang__menu a[aria-current]::after { content: " ✓"; }

/* スマホ：メニューボタン（≡）の左隣。文字は省いて地球アイコンだけ */
.cf-lang.is-compact {
	position: absolute;
	top: 50%;
	right: 64px;
	transform: translateY(-50%);
}
.cf-lang.is-compact .cf-lang__button { padding: 8px; border: 0; }
.cf-lang.is-compact .cf-lang__button span {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.cf-lang.is-compact .cf-lang__button svg { width: 20px; height: 20px; }

/* テーマのメニュー文字の字間を引き継がない（右端が枠に詰まるため） */
.cf-lang__button, .cf-lang__menu a { letter-spacing: 0.01em; }
.cf-lang:not(.is-compact) .cf-lang__button { padding: 6px 14px 6px 11px; }

/* 日本語以外：日本語用に強く詰めた見出しの字間（letter-spacing:-6.2%）を緩める。
   cf-mobile.js が見出しの大きさを書き換えると style 属性が「letter-spacing: -6.2%」（空白あり）に書き直されるので、両方拾う */
html:not([lang^="ja"]) #rd-firstview p[style*="letter-spacing:-6.2%"],
html:not([lang^="ja"]) #rd-firstview p[style*="letter-spacing: -6.2%"],
html:not([lang^="ja"]) .article-container p[style*="letter-spacing:-6.2%"],
html:not([lang^="ja"]) .article-container p[style*="letter-spacing: -6.2%"] {
	letter-spacing: -0.03em !important;
}

/* ===== サポートページ ===== */

/* 本文が画面の端に付かないよう、狭い画面では左右に余白（サポート・プライバシー・使用許諾の共通） */
@media (max-width: 860px) { .cf-legal { padding-inline: 16px !important; box-sizing: border-box; } }

/* ご意見・お問い合わせのボタン（アイコンは CSS の mask で描く。投稿本文に SVG を書けないため） */
.cf-contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0 1.2em; }
.cf-contact__button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 8px 20px;
	border: 1px solid #3737c8; border-radius: 999px;
	color: #3737c8 !important; font-weight: 600; line-height: 1.3;
	text-decoration: none !important;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cf-contact__button:hover, .cf-contact__button:focus-visible { background: #3737c8; color: #fff !important; outline: none; }
.cf-contact__icon { flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--cf-icon) center / contain no-repeat; mask: var(--cf-icon) center / contain no-repeat; }
.cf-icon-bug { --cf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='8' width='10' height='12' rx='5'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0M12 12v8M7 13H3M21 13h-4M7 17l-3 2M17 17l3 2M7.5 10 4.5 8M16.5 10l3-2'/%3E%3C/svg%3E"); }
.cf-icon-request { --cf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1.1 2.2h5c.1-1 .5-1.7 1.1-2.2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.cf-icon-question { --cf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.6 9.3a2.5 2.5 0 0 1 4.8.9c0 1.7-2.4 2.2-2.4 3.6M12 17h.01'/%3E%3C/svg%3E"); }
.cf-icon-star { --cf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.3-4.1 5.9-.9z'/%3E%3C/svg%3E"); }
.cf-contact__address { font-size: .9em; }
@media (max-width: 599px) { .cf-contact__button { flex: 1 1 100%; } }

/* 参考訳のプライバシーポリシー・使用許諾の冒頭：原文（日本語・英語）が優先する旨 */
.cf-ref-note { margin: 0 0 1.2em; padding: 10px 14px; border-left: 3px solid #3737c8; border-radius: 6px; background: rgba(55, 55, 200, .06); font-size: .92em; }

/* お問い合わせフォーム（Contact Form 7） */
.cf-form { display: grid; gap: 4px; max-width: 640px; margin: 1.2em 0 .6em; }
.cf-form p { margin: 0 0 10px; }
.cf-form label { display: block; font-size: .92em; font-weight: 600; }
.cf-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.cf-form input[type="text"], .cf-form input[type="email"], .cf-form select, .cf-form textarea {
	width: 100%; box-sizing: border-box;
	padding: 10px 12px; border: 1px solid rgba(22, 21, 31, .18); border-radius: 10px;
	background: #fff; color: inherit; font: inherit; font-weight: 400; line-height: 1.5;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.cf-form textarea { min-height: 160px; resize: vertical; }
.cf-form input:focus, .cf-form select:focus, .cf-form textarea:focus { outline: none; border-color: #3737c8; box-shadow: 0 0 0 3px rgba(55, 55, 200, .22); }
.cf-form__bug { margin: 4px 0 10px; padding: 12px 14px 4px; border: 1px dashed rgba(22, 21, 31, .18); border-radius: 12px; }
.cf-form__bug[hidden] { display: none; }
.cf-form__bug legend { padding: 0 6px; font-size: .85em; opacity: .75; }
/* ボット対策の見えない欄（人には見せない） */
.cf-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-form .wpcf7-submit {
	min-height: 44px; padding: 10px 32px; border: 0; border-radius: 999px;
	background: #3737c8; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}
.cf-form .wpcf7-submit:hover { background: #4a4ae0; }
.cf-form .wpcf7-submit:focus-visible { outline: 2px solid #afafe9; outline-offset: 3px; }
.cf-form .wpcf7-spinner { vertical-align: middle; }
/* 必須のバッジ */
.cf-form__req {
	display: inline-block; margin-left: .5em; padding: 1px 8px; border-radius: 999px; vertical-align: .1em;
	background: rgba(55, 55, 200, .12); color: #3737c8; font-size: .72em; font-weight: 700; letter-spacing: .02em; line-height: 1.6;
}
/* 欄の下の「確認のしかた」と「この Mac から入力」 */
.cf-form__hint { display: block; margin-top: 5px; font-size: .8em; line-height: 1.5; opacity: .72; }
.cf-form .cf-form__fill { min-height: 32px; margin-top: 8px; padding: 4px 14px; font-size: .85em; }
.cf-form__autofilled { margin: 0 0 12px !important; padding: 8px 12px; border-radius: 10px; background: rgba(47, 158, 106, .1); font-size: .85em; }
.cf-form input.is-autofilled { background: rgba(47, 158, 106, .06); }

/* 入力の不備：欄を赤く縁取り、その下に赤い吹き出し（白い文字）で理由を出す */
.cf-form .wpcf7-not-valid { border-color: #d63b3b !important; box-shadow: 0 0 0 3px rgba(214, 59, 59, .18) !important; }
.cf-form .wpcf7-not-valid-tip {
	position: relative; display: inline-flex; align-items: center; gap: 6px;
	margin-top: 10px; padding: 5px 12px 5px 8px; border-radius: 999px;
	background: #c93333; color: #fff; font-size: .82em; font-weight: 600; line-height: 1.4;
	animation: cf-tip-in .18s ease-out;
}
.cf-form .wpcf7-not-valid-tip::before {
	content: "!"; display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%;
	background: #fff; color: #c93333; font-size: .8em; font-weight: 800; line-height: 1;
}
.cf-form .wpcf7-not-valid-tip::after {
	content: ""; position: absolute; top: -5px; left: 14px;
	border: 6px solid transparent; border-top: 0; border-bottom-color: #c93333; border-bottom-width: 6px;
}
@keyframes cf-tip-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
/* スクロールして着いた欄を、一度だけ小さく揺らして知らせる */
.cf-form .wpcf7-form-control-wrap.is-attention { animation: cf-attention .42s ease-in-out; }
@keyframes cf-attention { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
	.cf-form .wpcf7-not-valid-tip, .cf-form .wpcf7-form-control-wrap.is-attention { animation: none; }
}
.wpcf7 form .wpcf7-response-output { max-width: 640px; box-sizing: border-box; margin: 0 0 1.2em; padding: 10px 14px; border-radius: 10px; }

/* 確認画面・送信完了（cf-i18n.js が作る） */
.cf-form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }
.cf-form__btn {
	min-height: 44px; padding: 10px 28px; border-radius: 999px; cursor: pointer;
	border: 1px solid #3737c8; background: transparent; color: #3737c8; font: inherit; font-weight: 600;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cf-form__btn.is-primary { background: #3737c8; color: #fff; }
.cf-form__btn:hover { background: #4a4ae0; border-color: #4a4ae0; color: #fff; }
.cf-form__btn:focus-visible { outline: 2px solid #afafe9; outline-offset: 3px; }
.cf-form__btn:disabled { opacity: .6; cursor: default; }
.cf-review, .cf-done { max-width: 640px; box-sizing: border-box; margin: 1.2em 0; padding: 20px 22px; border: 1px solid rgba(22, 21, 31, .14); border-radius: 16px; }
.cf-review[hidden], .cf-done[hidden], .cf-form[hidden] { display: none; }
.cf-review__title, .cf-done__title { margin: 0 0 .4em !important; padding: 0 !important; border: 0 !important; font-size: 1.15em; }
.cf-review__title:focus, .cf-done__title:focus { outline: none; }
.cf-review__note { margin: 0 0 1em; font-size: .92em; }
.cf-review__list { display: grid; grid-template-columns: minmax(8em, max-content) 1fr; gap: 8px 18px; margin: 0 0 1.2em; }
.cf-review__list dt { font-weight: 600; font-size: .92em; }
.cf-review__list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cf-review__list dd.is-empty { opacity: .6; }
@media (max-width: 599px) {
	.cf-review__list { grid-template-columns: 1fr; gap: 2px; }
	.cf-review__list dd { margin-bottom: 8px; }
}
.cf-done { text-align: center; padding: 28px 22px; }
.cf-done__icon { display: block; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: #2f9e6a; position: relative; }
.cf-done__icon::after { content: ""; position: absolute; inset: 12px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.cf-done__body { margin: 0 0 .6em; }
.cf-done .cf-form__btn { margin-top: .8em; }

body.cf-dark .cf-form__btn { border-color: rgba(175, 175, 233, .55); color: #ecebf7; }
body.cf-dark .cf-form__btn.is-primary { background: #3737c8; border-color: #3737c8; color: #fff; }
body.cf-dark .cf-form__btn:hover { background: #4a4ae0; border-color: #4a4ae0; color: #fff; }
body.cf-dark .cf-review, body.cf-dark .cf-done { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
body.cf-dark .cf-review__list dt, body.cf-dark .cf-review__title, body.cf-dark .cf-done__title { color: #fff; }

body.cf-dark .cf-form input[type="text"], body.cf-dark .cf-form input[type="email"], body.cf-dark .cf-form select, body.cf-dark .cf-form textarea {
	/* 枠は背景（光のにじみの明るい所を含む）に対して 3:1 以上 */
	border-color: #7a78a0; background: rgba(255, 255, 255, .05); color: #ecebf7;
}
body.cf-dark .cf-form select option { background: #1a1826; color: #ecebf7; }
body.cf-dark .cf-form ::placeholder { color: #8a88a8; }
body.cf-dark .cf-form input:focus, body.cf-dark .cf-form select:focus, body.cf-dark .cf-form textarea:focus { border-color: #afafe9; box-shadow: 0 0 0 3px rgba(175, 175, 233, .22); }
body.cf-dark .cf-form label { color: #fff; }
body.cf-dark .cf-form__bug { border-color: rgba(255, 255, 255, .16); }
body.cf-dark .cf-form .wpcf7-not-valid { border-color: #ff6b6b !important; box-shadow: 0 0 0 3px rgba(255, 107, 107, .22) !important; }
body.cf-dark .cf-form .wpcf7-not-valid-tip { background: #d83a3a; color: #fff; }
body.cf-dark .cf-form .wpcf7-not-valid-tip::after { border-bottom-color: #d83a3a; }
body.cf-dark .cf-form .wpcf7-not-valid-tip::before { color: #d83a3a; }
body.cf-dark .cf-form__req { background: rgba(175, 175, 233, .2); color: #d4d3f5; }
body.cf-dark .cf-form__autofilled { background: rgba(47, 158, 106, .18); }
body.cf-dark .cf-form input.is-autofilled { background: rgba(47, 158, 106, .12); }
body.cf-dark .wpcf7 form .wpcf7-response-output { color: #ecebf7; }

/* ページ内リンク（例：TOP の「ご意見・ご要望…」→ サポートの #contact）で飛んだ見出しは、
   画面の上端にぴったり付かないよう少し余白を空けて止める。飛んだ直後はヘッダーを隠したままにする
   （サイトのスニペット「スクロールで隠れるヘッダー」）ので、ヘッダーの高さ分は空けない */
h1[id], h2[id], h3[id], h4[id] { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 32px); }

/* よくある質問：Q&A（押すと答えが開く） */
.cf-faq { display: grid; gap: 10px; margin: 1.2em 0 2em; }
.cf-faq__item { border: 1px solid rgba(22, 21, 31, .12); border-radius: 14px; background: rgba(22, 21, 31, .02); overflow: hidden; scroll-margin-top: 90px; }
.cf-faq__q {
	display: flex; align-items: center; gap: 12px;
	padding: 14px 16px; cursor: pointer; list-style: none;
	font-weight: 600; line-height: 1.5;
	transition: color .15s ease;
}
.cf-faq__q::-webkit-details-marker { display: none; }
.cf-faq__q::after {
	content: ""; flex: none; width: 18px; height: 18px; margin-left: auto;
	background: currentColor; opacity: .6;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s ease;
}
.cf-faq__item[open] > .cf-faq__q::after { transform: rotate(180deg); }
.cf-faq__q:hover { color: #3737c8; }
.cf-faq__q:focus-visible { outline: 2px solid #afafe9; outline-offset: -2px; border-radius: 14px; }
.cf-faq__a { display: flex; gap: 12px; padding: 0 16px 16px; }
.cf-faq__a .cf-faq__text > :first-child { margin-top: 3px; }
.cf-faq__a .cf-faq__text > :last-child { margin-bottom: 0; }
.cf-faq__badge {
	flex: none; display: inline-grid; place-items: center;
	width: 28px; height: 28px; border-radius: 50%;
	font-size: 14px; font-weight: 700; line-height: 1;
	background: #3737c8; color: #fff;
}
.cf-faq__a .cf-faq__badge { background: transparent; color: #3737c8; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ===== 暗い見た目（TOP と同じ。今はサポートページ：body に cf-dark） ===== */
body.cf-dark { background-color: #0f0e16; color: #c9c7e2; }
body.cf-dark::before {
	content: ""; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
	background:
		radial-gradient(28% 32% at 72% 30%, rgb(68 119 191 / .22), transparent 70%),
		radial-gradient(26% 30% at 24% 62%, rgb(150 148 242 / .16), transparent 70%),
		radial-gradient(22% 26% at 60% 86%, rgb(55 55 200 / .14), transparent 70%);
}
/* ヘッダー：暗い半透明の帯に白い文字・白いロゴ（ロゴの差し替えは cf-i18n.js） */
body.cf-dark #header { border-bottom-color: rgba(255, 255, 255, .08); }
body.cf-dark #header-inner {
	--rd--c--primary-v: 15 14 22 !important;
	--rd--c--primary-v-on: 255 255 255 !important;
	--rd--header--opacity: .72 !important;
	color: #fff;
}
body.cf-dark #header .site-logo img { filter: none !important; }
body.cf-dark #header .header-nav a, body.cf-dark #header .header-drawer { color: #fff !important; }
body.cf-dark #header-nav .menu-item-handle.is-depth-0:hover { color: #afafe9 !important; }
body.cf-dark #header .header-drawer.is-style-box { border-color: rgba(255, 255, 255, .35) !important; background: transparent !important; }
/* パンくず・題名・本文 */
body.cf-dark #breadcrumb { background: rgba(255, 255, 255, .04) !important; border-bottom: 1px solid rgba(255, 255, 255, .06); }
body.cf-dark #breadcrumb, body.cf-dark #breadcrumb a { color: #9d9bbb !important; text-decoration: none !important; transition: color .15s ease; }
body.cf-dark #breadcrumb a:hover { color: #afafe9 !important; }
body.cf-dark .single-post-title { color: #fff; }
body.cf-dark .cf-legal { color: #c9c7e2; }
body.cf-dark .cf-legal h2, body.cf-dark .cf-legal h3, body.cf-dark .cf-legal strong { color: #fff; }
body.cf-dark .cf-legal h2 { padding-top: .6em; border-top: 1px solid rgba(255, 255, 255, .08); }
/* 遷移用のリンク：下線なし、ホバーで色だけ変える（ヘッダーのメニューと同じ）。
   ただし色の違いだけでは周りの文字と見分けにくい（約 1.26:1）ので、太字にし、ページへのリンクには › を付ける */
body.cf-dark .cf-legal a:not(.cf-contact__button) { color: #afafe9 !important; font-weight: 600; text-decoration: none !important; transition: color .15s ease; }
body.cf-dark .cf-legal a:not(.cf-contact__button):not([href^="mailto:"])::after { content: "›"; display: inline-block; margin-left: .2em; transition: transform .2s ease; }
body.cf-dark .cf-legal a:not(.cf-contact__button):hover { color: #fff !important; }
body.cf-dark .cf-legal a:not(.cf-contact__button):not([href^="mailto:"]):hover::after { transform: translateX(2px); }
/* ボタン */
body.cf-dark .cf-contact__button { border-color: rgba(175, 175, 233, .55); color: #ecebf7 !important; background: rgba(255, 255, 255, .03); }
body.cf-dark .cf-contact__button:hover, body.cf-dark .cf-contact__button:focus-visible { background: #3737c8; border-color: #3737c8; color: #fff !important; }
/* Q&A */
body.cf-dark .cf-faq__item { border-color: rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .035); }
body.cf-dark .cf-faq__item[open] { background: rgba(255, 255, 255, .055); }
body.cf-dark .cf-faq__q { color: #fff; }
body.cf-dark .cf-faq__q:hover { color: #afafe9; }
body.cf-dark .cf-faq__badge { background: #3737c8; color: #fff; }
body.cf-dark .cf-faq__a .cf-faq__badge { background: transparent; color: #afafe9; }
/* フッター */
body.cf-dark #footer { border-top-color: rgba(255, 255, 255, .10); color: #b9b7d6; }
body.cf-dark #footer .menu-item-handle { color: #c9c7e2; }
body.cf-dark #footer .menu-item-handle:hover { color: #afafe9; }

@media (prefers-reduced-motion: reduce) {
	.cf-faq__q::after, .cf-contact__button, body.cf-dark .cf-legal a::after { transition: none; }
}

/* TOP（14言語）の「ご意見・ご要望・不具合の報告 ›」（本文のリンクに class="cf-support-link"）：下線なし。マウスを乗せると › が少し右へ動き、色が明るくなる */
a.cf-support-link { text-decoration: none !important; transition: color .15s ease; }
a.cf-support-link::after {
	content: "›"; display: inline-block; margin-left: .35em;
	font-size: 1.15em; line-height: 1; transition: transform .2s ease;
}
a.cf-support-link:hover { color: #fff !important; }
a.cf-support-link:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { a.cf-support-link::after { transition: none; } }

/* 用語の説明（よくある質問の App Sandbox など）：点線の下線の語。重ねる・Tab・押すで、語の下に吹き出しが出る
   （よくある質問の枠は角丸のため中身を切り取るので、上ではなく下に出し、左右は cf-i18n.js が枠の中に収める） */
.cf-term { position: relative; display: inline; }
.cf-term__word {
	display: inline; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: help;
	text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: .22em;
}
.cf-term__word::after {
	content: "?"; display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; margin-left: .2em; vertical-align: .08em;
	border-radius: 50%; background: rgba(55, 55, 200, .14); color: #3737c8; font-size: .72em; font-weight: 700; text-decoration: none;
}
.cf-term__word:focus-visible { outline: 2px solid #afafe9; outline-offset: 2px; border-radius: 3px; }
.cf-term__tip {
	position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); width: max-content; max-width: min(300px, 80vw);
	padding: 8px 12px; border-radius: 10px; background: #1c1b29; color: #f3f2fb;
	font-size: .86em; font-weight: 400; line-height: 1.55; text-align: left; box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
	opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
	pointer-events: none;
}
.cf-term__tip::after { content: ""; position: absolute; bottom: 100%; left: var(--cf-arrow-x, 18px); border: 6px solid transparent; border-bottom-color: #1c1b29; }
.cf-term:hover .cf-term__tip, .cf-term__word:focus-visible + .cf-term__tip, .cf-term.is-open .cf-term__tip { opacity: 1; visibility: visible; transform: none; }
body.cf-dark .cf-term__word::after { background: rgba(175, 175, 233, .28); color: #fff; }
body.cf-dark .cf-term__tip { background: #f3f2fb; color: #16151f; }
body.cf-dark .cf-term__tip::after { border-bottom-color: #f3f2fb; }
@media (prefers-reduced-motion: reduce) { .cf-term__tip { transition: none; } }

/* スマホ（767px 以下）：言語ボタンとメニューボタン（≡）を、同じ形の 44×44 のボタンにして 10px 離す。
   どちらも指で押しやすい大きさ（Apple の推奨 44pt）にし、隣を押し間違えないようにする */
@media (max-width: 767px) {
	#header .header-drawer {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px;
		padding: 0 !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		border: 1px solid color-mix(in srgb, currentColor 35%, transparent) !important;
		border-radius: 12px !important;
		background: transparent !important;
		-webkit-tap-highlight-color: transparent;
	}
	#header .cf-lang.is-compact { right: calc(19.5px + 44px + 10px); }
	#header .cf-lang.is-compact .cf-lang__button {
		width: 44px;
		height: 44px;
		padding: 0;
		justify-content: center;
		border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
		border-radius: 12px;
	}
	#header .header-drawer:active,
	#header .cf-lang.is-compact .cf-lang__button:active { background: color-mix(in srgb, currentColor 12%, transparent) !important; }
}

/* 確認画面：入力内容が上下の説明文に埋もれないよう、画面全体をアクセントの枠で囲み、
   入力内容の一覧は内側の「表」の枠に入れて、行ごとに区切る。項目名は控えめ、内容はくっきり */
.cf-review {
	border: 1.5px solid rgba(55, 55, 200, .45);
	background: rgba(55, 55, 200, .05);
	box-shadow: 0 0 0 4px rgba(55, 55, 200, .07);
}
.cf-review__list {
	gap: 0;
	border: 1px solid rgba(22, 21, 31, .14);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
.cf-review__list dt,
.cf-review__list dd {
	margin: 0;
	padding: 12px 16px;
	border-top: 1px solid rgba(22, 21, 31, .08);
}
.cf-review__list dt:first-of-type,
.cf-review__list dd:first-of-type { border-top: 0; }
.cf-review__list dt { font-weight: 500; font-size: .85em; opacity: .7; }
.cf-review__list dd { font-weight: 500; }
body.cf-dark .cf-review {
	border-color: rgba(150, 148, 242, .55);
	background: rgba(150, 148, 242, .07);
	box-shadow: 0 0 0 4px rgba(150, 148, 242, .08);
}
body.cf-dark .cf-review__list { border-color: rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .28); }
body.cf-dark .cf-review__list dt,
body.cf-dark .cf-review__list dd { border-top-color: rgba(255, 255, 255, .08); }
body.cf-dark .cf-review__list dt { color: #cfcdf0; opacity: 1; }
body.cf-dark .cf-review__list dd { color: #fff; }
@media (max-width: 599px) {
	.cf-review__list { gap: 0; }
	.cf-review__list dt { padding-bottom: 2px; }
	.cf-review__list dd { margin-bottom: 0; padding-top: 2px; border-top: 0; }
	.cf-review__list dd.is-empty { opacity: .6; }
}

/* 確認画面の鉛筆ボタン：その場で直す */
.cf-review__list dd.cf-review__row { display: flex; align-items: flex-start; gap: 10px; }
.cf-review__value { flex: 1 1 auto; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cf-review__edit {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; margin: -4px -6px -4px 0; padding: 0;
	border: 1px solid transparent; border-radius: 8px;
	background: transparent; color: inherit; opacity: .7;
	cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.cf-review__edit:hover, .cf-review__edit:focus-visible { opacity: 1; background: rgba(55, 55, 200, .1); border-color: rgba(55, 55, 200, .35); outline: none; }
body.cf-dark .cf-review__edit:hover, body.cf-dark .cf-review__edit:focus-visible { background: rgba(150, 148, 242, .16); border-color: rgba(150, 148, 242, .5); }
.cf-review__list dd.is-editing { display: block; }
.cf-review__editor { display: flex; flex-direction: column; gap: 8px; }
.cf-review__input {
	width: 100%; box-sizing: border-box; padding: 8px 10px;
	border: 1px solid rgba(55, 55, 200, .5); border-radius: 8px;
	background: #fff; color: inherit; font: inherit;
}
.cf-review__input[aria-invalid="true"] { border-color: #d64545; box-shadow: 0 0 0 2px rgba(214, 69, 69, .25); }
body.cf-dark .cf-review__input { background: rgba(0, 0, 0, .35); border-color: rgba(150, 148, 242, .6); color: #fff; }
body.cf-dark .cf-review__input option { color: #16151f; }
.cf-review__editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 0 !important; }
.cf-review__editor-actions .cf-form__btn { padding: 6px 16px; font-size: .9em; }
@media (max-width: 599px) {
	.cf-review__list dd.cf-review__row { padding-top: 2px; }
	/* スマホは指で押すので大きめに */
	.cf-review__edit { width: 40px; height: 40px; margin: -8px -8px -8px 0; }
}
