:root {
  /* --- ライトモードの変数 (Anima生成) --- */
  --text-14pt-bold-font-family: "Noto Sans JP", Helvetica;
  --text-14pt-bold-font-weight: 700;
  --text-14pt-bold-font-size: 14px;
  --text-14pt-bold-letter-spacing: 0px;
  --text-14pt-bold-line-height: normal;
  --text-14pt-bold-font-style: normal;
  --text-14pt-medium-font-family: "Noto Sans JP", Helvetica;
  --text-14pt-medium-font-weight: 500;
  --text-14pt-medium-font-size: 14px;
  --text-14pt-medium-letter-spacing: 0px;
  --text-14pt-medium-line-height: normal;
  --text-14pt-medium-font-style: normal;
  --smalltext-12pt-medium-font-family: "Noto Sans JP", Helvetica;
  --smalltext-12pt-medium-font-weight: 500;
  --smalltext-12pt-medium-font-size: 12px;
  --smalltext-12pt-medium-letter-spacing: 0px;
  --smalltext-12pt-medium-line-height: normal;
  --smalltext-12pt-medium-font-style: normal;
  --primarybutton-20pt-bold-font-family: "Noto Sans JP", Helvetica;
  --primarybutton-20pt-bold-font-weight: 700;
  --primarybutton-20pt-bold-font-size: 20px;
  --primarybutton-20pt-bold-letter-spacing: 0px;
  --primarybutton-20pt-bold-line-height: normal;
  --primarybutton-20pt-bold-font-style: normal;
  --largetext-32pt-regular-font-family: "Noto Sans JP", Helvetica;
  --largetext-32pt-regular-font-weight: 400;
  --largetext-32pt-regular-font-size: 32px;
  --largetext-32pt-regular-letter-spacing: 0px;
  --largetext-32pt-regular-line-height: normal;
  --largetext-32pt-regular-font-style: normal;
  --text-20pt-regular-font-family: "Noto Sans JP", Helvetica;
  --text-20pt-regular-font-weight: 400;
  --text-20pt-regular-font-size: 20px;
  --text-20pt-regular-letter-spacing: 0px;
  --text-20pt-regular-line-height: normal;
  --text-20pt-regular-font-style: normal;

  /* ★★★ ライトモードの色 ★★★ */
  --variable-collection-lightbackground-main: rgba(255, 255, 255, 1);
  --variable-collection-lightbackground-side: rgba(247, 247, 247, 1);
  --variable-collection-lighttext-primary: rgba(26, 26, 26, 1);
  --variable-collection-lighttext-secondary: rgba(116, 116, 116, 1);
  --variable-collection-lightline-default: rgba(165, 165, 165, 1);
  --variable-collection-lightline-mute: rgba(221, 221, 221, 1);

  /* ★★★ Anima生成の他の変数 (ライトモード) ★★★ */
  --bgmaindark: rgba(45, 45, 45, 1); /* ダークモード用だが :root に定義されている */
  --bgsidedark: rgba(37, 37, 37, 1); /* ダークモード用だが :root に定義されている */
  --planewhite: rgba(255, 255, 255, 1);
  --variable-collection-text-primary: rgba(255, 255, 255, 1); /* ダークモード用だが :root に定義されている */
  --variable-collection-text-secondary: rgba(174, 174, 174, 1); /* ダークモード用だが :root に定義されている */
  --variable-collection-background-main: rgba(45, 45, 45, 1); /* ダークモード用だが :root に定義されている */
  --variable-collection-background-side: rgba(37, 37, 37, 1); /* ダークモード用だが :root に定義されている */
  --variable-collection-line-mute: rgba(109, 109, 109, 1); /* ダークモード用だが :root に定義されている */
  --variable-collection-line-default: rgba(174, 174, 174, 1); /* ダークモード用だが :root に定義されている */
  --m3-schemes-primary: rgba(103, 80, 164, 1);
  --m3-state-layers-primary-opacity-10: rgba(103, 80, 164, 0.1);
}

/* ========================================
   ダークモード用の色上書き
   ======================================== */
[data-theme="dark"] {
  --variable-collection-lightbackground-main: rgba(45, 45, 45, 1); /* ダーク版の main 背景 */
  --variable-collection-lightbackground-side: rgba(37, 37, 37, 1); /* ダーク版の side 背景 */
  --variable-collection-lighttext-primary: rgba(255, 255, 255, 1); /* ダーク版の 主要テキスト色 (白) */
  --variable-collection-lighttext-secondary: rgba(174, 174, 174, 1); /* ダーク版の 第二テキスト色 (薄いグレー) */
  --variable-collection-lightline-default: rgba(174, 174, 174, 1); /* ダーク版の 線色 (デフォルト) */
  --variable-collection-lightline-mute: rgba(109, 109, 109, 1); /* ダーク版の 線色 (ミュート) */

  /* ★★★ 必要なら他の色変数もダーク版の値で上書き ★★★ */
  --m3-schemes-primary: rgba(208, 188, 255, 1); /* ダーク版のプライマリ色 (例) */
  --planewhite: rgba(255, 255, 255, 1); /* 白は白のまま */
}

/* ========================================
   Anima生成のテーマ切り替え (M3 Design?)
   ======================================== */
[data-m3-mode="light"] {
  --m3-schemes-primary: rgba(103, 80, 164, 1);
  --m3-state-layers-primary-opacity-10: rgba(103, 80, 164, 0.1);
}

[data-m3-mode="light-high-contrast"] {
  --m3-schemes-primary: rgba(39, 23, 78, 1);
  --m3-state-layers-primary-opacity-10: rgba(39, 23, 78, 0.1);
}

[data-m3-mode="light-medium-contrast"] {
  --m3-schemes-primary: rgba(73, 57, 113, 1);
  --m3-state-layers-primary-opacity-10: rgba(73, 57, 113, 0.1);
}

[data-m3-mode="dark"] {
  --m3-schemes-primary: rgba(208, 188, 255, 1);
  --m3-state-layers-primary-opacity-10: rgba(208, 188, 255, 0.1);
}

[data-m3-mode="dark-high-contrast"] {
  --m3-schemes-primary: rgba(255, 249, 255, 1);
  --m3-state-layers-primary-opacity-10: rgba(255, 249, 255, 0.1);
}

[data-m3-mode="dark-medium-contrast"] {
  --m3-schemes-primary: rgba(211, 193, 255, 1);
  --m3-state-layers-primary-opacity-10: rgba(211, 193, 255, 0.1);
}

[data-m3-mode="monochrome-LT"] {
  --m3-schemes-primary: rgba(0, 0, 0, 1);
  --m3-state-layers-primary-opacity-10: rgba(0, 0, 0, 0.1);
}

[data-m3-mode="monochrome-DT"] {
  --m3-schemes-primary: rgba(255, 255, 255, 1);
  --m3-state-layers-primary-opacity-10: rgba(255, 255, 255, 0.1);
}

[data-m3-mode="pink-LT"] {
  --m3-schemes-primary: rgba(138, 75, 104, 1);
  --m3-state-layers-primary-opacity-10: rgba(138, 75, 104, 0.1);
}

[data-m3-mode="pink-DT"] {
  --m3-schemes-primary: rgba(254, 176, 209, 1);
  --m3-state-layers-primary-opacity-10: rgba(254, 176, 209, 0.1);
}

[data-m3-mode="rose-LT"] {
  --m3-schemes-primary: rgba(143, 74, 86, 1);
  --m3-state-layers-primary-opacity-10: rgba(143, 74, 86, 0.1);
}

[data-m3-mode="rose-DT"] {
  --m3-schemes-primary: rgba(255, 178, 189, 1);
  --m3-state-layers-primary-opacity-10: rgba(255, 178, 189, 0.1);
}

[data-m3-mode="red-LT"] {
  --m3-schemes-primary: rgba(145, 75, 67, 1);
  --m3-state-layers-primary-opacity-10: rgba(145, 75, 67, 0.1);
}

[data-m3-mode="red-DT"] {
  --m3-schemes-primary: rgba(255, 167, 155, 1);
  --m3-state-layers-primary-opacity-10: rgba(255, 167, 155, 0.1);
}

[data-m3-mode="orange-LT"] {
  --m3-schemes-primary: rgba(141, 79, 40, 1);
  --m3-state-layers-primary-opacity-10: rgba(141, 79, 40, 0.1);
}

[data-m3-mode="orange-DT"] {
  --m3-schemes-primary: rgba(255, 182, 140, 1);
  --m3-state-layers-primary-opacity-10: rgba(255, 182, 140, 0.1);
}

[data-m3-mode="yellow-LT"] {
  --m3-schemes-primary: rgba(121, 90, 12, 1);
  --m3-state-layers-primary-opacity-10: rgba(121, 90, 12, 0.1);
}

[data-m3-mode="yellow-DT"] {
  --m3-schemes-primary: rgba(233, 193, 108, 1);
  --m3-state-layers-primary-opacity-10: rgba(233, 193, 108, 0.1);
}

[data-m3-mode="chartreuse-LT"] {
  --m3-schemes-primary: rgba(92, 100, 30, 1);
  --m3-state-layers-primary-opacity-10: rgba(92, 100, 30, 0.1);
}

[data-m3-mode="chartreuse-DT"] {
  --m3-schemes-primary: rgba(195, 205, 124, 1);
  --m3-state-layers-primary-opacity-10: rgba(195, 205, 124, 0.1);
}

[data-m3-mode="green-LT"] {
  --m3-schemes-primary: rgba(55, 106, 62, 1);
  --m3-state-layers-primary-opacity-10: rgba(55, 106, 62, 0.1);
}

[data-m3-mode="green-DT"] {
  --m3-schemes-primary: rgba(156, 212, 159, 1);
  --m3-state-layers-primary-opacity-10: rgba(156, 212, 159, 0.1);
}

[data-m3-mode="teal-LT"] {
  --m3-schemes-primary: rgba(0, 107, 96, 1);
  --m3-state-layers-primary-opacity-10: rgba(0, 107, 96, 0.1);
}

[data-m3-mode="teal-DT"] {
  --m3-schemes-primary: rgba(130, 213, 199, 1);
  --m3-state-layers-primary-opacity-10: rgba(130, 213, 199, 0.1);
}

[data-m3-mode="cyan-LT"] {
  --m3-schemes-primary: rgba(1, 104, 125, 1);
  --m3-state-layers-primary-opacity-10: rgba(1, 104, 125, 0.1);
}

[data-m3-mode="cyan-DT"] {
  --m3-schemes-primary: rgba(134, 209, 234, 1);
  --m3-state-layers-primary-opacity-10: rgba(134, 209, 234, 0.1);
}

[data-m3-mode="blue-LT"] {
  --m3-schemes-primary: rgba(72, 94, 146, 1);
  --m3-state-layers-primary-opacity-10: rgba(72, 94, 146, 0.1);
}

[data-m3-mode="blue-DT"] {
  --m3-schemes-primary: rgba(176, 198, 255, 1);
  --m3-state-layers-primary-opacity-10: rgba(176, 198, 255, 0.1);
}

[data-m3-mode="indigo-LT"] {
  --m3-schemes-primary: rgba(91, 89, 146, 1);
  --m3-state-layers-primary-opacity-10: rgba(91, 89, 146, 0.1);
}

[data-m3-mode="indigo-DT"] {
  --m3-schemes-primary: rgba(197, 192, 255, 1);
  --m3-state-layers-primary-opacity-10: rgba(197, 192, 255, 0.1);
}

[data-m3-mode="purple-LT"] {
  --m3-schemes-primary: rgba(107, 84, 141, 1);
  --m3-state-layers-primary-opacity-10: rgba(107, 84, 141, 0.1);
}

[data-m3-mode="purple-DT"] {
  --m3-schemes-primary: rgba(214, 187, 251, 1);
  --m3-state-layers-primary-opacity-10: rgba(214, 187, 251, 0.1);
}

/* ========================================================
   利用規約モーダル内のHTMLタグ装飾を復元するCSS
======================================================== */

/* 段落（<p>）の下余白を復活 */
.modal-body p {
    margin-bottom: 1em !important;
}

/* 箇条書き（<ul>）のインデントと下余白を復活 */
.modal-body ul {
    list-style-type: disc !important;
    padding-left: 1.8em !important;
    margin-bottom: 1em !important;
}

/* 箇条書きの各項目（<li>）のスタイル */
.modal-body li {
    display: list-item !important;
    margin-bottom: 0.4em !important;
}

/* ネストされた（入れ子の）箇条書き */
.modal-body ul ul {
    list-style-type: circle !important;
    margin-bottom: 0.5em !important;
}
/* 太字（strong, b）のスタイルを復元 */
.modal-body strong,
.modal-body b {
    font-weight: bold !important;
}